-
-
Notifications
You must be signed in to change notification settings - Fork 443
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
Input RTMP or UDS Multicast #85
Comments
Hi This is already possible with Restreamer, but it is not officially documented. Inside the Restreamer Docker container is a RTMP-Server running (nginx-rtmp) that you can use to push streams to. To have access to the RTMP-Server, you have to expose the port 1935 of the Docker container, e.g.
This is inheritly dangerous because anyone can now push RTMP streams to your box. In order to protect the RTMP-Server you should define a token, e.g.
Now you can push a RTMP-Stream to, e.g. Navigate to the Restreamer web interface, e.g. Now you can forward it to an other RTMP-Server or embed the player in a website. |
Cool. I tried it and it works (benchtesting, but on 2 locations). RPI3 had a load of 0.6 with 2 viewers and myself. I doubt there was any encoding done on it as stream was 2kbps/25fps. Thanks for the answer. |
👍 No, there is no encoding happening. Only audio may get encoded depending on the |
Hi.... I'm sure I'm doing something wrong here. I'm streaming from OBS Studio as per #58 but when I go to http://[address of your box]:8080/ and enter rtmp://localhost/live/external.stream?token=XXXX I just get 'Your video stream wasn't accessible - No video stream detected'.....or 'Your video stream wasn't accessible - Error: ffmpeg exited with code 1' Would be grateful for any pointers on how to resolve, debug or troubleshoot this. Thanks in advance. Cacheman. |
@cacheman I got exactly the same issue, did you manage to solve it? |
Hi.... No....and so far no one has replied (apart from you) on this. I did get into the running docker image with an interactive shell and was able to run the ffprobe and ffmpeg commands that the image is trying to run when you click on 'Start' on the web interface. The output from ffbrobe shows it does detect video and audio content in the stream:
.....and ffmpeg seems to be able to take input from the URL you would normally type into the web interface and output it to a HLS stream:
But I can't seem to get any further than that....these are the commands that get started by the web interface when you click 'Start', but something in the web interface doesn't like the output.....and when I run the ffmpeg command manually, I can't figure out how to connect to it from another device to receive the stream. If you ever manage to solve the problem, please let me know....I'll do likewise. HTH. Cacheman |
@cacheman I've abandoned the Restreamer approach, but if I return to it sometime I'll let you know. |
Hi.... Yeah me too. The other day, I actually did get it to work, but only once. It was rock solid for as long as I left it running (~4 hours). But of course it's not much use if I can't stop it and start it at will....since I stopped it after that 1 successful run, I haven't been able to get it going again. I suspect there is some interaction between ffmpeg, nginx and possibly ffprobe that is timing out and generating an error. I have noticed that there are plenty of occasions when I ran the ffmpeg manually at the command line in the docker image (see my previous post) in which ffmpeg thinks there is no video in the stream....it only detects audio. Anyway, I may come back to this if restreamer gets updated at some point in the future. C ya. Cacheman |
Well I use nginx proxy manager on a rpi4 this handle ssl with LTE or I can use the cloudflare ssl costum solution. I do portforward of the tcp 1935 and udp 6000 for another raspberryPI 4 running the restreamer and port 80,443 Another great thing sometimes my ISP change my IP and the need for DDNS is needed - I currently use I have not tried the cloudflare Tunnel solution but it sounds like a nice way to avoid firewall configuration - maybe a way to get one restreamer connect to another restreatmer (almost like a vpn) ;) |
I have an enhancement request.
Some background: There is a camera with production PC on premises which streams RTMP or UDS Multicast streams to server (located outside) to which users then connect. Reason for this is that on premises network/internet connection is really poor and could not handle multiple users, while server outside could. I also do not have any influence on the connection, so opening ports and setting up a server is out of the question.
Reading through documentation the most close input seems IP Camera, but also there you enter the IP of the camera (basically location of the stream). That would mean that I need a on premises rtsp server to which restreamer would connect, but that is not possible for above reasons.
Summary for the enhancement request: Provide a port on which restreamer is listening for input video&audio stream in RTMP or UDS Multicast, which is then handled and re-streamed through outputs.
The text was updated successfully, but these errors were encountered: