FAQ  •  Register  •  Login

Twitch.tv/Justin.tv

<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Fri Jul 26, 2013 12:26 am

Re: Twitch.tv/Justin.tv

yeah, so ffmpeg isn't the problem, and neither is the url extracted by the plugin... which is confusing, because running that command line that you did is the exact same thing that serviio does, before it supposedly finds that the stream was invalid, or whatever it says in the log. i'm afraid i don't know how to help you, sorry.
<<

oxez

Serviio newbie

Posts: 6

Joined: Thu Aug 01, 2013 10:06 pm

Post Thu Aug 01, 2013 10:22 pm

Re: Twitch.tv/Justin.tv

**EDIT**: So 10 minutes after I typed this Arch released an update to both ffmpeg-2.0 and it's ffmpeg-compat packages. Everything works now on serviio-1.1 (haven't tried 1.2.1 again, I will soon)

Edit2: It works with 1.2.1, so make sure you are using the latest ffmpeg packages, and that you do not get warnings when you type 'ffmpeg'. In my case I had 'WARNING: library configuration mismatch'
Hello.

I cannot get the plugin to work. I am on Linux x64, I have the latest version of ffmpeg installed, I tried the plugin with serviio-1.1, 1.2 and 1.2.1.

What happens is that I see the stream that I added, but there's no folder to select the quality (it works on Windows.). I always get the following error message in the logs:

  Code:
WARN  [FeedUpdaterThread] Failed to retrieve online item information for rtmp://199.9.254.88/app playpath=jtv_QgVwVfBJZjWGIc68 swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.r8e97c05c329d5722ddc1f1098e2197cdde3d9144.swf swfVfy=1 jtv=aef93bf61314afc5879c53341f9a86dd1023df74:{"swfDomains":\20["justin.tv",\20"jtvx.com",\20"xarth.com",\20"twitchtv.com",\20"twitch.tv",\20"newjtv.com",\20"jtvnw.net",\20"wdtinc.com",\20"imapweather.com",\20"facebook.com",\20"starcrafting.com"],\20"streamName":\20"jtv_QgVwVfBJZjWGIc68",\20"expiration":\201375398185,\20"server":\20"video20-1.ord01"} live=1. It might not play.


ffmpeg -i with the above rmtp:// URI returns this:


  Code:
oxez ~ ffmpeg -i "rtmp://199.9.254.88/app playpath=jtv_QgVwVfBJZjWGIc68 swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.r8e97c05c329d5722ddc1f1098e2197cdde3d9144.swf swfVfy=1 jtv=aef93bf61314afc5879c53341f9a86dd1023df74:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"streamName\":\20\"jtv_QgVwVfBJZjWGIc68\",\20\"expiration\":\201375398185,\20\"server\":\20\"video20-1.ord01\"} live=1"
ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
  built on Aug  1 2013 17:59:42 with gcc 4.8.1 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab --disable-pthreads
  WARNING: library configuration mismatch
  swscale     configuration: --prefix=/usr --incdir=/usr/include/ffmpeg-compat --libdir=/usr/lib/ffmpeg-compat --shlibdir=/usr/lib/ffmpeg-compat --disable-debug --disable-static --enable-gpl --enable-libass --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-vdpau --enable-version3 --enable-x11grab
  swresample  configuration: --prefix=/usr --incdir=/usr/include/ffmpeg-compat --libdir=/usr/lib/ffmpeg-compat --shlibdir=/usr/lib/ffmpeg-compat --disable-debug --disable-static --enable-gpl --enable-libass --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-vdpau --enable-version3 --enable-x11grab
  postproc    configuration: --prefix=/usr --incdir=/usr/include/ffmpeg-compat --libdir=/usr/lib/ffmpeg-compat --shlibdir=/usr/lib/ffmpeg-compat --disable-debug --disable-static --enable-gpl --enable-libass --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-vdpau --enable-version3 --enable-x11grab
  libavutil      52. 38.100 / 52. 38.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.100 / 55. 12.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 79.101 /  3. 79.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  1.100
  libswresample   0. 17.102 /  0.  6.100
  libpostproc    52.  3.100 / 52.  0.100
Metadata:
  duration              0.00
  fileSize              0.00
  width                 1280.00
  height                720.00
  videocodecid          avc1
  videodatarate         1500.00
  framerate             30.00
  audiocodecid          mp4a
  audiodatarate         128.00
  audiosamplerate       44100.00
  audiosamplesize       16.00
  audiochannels         2.00
  stereo                TRUE
  encoder               Open Broadcaster Software v0.541b
[h264 @ 0x1bd2f00] Warning: not compiled with thread support, using thread emulation
[aac @ 0x1bd3aa0] Warning: not compiled with thread support, using thread emulation
Input #0, flv, from 'rtmp://199.9.254.88/app playpath=jtv_QgVwVfBJZjWGIc68 swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.r8e97c05c329d5722ddc1f1098e2197cdde3d9144.swf swfVfy=1 jtv=aef93bf61314afc5879c53341f9a86dd1023df74:{"swfDomains":\20["justin.tv",\20"jtvx.com",\20"xarth.com",\20"twitchtv.com",\20"twitch.tv",\20"newjtv.com",\20"jtvnw.net",\20"wdtinc.com",\20"imapweather.com",\20"facebook.com",\20"starcrafting.com"],\20"streamName":\20"jtv_QgVwVfBJZjWGIc68",\20"expiration":\201375398185,\20"server":\20"video20-1.ord01"} live=1':
  Metadata:
    fileSize        : 0
    audiochannels   : 2
    encoder         : Open Broadcaster Software v0.541b
  Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p, 1280x720, 1536 kb/s, 59.92 tbr, 1k tbn, 2k tbc
    Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp, 131 kb/s
