PDA

View Full Version : [RELEASE] Sveriges Television (SVT) Script


dsvensson
2007-03-17, 16:28
New version of Sveriges Television out the door. This time using guibuilder to add skinnable gui.

To get the high quality streams you need a new mplayer.dll found on this forum:
http://xbmc.org/forum/showthread.php?t=23969 (last page)

As with all guibuilder based scripts you need a fairly new version of XBMC too.

redsolo
2007-03-20, 18:32
Great job with this script! Jag gillar den skarpt :)

BTW, you mention in the readme about getting high quality feeds, that I need to get a newer player? or is the latest XBMC build good enough?

dsvensson
2007-03-20, 18:43
Great job with this script! Jag gillar den skarpt :)

BTW, you mention in the readme about getting high quality feeds, that I need to get a newer player? or is the latest XBMC build good enough?

Du måste till största sannolikhet ha nyare om xbmc builden du använder bara är en snapshot av xbmc-devel. Den nyare mplayer versionen har inte kommit in i utvecklingsträdet än.

dsvensson
2007-04-12, 02:59
Finally took the time to improve upon this script. A heap of bugs fixed related to assembling the correct urls. I've watched lots of SVT on the xbox the last weeks as my antenna cable is too short after the rearranging of the livingroom and I haven't found any urls not playable in a while. Bugs partly due to my errors, partly due to that I hadn't seen all combinations of possible urls. Consistency isn't something SVT holds high.

A new feature entered trunk today too. You can now search for videoclips. I'm going to add search history just like in my YouTube script and then I think I'll push out a new version before starting the conversion to WindowXML.

So if you have nothing else to do, grab the latest snapshot and try to find unplayable urls. You should get an interesting error message in the log if it fails, post it here.


svn checkout http://xbmc-scripting.googlecode.com/svn/trunk/SverigesTelevision svt

dsvensson
2007-04-19, 16:51
Updated the script to use WindowXML to create the GUI. If no bugs are found I'll push out a new version this weekend.

Changes since last stable version:
- WindowXML
- Search

To grab a snapshot:

svn checkout http://xbmc-scripting.googlecode.com/svn/trunk/SverigesTelevision svt

phunqe
2007-11-13, 13:17
Is this script still working?

Thanks.

Gamester17
2007-11-13, 14:54
Yes (very well), ...but the skin/GUI could use some work :;):

phunqe
2007-11-28, 16:07
Pardon my stupidity, but where do I actually download the latest version? I tried http://exodus.xmms.se/~nano/ but I could only find the 0.91 there.

Thanks.

Gamester17
2007-11-29, 10:47
http://www.xbmcscripts.com do a search for "Sveriges" to fint it.

Also checkout "SvtMediaBrowser" and "Sveriges Radio" scripts :;):

dsvensson
2007-12-07, 11:58
Hi,

For all the users of my SVT script it seems that it's a bit broken for the moment. Recently SVT started using Flash to play videos online, not everywhere, but some clips at least. This kind of sucks as I wished they'd switch to Dirac or some other free format. Anyway, it's not a complete disaster as the url to the .flv-file is accessible, I have a new version on my laptop that I was going to release soon anyway, so I'll just add support for flv-types too and everything should work again.

I would suggest everybody using my script to sign this petition:

http://www.namninsamling.se/index.php?sida=2&nid=1120

So that SVT knows that its users want free formats. Going to add support for signing the petition from within the script user interface too so that it gets more exposure.

Ok, so hold out.. with some luck I'll be able to get some time later this week, and I aim for a new version to be released Sunday afternoon or something.

