[Libav-user] Encoding Audio+Video : Assigning PTS value for Audio Frame ?

ashika umanga umanga.forums at gmail.com
Mon Apr 23 03:35:45 CEST 2012


Greetings all,

In the AVFrame->pts it says :

/**
     * presentation timestamp in time_base units (time when frame should be
shown to user)
     * If AV_NOPTS_VALUE then frame_rate = 1/time_base will be assumed.
     * - encoding: MUST be set by user.
     * - decoding: Set by libavcodec.
     */

But according to the"muxing.c" example (
http://ffmpeg.org/doxygen/trunk/muxing_8c-source.html )  , a PTS value is
only assigned to the video-frames but not for audio frames.
Any tips on this?

Best regards,
umanga
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120423/e019997f/attachment.html>


More information about the Libav-user mailing list