[Ffmpeg-devel] changing frame rate and bit rate after opening codec

Michael Niedermayer michaelni
Sun Aug 13 13:48:04 CEST 2006


Hi

On Sun, Aug 13, 2006 at 12:56:56AM +0000, leon z wrote:
> Hi all,
> 
> a quick question on Lavc - if I need to modulate frame rate (or bit rate) 
> of some codec after I have already opened it - is it possible without say 
> closing and reopening the codec? If it is possible - is there anything more 
> to it than setting the relevant structure variables?

you can change the timestamps of the frames and you can change the quantizer
which will do what you want, there is no such thing as a framerate there is
just a time base and that cannot be chaged within a stream, not even with
reopening the codec (ok you can probably change it but the file would be
broken)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-devel mailing list