At least one output file must be specified


That is most likely telling me that ffmpeg is indeed working, right?
Not sure what else to try....

(Also please note that I am using ffmpeg 2.0. Could that be a problem?)
Any ideas? Thanks
<<

Lockhead

Serviio newbie

Posts: 12

Joined: Sun Mar 04, 2012 3:54 pm

Post Tue Aug 06, 2013 6:14 pm

Re: Twitch.tv/Justin.tv

Anyone got problems with twitch again?

Tried: http://www.twitch.tv/wcs_europe
But with no luck.

Heres the log:
  Code:
2013-08-06 20:08:29,549 WARN  [FeedUpdaterThread] Failed to retrieve online item information for null playpath=null swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.r8e97c05c329d5722ddc1f1098e2197cdde3d9144.swf swfVfy=1 live=1. 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:292)
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:209)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:102)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
   at org.serviio.library.metadata.FFmpegMetadataRetriever.validateMandatoryMetadata(FFmpegMetadataRetriever.java:453)
   at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:94)
   at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveOnlineMetadata(FFmpegMetadataRetriever.java:132)
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveMetadata(FeedUpdaterThread.java:269)
   ... 2 more
2013-08-06 20:09:40,857 WARN  [ProcessExecutor] Process cmd has a return code of 1! This is a possible error. Detailed output follows.
libavfilter     3. 32.100 /  3. 32.100
libswscale      2.  1.103 /  2.  1.103
libswresample   0. 17.102 /  0. 17.102
Closing connection: NetStream.Play.Failed
rtmp://192.16.65.143/app: Unknown error occurred
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Tue Aug 06, 2013 10:26 pm

Re: Twitch.tv/Justin.tv

wcs_europe worked fine for me the entire time it was on. your log looks pretty weird. was this kind of entry in there several times (for each quality), or just once (i assume for the <live> quality, which doesn't always have playing information as it's mostly paywalled)?
<<

Lockhead

Serviio newbie

Posts: 12

Joined: Sun Mar 04, 2012 3:54 pm

Post Wed Aug 07, 2013 6:35 am

Re: Twitch.tv/Justin.tv

WCS worked fine till yesterday. Restarting Serviio/System didn't helped. The Problem was for all quality settings.
<<

smacedo

Serviio newbie

Posts: 9

Joined: Sun Aug 11, 2013 4:42 pm

Post Sun Aug 11, 2013 4:47 pm

Re: Twitch.tv/Justin.tv

Hi,
Same sort of problems with wcs_europe

Firstly with Serviio 1.2.1 , and FFMEG from June (win64 static). (gave Unkown file type...)
Just upgraded to Serviio 1.3, same problem.
Fetch the latest ffmpeg win64 static . Still the same.

Interestingly www.twitch.tv/mlgsc2 works fine , but www.twitch.tv/wcs_europe doesn't.

My guess is it also depends somehow on the broadcaster config - not only twitch
Strange that I can now see the stream options listed (when before, there would not even list the streams).

Running from command line ffmpeg -i .... simply complained of not having an output file (which means it all worked well).

I'm now currently getting:

[ProcessExecutor] Process cmd has a return code of 1! This is a possible error. Detailed output follows.
libswscale 2. 4.100 / 2. 4.100
libswresample 0. 17.103 / 0. 17.103
libpostproc 52. 3.100 / 52. 3.100
Closing connection: NetStream.Play.Failed
rtmp://192.16.65.72/app: Unknown error occurred

How can I help debugging this?
Thanks
<<

smacedo

Serviio newbie

Posts: 9

Joined: Sun Aug 11, 2013 4:42 pm

Post Sun Aug 11, 2013 5:51 pm

Re: Twitch.tv/Justin.tv

Ok.
Enabled debug in log4j.xml . Then, I ran FFMPEG verbose from the command line:

