PDA

View Full Version : [RELEASE] YleAreena (Video) Plugin - Finnish TV


doze
2008-11-04, 18:18
Hello,

Here's a video plugin (http://code.google.com/p/doze-xbmc-plugins/downloads/list) for streaming media from YleAreena. It's a finnish media portal by one of the major TV channels here, so the user base for this plugin might be pretty limited. :)

The plugin was requested here (http://xbmc.org/forum/showthread.php?t=34074).

Oh, btw. the plugin doesn't stream the media in XP for me, but works ok in XBOX. Don't know what's up with that, but it's enough for me that it works in XBOX. I'll fix it if someone got some ideas.

Also, it's not possible to forward / rewind the streams. I don't know if that's a bug in my end on how the stream is setup or a feature in xbmc / mplayer in general.

Credits goes to all XBMC developers and some things I lent from VideoMonkey plugin, thanks to you all!

EDIT: Changed download url to google code project

SlugO
2008-11-27, 17:11
Thanks for the plugin but like you said it doesn't seem to work atleast on XP. Got any new ideas on what might be wrong with it?

I don't really have experience with Python but I can probably offer atleast some help. How can you see a plugin's log? It's quite simple with scripts but I haven't found it for plugins.

Nuka1195
2008-11-27, 19:00
it may be something to do with dvdplayer. xbox probably uses mplayer for the streams. can you post a trac bug report with a test stream from there.

thanks

SlugO
2008-11-28, 13:09
Not sure if there's need for bug reports yet but atleast here's standard mplayer's log from console when I'm trying to open a video address I copied from the YleAreena plugin:Playing http://mediak.yle.fi/kotimaa/areena/1/67/30/1673022_999481.wmv?MSWMExt=.asf.
Resolving mediak.yle.fi for AF_INET6...
Couldn't resolve name for AF_INET6: mediak.yle.fi
Resolving mediak.yle.fi for AF_INET...
Connecting to server mediak.yle.fi[195.248.86.140]: 80...
Cache size set to 320 KBytesAnd it just keeps repeating that.

JaniL
2008-12-03, 19:56
Hiya,

I tested script on WinVista and noticed that plugin list's video and audio, which i think is bad. :sad: If plugin would be seperated to plugins for audio and video mode, that would be ok.

Also, there is also podcasts, radio channels and live streams like upcoming Independence Day of Finland's (http://en.wikipedia.org/wiki/Independence_Day_of_Finland) reception, so there is lots of content unused at the moment in plugin. :laugh: Don't know however that does XBMC support for live streams, does it?

I've been coding for my own version of this some weeks ago, i have been however busy with plugin for TVkaista and i reinstalled vista some weeks ago so it's quite unfinished.

However, kudos to you, sir! :laugh: Your plugin would be ace if you just add at least podcasts.

Some text in finnish about my own plugin / Kirjoitusta suomeksi omasta plugarista:
http://janil.jaiku.com/presence/50042311#comments

One picture of my own plugin:
http://jarppa.net/galleria/v/YLEAreenaForXBMC/

doze
2008-12-09, 01:11
Hello and thanks for the feedback.

Unfortunately, I don't have any fixes for the playback issue in WinXP.

@JaniL:

I haven't used YleAreena my self, so I really don't even know what's in there :) I just made the plugin as it was requested and thought it was pretty fast to come up with. I can make it list audio streams separately from video and list also podcasts etc, but could you give me a little help with it?

Could you provide the URLs where these various things are posted at, so I could take a look at the HTML and see what I can parse from it. Also, do you know already how you can differentiate video stream from audio stream in the html of the lists that are currently used by the video plugin? This kind of info would speed it up so I don't need to dig up YleAreena's portal my self so much :)

JaniL
2008-12-10, 21:42
I can make it list audio streams separately from video and list also podcasts etc, but could you give me a little help with it?

I myself seperated them with checking amount of videos/audios and if amount != 0, then list it.
Amounts are in:
<td class="count video">10</td><td class="count audio">0</td>

There are filters that can make a list of just video or audio in program's browse.

http://areena.yle.fi/hae?pid=175730&filter=1,1 for just videos
http://areena.yle.fi/hae?pid=175730&filter=1,2 for just audio

Podcasts are at http://areena.yle.fi/podcast and live streams at http://areena.yle.fi/suora

