Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8082

Troubleshooting • Re: Can't use libx264 with ffmpeg

$
0
0
Thank you for your answer.

Now that some tests are working, going back to the real usecase.

I'm using gphoto2 to livestream the liveview of a Canon camera, to a mediamtx server through rtsp.

The command line is the following :

Code:

gphoto2 --port=usb:001 --stdout --capture-movie |  ffmpeg -f mjpeg -i -  -vf format=yuv420p -c:v libx264 -preset ultrafast -tune zerolatency -profile:v baseline -level 3.1 -g 25 -b:v 2M -f rtsp -rtsp_transport tcp rtsp://my_mediamtx_server:8554/rpitest
The mediamtx server is not a local server, it's outside my LAN.

The above command gives 58 to 60% CPU load for ffmeg.

Thank you for the "-re" option => it reduces the load to 50% CPU for ffmpeg.

But still only works with Ethernet .. using WiFi crashes the complete system without any log other than the output of ffmpeg as shown in my first post.

Statistics: Posted by VincentDM2 — Sat Feb 14, 2026 9:44 am



Viewing all articles
Browse latest Browse all 8082

Trending Articles