[[ MC lost WCS_Europe :( ]]

2013-08-11 18:43:37,347 DEBUG [FeedItemUrlExtractor] twitch.tv: Starting extraction of url for item: WCS_europe-720p [720p]

2013-08-11 18:43:37,347 DEBUG [FeedItemUrlExtractor] twitch.tv: Finished extraction of url: ContentURLContainer [fileType=VIDEO, contentUrl=rtmp://192.16.65.90/app playpath=jtv_rTrA_wFh_r_1oaJF swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=bd45038e0e447a769f30454d049a98eed100cac4:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"streamName\":\20\"jtv_rTrA_wFh_r_1oaJF\",\20\"expiration\":\201376246050,\20\"server\":\20\"video6-2.arn01\"} live=1, expiresImmediately=true, cacheKey=WCS_europe-720p [720p], live=true, ]

2013-08-11 18:43:37,347 DEBUG [VideoDeliveryEngine] Successfully set new URL for the feed item

2013-08-11 18:43:37,347 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: rtmp://192.16.65.90/app playpath=jtv_rTrA_wFh_r_1oaJF swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=bd45038e0e447a769f30454d049a98eed100cac4:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"streamName\":\20\"jtv_rTrA_wFh_r_1oaJF\",\20\"expiration\":\201376246050,\20\"server\":\20\"video6-2.arn01\"} live=1

2013-08-11 18:43:37,347 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -analyzeduration 10000000 -fflags +genpts -threads auto -i rtmp://192.16.65.90/app playpath=jtv_rTrA_wFh_r_1oaJF swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=bd45038e0e447a769f30454d049a98eed100cac4:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"streamName\":\20\"jtv_rTrA_wFh_r_1oaJF\",\20\"expiration\":\201376246050,\20\"server\":\20\"video6-2.arn01\"} live=1 -y -threads auto -c:v copy -bsf:v h264_mp4toannexb -c:a ac3 -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe:

2013-08-11 18:43:37,932 WARN [ProcessExecutor] Process cmd has a return code of 1! This is a possible error. Detailed output follows.
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Closing connection: NetStream.Play.Failed
rtmp://192.16.65.90/app: Unknown error occurred




Running ffmpeg from command line, I have to quote the executable name and the -i argument (I hope that's not the problem (lack of quotes!) ):

C:\Users\smacedo.casax6ssd>"c:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe" -analyzeduration 10000000 -fflags +genpts -threads auto -i "rtmp://192.16.65.90/app playpath=jtv_rTrA_wFh_r_1oaJF swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=bd45038e0e447a769f30454d049a98eed100cac4 {\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcr
afting.com\"],\20\"streamName\":\20\"jtv_rTrA_wFh_r_1oaJF\",\20\"expiration\":\201376246050,\20\"server\":\20\"video6-2.arn01\"} live=1" -y -threads auto -c:v copy -bsf:v h264_mp4toannexb -c:a ac3 -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe: > so_I_dont_get_the_stream_to_stdout.txt


ffmpeg version N-54096-ge41bf19 Copyright (c) 2000-2013 the FFmpeg developers
built on Jun 18 2013 10:49:28 with gcc 4.7.2 (GCC)
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtm
p --enable-fontconfig --enable-libfreetype --enable-zlib --enable-libx264 --extr
a-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype -lfribidi -lz' --a
rch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross
-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config
libavutil 52. 37.101 / 52. 37.101
libavcodec 55. 16.100 / 55. 16.100
libavformat 55. 9.100 / 55. 9.100
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 77.101 / 3. 77.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Metadata:
duration 0.00
width 1280.00
height 720.00
videodatarate 1464.84
framerate 30.00
videocodecid 7.00
audiodatarate 92.77
audiosamplerate 44100.00
audiosamplesize 16.00
stereo TRUE
audiocodecid 10.00
presetname Custom
creationdate Sun Aug 11 11:50:15 2013
videodevice XSplitBroadcaster
avclevel 40
avcprofile 100
videokeyframe_frequency0
audiodevice VHAudioCustom
audiochannels 2
audioinputvolume 100
bufferSize 1700k
maxBitrate 2700k
xsplitBroadcasterVersion1.3.0.134
xsplitCoreVersion 1.3.1308.0202 Version 1.3
xsplitGameSourceVersion1.1.1.67
xsplitMediaLibVersion 2.0.0.247
encoder Lavf54.63.104
filesize 0.00
Input #0, flv, from 'rtmp://192.16.65.90/app playpath=jtv_rTrA_wFh_r_1oaJF swfUr
l=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1
101840d0ddf7e4.swf swfVfy=1 jtv=bd45038e0e447a769f30454d049a98eed100cac4:{"swfDo
mains":\20["justin.tv",\20"jtvx.com",\20"xarth.com",\20"twitchtv.com",\20"twitch
.tv",\20"newjtv.com",\20"jtvnw.net",\20"wdtinc.com",\20"imapweather.com",\20"fac
ebook.com",\20"starcrafting.com"],\20"streamName":\20"jtv_rTrA_wFh_r_1oaJF",\20"
expiration":\201376246050,\20"server":\20"video6-2.arn01"} live=1':
Metadata:
author :
copyright :
description :
keywords :
rating :
title :
presetname : Custom
creationdate : Sun Aug 11 11:50:15 2013
videodevice : XSplitBroadcaster
avclevel : 40
avcprofile : 100
videokeyframe_frequency: 0
audiodevice : VHAudioCustom
audiochannels : 2
audioinputvolume: 100
bufferSize : 1700k
maxBitrate : 2700k
xsplitBroadcasterVersion: 1.3.0.134
xsplitCoreVersion: 1.3.1308.0202 Version 1.3
xsplitGameSourceVersion: 1.1.1.67
xsplitMediaLibVersion: 2.0.0.247
encoder : Lavf54.63.104
Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 1280x720 [SAR 1:1
DAR 16:9], 1500 kb/s, 30 tbr, 1k tbn, 60 tbc
Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp, 95 kb/s
Output #0, mpegts, to 'pipe:':
Metadata:
author :
copyright :
description :
keywords :
rating :
title :
presetname : Custom
creationdate : Sun Aug 11 11:50:15 2013
videodevice : XSplitBroadcaster
avclevel : 40
avcprofile : 100
videokeyframe_frequency: 0
audiodevice : VHAudioCustom
audiochannels : 2
audioinputvolume: 100
bufferSize : 1700k
maxBitrate : 2700k
xsplitBroadcasterVersion: 1.3.0.134
xsplitCoreVersion: 1.3.1308.0202 Version 1.3
xsplitGameSourceVersion: 1.1.1.67
xsplitMediaLibVersion: 2.0.0.247
encoder : Lavf55.9.100
Stream #0:0: Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 1500
kb/s, 90k tbn, 30 tbc
Stream #0:1: Audio: ac3, 44100 Hz, stereo, fltp, 384 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (aac -> ac3)
Press [q] to stop, [?] for help
frame= 100 fps=0.0 q=-1.0 size= 988kB time=00:00:04.65 bitrate=1738.9kbits/
frame= 153 fps=137 q=-1.0 size= 1441kB time=00:00:06.41 bitrate=1839.2kbits/
frame= 182 fps=100 q=-1.0 size= 1658kB time=00:00:07.38 bitrate=1839.5kbits/
frame= 212 fps= 90 q=-1.0 size= 1912kB time=00:00:08.38 bitrate=1867.9kbits/
frame= 242 fps= 81 q=-1.0 size= 2088kB time=00:00:09.38 bitrate=1822.8kbits/
frame= 274 fps= 78 q=-1.0 size= 2358kB time=00:00:10.45 bitrate=1847.9kbits/
frame= 302 fps= 72 q=-1.0 size= 2544kB time=00:00:11.38 bitrate=1830.5kbits/
frame= 338 fps= 71 q=-1.0 size= 2876kB time=00:00:12.58 bitrate=1871.9kbits/
frame= 362 fps= 68 q=-1.0 size= 3074kB time=00:00:13.38 bitrate=1881.3kbits/
frame= 394 fps= 67 q=-1.0 size= 3357kB time=00:00:14.45 bitrate=1902.6kbits/
frame= 411 fps= 64 q=-1.0 size= 3481kB time=00:00:15.01 bitrate=1898.8kbits/
frame= 421 fps= 60 q=-1.0 size= 3556kB time=00:00:15.35 bitrate=1897.3kbits/
frame= 444 fps= 59 q=-1.0 size= 3807kB time=00:00:16.11 bitrate=1934.6kbits/
frame= 457 fps= 57 q=-1.0 size= 3918kB time=00:00:16.55 bitrate=1939.3kbits/
frame= 472 fps= 53 q=-1.0 size= 4051kB time=00:00:17.05 bitrate=1946.3kbits/
frame= 483 fps= 51 q=-1.0 size= 4192kB time=00:00:17.41 bitrate=1971.3kbits/
frame= 505 fps= 50 q=-1.0 size= 4365kB time=00:00:18.15 bitrate=1969.7kbits/
frame= 528 fps= 50 q=-1.0 size= 4541kB time=00:00:18.91 bitrate=1966.4kbits/

....
so, FFMPEG is working well (as long as I put quotes around the -i parameter
<<

smacedo

Serviio newbie

Posts: 9

Joined: Sun Aug 11, 2013 4:42 pm

Post Sun Aug 11, 2013 6:18 pm

Re: Twitch.tv/Justin.tv

PS a few days later:
To all: regarding the patch in my previous posts - with Serviio 1.3.1 it's not needed any longer. So, if you applied the change, remove it now from twitch.groovy, otherwise your online sources won't work .

OK.
So - I think I solved it.
I still have doubts, as it seems if this was indeed the problem, it should have been corrected long ago.. but, hey, I did the test with and without the patch and it seems to solve it. Would love to get feedback to verify if this is not some weird error that disappeared in the mean time and appears again just to trick my debugging :)
Also, thanks to Bog for creating the twitch plugin for serviio.

Apparently, it's indeed the missing quotes around the -i parameter of ffmpeg.

Running on Win7, 64bit, Servio 1.3, FFMPEG latest of August 8th 2013.
(it's the same for all platforms)

Correction:

On serviio's plugin directory, on file twitch.groovy, line 116, where you find:
rtmpUrl: rtmp + " playpath=" + playpath + " swfUrl=" + swfUrl + " swfVfy=1" + ((rtmp ==~ /.*\d+\.\d+\.\d+\.\d+.*/)? " jtv=" + jtv : "") + " live=" + live ])
replace by
rtmpUrl: "\"" + rtmp + " playpath=" + playpath + " swfUrl=" + swfUrl + " swfVfy=1" + ((rtmp ==~ /.*\d+\.\d+\.\d+\.\d+.*/)? " jtv=" + jtv : "") + " live=" + live +"\"" ])

meaning, add an openning quote and a closing quote to the URL string in the json arg.
That seems to do it.


I'm attaching the file.

Also, thanks to Serviio people for the best DLNA server around - by far.

SM
Attachments
twitch.groovy
V5 candidate, until Bog approves - corrects some issues with some twitch URLs adding quote to the url parameter of ffmpeg. Please test it and report.
(4.98 KiB) Downloaded 1111 times
Last edited by smacedo on Sat Aug 17, 2013 11:28 pm, edited 1 time in total.
<<

Lockhead

Serviio newbie

Posts: 12

Joined: Sun Mar 04, 2012 3:54 pm

Post Sun Aug 11, 2013 6:51 pm

Re: Twitch.tv/Justin.tv

Will try it out later with WCS America.
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Sun Aug 11, 2013 7:44 pm

Re: Twitch.tv/Justin.tv

so the quotation marks were the problem? this shouldn't be fixed in the plugin then, but instead in the transcoding invoking component of serviio.

can you tell me what profile you're using so i can try and reproduce the issue? in any case, thanks for investigating!
<<

Lockhead

Serviio newbie

Posts: 12

Joined: Sun Mar 04, 2012 3:54 pm

Post Sun Aug 11, 2013 8:31 pm

Re: Twitch.tv/Justin.tv

WCS America is working but with the old version. So i can't confirm the fix since i missed my chance with WCS Europe.
<<

dbyte

Serviio newbie

Posts: 1

Joined: Tue Aug 13, 2013 5:11 pm

Post Tue Aug 13, 2013 5:15 pm

Re: Twitch.tv/Justin.tv

Quick background info: I've been coding/using Twitch & Serviio for a long time.

The plugin from the main page does not work with Serviio 1.1 or the newest for me.
If I add the "rtmpUrl: "\"" + rtmp + " playpath=" + playpath + " swfUrl=" + swfUrl + " swfVfy=1" + ((rtmp ==~ /.*\d+\.\d+\.\d+\.\d+.*/)? " jtv=" + jtv : "") + " live=" + live +"\"" ]) patch as mentioned above, it only works in the newest version.

