Opened 3 months ago

Closed 3 months ago

#10845 closed defect (fixed)

Crash in VVC decoder when open MPEG-TS not from start or after seek.

Reported by: Aleksoid1978 Owned by:
Priority: normal Component: avcodec
Version: unspecified Keywords: VVV MPEGTS crash
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

% ffmpeg -ss 00:00:03 -i VVC_UHDTV1_OpenGOP_3840x2160_24fps_SDR.ts output.mp4
ffmpeg version N-113523-g7375a6ca7b-20240204 Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 13.2.0 (crosstool-NG 1.25.0.232_c175b21)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug
--disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libharfbuzz --enable-libvorb
is --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2
 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --e
nable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-lib
openh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuav
s3d --disable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-lib
zvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20240204
  libavutil      58. 36.101 / 58. 36.101
  libavcodec     60. 38.100 / 60. 38.100
  libavformat    60. 20.100 / 60. 20.100
  libavdevice    60.  4.100 / 60.  4.100
  libavfilter     9. 17.100 /  9. 17.100
  libswscale      7.  6.100 /  7.  6.100
  libswresample   4. 13.100 /  4. 13.100
  libpostproc    57.  4.100 / 57.  4.100
Input #0, mpegts, from 'VVC_UHDTV1_OpenGOP_3840x2160_24fps_SDR.ts':
  Duration: 00:01:00.00, start: 1.566667, bitrate: 4706 kb/s
  Program 1
    Metadata:
      service_name    : VVC 4K BT.709 8b V&V
      service_provider: DVB
  Stream #0:0[0x100](eng): Audio: aac_latm (LC) ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp
  Stream #0:1[0x101]: Video: vvc (Main 10) (3[0][0][0] / 0x0033), yuv420p(tv, bt709), 3840x2160, 24 fps, 24 tbr, 90k tbn
Stream mapping:
  Stream #0:1 -> #0:0 (vvc (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (aac_latm (native) -> aac (native))
Press [q] to stop, [?] for help
[vvc @ 0000021bd7570500] Error parsing NAL unit #1.
[vist#0:1/vvc @ 0000021bcd31a300] [dec:vvc @ 0000021bca836100] Error submitting packet to decoder: Invalid data found when processing input
[vvc @ 0000021bd7570500] Error parsing NAL unit #0.
[vist#0:1/vvc @ 0000021bcd31a300] [dec:vvc @ 0000021bca836100] Error submitting packet to decoder: Invalid data found when processing input
[vvc @ 0000021bd7570500] Error parsing NAL unit #1.
[vist#0:1/vvc @ 0000021bcd31a300] [dec:vvc @ 0000021bca836100] Error submitting packet to decoder: Invalid data found when processing input
[vvc @ 0000021bd7570500] Error parsing NAL unit #0.
[vist#0:1/vvc @ 0000021bcd31a300] [dec:vvc @ 0000021bca836100] Error submitting packet to decoder: Invalid data found when processing input
[vvc @ 0000021bd7570500] Error parsing NAL unit #1.
[vist#0:1/vvc @ 0000021bcd31a300] [dec:vvc @ 0000021bca836100] Error submitting packet to decoder: Invalid data found when processing input
[vvc @ 0000021bd7570500] Error parsing NAL unit #0.
[vist#0:1/vvc @ 0000021bcd31a300] [dec:vvc @ 0000021bca836100] Error submitting packet to decoder: Invalid data found when processing input
[vvc @ 0000021bd7570500] Error parsing NAL unit #0.
[vist#0:1/vvc @ 0000021bcd31a300] [dec:vvc @ 0000021bca836100] Error submitting packet to decoder: Invalid data found when processing input
[vvc @ 0000021bd7570500] Error parsing NAL unit #0.
[vist#0:1/vvc @ 0000021bcd31a300] [dec:vvc @ 0000021bca836100] Error submitting packet to decoder: Invalid data found when processing input
[vvc @ 0000021bd7570500] Error parsing NAL unit #0.
[vist#0:1/vvc @ 0000021bcd31a300] [dec:vvc @ 0000021bca836100] Error submitting packet to decoder: Invalid data found when processing input

After this ffmpeg just close and output.mp4 is empty.

-ss 00:00:03 - this is just for example, you can take 5-10-40 seconds. It also appears on other MPEG-TS with VVC files.

The same behavior in third-party applications that use ffmpeg for decoding, for example in https://github.com/Aleksoid1978/MPC-BE

link for file - https://disk.yandex.ru/d/5BAAU1dzNUGE7g

Change History (3)

comment:1 by v0lt, 3 months ago

The mentioned sample was taken from this page:
https://dvb.org/specifications/verification-validation/vvc-test-content/
There is a peculiarity of downloading. After the first click Download will ask for e-mail, you can ignore it, when you ask again, it gives download.

comment:2 by Frank Plowman, 3 months ago

Status: newopen

The crash is resolved by 5076fa30ab6f36955dc711f348a16fd063c1e962. The file still fails to decode however.

comment:3 by Aleksoid1978, 3 months ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.