VLC streaming to windows media player

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
x.a.n.a.x
New Cone
New Cone
Posts: 3
Joined: 22 Aug 2007 08:46

VLC streaming to windows media player

Postby x.a.n.a.x » 22 Aug 2007 08:56

Welcome everyone :)
VLC is great player and streaming tool. I'm using it on linux but have a question about windows.
Is there a way to stream video using vlc to a format witch is compatible with windows media player ?
I tried:

Code: Select all

vlc -vvv rtsp://ip --sout '#standard{access=http,mux=asf,dst=my_ip:8181}'
I'm doing something wrong or it isn't possible to stream to windows media player ?

rh
Cone that earned his stripes
Cone that earned his stripes
Posts: 158
Joined: 21 Sep 2006 13:11
VLC version: 2.0.2
Operating System: Lin / Win / Andr
Location: Germany

Re: VLC streaming to windows media player

Postby rh » 22 Aug 2007 09:42

Hi, this is not a problem with vlc or wmp but this is a problem with container formats, video and audio codecs.
Why you dont use vlc on Win*?

There are many benefits:
- no problems with streams, container formats or codecs
- you can install vlc on an network share, simply copy your local install to a share, protect the config file and everything is fine
- create Win-links for specific streams ...

and much more.

For instance (vlc on linux) to stream from a dvb-t card in the network:
vlc -I dummy "dvb://" :dvb-frequency=522000000 --sout="#duplicate{dst=std{access=http,mux=ts,dst=<your_ip>:12345}}"
Stream dvb to the network

From Win simply open the network stream <your_ip>:12345
or create a Win-link with content like this: <network_share>\vlc.exe --config <network_share>\vlcrc_special --open http://<your_ip>:12345

If you want Video On Demand, use the VLM-Interface or read the wiki.videolan.org section.
scarcely you do it right it works ...
Greetings, rh

x.a.n.a.x
New Cone
New Cone
Posts: 3
Joined: 22 Aug 2007 08:46

Re: VLC streaming to windows media player

Postby x.a.n.a.x » 22 Aug 2007 09:56

I can use vlc on windows, but not everybody are willing to install it or can't install it. It would be realy wonderful if it can be resolve just to put the stream witch wmp can read. I'm just wondering is this possible.

Ok I've done some progress. Using transcoding I can play the video on windows media player.
Using this:

Code: Select all

vlc -vvv rtsp://ip --sout '#transcode{vcodec=WMV1,acodec=mpga,vb=800,ab=128,deinterlace}:standard{access=http,mux=asf,dst=my_ip:8181}'
Now I tried to put it on the website to play directly from it. It works but strangly not always. I think it's not the perfect place to ask this question but it's a good start. I'm i doing evrything right ?? I'm using this code and tryed all different ones on the web but without any luck.

Code: Select all

<!-- Check Media Player Version --> <SCRIPT LANGUAGE="VBScript"> <!-- On Error Resume Next lngMP70 = IsObject(CreateObject("WMPlayer.OCX")) ' Windows Media Player 7 Code If (lngMP70) Then document.write "<OBJECT ID=MediaPlayer " document.write " CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" document.write " standby=""Loading Microsoft Windows Media Player components..."" " document.write " TYPE=""application/x-oleobject"" width=""720"" height=""480"">" document.write "<PARAM NAME=""url"" VALUE=""http://ip:port"">" document.write "<PARAM NAME=""AutoStart"" VALUE=""true"">" document.write "<PARAM NAME=""ShowControls"" VALUE=""1"">" document.write "<PARAM NAME=""Loop"" VALUE=""1"">" document.write "<PARAM NAME=""uiMode"" VALUE=""mini"">" document.write "</OBJECT>" ' Windows Media Player 6.4 Code Else document.write "<OBJECT ID=MediaPlayer " document.write " CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" document.write "CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" document.write " standby=""Loading WMA...."" " document.write " TYPE=""application/x-oleobject"" width=""720"" height=""480"">" document.write "<PARAM NAME=""FileName"" VALUE=""http://ip:port"">" document.write "<PARAM NAME=""AutoStart"" VALUE=""true"">" document.write "<PARAM NAME=""ShowControls"" VALUE=""1"">" document.write "<PARAM NAME=""Loop"" VALUE=""1"">" document.write "</OBJECT>" End If --> </SCRIPT>
Sometime I get something like this. All player's stop playing. VLC and WMP and I have to reset the vlc streming process.