Gamester17
2007-12-07, 16:48
The very latest Adobe Flash version (a.k.a. Flash 9 Moviestar) uses MPEG-4 AVC H.264 video codec and AAC audio codec (http://www.vnunet.com/vnunet/news/2205138/flash-goes-def) and those codecs and FLV is something that XBMC supports (via FFmpeg (http://www.ffmpeg.org)), however those are very high CPU intensive codecs, but as long as they use low enough resolution (say for example a maximum of 352x288 with Cabac & Deblocking, or 480x576 withour Cabac & Deblocking as that is something the Xbox should always be able to handle), ...or possible serve two versions of the same files/stream, one low-resolution at 352x288 and one high-resolution at 720x576 then the Xbox will be able to handle the low-resolution (352x288) stream, ...and the high-resolution (720x576) stream could be watched by most computers including one running XBMC for Linux.

Alternativly ben them to use MPEG-4 ASP H.263 which is also a large standard (used by DivX, XviD, and more) would be a better chooise for XBMC because of the slow Xbox processor as MPEG-4 ASP H.263 is not as CPU intensive as MPEG-4 AVC H.264 meaning the Xbox will have no problems handling 720x576 resolution, but on the other hand it requires higher bitrate (faster broadband bandwith for end-users, and more expensive for the host).

dsvensson
2007-12-11, 01:46
Well, sure it supports playing this. And as I said I have a working version that plays the new streams from Swedish Television. However, it sucks that a TV station that proudly calls itself free, that is funded by tax-money, uses proprietary formats. It would be much much better if they'd use Theora or Dirac. That is what the petition is all about. Proprietary, patent-damaged codecs must die.

Also, bandwidth in Sweden is dead cheap, I pay about 35 EUR for 24MBit down, 8MBit up, and if you're lucky you can get 100MBit up/down for 20 EUR. As for processing power, it doesn't matter much as you could always get faster hardware, which is also cheap. Using a codec like Theora will hopefully not require any browser plugin (this is video content from their webportal) in the future when Firefox 3 and the next Opera is out, so much easier for the users, and playable everywhere the users want, legally.

And I'm happy to say that I've uploaded a new version of the Swedish Television script to xbmcscripts.com. It currently awaits someone to actually process the upload so that it can be installed the usual way. I'll get back here when it's up.

Cimlite
2007-12-12, 06:33
I've looked through the site, and your script, I can't find a single video that is .flv? Exactly for what videos are using the Flash format?

Also a huge thanks for keeping this script up to date. I use it regularly, so I really appreciate it. :)

LezlieX
2007-12-12, 11:30
Nice to see an update, the script seems to be out on xbmcscripts now. I was trying out the old version (0.92?) script yesterday, and not many clips worked. E.g. Grotesco, most "Melodifestivalen" clips and more.

I will try it out tonight.

LezlieX
2007-12-13, 13:49
Tried it out, and all videos work like a charm! Some minor issues with audio slightly out-of-sync and wrong aspect ratios, but I gues it's not the scripts fault.

Many thanks!

dsvensson
2007-12-14, 11:25
If you go to "Nyheter" directory, many of the new clips there are now .flv-files. But as XBMC uses mplayer it's not a problem. Just immoral of SVT.

http://xbmcscripts.com/index.php?option=com_docman&task=search_result&Itemid=Array&search_mode=phrase&search_phrase=Sveriges%20Television%20v0.94

Oh, a rant about the choice of non-free formats:

http://dsvensson.wordpress.com/2007/12/11/sveriges-television/

And if you don't care to read... here's the petition:

http://www.namninsamling.se/index.php?sida=2&nid=1120

drygnet
2008-01-11, 12:27
Very nice script.

Just a quick question; what would be good/bad if the script was changed into a plugin?

Gamester17
2008-01-11, 12:42
this script would probably be better as a plugin.

Downside to plugins is that the scripters can't make their own GUI, upside to plugins is that the scripters do not have to use their own GUI (and plugins are also easily accessable from library mode in XBMC).

Bottom line, if is is just streaming video/audio from the internet you want then plugins are a better format. However if you like to create something more interactive like a game, a TV-Guide, a PVR front-end, or something else that requires a custom GUI then a script is the only only option for python (as otherwise you have to program such features nativly in C++).

drygnet
2008-01-11, 12:52
this script would probably be better as a plugin.


OK, So a question to dSvensson then :-)

Do you share Gamester17´s view?

Is it possible that your script will be a plugin in the future?

/Johan

drygnet
2008-01-11, 16:01
Well, sure it supports playing this. And as I said I have a working version that plays the new streams from Swedish Television. However, it sucks that a TV station that proudly calls itself free, that is funded by tax-money, uses proprietary formats. It would be much much better if they'd use Theora or Dirac. That is what the petition is all about. Proprietary, patent-damaged codecs must die.

OT
I think it's even worse that SVT is trying to force us to svt.se to access the content. they should publish the xml behind the navigationon svt-play.

