PlayOn!X



MediaTomb

Start-up Mediatomb:
/opt/bin/mediatomb -d -m /opt/etc -f mediatomb

If you don't know how to use Mediatomb: here's instruction made by snappy46:

So you have entered mediatomb web interface by entering your POHD IP followed by port number 49152 on your web Browser: http://PlayOn!HD-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

Somebody here asked about playing non-shoutcast streams. Instead of playing radio, save it on hard disk and open in notepad. Here you can find 2 streams:
http://dradio.ic.llnwd.net/stream/dradio_dlf_m_a
http://dradio.ic.llnwd.net/stream/dradio_dlf_m_b

Add in MediaTomb new 'External link (URL)':
URL:		http://dradio.ic.llnwd.net/stream/dradio_dlf_m_a
Protocol:	http-get
Class:		object.item.audioItem
Mimetype:	audio/mpeg

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 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:
URL:		http://voxsc1.somafm.com:8880
Protocol:	http-get
Class:		object.item.audioItem
Mimetype:	audio/mpeg

MMS radio stream

Let's go on with something more difficult: link to play third channel of the Polish national radio 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.

Add new external link in MediaTomb:
URL:		http://127.0.0.1/cgi-bin/asf?mms://stream.polskieradio.pl/program3
Protocol:	http-get
Class:		object.item.audioItem
Mimetype:	audio/x-ms-asf

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 to add following items in MediaTomb:
URL:		http://127.0.0.1/cgi-bin/wmv?mms://195.94.205.211/Trwam
Protocol:	http-get
Class:		object.item.videoItem
Mimetype:	video/x-ms-wmv

URL:		http://127.0.0.1/cgi-bin/wmv?mms://netshow.atlas.cz/meteotv
Protocol:	http-get
Class:		object.item.videoItem
Mimetype:	video/x-ms-wmv

URL:		http://127.0.0.1/cgi-bin/wmv?mms://144.122.56.15/odtutv
Protocol:	http-get
Class:		object.item.videoItem
Mimetype:	video/x-ms-wmv

Extra notes

Translators: asf, asf-n, avi, mp3, rss, rss_wma, rss_wmv, rtmp, wma, wmv, wmv-m, wmv-z

Sample audio MIME-types: "application/ogg", "audio/mpeg", "audio/x-ms-wma", "audio/x-ms-asf", "audio/x-flac", "audio/x-aac", "audio/mp4", "audio/wav"

Sample video MIME-types: "video/x-flv", "video/mp4", "video/x-quicktime", "video/x-msvideo", "video/x-ms-wmv", "video/mpeg", "video/x-matroska"

If one translator or mime-type doesn't work, try a different one.


The biggest problem is to find correct stream, for example Tele5 is using Flash player. 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 that file in notepad, where you'll see 2 streams (actually second stream is off-line). Add new external link in MediaTomb:
URL:		http://redir.atmcdn.pl/liveflv/o2/Antel/antel.livx
Protocol:	http-get
Class:		object.item.videoItem
Mimetype:	video/mpeg

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.