FAQ  •  Register  •  Login

Twitch.tv/Justin.tv

<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Sat Sep 06, 2014 11:25 am

Re: Twitch.tv/Justin.tv

i've had to recompile ffmpeg to make sure we stay gpl compliant and i can actually redistribute this fix without zip getting DMCA'd or something. but i think it'll still work fine in most situations as this only removes some optimizations and the fraunhofer aac decoder.

WINDOWS:
here's ffmpeg.exe, 32bit, v2.3.3 (source): download, to be placed in serviio\lib\
and here's the 64bit compile: download (same version/source/patch)

LINUX/UNIX:
you'll have to recompile ffmpeg yourself according to this guide, then before doing the ./configure line for ffmpeg, download this patch for ffmpeg into the ffmpeg folder, apply it and carry on afterwards.
usage:
  Code:
cd ffmpeg-source-dir
patch -p1 < mpegtsenc.patch
Last edited by jules on Wed Sep 10, 2014 8:36 pm, edited 4 times in total.
<<

ALLEyezOnMe

Serviio newbie

Posts: 9

Joined: Sun May 05, 2013 12:01 am

Post Mon Sep 08, 2014 8:40 pm

Re: Twitch.tv/Justin.tv

Works like a charm! Outstanding work! Cheers :)
<<

Xuhybrid

Serviio newbie

Posts: 3

Joined: Tue Sep 09, 2014 4:22 pm

Post Tue Sep 09, 2014 4:36 pm

Re: Twitch.tv/Justin.tv

The video stops for like 5 seconds, then plays everything in the space of a second. This is on High, Medium, Low and Mobile settings. A previous poster mentioned that it was fine on channels without prerolls. That only seems valid on Source quality because the other quality options do not work, regardless of the channel. The problem with Source quality is that it plays maybe 1 second of footage normally, then just freezes, permanently. No error is shown and it stays there indefinitely. I assume its buffering or something?

I'm watching on a PS3.
Im using your ffmpeg.exe
Downgrading to Serviio 1.1 changed nothing

Source quality works on - twitch.tv/cereth (1739K)
Source quality does not work on - twitch.tv/itmejp (3666K)
Source quality does not work on - twitch.tv/tornis (2882K)

serviio.log
  Code:
2014-09-09 16:16:34,264 INFO  [MediaServer] ------------------------------------------------------------------------
2014-09-09 16:16:34,364 INFO  [MediaServer] Serviio DLNA media streaming server v 1.4.1.2 (rev. 3753eff81a2f)
2014-09-09 16:16:34,364 INFO  [MediaServer] Petr Nejedly 2009-2014
2014-09-09 16:16:34,364 INFO  [MediaServer] http://www.serviio.org
2014-09-09 16:16:34,364 INFO  [MediaServer]
2014-09-09 16:16:34,365 INFO  [MediaServer] Java 1.7.0_67-Oracle Corporation
2014-09-09 16:16:34,365 INFO  [MediaServer] OS Windows 7 amd64 6.1
2014-09-09 16:16:34,365 INFO  [MediaServer] File encoding: windows-1252
2014-09-09 16:16:34,407 INFO  [MediaServer] Headless mode enabled: true
2014-09-09 16:16:34,408 INFO  [MediaServer] User: CHALKY-PC$
2014-09-09 16:16:34,408 INFO  [MediaServer] User home dir: C:\
2014-09-09 16:16:34,408 INFO  [MediaServer] Temp dir: C:\Windows\TEMP\
2014-09-09 16:16:34,408 INFO  [MediaServer] ------------------------------------------------------------------------
2014-09-09 16:16:36,692 INFO  [WebServer] Socket buffer set to 65535 bytes
2014-09-09 16:16:36,710 INFO  [RestletServer] Starting Restlet server (/rest) exposed on port 23423
2014-09-09 16:16:36,915 INFO  [RestletServer] Starting Restlet server (/cds) exposed on port 23424
2014-09-09 16:16:36,915 INFO  [RestletServer] Starting Restlet server (/mediabrowser) exposed on port 23424
2014-09-09 16:16:36,930 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2014-09-09 16:16:36,943 INFO  [DatabaseManager] Using DERBY database language
2014-09-09 16:16:51,624 INFO  [DBSchemaUpdateExecutor] Updating DB schema
2014-09-09 16:17:16,641 INFO  [DBSchemaUpdateExecutor] Cleaning temporary cache
2014-09-09 16:17:19,954 INFO  [Device] Created UPnP Device with UUID: c4c3f607-d848-3c17-8ad1-32df61c5ca1b, bound address: 192.168.0.8
2014-09-09 16:17:20,459 INFO  [DBSchemaUpdateExecutor] Cleaning persistent cache
2014-09-09 16:17:20,505 WARN  [IndexedDiskCache] Region [online_technical_metadata] Reseting cache
2014-09-09 16:17:21,497 INFO  [MediaServer] ------------------------------------------------------------------------
2014-09-09 16:17:21,497 INFO  [MediaServer] License: PRO (EVALUATION, id: 11111111-1111-1111-1111-111111111113)
2014-09-09 16:17:21,497 INFO  [MediaServer] ------------------------------------------------------------------------
--------------- SNIP -----------------
2014-09-09 16:54:30,174 WARN  [ProcessExecutor] Process cmd has a return code of 1! This is a possible error. Detailed output follows.
Stream #0:1 -> #0:0 (copy)
Stream #0:0 -> #0:1 (aac -> ac3)
Press [q] to stop, [?] for help
[mpegts @ 073BFAC0] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb)
av_interleaved_write_frame(): Invalid argument
2014-09-09 16:55:44,538 WARN  [FeedUpdaterThread] Failed to retrieve online item information for http://video4.lhr01.hls.twitch.tv/hls81/itmejp_10992538224_140959922/mobile/index-live.m3u8?token=id=3706481795573767058,bid=10992538224,exp=1410364422,node=video4-1.lhr01.hls.justin.tv,nname=video4.lhr01,fmt=mobile&sig=6870cbefbe2c86f8147ff83af0d9542ed5431bd5. 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.retrieveMetadata(FeedUpdaterThread.java:320)
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:237)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:116)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
   at org.serviio.library.metadata.FFmpegMetadataRetriever.validateMandatoryMetadata(FFmpegMetadataRetriever.java:467)
   at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:100)
   at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveOnlineMetadata(FFmpegMetadataRetriever.java:138)
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveMetadata(FeedUpdaterThread.java:299)
   ... 2 more
