View unanswered posts | View active topics It is currently Thu May 23, 2013 4:27 am



Reply to topic  [ 28 posts ]  Go to page 1, 2, 3  Next
 [HOW TO] HTTP / MMS streams 
Author Message

Joined: Sat Feb 13, 2010 9:59 pm
Posts: 673
Location: Tilburg
Post [HOW TO] HTTP / MMS streams
You need one of these:
1) PlayOn!X firmware
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:

Code:
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:

snappy46 wrote:
So you have entered mediatomb web interface by entering your POHD IP followed by port number 49152 on your web Browser: <POHD IP>:49152.

What now:

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: http://www.dradio.de/streaming/dlf.m3u, save it on hard disk and open in notepad. Here you can find 2 streams:
Code:
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)':
Code:
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 (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:
Code:
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 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:
Code:
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 add following items in MediaTomb:

Code:
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


Code:
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


Code:
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
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:
Code:
<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:
Code:
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.


Tue Dec 28, 2010 5:43 pm
Profile

Joined: Sat Jul 31, 2010 5:55 pm
Posts: 59
Post Re: [HOW TO] HTTP / MMS streams
Thanks for your guide mikka....but like the firmware from you with streaming and other features pre-installed ;)


Fri Dec 31, 2010 7:07 pm
Profile

Joined: Mon Nov 22, 2010 1:05 pm
Posts: 104
Location: Singapore
Post Re: [HOW TO] HTTP / MMS streams
Thank you for the guidelines!
I installed Mediatomb on my Playon!DVR-HD win FWr4824 and it's running fine!

For MMS-streams, do I have to use 127.0.0.1 and cgi-bin scripts all the time?


Sun Jan 09, 2011 2:12 am
Profile WWW

Joined: Sat Feb 13, 2010 9:59 pm
Posts: 673
Location: Tilburg
Post Re: [HOW TO] HTTP / MMS streams
TieMichael wrote:
Thank you for the guidelines!
I installed Mediatomb on my Playon!DVR-HD win FWr4824 and it's running fine!

For MMS-streams, do I have to use 127.0.0.1 and cgi-bin scripts all the time?


Yes. There's no need to run them only for normal (HTTP) radio/tv streams.


Wed Jan 19, 2011 9:02 am
Profile

Joined: Mon Nov 22, 2010 1:05 pm
Posts: 104
Location: Singapore
Post Re: [HOW TO] HTTP / MMS streams
ok - Thank you!

I just managed to get RSS_EX running on my Playon!DVR FWr4824, it's so much more flexible compared to MediaThomb what Internet Radio is concerned ...


Wed Jan 19, 2011 9:25 am
Profile WWW

Joined: Fri Jan 14, 2011 9:42 pm
Posts: 13
Post Re: [HOW TO] HTTP / MMS streams
Hi,

You seem to have found the solution to a problem for wich I did buy POHD.
I Would like to listen to this URL http://stream12.freshfmonline.com/

1. Well the first problem I have is knowledge. I am ICT oriented but my experience on linux is low.

2. The second one is understanding what do you mean by X in this text: "1) PlayOn!X firmware"
Is this some special version or do you mean Any? As i do have version r4824
3. The third is confusing because you said: "2) Any other firmware and:" Do you mean any other beside PlayON!X?
4. once i downloaded the scripts and try to unrar them i got a messig that saome files alrady exist and if I want to overwrithe them. - scripts in /opt/share/www/cgi-bin + /opt/bin/msdl* files (from here)
5. Where can i find MediaTomb (from Optware) en is there howto install this one?
6. Is it important which version of - MediaTomb i need to use

Thans for your support in advance.


Thu Jan 20, 2011 9:26 pm
Profile

Joined: Fri Jan 14, 2011 9:42 pm
Posts: 13
Post Re: [HOW TO] HTTP / MMS streams
TieMichael wrote:
ok - Thank you!

I just managed to get RSS_EX running on my Playon!DVR FWr4824, it's so much more flexible compared to MediaThomb what Internet Radio is concerned ...


