随笔分类 - ffmpeg
摘要:/** * Convert valid timing fields (timestamps / durations) in a packet from one * timebase to another. Timestamps with unknown values (AV_NOPTS_VALUE)
阅读全文
摘要:/** * @defgroup opt_set_funcs Option setting functions * @{ * Those functions set the field of obj with the given name to value. * * @param[in] obj A
阅读全文
摘要:linesize说明 #define AV_NUM_DATA_POINTERS 8 /** * For video, size in bytes of each picture line. * For audio, size in bytes of each plane. * * For audio
阅读全文
摘要:av_image_fill_arrays是FFmpeg中用于填充图像数据指针数组的函数之一。在音视频处理领域,正确使用av_image_fill_arrays函数可以帮助我们有效地处理图像数据。 av_image_fill_arrays函数原型 /** * Setup the data pointe
阅读全文
摘要:av_samples_fill_arrays是FFmpeg中一个非常重要的函数,用于填充音频数据的指针数组。在音视频处理中,经常需要处理音频数据,而av_samples_fill_arrays可以正确地组织音频数据,以便后续处理和编解码。 av_samples_fill_arrays函数的原型: /
阅读全文
摘要:目录导语一、FFmpeg简介二、FFmpeg主要模块功能介绍1. libavformat2. libavcodec3. libavutil4. libavdevice5. libavfilter6. libswscale7. libswresample三、性能数据分析四、结论 导语 FFmpeg是一
阅读全文
摘要:基础 filter: 数据处理器 filter_chain: 链表链接链接所有的filter filter_graph:数据处理管理器 查看filter的相关事项:ffmpeg -h filter=filter_name $ ffmpeg -h filter=crop Filter crop Cro
阅读全文
摘要:AVInputFormat 1. AVInputFormat是demuxer或者indev AVInputFormat *previn = NULL, *in; for (int i = 0; (in = (AVInputFormat*)demuxer_list[i]); i++) { if (pr
阅读全文
摘要:time_base的定义与使用方法 在ffmpeg中,time_base是一种时间基准用于表示时间戳。在视频编解码过程中,每帧或者每个音频样本都有自己的时间戳,以表示该帧或样本在时间轴上的位置。time_base就是用来指定这些时间戳的时间基准。它是一个有理数类型,表示每个时间单位(通常是秒)有多少
阅读全文
摘要:tbn tbn: the time base in AVStream that has come from the container 视频流时长的精确度time_base,即1s = 90000个刻度 视频总时长T = AVStream.duration * AVStream.time_base
阅读全文
摘要:官方源码 /** * Initialize the AVCodecContext to use the given AVCodec. Prior to using this * function the context has to be allocated with avcodec_alloc_c
阅读全文