Cannot switch ffmpeg encoding with ROS2 wrapper config file

Hi,

when switching ffmpeg encoding in the ros2 config file ffmpeg.yaml to encoding: ‘h264_nvenc’, rebuilding and relaunching, I still get

[FFMPEGPublisher]: using libav encoder: libx264

when launching.

This encoder leads to one of my CPU-cores to be overloaded, which then in turn stops all image topics, it seems. I cannot seem to switch to h264_nvenc. I have tried installing ffmpeg image transport plugin from source as suggested here, but it still seems to not work:
robotics stackexchange

Is this a known issue, and somehow a fix for it?

Thanks for the help!

Hi @jhoff,

Welcome to the forums :waving_hand:

Have you followed our tutorial to use the different image_transport codecs here: Record and Replay camera data with ROS2 - Stereolabs ?

No, although I also don’t want to record or replay. I’ve just seen in the logs that the ffmpeg compression for the image topics is used, and because I have an overlying issue with the zed camera / ros2 wrapper stopping to publish topics after some time, I thought it could be due to the compression. I’ve tried it on a system without the compression installed, but the topics still keep stopping after time, so I assume that is not the issue I am looking for. I’ve opened a new question here:
https://community.stereolabs.com/t/camera-stops-grabbing-frames-after-some-time-with-ros2-wrapper/9749

In this case I will be closing this topic, we will respond on the associated post