View Full Version : Muxing B-frames
Lupus_aka_Den
19th December 2004, 15:09
For example, GOP have IBP struct and encoder set time for each frame:
I - 0
B - 20
P - 10
Of course I must muxing this frames in rigth order (IBP). How set duration for each sample in 'time-to-sample atom (stts)'? Or muxing IBP in one frame with duration equal 30?
bond
21st December 2004, 17:40
afaik the values under stts only differ if the video stream uses a variable framerate (meaning different frames have different durations). with constant framerates all frames have the same duration value (eg only one line)
you might want to check the output created by other muxers
Lupus_aka_Den
22nd December 2004, 09:32
Originally posted by bond
afaik the values under stts only differ if the video stream uses a variable framerate (meaning different frames have different durations). with constant framerates all frames have the same duration value (eg only one line)
you might want to check the output created by other muxers
I found a special atom 'ctts' which don't describe in MPEG-4 standart. This atom contain compozition time offset. Demuxer mast add this time offsets for each sample.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.