[FFmpeg-user] Report what's actually in PES headers

Mark Filipak markfilipak.imdb at gmail.com
Fri Jun 7 19:25:01 EEST 2024


I've asked this many times regarding VOBs, now I ask regarding M2TSes.

Is there some parameter that can be set to force FFmpeg to report what's actually in PES headers 
instead of allowing it to make things up?

'-vf framecrc' reports this:

          DTS         PTS
     +-----------+
1,  ¦ 504219120 ¦ 504219120,      960,     1400, 0xdffda506
     +-----------+

The actual situation is this:

PES header
    stream_id: BD (private stream 1)
    PES_packet_length: 1408
    PES_scrambling: 0
    PES_priority: False
    data_alignment: False
    copyright: False
    original_or_copy: False
    PTS_flag: True
  +-----------------+
  ¦ DTS_flag: False ¦
  +-----------------+
    ESCR_flag: False
    ES_rate_flag: False
    DSM_trick_mode_flag: False
    additional_copy_info_flag: False
    PES_CRC_flag: False
    PES_extension_flag: False
    PES_header_data_length: 5
    PTS: 504219120

There is _no_ DTS.

Is this nonsense the cause of so many discontinuous DTS alerts (and other strangeness)?
How consistent is pretend DTS values across all FFmpeg tools and filters?

--Mark.


More information about the ffmpeg-user mailing list