MythStreamTV is an 'unofficial' add-on to [[MythWeb]] which allows you to stream recordings over a network connection. As opposed to MythTV itself, which does this as a matter of course, MythStreamTV transcodes material on the fly to make it more suitable for slower network connections, possibly over the web.

+

{{outdated}}

+

+

MythStreamTV is an 'unofficial' add-on to [[MythWeb]] which allows you to stream recordings over a network connection. As opposed to MythTV itself, which does this as a matter of course, MythStreamTV transcodes material on the fly to make it more suitable for slower network connections, possibly over the Internet.

==Prerequisites==

==Prerequisites==

[[Image:Package.png]] The following software is required:

[[Image:Package.png]] The following software is required:

*MythTV [[Release_Notes_-_0.19|0.19]] or above (different mythtv versions may require different versions of mythstreamtv - this info is taken from the supplied README file in the mythstreamtv tarball)

*MythTV [[Release_Notes_-_0.19|0.19]] or above (different mythtv versions may require different versions of mythstreamtv - this info is taken from the supplied README file in the mythstreamtv tarball)

+

Update 24.09.07: The Mythstreamtv tarball does not work for Mythtv 0.20.1 and above. But the rpm package the Mythdora guys have made works.

under video format. NOTE CASE DOES MATTER for the new VLC. You must also change the audio stream option to be lowercase -> mpga, not MPGA.

+

+

When these changes are completed, and assuming you have the right libraries, I started the stream via the web interface, then open it in VLC using something like "http://myaddress:8080". If someone knows how to make vlc auto play, please put that info here!!

+

+

==Installing Mythstreamtv on Fedora Core 6==

+

