How to stream from Wowza to Justin.tv for better quality of streams

7 Jan No Comments

The streams on a Wowza Media Server are configured with profile=high, level=5.1, and 720p HD quality. And, how to duplicate streams to some on-line live-streaming service providers like Justin.tv and Ustream? Here’s a configuration for Linux and Windows as below

  1.  Attention: To assure the same quality as the source, I do not use any TRANSCODING methods to avoid any distortion of video/audio quality.
  2. Using VLC to transfer streams from Wowza Media Server to a local sdp by RTP stream-out.
  3. Download and configure JTVLC from http://apiwiki.justin.tv/mediawiki/index.php/Linux_Broadcasting_API#Download
  4. Using JTVLC to retrieve local SDP to generate streams and broadcast to Justin.tv
  5. The latest versions of VLC (2.x.x on Windows, and 1.1.9 on Linux) support RTMP. It’s better to use RTMP rather than RTSP to retrieve the source streams.

On Linux

Download Jtvlc.py

cd ~
git clone git://github.com/justintv/jtvlc.git

To start streaming to justin perform the following steps:

  1. Start VLC with local rtp output
  2. Start jtvlc.py to read rtp input from vlc and stream it to justin.tv
/usr/local/bin/vlc -vv rtmp://localhost:1935/live/myStream.sdp --sout='#rtp{dst=127.0.0.1,port=1234,sdp=file:///tmp/vlc.sdp}'
cd ~/jtvlc
python jtvlc.py bus200 live_1492088_gdsNgILmX82ILdsqlgpiFodLQesdk4 /tmp/vlc.sdp

Replace bus200 with your justin.tv login name and “live_14…” with your stream_key. The stream should start immediately.

On Windows
Start VLC to transfer streams from Wowza to C:\vlc.sdp by RTP over TCP

"C:\Program Files\VideoLAN\VLC\VLC.EXE" -I rc --repeat rtmp://localhost:1935/liveedgelist/livetv --sout="#rtp{dst=127.0.0.1,port=1234,mux=ts,sdp=file:///C:\vlc.sdp}"

Start JTVLC to stream out to Justin.TV

c:\jtvlc\jtvlc bus200 live_1492088_gdsNgILmX82ILdsqlgpiFodLQesdk4 c:\vlc.sdp

Replace bus200 with your justin.tv login name and “live_14…” with your stream_key. The stream should start immediately.
Reference:
http://blog.kyri0s.org/post/1406637341/free-live-video-streaming-with-http-live-streaming
http://apiwiki.justin.tv/mediawiki/index.php/Linux_Broadcasting_API

 

Latest Comments

Leave a Reply

相關訊息