Then all media players/frontends/set-top-boxes and so on can access the material without scraping the site.

Gamester17
2008-01-11, 16:33
You probably want to read through the "BBC iPlayer Script" which is a similar solution and seem close to figuring out a workaround, see => http://xbmc.org/forum/showthread.php?t=27063

Basje
2008-03-14, 22:53
Hi there,

I added svt.se as a channel for XOT. That way you can browse the site and watch episodes from the script.

You can download it here (http://www.rieter.net/uitzendinggemist/) or here (http://code.google.com/p/xot-uzg/)! Let me know if it works ok! Bugs can be submitted at the googlecode page (http://code.google.com/p/xot-uzg/).

Bas

PS: if you don't want the Dutch channels, just delete them from the channel folder!

cloud79
2008-11-22, 15:46
Is there any possibility to upgrade this script so that it works with xbmc atlantis? I can't throw out my old xbox til this is done. My girlfriend watch Andra Avenyn with this script on my old xbox.

Basje
2008-11-22, 23:26
Is there any possibility to upgrade this script so that it works with xbmc atlantis? I can't throw out my old xbox til this is done. My girlfriend watch Andra Avenyn with this script on my old xbox.

What part is not working? Did you try the auto update function of XOT to download the latest SVT.se channel?

cloud79
2008-11-23, 00:17
What part is not working? Did you try the auto update function of XOT to download the latest SVT.se channel?

It says its checking for updates when i start it. I have even reinstalled XOT but nothings changed.

Did the update. still a no go. It tries to open the ram file instead of the wmv.

20081122 23:24:45 - DEBUG - chn_class.py - 462 - 2.==== Lock Acquired
20081122 23:24:45 - DEBUG - chn_class.py - 465 - Item 'Avsnitt 129' not completed yet. Updating Video
20081122 23:24:45 - DEBUG - guicontroller.py - 127 - Fetching info for 'root'. Setting:
20081122 23:24:45 - DEBUG - guicontroller.py - 127 - | Description:
20081122 23:24:45 - DEBUG - guicontroller.py - 127 - + Image: /home/xbmc/.xbmc/scripts/My Scripts/XOT-Uzg.v3/channels/svt/svtimage.png
20081122 23:24:45 - DEBUG - guicontroller.py - 146 - Showing rating: None
20081122 23:24:45 - DEBUG - chn_svt.py - 168 - starting UpdateVideoItem for Avsnitt 129 (Sveriges Television)
20081122 23:24:45 - DEBUG - chn_class.py - 964 - Going to cache
20081122 23:24:45 - INFO - uriopener.py - 148 - Opening requested uri Async: http://svt.se/svt/road/Classic/shared/mediacenter/player.jsp?a=1311817&d=72574 (already 3 threads)
20081122 23:24:45 - INFO - uriopener.py - 417 - Determining which Progessbar to use....
20081122 23:24:45 - INFO - uriopener.py - 425 - FileSize is unknown
20081122 23:24:45 - INFO - uriopener.py - 417 - Determining which Progessbar to use....
20081122 23:24:45 - INFO - uriopener.py - 425 - FileSize is unknown
20081122 23:24:45 - INFO - uriopener.py - 194 - Url http://svt.se/svt/road/Classic/shared/mediacenter/player.jsp?a=1311817&d=72574 was opened successfully
20081122 23:24:45 - DEBUG - chn_svt.py - 197 - Found mediaurl: http://www.svt.se/content/1/c8/01/31/18/17/AA2008-EP129.ram
20081122 23:24:45 - INFO - uriopener.py - 194 - Url http://svt.se/svt/road/Classic/shared/mediacenter/player.jsp?a=1311817&d=72574 was opened successfully
20081122 23:24:45 - DEBUG - guicontroller.py - 127 - Fetching info for 'Avsnitt 129'. Setting:
20081122 23:24:45 - DEBUG - guicontroller.py - 127 - | Description: Start
20081122 23:24:45 - DEBUG - guicontroller.py - 127 - | Film & Drama
20081122 23:24:45 - DEBUG - guicontroller.py - 127 - | Andra Avenyn
20081122 23:24:46 - DEBUG - chn_svt.py - 197 - Found mediaurl: http://www.svt.se/content/1/c8/01/31/18/17/AA2008-EP129.ram
20081122 23:24:45 - DEBUG - guicontroller.py - 127 - | Andra Avenyn: avsnitten
20081122 23:24:45 - DEBUG - guicontroller.py - 127 - | Avsnitt 129
20081122 23:24:46 - INFO - chn_class.py - 477 - Updating item (GUIDs match)
20081122 23:24:45 - INFO - guicontroller.py - 127 - + Image: /home/xbmc/.xbmc/scripts/My Scripts/XOT-Uzg.v3/channels/svt/svtimage.png
20081122 23:24:46 - DEBUG - chn_class.py - 483 - 3.==== UnLocking the lock
20081122 23:24:46 - DEBUG - guicontroller.py - 146 - Showing rating: None
20081122 23:24:46 - DEBUG - guicontroller.py - 127 - Fetching info for 'Avsnitt 129'. Setting:
20081122 23:24:46 - DEBUG - guicontroller.py - 127 - | Description: Start
20081122 23:24:46 - DEBUG - guicontroller.py - 127 - | Film & Drama
20081122 23:24:46 - DEBUG - guicontroller.py - 127 - | Andra Avenyn
20081122 23:24:46 - INFO - uriopener.py - 148 - Opening requested uri Async: http://www.svt.se/content/1/c8/01/31/18/17/AA2008-EP129.ram (already 2 threads)
20081122 23:24:46 - INFO - guicontroller.py - 127 - | Andra Avenyn: avsnitten
20081122 23:24:46 - INFO - guicontroller.py - 127 - | Avsnitt 129
20081122 23:24:46 - INFO - guicontroller.py - 127 - + Image: /home/xbmc/.xbmc/scripts/My Scripts/XOT-Uzg.v3/channels/svt/svtimage.png
20081122 23:24:46 - INFO - uriopener.py - 417 - Determining which Progessbar to use....
20081122 23:24:46 - DEBUG - guicontroller.py - 146 - Showing rating: None
20081122 23:24:47 - INFO - uriopener.py - 422 - FileSize is known (fileSize=67)
20081122 23:24:47 - INFO - uriopener.py - 194 - Url http://www.svt.se/content/1/c8/01/31/18/17/AA2008-EP129.ram was opened successfully
20081122 23:24:47 - INFO - chn_svt.py - 208 - Starting Video Playback of ['rtsp://qstream-rm.qbrick.com/00928/kluster/20081113/AA2008-EP129.rm'] using the defaultplayer
20081122 23:24:47 - INFO - chn_class.py - 922 - Starting Video Playback using the defaultplayer
20081122 23:24:47 - DEBUG - chn_class.py - 926 - Going to playback a Playlist containing 1 items:
20081122 23:24:47 - DEBUG - chn_class.py - 926 - + ['rtsp://qstream-rm.qbrick.com/00928/kluster/20081113/AA2008-EP129.rm']
20081122 23:24:47 - INFO - chn_class.py - 940 - Playing using default player
20081122 23:24:47 - DEBUG - chn_class.py - 241 - onAction (with buttonid=61453 and id=7) detected (ThrdID=-1647035504)

Novin
2009-02-16, 13:03
Just used this script on XBMC for Linux ppa build 8.10final1svn17700-intrepid1. Works fine!

Basje
2009-02-16, 20:32
It says its checking for updates when i start it. I have even reinstalled XOT but nothings changed.

Did the update. still a no go. It tries to open the ram file instead of the wmv.

Please post a complete logfile at pastebin.ca (not here). But I think XOT is not the problem.

slacker666
2009-06-06, 01:34
I cannot get it to start, keeps saying "Error Python script failed: special://home/plugins/video/SverigesTelevision/default.py"

running XBMC pre v9.10 r20986 on Kubuntu 9.04

Basje
2009-06-06, 11:00
I cannot get it to start, keeps saying "Error Python script failed: special://home/plugins/video/SverigesTelevision/default.py"

running XBMC pre v9.10 r20986 on Kubuntu 9.04
Enable debug logging and check again. That should give you more information

Arias
2009-06-13, 19:26
I cannot get it to start, keeps saying "Error Python script failed: special://home/plugins/video/SverigesTelevision/default.py"


Got the same on Win Vista - http://filebin.ca/fwskoh/xbmc.log

Siddan
2009-06-23, 12:58
Hej

Jag hade scriptet väl fungerande och det gick att se på alla kanaler. Men nu ser det ut som SVT inte fungerar. Man kan visserligen bläddra bland kategorierna men inga videofiler syns till, det är helt blankt.

Alla andra kanaler fungerar fortfarande, speciellt TV3 och TV6 som jag är intresserade utav.
Jag ser inget speciellt i logfilen, förutom att på en rad står det Error oopening url. Men sista raden står det att det är successful.

Så jag undrar om problemet är bara hos mig, eftersom jag ser inga andra som nämner om detta?

Har installerat den senaste XBMC på xbox och även den senaste XOT

XOT-Uzg.v3.2.0b5.zip
XBMC: XBMC 9.04.1 Rev 20848

/Tack

Basje
2009-06-23, 14:55
Hej

Jag hade scriptet väl fungerande och det gick att se på alla kanaler. Men nu ser det ut som SVT inte fungerar. Man kan visserligen bläddra bland kategorierna men inga videofiler syns till, det är helt blankt.

Alla andra kanaler fungerar fortfarande, speciellt TV3 och TV6 som jag är intresserade utav.
Jag ser inget speciellt i logfilen, förutom att på en rad står det Error oopening url. Men sista raden står det att det är successful.

Så jag undrar om problemet är bara hos mig, eftersom jag ser inga andra som nämner om detta?

Har installerat den senaste XBMC på xbox och även den senaste XOT

XOT-Uzg.v3.2.0b5.zip
XBMC: XBMC 9.04.1 Rev 20848

/Tack
OK, the SVT.se channel is broken, I will fix it as soon as possible. Could you please post your question in English? So I can read it?

EDIT: Fixed it. Use the auto update function or download it here: http://code.google.com/p/xot-uzg/downloads/detail?name=svt.20090623.zip&can=2

Gamester17
2009-06-24, 00:36
I would love to see this Sveriges Television script ported to a plugin :nod: ...I really like dedicated plugins over scripts :;):

