soyersoyer / fmp4streamer

Fmp4streamer streams your V4L2 camera directly to any browser and media player as MP4 (H264).
Apache License 2.0
80 stars 7 forks source link

ERROR:root:/dev/video0 H264 format not available #9

Open miguelwon opened 2 years ago

miguelwon commented 2 years ago

Hi, I'm getting a H264 format not available error but I'm using C930e Logitech camera, that supports H264 encoding.

soyersoyer commented 2 years ago

Hi Miguel, The C930e puts the H264 into the MJPG. Try with the MJPGH264 format.

miguelwon commented 2 years ago

Ok, thanks. It works but with very high latency.

soyersoyer commented 2 years ago

Do you have this line in your config? uvcx_h264_i_frame_period = 1000

miguelwon commented 2 years ago

Yes. I tried to lower it (to 900 e.g.) but when I do it freezes the script in step Waiting for the first h264 frame...

soyersoyer commented 2 years ago

I think the minimum is 500 and you can increase by 500. But it only means 500ms. With Firefox the latency is better.