Page 1 of 6

[Obsolete] SvtPlay (Sweden only)

PostPosted: Sat Sep 24, 2011 8:24 pm
by FlamingLizard
SvtPlay(swedish television) Plugin.

Feed-path:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain


Credit to gimbal and sulfobus for finding the category feeds. I took the liberty to copy them here for easy reference.

Here are the links for the latest broadcasts by category:

Barn:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Samhälle & Fakta:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Film & Drama:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Kultur & Nöje:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Sport:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Nyheter:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Exchange "expression=full" to "expression=sample" to get the latest clips, not just full programs.

Re: SvtPlay (Sweden only)

PostPosted: Sat Sep 24, 2011 9:58 pm
by aussie2sweden
Thank you so much... :-) fingers crossed more play sites listed soon..

Re: SvtPlay (Sweden only)

PostPosted: Sun Sep 25, 2011 7:36 pm
by Gimbal
I tried it but it seems my Samsung B-series TV can't play the files. :cry: It tries to play it but says that the file format isn't supported and then skips to the next svtplay program.

Re: SvtPlay (Sweden only)

PostPosted: Sun Sep 25, 2011 8:17 pm
by FlamingLizard
I'm on a Samsung B-series myself, so it may very well not be the tv...

I haven't done huge amounts of testing though, so there could also be a bug on my part.

Is it always the same issue with the same show? Does it happen on several different shows?

Re: SvtPlay (Sweden only)

PostPosted: Sun Sep 25, 2011 9:26 pm
by fgunger
Seems like a nice job!

When I'm up to it I would extend it to select quality based on the incoming parameter. :)

I have one major problem though, it doesn't work at all with my Serviio running on my Ubuntu Linux. My Serviio logs errors similar to:
  Code:
2011-09-25 23:12:00,665 WARN  [FeedUpdaterThread] Failed to retrieve feed item information for rtmp://fl11.c91005.cdn.qbrick.com/91005/_definst_/kluster/20110924/1191201-0924RAPPORT1930-PLAY-mp4-c-v1.mp4. It might not play.
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
   at org.serviio.library.online.metadata.FeedUpdaterThread.updateLazyLoadedProperties(FeedUpdaterThread.java:188)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:93)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
   at org.serviio.library.metadata.FFmpegMetadataRetriever.validateCodecsFound(FFmpegMetadataRetriever.java:318)
   at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:68)
   at org.serviio.library.online.metadata.FeedUpdaterThread.updateLazyLoadedProperties(FeedUpdaterThread.java:169)
   ... 1 more


As seen, the rtmp URL are extracted al right, but Serviio doesn't seem to know what kind of media type this is. Thing is, using rtmpdump (i.e. http://svtget.se/) works fine, and Serviio transcodes the .mp4 file and it plays well on my TV (Sony Bravia).

Am I the only one experiencing these problems?

Re: SvtPlay (Sweden only)

PostPosted: Sun Sep 25, 2011 9:38 pm
by zip
what OS are you on? Do you use the supplied FFmpeg?

this works ok for me:

  Code:
ffmpeg -i "rtmp://fl11.c91005.cdn.qbrick.com/91005/_definst_/kluster/20110924/1191201-0924RAPPORT1930-PLAY-mp4-c-v1.mp4"

Re: SvtPlay (Sweden only)

PostPosted: Sun Sep 25, 2011 9:40 pm
by Gimbal
So far all the svtplay shows I have tried have failed. I've tried about five or six or something like that and they all have "unsupported file format".

Wait, now it works!
For some reason I had two render profiles, the first one was an unknown device and the second one was my TV. (It's been that way for months and since everything has worked up until now I haven't touched it) But now I removed the unknown device and hey presto, SVT play works.

Thanks for the plugin. :D

Re: SvtPlay (Sweden only)

PostPosted: Sun Sep 25, 2011 11:27 pm
by aussie2sweden
Also fail for me.. i have a B model panel with a D series Home Theatre.. with smart hub..

Found out peerblock was blocking the ip of the feed.. all is good :-)

Re: SvtPlay (Sweden only)

PostPosted: Mon Sep 26, 2011 8:51 am
by zip
enable detailed log and post the ffmpeg command it uses to transcode the file

Re: SvtPlay (Sweden only)

PostPosted: Mon Sep 26, 2011 11:25 am
by FlamingLizard
Gimbal wrote:So far all the svtplay shows I have tried have failed. I've tried about five or six or something like that and they all have "unsupported file format".

Wait, now it works!
For some reason I had two render profiles, the first one was an unknown device and the second one was my TV. (It's been that way for months and since everything has worked up until now I haven't touched it) But now I removed the unknown device and hey presto, SVT play works.

Thanks for the plugin. :D



Great news that you got it working in the end! :)

Re: SvtPlay (Sweden only)

PostPosted: Mon Sep 26, 2011 11:30 am
by FlamingLizard
aussie2sweden wrote:Also fail for me.. i have a B model panel with a D series Home Theatre.. with smart hub..


Do you have your render-profile setup correctly? Perhaps your issue is similar to the one Gimbal had?

If that's not it, then what sort of "fail" is it?

Re: SvtPlay (Sweden only)

PostPosted: Mon Sep 26, 2011 11:37 am
by FlamingLizard
fgunger wrote:Seems like a nice job!

When I'm up to it I would extend it to select quality based on the incoming parameter. :)

