Difference between revisions of "Streaming to ActiveX for Windows Media Player"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Misc.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
First of all you need to use the Codec that Windows Media Player recognizes, i am using the follow:
+
{{Howto|stream to ActiveX for [[Windows Media Player]]}}
 +
==Use case==
  
Video Codec  DIV3 # i think you could use WMV aswell
+
*Stream from a webcam on computer A (running Microsoft Windows) to
Audio Codec  mp3
+
*Computer B (running Linux) which broadcasts the stream to
 +
*Computer C (running Microsoft Windows) with a web browser and [[Windows Media Player]]
  
What i am doing here is:
+
==Procedure==
Recording a webcam on computer A, computer B will then receive it and re-broadcast, after that i will grab with ActiveX what computer B is broadcasting
 
  
----
+
===Computer A===
  
A) Windows XP:
+
Configure your capture device as follows:
 +
*Use a codec that [[Windows Media Player]] recognizes, such as:
  
Open Capture Device
+
{| class="wikitable"
 +
! Type
 +
! Codec
 +
|-
 +
| Video codec
 +
| [[DIV3]] or possibly [[WMV]]
 +
|-
 +
| Audio codec
 +
| [[mp3]]
 +
|-
 +
| Container
 +
| [[ASF]]
 +
|}
  
Refresh the video and audio list in order to see your devices listed
+
*Use communication settings that Windows Media Player recognizes, such as:
 +
{| class="wikitable"
 +
! Item
 +
! Suggested value
 +
|-
 +
| Transport
 +
| [[MMSH]]
 +
|-
 +
| Address
 +
| Computer A's IP address, say 10.1.2.3
 +
|-
 +
| [[Port]]
 +
| Any value over 8000, say 8123
 +
|}
  
Select what you would like to use as device
+
===Computer B===
  
Hit "Advanced Options" and mark "Device options" that will make your devices prompt you for what configuration would you like to use such as window size, sound and so on
+
*Install vlc (e.g., via [[wikipedia:Yellowdog Updater, Modified|yum]]) or build from source
 
+
*Invoke vlc with the command line options to stream to via a port (e.g., 8456) on computer B (with IP address 10.4.5.6)
Now mark Stream/Save and hit Configurations
+
<PRE>
 
+
vlc -vvv mmsh://10.1.2.3:8123 --sout='#standard{access=mmsh,mux=asfh,url=10.4.5.6:8456}'
Mark MMSH put in your ip and the port you wish to use. example: address 192.168.254.1 port 8080
+
</PRE>
 
+
*Embed the following in a web page (e.g., in /home/myaccount/public_html/bcast.htm) to be served from computer B:
Select then ASF, mark video and audio codec and select for video DIV3 and for audio mp3
 
 
 
Choose the bit rates you want to use and Press OK :)
 
 
 
Ok youre done the first part, you are now streaming from your device using that ip and port
 
 
 
----
 
 
 
B) Linux CentOS 4.x:
 
 
 
Use the follow command to install VLC:
 
yum install vlc
 
 
 
After you have installed VLC use the follow command to receive the streaming video from computer A
 
 
 
vlc -vvv mmsh://ip:port --sout='#standard{access=mmsh,mux=asfh,url=ip2:port2}'
 
 
 
Where ip and port is the ip and port that you setup at computer A and ip2 and port2 is the ip and port of computer B
 
 
 
vlc -vvv mmsh://ip:port
 
# will receive the file from computer A
 
 
 
--sout='#standard{access=mmsh,mux=asfh,url=ip2:port2}'
 
# is your output parameter that will re-broadcast the video on the new ip and port mmsh is the Windows Media player Transporter
 
 
 
----
 
 
 
After all enjoy your creation using the html code:
 
  
 +
<PRE>
 
<OBJECT id="Player" width="320" height="240" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">
 
<OBJECT id="Player" width="320" height="240" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">
<PARAM NAME="URL" VALUE="mms://ip2:port2">
+
<PARAM NAME="URL" VALUE="mms://10.4.5.6:8456">
 
<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
 
<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
 
<PARAM NAME="AutoStart" VALUE="True">
 
<PARAM NAME="AutoStart" VALUE="True">
Line 60: Line 60:
 
<PARAM NAME="stretchtofit" value="true">
 
<PARAM NAME="stretchtofit" value="true">
 
</OBJECT>
 
</OBJECT>
 +
</PRE>
  
----
+
===Computer C===
Wrote by videolan community since they all helped me all the way over here.
 
 
 
thanks all :)
 
namedrisk
 
  
sorry about my english it is not my main language :)
+
*Browse the web page from computer B (e.g., <NOWIKI>http://10.4.5.6/~myaccount/bcast.htm</NOWIKI>)
  
  
 
{{stub}}
 
{{stub}}

Latest revision as of 06:30, 8 April 2019

This page describes how to stream to ActiveX for Windows Media Player. Other "how to" pages

Use case

  • Stream from a webcam on computer A (running Microsoft Windows) to
  • Computer B (running Linux) which broadcasts the stream to
  • Computer C (running Microsoft Windows) with a web browser and Windows Media Player

Procedure

Computer A

Configure your capture device as follows:

Type Codec
Video codec DIV3 or possibly WMV
Audio codec mp3
Container ASF
  • Use communication settings that Windows Media Player recognizes, such as:
Item Suggested value
Transport MMSH
Address Computer A's IP address, say 10.1.2.3
Port Any value over 8000, say 8123

Computer B

  • Install vlc (e.g., via yum) or build from source
  • Invoke vlc with the command line options to stream to via a port (e.g., 8456) on computer B (with IP address 10.4.5.6)
vlc -vvv mmsh://10.1.2.3:8123 --sout='#standard{access=mmsh,mux=asfh,url=10.4.5.6:8456}'
  • Embed the following in a web page (e.g., in /home/myaccount/public_html/bcast.htm) to be served from computer B:
<OBJECT id="Player" width="320" height="240" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">
<PARAM NAME="URL" VALUE="mms://10.4.5.6:8456">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
<PARAM NAME="AutoStart" VALUE="True">
<PARAM name="uiMode" value="full">
<PARAM name="PlayCount" value="9999">
<PARAM NAME="stretchtofit" value="true">
</OBJECT>

Computer C

  • Browse the web page from computer B (e.g., http://10.4.5.6/~myaccount/bcast.htm)


Help VideoLAN by adding to this page!
Create an account to start editing, and then click here to add to this article.