I've upgraded the FFMPEG with various versions etc but some streams work just fine on any quality (even 1080P), and most others are jittery and laggy.

This is not my pc or internet connection as other things work perfectly fine, and yes my PS3 is hooked up wired.

Strange symptoms.
<<

smacedo

Serviio newbie

Posts: 9

Joined: Sun Aug 11, 2013 4:42 pm

Post Wed Aug 14, 2013 10:43 pm

Re: Twitch.tv/Justin.tv

jules wrote:so the quotation marks were the problem? this shouldn't be fixed in the plugin then, but instead in the transcoding invoking component of serviio.

can you tell me what profile you're using so i can try and reproduce the issue? in any case, thanks for investigating!


Hi!
Sorry for the delay - had work to do .

I'm using standard "Sony Bravia (2009)",

(which by the way, irrelevant here, has to be changed to transcode MKV
I also have an (absolutely trivial) fix for the Sony Bravia (2009) profile if anybody finds it impossible to play mkvs on their Sony.)

SM
<<

smacedo

Serviio newbie

Posts: 9

Joined: Sun Aug 11, 2013 4:42 pm

Post Wed Aug 14, 2013 10:59 pm

Re: Twitch.tv/Justin.tv

PS a few days later:
To all: regarding the patch in my previous posts - with Serviio 1.3.1 it's not needed any longer. So, if you applied the change, remove it now from twitch.groovy, otherwise your online sources won't work .