The MythStreamtv tarball from [http://jochensserver.dyndns.org/ here] are no longer maintained. I tried to use it under Mythtv 0.20.2 but Mythweb has changed a lot so I got errors about missing files when trying to install MythStreamtv with the install.sh script. But the MythDora guys has fixed these problems and made a rpm package accessible from [http://dl.atrpms.net/mythdora/4.0/i386/os/MythDora/mythstreamtv-1.3-8.noarch.rpm/ here]. This rpm package has been tested with Mythtv 0.20.1 and 0.20.2. If you use the Mythtv Trunk version you got problem because Mythweb has changed again.

+

Install the rpm package like this:

+

+

[root@mythpc mythtv]# rpm -ivh mythstreamtv-1.3-8.noarch.rpm

+

or the easy way with yum. Make a textfile called mythdora.repo and make sure the following lines are included in /etc/yum.conf/mythdora.repo:

+

+

[mythdora]

+

name=MythDora 4.0 - $basearch

+

baseurl=http://dl.atrpms.net/mythdora/4.0/$basearch/os/

+

enabled=1

+

gpgcheck=0

+

[mythdora-updates]

+

name=MythDora 4.0 Updates - $basearch

+

baseurl=http://dl.atrpms.net/mythdora/updates/4.0/$basearch/

+

enabled=1

+

gpgcheck=0

+

+

After installing the mythstreamtv-1.3-8.noarch.rpm package you must edit the Mythstreamtv install.sh script because the path included into the script are Mythdora spesific.

+

+

[root@mythpc mythtv]# cd /usr/share/mythstreamtv/

+

[root@mythpc mythstreamtv]# nano install.sh

+

+

In the middle of the script you will find this. Change into the prefered paths:

+

+

######### Set our defaults ##########

+

STREAM_DIR=/usr/share/mythstreamtv

+

NEW_STREAM_DIR=/storage/mythstreamtv

+

HTTP_DIR=/var/www/html/mythweb

+

STREAM_ADDR="hostname.homelinux.org" --> Your ip-adresse or DNS name

+

# Stream address can be a domain such as "domain.homedns.org" with the quotes

If you get problems use the Mythdora forum [http://g-ding.tv/ here] or the Mythtv forum for users [http://www.gossamer-threads.com/lists/mythtv/users/ here]. Mythstreamtv use VLC for doing the streaming and ffmpeg for doing the transcoding of recordings. The precompiled package should work, but not all options have been compiled into the package. Mythdora guys have made custom build package of VLC and ffmpeg which you can get [http://dl.atrpms.net/mythdora/4.0/i386/os/MythDora/ here].

+

+

I found this howto very useful for explaining how VLC can be used for streaming [http://www.diyforgeeks.com/2006/11/01/streaming-mythtv-recordings-over-the-internet/]. The VLC documentation are also useful [http://www.videolan.org/doc/streaming-howto/en/streaming-howto-en.html].

+

[[Category:HOWTO]]

[[Category:HOWTO]]

Latest revision as of 07:02, 6 August 2010

Outdated: The information on this page may no longer be relevant to the current release of MythTV, 0.28. Please consider helping to update it.

MythStreamTV is an 'unofficial' add-on to MythWeb which allows you to stream recordings over a network connection. As opposed to MythTV itself, which does this as a matter of course, MythStreamTV transcodes material on the fly to make it more suitable for slower network connections, possibly over the Internet.

MythStreamTV User:Group? (User and group to be used for MythStreamTV Directory.)

Path to where vlc is installed (Location of the vlc binary on your system.)

The next step (with 0.19-fixes MythWeb) is to ensure that includes/init.php (within the mythweb dir.) has the line

'streamtv' => null,

(note the 'tv' part)

underneath the lines containing

'tv' => null,
'video' => null,
'music' => null,

Using MythStreamTV

At the top of MythWeb there should now be a link that says 'Stream Program'.

When the 'Stream Program' link is clicked, MythWeb should show a list of recorded/recording programs. Select the show/shows you would like to see and click the 'Select Recording and Continue' button.

Now select the Codec and Stream Speed to use and click 'Start Live Stream'. In the Log window a message should appear that the VLC session was able to start successfully.

Now click the MMS link. If your mimetype has been properly configured it should launch an MMS viewer ie: Mplayer or Window Media Player. If your mimetype for MMS is broken you may enter the MMS link directly into your MMS player.

The MythStreamTV admin port connects locally and does not need to be opened from an external firewall. MythWeb launches a script that sends the command to the vlc admin port locally and controls the stream.

If no video is selected, MythStreamTV will kill the current VLC session being streamed. The "Stop Streaming" button can also be used to kill the streaming.

under video format. NOTE CASE DOES MATTER for the new VLC. You must also change the audio stream option to be lowercase -> mpga, not MPGA.

When these changes are completed, and assuming you have the right libraries, I started the stream via the web interface, then open it in VLC using something like "http://myaddress:8080". If someone knows how to make vlc auto play, please put that info here!!

Installing Mythstreamtv on Fedora Core 6

The MythStreamtv tarball from here are no longer maintained. I tried to use it under Mythtv 0.20.2 but Mythweb has changed a lot so I got errors about missing files when trying to install MythStreamtv with the install.sh script. But the MythDora guys has fixed these problems and made a rpm package accessible from here. This rpm package has been tested with Mythtv 0.20.1 and 0.20.2. If you use the Mythtv Trunk version you got problem because Mythweb has changed again.
Install the rpm package like this:

[root@mythpc mythtv]# rpm -ivh mythstreamtv-1.3-8.noarch.rpm

or the easy way with yum. Make a textfile called mythdora.repo and make sure the following lines are included in /etc/yum.conf/mythdora.repo:

If you get problems use the Mythdora forum here or the Mythtv forum for users here. Mythstreamtv use VLC for doing the streaming and ffmpeg for doing the transcoding of recordings. The precompiled package should work, but not all options have been compiled into the package. Mythdora guys have made custom build package of VLC and ffmpeg which you can get here.

I found this howto very useful for explaining how VLC can be used for streaming [1]. The VLC documentation are also useful [2].