Sign up here and you can log into the forum!

UMSP-Plugin Problem / rss-feed won´t work

Discussion, features, plugins--everything about zoster's UMSP UPnP Media Server software

UMSP-Plugin Problem / rss-feed won´t work   

Postby DoggyDog » Wed Jul 18, 2012 11:03 am

Hey guys,

i'm just playin' around with umsp-plugins and stuck with an rss-feed. I add many podcast-feeds and there all working great (for example http://www.tagesschau.de/export/video-podcast/webl/tagesschau/). But one rss-feed http://www.zdf.de/ZDFmediathek/rss/857424 will not work, i always get no content-message. Here are my plugin.php's

umsp.php:
Code: Select all
$myMediaItems[] = array(
'id' => 'umsp://plugins/mediathek',
'parentID' => '0',
'restricted' => '1',
'dc:creator' => 'myCreator',
'dc:title' => 'ZDF Mediathek TEST',
'dc:date' => '2009-12-30',
'upnp:author' => 'myAuthor',
'upnp:artist' => 'myArtist',
'upnp:album' => 'myAlbum',
'upnp:genre' => 'myGenre',
'upnp:length' => '2:10:20',
'desc' => 'myDesc',
'upnp:class' => 'object.container',
'upnp:album_art'=> 'http://www.zdf.de/ZDFmediathek/img/logo-zdf.gif',
'duration' => 'myDur3',
'size' => 'mySize3',
'bitrate' => 'myBitr',
'protocolInfo' => '*:*:*:*',
'resolution' => 'myReso',
'colorDepth' => 'myColor',
);
#------------------------------


mediathek.php
Code: Select all
<?php
    function _pluginMain($prmQuery) {
            $reader = new XMLReader();
            $episodelistXML = file_get_contents('http://www.zdf.de/ZDFmediathek/rss/857424');
            $reader->XML($episodelistXML);
            while ($reader->read()) {
                    if ($reader->nodeType == XMLReader::ELEMENT) {
                      if ($reader->localName == 'title') {
                         $title = $reader->readString ('title');
                          } # end if
                            if ($reader->localName == 'enclosure') {
                                    $location = $reader->getAttribute('url');
                                    $data = array(
                                            'url'         => $location,
                                    );
                                    $dataString = http_build_query($data, 'pluginvar_');
                                    $retMediaItems[] = array (
                                            'id'            => 'umsp://plugins/mediathek?' . $dataString,
                                            'dc:title'      => $title,
                                            'res'      => $location,
                                            'upnp:class'   => 'object.item.videoitem',
                                            'protocolInfo'   => 'http-get:*:video/mov:*',
                                    );
                            } # end if
                    } # end if
            } #end while
            return $retMediaItems;
    } # end function
    ?>


umsp-test
Code: Select all
Notice: Undefined variable: retMediaItems in /tmp/umsp-plugins/mediathek.php on line 27
No results.


I didn't get the problem cause the destination of all links are xml-rss-feeds. Does anyone have an idea?
Thank you in advance!
DoggyDog
n00b
 
Posts: 4
Joined: Wed Jul 18, 2012 10:56 am

Re: UMSP-Plugin Problem / rss-feed won´t work   

Postby mad_ady » Wed Jul 18, 2012 9:52 pm

Not sure why it fails for you, but you could also try it with the Daily Podcasts plugin - it should support such rss feeds without problems.
http://wiki.wdlxtv.com/Daily_podcasts
User avatar
mad_ady
Developer
 
Posts: 4561
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: UMSP-Plugin Problem / rss-feed won´t work   

Postby DoggyDog » Thu Jul 19, 2012 9:38 am

Thank you for the advice! Now i'm able to list the content of the feed, but the links to the movies won't work :cry:
http://forum.wdlxtv.com/viewtopic.php?f=53&t=725&start=110#p60211
DoggyDog
n00b
 
Posts: 4
Joined: Wed Jul 18, 2012 10:56 am

Re: UMSP-Plugin Problem / rss-feed won´t work   

Postby bassdart » Fri Jul 20, 2012 12:46 pm

DoggyDog wrote:Hey guys,

i'm just playin' around with umsp-plugins and stuck with an rss-feed. I add many podcast-feeds and there all working great (for example http://www.tagesschau.de/export/video-podcast/webl/tagesschau/). But one rss-feed http://www.zdf.de/ZDFmediathek/rss/857424 will not work, i always get no content-message.

This feed doesn't work because it contains no links to actual media files but only to playlists. And to make it worse the playlists only contain RTSP-URLs:

Code: Select all
$ wget -q -O- http://hstreaming.zdf.de/zdf/veryhigh/120713_phenomenon_trailer_neo.mov
RTSPtext
rtsp://a1966.v1252936.c125293.g.vq.akamaistream.net/7/1966/125293/v0001/mp4.od.origin.zdf.de.gl-systemhaus.de/none/zdf/12/07/120713_phenomenon_trailer_neo_vh.mp4

The WDTV doesn't support RTSP (and also RTMP or MMS) directly, the only way to make RTSP work is with an external proxy.
There's msdl.bin-App which understands RTSP so in theory such a proxy could run on the WDTV itself (in practice it would not work with this feed because the current msdl version on the WDTV doesn't support the used server: "QTSS-Akamai/6.0.3"). But in fact the CPU and Ram in the WDTV is to limited so you have to use another computer to run the proxy. At least it didn't worked reliable in my experiments, neither with RTSP-URLs nor with RTMP-URLs. Sometimes it works, most of the times it doesn't; all depending on several factors like bandwidth to the server, actual Codec/Container-combination of the mediafile, the Streaming-Server the website uses, moon phase, you name it ;-(
External Proxys work more predictable with an extra computer but it's imo far away from beeing usable on a daily basis -- though, as already mentioned, it depends on the streaming technology used, the codec/container combination, ffmpeg- and rtmpdump-version...
Some streams work better, others don't work at all.
I know Serviio and Serviio does a great job in streaming arbritrary content to the WDTV. But imo it's a tradeoff, afaik Serviio works that good because the profile Serviio uses for the WDTV recodes most of the streams found on the Net (which today means Flash/RTMP most of the time) to MPEG2-Video which on the other side needs a reasonably fast computer.
A question just out of curiosity: Does the WDTV Live Streaming support any protocols beside HTTP (and file://), namely RTSP/RTMP/MMS?
bassdart
n00b
 
Posts: 19
Joined: Fri Jul 20, 2012 10:24 am

Re: UMSP-Plugin Problem / rss-feed won´t work   

Postby DoggyDog » Sat Jul 21, 2012 12:10 am

Thank you for the great explanation. It also shows me, how noob i am in such things. I really thought, the links in the feed are direct links to the .mov-Files.

I wonder, how other manufactors from media-players solve this case, because some players have native support for this german "Mediatheken". Maybe the "Mediatheken" sells some secret-links to the manufactors directly, if they want to support the screencasts?!
DoggyDog
n00b
 
Posts: 4
Joined: Wed Jul 18, 2012 10:56 am

Re: UMSP-Plugin Problem / rss-feed won´t work   

Postby bassdart » Sat Jul 21, 2012 9:21 am

DoggyDog wrote:I wonder, how other manufactors from media-players solve this case, because some players have native support for this german "Mediatheken". Maybe the "Mediatheken" sells some secret-links to the manufactors directly, if they want to support the screencasts?!

Many commercial Hardware-TVs and -Media-Boxes today, at least in germany or even europe, are using HbbTV to access the "Mediatheken". If I'm interpreting the source correctly XBMC, just like MediathekView, scrapes the websites to access the "Mediatheken" (that's why these tools sometimes fail if the website changes). I thought about converting the filme.xml from MediathekView to a format usable in wdlxtv (maybe with a modded version of the Daily Podcasts Plugin) but had given up because the larger part of the Media-URLs referenced in filme.xml are mms:// and rtmp:// which, as mentioned, only work with an external proxy.
bassdart
n00b
 
Posts: 19
Joined: Fri Jul 20, 2012 10:24 am


Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 1 guest