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
jules wrote:post a detailed log
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
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.
[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)
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
}
Users browsing this forum: No registered users and 13 guests