Hello,
I am trying to decode HEVC-encoded content on RB3. I successfully compiled ffmpeg. However, I am still not able to leverage the HEVC accelerator available on RB3, which is v4l2.
Bellow are the command and the output.
root@linaro-developer:~# ffmpeg -c:v hevc_v4l2m2m -i blue_sky_fps_25.mp4 -f null /dev/null
ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-nonfree --enable-static --disable-shared --enable-pthreads --enable-neon --enable-thumb --enable-optimizations --enable-hwaccel=hevc_v4l2m2m
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from âblue_sky_fps_25.mp4â:
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.29.100
Duration: 00:00:08.68, start: 0.000000, bitrate: 2834 kb/s
Stream #0:0(und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv), 1920x1080, 2832 kb/s, 25 fps, 25 tbr, 1200k tbn, 25 tbc (default)
Metadata:
handler_name : VideoHandler
[hevc_v4l2m2m @ 0xaaaad0d20d60] Using device /dev/video1
[hevc_v4l2m2m @ 0xaaaad0d20d60] driver âqcom-venusâ on card âQualcomm Venus video decoderâ in mplane mode
[hevc_v4l2m2m @ 0xaaaad0d20d60] requesting formats: output=HEVC capture=NV12
Stream mapping:
Stream #0:0 â #0:0 (hevc (hevc_v4l2m2m) â wrapped_avframe (native))
Press [q] to stop, [?] for help
[hevc_v4l2m2m @ 0xaaaad0d20d60] VIDIOC_G_FMT ioctl
free(): double free detected in tcache 2
Aborted
Could you help me to solve the issue?
Thank you in advance.
Best regards