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-requ...@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.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to