[FFmpeg-trac] #8439(avcodec:new): audio_frame_queue: Incorrect dequeued timestamps

FFmpeg trac at avcodec.org
Mon Dec 23 22:43:46 EET 2019


#8439: audio_frame_queue: Incorrect dequeued timestamps
----------------------------------+----------------------------------
             Reporter:  Lastique  |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  avcodec   |                  Version:  4.2
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+----------------------------------
 The ff_af_queue_add/ff_af_queue_remove functions do not reproduce the
 timestamps that the user provides in AVFrame::pts. Effectively, the
 af_queue introduces a negative offset in the timestamps produced in
 AVPacket::pts.

 For example, aacenc encoder has a delay of 1024 samples. If the user
 provides AVFrame::pts = 0 in the first frame sent to the encoder then the
 first packet received from the encoder will have AVPacket::pts = -1024.

 Encoders should produce encoded timestamps equivalent to the timestamps
 that were passed by the users in decoded frames.

 This problem was found when using ffmpeg through C API, I'm not sure it
 can be shown from CLI.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8439>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list