Siddan
2009-06-24, 02:06
OK, the SVT.se channel is broken, I will fix it as soon as possible. Could you please post your question in English? So I can read it?

EDIT: Fixed it. Use the auto update function or download it here: http://code.google.com/p/xot-uzg/downloads/detail?name=svt.20090623.zip&can=2


Hey. Thanks for a quick respons!

I was just whining why SVT would not work and I could not find any topics confirming my problems :) So since you also discovered there is something faulty then I know it is not only messing for me.

I just updated within the script as yoou first suggested but still I can not play any files. Later I also updated it manually.
Allthough there are at least subcategories within each directory of the TV show there are still no files to select.
Before the update there were no subcategories at all. So there is a progress ;)

All other channels work, foremost TV3 and TV6 which I have more interest of.
Is SVT using somewhat more complex system than the others or are the others just very clean and easy? (That´s how advanced my programming skills are :D )


I would love to see this Sveriges Television script ported to a plugin ...I really like dedicated plugins over scripts

I dunno if you haven´t noticed but XOT can be run as a plugin aswell. When SVT is functional again you can view it as a plugin along with the rest of the channels XOT has.

Gamester17
2009-06-24, 16:56
I would love to see this Sveriges Television script ported to a plugin ...I really like dedicated plugins over scripts

I dunno if you haven´t noticed but XOT can be run as a plugin aswell. When SVT is functional again you can view it as a plugin along with the rest of the channels XOT has.Like I said, I like dedicated plugins, meaning one plugin per site or genre, ...I do not like scripts/plugins like XOT or Navi-X, and in any case please do not discuss XOT or Navi-X in this thread (or any other thread that are not specifically about them) as that is off-topic and thus counts as thread hijacking which is more than frowned upon, ...we even had to ban a guy for hijacking every thread while trying to promote Navi-X over dedicated plugins.

Siddan
2009-06-25, 11:01
ok Pardon me for "hijacking" this thread... I thought I just continued the disscussion for the use of XOT and SVT channel which began in this thread last year 22:nd November....

I´d hate to see Basje getting banned :shocked: since he seems to be the only one involved making SVT watchable in Xbox :D