[Libav-user] Calculating DTS PTS H.264

Клыков Николай klikovnick at mail.ru
Mon Sep 15 15:22:36 CEST 2014


 Hello, i'm trying to get h.264 rtp stream and write it to mp4 container via live555+ffmpeg. I can get SPS+PPS params from stream and feed it to ffmpeg decoder, so decoding works fine. But i can't properly write nals to mp4 container. I think, i should detect first and last nals of frame, write them to avpacket and fill dts, pts and duration fields. Please, tell me how can i do that.
------
Klykov Nickolay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140915/e9a6a13f/attachment.html>


More information about the Libav-user mailing list