[FFmpeg-user] FFMPEG has trouble processing file while VLC plays mp2ts just fine

serge2school korn.moffle at hotmail.com
Wed Dec 16 03:46:52 EET 2020


I continue to have problem with getting ffmpeg to correctly process the video
file that VLC has no problem playing.

sample file: https://0x0.st/iFWC.m2ts

As per suggestion, I tried upgrading ffmpeg to 4.3 and probesize and
analyzeduration:

ffmpeg -i aa.m2ts -analyzeduration 2147M -probesize 2147M

This is the output (which seems to be similar to me):

ffmpeg -i aa.m2ts -analyzeduration 2147M -probesize 2147M
./snap/bin/ffmpeg -i aa.m2ts -analyzeduration 2147M -probesize 2147M

Error: unable to open display 
ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
z  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix= --prefix=/usr --disable-debug --disable-doc
--disable-static --enable-cuda --enable-cuda-sdk --enable-cuvid
--enable-libdrm --enable-ffplay --enable-gnutls --enable-gpl --enable-libass
--enable-libfdk-aac --enable-libfontconfig --enable-libfreetype
--enable-libmp3lame --enable-libnpp --enable-libopencore_amrnb
--enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2
--enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
--enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc
--enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect
--enable-shared --enable-vaapi --enable-vdpau --enable-version3
--enable-xlib
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Trailing option(s) found in the command: may be ignored.
[aac @ 0x563e2d88fbc0] Multiple frames in a packet.
[mpeg2video @ 0x563e2d88e940] Invalid frame dimensions 0x0.
    Last message repeated 13 times
[mpegts @ 0x563e2d888840] start time for stream 2 is not set in
estimate_timings_from_pts
[mpegts @ 0x563e2d888840] start time for stream 3 is not set in
estimate_timings_from_pts
[mpegts @ 0x563e2d888840] start time for stream 10 is not set in
estimate_timings_from_pts
[mpegts @ 0x563e2d888840] PES packet size mismatch
[mpegts @ 0x563e2d888840] Packet corrupt (stream = 1, dts = 1101480143).
[mpegts @ 0x563e2d888840] Could not find codec parameters for stream 4
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[mpegts @ 0x563e2d888840] Could not find codec parameters for stream 5
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[mpegts @ 0x563e2d888840] Could not find codec parameters for stream 6
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[mpegts @ 0x563e2d888840] Could not find codec parameters for stream 7
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[mpegts @ 0x563e2d888840] Could not find codec parameters for stream 8
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[mpegts @ 0x563e2d888840] Could not find codec parameters for stream 9
(Unknown: none ([13][0][0][0] / 0x000D)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, mpegts, from 'aa.m2ts':
  Duration: 00:01:00.57, start: 12178.529589, bitrate: 16521 kb/s
  Program 1056 
    Metadata:
      service_name    : ?|ո???
      service_provider: 
    Stream #0:0[0x111]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 29.97 fps,
29.97 tbr, 90k tbn, 59.94 tbc
    Side data:
      cpb: bitrate max/min/avg: 20000000/0/0 buffer size: 9781248 vbv_delay:
N/A
    Stream #0:1[0x112]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp, 184 kb/s
    Stream #0:2[0x114]: Subtitle: arib_caption (Profile A) ([6][0][0][0] /
0x0006)
    Stream #0:3[0x115]: Data: bin_data ([6][0][0][0] / 0x0006)
    Stream #0:4[0x810]: Unknown: none ([13][0][0][0] / 0x000D)
    Stream #0:5[0x811]: Unknown: none ([13][0][0][0] / 0x000D)
    Stream #0:6[0x816]: Unknown: none ([13][0][0][0] / 0x000D)
    Stream #0:7[0x81a]: Unknown: none ([13][0][0][0] / 0x000D)
    Stream #0:8[0x81b]: Unknown: none ([13][0][0][0] / 0x000D)
    Stream #0:9[0x81f]: Unknown: none ([13][0][0][0] / 0x000D)
  Program 1057 
    Metadata:
      service_name    : ?|ո???
      service_provider: 
  Program 1058 
    Metadata:
      service_name    : ?|ո???
      service_provider: 
  Program 1060 
    Metadata:
      service_name    : ?|ո???NW;~
      service_provider: 
  Program 1440 
    Metadata:
      service_name    : ?|ո???
      service_provider: 
  No Program
    Stream #0:10[0x12]: Data: epg
At least one output file must be specified


I hoped that maybe ffmpeg is missing some codec, so I also tried to see if I
can access it using libav so I wrote a simple program to check, and there is
definitely a pts error - I suspect because I am not reading the file
correctly. If I can get FFMPEG to read the file, I am certain that
everything else will resolve itself as well.

What is wrong with the format?




--
Sent from: http://www.ffmpeg-archive.org/


More information about the ffmpeg-user mailing list