Ubuntu-Mantic-Arm64 ffplay Segmentation Fault with mp4 videos

Bug #2039476 reported by JF Lim
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ffmpeg (Ubuntu)
Expired
Undecided
Unassigned
sg3-utils (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Ubuntu-Mantic 23.10
Desktop Environement: Gnome-45
Device: Arm64
ffmpeg/mantic,now 7:6.0-6ubuntu1 arm64 [installed,auto-removable]

Encounter Segmentation Fault when using ffplay to play a mp4 video

jfl@jfl-mantic:~$ ffplay -vcodec h264_v4l2m2m -i '/media/jfl/Elements/GT_KING_PRO/videos/Big Buck Bunny 60fps 4K - Official Blender Foundation Short Film [aqz-KE-bpKQ].mp4'
ffplay version 6.0-6ubuntu1 Copyright (c) 2003-2023 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.2.0-2ubuntu1)
  configuration: --prefix=/usr --extra-version=6ubuntu1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --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-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil 58. 2.100 / 58. 2.100
  libavcodec 60. 3.100 / 60. 3.100
  libavformat 60. 3.100 / 60. 3.100
  libavdevice 60. 1.100 / 60. 1.100
  libavfilter 9. 3.100 / 9. 3.100
  libswscale 7. 1.100 / 7. 1.100
  libswresample 4. 10.100 / 4. 10.100
  libpostproc 57. 1.100 / 57. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/jfl/Elements/GT_KING_PRO/videos/Big Buck Bunny 60fps 4K - Official Blender Foundation Short Film [aqz-KE-bpKQ].mp4':
  Metadata:
    major_brand : dash
    minor_version : 0
    compatible_brands: iso6avc1mp41
    creation_time : 2022-09-05T01:46:28.000000Z
  Duration: 00:10:34.57, start: 0.000000, bitrate: 3819 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 9 kb/s, 60 fps, 60 tbr, 15360 tbn (default)
    Metadata:
      creation_time : 2022-09-05T01:46:28.000000Z
      handler_name : ISO Media file produced by Google Inc.
      vendor_id : [0][0][0][0]
[h264_v4l2m2m @ 0xffff8c0084d0] Using device /dev/video0
[h264_v4l2m2m @ 0xffff8c0084d0] driver 'meson-vdec' on card 'Amlogic Video Decoder' in mplane mode
[h264_v4l2m2m @ 0xffff8c0084d0] requesting formats: output=H264/none capture=NM12/yuv420p
Segmentation fault (core dumped) 0KB vq= 131KB sq= 0B f=0/0

jfl@jfl-mantic:~$ ffplay -vcodec h264_v4l2m2m -i '/media/jfl/EADAD935DAD8FEAF/Manjaro-Arm-XFCE/Mnjro-Aarm-XFCE-Documents/Two Steps From Hell - Unleashed-15ZqpVOjZEc.mp4'
ffplay version 6.0-6ubuntu1 Copyright (c) 2003-2023 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.2.0-2ubuntu1)
  configuration: --prefix=/usr --extra-version=6ubuntu1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --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-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil 58. 2.100 / 58. 2.100
  libavcodec 60. 3.100 / 60. 3.100
  libavformat 60. 3.100 / 60. 3.100
  libavdevice 60. 1.100 / 60. 1.100
  libavfilter 9. 3.100 / 9. 3.100
  libswscale 7. 1.100 / 7. 1.100
  libswresample 4. 10.100 / 4. 10.100
  libpostproc 57. 1.100 / 57. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/jfl/EADAD935DAD8FEAF/Manjaro-Arm-XFCE/Mnjro-Aarm-XFCE-Documents/Two Steps From Hell - Unleashed-15ZqpVOjZEc.mp4':
  Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.45.100
  Duration: 00:05:41.50, start: 0.000000, bitrate: 5698 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 5559 kb/s, 60 fps, 60 tbr, 15360 tbn (default)
    Metadata:
      handler_name : ISO Media file produced by Google Inc.
      vendor_id : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name : ISO Media file produced by Google Inc.
      vendor_id : [0][0][0][0]
[h264_v4l2m2m @ 0xffff74020d80] Using device /dev/video0
[h264_v4l2m2m @ 0xffff74020d80] driver 'meson-vdec' on card 'Amlogic Video Decoder' in mplane mode
[h264_v4l2m2m @ 0xffff74020d80] requesting formats: output=H264/none capture=NM12/yuv420p
Segmentation fault (core dumped) 5KB vq= 288KB sq= 0B f=0/0
jfl@jfl-mantic

Whereas on Ubuntu-Jammy, the same mp4 videos can be played on ffplay:

jfl@odroidn2:~$ ffplay -vcodec h264_v4l2m2m -i '/media/jfl/EADAD935DAD8FEAF/Manjaro-Arm-XFCE/Mnjro-Aarm-XFCE-Documents/Two Steps From Hell - Unleashed-15ZqpVOjZEc.mp4'
ffplay version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2003-2021 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --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-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 --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil 56. 70.100 / 56. 70.100
  libavcodec 58.134.100 / 58.134.100
  libavformat 58. 76.100 / 58. 76.100
  libavdevice 58. 13.100 / 58. 13.100
  libavfilter 7.110.100 / 7.110.100
  libswscale 5. 9.100 / 5. 9.100
  libswresample 3. 9.100 / 3. 9.100
  libpostproc 55. 9.100 / 55. 9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/jfl/EADAD935DAD8FEAF/Manjaro-Arm-XFCE/Mnjro-Aarm-XFCE-Documents/Two Steps From Hell - Unleashed-15ZqpVOjZEc.mp4':
  Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.45.100
  Duration: 00:05:41.50, start: 0.000000, bitrate: 5698 kb/s
  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 5559 kb/s, 60 fps, 60 tbr, 15360 tbn, 120 tbc (default)
    Metadata:
      handler_name : ISO Media file produced by Google Inc.
      vendor_id : [0][0][0][0]
  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name : ISO Media file produced by Google Inc.
      vendor_id : [0][0][0][0]
[h264_v4l2m2m @ 0xffff40097a90] Using device /dev/video0
[h264_v4l2m2m @ 0xffff40097a90] driver 'meson-vdec' on card 'Amlogic Video Decoder' in mplane mode
[h264_v4l2m2m @ 0xffff40097a90] requesting formats: output=H264 capture=NM12
jfl@odroidn2:~$

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

AFAIU this is an issue you faced when running the ffplay executable. The ffplay is provided by the ffmpeg binary package, so marking sg3-utils as affected is wrong.

Changed in sg3-utils (Ubuntu):
status: New → Invalid
Revision history for this message
JF Lim (jflim) wrote :

Might have accidently marking "sg3-utils". Does it need to resubmited?

Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Thanks jflim, no need to resubmit. Setting to Invalid is fine.

Are you able to play regular h264 files?

e.g.
$ wget https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4
$ ffplay -vcodec h264 -i big_buck_bunny_720p_1mb.mp4

Maybe something is wrong with v4l, which I'm unable to test at the moment with my current hardware.

Revision history for this message
JF Lim (jflim) wrote (last edit ):
Download full text (3.5 KiB)

Thanks Mitchell Dzurick.

Yes I can play h264 files but it stop/stuck in less than 3 seconds. Oh, may be it is a short video -- 1mb?

jfl@jfl-mantic:~$ wget https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4
--2023-10-22 21:42:11-- https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4
Resolving sample-videos.com (sample-videos.com)... 103.145.51.95
Connecting to sample-videos.com (sample-videos.com)|103.145.51.95|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1055736 (1.0M) [video/mp4]
Saving to: ‘big_buck_bunny_720p_1mb.mp4’

big_buck_bunny_720p 100%[===================>] 1.01M 1.44MB/s in 0.7s

2023-10-22 21:42:13 (1.44 MB/s) - ‘big_buck_bunny_720p_1mb.mp4’ saved [1055736/1055736]

jfl@jfl-mantic:~$ ffplay -vcodec h264 -i big_buck_bunny_720p_1mb.mp4
ffplay version 6.0-6ubuntu1 Copyright (c) 2003-2023 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.2.0-2ubuntu1)
  configuration: --prefix=/usr --extra-version=6ubuntu1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --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-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil 58. 2.100 / 58. 2.100
  libavcodec 60. 3.100 / 60. 3.100
  libavformat 60. 3.100 / 60. 3.100
  libavdevice 60. 1.100 / 60. 1.100
  libavfilter 9. 3.100 / 9. 3.100
  libswscale 7. 1.100 / 7. 1.100
  libswresample 4. 10.100 / 4. 10.100
  libpostproc 57. 1.100 / 57. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'big_buck_bunny_720p_1mb.mp4':
  Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomiso2avc1mp41
    creation_time : 1970-01-01T00:00:00.000000Z
    encoder : Lavf53.24.2
  Duration: 00:00:05.31, start: 0.000000, bitrate: 1589 kb/s
  Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 1205 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
    Metadata:
      creation_time : 1970-01-01T00:00:00.000000Z
      hand...

Read more...

Revision history for this message
Bryce Harrington (bryce) wrote :

That 1mb h264 video indeed looks like just a few seconds in length. Doesn't crash for me.

In general, segmentation fault bugs typically should be reported with a full stacktrace with debug symbols enabled. I suspect the bug reporting hook for ffmpeg has some helper logic for that, which didn't kick in in this case since you filed it against sg3-utils -- and for the same reason it's appeared in the Ubuntu server team's triage queue - we're probably not the right crew for helping with this bug. So, I would suggest that you close this issue and reopen a new one the same way you did before, but against ffmpeg, and see if that captures the stacktrace properly.

If it doesn't then check the ffmpeg project's bug reporting documentation on steps they expect to be done for crashes.

Changed in ffmpeg (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ffmpeg (Ubuntu) because there has been no activity for 60 days.]

Changed in ffmpeg (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.