dbyte wrote:Quick background info: I've been coding/using Twitch & Serviio for a long time.

The plugin from the main page does not work with Serviio 1.1 or the newest for me.
If I add the "rtmpUrl: "\"" + rtmp + " playpath=" + playpath + " swfUrl=" + swfUrl + " swfVfy=1" + ((rtmp ==~ /.*\d+\.\d+\.\d+\.\d+.*/)? " jtv=" + jtv : "") + " live=" + live +"\"" ]) patch as mentioned above, it only works in the newest version.

I've upgraded the FFMPEG with various versions etc but some streams work just fine on any quality (even 1080P), and most others are jittery and laggy.

This is not my pc or internet connection as other things work perfectly fine, and yes my PS3 is hooked up wired.

Strange symptoms.


Hi!

Thanks for testing the patch!

Please note that this fix solves the "Incorrect file type" error or command processor exited with error 1.
On the TV, the symptom is that it fails to even start streaming or, often, does not even show the available resolutions being broadcast.

This is a "either works or it doesn't".

If it works and video is jittery or laggy, it has nothing to do with this patch, nor the patch improves or worsens any thing about the video quality.

This patch only solves one very simple issue: the command line passed to FFMPEG needs to be quoted. The twitch.groovy was not quoting the -i parameter of ffmpeg.
Apparently, this should not be a problem and is better solved in the profile (?!) - it doesn't make sense to me, but hey, what do I know.

Regarding the versions, I'm sorry, I'm not inclined to verify with previous versions of serviio. Serviio 1.3 is so, so much better - immediately detected with Samsungs and now, it does not crash or stop half way through (MacOSx and Samsung and Win7_x64 and Sony) .

I had this problem with twitch on Serviio 1.21 for WCS_Europe, but not for MLG (very weird!!).
Updated serviio, no change. Made this patch, it worked. Took out the patch and it stopped working again. Reapplied the patch, it worked again, so it definitely solves something ;)

Take care
SM
Last edited by smacedo on Sat Aug 17, 2013 11:29 pm, edited 1 time in total.
<<

smacedo

Serviio newbie

Posts: 9

Joined: Sun Aug 11, 2013 4:42 pm

Post Wed Aug 14, 2013 11:12 pm

Re: Twitch.tv/Justin.tv

Lockhead wrote:WCS America is working but with the old version. So i can't confirm the fix since i missed my chance with WCS Europe.


