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

Carl Zwanzig cpz at tuunq.com
Wed Dec 16 04:59:54 EET 2020


Just playing around-

(and yes, I am trimming the output)

---larger sizes
$ /c/bin/ffmpeg-20200519-74dfc88-win64-static/bin/ffprobe iFWC.m2ts 
-analyzeduration 5000M -probesize 5000M

---a few months old
ffprobe version git-2020-05-19-74dfc88 Copyright (c) 2007-2020 the FFmpeg 
developers
   built with gcc 9.3.1 (GCC) 20200513

[aac @ 00000000004dbc00] Multiple frames in a packet.
[mpeg2video @ 00000000004dab80] Invalid frame dimensions 0x0.
     Last message repeated 13 times

---Lots of these errors
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1096978559).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1096981562).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1096984565).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1096987568).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1096990571).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1096993574).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1099894472).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1099897475).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100137715).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100335913).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100341919).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 1, dts = 1100310863).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100344922).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100350928).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100353931).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100359937).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100362940).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100365943).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100371949).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = NOPTS).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100374952).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100377955).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100380958).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100383961).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100389967).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100395973).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 1, dts = 1100366543).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100398976).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 1, dts = 1100372303).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100401979).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100404982).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100407985).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 1, dts = 1100379983).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100410988).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100413991).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 1, dts = 1100385743).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100419997).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100423000).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100426003).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100429006).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100432009).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100435012).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 1, dts = 1100408783).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100438015).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 1, dts = 1100420303).
[mpegts @ 00000000004d6800] Packet corrupt (stream = 0, dts = 1100456033).
[mpegts @ 00000000004d6800] PES packet size mismatch
[mpegts @ 00000000004d6800] Packet corrupt (stream = 1, dts = 1101480143).
[mpegts @ 00000000004d6800] start time for stream 3 is not set in 
estimate_timings_from_pts
[mpegts @ 00000000004d6800] start time for stream 10 is not set in 
estimate_timings_from_pts
[mpegts @ 00000000004d6800] PES packet size mismatch
[mpegts @ 00000000004d6800] Packet corrupt (stream = 1, dts = 1101480143).
[mpegts @ 00000000004d6800] 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 @ 00000000004d6800] 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 @ 00000000004d6800] 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 @ 00000000004d6800] 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 @ 00000000004d6800] 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 @ 00000000004d6800] 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 'iFWC.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], 101629 kb/s, 
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, 216 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:

---strings like this are seldom a good sign
       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
Unsupported codec with id 96272 for input stream 2
Unsupported codec with id 100359 for input stream 3
Unsupported codec with id 0 for input stream 4
Unsupported codec with id 0 for input stream 5
Unsupported codec with id 0 for input stream 6
Unsupported codec with id 0 for input stream 7
Unsupported codec with id 0 for input stream 8
Unsupported codec with id 0 for input stream 9
Unsupported codec with id 98306 for input stream 10

cpz at moyasta MINGW64 /d/video
$


Checking with MediaInfo, much of the metadata looks OK then we get items like:

Menu
ID                                       : 257 (0x101)
Menu ID                                  : 1056 (0x420)
List                                     : 273 (0x111) (MPEG Video) / 274 
(0x112) (AAC) / 276 (0x114) (ARIB STD B24/B37, Japanese) / 277 (0x115) (ARIB 
STD B24/B37) / 2064 (0x810) () / 2065 (0x811) () / 2070 (0x816) () / 2074 
(0x81A) () / 2075 (0x81B) () / 2079 (0x81F) ()
Language                                 :  /  / Japanese
Service name                             : |Õ¸ÆìÓ
Service type                             : digital television
UTC 2020-12-14 22:00:00                  : 
ja:=jJAPAN!Z?XFb!_¯Ã­ù!³éÜ3(2h¬6C­9b3[4UDj"&8rDL;v8NH>8:zs8r:9E@![zV / 
ja:Bg9%I>!?M5$>&IJÎG.Cf2~NI5O"H/!³ùóÝ¿ù¸å4LÎN3;Dê2r7h&8rDL;v8NH>8:·¿8r:9E@Î2~NI"&3(?4ʤ?XFbÎ3(òLnGz¯Ã­ù!¬¢ìó¸!Þµ«Î9b3[4UDj 
/ magazines/reports/documentary /  / 00:54:00 /
UTC 2020-12-14 22:54:00                  : 
ja:My!!Routine!AB at M[È@16uÎ;~4V!AzV / 
ja:100:PÞÇ7r9/Ë!3F3&Ç3hLv¹ë¢ÎM-L>?MÎFH<+Î7r9/K!!AÞ¤þëùÆ£ùóò³Ã½ê65¨Þ¹!"&GPM%!!3A_7M&?M 
/ user defined /  / 00:06:00 /
UTC 2020-12-15 14:45:00                  :  /  /  /  / 01:00:00 /
UTC 2020-12-17 19:00:00                  : 
ja:VSMr!ZMh=5Ï:G=*2s4;~4V¹Ú·ãë!½ÎFbMF¬L@é«Ë"&BABAMrL>>lLL![zVzX / 
ja:Mh=5Ï:G=*2s4;~4V¹Ú·ãë!5$ËÊëFbMFò8x3+!Mr5?MÀ±Îí±ÇBgÏ·ã®!"&LZB<Bs:HþD9@%CRLiþD9_7Þµßþ>.7*=\!DBABAMrL>>lLL0l5sBgJ|=P! 
/ user defined /  / 00:57:00 /



It entirely possible that something in ffmpeg doesn't like the encodings of 
those tags and gets confused.

On 12/15/2020 1:06 AM, serge2school wrote:
> It seems as if does not really fully know this format... The video is 
> generated by video recording program that records a broadcast. I tried 
> TVTest (https://github.com/tsukumijima/TVTest)  for Windows and also
> tried recpt1 (https://github.com/stz2012/recpt1.git) and both of them
> produce the same output.
Are those trying to read and understand the file? (That isn't clear.) What 
was used to record this?

Later,

z!



More information about the ffmpeg-user mailing list