On 4 May 2023, at 12:29, Ross Burton via lists.yoctoproject.org <[email protected]> wrote: > > On 4 May 2023, at 11:40, Ed Watson via lists.yoctoproject.org > <[email protected]> wrote: >> >> Hello, >> >> I am trying to get v4l_mem2mem in to ffmpeg. It does hardware h264 encoding >> on a RPI4 >> ffmpeg -encoders | grep h264 >> >> for example >> ffmpeg -f v4l2 -i /dev/video0 -v:c v4l_mem2mem out.mp4 >> >> would take the a webcam output and encode it in h264 using the hardware >> encoder. >> On raspberry pi os: >> V..... libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part >> 10 (codec h264) >> V..... libx264rgb libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part >> 10 RGB (codec h264) >> V..... h264_omx OpenMAX IL H.264 video encoder (codec h264) >> V..... h264_v4l2m2m V4L2 mem2mem H.264 encoder wrapper (codec h264) >> V..... h264_vaapi H.264/AVC (VAAPI) (codec h264) >> On yocto so far this is what I have managed so far .... >> V....D libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part >> 10 (codec h264) >> V....D libx264rgb libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part >> 10 RGB (codec h264) > > Sounds like you need to enable v4l support, which looks like being > --enable-libv4l2. > > A patch to add a PACKAGECONFIG for that would be great.
FYI I just sent the patch to oe-core for ffmpeg, as it was a trivial change. I’ve not tested it solves your problem, but you’re trying to use V4L2 support without it being enabled, so I suspect it will once you enable it. Ross
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#59868): https://lists.yoctoproject.org/g/yocto/message/59868 Mute This Topic: https://lists.yoctoproject.org/mt/98681034/21656 Mute #raspberrypi:https://lists.yoctoproject.org/g/yocto/mutehashtag/raspberrypi Mute #ffmpeg:https://lists.yoctoproject.org/g/yocto/mutehashtag/ffmpeg Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
