[HOW TO] HTTP / MMS streams
You need one of these:
2) Any other firmware and:
- scripts in /opt/share/www/cgi-bin + /opt/bin/msdl* files (from here
- MediaTomb (from Optware)
It's your decision which version to choose, but eventually you must have everything working and know where is it. I'll describe option #1, so if you are using different firmware remember to change paths. First, start-up Mediatomb + 'translating' webserver:
httpd -h /opt/share/www
/opt/bin/mediatomb -d -m /opt/etc -f mediatomb
If you don't know how to use Mediatomb: I can't post to other forums walkthrough, so I hope snappy46
won't mind for copying his HOW-TO here:
So you have entered mediatomb web interface by entering your POHD IP followed by port number 49152 on your web Browser: <POHD IP>:49152.
The screen is really split up in two parts; the right inside which contain the Database/Filesystems and the left side where you will be adding stuff to your Database. We will now had a video feed to your database:
Step1: I like to keep things tidy so the first thing I am going to do is create a container for my video feed. So make sure that you click on the database on the left side (the database in the tree structure).
Step2: Now click the + sign on the right inside of the right window. A window should pop up.
Step3: In the popup window make sure that the drop down menu (first line) indicate "Container". if not select it.
Step4: The second line is for the "title" of your new container; let's call it Video Feeds; so enter "Video Feeds" inside the box.
Step5: The next/last line "class" should already be indicated as an object.container and that is what we want so leave it as is unless that is not what you have already in which case change it to object.container.
Step6: Click on the add items... button; you now should have a new folder on the left side of the screen under database called "Video Feeds"
Now let's had our video feeds:
Step7: Make sure you select your newly created "Video Feeds" folder on the left window tree.
Step8: Now just has we did in step 2 click the + sign on the right inside of the right window. A window should pop up.
Step9: On the Drop down menu of the popup window select: External Link (URL).
Step10: Now let's enter the "title" for our video feed; let's call it "systm TV"; so enter SystmTV in the box.
Step11: In the "URL" box now type in or cut and paste the following: "http://bitcast-a.bitgravity.com/revision3/web/systm/0105/systm--0105--mediatomb--large.h264.mp4" without the quotes.
Step12: In the "protocol" box the "http-get" should already be there if not enter it in the box.
Step13: In the "class" box enter "object.item.videoItem"
Step14: In the "description" box you can enter whatever you want; I usually just leave mine blank.
Step15: in the "Mimetype" box enter "video/mpeg"
Step16: Click on the "add items...." button.
You now created your first video feed into your database. Now go turn on your TV. Select UPNP, then mediatomb, then video Video Feeds; then Systm and learn everything you want to know about mediatomb in about 15 minutes.
Check. If HTTP TV stream is working, we can continue with something else.HTTP radio stream
asked about playing non-shoutcast streams. Instead of playing radio: http://www.dradio.de/streaming/dlf.m3u
, save it on hard disk and open in notepad. Here you can find 2 streams:
Add in MediaTomb new 'External link (URL)':
You can put whatever you want in Title and Description fields.
Hey, it's playing! How do we know the link is actually a stream? Open it's URL (http://dradio.ic.llnwd.net/stream/dradio_dlf_m_a
) in web-browser and try to save it. You'll see 'Unknown time remaining' and downloading for a VERY long time.
You can play this way any Shoutcast radio as well, try SomaFM:
MMS radio stream
Let's go on with something more difficult: link to play third channel of the Polish national radio is http://www.polskieradio.pl/st/program3m.asx
which normally is not supported by PlayOn!HD. We need URL in mms:// format, so save mentioned link to hard disk and open in notepad to get MMS link.
If you have cgi-bin
scripts and httpd
running, add new external link in MediaTomb:
It may take some time for buffering, but eventually it's working! MMS TV stream
It's almost exactly the same as MMS radio stream, you can try add following items in MediaTomb:
If one mime-type doesn't work, try a different one.
The biggest problem is to find correct stream, for example Tele5 is using Flash player: http://www.tele5.pl/player.html
. When you check page source, you'll find this:
<param value="m=http://cm2.atmitv.pl/ContentManager/utilitiesGetFlashPlayList.go?id=333&a=0&sp=1&h=PTELK&l=http://cm2.atmitv.pl/ContentManager/img/player-skins/blue.png&f=http://cm2.atmitv.pl/ContentManager/swf/Player.swf" name="flashvars"></param>
Open in web-browser http://cm2.atmitv.pl/ContentManager/utilitiesGetFlashPlayList.go?id=333&a=0&sp=1&h=PTELK
and save playlist.xml on hard disk. Open this file in notepad, where you'll see 2 streams (actually second stream is off-line). Add new external link in MediaTomb:
It's not the perfect solution for every channel on the world, just an example of what kind of problems you can encounter while searching for the correct stream.Final notes
Don't get too excited. While I was searching MMS streams, I've noticed one rule: the more popular TV/radio is, the less chance to get it working
. In Poland all major TV stations are using paid VoD, in Netherlands some don't have any Internet channel at all, some are using some kind of hash protection (NOS, Uitzending gemist) - I haven't played too much with it, so I can't tell how to play them.
You might have a better chance to play local streams.