#10845: Crash in VVC decoder when open MPEG-TS not from start or after seek.
-------------------------------------+-------------------------------------
Reporter: | Type: defect
Aleksoid1978 |
Status: new | Priority: normal
Component: avcodec | Version:
Keywords: VVV MPEGTS | unspecified
crash | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
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
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10845>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac
To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".