In live streams, there are YLE's radio channels, but they sometimes have some live feeds for (music/sports) events. Also, you might want to add YleX's video stream (http://ylex.yle.fi/ylex-tv), because it hasn't only have webcam of the studio, they also sometimes stream some events from it.

doze
2008-12-10, 23:02
Ok, I'll make new versions with audio and video in their own plug-ins.. not sure if I can get all that in next version, but lets see..

doze
2008-12-15, 01:04
My svn trunk (http://doze-xbmc-plugins.googlecode.com/svn/trunk/) contains new versions of the Yle Areena plugins (separate video and music), but I have still some minor things to do (such as add the date parsing for podcast items), so I won't be uploading the zips just yet. If you are in a hurry, you can check out the trunk and start testing :) ..

doze
2008-12-15, 22:59
New versions can be found via the link at the first post.

There are separate music and video plugins.

Music plugins supports a-z program listing, pre-set categories, podcasts, internet radio channels and search

Video plugin supports a-z program listing, ylex tv stream, pre-set categories and search

If you want to see a better change log, view the SVN commit log.

I will look into getting "elävä arkisto" support for the plugins next.

Please test and report!

stuartmarsden
2008-12-15, 23:44
I am trying to use this plugin but none of the videos start or the music.

I am using Atlantis 8.10 on kubuntu 8.10. Has anyone got this working on linux?

Do you need to be in Finland for this to work and if you do can the plugin be set up to go through a proxy.

I am trying to set this up for my wife who is Finnish but we like in the UK.

doze
2008-12-16, 00:13
I don't think you need to be in Finland for this to work, but unfortunately I haven't been able to get the video streams playing anywhere other than XBOX.

In XBOX, all the streams plays nicely, but for example in WinXp I get "Playlist playback aborted. Too many consecutive failed items." error when trying to play anything. The only thing that works in WinXp xbmc is the podcast streams.

I think it could be some kind of a bug with WinXp xbmc mplayer, but don't know what..

The streams are .asx files like this:
http://www.yle.fi/java/areena/dispatcher/1723625.asx?bitrate=1

<ASX><ENTRY><TITLE></TITLE>
<REF HREF="http://mediak.yle.fi/media/areena/1/72/36/1723628_1019113.wmv"></REF>
<REF HREF="http://mediau.yle.fi/media/areena/1/72/36/1723628_1019113.wmv"></REF>
</ENTRY></ASX>

doze
2008-12-16, 20:09
New 1.0.2 versions available with minor fixes: Program title parsing (what is shown in pre-set categories view and in search) was fixed so that the script doesn't choke if title is not set. Pre-set categories were moved to own folder not to clutter the "main view".

NOTE: I'd really like to get some help with that stream playback issue for other platforms. Anyone have any ideas?

Also, stream seeking would be nice. Don't know why mplayer doesn't support it. It could be done by saving the stream to a file temporarily and reading from there.. but I don't really like that option.

realjobe
2008-12-23, 13:10
Not sure if there's need for bug reports yet but atleast here's standard mplayer's log from console when I'm trying to open a video address I copied from the YleAreena plugin:Playing http://mediak.yle.fi/kotimaa/areena/1/67/30/1673022_999481.wmv?MSWMExt=.asf.
Resolving mediak.yle.fi for AF_INET6...
Couldn't resolve name for AF_INET6: mediak.yle.fi
Resolving mediak.yle.fi for AF_INET...
Connecting to server mediak.yle.fi[195.248.86.140]: 80...
Cache size set to 320 KBytesAnd it just keeps repeating that.

same problem here,even with 1.0.2 version.Can't open any stream..

realjobe
2009-01-09, 13:51
same problem here,even with 1.0.2 version.Can't open any stream..

Problem "sovled". Use official Atlantis version only, this one works.
Can anyone tell me where to find (trunk?) similar Finn plugins
SubTV & Nelonen video plugs?
:)

mikko70
2009-01-10, 01:33
doze plugins http://doze-xbmc-plugins.googlecode.com/svn/trunk/
but plugins not work right, only start video plays in loop

realjobe
2009-01-11, 13:09
doze plugins http://doze-xbmc-plugins.googlecode.com/svn/trunk/
but plugins not work right, only start video plays in loop

Thanks! MTV3 and SubTV plugs doesn't work, even with Atlantis.. :(((

realjobe
2009-01-27, 09:46
Thanks! MTV3 and SubTV plugs doesn't work, even with Atlantis.. :(((

Can anyone verify wheater this plugin works with "2009-01-25 SVN rev17349-T3CH" build now? I

doze
2009-01-27, 15:37
Can anyone verify wheater this plugin works with "2009-01-25 SVN rev17349-T3CH" build now? I
Do you mean YleAreena plugin or the SubTV / MTV3 etc. plugins? Because YleAreena plugin is the only one I have fully implemented and released. I don't think that the other plugins will work.. They are pretty much still under work, and I don't remember to what point I implemented them.. They might not even give the stream url to xbmc.

YleAreena plugin should work though.. And I have some info for the playback issue with other platforms than XBOX:

First the bad, the dvdplayer in xbmc does not seem to be able to play the streams from YleAreena.

Then the good, the plugin works fine (i think) if external player is used in xbmc with other platforms, like WMP. There are custom builds for that.

EDIT: Changed external player to WMP, it seems that VLC cannot play areena streams.

realjobe
2009-01-28, 08:45
Do you mean YleAreena plugin or the SubTV / MTV3 etc. plugins? Because YleAreena plugin is the only one I have fully implemented and released. I don't think that the other plugins will work...

Excelent, I was talking about YleArena, so I'm gonna update XBMC tonite. :)

I took a quick glance to http://www.sub.fi/nettitv/ and http://www.nelonen.fi/nettitv/and they are quite a lot of work in order to Rip the urls of the clips off.. There are few tools to windows that rips and interperts the html...

Those would be quite marvellous to have (sub&nelonen)..

Finx
2009-03-11, 02:33
I've been working with another plugin for YLE Areena (http://code.google.com/p/plex-yle-areena-plugin/) similar to that doze's but for Plex media server. I decided to write one from scratch due to the difference in the underlying framework. The problem in video streaming (on other platforms than xbox) seems relate to the parsing of the asx-file. Anyhow, I used the following approach to get the video streaming work (and also confirmed the solution to work in doze's plugin):
1. Fetch asx-file, e.g. http://www.yle.fi/java/areena/dispatcher/1973584.asx?bitrate=1000000
2. Parse url from asx, e.g. http://mediak.yle.fi/media/areena/1/95/64/1956429_1148736.wmv
3. Replace 'http' with 'mms'
4. Use the result as video url

There is one ceveat in this approach, though. I found out that some streams (see newest episodes of "Pasila" for instance) go through "ondemand" service, which causes this solution not to work. I didn't figure out yet how to overcome this problem.

Jeroi
2009-03-27, 20:54
Atleast latest tech build XBMC can stream Yleareena in XBOX. But buffering is my problem, why does XBMC take age to buffer streams. The same problem occurs with Apple Trailers also, which is included with XBMC.

Connection is 8mbit NAT, 100mb lan.

In finnish:

Doze mä todellakin ootan et saisit mtv3 ja nelonen sekä subtv pluginit toimimaa!

In english:

Doze, I really wait for you to complete your mtv3, nelonen and subtv plugns!

Plus few feature requests for yleareena plugin....

1. in list view, list also the TV show name, Now you list only shows topic ie. Poliisi-tv - Poliisit ajavat takaa karkulaista! You list now only: Poliisit ajavat takaa karkulaista.
2. Also if yleareena supports gategories like apple trailers ie. documents, drama, kids it would be nice to browse yleareena in gategories.

mikko70
2009-03-28, 10:49
Jeroi:

Also if yleareena supports gategories like apple trailers ie. documents, drama, kids it would be nice to browse yleareena in gategories.
what version you use? v1.02 uses categories

http://code.google.com/p/doze-xbmc-plugins/downloads/list



Atleast latest tech build XBMC can stream Yleareena in XBOX. But buffering is my problem, why does XBMC take age to buffer streams. The same problem occurs with Apple Trailers also, which is included with XBMC
how long compared viewing with internet browser (IE Firefox)
try with newer builds:

http://www.sshcs.com/xbmc/

realjobe
2009-04-08, 08:21
Hi there.
There are some news rising up that YleArena has dumped MS WMV formatted videos and are turning to Flash (FLV?) mpeg-4 H:264 with AAC sound.

Beta Stage is http://areena-beta.yle.fi/

? How will this effect the Plugin? I presume that some changes must be done?

.)

JaniL
2009-04-08, 09:13
Hi there.
There are some news rising up that YleArena has dumped MS WMV formatted videos and are turning to mpeg-4 H:264 with AAC sound.

Beta Stage is http://areena-beta.yle.fi/

? How will this effect the Plugin? I presume that some changes must be done?

.)

I've been checking it, but with no results. It's using RTMP so it's quite similar to BBC iPlayer.

http://philwilson.org/blog/2007/12/downloading-from-the-bbc-streaming-iplayer-is-hard

where both SECRET_KEY and STREAM_NAME come from a file of the name http://www.bbc.co.uk/mediaselector/3/stream/check/iplayer?pid=PID where PID is a BBC Programme ID such as b008h3zq as found on http://www.bbc.co.uk/programmes/

YLE has similar thing, i'll post information about it when i come back home.

realjobe
2009-06-24, 14:26
Current YleArena has now stop working, probably due to a new site, so are there anymore any intrests of fixing this? :))

please.

JaniL
2009-06-24, 14:44
Current YleArena has now stop working, probably due to a new site, so are there anymore any intrests of fixing this? :))

please.

Seems that it isn't possible atm:

http://xbmc.org/forum/showpost.php?p=351107&postcount=4

realjobe
2009-06-24, 14:51
Seems that it isn't possible atm:

http://xbmc.org/forum/showpost.php?p=351107&postcount=4

CRAP! Too smart Yle's developers!! s****