[FFmpeg-user] mpeg2video errors

dan dandenson at gmail.com
Sat Jan 2 20:44:56 EET 2021


On Sat, Jan 2, 2021 at 11:14 AM dan <dandenson at gmail.com> wrote:
>
> Hello all, I'm getting a number of mpeg2 errors
> My encode:
> ffmpeg -hwaccel qsv -i http://10.39.40.173:5004/auto/v2.1 -c:v
> hevc_qsv -c:a aac -b:a 64k -profile:v main -global_quality 30 -g 48
> -keyint_min 48 -sc_threshold 0 -hls_time 2 -hls_list_size 8
> -hls_segment_type mpegts -hls_flags delete_segments
> -hls_segment_filename video_%03d.ts video.m3u8
>
> i've tried w/o -hwaccel and also using vaapi and I get these same
> errors.  This same stream plays very happily on VLC and mplayer and no
> errors show up in the logs.
>
> Source is an HDHomeRun Quadro.  This manifests by the encode having
> more and more errors over time to the point that the output doesn't
> play and there are "non-monotonous DTS in output stream 0:1" errors
> (sorry, takes 10 hours and I didn't copy that output)
>
> This seems like an ffmpeg issue but I don't know where to look next.
>
> ubuntu
> ffmpeg version 4.3.1-4ubuntu1 Copyright (c) 2000-2020 the FFmpeg developers
>   built with gcc 10 (Ubuntu 10.2.0-9ubuntu2)
>
>
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 63
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 64
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 65
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 66
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 67
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 14 46
> [mpeg2video @ 0x55ff855da480] slice mismatch
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 2 59
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 7 37
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 27 38
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 11 47
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 7 27
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 0 28
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 6 48
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 15 39
> [mpeg2video @ 0x55ff855da480] Invalid mb type in P-frame at 5 49
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 6 50
> [mpeg2video @ 0x55ff855da480] Invalid mb type in P-frame at 3 51
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 1 40
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 16 52
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 8 41
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 4 42
> [mpeg2video @ 0x55ff855da480] 00 motion_type at 9 43
> [mpeg2video @ 0x55ff855da480] invalid cbp -1 at 1 44
> [mpeg2video @ 0x55ff855da480] Warning MVs not available
>
>
> [mpeg2video @ 0x55ff855da480] ac-tex damaged at 76 53bitrate=N/A
> dup=100 drop=0 speed=1.01x
> [mpeg2video @ 0x55ff855da480] Warning MVs not available
> [mpeg2video @ 0x55ff855da480] concealing 693 DC, 693 AC, 693 MV errors
> in I frame
>
> [mpegts @ 0x55ff85593300] Packet corrupt (stream = 0, dts =
> 4179746053). drop=0 speed=1.01x
> [mpeg2video @ 0x55ff855da480] slice below image (69 >= 68)
> Error while decoding stream #0:0: Invalid data found when processing input

just some more details, here is the output just after the first ts is
made.   The errors will up continuously after this command.
root at video1:/var/www/html/2.1# ffmpeg -hwaccel qsv -i
http://10.39.40.173:5004/auto/v2.1 -c:v hevc_qsv -c:a aac -b:a 64k
-profile:v main -global_quality 30 -g 48 -keyint_min 48 -sc_threshold
0 -hls_time 2 -hls_list_size 8 -hls_segment_type mpegts -cc_stream_map
"ccgroup:cc,instreamid:CC1,language:en" -hls_flags delete_segments
-hls_segment_filename 720p_%03d.ts 720p.m3u8
ffmpeg version 4.3.1-4ubuntu1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10 (Ubuntu 10.2.0-9ubuntu2)
  configuration: --prefix=/usr --extra-version=4ubuntu1
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl
--disable-stripping --enable-avresample --disable-filter=resample
--enable-gnutls --enable-ladspa --enable-libaom --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio
--enable-libcodec2 --enable-libdav1d --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg --enable-libopenmpt
--enable-libopus --enable-libpulse --enable-librabbitmq
--enable-librsvg --enable-librubberband --enable-libshine
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt
--enable-libssh --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2
--enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2
--enable-omx --enable-openal --enable-opencl --enable-opengl
--enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394
--enable-libdrm --enable-libiec61883 --enable-nvenc
--enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  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
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[mpeg2video @ 0x55bd8aece580] Invalid frame dimensions 0x0.
    Last message repeated 18 times
Input #0, mpegts, from 'http://10.39.40.173:5004/auto/v2.1':
  Duration: N/A, start: 47689.440967, bitrate: N/A
  Program 1
    Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] /
0x0002), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9],
Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Side data:
      cpb: bitrate max/min/avg: 80000000/0/0 buffer size: 9781248 vbv_delay: N/A
    Stream #0:1[0x34](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
stereo, fltp, 192 kb/s
    Stream #0:2[0x35](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
stereo, fltp, 96 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> hevc (hevc_qsv))
  Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
Output #0, hls, to '720p.m3u8':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0: Video: hevc (hevc_qsv), nv12, 1920x1080 [SAR 1:1 DAR
16:9], q=2-31, 1000 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
    Metadata:
      encoder         : Lavc58.91.100 hevc_qsv
    Side data:
      cpb: bitrate max/min/avg: 0/0/1000000 buffer size: 0 vbv_delay: N/A
    Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp, 64 kb/s
    Metadata:
      encoder         : Lavc58.91.100 aac
[hls @ 0x55bd8aee7940] Opening '720p_000.ts' for writingrate=N/A
dup=29 drop=0 speed=2.59x
[hls @ 0x55bd8aee7940] Opening '720p.m3u8.tmp' for writing
[hls @ 0x55bd8aee7940] Opening '720p_001.ts' for writingrate=N/A
dup=29 drop=0 speed=2.35x
[hls @ 0x55bd8aee7940] Opening '720p.m3u8.tmp' for writing
[hls @ 0x55bd8aee7940] Opening '720p_002.ts' for writingrate=N/A
dup=29 drop=0 speed=2.24x
[hls @ 0x55bd8aee7940] Opening '720p.m3u8.tmp' for writing
[hls @ 0x55bd8aee7940] Opening '720p_003.ts' for writing
[hls @ 0x55bd8aee7940] Opening '720p.m3u8.tmp' for writing
frame=  194 fps= 62 q=-0.0 Lsize=N/A time=00:00:06.30 bitrate=N/A
dup=29 drop=0 speed=2.01x
video:8928kB audio:49kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: unknown
[aac @ 0x55bd8aef87c0] Qavg: 149.014
Exiting normally, received signal 2.


also, HDHR shows 100 signal etc so that stream should in theory be good.
Frequency195.000 MHz
Program Number1
Modulation Lock8vsb
Signal Strength100%
Signal Quality100%
Symbol Quality100%
Streaming Rate13.476 Mbps
Resource Lock10.39.40.133


More information about the ffmpeg-user mailing list