Why I try to convert video with FFmpeg CPU utilization is very high?

I install FFmpeg on jetson nano follow this guide.https://forums.developer.nvidia.com/t/the-nvidia-ffmpeg-package-supports-hardware-accelerated-decode-on-jetson-platforms/123694
I try to use this commond ffmpeg -c:v h264_nvv4l2dec -i nano_test1.h264 b.mp4 to get mp4.
The HWdec worked, but I want the CPU utilization be low.

Hi,
It is better to run gstreamer command for the use-case. And if you would like to convert h264 into mp4, should not need to decode and re-encode it. You can run like:

$ gst-launch-1.0 filesrc location=nano_test1.h264 ! h264parse ! qtmux ! filesink location=b.mp4

I want to use gstreamer in python
How can I use gstreamer convert rtsp to RGB in python code?

Hi,
Please refer to this sample and give it a try:
Doesn't work nvv4l2decoder for decoding RTSP in gstreamer + opencv - #3 by DaneLLL

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.