2012年5月4日 星期五

Justin tv 另一簡易直播教學 ( vlc player)

使用vlc 直播,可以大大減少CPU使用率,而且不需要錄取你的桌面
you can greatly reduce the usage of CPU by using vlc broadcast. Also, you does not need to record your screen.

首先下載VLC PLAYER  及 VLC Broadcasting API
First,download vlc player  and VLC Broadcasting API

VLC player 1.1.7
http://download.videolan.org/pub/videolan/vlc/1.1.7/win32/vlc-1.1.7-win32.7z



VLC Broadcasting API
http://apiwiki.justin.tv/mediawiki/index.php/Linux_Broadcasting_API


解壓所有檔案,開啟vlc.exe
Extract vlc player and  VLC Broadcasting API
open vlc.exe


1. 選 媒體>串流
    click Media > Streaming





2.選要你要直播的影片,然後按串流
   choose a video what you need to broadcast,then click stream




    3.我會提供 stream output string ,所以按下一步至最後一頁
       i will provide  stream output string ,so just next util the last page



4.複製及貼上stream output string
   copy and paste stream output string


:sout=#transcode{vcodec=h264,vb=800,fps=30,scale=1,width=640,height=360,acodec=mp4a,ab=128,channels=2,samplerate=44100}:rtp{dst=127.0.0.1,port=1234,caching=10000,sdp=file:///C:\vlc.sdp} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep


最後按串流
Then press stream



5.開啟 Jtvlc-win-0.41 檔案(VLC Broadcasting API ),按Shift+滑鼠右鍵
   Open Jtvlc-win-0.41 file (VLC Broadcasting API ), press Shift + mouse right click



6.輸入 jtvlc.exe jtvusername jtvstreamkey file://c:\vlc.sdp(file location)
   enter jtvlc.exe jtvusername jtvstreamkey file://c:\vlc.sdp(file location)
   
   For example:
   Your Justin TV name: ABC123
   jtvstreamkey: live_1233412xvsagh1u3y1yvsg  (you can find it by downloading xml on jtv)
   detail: http://android2010ex.blogspot.com/2011/04/justin-tv-justin-tv-tutorial-1.html
   file location: In output string, i set it on c:\vlc.sdp
     
 So The command is  jtvlc.exe ABC123 live_1233412xvsagh1u3y1yvsg file://c:\vlc.sdp
   
影片就會在你的頻道播放
Now,you can check your Jtv channel