I used etcher as I want to install on sdcard to keep data on emmc.
I have same issues on Ubuntu Fenix 1.6 Ubuntu 22.04.3 LTS Linux 5.15.119
:
ffmpeg -c:v h264_v4l2m2m -i https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4 -f rawvideo test.mp4
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-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 'https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2018-04-27T18:33:59.000000Z
Duration: 00:01:01.03, start: 0.000000, bitrate: 839 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 768x432, 711 kb/s, 12 fps, 12 tbr, 24k tbn, 24 tbc (default)
Metadata:
creation_time : 2018-04-27T18:33:59.000000Z
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
encoder : AVC Coding
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2018-04-27T18:33:59.000000Z
handler_name : #Mainconcept MP4 Sound Media Handler
vendor_id : [0][0][0][0]
[h264_v4l2m2m @ 0x55b399a8c0] Using device /dev/video26
[h264_v4l2m2m @ 0x55b399a8c0] driver 'aml-vcodec-dec' on card 'platform:amlogic' in mplane mode
[h264_v4l2m2m @ 0x55b399a8c0] requesting formats: output=H264 capture=YU12
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
Press [q] to stop, [?] for help
Output #0, rawvideo, to 'test.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
encoder : Lavf58.76.100
Stream #0:0(eng): Video: rawvideo (I420 / 0x30323449), yuv420p(progressive), 768x432, q=2-31, 47775 kb/s, 12 fps, 12 tbn (default)
Metadata:
creation_time : 2018-04-27T18:33:59.000000Z
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
encoder : Lavc58.134.100 rawvideo
Segmentation fault
ffmpeg -c:v h264_v4l2m2m -i https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4 test.mp4
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-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 'https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2018-04-27T18:33:59.000000Z
Duration: 00:01:01.03, start: 0.000000, bitrate: 839 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 768x432, 711 kb/s, 12 fps, 12 tbr, 24k tbn, 24 tbc (default)
Metadata:
creation_time : 2018-04-27T18:33:59.000000Z
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
encoder : AVC Coding
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2018-04-27T18:33:59.000000Z
handler_name : #Mainconcept MP4 Sound Media Handler
vendor_id : [0][0][0][0]
[h264_v4l2m2m @ 0x55c7c22900] Using device /dev/video26
[h264_v4l2m2m @ 0x55c7c22900] driver 'aml-vcodec-dec' on card 'platform:amlogic' in mplane mode
[h264_v4l2m2m @ 0x55c7c22900] requesting formats: output=H264 capture=YU12
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x55c8015f90] using cpu capabilities: ARMv8 NEON
[libx264 @ 0x55c8015f90] profile High, level 2.2, 4:2:0, 8-bit
[libx264 @ 0x55c8015f90] 264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=12 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'test.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
encoder : Lavf58.76.100
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 768x432, q=2-31, 12 fps, 12288 tbn (default)
Metadata:
creation_time : 2018-04-27T18:33:59.000000Z
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
encoder : Lavc58.134.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2018-04-27T18:33:59.000000Z
handler_name : #Mainconcept MP4 Sound Media Handler
vendor_id : [0][0][0][0]
encoder : Lavc58.134.100 aac
[libx264 @ 0x55c8015f90] Input picture width (384) is greater than stride (0)
Video encoding failed
[aac @ 0x55c7eaa580] Qavg: 65536.000
[aac @ 0x55c7eaa580] 2 frames left in the queue on closing
Conversion failed!
And for the kernel panic :
ffmpeg -c:v h264_v4l2m2m -num_capture_buffers 128 -i https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4 -f rawvideo -pix_fmt yuv420p test.yuv
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-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 'https://github.com/intel-iot-devkit/sample-videos/raw/master/face-demographics-walking.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2018-04-27T18:33:59.000000Z
Duration: 00:01:01.03, start: 0.000000, bitrate: 839 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 768x432, 711 kb/s, 12 fps, 12 tbr, 24k tbn, 24 tbc (default)
Metadata:
creation_time : 2018-04-27T18:33:59.000000Z
handler_name : ?Mainconcept Video Media Handler
vendor_id : [0][0][0][0]
encoder : AVC Coding
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2018-04-27T18:33:59.000000Z
handler_name : #Mainconcept MP4 Sound Media Handler
vendor_id : [0][0][0][0]
[h264_v4l2m2m @ 0x5581183900] Using device /dev/video26
[h264_v4l2m2m @ 0x5581183900] driver 'aml-vcodec-dec' on card 'platform:amlogic' in mplane mode
[h264_v4l2m2m @ 0x5581183900] requesting formats: output=H264 capture=YU12
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
Press [q] to stop, [?] for help
[ 7283.076375][0 T532 d.] Internal error: BRK handler: f20003e8 [#1] PREEMPT SMP
[ 7283.096387][0 T532 d.] Modules linked in: xt_nat(E) xt_tcpudp(E) nf_conntrack_netlink(E) br_netfilter(E) bridge(E) stp(E) llc(E) overlay(E) mousedev(E) usbhid(E) zram(E) xt_addrtype(E) xt_MASQUERADE(E) xt_conntrack(E) nft_compat(E) nft_counter(E) nft_chain_nat(E) nf_tables(E) nfnetlink(E) nf_nat(E) nf_conntrack(E) nf_defrag_ipv6(E) nf_defrag_ipv4(E) amlogic_multienc(E) amlogic_jpegenc(E) media_sync(E) amvdec_avs2_fb_v4l(E) amvdec_mavs_v4l(E) amvdec_avs2_v4l(E) amvdec_avs3_v4l(E) amvdec_av1_v4l(E) amvdec_av1(E) amvdec_mavs(E) amvdec_avs2(E) amvdec_vp9_v4l(E) amvdec_vp9(E) amvdec_vc1(E) amvdec_mmpeg4_v4l(E) amvdec_mmpeg4(E) amvdec_mmpeg12_v4l(E) amvdec_mmpeg12(E) amvdec_mmjpeg_v4l(E) amvdec_mmjpeg(E) amvdec_h265_v4l(E) amvdec_h265(E) amvdec_h264mvc(E) amvdec_mh264_v4l(E) amvdec_mh264(E) video_framerate_adapter(E) mac80211(E) amlogic_snd_codec_ad82128(E) amlogic_snd_codec_tas5805(E) amlogic_snd_codec_tas5707(E) amlogic_snd_codec_tl1(E) amlogic_snd_codec_t9015(E)
[ 7283.096661][0 T532 d.] amlogic_snd_codec_dummy(E)
[ 7283.616001][4 T19297 ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[ 7284.117208][0 T532 d.] amlogic_jtag(E) amlogic_led(E) amlogic_socinfo(E) dwc_otg(E) dhd(E) amlogic_dvb_ci(E) amlogic_dvb_demux(E) amvdec_ports(E) amlogic_audio_utils(E) i2c_dev(E) dwmac_dwc_qos_eth(E) dwmac_meson(E) cfg80211(E) system_heap(E) stream_input(E) pts_server(E) decoder_common(E) ntfs3(E) zsmalloc(E) firmware(E) sha1_ce(E) media_clock(E) amlogic_snd_soc(E) amlsens(E) mali_kbase(E) dw9714(E) joydev(E) khadas_mcu(E) amlogic_pcie_v2_host(E) amlcam(E) adla_core(E) v4l2_fwnode(E) amlogic_seckey(E) amlogic_host(E) amlogic_rtc(E) v4l2_async(E) amlogic_wireless(E) amlogic_crypto_dma(E) ip_tables(E) x_tables(E) autofs4(E) btrfs(E) xor(E) xor_neon(E) raid6_pq(E) dwmac_meson8b(E) stmmac_platform(E) stmmac(E) aml_drm(E) amlogic_mdio_g12a(E) amlogic_inphy(E) mdio_mux(E) amlogic_phy_debug(E) amlogic_irblaster(E) amlogic_usb(E) amlogic_thermal(E) amlogic_adc(E) amlogic_camera(E) aml_media(E) amlogic_dvb(E) amlogic_watchdog(E) amlogic_input(E) amlogic_pm(E) dvb_core(E) videobuf_core(E)
[ 7284.117282][0 T532 d.] aml_smmu(E) optee(E) amlogic_tee(E) tee(E) amlogic_rng(E) amlogic_spi(E) amlogic_i2c(E) amlogic_mmc(E) cqhci(E) amlogic_efuse_unifykey(E) amlogic_cpufreq(E) amlogic_cpuinfo(E) amlogic_power(E) amlogic_reset(E) pwm_regulator(E) amlogic_pwm(E) amlogic_mailbox(E) amlogic_pinctrl_soc_t7(E) amlogic_gpio(E) amlogic_aoclk_g12a(E) amlogic_clk_soc_t7(E) amlogic_clk(E) amlogic_secmon(E) amlogic_memory_debug(E) pcs_xpcs(E) amlogic_debug(E) page_trace(E) amlogic_hwspinlock(E) gpio_regulator(E) amlogic_uart(E) amlogic_debug_iotrace(E) amlogic_gkitool(E)
[ 7284.117319][0 T532 d.] CPU: 0 PID: 532 Comm: irq/62-vdec-1 Tainted: G E 5.15.119 #1.6
[ 7284.117323][0 T532 d.] Hardware name: Khadas VIM4 (DT)
[ 7284.117325][0 T532 d.] pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 7284.117329][0 T532 d.] pc : h264_slice_header_process+0x15cc/0x2230 [amvdec_mh264_v4l]
[ 7284.117344][0 T532 d.] lr : h264_slice_header_process+0x68/0x2230 [amvdec_mh264_v4l]
[ 7284.735842][4 T19297 ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[ 7285.307832][0 T532 d.] sp : ffffffc014013bd0
[ 7285.307834][0 T532 d.] x29: ffffffc014013bd0 x28: ffffffc0080db7f6 x27: ffffffc014da50f0
[ 7285.307840][0 T532 d.] x26: ffffffc014da6560 x25: ffffffc014da68c0 x24: ffffffc014da6698
[ 7285.307844][0 T532 d.] x23: ffffffc014013d5c x22: ffffffc014da49a8 x21: ffffffd302758000
[ 7285.307848][0 T532 d.] x20: ffffffc014da4160 x19: ffffffc014d5d000 x18: ffffff822aa57940
[ 7285.307852][0 T532 d.] x17: ffffffaf2111e000 x16: 00000268801a247c x15: 0000000000002760
[ 7285.307856][0 T532 d.] x14: 0000000000002538 x13: 0000000000002400 x12: ffffffd302758000
[ 7285.307860][0 T532 d.] x11: ffffffd308edb7f8 x10: 0000000000000dd0 x9 : ffffffc014013d20
[ 7285.307864][0 T532 d.] x8 : ffffffc014da456c x7 : ffffffc014da68d4 x6 : 0000000000000001
[ 7285.307868][0 T532 d.] x5 : 0000000000000001 x4 : 0000000000000080 x3 : ffffffc014dd10f0
[ 7285.307871][0 T532 d.] x2 : ffffffc014da4ab0 x1 : 0000000000000020 x0 : 0000000000000020
[ 7285.307876][0 T532 d.] Call trace:
[ 7285.307877][0 T532 d.] h264_slice_header_process+0x15cc/0x2230 [amvdec_mh264_v4l]
[ 7285.307888][0 T532 d.] vh264_isr_thread_fn+0x44c/0x2d90 [amvdec_mh264_v4l]
[ 7285.307897][0 T532 d.] vdec_thread_isr+0x140/0x180 [decoder_common]
[ 7286.463988][4 T19297 ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[ 7286.513040][0 T532 d.] irq_thread_fn+0x2c/0xb0
[ 7286.513051][0 T532 d.] irq_thread+0x18c/0x2e4
[ 7286.513054][0 T532 d.] kthread+0x154/0x160
[ 7286.513058][0 T532 d.] ret_from_fork+0x10/0x20
[ 7286.513065][0 T532 d.] Code: 17ffffb5 52800018 f1010adf 540029c9 (d4207d00)
[ 7286.513069][0 T532 d.] ---[ end trace ab24c9d9290de23e ]---
[ 7286.533741][0 T532 d.] Kernel panic - not syncing: BRK handler: Fatal exception
[ 7287.168001][4 T19297 ..] sensors 6-000e: sensor_delaywork_func: Get data failed
[ 7287.205749][0 T532 d.] SMP: stopping secondary CPUs
[ 7287.205860][0 T532 d.] Kernel Offset: 0x1300000000 from 0xffffffc008000000
[ 7287.205863][0 T532 d.] PHYS_OFFSET: 0x0
[ 7287.205864][0 T532 d.] CPU features: 0x0,0000c9a1,00000846
[ 7287.205867][0 T532 d.] Memory Limit: none
[ 7288.751582][0 T532 d.] Rebooting in 5 seconds..
[ 7293.838159][0 T532 d.] [pm]: Reset SDCARD power.