Editing Streaming with MythTV

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
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 ==
Line 20: Line 21:
== Instructions ==
== Instructions ==
<ol>
<ol>
-
<li>Run MythTV</li>
+
<li>Run MythTV
-
<li>Go to Utilities/Setup -> Setup -> Media Settings -> Video Settings -> Player Settings#</li>
+
<li>Go to Utilities/Setup -> Setup -> Media Settings -> Video Settings -> Player Settings#
-
<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>Change the default player option from either "Internal" or the mplayer command "mplayer -fs -zoom -quiet %s" to the following: /usr/bin/streamplayer
-
<li>Create the file <code>/usr/bin/streamplayer</code>
+
<li>Create the file /usr/bin/streamplayer
<li>Insert the following code to it:
<li>Insert the following code to it:
-
<source lang="bash">
+
</ol>
-
#!/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
-
</source>
+
<ol start="6">
-
</li>
+
<li>Make the file executable (chmod +x /usr/bin/streamplayer)
-
<li>Make the file executable:<pre>chmod +x /usr/bin/streamplayer</pre></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>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>Watch the movie and enjoy! :-)</li>
+
</ol>
</ol>
 +
 +
[[Category:Users]]
[[Category:Connectivity]]
[[Category:Connectivity]]
[[Category:Media]]
[[Category:Media]]
 +
 +
[[Category:Power users]]
[[Category:Power users]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)