Hi,
Currently watching WCS_America, with the patch applied. No problems.
(Sony Bravia, WCS_America 720P, FFMPEG win7_x64 static binary of August, Sony Bravia 2009 profile, Twitch.groovy plugin, Serviio 1.3, Win7 64b, http://www.twitch.tv/WCS_America )

It must be said that most likely the patch won't break things, even if not needed. Adding quotes to a command line argument is not an issue (unless the first character immediately following it is another quote 8-/)

Regards
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Thu Aug 15, 2013 1:01 am

Re: Twitch.tv/Justin.tv

smacedo wrote:I'm using standard "Sony Bravia (2009)",

from the sony2010 profile (which the sony2009 profile extends), i gather that serviio needs to transcode video that is h264/aac in an flv container (which iirc is the case for wcs_america, but not _europe).

so the problem that you fixed pertains to transcoding. can you confirm that the machine you're running serviio on is indeed transcoding (should have a java or ffmpeg process run at sort-of-higher load)?

if that is the case, this, again, isn't something that should be addressed in my plugin, but instead be fixed by zip in serviio's transcoding module.</arrogant dev>


to those who experience jitter/lagginess on particular resolutions/streams: please try to see whether the machine running serviio is transcoding the stream. not all streams use the same audio codecs and if your renderer's profile does not support e.g. an audio codec that is being used to stream, serviio has to use cpu time to transcode, or in more cases, remux that stream. this *can* cause higher cpu loads than the machine can handle and thus explain why frames are skipped, or in fringe cases, something like audio or video compression artifacts can be experienced.

also note that the lower resolutions that twitch.tv offers are transcoded on-server into a specific video/audio codec/bitrate/setting format, so while the "live" variant may not work properly, the lower resolutions might.


for now, i'll shoot zip a message asking him about the transcoding thing. i don't see any reason to mend this in the plugin. but feel free to use smacedo's fix in the interim.
<<

smacedo

Serviio newbie

Posts: 9

Joined: Sun Aug 11, 2013 4:42 pm

Post Thu Aug 15, 2013 2:54 am

Re: Twitch.tv/Justin.tv

jules wrote:
smacedo wrote:I'm using standard "Sony Bravia (2009)",

from the sony2010 profile (which the sony2009 profile extends), i gather that serviio needs to transcode video that is h264/aac in an flv container (which iirc is the case for wcs_america, but not _europe).

so the problem that you fixed pertains to transcoding. can you confirm that the machine you're running serviio on is indeed transcoding (should have a java or ffmpeg process run at sort-of-higher load)?

if that is the case, this, again, isn't something that should be addressed in my plugin, but instead be fixed by zip in serviio's transcoding module.</arrogant dev>

...

for now, i'll shoot zip a message asking him about the transcoding thing. i don't see any reason to mend this in the plugin. but feel free to use smacedo's fix in the interim.


Jules, thanks for taking your time with this.

OK. Now, it's Day[9] tv time :) http://www.twitch.tv/day9tv

(I'm using the patch, see the -i ")

2013-08-15 03:28:13,953 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: "rtmp://192.16.65.154/app playpath=jtv_8xus73E0Y7mB9o97 swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=f59a8abe14792ca47e0f3304a5a01adbade01fac:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"streamName\":\20\"jtv_8xus73E0Y7mB9o97\",\20\"expiration\":\201376537226,\20\"server\":\20\"video12-2.ams01\"} live=1"

2013-08-15 03:28:13,954 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -analyzeduration 10000000 -fflags +genpts -threads auto -i "rtmp://192.16.65.154/app playpath=jtv_8xus73E0Y7mB9o97 swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=f59a8abe14792ca47e0f3304a5a01adbade01fac:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"streamName\":\20\"jtv_8xus73E0Y7mB9o97\",\20\"expiration\":\201376537226,\20\"server\":\20\"video12-2.ams01\"} live=1" -y -threads auto -c:v copy -bsf:v h264_mp4toannexb -c:a ac3 -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe:


FFMPEG is running, but its cpu is not too high (I'm on a AMD X6 1090T overclocked to 3.8GHz). ServiioService (parent of ffmpeg) is 30% or so.
process_tree.png
process tree
process_tree.png (43.34 KiB) Viewed 46543 times


With this command line on ffmpeg, I get the following info:
Input:
Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 1280x720 [SAR 1:1
DAR 16:9], 1500 kb/s, 30 tbr, 1k tbn, 60 tbc
Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp, 95 kb/s
...
...
Output:
Stream #0:0: Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 1500
kb/s, 90k tbn, 30 tbc
Stream #0:1: Audio: ac3, 44100 Hz, stereo, fltp, 384 kb/s

Hence:

Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (aac -> ac3)

So, ffmpeg is not transcoding video, but is trancoding audio (and remuxing)

How does this help? :)
Thanks
SM
<<

pjimmy74

Serviio newbie

Posts: 13

Joined: Wed Jul 17, 2013 3:17 pm

Post Thu Aug 15, 2013 5:06 am

Re: Twitch.tv/Justin.tv

Anyone figured why justintv isn't working ? I have done everything possible but still can't get this channel to stream http://www.justin.tv/arconai_307#/w/6480722704/62
The folder shows up on my screen but receives the error " there's no playable file". This channel streams online 24/7
<<

jules

DLNA master

Posts: 173

Joined: Sat Feb 02, 2013 10:21 am

Post Thu Aug 15, 2013 11:52 am

Re: Twitch.tv/Justin.tv

thanks smacedo, however zip in the meantime has divulged that the quotes shouldn't pose a problem, because while the command that shows in the logs doesn't have quotation marks around them, they still get added before the command is run. which technically, depending on method, should actually cause your changes to break execution. meh, i don't know.
so while you did confirm that transcoding might be at the heart of this, i'm not any further in understanding why we're having a problem here.

pjimmy74 wrote:Anyone figured why justintv isn't working ? I have done everything possible but still can't get this channel to stream http://www.justin.tv/arconai_307#/w/6480722704/62
The folder shows up on my screen but receives the error " there's no playable file". This channel streams online 24/7
still running fine here.

1. are other streams working?
2. have you tried opening the (upnpav) folder in VLC to see if it plays there?
3. what kind of screen (tv?) are you using?
4. what kind of profile have you set in serviio for that screen?
5. do you have transcoding enabled in serviio?
6. can your display playback h264 and aac?
7. what does the log say after you hit "force refresh" in library/online sources/your entry?

let's start with these.
<<

smacedo

Serviio newbie

Posts: 9

Joined: Sun Aug 11, 2013 4:42 pm

Post Thu Aug 15, 2013 12:39 pm

Re: Twitch.tv/Justin.tv

PS a few days later:
To all: regarding the patch in my previous posts - with Serviio 1.3.1 it's not needed any longer. So, if you applied the change, remove it now from twitch.groovy, otherwise your online sources won't work .


Summary:
- pjimmy74 apply my patch and you'll be ok.
- jules, don't know why, but I just confirmed the patch works with pjimmy74's stream, which does fail without the patch. This time, using mediabrowser on chrome to eliminate the profiles's stuff from the equation.
- jules, which OS , Serviio and FFMPEG are you using? Can you please copy paste the debug output of the ffmpeg command line you get?

jules wrote:thanks smacedo, however zip in the meantime has divulged that the quotes shouldn't pose a problem, because while the command that shows in the logs doesn't have quotation marks around them, they still get added before the command is run. which technically, depending on method, should actually cause your changes to break execution. meh, i don't know.
so while you did confirm that transcoding might be at the heart of this, i'm not any further in understanding why we're having a problem here.

pjimmy74 wrote:Anyone figured why justintv isn't working ? I have done everything possible but still can't get this channel to stream http://www.justin.tv/arconai_307#/w/6480722704/62
The folder shows up on my screen but receives the error " there's no playable file". This channel streams online 24/7
still running fine here.

...



Hi again!
This is becoming weird.
I added pjimmy74's stream arconai.

I can see it with the patch.
I can't see it without!
So, I don't know why Jules and Zip don't think this is the problem (they are likely to know what they're saying, but these are facts... hard to explain, but facts.)
This time, I used mediabrowser on chrome to eliminate the profiles's stuff from the equation.
[that, and because, while I debug this, my daughters are watching some MKV file on the TV, streaming from serviio :) ]



WITHOUT the patch I get nothing (using serviios media browser on chrome):
  Code:
2013-08-15 13:15:52,209 DEBUG [FeedItemUrlExtractor] twitch.tv: Starting extraction of url for item: arconai_307-live [432p]
2013-08-15 13:15:52,210 DEBUG [FeedItemUrlExtractor] twitch.tv: Finished extraction of url: ContentURLContainer [fileType=VIDEO, contentUrl=rtmp://192.16.65.154/app playpath=jtv_KOUcVcsKApN14k06 swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=47bb223d5648098cf5ebe9d4882746750b1e58a4:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"geo_ip\":\20\"93.108.191.95\",\20\"previewLength\":\2060,\20\"localViewers\":\200,\20\"triggers\":\20[{\"disconnect\":\20true,\20\"message\":\20\"PreviewOver\",\20\"conditions\":\20[\"previewLength\",\20\"localViewers\"]}],\20\"expiration\":\201376572468,\20\"streamName\":\20\"jtv_KOUcVcsKApN14k06\",\20\"server\":\20\"video12-2.ams01\"} live=1, expiresImmediately=true, cacheKey=arconai_307-live [432p], live=true, ]
2013-08-15 13:15:52,210 DEBUG [VideoDeliveryEngine] Successfully set new URL for the feed item
2013-08-15 13:15:52,210 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: rtmp://192.16.65.154/app playpath=jtv_KOUcVcsKApN14k06 swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=47bb223d5648098cf5ebe9d4882746750b1e58a4:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"geo_ip\":\20\"93.108.191.95\",\20\"previewLength\":\2060,\20\"localViewers\":\200,\20\"triggers\":\20[{\"disconnect\":\20true,\20\"message\":\20\"PreviewOver\",\20\"conditions\":\20[\"previewLength\",\20\"localViewers\"]}],\20\"expiration\":\201376572468,\20\"streamName\":\20\"jtv_KOUcVcsKApN14k06\",\20\"server\":\20\"video12-2.ams01\"} live=1

2013-08-15 13:15:52,210 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -analyzeduration 10000000 -threads auto -i rtmp://192.16.65.154/app playpath=jtv_KOUcVcsKApN14k06 swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=47bb223d5648098cf5ebe9d4882746750b1e58a4:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"geo_ip\":\20\"93.108.191.95\",\20\"previewLength\":\2060,\20\"localViewers\":\200,\20\"triggers\":\20[{\"disconnect\":\20true,\20\"message\":\20\"PreviewOver\",\20\"conditions\":\20[\"previewLength\",\20\"localViewers\"]}],\20\"expiration\":\201376572468,\20\"streamName\":\20\"jtv_KOUcVcsKApN14k06\",\20\"server\":\20\"video12-2.ams01\"} live=1 -y -threads auto -c:v flv -b:v 1000k -maxrate:v 1000k -bufsize:v 1000k -r 30 -g 15 -c:a libmp3lame -b:a 128k -ar 44100 -ac 2 -map 0:0 -map 0:1 -sn -f flv pipe:

2013-08-15 13:15:52,598 WARN  [ProcessExecutor] Process cmd has a return code of 1! This is a possible error. Detailed output follows.
libswscale      2.  3.100 /  2.  3.100
libswresample   0. 17.102 /  0. 17.102
libpostproc    52.  3.100 / 52.  3.100
Closing connection: NetStream.Play.Failed
rtmp://192.16.65.154/app: Unknown error occurred
2013-08-15 13:15:52,598 DEBUG [TranscodingJobListener] Transcoding finished; successful: false





Now, re-applying the patch, it works fine:

  Code:
2013-08-15 13:24:26,857 DEBUG [VideoDeliveryEngine] Extracting new URL for the expired feed item
2013-08-15 13:24:26,858 DEBUG [FeedItemUrlExtractor] twitch.tv: Starting extraction of url for item: arconai_307-live [432p]
2013-08-15 13:24:26,858 DEBUG [FeedItemUrlExtractor] twitch.tv: Finished extraction of url: ContentURLContainer [fileType=VIDEO, contentUrl="rtmp://192.16.65.154/app playpath=jtv_KOUcVcsKApN14k06 swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=e741a62f2f2eb1d72ceb2b3b78251f28a87c03af:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"geo_ip\":\20\"93.108.191.95\",\20\"previewLength\":\2060,\20\"localViewers\":\200,\20\"triggers\":\20[{\"disconnect\":\20true,\20\"message\":\20\"PreviewOver\",\20\"conditions\":\20[\"previewLength\",\20\"localViewers\"]}],\20\"expiration\":\201376573034,\20\"streamName\":\20\"jtv_KOUcVcsKApN14k06\",\20\"server\":\20\"video12-2.ams01\"} live=1", expiresImmediately=true, cacheKey=arconai_307-live [432p], live=true, ]
2013-08-15 13:24:26,858 DEBUG [VideoDeliveryEngine] Successfully set new URL for the feed item
2013-08-15 13:24:26,858 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: "rtmp://192.16.65.154/app playpath=jtv_KOUcVcsKApN14k06 swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=e741a62f2f2eb1d72ceb2b3b78251f28a87c03af:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"geo_ip\":\20\"93.108.191.95\",\20\"previewLength\":\2060,\20\"localViewers\":\200,\20\"triggers\":\20[{\"disconnect\":\20true,\20\"message\":\20\"PreviewOver\",\20\"conditions\":\20[\"previewLength\",\20\"localViewers\"]}],\20\"expiration\":\201376573034,\20\"streamName\":\20\"jtv_KOUcVcsKApN14k06\",\20\"server\":\20\"video12-2.ams01\"} live=1"

2013-08-15 13:24:26,858 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -analyzeduration 10000000 -threads auto -i "rtmp://192.16.65.154/app playpath=jtv_KOUcVcsKApN14k06 swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=e741a62f2f2eb1d72ceb2b3b78251f28a87c03af:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"geo_ip\":\20\"93.108.191.95\",\20\"previewLength\":\2060,\20\"localViewers\":\200,\20\"triggers\":\20[{\"disconnect\":\20true,\20\"message\":\20\"PreviewOver\",\20\"conditions\":\20[\"previewLength\",\20\"localViewers\"]}],\20\"expiration\":\201376573034,\20\"streamName\":\20\"jtv_KOUcVcsKApN14k06\",\20\"server\":\20\"video12-2.ams01\"} live=1" -y -threads auto -c:v flv -b:v 1000k -maxrate:v 1000k -bufsize:v 1000k -r 30 -g 15 -c:a libmp3lame -b:a 128k -ar 44100 -ac 2 -map 0:0 -map 0:1 -sn -f flv pipe:

2013-08-15 13:24:28,858 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "rtmp://192.16.65.154/app playpath=jtv_KOUcVcsKApN14k06 swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=e741a62f2f2eb1d72ceb2b3b78251f28a87c03af:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"geo_ip\":\20\"93.108.191.95\",\20\"previewLength\":\2060,\20\"localViewers\":\200,\20\"triggers\":\20[{\"disconnect\":\20true,\20\"message\":\20\"PreviewOver\",\20\"conditions\":\20[\"previewLength\",\20\"localViewers\"]}],\20\"expiration\":\201376573034,\20\"streamName\":\20\"jtv_KOUcVcsKApN14k06\",\20\"server\":\20\"video12-2.ams01\"} live=1": FLV
2013-08-15 13:24:28,858 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "rtmp://192.16.65.154/app playpath=jtv_KOUcVcsKApN14k06 swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=e741a62f2f2eb1d72ceb2b3b78251f28a87c03af:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"geo_ip\":\20\"93.108.191.95\",\20\"previewLength\":\2060,\20\"localViewers\":\200,\20\"triggers\":\20[{\"disconnect\":\20true,\20\"message\":\20\"PreviewOver\",\20\"conditions\":\20[\"previewLength\",\20\"localViewers\"]}],\20\"expiration\":\201376573034,\20\"streamName\":\20\"jtv_KOUcVcsKApN14k06\",\20\"server\":\20\"video12-2.ams01\"} live=1": FLV

2013-08-15 13:24:28,858 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "rtmp://192.16.65.154/app playpath=jtv_KOUcVcsKApN14k06 swfUrl=http://www-cdn.jtvnw.net/widgets/live_embed_player.raa4bfc84bb4c74e20e9b3a40c1101840d0ddf7e4.swf swfVfy=1 jtv=e741a62f2f2eb1d72ceb2b3b78251f28a87c03af:{\"swfDomains\":\20[\"justin.tv\",\20\"jtvx.com\",\20\"xarth.com\",\20\"twitchtv.com\",\20\"twitch.tv\",\20\"newjtv.com\",\20\"jtvnw.net\",\20\"wdtinc.com\",\20\"imapweather.com\",\20\"facebook.com\",\20\"starcrafting.com\"],\20\"geo_ip\":\20\"93.108.191.95\",\20\"previewLength\":\2060,\20\"localViewers\":\200,\20\"triggers\":\20[{\"disconnect\":\20true,\20\"message\":\20\"PreviewOver\",\20\"conditions\":\20[\"previewLength\",\20\"localViewers\"]}],\20\"expiration\":\201376573034,\20\"streamName\":\20\"jtv_KOUcVcsKApN14k06\",\20\"server\":\20\"video12-2.ams01\"} live=1": FLV

2013-08-15 13:24:28,858 DEBUG [GETMethodProcessor] Entity will be consumed till the end
2013-08-15 13:24:28,858 DEBUG [GETMethodProcessor] Stream entity has length: -1



and.. there I was watching the Simpsons...

So, on Serviio 1.3, Windows 7 x64, stock or latest ffmpeg, and twitch.tv and justin.tv of arconai's, WCS_Europe's and WCS_America's channels, the twitch.groovy plugin v4 with the patch WORKS. Withtout the patch, doesn't . This is a fact.

I'm sorry Jules and Zip, if these bug reports are breaking the logic.... you know what they [Sherlok and then Spock] say: "Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth."

Take care
SM
Last edited by smacedo on Sat Aug 17, 2013 11:30 pm, edited 1 time in total.
PreviousNext

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 27 guests

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