[FFmpeg-devel] RTP hint track with h264 encoded with b-frames

Michael Niedermayer michaelni at gmx.at
Thu Jun 27 17:06:10 CEST 2013


On Fri, Jun 21, 2013 at 04:17:32PM +0000, Anders Rein wrote:
> When calculating RTP timestamp for RTP hint track (isom formats), ffmpeg uses the pts of the packet to calculate the timestamp. The dts for the RTP packet is then set to the pts of the RTP packet.
> 
> Now, if the video is encoded with b-frames, the pts is not always increasing. Since ffmpeg uses the pts as dts for the RTP packets, the delta dts becomes negative between some of the packets. This causes the mov muxer to write a negative entry to the stts box.
> 
> This again causes ffmpeg to complain about illegal STTS entry when demuxing the file again.
> 
> This can't be correct behaviour right?

no, sounds like a bug, but this isnt exactly my area so i cant say
whats correct without checking specs ...

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

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130627/02ea23dd/attachment.asc>


More information about the ffmpeg-devel mailing list