Open ardeal opened 1 year ago
Hi, I am another user looking for a way to convert USB UVC video to ONVIF or other networked format.
I have, however, some ideas for you to try. Here are two command which work for me for a UVC camera on /dev/video2
mjpg_streamer -i "/usr/lib64/mjpg-streamer/lib64/input_uvc.so -d /dev/video2 -r 3840x2160 -f 25 -pl 50hz" -o "/usr/lib64/mjpg-streamer/lib64/output_udp.so -p 554"
mjpg_streamer -i "/usr/lib64/mjpg-streamer/lib64/input_uvc.so -d /dev/video2 -r 3840x2160 -f 25 -pl 50hz" -o "/usr/lib64/mjpg-streamer/lib64/output_http.so -w /usr/share/mjpg-streamer/www -l 192.168.0.45"
However, it seems the application listens only on 127.0.0.1 interface and one cannot change it: https://github.com/jacksonliam/mjpg-streamer/blob/310b29f4a94c46652b20c4b7b6e5cf24e532af39/mjpg-streamer-experimental/plugins/output_rtsp/output_rtsp.c#L87 The -i
by default expects 0
, so the first input plugin. But you can edit the source code to get it to listen on another interface. The http streamer does accept -l hostname_or_IP
.
No idea why https://github.com/jacksonliam/mjpg-streamer/blob/master/mjpg-streamer-experimental/plugins/output_udp/output_udp.c write images to some folders.
Hi,
I have a few questions about this software:
question 1:
I would like to make the fps maximized by this software, what settings should be added to start.sh? For this question, I would like to keep the resolution 800x600.
question 2:
in my ARM board, I have usb camera installed. I don't want to make arm encode the MJPEG image from usb cam to h264, and would like to copy/directly forward the MJPEG image to a rtsp server. Could I do that with this software?
question 3:
could this software setup a rtsp server and let opencv in another computer pull the rtsp stream?
question 4:
For the video displayed in browser, the url is: http://192.168.0.106:8080/stream_simple.html. how could I pull the stream of url in VideoCapture of OpenCV?