FAQ  •  Register  •  Login

Twitch.tv/Justin.tv

<<

fiet

Serviio newbie

Posts: 3

Joined: Sun Apr 06, 2014 6:37 pm

Post Fri Apr 11, 2014 10:42 pm

Re: Twitch.tv/Justin.tv

jules wrote:post a detailed log


I used the detailed log and there's a lot happening but I really don't know what part could be helpfull to solve the problem
<<

fiet

Serviio newbie

Posts: 3

Joined: Sun Apr 06, 2014 6:37 pm

Post Fri Apr 11, 2014 11:08 pm

Re: Twitch.tv/Justin.tv

fiet wrote:
jules wrote:post a detailed log


I used the detailed log and there's a lot happening but I really don't know what part could be helpfull to solve the problem


I did just find out that some source video's do work but lower quality don't and nothing for riotgames works and that's the stream I want to watch
<<

AdmiralSpeedy

Serviio newbie

Posts: 1

Joined: Wed Apr 23, 2014 7:48 am

Post Wed Apr 23, 2014 8:01 am

Re: Twitch.tv/Justin.tv

I had to give up because it's now almost 2AM, but I would really like to get this working. I have the latest version of Serviio and the Plugin and I can add a stream and start playing it just fine on my Xbox One with Skifta.

My issue is the length of the stream. I'm trying watch a past recorded stream, with the link format http://www.twitch.tv/CHANNEL/b/0000000 and when I start playing it, it shows the length as 8:19, however the stream is over 3 hours long. When it hits 8:19, it just stops playing on a black screen.

I can't test it on VLC right now because the latest version of VLC is bugged and when you click UPnP it just crashes VLC totally. I've tried on my 360 and my One. The 360 won't even play the stream, but lists it as 8 minutes and my One will play 8:19 minutes of the stream perfectly. I've tried force refreshing, trying the link with/without WWW. and disabling transcoding. Basically I've tried everything that I can think of. One interesting thing to note is that I was originally just going to download the stream and watch it off a flash drive on my 360, before remembering this plugin, but when I used the "TwitchTools" website, it listed the stream in parts because it was over 100mb and the last part it listed is 8:19 seconds long. I'm wondering if the plugin for some reason is grabbing only a part of the stream? The strange thing about the TwitchTools site is that it lists the 8:19 part as the very last part of the stream, however the 8:19 that the plugin fetches is definitely the first part of the stream.

Any help would be greatly appreciated. I'd rather not have to download and convert 7 parts to watch this stream on my TV.
<<

tionick

Serviio newbie

Posts: 1

Joined: Wed Apr 23, 2014 12:43 pm

Post Wed Apr 23, 2014 12:46 pm

Re: Twitch.tv/Justin.tv

some streams sound work perfectly, but the video freeze, run on fast mode for 4 seconds, and freeze again (see on twitch .tv/ongamenet)
someone got this bug with another stream?
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Wed Apr 23, 2014 3:11 pm

Re: Twitch.tv/Justin.tv

twitch streams are usually segmented into 30min parts, so one vod usually comes out as (duration/30m) segments. the plugin uses file-level concatenation of ffmpeg ("concat:file1.flv|file2.flv|..."), and i tried it out on my setup a while ago and it worked, but perhaps it doesn't for every version of ffmpeg. you could try out a different binary... but depending on your configuration/renderer/source material, you may have to enable transcoding to get it to work, or it may not work at all. aside from a few tests, i'm not using that part of the plugin. if there are more voices that confirm it's a dud, i'll have to remove the functionality until maybe zip incorporates some option to support use of the concatenation demuxer.
<<

PrimalSC

Serviio newbie

Posts: 3

Joined: Mon Feb 03, 2014 4:40 pm

Post Wed Apr 23, 2014 4:24 pm

Re: Twitch.tv/Justin.tv

eskimo19 wrote:
jules wrote:that IS weird. have you done extensive tests to reproduce this; i.e. try different times of day, try multiple times on at least these, if not more streams to verify?

twitch does use geolocation to select a cdn server (IP), but you should get one from more or less the same location for any stream at the same point in time. since the plugin itself does the api lookup, there should be no difference between NA or EU/rest STREAMERS, like, at all.


Tried time of day. Nothing.
Tried refreshing multiple times. Nothing.
Tried different resolutions. Nothing. (only Source works I think.)

I did, however, notice that TrumpSC (NA Hearthstone), was not lagging at all, but that was because his stream only needed 1300k bitrate. Very weird.

I'll try downgrading Serviio tomorrow and see what's up, but it's very odd that only EU/Asia is working properly.

'Cause you'd think streamers like Kripp would lag because of his high view count, but Uknighted's (NA) 1k-ish viewers lagged way harder than the Kripp's (EU) 15k+ stream.


I think i found the cause of why some streams do these weird jumpcuts and some don't. From what i gathered the streams that run preroll ads get the weird lag and the ones who don't run preroll ads don't lag. Now i don't know if you can code around this info or not but thought i'd let you know.
<<

