VODServer - Watch internet streams as TV channels (2 Viewers)

rsenden

Portal Pro
August 22, 2006
88
108
Rotterdam, NL
Home Country
Netherlands Netherlands
Current Version: 1.3 - 08 Oct 2013
Downloads: https://sourceforge.net/projects/vodserver/files/?
Full documentation: http://vodserver.sourceforge.net/
Change Log: http://vodserver.sourceforge.net/history.html

A question that comes up every now and then is whether it is possible to add internet streams to the DVB-IP tuner of the MediaPortal TV-Server. Currently this is not possible out-of-the-box, since most internet streams are not in the MPEG2-TS format that the TV-Server requires. The OnlineVideos plugin provides a good alternative for watching internet streams, but it is a client-side plug-in and doesn't provide features like EPG and scheduled recordings.

Therefore I have developed a simple yet flexible and powerful Video On Demand Server, which can open many types of video streams and transcode them to a format supported by the TV-Server. This is a stand-alone server; the streams provided by this server can be used by the standard TV-Server DVB-IP tuner. VODServer uses rtmpdump and ffmpeg for retrieving stream data and transcoding; these utilities are included in the archive. Streams are started on-demand (i.e. whenever the TV-Server requests a stream), so no unnecessary use of bandwidth.

Sample configuration files are included for iLive.to and CastAlba.tv, allowing you to stream content from these services to the TV-Server (note that these samples are for reference purposes only; actually using this functionality may violate the Terms of Use for these services). Support for other services can be added via configuration files.

Please refer to the README.HTML file in the installation archive for more information. If you have any questions, remarks or additional service definitions to share, please do so on this thread.

Note: For now this server is Windows-only (due to the way ffmpeg and rtmpdump are invoked). The server itself is written in Java, so you will need to have a Java 7 JRE installed.
 
Last edited:

sand

Portal Pro
January 15, 2007
112
5
Home Country
Croatia Croatia
Country flag
@rsenden
You are the absolute master :), it works with your m3u lists

I have to check how to add additional sites but even this is beyond expectations.
 

marirs

Portal Member
April 29, 2011
17
3
Home Country
United States of America United States of America
Country flag
I have a online live tv channel that would be ideal for this but it requires a login and the stream url changes each time with a session id. I already have a python script that I wrote to get the dynamic url, but how would I use that with a static m3u file?

I can probably set up a local proxy but I'm not sure how to redirect the stream? I can have a local proxy return another playlist with the actual url.. would that work? Any ideas @rsenden?

Thanks.
 

rsenden

Portal Pro
August 22, 2006
88
108
Rotterdam, NL
Home Country
Netherlands Netherlands
I have a online live tv channel that would be ideal for this but it requires a login and the stream url changes each time with a session id. I already have a python script that I wrote to get the dynamic url, but how would I use that with a static m3u file?

I can probably set up a local proxy but I'm not sure how to redirect the stream? I can have a local proxy return another playlist with the actual url.. would that work? Any ideas @rsenden?

Thanks.
VODServer basically already works as a proxy. The TV Server is configured with a static m3u file containing URL's pointing to VODServer. When VODServer is called it will dynamically determine the actual stream to use. For example, it can access arbitrary web pages and extract information like stream URL's by using regular expressions.

Can you describe the steps your Python script uses to determine the actual stream URL? Maybe VODServer can be configured with similar steps. Otherwise, if you can make the actual stream URL available via a web page (i.e. call the python script from within a local web server), VODServer can automatically grab this URL and stream the contents to TV Server.
 

marirs

Portal Member
April 29, 2011
17
3
Home Country
United States of America United States of America
Country flag
My python script just POSTs some info and parses the web page to get the rtsp stream url. I have set up a proxy in python to return the url as a web page:

Code:
<html><title>Live Stream</title><a href="rtsp://urlhere.com">link</a></html>

and I can access http://localhost and get the page, but I'm not sure how to set up a service in VODServer?
 

rsenden

Portal Pro
August 22, 2006
88
108
Rotterdam, NL
Home Country
Netherlands Netherlands
My python script just POSTs some info and parses the web page to get the rtsp stream url. I have set up a proxy in python to return the url as a web page:

Code:
<html><title>Live Stream</title><a href="rtsp://urlhere.com">link</a></html>

and I can access http://localhost and get the page, but I'm not sure how to set up a service in VODServer?

Can you please try the attached configuration file? I didn't test it myself, but it is very similar to the mms service. Copy the file to the VODServer directory, restart VODServer, and then call
http://vodserver:port/rtsp?url=http://localhost
This will tell VODServer to get the page at http://localhost, uses a regular expression to find the rtsp:// link, and finally invokes ffmpeg with the rtsp link found.
 

Attachments

  • vodserver-service-rtsp.xml
    2.9 KB · Views: 433

marirs

Portal Member
April 29, 2011
17
3
Home Country
United States of America United States of America
Country flag
It doesn't seem to be working... it gets my rtsp url from my proxy ok, but I think there may be a problem in the ffmpeg command line that VODServer is using because my rtsp url contains an "&" so the command line should be
Code:
ffmpeg -i "rtsp://..."
and VODServer seems to be using
Code:
ffmpeg -i rtsp://...
.
 

rsenden

Portal Pro
August 22, 2006
88
108
Rotterdam, NL
Home Country
Netherlands Netherlands
It doesn't seem to be working... it gets my rtsp url from my proxy ok, but I think there may be a problem in the ffmpeg command line that VODServer is using because my rtsp url contains an "&" so the command line should be
Code:
ffmpeg -i "rtsp://..."
and VODServer seems to be using
Code:
ffmpeg -i rtsp://...
.
OK, you need to add the quotes to the ffmpeg command. Just open the vodserver-service-rtsp.xml file in a text editor, scroll down to the end, and change the command from
Code:
ffmpeg -i !!rtspUrl!! !!ffmpegOutputParams!!
to
Code:
ffmpeg -i "!!rtspUrl!!" !!ffmpegOutputParams!!
 

Users who are viewing this thread

Similar threads

  • Sticky
Just for your information: couldn't find the ns*.tmp file...
Just for your information: couldn't find the ns*.tmp file...
Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
Replies
39
Views
1K
Hallo, Since the update to MP1 27 pre, the refresh rate display no longer works correctly. The font is too small and illegible. The display can be reached with "Shift, 1". Andreas
Hallo, Since the update to MP1 27 pre, the refresh rate display no longer works correctly. The font is too small and illegible. The...
Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
Replies
2
Views
812
I thinks this is the first time I've installed MP on all my machines without a single IO error 32. Good work guys, thanks!
I thinks this is the first time I've installed MP on all my machines without a single IO error 32. Good work guys, thanks!
We have just released MediaPortal 1.26 - Winter is coming... Highlights of this release Bugfixes: [MP1-5031] - Fix Invalid File...
Replies
1
Views
1K
Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-5031] - Fix Invalid...
Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
Replies
0
Views
1K
OK, this is specifically for people in Belgium (Vlaanderen) who are using Telenet Cable with MediaPortal 2. Next year (Edit: this year, in march 2020) the Telenet provider will stop broadcasting Analog TV and Radio signals on their cable, and make the switch to Digital (DVB-C). The radio signals will disappear completely, so you'll...
OK, this is specifically for people in Belgium (Vlaanderen) who are using Telenet Cable with MediaPortal 2. Next year (Edit: this...
OK, this is specifically for people in Belgium (Vlaanderen) who are using Telenet Cable with MediaPortal 2. Next year (Edit: this...
Replies
0
Views
697
Top Bottom