[FFmpeg-trac] #88(undetermined:open): MPEG2 Transport Stream Demuxer - Incorrect PTS/DTS for Stream

FFmpeg trac at avcodec.org
Fri Apr 22 00:19:30 CEST 2011


#88: MPEG2 Transport Stream Demuxer - Incorrect PTS/DTS for Stream
------------------------+---------------------------
Reporter:  jlsantiago0  |       Owner:
    Type:  defect       |      Status:  open
Priority:  normal       |   Component:  undetermined
 Version:  git          |  Resolution:
Keywords:               |  Blocked By:
Blocking:               |  Reproduced:  0
Analyzed:  0            |
------------------------+---------------------------

Comment (by jlsantiago0):

 One interesting Note:

 I looked at the PTS and DTS returned by av_read_frame() in ffplay and they
 are not set. ffplay uses av_open_input_file().

 However,

 I wrote some test code in my own application that uses
 avio_alloc_context(), av_open_input_stream() where I provide a a 4KB
 buffer to the AVIOContext, and implement a read_packet() and seek() that
 uses the C runtime read() and seek() calls and the av_read_frame() returns
 the correct PTS and DTS for the H.264 stream. It works correctly in this
 case in my own application using the avio_alloc_context(),
 av_open_input_stream() interface, but does not work in FFPLAY application.

-- 
Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/88#comment:7>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list