Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using this software to setup rtsp server #382

Open
ardeal opened this issue Feb 19, 2023 · 1 comment
Open

using this software to setup rtsp server #382

ardeal opened this issue Feb 19, 2023 · 1 comment

Comments

@ardeal
Copy link

ardeal commented Feb 19, 2023

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?

@mmokrejs
Copy link

mmokrejs commented Feb 17, 2024

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:

" [-p | --port ]..........: UDP port to listen for picture requests. UDP message is the filename to save\n\n" \
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants