FAQ  •  Register  •  Login

Twitch.tv/Justin.tv

<<

mafonekk

Serviio newbie

Posts: 3

Joined: Sun Aug 17, 2014 2:17 pm

Post Tue Aug 19, 2014 12:46 am

Re: Twitch.tv/Justin.tv

It can recognize if stream is online, it can show data like /3K or something like that, but when trying to launch, it shows error.
<<

tdopz

Serviio newbie

Posts: 1

Joined: Tue Aug 19, 2014 1:59 am

Post Tue Aug 19, 2014 2:10 am

Re: Twitch.tv/Justin.tv

jules wrote: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?


No problem watching it on my PC browser, it's running and this guy will probably be streaming for hours. http://www.twitch.tv/sing_sing
  Code:
2014-08-18 22:08:26,918 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 @ 04C6FFA0] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb)
av_interleaved_write_frame(): Invalid argument
2014-08-18 22:09:33,150 WARN  [FeedUpdaterThread] Failed to retrieve online item information for http://video18.jfk01.hls.twitch.tv/hls27/sing_sing_10729609904_132978194/mobile/index-live.m3u8?token=id=5565477313945786765,bid=10729609904,exp=1408500447,node=video18-1.jfk01.hls.justin.tv,nname=video18.jfk01,fmt=mobile&sig=0569e1ba710cf12b2b5bdc3af372af0bffd37f5a. 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
<<

oldschoolsweep

Serviio newbie

Posts: 2

Joined: Mon Aug 18, 2014 12:08 pm

Post Tue Aug 19, 2014 4:56 am

Re: Twitch.tv/Justin.tv

mafonekk wrote:It can recognize if stream is online, it can show data like /3K or something like that, but when trying to launch, it shows error.


That's the same thing that's happening to me. It gives me network error. I can see the different streams that I set up but none of them play. Only that error message shows up.
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Tue Aug 19, 2014 4:24 pm

Re: Twitch.tv/Justin.tv

brief update: the plugin is still working fine.
i think the cause of the error is the parameters (or lack thereof) that serviio chooses to construct command lines, and twitch may have recently changed something to cause this. i'll shoot zip a pm and ask him what he thinks of this, because i can't really think of anything i could do to fix this.

e: might be a bug in ffmpeg. no fix for the foreseeable future, sorry.
<<

Flixi555

Serviio newbie

Posts: 4

Joined: Fri Mar 14, 2014 7:18 pm

Post Tue Aug 19, 2014 8:32 pm

Re: Twitch.tv/Justin.tv

jules wrote:e: might be a bug in ffmpeg. no fix for the foreseeable future, sorry.


Well, shit.

If it's ffmpeg, which party (serviio, twitch, windows) changed something?
<<

mafonekk

Serviio newbie

Posts: 3

Joined: Sun Aug 17, 2014 2:17 pm

Post Tue Aug 19, 2014 11:33 pm

Re: Twitch.tv/Justin.tv

Any ideas what to do to make it work for PS3 ?
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Wed Aug 20, 2014 12:44 pm

Re: Twitch.tv/Justin.tv

both of these are answered in my last post.
<<

Dunedune

Serviio newbie

Posts: 5

Joined: Wed Aug 20, 2014 3:25 pm

Post Wed Aug 20, 2014 3:27 pm

Re: Twitch.tv/Justin.tv

Oh damn, that really does suck.
It sounds like the only way to watch Twitch on a Smart TV will be to buy a Chromecast :(
<<

Rune

Serviio newbie

Posts: 1

Joined: Sat Aug 23, 2014 6:32 pm

Post Sat Aug 23, 2014 7:53 pm

Re: Twitch.tv/Justin.tv

I have been watching Twitch on my TV today =)

If any of you are desperate and able to compile ffmpeg from source, you can hack it to work with Twitch.

NOTE: use this at your own risk (many producers of TV's make crappy software)

if you download the source, and open the file 'libavformat/mpegtsenc.c' and add 'return 0;' first in ff_check_h264_startcode()
The hack disables validation of video content.

My TV can play this new stream fine, but yours may not.
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Sun Aug 24, 2014 9:48 am

Re: Twitch.tv/Justin.tv

yeah, that works alright. unfortunately that's not really easy to deploy, especially for windows.
<<

Dunedune

Serviio newbie

Posts: 5

Joined: Wed Aug 20, 2014 3:25 pm

Post Thu Aug 28, 2014 1:48 pm

Re: Twitch.tv/Justin.tv

Rune wrote:I have been watching Twitch on my TV today =)

If any of you are desperate and able to compile ffmpeg from source, you can hack it to work with Twitch.

NOTE: use this at your own risk (many producers of TV's make crappy software)

if you download the source, and open the file 'libavformat/mpegtsenc.c' and add 'return 0;' first in ff_check_h264_startcode()
The hack disables validation of video content.

My TV can play this new stream fine, but yours may not.

First off, thank you for that very much appreciated fix.
I wonder what the involved risks are though, is it about Serviio no longer working on the TV, or the TV not even booting?
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Thu Aug 28, 2014 2:21 pm

Re: Twitch.tv/Justin.tv

nah, the risk is just that the tv's (or ps' or xbox' or whatever's) media player doesn't recognize the video file, that's all. the routine is generally there to check whether the h264 stream is valid, i.e. its start conforms to a specific scheme.
the worst that might happen is that invalid h264 streams could be read and then the ffmpeg process goes into a panic, which is irrelevant, because serviio spawns them for each file separately anyway.

what Rune likely meant by "My TV can play this new stream fine, but yours may not." is that your tv may check this start as well, and since the stream is remuxed to .ts without changing the video stream itself, your tv may not want to play the file in the same way that serviio is currently not getting any love from ffmpeg as it tries to read the stream.
<<

Dimi08

Serviio newbie

Posts: 2

Joined: Thu Sep 04, 2014 2:45 am

Post Thu Sep 04, 2014 2:58 am

Re: Twitch.tv/Justin.tv

Hi y'all, I am from Germany.

I have a new Bravia W905a 55°and Serviio is working fine so far, but here I kinda have a problem:

I think that it's about my remote settings, but they look fine now:

Image

I already tried to unset the checkmark, but without any solution. I kinda followed this guide, except the last part about the dynamic ip adress.

  Code:
Stream #0:1 -> #0:0 (copy)
Stream #0:0 -> #0:1 (aac -> ac3)
Press [q] to stop, [?] for help
[mpegts @ 04AD6920] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb)
av_interleaved_write_frame(): Invalid argument
2014-09-04 04:14:43,479 INFO  [PortMappingChecker] Running a check for external mapping of port 23424 on 'xxxxxxxxxxx'
2014-09-04 04:14:44,194 INFO  [PortMappingChecker] Port 23424 is open
2014-09-04 04:23:44,730 INFO  [PortMapper] Starting port mapping scheduler
2014-09-04 04:23:46,064 INFO  [PortMappingChecker] Running a check for external mapping of port 23424 on 'xxxxxxxxxxxx'
2014-09-04 04:23:46,988 INFO  [PortMappingChecker] Port 23424 is open
2014-09-04 04:25:11,802 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 @ 076CF980] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb)
av_interleaved_write_frame(): Invalid argument
2014-09-04 04:26:14,227 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 @ 036FC4E0] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb)
av_interleaved_write_frame(): Invalid argument
2014-09-04 04:33:22,724 INFO  [LibraryAdditionsCheckerThread] Finished looking for newly added files
2014-09-04 04:33:22,824 INFO  [LibraryUpdatesCheckerThread] Finished looking for updates to currently shared files
2014-09-04 04:33:22,924 INFO  [PlaylistMaintainerThread] Finished looking for playlist changes
2014-09-04 04:33:23,024 INFO  [LibraryAdditionsCheckerThread] Started looking for newly added files
2014-09-04 04:33:23,025 INFO  [PlaylistMaintainerThread] Started looking playlist changes
2014-09-04 04:33:23,025 INFO  [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2014-09-04 04:35:31,100 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 @ 065EAA60] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb)
av_interleaved_write_frame(): Invalid argument
2014-09-04 04:36:37,482 INFO  [ServiioConsole] Serviio Console completely closed
2014-09-04 04:36:54,133 INFO  [ServiioConsole] Initializing Serviio Console
2014-09-04 04:36:54,396 INFO  [ServiioConsole] Starting Serviio Console
2014-09-04 04:36:54,533 INFO  [ServiioConsole] Connecting to Serviio REST on localhost:23423
2014-09-04 04:36:55,090 INFO  [Messages] Loaded console message bundle for locale: de
2014-09-04 04:40:36,256 INFO  [PortMappingChecker] Running a check for external mapping of port 23424 on 'xxxxxxxxxxxx'
2014-09-04 04:40:36,908 INFO  [PortMappingChecker] Port 23424 is open


Edit: I am using Windows 7.


Thanks in advice. See you! :D
Last edited by Dimi08 on Thu Sep 04, 2014 10:26 pm, edited 2 times in total.
<<

freaknik

User avatar

DLNA master

Posts: 345

Joined: Thu Mar 27, 2014 2:05 pm

Location: Endor

Post Thu Sep 04, 2014 4:39 pm

Re: Twitch.tv/Justin.tv

might want to edit out your ip address for privacy's sake.
<<

Dimi08

Serviio newbie

Posts: 2

Joined: Thu Sep 04, 2014 2:45 am

Post Thu Sep 04, 2014 10:28 pm

Re: Twitch.tv/Justin.tv

Hey, I did restart my router anyways, but thank you. I edited it (just in case).
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Fri Sep 05, 2014 12:41 am

Re: Twitch.tv/Justin.tv

you didn't provide a description of what your actual problem is (i.e. symptoms), but judging from the log you have the same issue as everyone with twitch's new encoding settings. look at the last dozen or so posts.

if someone can compile ffmpeg for windows and provide a binary with the fix posted here, i can put that in the original post. unfortunately, i haven't been able to.
<<

Dunedune

Serviio newbie

Posts: 5

Joined: Wed Aug 20, 2014 3:25 pm

Post Fri Sep 05, 2014 10:26 am

Re: Twitch.tv/Justin.tv

I haven't been able to either, I've been working on that since you posted it but so many issues arose, I can't even run a configure properly.
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Sat Sep 06, 2014 2:13 am

Re: Twitch.tv/Justin.tv

that's possibly because they seem to have fucked up the repo's Makefile for now...

e: see viewtopic.php?p=94157#p94157 for ffmpeg.exe
Last edited by jules on Sat Sep 06, 2014 11:26 am, edited 1 time in total.
<<

Dunedune

Serviio newbie

Posts: 5

Joined: Wed Aug 20, 2014 3:25 pm

Post Sat Sep 06, 2014 10:33 am

Re: Twitch.tv/Justin.tv

Gonna do that ASAP, thank you.
<<

Dunedune

Serviio newbie

Posts: 5

Joined: Wed Aug 20, 2014 3:25 pm

Post Sat Sep 06, 2014 10:39 am

Re: Twitch.tv/Justin.tv

Shiiiiiiiiiiiiiiit it works! Thank you, I thought I would never be able to watch the GSL finals. Big props to you <3
I'll spread the word.
PreviousNext

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 10 guests

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