Is there an howto install Rss_ex ?


Thu Jan 20, 2011 9:27 pm
Profile

Joined: Sat Feb 13, 2010 9:59 pm
Posts: 673
Location: Tilburg
Post Re: [HOW TO] HTTP / MMS streams
Glass wrote:
You seem to have found the solution to a problem for wich I did buy POHD.
I Would like to listen to this URL http://stream12.freshfmonline.com/


I gave it a try and it plays on PlayOn!HD without any problems, so looks like it's your lucky day :)

Glass wrote:
1. Well the first problem I have is knowledge. I am ICT oriented but my experience on linux is low.

2. The second one is understanding what do you mean by X in this text: "1) PlayOn!X firmware"
Is this some special version or do you mean Any? As i do have version r4824
3. The third is confusing because you said: "2) Any other firmware and:" Do you mean any other beside PlayON!X?
4. once i downloaded the scripts and try to unrar them i got a messig that saome files alrady exist and if I want to overwrithe them. - scripts in /opt/share/www/cgi-bin + /opt/bin/msdl* files (from here)
5. Where can i find MediaTomb (from Optware) en is there howto install this one?
6. Is it important which version of - MediaTomb i need to use

Thans for your support in advance.


If you don't want to make it painful and you care only about stream you mentioned: you don't need all files from Optware pack and you don't even have to run extra web server. PlayOn!X is to make easier playing mostly MMS streams (not applicable in your case). Basically, you have at least 2 options:
1) Install Mediatomb from Optware repository: http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/
2) Install RssEx (just like TieMichael said): http://code.google.com/p/media-translate/

I'm using Mediatomb 0.11, so I can only be 100% sure it's working there.


Thu Jan 20, 2011 9:49 pm
Profile

Joined: Mon Nov 22, 2010 1:05 pm
Posts: 104
Location: Singapore
Post Re: [HOW TO] HTTP / MMS streams
Hi Glass,
I recommend to try RssEX.
You can play your favorite radio station with both solutions but RssEX is much more powerful.

For Mediathomb you have to put every individual stream into the database incldung the right protocol-stream.

For RssEX you have 2 choices:
a) include your favorite steam in a playlist in e.g m3u-format
b) open RadioTime, select your country and radio-station and enjoy

To install RssEX I was following the instructions from http://code.google.com/p/media-translate/ but I had to edit several scripts etc to get it running (I am using a Playon!DVR with FWr4824/Asia, and awk in /usr/bin is 0 bytes (see here viewtopic.php?f=98&t=7753&start=0&hilit=rssex).
My way: copy 'awk' to e.g. /opt/bin and change 'awk' to '/opt/bin/awk' in all scripts)


Fri Jan 21, 2011 1:22 am
Profile WWW

Joined: Fri Jan 14, 2011 9:42 pm
Posts: 13
Post Re: [HOW TO] HTTP / MMS streams.
Hi there,

First of all I would like to thank you both for the will to help me!
Did i mentioned that my knowledge of linux is low? Anyway I am happy that there is a solution for my problem.

The easyest way seem to be RSSEX. So I will try that option and if i get enough curage I wil try the other option too.

But when I tried to install RssEx I came on russian site so I have no idea how to install it. I do not speak russian :cry:
I will probably need to telnet to POHD but wat to do then? And shold i use 2.0.6 or 2.0.7 version.

Ok I did found a site http://code.google.com/p/media-translat ... stallation to install RssEx but get the following error on command "cp -rf /usr/local/etc/translate/www /tmp_orig":

/usr/local/etc/translate # cp -rf /usr/local/etc/translate/www /tmp_orig
cp: unable to open `/tmp_orig/www/cgi-bin/translate': Permission denied
cp: unable to open `/tmp_orig/www/cgi-bin/renderer': Permission denied
cp: cannot create directory `/tmp_orig/www/bin': Operation not permitted
/usr/local/etc/translate #


Fri Jan 21, 2011 10:08 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 28 posts ]  Go to page 1, 2, 3  Next

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.