Swiftzn

Serviio newbie

Posts: 8

Joined: Tue Nov 19, 2013 9:26 pm

Post Thu May 01, 2014 3:31 pm

Re: Twitch.tv/Justin.tv

Any reason this plug in doesn't work anymore whenever i try watch a stream it says "Media Server Error"
<<

m33q

Serviio newbie

Posts: 1

Joined: Wed May 07, 2014 10:51 pm

Post Wed May 07, 2014 11:02 pm

Re: Twitch.tv/Justin.tv

I have tried alot of different streams and on some i have no video but audio (most of them), so that the display stays black, no message. Only when i select source quality i have sometimes both, video and audio.
Also tried with another ffmpeg version, but the same happens. Anyone have an idea on this problem?
<<

moarz

Serviio newbie

Posts: 1

Joined: Thu May 29, 2014 10:18 pm

Post Thu May 29, 2014 10:23 pm

Re: Twitch.tv/Justin.tv

Hello, thanks for this great plugin. I've been using this for quite a while now without too many problems but recently my streams have been cutting out after only 30-60 seconds, do you have any idea what could be causing this? My movies are streaming fine.

edit: nvm randomly started working again after a few days
<<

freaknik

User avatar

DLNA master

Posts: 345

Joined: Thu Mar 27, 2014 2:05 pm

Location: Endor

Post Mon Jun 23, 2014 5:13 pm

Re: Twitch.tv/Justin.tv

Doesn't work for me anymore at all. Have tried different versions of serviio, ffmpeg, the most I can get is 30 seconds then it cuts out if it plays at all.

I would love for someone to fix this, the plugin was great when it worked.
<<

mustD1e

Serviio newbie

Posts: 2

Joined: Tue Jul 08, 2014 8:50 am

Post Tue Jul 08, 2014 9:10 am

Re: Twitch.tv/Justin.tv

Hello, please help.
I installed this plugin on Iphone shows fine, but on TV receiver is up display "Unknown file."

ffmpeg updated
Receivers HUMAX CXHD-5150C

I think we need a special transcoding profile, sought him, but found none...

PS sorry for my english.
<<

MusHRooM

Serviio newbie

Posts: 1

Joined: Thu Jul 10, 2014 5:11 pm

Post Thu Jul 10, 2014 5:31 pm

Re: Twitch.tv/Justin.tv

Hi there, :)

I'm using serviio to follow The International 4 (dota2) on my ps3.

The plugin works really fine in source mod, but I have just a little issue : the stream progressively loses the audio/video sync.
There is no noticeable lags or cuts in video neither in audio, just after about 10-15 min of continuous watching, I got a 1 second delay between its (and it increases in time).

Fortunately, I just have to reload the stream to get the sync back, but when games are about 60-80 min, it's a bit annoying to have to reload it about 5 times. ^^'

So I would like to know if someone else got the same issue, and if there is any solution to it.
(I didn't found any post about this)

I already tried to downgrade to 1.1, I didn't work.

NB : other mods (High / Medium / Low) have the 4 seconds freeze issue, but I don't really care because I only want the source one. :p

Thanks for helping
(And thanks to you jules for this plugin, great work ! :) )
<<

Jersey

Serviio newbie

Posts: 1

Joined: Sun Jul 20, 2014 10:15 pm

Post Sun Jul 20, 2014 10:41 pm

Re: Twitch.tv/Justin.tv

I ran into a number of issues setting this up yesterday (July 19th, 2014) for both the dota 2 international and the LoL LCS tournament. I managed to resolve them all, so I thought I'd update everyone in case someone else runs into similar problems.

Serviio version 1.4.2.1.
Playing on: Sharp Aquos LC-60LE745U
Also playing on: Playstation 3

The first issue surfaced to the user as "Cannot playback file" on both my Sharp Aquos "smart" TV and my Playstation 3. Further investigation into the logs revealed this error:

  Code:
[FeedUpdaterThread] An error occured while parsing the online resource http://www.twitch.tv/dota2ti, will try again soon: Unexpected error while invoking plugin (twitch.tv): http://usher.justin.tv/api/channel/hls/dota2ti.m3u8?token={"user_id":null,"channel":"dota2ti","expires":1405835722,"chansub":{"view_until":1924905600,"restricted_bitrates":[]},"private":{"allowed_to_view":true},"privileged":false}&sig=b72d41e9e5be924cae9b6216bc80c8c9a646e4c9&allow_source=true
org.serviio.library.online.metadata.OnlineResourceParseException: Unexpected error while invoking plugin (twitch.tv): http://usher.justin.tv/api/channel/hls/dota2ti.m3u8?token={"user_id":null,"channel":"dota2ti","expires":1405835722,"chansub":{"view_until":1924905600,"restricted_bitrates":[]},"private":{"allowed_to_view":true},"privileged":false}&sig=b72d41e9e5be924cae9b6216bc80c8c9a646e4c9&allow_source=true
   at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:78)
   at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:181)
   at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:198)
   at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:185)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:108)
