Jump to content

I have an IP camera sending out an rtsp stream locallly @ rtsp://10.0.0.10:7070 and Im able to view it through VLC. I know that if I start a stream I can add the rtsp as a video source. My question is how can I both add that rtsp source and stream it my rtmp server locally @ rtmp://10.0.0.11:1935/live ? In the end Im looking to play the rtmp stream on different websites with a flashplayer of some sort.

 

If you can help me out with this or give me any other ideas that'd be great!

Link to comment
https://linustechtips.com/topic/190279-rtsp-vlc-rtmp/
Share on other sites

Link to post
Share on other sites

I have an IP camera sending out an rtsp stream locallly @ rtsp://10.0.0.10:7070 and Im able to view it through VLC. I know that if I start a stream I can add the rtsp as a video source. My question is how can I both add that rtsp source and stream it my rtmp server locally @ rtmp://10.0.0.11:1935/live ? In the end Im looking to play the rtmp stream on different websites with a flashplayer of some sort.

 

If you can help me out with this or give me any other ideas that'd be great!

I have a very similar stream set up. I stream TV though.

 

I found that VLC is compeltely awful with RTMP. You are so much better off using ffmpeg. I wasted about 4 or 5 weeks trying to get my stream to work without any bugs in VLC, in the end I tried ffmpeg and have had no problems since.

Link to comment
https://linustechtips.com/topic/190279-rtsp-vlc-rtmp/#findComment-2563150
Share on other sites

Link to post
Share on other sites

I have a very similar stream set up. I stream TV though.

 

I found that VLC is compeltely awful with RTMP. You are so much better off using ffmpeg. I wasted about 4 or 5 weeks trying to get my stream to work without any bugs in VLC, in the end I tried ffmpeg and have had no problems since.

I have no experience with ffmpeg is it able to re-stream from rtsp to rtmp? 

Link to comment
https://linustechtips.com/topic/190279-rtsp-vlc-rtmp/#findComment-2563200
Share on other sites

Link to post
Share on other sites

I have no experience with ffmpeg is it able to re-stream from rtsp to rtmp? 

Yes it can do everything that VLC does and a lot more. I will post the command line that I use soon, I just need to replace a disk in that server.

Link to comment
https://linustechtips.com/topic/190279-rtsp-vlc-rtmp/#findComment-2563318
Share on other sites

Link to post
Share on other sites

Yes it can do everything that VLC does and a lot more. I will post the command line that I use soon, I just need to replace a disk in that server.

 

 

Thank you a bunch I've tried setting this up for a few days and I guess it just took knowing the right program to use! I'll set it up now and come back with (hopefully good) results.

 

 

here

ffmpeg -i "link from source" -vcodec copy -acodec libfaac -ar 44100 -f flv  rtmp://destination.server/path/to/app

This will copy the video data, but transcode the audio. It takes up hardly any additional CPU. 

 

Read up on the ffmpeg output formats and other options, but this is the basis of what you need. I use jwplayer to embed the stream on my website. I use nginx with the RTMP plugin for the server.

Link to comment
https://linustechtips.com/topic/190279-rtsp-vlc-rtmp/#findComment-2563513
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×