随笔分类 - 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
        阅读全文
            
        
            
    【转】ffmpeg源码分析之媒体打开过程
    
            
            
        
摘要://参数ps包含一切媒体相关的上下文结构,有它就有了一切,本函数如果打开媒体成功,//会返回一个AVFormatContext的实例.//参数filename是媒体文件名或URL.//参数fmt是要打开的媒体格式的操作结构,因为是读,所以是inputFormat.此处可以//传入一个调用者定义的inputFormat,对应命令行中的 -f xxx段,如果指定了它,//在打开文件中就不会探测文件的实际格式了,以它为准了.//参数options是对某种格式的一些操作,是为了在命令行中可以对不同的格式传入//特殊的操作参数而建的, 为了了解流程,完全可以无视它.int avformat_open_i
        阅读全文
            
        
            
    ffmepg 同步
    
            
            
        
摘要:if (packet->dts == AV_NOPTS_VALUE && mFrame->opaque && *(uint64_t*) mFrame->opaque != AV_NOPTS_VALUE) { // 表示从这个包没有获得dts, 但我们获得了第一包的...
        阅读全文
            
        
            
    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...
        阅读全文
            
        
            
    关于  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
        阅读全文
            
        
            
    ffmpeg 的log 获取办法
    
            
            
        
摘要:以前在jni 下调试 ffmpeg 都是加andoird 的 LOGE,今天看别人的播放器里这么用的,av_log_set_callback 设置一个回调,错误信息就可以抛上来了。good~
        阅读全文
            
        
            
    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
        阅读全文
            
        
            
    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
        阅读全文
            
        
 
                    
                 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号