Instructions used for streaming live broadcast from your own pc using VLC with minimal bandwidth Step by step!
PART 2:
Hello and welcome to part 2 the Experiment Live stream.
Assuming you have followed part1 and you are ready to start streaming live. I’ve made some changes from part1, we used jwplayer but instead we are going to use strobe media player, you can download it here
http://sourceforge.net/projects/smp.adobe/files/
Select 1.6 version.
Continues in html part.
Starting point- We start from here.
DV scheduler part
1.First open dv scheduler, go to system, channel settings and click edit (We have to edit the channel you want to stream, and not saving the stream) so select edit and at Channel Setting row for:
Default Capture Type select stream,
Default Local Preview Type = Preview
Default Remote Preview Type = VLC
Default Local Surf Type = VLC
Default Remote Surf Type = VLC
Default Capture Path = (C:\TV) But with these setting’s we got we’re not saving the stream to disk, but just streaming it.
Program ID - Remember this number because this is the port of your stream. Last click submit, And we are done here.
2.Second open dv scheduler and click Schedules then click add new, select date, next select channel we just edited, for capture type select stream and for name don’t use any name, select time duration and click submit, and we are done here. You can view the setting of the channel you are streaming in Schedules and click Schedule log.
Wampserver part
Go to www directory and create a new folder and name it Livetvtest.
Inside that folder create another folder and name it player and place the StrobeMediaPlayback.swf
When you downloaded the StrobeMediaPlayback_1.6.328-full.zip, open that folder, select for Flash Player 10.1 and copy StrobeMediaPlayback.swf to player folder.
Open the livetvtest folder and add the index.html example from here.
So inside the livetvtest folder you should have these files:
Index.html, and the player folder with the StrobeMediaPlayback.swf.
Html part
Copy and save this as index.html
<html>
<head>
<title>Flash live stream</title>
</head>
<body bgcolor="444444">
<center>
<br><br>
<h2><font color="#777">Live Brodcast test by ibstars via StrobeMediaPlayback</h2>
<object width="470" height="320">
<param name="movie" value="/player/player.swf">
</param>
<param name="flashvars" value="src=
http://yourdomain:8080/mediaplayer/stre ... oPlay=true">
</param>
<param name="allowFullScreen" value="true">
</param><param name="allowscriptaccess" value="always">
</param>
<embed src="/player/player.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="470" height="320" flashvars="src=
http://yourdomain:8080/mediaplayer/stre ... oPlay=true">
</embed>
</object>
<h4>Showing Live Sky channel UK</h4>
</center>
</font>
</body>
</html>
Second open this file with notepad and edit these 2 parts and add your domain instead of mine:
value="src=
http://yourdomain:8080/mediaplayer/stre ... oPlay=true">
flashvars="src=
http://yourdomain:8080/mediaplayer/stre ... oPlay=true">
We are just editing the domain name here nothing else.
After you are done click save.
Final part - VLC PART
Open vlc and go to tools, select preferences. In preferences at the bottom show settings select show all, next select stream output and in default stream action chain add this code:
#transcode{vcodec=h264,vb=300,deinterlace,ab=32,fps=25,width=320,height=240,acodec=mp3,samplerate=44100}:duplicate{dst=std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=/mediaplayer/stream.flv},dst=display}
And clicks save. Close vlc.
Now open vlc again and select media, open network stream. In network stream add this line-
http://yourdomain-or ip address here:44444.
44444 is just for clarity, but this is the PID number of your scheduled channel, So enter the PID, and click play.
You should be able to see the video playing. Now go to
http://yourdomain.com , to view the video. Congrats You made it
.
If not you have to port forward the Program ID port number, in your router. Default port numbers used in this example are port 80(for web server), 8080(for testing), and your PID’s
To do this login to your router and port forward the PID number. Remember you have to port forward 80, 8080 if you are doing this from wampserver online .
To test your pc for open ports got to '
http://www.speedguide.net/portscan.php. Here you will see if port 80 and 8080 is open. Note the 8080 will be visible only when you run something on that port.
This experiment works just like in veetle, You can broadcast a file using this method as well and you don't need to change anything, it will transcode the file in flv format and it will stream it online live
With more help i can get this could stretch really good into a real live website, with added security and real live broadcasting.
You can view the actual experiment here live at my website. Please comment and rate.
http://livetvtest.tk/
Forgot to note the live stream can be paused(dropping frames etc), but once u refresh the page the frames are lost and back to normal and vise versa.
UPDATE: Guys the stream is actually getting saved , just found out. Basically this is what's happening. As soon as you click play, the stream is getting saved in TEMP folder on the hard drive and as soon as you leave the page or refresh the page the stream will disappear and vise versa.
I'm looking at this issue and will be in touch soon.