[FFmpeg-devel] libavformat/idroqenc.c: put the target fps into the header?

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Jan 29 17:53:46 CET 2014


 <u-owvm <at> aetey.se> writes:

> 
> The function doing the operation is
>   roq_write_header(struct AVFormatContext *s)
> 
> How can it learn the target fps via its argument?

Without looking at the actual code, the 
AVFormatContext contains streams as AVCodecContext, 
they contain several (in)dependent fields with 
information about average frame rate, timebase and 
similar.
See for example "time_base" in movenc.c and avienc.c

Carl Eugen



More information about the ffmpeg-devel mailing list