Trying to encode on 64 bit system using h264_v4lm2m
Opened this issue · 2 comments
Hello, thank you for the excellent package for ROS and Raspberry Pi 3.
Is it possible to use h264_v4lm2m rather than omx to enable this on a 64 bit system? I am currently trying to get this working on a 64 bit Raspberry pi 4 8Gb running Ubuntu 18 with ROS melodic.
When I set codec: h264_v4l2m2m
in the encoder configuration file I receive the error below:
[h264_v4l2m2m @ 0xaaab1a04e270] This encoder requires using the avcodec_send_frame() API
I have been able to encode video files directly with ffmpeg during my testing but am stuck on getting this working with Kinesis.
Hi! any updates on this? I tried to change the code to use avcodec_send_frame() following this example but I got a segmentation fault when calling the avcodec_send_frame()
function. It would be great if hardware encoding support was added for 64 bit OS on Raspberry Pi, as encoding the video on the CPU eats up ~80% of one core in my RPi 4.
I tried this as well and ran into the same issue. For my application, we use RTSP cameras so I ended up installing the gstreamer_kvssink
plugin on the RPi 4 from here and managing the shell process via a ROS node. Hardware encoding would be preferred for us but it seems like this plugin is not very actively developed considering the lack of support for a 64 bit OS..