Difference between revisions of "Streaming to ActiveX for Windows Media Player"
Jump to navigation
Jump to search
m (Misc.) |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{Howto|stream to ActiveX for [[Windows Media Player]]}} | |
+ | ==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: | |
+ | *Use a codec that [[Windows Media Player]] recognizes, such as: | ||
− | + | {| class="wikitable" | |
+ | ! Type | ||
+ | ! Codec | ||
+ | |- | ||
+ | | Video codec | ||
+ | | [[DIV3]] or possibly [[WMV]] | ||
+ | |- | ||
+ | | Audio codec | ||
+ | | [[mp3]] | ||
+ | |- | ||
+ | | Container | ||
+ | | [[ASF]] | ||
+ | |} | ||
− | + | *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 | ||
+ | |} | ||
− | + | ===Computer B=== | |
− | + | *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) | |
− | + | <PRE> | |
− | + | vlc -vvv mmsh://10.1.2.3:8123 --sout='#standard{access=mmsh,mux=asfh,url=10.4.5.6:8456}' | |
− | + | </PRE> | |
− | + | *Embed the following in a web page (e.g., in /home/myaccount/public_html/bcast.htm) to be served from computer B: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | vlc -vvv mmsh:// | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | <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:// | + | <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=== | ||
− | + | *Browse the web page from computer B (e.g., <NOWIKI>http://10.4.5.6/~myaccount/bcast.htm</NOWIKI>) | |
− | |||
− | |||
− | |||
− | + | {{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:
- Use a codec that Windows Media Player recognizes, such as:
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)