How to push a live video url to another live video url using ffmpeg and wowza streaming engine

Posted By : Chandan Kumar Singh | 24-Jul-2015

By ffmepeg a rtsp stream can be sent on another video streaming server like wowza streaming server. 

I have a live video streaming url of rtsp "rtsp://52.5.184.1:1935/Live/manual.stream". Now I  will send this video to another live video streaming server which is rtmp. "rtmp://oodles:[email protected]:1935/live-demo/mstream".

here is the command:

ffmpeg -rtsp_transport tcp -i rtsp://52.5.184.1:1935/Live/manual.stream -vcodec libx264 -vb 400k -acodec aac -ab 100k -ar 48000 -ac 2 -f flv -muxdelay 0.1 rtmp://oodles:[email protected]:1935/live-demo/mstream

Explanation of command:

  • "-rtsp_transport tcp" - Set RTSP transport protocols tcp.

  • "-vcodec" - is used for video codec,This is an alias for -codec:v

  • "-acodec" - is used for audio codec

  • "-ar"- set the audio samplig rate

  • "-f" - output file format, here flv

  • "-muxdelay" - Set the maximum demux-decode delay in secs.

The output will look like this.

About Author

Author Image
Chandan Kumar Singh

Chandan is a bright Web Developer with expertise in Java and Spring framework and ORM tools Hibernate. He loves technologies like Blockchain and IoT.

Request for Proposal

Name is required

Comment is required

Sending message..