Code: Select all

[00000292] stream_out_transcode private debug: late picture skipped (11163889) [00000292] stream_out_transcode private debug: late picture skipped (11171039) [00000292] stream_out_transcode private debug: late picture skipped (11178009) [00000292] stream_out_transcode private debug: late picture skipped (11184393) [00000292] stream_out_transcode private debug: late picture skipped (11191086) [00000292] stream_out_transcode private debug: late picture skipped (11197220) [00000292] stream_out_transcode private debug: late picture skipped (11204390) [00000292] stream_out_transcode private debug: late picture skipped (11210910) [00000292] stream_out_transcode private debug: late picture skipped (11217701) [00000292] stream_out_transcode private debug: late picture skipped (11223623) [00000292] stream_out_transcode private debug: late picture skipped (11230804) [00000292] stream_out_transcode private debug: late picture skipped (11237457) [00000292] stream_out_transcode private debug: late picture skipped (11248155) [00000292] stream_out_transcode private debug: late picture skipped (11250844) [00000292] stream_out_transcode private debug: late picture skipped (11256920) [00000292] stream_out_transcode private debug: late picture skipped (11263953) [00000292] stream_out_transcode private debug: late picture skipped (11270691) [00000292] stream_out_transcode private debug: late picture skipped (11276670) [00000292] stream_out_transcode private debug: late picture skipped (11283872) [00000292] stream_out_transcode private debug: late picture skipped (11290572) [00000292] stream_out_transcode private debug: late picture skipped (11296614) [00000292] stream_out_transcode private debug: late picture skipped (11303807) [00000292] stream_out_transcode private debug: late picture skipped (11310632) [00000292] stream_out_transcode private debug: late picture skipped (11316458) [00000292] stream_out_transcode private debug: late picture skipped (11323685) [00000292] stream_out_transcode private debug: late picture skipped (11330371) [00000292] stream_out_transcode private debug: late picture skipped (11336368) [00000292] stream_out_transcode private debug: late picture skipped (11343772) [00000292] stream_out_transcode private debug: late picture skipped (11350209) [00000292] stream_out_transcode private debug: late picture skipped (11356987) [00000292] stream_out_transcode private debug: late picture skipped (11362914) [00000292] stream_out_transcode private debug: late picture skipped (11370132) [00000292] stream_out_transcode private debug: late picture skipped (11376763) [00000292] stream_out_transcode private debug: late picture skipped (11382962) [00000292] stream_out_transcode private debug: late picture skipped (11389966) [00000292] stream_out_transcode private debug: late picture skipped (11396670) [00000292] stream_out_transcode private debug: late picture skipped (11402685) [00000292] stream_out_transcode private debug: late picture skipped (11414635)

rh
Cone that earned his stripes
Cone that earned his stripes
Posts: 158
Joined: 21 Sep 2006 13:11
VLC version: 2.0.2
Operating System: Lin / Win / Andr
Location: Germany

Re: VLC streaming to windows media player

Postby rh » 27 Aug 2007 11:59

You dont need install VLC on every PC. Simply copy your local install to a share on a Win Server and create a Link for the user ...
If you stream with VLC you should play with VLC, its the simplest and best way. Keep it simple stupid ...
scarcely you do it right it works ...
Greetings, rh

Old Hun
New Cone
New Cone
Posts: 2
Joined: 21 Sep 2007 17:48

Re: VLC streaming to windows media player

Postby Old Hun » 21 Sep 2007 18:05

I do love VLC, however we have strict security measures to install VLC on every computer, therefore it will be wonderful if we can have a VOD VLC Server, and everybody: locally, regionally or globally could access to it via HTTP or RSTP. The problem we have had is that the ActiveX installation pressume that we already have VLC installed, is there a way to achieve this without using the VLC client?

PS: Of course we will give all the credit to VLC Server so that in the future everybody could have install it on their machine :D


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 3 guests