Streaming German TV from ARD/ZDF Mediathek via Drivecast

Here are software that related with Samsung B series TVs. Like hex editors, new version of BusyBox or internal software, app programs that will run in your TV hardware.:!:This forum is NOT FOR USER QUESTIONS or Problems.
Post Reply

User avatar
boxbuchse
Posts: 24
Joined: Sun Jun 10, 2012 1:47 pm

Streaming German TV from ARD/ZDF Mediathek via Drivecast

Post by boxbuchse » Tue Feb 26, 2013 2:01 pm

Hi,

I was quite annoyed that I have (OK, an old) Internet TV (B650)
but cannot watch all these streaming platforms out there.
The DriveCast plugin is very useful for this on my old Samsung TV
http://drivecast.eu
At least German ZDF provide a valid video podcast url like
http://www.zdf.de/ZDFmediathek/podcast/1193018
witch you can add to your DriveCast account and watch the newest stuff.

But ARD didn't provide podcasts AFAIK, so I wrote a little PHP code
and if you have some webspace you can use it like me.

Code: Select all

<?php
// list: http://m-service.daserste.de/appservice/1.3.0/series/list?func=getSeriesList
$appurl = "http://m-service.daserste.de/appservice/1.3.0";
$list = preg_split("/,/",$_GET['id'],-1,PREG_SPLIT_NO_EMPTY);
$id = (int)$_GET['s'];
$types = array (
    "1.69 Web L VOD adative streaming",		// width 960 HD, 'adative' 8-D
    "1.71 ADS 4 VOD adaptive streaming",	// 640
    "1.67 ADS 2 VOD adaptive streaming",	// 480
    "1.63 Web M VOD adaptive streaming",	// 512
    "1.65 Web S VOD adaptive streaming"		// 256
);

if(count($list)) foreach ( $list as $i => $l ) {
	if($i>2) break;
    $data = json_decode(file_get_contents("$appurl/series/$l?func=getSeriesDetail"));
	if(count($data[0]->Videos)) foreach ( $data[0]->Videos as $j => $v ) {
		if($j>2) break;
		$vids[] = $v->VId;
	}
}
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>

<rss version="2.0">
<channel>
<title>ARD Mediathek</title>
<link>http://www.ardmediathek.de/</link>
<description>Die ARD Mediathek bietet online Radio- und Fernsehsendungen der ARD als Livestreams, Audios und Videos sowie Podcasts zum Download an.</description>
<pubDate><?= date("r") ?></pubDate>
<?php
if(count($vids)) foreach ( $vids as $v ) {
    $uid = "$appurl/video/$v";
    $k = simplexml_load_file($uid);

    $title = utf8_decode($k->video->title);
	$his = explode(":", $k->video->duration);
	$duration = ($his[0]*60 + $his[1])*60 + $his[2];

    $video = query_attribute($k->video->assets->asset, "type", $types[$id]);
	$duration *= $video->totalBitrate * 126; # *(1024/8);
    $url = htmlspecialchars ($video->fileName);
    $date = date ("r",  strtotime($k->video->broadcastDate));
    
?>
<item>
<title><?= $title ?></title>
<link><?= $uid ?></link>
<enclosure url="<?= $url ?>" length="<?= $duration ?>" type="video/mpeg"/>
<guid><?= $uid ?></guid>
<pubDate><?= $date ?></pubDate>
</item>
<?php
}

function query_attribute($xmlNode, $attr_name, $attr_value) {
    foreach($xmlNode as $node) { 
		switch($node[$attr_name]) {
			case $attr_value:
			return $node;
		}
    }
}

?>
</channel>
</rss>
or you can try this: http://playlist.square7.ch/ardmediathek ... ternet&s=1
but the hoster only allows 200 socket connection / hour so if it fails try again later..

To find out which broadcast you want to watch go to http://m.daserste.de/#sendungen
and click your choice. Now it should be a new url in the addressbar e.g. http://m.daserste.de/#sendungen-detail?id=dittsche
the parameter id "dittsche" is your show. Copy that in the podcast url on your server.

The parameter s defines the quality of the file. Default is 960 pixel width, almost HD they think.

width for parameter s
  • 0 = 960px
    1 = 640px
    2 = 480px
    3 = 512px
    4 = 256px
Now this address on your server e.g. http://example.com/ardmediathek.php?id=*my_show*
you can add to DriveCast and finally watch the show.

I hope it helps someone.
You do not have the required permissions to view the files attached to this post.
Last edited by boxbuchse on Mon Apr 01, 2013 11:53 pm, edited 1 time in total.
LExxB650 T-CHL7DEUC-2005.0 telnet, ext3 hdd, ArFIX

User avatar
boxbuchse
Posts: 24
Joined: Sun Jun 10, 2012 1:47 pm

Re: Streaming German TV from ARD/ZDF Mediathek via Drivecast

Post by boxbuchse » Mon Mar 04, 2013 2:41 pm

Hi,

I found pretty good ARD Podcast from Netplayer Team:
http://netplayer.24max.de/ard/
There you can select your favorite, like history doku
e.g. "Geschichtsdokumentationen"
http://netplayer.24max.de/ard/8758212.xml

which you can add to DriveCast
LExxB650 T-CHL7DEUC-2005.0 telnet, ext3 hdd, ArFIX

User avatar
juusso
SamyGO Moderator
Posts: 9668
Joined: Sun Mar 07, 2010 6:20 pm