I have one major problem though, it doesn't work at all with my Serviio running on my Ubuntu Linux. My Serviio logs errors similar to:
[code]
...
Am I the only one experiencing these problems?


Yah, I'm ignoring the quality-parameter at the moment because I always want the highest possible quality anyway... But it would be a good way to extend/improve the plugin.

As for your error on ubuntu I better leave your issue in zip's skilled hands as it seems to be related to serviio rather than the plugin itself(although I may be utterly wrong here).

Re: SvtPlay (Sweden only)

PostPosted: Mon Sep 26, 2011 9:00 pm
by aussie2sweden
aussie2sweden wrote:Also fail for me.. i have a B model panel with a D series Home Theatre.. with smart hub..



Forgot to check peerblock.. now working great with all links shown in menu.. with D series HT...


Great work thanks heaps.. btw tv3play thru smart hub is worth checking out..

Re: SvtPlay (Sweden only)

PostPosted: Mon Sep 26, 2011 9:20 pm
by sulfobus
Many thanks for the plugin (and for the online feeds-function), it works well with serviio on a windowsxp-PC and a samsung D-series tv (UE376517) connected by wifi.

Just to clarify the feed creation, the number in the feed URL in the first post can be replaced by the number shown in the web-view URL.
Example: http://svtplay.se/t/103478/dokumentarfilm
becomes: http://feeds.svtplay.se/v1/video/list/1 ... mode=plain
Probably obvious to most, but just in case... :)

Question: Is there a way to show the latest feeds in a specific category, not just the "all category"-view in the example?

Re: SvtPlay (Sweden only)

PostPosted: Tue Sep 27, 2011 5:42 am
by FlamingLizard
sulfobus wrote:Many thanks for the plugin (and for the online feeds-function), it works well with serviio on a windowsxp-PC and a samsung D-series tv (UE376517) connected by wifi.

Just to clarify the feed creation, the number in the feed URL in the first post can be replaced by the number shown in the web-view URL.
Example: http://svtplay.se/t/103478/dokumentarfilm
becomes: http://feeds.svtplay.se/v1/video/list/1 ... mode=plain
Probably obvious to most, but just in case... :)

Question: Is there a way to show the latest feeds in a specific category, not just the "all category"-view in the example?


I wasn't aware that there were feeds for all the programs, I've been searching for something similar...

Further clarification on the feed-generation: As solfobus says above the number in the feed url can be replaced by the number for a particular show to get a feed for all episodes of that show.
Example:
Show URL: http://svtplay.se/t/102814/vetenskapens_varld
Feed: http://feeds.svtplay.se/v1/video/list/1 ... mode=plain


To the point. Yesterday I got categories working at home. However, it requires that I run a groovy-script to create the rss-feeds for the different categories and then publish them on localhost, as I couldn't find any feeds for the categories on the svtplay-website. I'm looking into a way to get around this, although it might not be possible with the current plugin-system.

Re: SvtPlay (Sweden only)

PostPosted: Tue Sep 27, 2011 2:30 pm
by Gimbal
Are we talking about categories at SVTplay such as "Film och drama" or "nyheter"? If that is the case all I did was selecting the RSS feed icon on the web-browser for the different categories I wanted and then cut-and-pasted the address from the adress field of the browser into serviio. I now have three different categories to choose from, pretty sweet actually. Thanks Petr for a great piece of software.

Re: SvtPlay (Sweden only)

PostPosted: Tue Sep 27, 2011 7:40 pm
by sulfobus
Thanks. Here are the links for the latest broadcasts:

Barn:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Samhälle & Fakta:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Film & Drama:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Kultur & Nöje:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Sport:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Nyheter:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Exchange "expression=full" to "expression=sample" to get the latest clips, not just full programs.

Re: SvtPlay (Sweden only)

PostPosted: Wed Sep 28, 2011 5:57 am
by FlamingLizard
Gimbal wrote:Are we talking about categories at SVTplay such as "Film och drama" or "nyheter"? If that is the case all I did was selecting the RSS feed icon on the web-browser for the different categories I wanted and then cut-and-pasted the address from the adress field of the browser into serviio. I now have three different categories to choose from, pretty sweet actually. Thanks Petr for a great piece of software.


Hm, which browser did you use to find those rss-links? I don't seem to get them in Firefox...

Either way it's great news that there are rss-feeds for these. Good find!

Re: SvtPlay (Sweden only)

PostPosted: Wed Sep 28, 2011 6:01 am
by FlamingLizard
sulfobus wrote:Thanks. Here are the links for the latest broadcasts:

Barn:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Samhälle & Fakta:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Film & Drama:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Kultur & Nöje:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Sport:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Nyheter:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Exchange "expression=full" to "expression=sample" to get the latest clips, not just full programs.



Good summary there sulfobus.

Just for fun I can add that you can combine categories as well...
Kultur, Nöje, Film och Drama:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Or do single categories...
Film:
http://feeds.svtplay.se/v1/video/list/9 ... mode=plain

Re: SvtPlay (Sweden only)

PostPosted: Wed Sep 28, 2011 10:52 am
by Gimbal
FlamingLizard wrote:Hm, which browser did you use to find those rss-links? I don't seem to get them in Firefox...


Right I forgot about that, for some reason Firefox doesn't have this function any more, you have to install an RSS plugin to get it back. (I say "back" because it used to be integrated in Firefox.)