Skip to content

ffmpeg crashed while trying to decode h264. #17

@ibashe

Description

@ibashe

I tried to decode h264 to yuv and ffmpeg crashed.
Here is the log and the ffmpeg command.
I've tried different h264 file and same result.

root@unassigned-hostname:~/vmedia# ffmpeg -codec:v h264_v4l2m2m -i space.h264 out.yuv ffmpeg -codec:v h264_v4l2m2m -i space.h264 out.yuv
ffmpeg version 5.1.6-0+deb12u1 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --prefix=/usr --extra-version=0+deb12u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --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-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
[h264 @ 0x560f53f49d00] non-existing SPS 0 referenced in buffering period
Last message repeated 1 times
Input #0, h264, from 'space.h264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1200k tbn
[h264_v4l2m2m @ 0x560f53f4fb80] Using device /dev/video0
[h264_v4l2m2m @ 0x560f53f4fb80] driver 'virtio-media' on card 'ffmpeg decoder adapter' in mplane mode
[h264_v4l2m2m @ 0x560f53f4fb80] requesting formats: output=H264 capture=NV12
Stream mapping:
Stream #0:0 -> #[h264 @ 0x796b340038c0] non-existing SPS 0 referenced in buffering period
0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
Press [q] to stop, [?] for help
[2025-02-11T00:09:55.993939439+00:00 INFO devices::virtio::video::decoder::backend::ffmpeg] resolution changed to (1280, 720)
Output #0, rawvideo, to 'out.yuv':
Metadata:
encoder : Lavf59.27.100
Stream #0:0: Video: rawvideo (NV12 / 0x3231564E), nv12(progressive), 1280x720, q=2-31, 276480 kb/s, 25 fps, 25 tbn
Metadata:
encoder : Lavc59.37.100 rawvideo
[2025-02-11T00:09:58.652491037+00:00 ERROR devices::proxy] recv from pcivirtio-fs child device process failed: tube was disconnected
Segmentation fault

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions