Streaming with MythTV

(Typo fix: Requiresments -> Requirements)
(wikify slightly)
 
(4 intermediate revisions not shown)
Line 3: Line 3:
Obviously, this would mean that for every movie which you will play in MythTV the box will stream it to your network. Last time I checked my router didn't charge me for putting some more load on the
Obviously, this would mean that for every movie which you will play in MythTV the box will stream it to your network. Last time I checked my router didn't charge me for putting some more load on the
network so... I don't suppose you're watching movies 24/7, and even then, who cares, let the router handle it. Any MyhTV box should handle it with ease (specifically if it does tv capture card stuff)
network so... I don't suppose you're watching movies 24/7, and even then, who cares, let the router handle it. Any MyhTV box should handle it with ease (specifically if it does tv capture card stuff)
-
 
== Requirements ==
== Requirements ==
-
A tablet running OS2008 with mplayer is recommended, but it may work with the 770.
+
A tablet running [[:Category:OS2008|OS2008]] with [http://maemo.org/packages/view/mplayer/ mplayer] is recommended, but it may work with the [[Nokia 770|770]].
=== MythTV box ===
=== MythTV box ===
Line 21: Line 20:
== Instructions ==
== Instructions ==
<ol>
<ol>
-
<li>Run MythTV
+
<li>Run MythTV</li>
-
<li>Go to Utilities/Setup -> Setup -> Media Settings -> Video Settings -> Player Settings#
+
<li>Go to Utilities/Setup -> Setup -> Media Settings -> Video Settings -> Player Settings#</li>
-
<li>Change the default player option from either "Internal" or the mplayer command "mplayer -fs -zoom -quiet %s" to the following: /usr/bin/streamplayer
+
<li>Change the default player option from either "Internal" or the mplayer command "<code>mplayer -fs -zoom -quiet %s</code>" to the following:<pre>/usr/bin/streamplayer</pre></li>
-
<li>Create the file /usr/bin/streamplayer
+
<li>Create the file <code>/usr/bin/streamplayer</code>
<li>Insert the following code to it:
<li>Insert the following code to it:
-
</ol>
+
<source lang="bash">
-
  #!/bin/bash
+
#!/bin/bash
-
  vlc "$1" --intf dummy --sout '#transcode{fps=25.0,height=320,width=240,vcodec=mp4v,vb=768,acodec=mpga,ab=128,channels=2}:standard{access=http,mux=asf,dst=:8080}' &
+
vlc "$1" --intf dummy --sout '#transcode{fps=25.0,height=320,width=240,vcodec=mp4v,vb=768,acodec=mpga,ab=128,channels=2}:standard{access=http,mux=asf,dst=:8080}' &
-
  mypid=$!
+
mypid=$!
-
  mplayer -fs -zoom -quiet "$1"
+
mplayer -fs -zoom -quiet "$1"
-
  kill -9 $mypid
+
kill -9 $mypid
-
<ol start="6">
+
</source>
-
<li>Make the file executable (chmod +x /usr/bin/streamplayer)
+
</li>
-
<li>That's all! Now play a movie in MythTV, go to your tablet and fire up mplayer with the following arguments from console: mplayer -aspect 16:9 http://ip-of-your-mythtv-server-:8080
+
<li>Make the file executable:<pre>chmod +x /usr/bin/streamplayer</pre></li>
-
<li>Watch the movie and enjoy! :-)
+
<li>That's all! Now play a movie in MythTV, go to your tablet and fire up mplayer with the following arguments from console:<pre>mplayer -aspect 16:9 http://ip-of-your-mythtv-server-:8080</pre></li>
 +
<li>Watch the movie and enjoy! :-)</li>
</ol>
</ol>
-
[[Category:Users]]
+
[[Category:Connectivity]]
 +
[[Category:Media]]
 +
[[Category:Power users]]

Latest revision as of 14:48, 8 February 2011

The purpose of this small how-to is to guide you on setting up MythTV video player so that when you play videos with MythTV and watch them on your screen then they will also be streamed over your (wifi) network to your tablet the same time.

Obviously, this would mean that for every movie which you will play in MythTV the box will stream it to your network. Last time I checked my router didn't charge me for putting some more load on the network so... I don't suppose you're watching movies 24/7, and even then, who cares, let the router handle it. Any MyhTV box should handle it with ease (specifically if it does tv capture card stuff)

Contents

[edit] Requirements

A tablet running OS2008 with mplayer is recommended, but it may work with the 770.

[edit] MythTV box

  1. Any MythTV version should do.
  2. MythTV is connected to your LAN (the same LAN which the tablet will be connected to via WiFi)
  3. VLC software installed (apt-get install vlc on Debian/Ubuntu based distributions)

[edit] Tablet

mplayer installed.

[edit] Instructions

  1. Run MythTV
  2. Go to Utilities/Setup -> Setup -> Media Settings -> Video Settings -> Player Settings#
  3. Change the default player option from either "Internal" or the mplayer command "mplayer -fs -zoom -quiet %s" to the following:
    /usr/bin/streamplayer
  4. Create the file /usr/bin/streamplayer
  5. Insert the following code to it:
    #!/bin/bash
    vlc "$1" --intf dummy --sout '#transcode{fps=25.0,height=320,width=240,vcodec=mp4v,vb=768,acodec=mpga,ab=128,channels=2}:standard{access=http,mux=asf,dst=:8080}' &
    mypid=$!
    mplayer -fs -zoom -quiet "$1"
    kill -9 $mypid
  6. Make the file executable:
    chmod +x /usr/bin/streamplayer
  7. That's all! Now play a movie in MythTV, go to your tablet and fire up mplayer with the following arguments from console:
    mplayer -aspect 16:9 http://ip-of-your-mythtv-server-:8080
  8. Watch the movie and enjoy! :-)