2014-09-09 16:57:49,012 WARN  [FeedUpdaterThread] Failed to retrieve online item information for http://video8.lhr01.hls.twitch.tv/hls81/itmejp_10992538224_140959922/mobile/index-live.m3u8?token=id=1731665428679011789,bid=10992538224,exp=1410364547,node=video8-1.lhr01.hls.justin.tv,nname=video8.lhr01,fmt=mobile&sig=3e35ce7d6f622d5e07b89f9dcf80d4a57b2ed0da. 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.retrieveMetadata(FeedUpdaterThread.java:320)
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:237)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:116)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
   at org.serviio.library.metadata.FFmpegMetadataRetriever.validateMandatoryMetadata(FFmpegMetadataRetriever.java:467)
   at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:100)
   at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveOnlineMetadata(FFmpegMetadataRetriever.java:138)
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveMetadata(FeedUpdaterThread.java:299)
   ... 2 more
2014-09-09 17:03:34,039 INFO  [LibraryAdditionsCheckerThread] Finished looking for newly added files
2014-09-09 17:03:34,139 INFO  [LibraryUpdatesCheckerThread] Finished looking for updates to currently shared files
2014-09-09 17:03:34,239 INFO  [PlaylistMaintainerThread] Finished looking for playlist changes
2014-09-09 17:03:34,352 INFO  [LibraryAdditionsCheckerThread] Started looking for newly added files
2014-09-09 17:03:34,353 INFO  [PlaylistMaintainerThread] Started looking playlist changes
2014-09-09 17:03:34,352 INFO  [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2014-09-09 17:03:58,931 INFO  [DiscoveryAdvertisementNotifier] Leaving DiscoveryAdvertisementNotifier
2014-09-09 17:03:58,931 INFO  [DiscoverySSDPMessageListener] Leaving DiscoverySSDPMessageListener
2014-09-09 17:03:58,931 INFO  [EventDispatcher] Leaving EventDispatcher
2014-09-09 17:03:58,931 INFO  [WebServer] WebServer shutting down
2014-09-09 17:03:58,931 INFO  [EventSubscriptionExpirationChecker] Leaving EventSubscriptionExpirationChecker, removing all event subscriptions
2014-09-09 17:04:00,230 INFO  [WebServer] WebServer starting on port 8895
2014-09-09 17:04:03,055 INFO  [Device] Updated bound IP address of Device with UUID: c4c3f607-d848-3c17-8ad1-32df61c5ca1b, bound address: 192.168.0.8
2014-09-09 17:04:03,056 INFO  [EventSubscriptionExpirationChecker] Starting EventSubscriptionExpirationChecker
2014-09-09 17:04:03,056 INFO  [EventDispatcher] Starting EventDispatcher
2014-09-09 17:04:03,056 INFO  [DiscoveryAdvertisementNotifier] Starting DiscoveryAdvertisementNotifier
2014-09-09 17:04:03,155 INFO  [DiscoverySSDPMessageListener] Starting DiscoverySSDPMessageListener using interface eth12 (Realtek PCIe GBE Family Controller) and address 192.168.0.8, timeout = 0
2014-09-09 17:04:03,166 INFO  [RendererSearchSender] Searching for Renderer devices
2014-09-09 17:04:03,482 INFO  [RendererExpirationChecker] Leaving RendererExpirationChecker
2014-09-09 17:11:06,878 INFO  [LibraryAdditionsCheckerThread] Finished looking for newly added files
2014-09-09 17:11:06,978 INFO  [LibraryUpdatesCheckerThread] Finished looking for updates to currently shared files
2014-09-09 17:11:07,078 INFO  [PlaylistMaintainerThread] Finished looking for playlist changes
2014-09-09 17:11:07,192 INFO  [LibraryAdditionsCheckerThread] Started looking for newly added files
2014-09-09 17:11:07,192 INFO  [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2014-09-09 17:11:07,195 INFO  [PlaylistMaintainerThread] Started looking playlist changes
2014-09-09 17:18:41,641 WARN  [PipedOutputBytesReader] Error reading bytes stream from external process: Stream closed
2014-09-09 17:21:37,921 WARN  [PipedOutputBytesReader] Error reading bytes stream from external process: Stream closed
2014-09-09 17:36:02,897 WARN  [PipedOutputBytesReader] Error reading bytes stream from external process: Stream closed
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Tue Sep 09, 2014 5:32 pm

Re: Twitch.tv/Justin.tv

tried it on another upnp renderer, e.g. vlc?

also, i think you need to take a look at my post two replies before yours.
<<

Xuhybrid

Serviio newbie

Posts: 3

Joined: Tue Sep 09, 2014 4:22 pm

Post Tue Sep 09, 2014 5:48 pm

Re: Twitch.tv/Justin.tv

jules wrote:tried it on another upnp renderer, e.g. vlc?

also, i think you need to take a look at my post two replies before yours.

How do i load Serviio via VLC?
I have added ffmpeg which fixed the first problem i encountered (network error).
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Tue Sep 09, 2014 5:55 pm

Re: Twitch.tv/Justin.tv

open the playlist (ctrl+l), then go to universal plug'n'play and wait a while.
<<

Xuhybrid

Serviio newbie

Posts: 3

Joined: Tue Sep 09, 2014 4:22 pm

Post Tue Sep 09, 2014 6:07 pm

Re: Twitch.tv/Justin.tv

It wasn't showing up until i closed PS3 Media Server. Once it showed up, all sources play completely fine. I tried them again on the PS3 afterwards and there is no change, still not functioning.

I also restarted the console right before testing.

  Code:
2014-09-09 19:01:35,558 INFO  [ServiioConsole] Exitting Serviio Console
2014-09-09 19:01:35,559 INFO  [ServiioConsole] Serviio Console completely closed
2014-09-09 19:02:00,903 INFO  [ServiioConsole] Initializing Serviio Console
2014-09-09 19:02:00,932 INFO  [ServiioConsole] Starting Serviio Console
2014-09-09 19:02:02,245 INFO  [ServiioConsole] Connecting to Serviio REST on localhost:23423
2014-09-09 19:02:04,352 INFO  [Messages] Loaded console message bundle for locale: en
2014-09-09 19:02:24,165 INFO  [ServiioConsole] Initializing Serviio Console
2014-09-09 19:02:24,225 INFO  [ServiioConsole] Exitting Serviio Console
2014-09-09 19:02:43,525 INFO  [LibraryAdditionsCheckerThread] Finished looking for newly added files
2014-09-09 19:02:43,642 INFO  [LibraryUpdatesCheckerThread] Finished looking for updates to currently shared files
2014-09-09 19:02:43,725 INFO  [PlaylistMaintainerThread] Finished looking for playlist changes
2014-09-09 19:02:43,838 INFO  [LibraryAdditionsCheckerThread] Started looking for newly added files
2014-09-09 19:02:43,838 INFO  [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2014-09-09 19:02:43,838 INFO  [PlaylistMaintainerThread] Started looking playlist changes
2014-09-09 19:03:48,175 WARN  [GETMethodProcessor] A range header was found on the incoming request for a live stream, sending back the whole stream
2014-09-09 19:04:07,473 WARN  [GETMethodProcessor] A range header was found on the incoming request for a live stream, sending back the whole stream
2014-09-09 19:04:08,363 WARN  [PipedOutputBytesReader] Error reading bytes stream from external process: Stream closed
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Tue Sep 09, 2014 7:09 pm

Re: Twitch.tv/Justin.tv

that tells me that the plugin as well as serviio do their job just fine, and that the ps3 isn't the most reliable renderer. you may want to try forcing transcoding in serviio, but i have no experience with that. sorry.
<<

mrcel

Serviio newbie

Posts: 1

Joined: Thu Sep 11, 2014 5:26 pm

Post Thu Sep 11, 2014 5:30 pm

Re: Twitch.tv/Justin.tv

could anyone reup the FFMPEG File for 64 bit Systems. It got only errors on Megaupload :(

thx
greetz Marcel

---
thx it works !
<<

feyrband

Serviio newbie

Posts: 1

Joined: Thu Sep 18, 2014 1:17 am

Post Thu Sep 18, 2014 2:06 am

Re: Twitch.tv/Justin.tv

1. jules thank you very much for the plugin and for the fix. It has been great to watch streams outside of my office and the fix now in time for Worlds.

2. Marcel, I was having issues too, but I tried selecting the "Import to your Cloud Drive" option, which then created a temp cloud for me. Once it was imported over there, I was able to successfully download the file (via right click), albeit with a delay during Initializing...
<<

rdjw

Serviio newbie

Posts: 3

Joined: Sun Sep 21, 2014 7:49 am

Post Sun Sep 21, 2014 7:51 am

Re: Twitch.tv/Justin.tv

First and foremost, thanks for this great plugin and all the work put into it! With that said, I'm having a curious problem. When I put in a VOD, for example the league of legends worlds, the VOD I put in the URL is 6 hours long - however, servio only shows the video length at 22 minutes, and then ends. Any idea why and how I can fix this?
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Sun Sep 21, 2014 6:29 pm

Re: Twitch.tv/Justin.tv

yeah, vods are broken right now because ffmpeg doesn't manage to concatenate FLV videos correctly, so at most you should get to see a 30 minute segment. i should probably rewrite that part of the code so that you at least get all of the segments listed in one folder, and then watch it with a playlist... soon.
<<

rdjw

Serviio newbie

Posts: 3

Joined: Sun Sep 21, 2014 7:49 am

Post Sun Sep 21, 2014 9:04 pm

Re: Twitch.tv/Justin.tv

Ah ok, thanks for the response. Is there any way that I can manually load the segments for viewing or not until code is updated?
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Mon Sep 22, 2014 3:32 pm

Re: Twitch.tv/Justin.tv

only if you can beat me at tetris. new version for fixed VOD support in original post.
<<

rdjw

Serviio newbie

Posts: 3

Joined: Sun Sep 21, 2014 7:49 am

Post Mon Sep 22, 2014 5:27 pm

Re: Twitch.tv/Justin.tv

<3 thanks!! sending you some beer now :)
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Mon Sep 22, 2014 5:32 pm

Re: Twitch.tv/Justin.tv

thanks! <3
<<

Noobie123

Serviio newbie

Posts: 7

Joined: Thu Sep 25, 2014 12:40 pm

Post Thu Sep 25, 2014 12:44 pm

Re: Twitch.tv/Justin.tv

Hi guys,

I'm trying to set up my Sony Bravia TV to watch Twitch streams.

I followed this guide: http://www.teamliquid.net/blogs/437509- ... ia-serviio

Got the plugin and the ffmpeg.

My TV can view Serviio and even see the folder of the Web Resource I made, but there is nothing inside the folder. I have tried to run Serviio via VLC but VLC never loads it no matter how long I wait.

Can anyone help?
<<

andreyv

Serviio newbie

Posts: 16

Joined: Sun Dec 08, 2013 6:01 pm

Post Thu Sep 25, 2014 1:45 pm

Re: Twitch.tv/Justin.tv

Noobie123 wrote:Hi guys,

I'm trying to set up my Sony Bravia TV to watch Twitch streams.

I followed this guide: http://www.teamliquid.net/blogs/437509- ... ia-serviio

Got the plugin and the ffmpeg.

My TV can view Serviio and even see the folder of the Web Resource I made, but there is nothing inside the folder. I have tried to run Serviio via VLC but VLC never loads it no matter how long I wait.

Can anyone help?


Check that you selected the correct device profile in Serviio configuration. I have transcoding disabled, and I had such empty folders appear when the profile was set to Generic instead of my TV's series profile.
<<

Noobie123

Serviio newbie

Posts: 7

Joined: Thu Sep 25, 2014 12:40 pm

Post Thu Sep 25, 2014 2:16 pm

Re: Twitch.tv/Justin.tv

Check that you selected the correct device profile in Serviio configuration. I have transcoding disabled, and I had such empty folders appear when the profile was set to Generic instead of my TV's series profile.


Thanks! I didn't realise you could change profile. Now I can see the files, but playing them just shows a black screen. Tried with transcoding on and off.

Hm...
<<

Noobie123

Serviio newbie

Posts: 7

Joined: Thu Sep 25, 2014 12:40 pm

Post Thu Sep 25, 2014 2:26 pm

Re: Twitch.tv/Justin.tv

An update: local files work, but not web resources.
PreviousNext

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 5 guests

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