Re: Streaming German TV from ARD/ZDF Mediathek via Drivecast

Post by juusso » Mon Mar 04, 2013 2:42 pm

Okey, don`t stop please :)
LE40B653T5W,UE40D6750
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

mattberlin
SamyGO Project Donor
Posts: 140
Joined: Sun Jan 24, 2010 6:18 pm
Location: Germany

Re: Streaming German TV from ARD/ZDF Mediathek via Drivecast

Post by mattberlin » Mon Mar 04, 2013 5:42 pm

Hi boxbuchse,

thank's a lot for this work.

Is there way to get drivecast without going back to yahoo widgets? By returning to yahoo widgets I'd go back to a really shitty YouTube app.
my TV: LE32B679

User avatar
boxbuchse
Posts: 24
Joined: Sun Jun 10, 2012 1:47 pm

Re: Streaming German TV from ARD/ZDF Mediathek via Drivecast

Post by boxbuchse » Thu Mar 07, 2013 8:34 am

Hi mattberlin,

this sounds interesting..
i will check that, the problem is the yahoo engine
which is needed by drivecast.

Dos anybody know how to back up the engine and settings?
Is it just the path /mtd_down/widget/data/Widgets/

bb
LExxB650 T-CHL7DEUC-2005.0 telnet, ext3 hdd, ArFIX

User avatar
boxbuchse
Posts: 24
Joined: Sun Jun 10, 2012 1:47 pm

Re: Streaming German TV from ARD/ZDF Mediathek via Drivecast

Post by boxbuchse » Wed Apr 03, 2013 1:04 pm

Hey,

finally i have a solution for viewing ARD/ZDF Mediathek or other video podcasts on Samsung Widget Engine.
I rewrote the NetPLayerB a bit and it's really fast :o

Now you can add to XML/videoList.xml several Podcast URLs:

Code: Select all

<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<item>
			<title>Tagesschau</title>
			<link>http://netplayer.24max.de/ard/4326.xml</link>
		</item>
		<item>
			<title>abenteuer forschung</title>
			<link>http://www.zdf.de/ZDFmediathek/podcast/1193018</link>
		</item>
		<item>
			<title>my Own Playlist</title>
			<link>http://playlist.square7.ch/rss.php?playlist=SamyGO</link>
		</item>
		<item>
			<title>Local</title>
			<link>XML/localList.xml</link>
		</item>
	</channel>
</rss>
Of course it works with the PlaylistEditor i described here
and you still can have your local playlist but the Format has changed!

Code: Select all

<enclosure url="mms://live.rfn.ru/rtr-planeta" />
or
<enclosure url="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" />
now i use the enclosure tag with attribute url

please test it and give me response here and i will upload it to sourceforge

thanx
You do not have the required permissions to view the files attached to this post.
LExxB650 T-CHL7DEUC-2005.0 telnet, ext3 hdd, ArFIX

User avatar
boxbuchse
Posts: 24
Joined: Sun Jun 10, 2012 1:47 pm

Re: Streaming German TV from ARD/ZDF Mediathek via Drivecast

Post by boxbuchse » Thu Apr 04, 2013 6:57 pm

the new NetPLayerB and the development you can find here
LExxB650 T-CHL7DEUC-2005.0 telnet, ext3 hdd, ArFIX

mattberlin
SamyGO Project Donor
Posts: 140
Joined: Sun Jan 24, 2010 6:18 pm
Location: Germany

Re: Streaming German TV from ARD/ZDF Mediathek via Drivecast

Post by mattberlin » Sat Apr 06, 2013 9:43 pm

Dude, this is awesome!

I haven't even read this thread, yet. Just tried your modified NetPlayerB! Tagesschau works fine! Thank you so much!

BTW: Who is actually taking care of the playlist http://netplayer.24max.de/ard/4326.xml? What kinf of Webpage is this exactly?
my TV: LE32B679

backupme
Posts: 1
Joined: Wed Jun 26, 2013 7:20 pm

Re: Streaming German TV from ARD/ZDF Mediathek via Drivecast

Post by backupme » Wed Jun 26, 2013 7:46 pm

Hallo all together,

I am care of netplayer.24max.de/ard.
Please use
bit.ly/Kd1vot
to see the hole offer. Just add the link to your Neplayer.
At this link you'll find all non private TV-Stations (ARD [includes(WDR,NDR,SWR,Einplus and so on] ZDF, ARTE and ORF).

In order to view ZDF and Arte on your TV you need to modificate the HTTP-User-Agent.
The ZDF-Server just replies to you if you have a "HbbTV" in your Browser Agent.
I use the following string "MSDL (compatible; LG NetCast.TV-2011) HbbTV/1.1.1 (; LGE; GLOBAL_PLAT3; 1.0; 1.0;)" to replace the Samsung Browser-Agent.
The String is replaced via a transparent Proxy (privoxy) on my Router (Fritzbox 7270).
You can find a german instruction for this on the folling page:
http://blog.moneybag.de/samsung-tvs-der ... mit-hbbtv/

At this point I did not find another solution to set by request the right HTTP-Header for my C-Series. But if you have any solution for this I'll would be very insterested.



King regards,
backupme

The developers page of the netplayer can be found at: http://tvwidget.pl/netplayer2.html
Instructions in german to install netplayer can be found at: http://blog.moneybag.de/netplayer-app-f ... nternettv/

Post Reply

Return to “[B] Software”