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

serge2school korn.moffle at hotmail.com
Tue Dec 15 11:06:20 EET 2020


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/


More information about the ffmpeg-user mailing list