Live JPEG Stream Cameras #17755
Wasted-Engineer
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I had some problems configuring my old jpeg camera. Reading the docs:
https://docs.frigate.video/configuration/camera_specific/#jpeg-stream-cameras
But it looks like that jpeg preset is using 'image2' demuxer, adding a '-loop' before the input, and seems like '-loop' is not working before the input anymore in ffmpeg.
So, at least in my case, I had to use 'preset-http-mjpeg-generic', and also, the docs say:
go2rtc:
streams:
mjpeg_cam: "ffmpeg:{your_mjpeg_stream_url}#video=h264#hardware" # <- use hardware acceleration to create an h264 stream usable for other components.
The above did not work for me, I had to do it like this:
go2rtc:
streams:
jpeg_cam:
- {your_jpeg_stream_url}
- ffmpeg: jpeg_cam#video=h264#hardware" # <- use hardware acceleration to create an h264 stream usable for other components.
There are still many EOF warnings in go2rtc, but it works fairly fine. I tried to control the frame rate, with some success, but am still having one EOF each 10 minutes, more or less. if you want to try, you can use the #raw tag:
jpeg_cam#raw=-r 5 -b:v 1200k -maxrate 1500k -bufsize 2000k#video=h264#hardware
I hope this helps.
Kind Regards
Beta Was this translation helpful? Give feedback.
All reactions