• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
热爱我的热爱
博客园    首页    新随笔    联系   管理    订阅  订阅

随笔分类 -  ffmpeg

ffmpeg编译参数详解

摘要:Usage: configure [options]用 法:configure [选项]Options: [defaults in brackets after descriptions]选 项:[描述之后的方括号里的是默认值]Standard options:标准选项: --help print this message 打印这个信息,例如:./configure --help > ffmpegcfg.txt --logfile=FILE log tests and output to FILE [config.log] 记录测试日志并输出到的文件[默认:config.log] --d 阅读全文
posted @ 2013-11-11 13:59 soniclq 阅读(5200) 评论(0) 推荐(1)
【转】ffmpeg源码分析之媒体打开过程

摘要://参数ps包含一切媒体相关的上下文结构,有它就有了一切,本函数如果打开媒体成功,//会返回一个AVFormatContext的实例.//参数filename是媒体文件名或URL.//参数fmt是要打开的媒体格式的操作结构,因为是读,所以是inputFormat.此处可以//传入一个调用者定义的inputFormat,对应命令行中的 -f xxx段,如果指定了它,//在打开文件中就不会探测文件的实际格式了,以它为准了.//参数options是对某种格式的一些操作,是为了在命令行中可以对不同的格式传入//特殊的操作参数而建的, 为了了解流程,完全可以无视它.int avformat_open_i 阅读全文
posted @ 2013-01-11 10:45 soniclq 阅读(417) 评论(0) 推荐(0)
ffmepg 同步

摘要:if (packet->dts == AV_NOPTS_VALUE && mFrame->opaque && *(uint64_t*) mFrame->opaque != AV_NOPTS_VALUE) { // 表示从这个包没有获得dts, 但我们获得了第一包的... 阅读全文
posted @ 2012-09-29 16:00 soniclq 阅读(745) 评论(0) 推荐(0)
ffmpeg AVStream time_base

摘要:AVStream 中的time_base 为帧率倒数。数据结构是 typedef struct AVRational{ int num; ///< numerator int den; ///< denominator} AVRational;打印看结果是 num = 1, den = 23. 每秒23帧。关于 av_q2d源码中/** * Convert rational to double. * @param a rational to convert * @return (double) a */static inline double av_q2d(AVRation... 阅读全文
posted @ 2012-09-13 18:41 soniclq 阅读(1584) 评论(0) 推荐(0)
关于 ffmpeg ‘UINT64_C’ was not declared in this scope 的错误

摘要:ffmpeg 默认是用C文件来编译的,如果某个CPP文件想引用ffmpeg中的某些函数或者头文件,有可能出现‘UINT64_C’ was not declared in this scope的错误情形大概如下The same issue i'm getting here when compiling chromium with ffmpeg from svn:In file included from /usr/include/libavutil/avutil.h:81:0,from /usr/include/libavcodec/avcodec.h:30,from out/Relea 阅读全文
posted @ 2012-07-02 14:42 soniclq 阅读(1449) 评论(0) 推荐(0)
ffmpeg 的log 获取办法

摘要:以前在jni 下调试 ffmpeg 都是加andoird 的 LOGE,今天看别人的播放器里这么用的,av_log_set_callback 设置一个回调,错误信息就可以抛上来了。good~ 阅读全文
posted @ 2012-04-23 10:01 soniclq 阅读(548) 评论(0) 推荐(0)
avcodec_decode_video2 第三个参数 got_picture_ptr 的含义

摘要:ffmpeg 文档中这样描述got_picture_ptr Zero if no frame could be decompressed, otherwise, it is nonzero.ask :(ffmpeg avcodec_decode_video) what does the value got_picture_ptr mean ,i found it is a random num after function avcodec_decode_video()answer;for almost codecs:*got_picture_ptr = sizeof(AVFrame);It i 阅读全文
posted @ 2012-04-06 12:05 soniclq 阅读(2900) 评论(0) 推荐(0)
ffmpeg 播放 m3u8 ts 流时 av_read_frame 流程

摘要:av_read_frame --> av_read_frame_internal --> if(st).....else { av_read_packet --> mpegts_read_packet --> handle_packets --> read_packet --> avio_read --> fill_buffer--> s->read_packet -->ffurl_read -->retry_transfer_wrapper -->applehttp_read 阅读全文
posted @ 2011-12-30 17:27 soniclq 阅读(2864) 评论(0) 推荐(0)
mips ffmpeg

摘要:http://web.archiveorange.com/archive/v/KKJCyuHqWiKphOcL8V1X 阅读全文
posted @ 2011-10-18 11:19 soniclq 阅读(332) 评论(0) 推荐(0)

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3