Caused by: java.io.FileNotFoundException: http://usher.justin.tv/api/channel/hls/dota2ti.m3u8?token={"user_id":null,"channel":"dota2ti","expires":1405835722,"chansub":{"view_until":1924905600,"restricted_bitrates":[]},"private":{"allowed_to_view":true},"privileged":false}&sig=b72d41e9e5be924cae9b6216bc80c8c9a646e4c9&allow_source=true
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)


It seemed that the twitch API was returning the token JSON with all of the quotes escaped. Adding "token = token.replace("\\", "")" to the twitch.groovy fixed that issue for me:
  Code:
   List<WebResourceItem> extractHlsStream(String channelName) {
      def items = [] // prepare list
      
      def tokenJson = new JsonSlurper().parseText(new URL(String.format(TWITCH_ACCESSTOKEN_API, channelName.toLowerCase())).text)
      def token = tokenJson.token
      if(token != null) {
          token = token.replace("\\", "")
      }
      def sig = tokenJson.sig
      
      def playlist = new URL(String.format(TWITCH_HLS_API_PLAYLIST_URL, channelName.toLowerCase(), token, sig)).text
      
      def m = playlist =~ /(?s)NAME="([^"]*)".*?BANDWIDTH=(\d+).*?(http:\/\/.+?)[\n\r]/
      
      while(m.find()) {
         // a generic string should be enough for identifying purposes
         def title = channelName + "-hls" + " [${m.group(1)}/${(Float.parseFloat(m.group(2))/1024) as Integer}K]"
         items += new WebResourceItem(title: title, additionalInfo: [
            expiresImmediately: true,
            cacheKey: title,
            url: m.group(3) ])
      }
      
      return items
   }

The second issue was getting Serviio to detect my Sharp Aquos. In the config/profiles.xml file, you can update the Sharp Aquos profile to detect the User Agent ".*AQUOS.*" (without quotes).

The third issue was getting my Sharp Aquos to pick up the HLS format from twitch. In my version of Serviio (1.4.1.2), the config/application-profiles.xml shows that this gets dumped in the target container "applehttp." I copied the Playstation 3 profile for Online Transcoding to transcode "applehttp" to "mpegts."

The last issue I had was with playback: the video was stuttering and pausing every other second on both my TV and my Playstation 3. It turns out my primary hard drive was low on space, so I had to update the storage location to my secondary hard drive:
Servio Console -> Delivery -> Transcoding -> Transcoded files location

Playback for both the riot streams and valve streams are playing flawlessly through twitch now on both my Playstation 3 and my Sharp Aquos TV. I hope this helps anyone else.
<<

freaknik

User avatar

DLNA master

Posts: 345

Joined: Thu Mar 27, 2014 2:05 pm

Location: Endor

Post Tue Aug 05, 2014 5:18 pm

Re: Twitch.tv/Justin.tv

RIP Justin.tv
<<

mafonekk

Serviio newbie

Posts: 3

Joined: Sun Aug 17, 2014 2:17 pm

Post Sun Aug 17, 2014 2:19 pm

Re: Twitch.tv/Justin.tv

Not works anymore for me since few days, does it work for you ? Or it need some update.
<<

gb321

Serviio newbie

Posts: 1

Joined: Sun Aug 17, 2014 4:18 pm

Post Sun Aug 17, 2014 4:25 pm

Re: Twitch.tv/Justin.tv

It doesn't work since a few days... I dont know why D=
<<

Flixi555

Serviio newbie

Posts: 4

Joined: Fri Mar 14, 2014 7:18 pm

Post Mon Aug 18, 2014 4:07 am

Re: Twitch.tv/Justin.tv

Yep, not working anymore.

I hope this project is still being kept up-to-date, as the last updates have been quite a while back already and with this sudden death it urgently needs revival.
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Mon Aug 18, 2014 10:43 am

Re: Twitch.tv/Justin.tv

i'll take a look at it tonight. but to my knowledge, the basic algorithm should still be working (does fine in other script i have). do you guys have debug logs? sample channels that don't work?
<<

oldschoolsweep

Serviio newbie

Posts: 2

Joined: Mon Aug 18, 2014 12:08 pm

Post Mon Aug 18, 2014 12:15 pm

Re: Twitch.tv/Justin.tv

I installed the plug-in but i'm getting the error "Media Server Error: A network error has occured/ (80710723) on the PS3 for twitch.tv. I have version 1.4.1.2. Any advice on how to fix this?
<<

Flixi555

Serviio newbie

Posts: 4

Joined: Fri Mar 14, 2014 7:18 pm

Post Mon Aug 18, 2014 3:07 pm

Re: Twitch.tv/Justin.tv

Not only specific channels, but all of them stopped working. First I thought it might be a Dota-only problem, since that's what 99% of my channels are, but then I tested with others and still not working.
PreviousNext

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 18 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.