iizukanao / node-rtsp-rtmp-server

RTSP/RTMP/HTTP hybrid server
MIT License
1.1k stars 282 forks source link

How can i launch server on IP not on local host. #145

Open Anish009 opened 4 years ago

Anish009 commented 4 years ago

I am using the below command to push the data to the node-RTSP-RTMP-server,

ffmpeg -input_format yuyv422 -f video4linux2 -s 1280x720 -r 10 -i /dev/video0 -c:v h264_omx -r 10 -b:v 2M -an -f rtsp rtsp://localhost:80/live/stream

but I don't want to push with localhost instead I want to use the IP address of the localhost, I am using raspberry PI 4 to do this.

How can I do this, can you help with your awesome project.

iizukanao commented 4 years ago

@Anish009 127.0.0.1 is the IP address of localhost. If you want to publish stream from ffmpeg to node-rtsp-rtmp-server running on the same machine by IP address, please replace rtsp://localhost:80/live/stream with rtsp://127.0.0.1:80/live/stream

Anish009 commented 4 years ago

thank you ...