[FFmpeg-user] ffmpeg finds errors in AC3 but VLC player plays it without problems

Mahesh Velankar mvelanka at gmail.com
Fri Dec 2 14:08:00 EET 2022

I have got a mpeg TS with following composition

Input #0, mpegts, from 'f-15719-ccrslc_received_1669838970.ts':
  Duration: 00:04:57.67, start: 39582.509200, bitrate: 2528 kb/s
  Program 3
    Stream #0:0[0x31]: Video: h264 (Main), 1 reference frame ([27][0][0][0]
/ 0x001B), yuv420p(tv, bt709, progressive, left), 856x480 (864x480) [SAR
320:321 DAR 16:9], 30 fps, 29.97 tbr, 90k tbn, 60 tbc
    Stream #0:1[0x34](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
5.1(side), fltp, 384 kb/s
    Stream #0:2[0x35](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
stereo, fltp, 128 kb/s
    Stream #0:3[0x36](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
stereo, fltp, 192 kb/s (visual impaired) (descriptions)
    Stream #0:4[0x37]: Data: klv (KLVA / 0x41564C4B)

Stream #0:1 and Stream #0:3 : Both these streams are free of any
errors, and can show frames info for all the audio frames. However when I
do the following to analyze the #0:2 stream, ffprobe shows the error.

ffprobe -i my_test_clip.ts -select_streams a:1 -show_frames -loglevel

This command gives me the following output (removed unwanted part from
[mpegts @ 0x29f0ac0] PES packet size mismatch
[AVIOContext @ 0x29f98c0] Statistics: 96005956 bytes read, 2 seeks

However when I play this TS in VLC player it can play all the three AC3
streams without error.

Why does that happen? How can this be corrected?

More information about the ffmpeg-user mailing list