FFMPEG has trouble processing file while VLC plays mp2ts just fine
Hello, I have a major problem trying to read a video file using ffmpeg, while VLC has no trouble replaying it. The video file can be processed by ffmpeg, but it loses pts, skips multiple frames, and overall acts if video is broken. This is especially evident with silencedetect ... in VLC everything is pristine. Can someone please help? ffmpeg -i dd.m2ts -af silencedetect=noise=0.001 -f null - ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04) configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat 57. 83.100 / 57. 83.100 libavdevice 57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc 54. 7.100 / 54. 7.100 [mpeg2video @ 0x557cbc2dede0] Invalid frame dimensions 0x0. Last message repeated 2 times [mpegts @ 0x557cbc2da840] start time for stream 3 is not set in estimate_timings_from_pts [mpegts @ 0x557cbc2da840] PES packet size mismatch [mpegts @ 0x557cbc2da840] 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 @ 0x557cbc2da840] 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 @ 0x557cbc2da840] 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 @ 0x557cbc2da840] 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 @ 0x557cbc2da840] 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 @ 0x557cbc2da840] 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 [mpegts @ 0x557cbc2da840] Could not find codec parameters for stream 10 (Unknown: none ([13][0][0][0] / 0x000D)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x557cbc2da840] Could not find codec parameters for stream 11 (Unknown: none ([13][0][0][0] / 0x000D)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x557cbc2da840] Could not find codec parameters for stream 12 (Unknown: none ([13][0][0][0] / 0x000D)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpegts, from 'dd.m2ts': Duration: 00:01:00.52, start: 12727.730011, bitrate: 16626 kb/s Program 1040 Metadata: service_name : F|%F%l?1 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 Stream #0:1[0x112]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 246 kb/s Stream #0:2[0x116]: Data: bin_data ([6][0][0][0] / 0x0006) Stream #0:3[0x117]: Data: bin_data ([6][0][0][0] / 0x0006) Stream #0:4[0x511]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:5[0x512]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:6[0x513]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:7[0x51f]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:8[0x711]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:9[0x611]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:10[0x612]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:11[0x613]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:12[0x61f]: Unknown: none ([13][0][0][0] / 0x000D) Program 1041 Metadata: service_name : F|%F%l?2 service_provider: Program 1424 Metadata: service_name : F|K\?|??? service_provider: Program 1044 Metadata: service_name : F|%F%lNW;~ service_provider: Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> wrapped_avframe (native)) Stream #0:1 -> #0:1 (aac (native) -> pcm_s16le (native)) Press [q] to stop, [?] for help [aac @ 0x557cbc3759c0] Number of bands (29) exceeds limit (26). Error while decoding stream #0:1: Invalid data found when processing input Output #0, null, to 'pipe:': Metadata: encoder : Lavf57.83.100 Stream #0:0: Video: wrapped_avframe, yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc Metadata: encoder : Lavc57.107.100 wrapped_avframe Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Metadata: encoder : Lavc57.107.100 pcm_s16le [null @ 0x557cbc3d8520] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 1024 >= 1024 [mpegts @ 0x557cbc2da840] PES packet size mismatch05 bitrate=N/A speed=8.12x [aac @ 0x557cbc3759c0] Input buffer exhausted before END element found Error while decoding stream #0:1: Invalid data found when processing input frame= 1798 fps=243 q=-0.0 Lsize=N/A time=00:01:00.52 bitrate=N/A speed=8.17x video:927kB audio:11272kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown 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. Can someone please help? -- Sent from: http://www.ffmpeg-archive.org/
Have you tried increasing the 'analyzeduration' and 'probesize' parameters?
On 12/15/2020 6:21 AM, Bryce McLeod wrote:
Have you tried increasing the 'analyzeduration' and 'probesize' parameters?
Depending on what's in the container, those could certainly help find things; go long, the only thing it'll hurt is the processing time. Also, try a newer version- "ffmpeg version 3.4.8-0ubuntu0.2" is rather old and the processing could well have been improved since then. You can find links to new builds at https://ffmpeg.org/download.html; I'd probably get one of the static builds and try with that. z!
On 12/15/2020 04:06 AM, serge2school wrote:
Hello,
I have a major problem trying to read a video file using ffmpeg, while VLC has no trouble replaying it.
The video file can be processed by ffmpeg, but it loses pts, skips multiple frames, and overall acts if video is broken. This is especially evident with silencedetect ... in VLC everything is pristine. Can someone please help?
My experience in such cases is to run a test by transcoding video only and excluding audio ('-an'). If that works, then remux the transcodeed video with the original audio and subtitles and you're done. I don't know why that works but I suspect the audio has some time stamp errors that are leading ffmpeg astray.
ffmpeg -i dd.m2ts -af silencedetect=noise=0.001 -f null - ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04) configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared libavutil 55. 78.100 / 55. 78.100 libavcodec 57.107.100 / 57.107.100 libavformat 57. 83.100 / 57. 83.100 libavdevice 57. 10.100 / 57. 10.100 libavfilter 6.107.100 / 6.107.100 libavresample 3. 7. 0 / 3. 7. 0 libswscale 4. 8.100 / 4. 8.100 libswresample 2. 9.100 / 2. 9.100 libpostproc 54. 7.100 / 54. 7.100 [mpeg2video @ 0x557cbc2dede0] Invalid frame dimensions 0x0. Last message repeated 2 times [mpegts @ 0x557cbc2da840] start time for stream 3 is not set in estimate_timings_from_pts [mpegts @ 0x557cbc2da840] PES packet size mismatch [mpegts @ 0x557cbc2da840] 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 @ 0x557cbc2da840] 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 @ 0x557cbc2da840] 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 @ 0x557cbc2da840] 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 @ 0x557cbc2da840] 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 @ 0x557cbc2da840] 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 [mpegts @ 0x557cbc2da840] Could not find codec parameters for stream 10 (Unknown: none ([13][0][0][0] / 0x000D)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x557cbc2da840] Could not find codec parameters for stream 11 (Unknown: none ([13][0][0][0] / 0x000D)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 0x557cbc2da840] Could not find codec parameters for stream 12 (Unknown: none ([13][0][0][0] / 0x000D)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpegts, from 'dd.m2ts': Duration: 00:01:00.52, start: 12727.730011, bitrate: 16626 kb/s Program 1040 Metadata: service_name : F|%F%l?1 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 Stream #0:1[0x112]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 246 kb/s Stream #0:2[0x116]: Data: bin_data ([6][0][0][0] / 0x0006) Stream #0:3[0x117]: Data: bin_data ([6][0][0][0] / 0x0006) Stream #0:4[0x511]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:5[0x512]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:6[0x513]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:7[0x51f]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:8[0x711]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:9[0x611]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:10[0x612]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:11[0x613]: Unknown: none ([13][0][0][0] / 0x000D) Stream #0:12[0x61f]: Unknown: none ([13][0][0][0] / 0x000D) Program 1041 Metadata: service_name : F|%F%l?2 service_provider: Program 1424 Metadata: service_name : F|K\?|??? service_provider: Program 1044 Metadata: service_name : F|%F%lNW;~ service_provider: Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> wrapped_avframe (native)) Stream #0:1 -> #0:1 (aac (native) -> pcm_s16le (native)) Press [q] to stop, [?] for help [aac @ 0x557cbc3759c0] Number of bands (29) exceeds limit (26). Error while decoding stream #0:1: Invalid data found when processing input Output #0, null, to 'pipe:': Metadata: encoder : Lavf57.83.100 Stream #0:0: Video: wrapped_avframe, yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc Metadata: encoder : Lavc57.107.100 wrapped_avframe Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Metadata: encoder : Lavc57.107.100 pcm_s16le [null @ 0x557cbc3d8520] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 1024 >= 1024 [mpegts @ 0x557cbc2da840] PES packet size mismatch05 bitrate=N/A speed=8.12x [aac @ 0x557cbc3759c0] Input buffer exhausted before END element found Error while decoding stream #0:1: Invalid data found when processing input frame= 1798 fps=243 q=-0.0 Lsize=N/A time=00:01:00.52 bitrate=N/A speed=8.17x video:927kB audio:11272kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
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.
Can someone please help?
-- Sent from: http://www.ffmpeg-archive.org/ _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
-- 14 Dec 2020 -- early in the 2nd wave of pandemic. Yesterday's new cases, China: 24, S.Korea: 1,030, U.S.: 187,901. Yesterday's new deaths, China: 0, S.Korea: 2, U.S.: 1,379. Today, U.S.: 4% of world population, 23% of cases, 19% of deaths. Today, U.S. mortality: Of 10,030,898 resolved cases, 3% are dead. Today, U.S. dead, pandemic: 306,459 (11 mo.), WWII: 419,000 (47 mo.). 22 Jan: U.S. & S.Korea report 1st cases on the same day. 6 Mar, testing to date, S.Korea: 140,000, U.S.: 2000. 6 Mar, test results, S.Korea: 4 hours, U.S.: 1 to 2 weeks. 1 Jun, total care-home deaths, S.Korea: 0, U.S.: 33,000 +/- 7,000. 5 Aug, U.S. testing: only 1/4 of number needed; 4 day results. 1 Sep, Nursing Assoc report: Over 60% of U.S. nurses lack PPE. 18 Sep, U.S. doctors & nurses still acutely lack PPE; 1200 dead. 15 Oct, projected GDP, China: up 1.9%, U.S.: down 3.6%. 19 Oct, CDC report: U.S. test results still take 3 days, average. 12 Nov, National Nurses United: Over 80% of U.S. nurses lack PPE.
Am Di., 15. Dez. 2020 um 10:06 Uhr schrieb serge2school <korn.moffle@hotmail.com>:
I have a major problem trying to read a video file using ffmpeg, while VLC has no trouble replaying it.
Please provide a sample if current FFmpeg git head allows to reproduce. Carl Eugen
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/
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@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¬6C9b3[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@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!
Hi, thank you for looking into it! I have used: 1. TVTest (https://github.com/tsukumijima/TVTest) for Windows and also tried recpt1 (https://github.com/stz2012/recpt1.git) with the same result. I suspect that there is video, audio, and the other tracks are probably some sort of closed caption and TV-related info. It is recording it from a TV tuner. (for some reason, I want to spell it as "tunner") All I really need is video and audio. I do not even need that good of quality. At first, I thought I would just ignore PTS errors, but then the offset gets really off, and I cannot really tell where in the video I am at. The strange characters you are seeing for meta-data - I suspect it is UTF-8 Japanese characters. They always look ugly like that. I assume we need ffmpeg compiled to support Japanese encoding to show it correctly. I am surprised to see these many streams... it is like it is finding streams where none exist. Also, I would assume that with .ts encapsulation it would be much easier to identify everything since the info is after each key frame. For replay, I see that it should be a standard MPEG-2 decoder. They even provide a GIT link for a Japanese version: https://github.com/DBCTRADO/TVTestVideoDecoder/releases I tried it, and there were no errors playing the file. According to the description inside the code, it seems as they are using MPEG-2 VLD to playback. I also noticed they have handlers for: MEDIASUBTYPE_RGB32, MEDIASUBTYPE_IYUV (https://github.com/DBCTRADO/TVTestVideoDecoder/blob/master/doc/TVTestVideoDe...) Since it is reading just fine, I am trying to figure out what we are missing with FFMPEG... -- Sent from: http://www.ffmpeg-archive.org/
One thing I noticed is that there are blocks of 26-34 bytes of 0xff in the file, which could indicate errors. Also, one of the free mpeg-ts analyzers* (search google for them) says that file has 166 continuity errors and -lots- of PCR errors. And 19 PTS errors. *Promax TS Analyser Now I have other things to do with the day. Later, z!
Am Di., 15. Dez. 2020 um 10:06 Uhr schrieb serge2school <korn.moffle@hotmail.com>:
I have a major problem trying to read a video file using ffmpeg, while VLC has no trouble replaying it.
I see very similar issues with vlc playback as with FFmpeg - everything else would be a surprise: The recording has issues which can happen with dvb recordings. If you have further questions, please test current FFmpeg git head first, no other versions are supported on this mailing list. Carl Eugen
participants (5)
-
Bryce McLeod -
Carl Eugen Hoyos -
Carl Zwanzig -
Mark Filipak (ffmpeg) -
serge2school