Page 18 of 31

Re: Channels Plugin

Posted: Sun Jun 09, 2013 9:48 pm
by flojo
Hiya

If anyone can please assist. It would be appreciated.
Im still struggling

Thanks

Re: Channels Plugin

Posted: Sun Jun 09, 2013 10:56 pm
by SharkHunter
flojo - you're using Channels 1.42 which is older than old. Upgrade to a fresher one.

Dilbao - looks like Channels didn't find the youtub-dl script (or python). You don't seem to have python installed. Maybe the installer failed? Try and install Channels again

Re: Channels Plugin

Posted: Fri Jun 21, 2013 6:53 pm
by flojo
Good day

Thank you ever so much for your reply.

Im a little confused. For I got the code from https://github.com/SharkHunter/Channel/

So I dont know how the old version.

But thanks again for replying.

Re: Channels Plugin

Posted: Sat Aug 24, 2013 4:10 pm
by redonyx
I installed the channels plugin 2.20 from UMS client but when I navigate to it on my PS3, I don't see any channels. All I see are 'Local Playlist', Cache, Recent Searches, Unlock All and New Monitored Media. Don't know what exactly do to now.

Re: Channels Plugin

Posted: Sat Aug 24, 2013 6:16 pm
by redonyx
Think I half-way solved my problem. Not sure what exactly did it but Channels now show up. The problem I'm having now is that if I select a show from say, Icefilms, it would sometimes say that there are no titles when I want to select a source. For example, I'd navigate to Psych, select an ep, no source. But sometimes I'll get to the subfolder to select a viewing source but then I'd get a DNLA error 2114 I believe?

Re: Channels Plugin

Posted: Wed Sep 04, 2013 8:53 pm
by pen
Hi.

I have problems with FFmpeg transcoding. It has similarities with the problem that "tubby" encounters but there are differences as well.

My setup:
Ubuntu 12.04
UMS 2.6.5
Channels 2.20
FFmpeg 0.10.7

My problem:
When playing SVTPlay on demand media FFmpeg stops with errors. Note that SVTPlay live media works fine - however PMSEncoder is invoked in that case. TV4Play works as well for some content - don't know which codec is chosen for that.

I started with the FFmpeg version that came bundled with UMS. However, that version obviously doesn't support the protocols used by SVT. So I created a symbolic link to the FFmpeg native version that I already had in my Ubunty environment and which has worked fine for playing SVT media with Serviio. However, the same version that works for Serviio doesn't work for UMS. By tracing both Serviio and UMS usage of FFmpeg, I found out the exact command used to invoke FFmpeg and the I run them directly from command in debug mode to get more information.

This is the result as called by UMS command string:

Code: Select all

ffmpeg -y -loglevel debug -threads 4 -i "https://svtplay1n-f.akamaihd.net/i/world/open/20130830/1355926-010A_abc/REGIONALA_NYHET-010A-abc-f5e8874a483319c3_,900,348,564,1680,.mp4.csmil/index_3_av.m3u8?null=&id=AgBR6fNvUO%2f+DTYBI1LwB8Ovi%2fo%2fPS+lt8uLP0Q0Lid2MwCHqjA3ZvD4HMgVD1zKNdOL3RI2+XwUsg%3d%3d" -threads 4 -c:a ac3 -c:v mpeg2video -f vob -maxrate 25000000 -q:a 3 /tmp/universalmediaserver/ffmpegwebvideo_33_1378025771182
ffmpeg version 0.10.7-6:0.10.7-0jon1~precise Copyright (c) 2000-2013 the FFmpeg developers
  built on Jul 15 2013 21:27:54 with gcc 4.6.3
  configuration: --arch=amd64 --disable-stripping --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.10.7-0jon1~precise' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[applehttp @ 0x14554a0] Format applehttp probed with size=2048 and score=100
Format mpegts probed with size=2048 and score=100
[mpegts @ 0x1452620] stream=0 stream_type=1b pid=100 prog_reg_desc=
[mpegts @ 0x1452620] stream=1 stream_type=f pid=101 prog_reg_desc=
[h264 @ 0x151b0c0] err{or,}_recognition separate: 1; 1
[h264 @ 0x151b0c0] err{or,}_recognition combined: 1; 10001
[aac @ 0x15212c0] err{or,}_recognition separate: 1; 1
[aac @ 0x15212c0] err{or,}_recognition combined: 1; 10001
[aac @ 0x15212c0] Unsupported bit depth: 0
[NULL @ 0x1470a00] non-existing SPS 0 referenced in buffering period
[NULL @ 0x1470a00] non-existing SPS 32 referenced in buffering period
[NULL @ 0x1470a00] Current profile doesn't provide more RBSP data in PPS, skipping
[h264 @ 0x151b0c0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x151b0c0] non-existing SPS 32 referenced in buffering period
[h264 @ 0x151b0c0] no picture 
    Last message repeated 1 times
[applehttp @ 0x14554a0] All info found
Input #0, applehttp, from 'https://svtplay1n-f.akamaihd.net/i/world/open/20130830/1355926-010A_abc/REGIONALA_NYHET-010A-abc-f5e8874a483319c3_,900,348,564,1680,.mp4.csmil/index_3_av.m3u8?null=&id=AgBR6fNvUO%2f+DTYBI1LwB8Ovi%2fo%2fPS+lt8uLP0Q0Lid2MwCHqjA3ZvD4HMgVD1zKNdOL3RI2+XwUsg%3d%3d':
  Duration: 00:10:02.00, start: 10.099667, bitrate: 0 kb/s
    Stream #0:0, 21, 1/90000: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 1/50, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1, 19, 1/90000: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16
[buffer @ 0x196be20] w:1024 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
[mpeg2video @ 0x15217a0] err{or,}_recognition separate: 1; 1
[mpeg2video @ 0x15217a0] err{or,}_recognition combined: 1; 10001
[mpeg2video @ 0x15217a0] a vbv buffer size is needed, for encoding with a maximum bitrate
Output #0, vob, to '/tmp/universalmediaserver/ffmpegwebvideo_33_1378025771182':
    Stream #0:0, 0, 1/90000: Video: mpeg2video, yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 1/25, q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream #0:1, 0, 1/90000: Audio: none, 48000 Hz, stereo, flt, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> mpeg2video)
  Stream #0:1 -> #0:1 (aac -> ac3)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
This is the result as called by Serviio command string:

Code: Select all

From command as given by Serviio with Linux native FFMPEG (working)
-------------------------------------------------------------------

admin@Athena:~$ sudo ffmpeg -analyzeduration 10000000 -fflags +genpts -loglevel debug -threads auto -i "https://svtplay8i-f.akamaihd.net/i/world/open/20130903/1357016-012A/RAPPORT_09-012A-e6dd44c564b46ff6_,900,348,564,1680,2800,.mp4.csmil/index_4_av.m3u8?null=&id=AgBV4gxwXCEhlGyiJVLEva1MPrYQP+ZMZDdEb6J+AzlVAD%2fplm2ycl3H%2fWAAkA3zw7fhPevRVFqwhw%3d%3d" -y -copyts -c:v copy -bsf:v h264_mp4toannexb -mpegts_m2ts_mode 1 -c:a ac3 -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-1000000010001385-7-ORIGINAL.stf
ffmpeg version 0.10.7-6:0.10.7-0jon1~precise Copyright (c) 2000-2013 the FFmpeg developers
  built on Jul 15 2013 21:27:54 with gcc 4.6.3
  configuration: --arch=amd64 --disable-stripping --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.10.7-0jon1~precise' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[applehttp @ 0x1b536e0] Format applehttp probed with size=2048 and score=100
Format mpegts probed with size=2048 and score=100
[mpegts @ 0x1b60220] stream=0 stream_type=1b pid=100 prog_reg_desc=
[mpegts @ 0x1b60220] stream=1 stream_type=f pid=101 prog_reg_desc=
[h264 @ 0x1b61460] err{or,}_recognition separate: 1; 1
[h264 @ 0x1b61460] err{or,}_recognition combined: 1; 10001
[aac @ 0x1bc25e0] err{or,}_recognition separate: 1; 1
[aac @ 0x1bc25e0] err{or,}_recognition combined: 1; 10001
[aac @ 0x1bc25e0] Unsupported bit depth: 0
[NULL @ 0x1b725c0] non-existing SPS 0 referenced in buffering period
[NULL @ 0x1b725c0] non-existing SPS 32 referenced in buffering period
[NULL @ 0x1b725c0] Current profile doesn't provide more RBSP data in PPS, skipping
[h264 @ 0x1b61460] non-existing SPS 0 referenced in buffering period
[h264 @ 0x1b61460] non-existing SPS 32 referenced in buffering period
[h264 @ 0x1b61460] no picture 
    Last message repeated 1 times
[applehttp @ 0x1b536e0] All info found
Input #0, applehttp, from 'https://svtplay8i-f.akamaihd.net/i/world/open/20130903/1357016-012A/RAPPORT_09-012A-e6dd44c564b46ff6_,900,348,564,1680,2800,.mp4.csmil/index_4_av.m3u8?null=&id=AgBV4gxwXCEhlGyiJVLEva1MPrYQP+ZMZDdEb6J+AzlVAD%2fplm2ycl3H%2fWAAkA3zw7fhPevRVFqwhw%3d%3d':
  Duration: 00:05:00.00, start: 10.099667, bitrate: 0 kb/s
    Stream #0:0, 21, 1/90000: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1/50, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1, 19, 1/90000: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
[ac3 @ 0x1bffa80] err{or,}_recognition separate: 1; 1
[ac3 @ 0x1bffa80] err{or,}_recognition combined: 1; 10001
[ac3 @ 0x1bffa80] channel_layout not specified
[ac3 @ 0x1bffa80] No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[ac3 @ 0x1bffa80] Unsupported bit depth: 0
[aac @ 0x1bc25e0] err{or,}_recognition separate: 1; 10001
[aac @ 0x1bc25e0] err{or,}_recognition combined: 1; 10001
[aac @ 0x1bc25e0] Unsupported bit depth: 0
[mpegts @ 0x2270260] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to '/tmp/Serviio/transcoding-temp-1000000010001385-7-ORIGINAL.stf':
  Metadata:
    encoder         : Lavf53.32.100
    Stream #0:0, 0, 1/90000: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1/25, q=2-31, 90k tbn, 25 tbc
    Stream #0:1, 0, 1/90000: Audio: ac3, 48000 Hz, stereo, flt, 384 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (aac -> ac3)
Press [q] to stop, [?] for help
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument

---- Note that despite these failures, the stream is correctly rendered by the TV!
The following is a highlight of the comparision:

- Serviio calls FFmpeg with the non transcoding option set for the video part whereas UMS calls FFmpeg with transcoding set to MPEG2 - this might be the major reason why Serviio succed whereas UMS fails.
- Given that trancoding is requested for UMS, a missing vbv buffer size can possibly be the reason why transcoding fails. However, this parameter is missing also in "tubbys" call to FFmpeg but it seems to be resolved somehow. I'd be glad to see an FFmeg debug from "tubby" to compare our versions of FFmpeg.
- The warnings in the beginning (which are also present in "tubbys" debug.log) are present both in the Serviio and FFmpeg invokations, so they are not of importance.

I'm basically stucked here and need some help to take it further. Please help!

Possible ways forward I have in mind are:
- Try to get UMS start FFmpeg without transcoding. I haven't found out a way to do this. Whereas it is possbible to exclude transcoding for file content in the config menu, the same possibility is not present for WEB content.
- Try to get (yet) another FFmpeg - possibly compiling one by myself. For this I would need to know the exact compiling directives used for a version that is known to work. To start with, maybee I could try "tubbys" version and see if I get the same problems. Or if there is anyone with a working FFmpeg in Linux - please send me your version and I will try it.

I also attach the debug.log, even if I think the command debugs contains much more information.

Pen

Re: Channels Plugin

Posted: Thu Sep 05, 2013 4:14 am
by infidel
pen wrote:Try to get UMS start FFmpeg without transcoding. I haven't found out a way to do this.
It's possible to do this by adding a custom rule for svtplay to the OPTIONS section of ffmpeg.webfilters (located next to UMS.conf in your profile folder, more info here). For example, to prevent video transcoding try:

Code: Select all

svtplay | -c:v copy
you can of course experiment with adding other options to your rule also. Custom options are added to the commandline after the default UMS options and usually override them properly, but there may be situations where a conflict arises.

Re: Channels Plugin

Posted: Fri Sep 06, 2013 4:45 am
by pen
Thank's a lot infidel. That really brought me a huge step forward. Still issues though:

I tried two ways: Keeping transcoding but get it to work and skipping transcoding. Here is the result:

1 Keeping transcoding:

1.1 Added -bufsize 1835000
This eliminates all significant errors from FFmpeg in the debug.log but the streaming stops anyway with these lines in the log after a couple of seconds:
DEBUG 2013-09-05 18:14:14.989 [Buffered IO End Checker] Stopping Unix process 5284: ffmpeg-2
DEBUG 2013-09-05 18:14:14.990 [Buffered IO End Checker] Stopping Unix process 5280: mkfifo-1
INFO 2013-09-05 18:14:16.833 [StopPlaying Event] Stopped playing 1670 Kbps on your Samsung AllShare
Issuing the same from command mode at least does not exit FFmpeg:

Code: Select all

ffmpeg -y -loglevel debug -threads 4 -i "https://svtplay7h-f.akamaihd.net/i/world/open/20130905/1357021-014A_abc/GOMORRON_SVERIG-014A-abc-a1aa162e9f55e693_,900,348,564,1680,.mp4.csmil/index_3_av.m3u8?null=&id=AgBR6fNvUO%2fZPpVDKFKqpTa2zFd2089xepZBg7xDG8EbYjDeOjHSr6jZy24UfTmgh9lUfZpi491g7g%3d%3d" -threads 4 -c:a ac3 -c:v mpeg2video -f vob -maxrate 25000000 -q:a 3 -bufsize 1835k /tmp/universalmediaserver/ffmpegwebvideo_31_1378370440815
ffmpeg version 0.10.7-6:0.10.7-0jon1~precise Copyright (c) 2000-2013 the FFmpeg developers
  built on Jul 15 2013 21:27:54 with gcc 4.6.3
  configuration: --arch=amd64 --disable-stripping --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.10.7-0jon1~precise' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[applehttp @ 0x19e24a0] Format applehttp probed with size=2048 and score=100
Format mpegts probed with size=2048 and score=100
[mpegts @ 0x19df420] stream=0 stream_type=1b pid=100 prog_reg_desc=
[mpegts @ 0x19df420] stream=1 stream_type=f pid=101 prog_reg_desc=
[h264 @ 0x19fdc60] err{or,}_recognition separate: 1; 1
[h264 @ 0x19fdc60] err{or,}_recognition combined: 1; 10001
[aac @ 0x1a5d900] err{or,}_recognition separate: 1; 1
[aac @ 0x1a5d900] err{or,}_recognition combined: 1; 10001
[aac @ 0x1a5d900] Unsupported bit depth: 0
[NULL @ 0x19e0680] non-existing SPS 0 referenced in buffering period
[NULL @ 0x19e0680] non-existing SPS 32 referenced in buffering period
[NULL @ 0x19e0680] Current profile doesn't provide more RBSP data in PPS, skipping
[h264 @ 0x19fdc60] non-existing SPS 0 referenced in buffering period
[h264 @ 0x19fdc60] non-existing SPS 32 referenced in buffering period
[h264 @ 0x19fdc60] no picture 
    Last message repeated 1 times
[applehttp @ 0x19e24a0] All info found
Input #0, applehttp, from 'https://svtplay7h-f.akamaihd.net/i/world/open/20130905/1357021-014A_abc/GOMORRON_SVERIG-014A-abc-a1aa162e9f55e693_,900,348,564,1680,.mp4.csmil/index_3_av.m3u8?null=&id=AgBR6fNvUO%2fZPpVDKFKqpTa2zFd2089xepZBg7xDG8EbYjDeOjHSr6jZy24UfTmgh9lUfZpi491g7g%3d%3d':
  Duration: 00:03:32.00, start: 10.099667, bitrate: 0 kb/s
    Stream #0:0, 21, 1/90000: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 1/50, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1, 19, 1/90000: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16
[buffer @ 0x1a5d880] w:1024 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
[mpeg2video @ 0x1ac9fa0] err{or,}_recognition separate: 1; 1
[mpeg2video @ 0x1ac9fa0] err{or,}_recognition combined: 1; 10001
[mpeg2video @ 0x1ac9fa0] intra_quant_bias = 96 inter_quant_bias = 0
[ac3 @ 0x19d0340] err{or,}_recognition separate: 1; 1
[ac3 @ 0x19d0340] err{or,}_recognition combined: 1; 10001
[ac3 @ 0x19d0340] Unsupported bit depth: 0
[h264 @ 0x19fdc60] err{or,}_recognition separate: 1; 10001
[h264 @ 0x19fdc60] err{or,}_recognition combined: 1; 10001
[h264 @ 0x1c8eca0] non-existing SPS 0 referenced in buffering period
[h264 @ 0x1c8eca0] non-existing SPS 32 referenced in buffering period
[aac @ 0x1a5d900] err{or,}_recognition separate: 1; 10001
[aac @ 0x1a5d900] err{or,}_recognition combined: 1; 10001
[aac @ 0x1a5d900] Unsupported bit depth: 0
Output #0, vob, to '/tmp/universalmediaserver/ffmpegwebvideo_31_1378370440815':
  Metadata:
    encoder         : Lavf53.32.100
    Stream #0:0, 0, 1/90000: Video: mpeg2video, yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 1/25, q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream #0:1, 0, 1/90000: Audio: ac3, 48000 Hz, stereo, flt, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> mpeg2video)
  Stream #0:1 -> #0:1 (aac -> ac3)
Press [q] to stop, [?] for help
[h264 @ 0x1c8eca0] no picture 
[h264 @ 0x1cd3b20] no picture 
*** 2 dup!
[NULL @ 0x19e0680] Current profile doesn't provide more RBSP data in PPS, skipping
frame=   48 fps=  0 q=2.0 size=     108kB time=00:00:01.88 bitrate= 470.6kbits/sframe=   68 fps= 67 q=22.6 size=     262kB time=00:00:02.68 bitrate= 800.9kbits/frame=   96 fps= 63 q=31.0 size=     396kB time=00:00:03.80 bitrate= 853.7kbits/Current profile doesn't provide more RBSP data in PPS, skipping
frame=  116 fps= 57 q=31.0 size=     510kB time=00:00:04.60 bitrate= 908.2kbits/frame=  144 fps= 57 q=31.0 size=     720kB time=00:00:05.72 bitrate=1031.2kbits/Current profile doesn't provide more RBSP data in PPS, skipping
frame=  180 fps= 59 q=31.0 size=     934kB time=00:00:07.16 bitrate=1068.6kbits/Current profile doesn't provide more RBSP data in PPS, skipping
frame=  219 fps= 62 q=31.0 size=    1076kB time=00:00:08.72 bitrate=1010.8kbits/Current profile doesn't provide more RBSP data in PPS, skipping
frame=  248 fps= 56 q=31.0 size=    1152kB time=00:00:09.88 bitrate= 955.2kbits/frame=  278 fps= 56 q=31.0 size=    1246kB time=00:00:11.08 bitrate= 921.2kbits/Current profile doesn't provide more RBSP data in PPS, skipping
frame=  306 fps= 56 q=31.0 size=    1320kB time=00:00:12.20 bitrate= 886.3kbits/frame=  334 fps= 56 q=31.0 size=    1416kB time=00:00:13.32 bitrate= 870.9kbits/Current profile doesn't provide more RBSP data in PPS, skipping
frame=  363 fps= 56 q=31.0 size=    1518kB time=00:00:14.48 bitrate= 858.8kbits/frame=  392 fps= 56 q=31.0 size=    1600kB time=00:00:15.64 bitrate= 838.1kbits/Current profile doesn't provide more RBSP data in PPS, skipping
frame=  418 fps= 56 q=31.0 size=    1682kB time=00:00:16.68 bitrate= 826.1kbits/Current profile doesn't provide more RBSP data in PPS, skipping
frame=  448 fps= 55 q=31.0 size=    1802kB time=00:00:17.88 bitrate= 825.6kbits/frame=  484 fps= 56 q=31.0 size=    1928kB time=00:00:19.32 bitrate= 817.5kbits/Current profile doesn't provide more RBSP data in PPS, skipping
frame=  498 fps= 54 q=31.0 size=    1976kB time=00:00:19.88 bitrate= 814.3kbits/frame=  539 fps= 55 q=31.0 size=    2112kB time=00:00:21.52 bitrate= 804.0kbits/Current profile doesn't provide more RBSP data in PPS, skipping
frame=  568 fps= 55 q=31.0 size=    2232kB time=00:00:22.68 bitrate= 806.2kbits/Current profile doesn't provide more RBSP data in PPS, skipping
frame=  598 fps= 55 q=31.0 size=    2326kB time=00:00:23.88 bitrate= 797.9kbits/Current profile doesn't provide more RBSP data in PPS, skipping
frame=  648 fps= 57 q=31.0 size=    2504kB time=00:00:25.88 bitrate= 792.6kbits/frame=  694 fps= 58 q=31.0 size=    2674kB
...... and so on

1.2 Added -bufsize 1835000 -f mpegts
I was a bit unsure why UMS chosed to set vob as output format so I changed it to TS. With this change, the transcoding works and the TV is able to render it. However, the video quality is awful. By the way, how comes that UMS preferes PS before TS format? I can see also in tobbys debug.log that the target format is dvd.

2 Skipping transcoding

Added -fflags +genpts -copyts -c:v copy -b:a 384k -ac 2 -sn -f mpegts
Basically, this is what Serviio uses. With this change both video and audo is rendered with perfect quality by the TV. However, audio and video are 5-10s out of sync (audio comming first).
I have played around skipping some of the paramers, in particular the +genpts but there is no difference. How can I get the lipsync work again?

So, it's still a way to go. Any more ideas are welcome. I'm also curious to understand if there is someone that has got WEB streaming to work with FFmpeg on Linux. I see very litle activity in the Linux forum so I suppose most users are running Windows.

Thank's
Pen

Re: Channels Plugin

Posted: Fri Sep 06, 2013 5:50 am
by pen
Solved thank's to infidels tip and tubby's old debug.log!!!

The solution to play SVTPlay on demand media was to just append
-target ntsc-dvd
to the FFmpeg command given by UMS.
So thank's again infidel for the tip to use ffmpeg-webfilters and thank's tubby for providing your debug.log. Basically, as I can see it, the FFmpeg command issued by UMS has changed to the worse from tubbys version of UMS 2.4.2 to my version UMS 2.6.5.

Finally I want to feedback to other Linux users that might have problems to get SVTPlay to work. Here's a working setup:

Versions:
Ubuntu 12.04
UMS 2.6.5
Channels 2.20
svt.ch 0.80
FFmpeg 0.10.7
0.10.7-6:0.10.7-0jon1~precise (https://launchpad.net/~jon-severinsson/+archive/ffmpeg)
I chosed to do a standard install of this version (with shared libs) and then I sym-linked it from the UMS directory

Config file:
~/.config/UMS/ffmpeg.webfilters

Code: Select all

OPTIONS

# options added by Pen
svtplay | -target ntsc-dvd
Runnig FFMpeg from command mode with debug yields:

Code: Select all

ffmpeg -y -loglevel debug -threads 4 -i "https://svtplay3r-f.akamaihd.net/i/world/open/20130905/1355924-016A_abc/REGIONALA_NYHET-016A-abc-3b8ed3c97bb4be91_,900,348,564,1680,.mp4.csmil/index_3_av.m3u8?null=&id=AgBR6fNvUO%2f+Vl25KFJJFcWjq5A5NPjGQ2gjefOLsb72J1u4EmSUzY5Nc5SmpbAca+5gdy5TBLRkVw%3d%3d" -threads 4 -c:a ac3 -c:v mpeg2video -f vob -maxrate 25000000 -q:a 3 -target ntsc-dvd /tmp/universalmediaserver/ffmpegwebvideo_31_1378400594406
ffmpeg version 0.10.7-6:0.10.7-0jon1~precise Copyright (c) 2000-2013 the FFmpeg developers
  built on Jul 15 2013 21:27:54 with gcc 4.6.3
  configuration: --arch=amd64 --disable-stripping --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.10.7-0jon1~precise' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[applehttp @ 0xf954a0] Format applehttp probed with size=2048 and score=100
Format mpegts probed with size=2048 and score=100
[mpegts @ 0xf92420] stream=0 stream_type=1b pid=100 prog_reg_desc=
[mpegts @ 0xf92420] stream=1 stream_type=f pid=101 prog_reg_desc=
[h264 @ 0xf93920] err{or,}_recognition separate: 1; 1
[h264 @ 0xf93920] err{or,}_recognition combined: 1; 10001
[aac @ 0xff4740] err{or,}_recognition separate: 1; 1
[aac @ 0xff4740] err{or,}_recognition combined: 1; 10001
[aac @ 0xff4740] Unsupported bit depth: 0
[NULL @ 0xfa0ae0] non-existing SPS 0 referenced in buffering period
[NULL @ 0xfa0ae0] non-existing SPS 32 referenced in buffering period
[NULL @ 0xfa0ae0] Current profile doesn't provide more RBSP data in PPS, skipping
[h264 @ 0xf93920] non-existing SPS 0 referenced in buffering period
[h264 @ 0xf93920] non-existing SPS 32 referenced in buffering period
[h264 @ 0xf93920] no picture 
    Last message repeated 1 times
[applehttp @ 0xf954a0] All info found
Input #0, applehttp, from 'https://svtplay3r-f.akamaihd.net/i/world/open/20130905/1355924-016A_abc/REGIONALA_NYHET-016A-abc-3b8ed3c97bb4be91_,900,348,564,1680,.mp4.csmil/index_3_av.m3u8?null=&id=AgBR6fNvUO%2f+Vl25KFJJFcWjq5A5NPjGQ2gjefOLsb72J1u4EmSUzY5Nc5SmpbAca+5gdy5TBLRkVw%3d%3d':
  Duration: 00:05:02.00, start: 10.099667, bitrate: 0 kb/s
    Stream #0:0, 21, 1/90000: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 1/50, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1, 19, 1/90000: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, s16
[buffer @ 0xfa4ac0] w:1024 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[scale @ 0x147ac20] w:1024 h:576 fmt:yuv420p -> w:720 h:480 fmt:yuv420p flags:0x4
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
[mpeg2video @ 0x102e180] err{or,}_recognition separate: 1; 1
[mpeg2video @ 0x102e180] err{or,}_recognition combined: 1; 10001
[mpeg2video @ 0x102e180] intra_quant_bias = 96 inter_quant_bias = 0
[mpeg2video @ 0x102e180] Unsupported bit depth: 0
[ac3 @ 0xf83340] err{or,}_recognition separate: 1; 1
[ac3 @ 0xf83340] err{or,}_recognition combined: 1; 10001
[ac3 @ 0xf83340] Unsupported bit depth: 0
[h264 @ 0xf93920] err{or,}_recognition separate: 1; 10001
[h264 @ 0xf93920] err{or,}_recognition combined: 1; 10001
[h264 @ 0x1282060] non-existing SPS 0 referenced in buffering period
[h264 @ 0x1282060] non-existing SPS 32 referenced in buffering period
[aac @ 0xff4740] err{or,}_recognition separate: 1; 10001
[aac @ 0xff4740] err{or,}_recognition combined: 1; 10001
[aac @ 0xff4740] Unsupported bit depth: 0
Output #0, dvd, to '/tmp/universalmediaserver/ffmpegwebvideo_31_1378400594406':
  Metadata:
    encoder         : Lavf53.32.100
    Stream #0:0, 0, 1/90000: Video: mpeg2video, yuv420p, 720x480 [SAR 32:27 DAR 16:9], 1001/30000, q=2-31, 6000 kb/s, 90k tbn, 29.97 tbc
    Stream #0:1, 0, 1/90000: Audio: ac3, 48000 Hz, stereo, flt, 448 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> mpeg2video)
  Stream #0:1 -> #0:1 (aac -> ac3)
Press [q] to stop, [?] for help
[h264 @ 0x1282060] no picture 
[h264 @ 0x1282e80] no picture 
*** 2 dup!
*** 1 dup!
    Last message repeated 8 times
[NULL @ 0xfa0ae0] Current profile doesn't provide more RBSP data in PPS, skipping
*** 1 dup!
    Last message repeated 4 times
frame=   86 fps=  0 q=2.0 size=     476kB time=00:00:02.83 bitrate=1374.9kbits/s*** 1 dup!op=0    
    Last message repeated 4 times
[NULL @ 0xfa0ae0] Current profile doesn't provide more RBSP data in PPS, skipping
frame=  119 fps=116 q=2.0 size=     612kB time=00:00:03.93 bitrate=1273.3kbits/s*** 1 dup!op=0    
    Last message repeated 5 times
frame=  153 fps= 99 q=2.0 size=     994kB time=00:00:05.07 bitrate=1605.5kbits/s*** 1 dup!op=0    
    Last message repeated 3 times
[NULL @ 0xfa0ae0] Current profile doesn't provide more RBSP data in PPS, skipping
frame=  177 fps= 84 q=2.0 size=    1374kB time=00:00:05.87 bitrate=1916.7kbits/s*** 1 dup!op=0    
    Last message repeated 5 times
frame=  213 fps= 82 q=2.0 size=    2010kB time=00:00:07.07 bitrate=2327.8kbits/s*** 1 dup!op=0    
    Last message repeated 3 times
and finally the debug.log

Thank's again!

Re: Channels Plugin

Posted: Fri Sep 06, 2013 7:58 am
by infidel
pen wrote:The solution to play SVTPlay on demand media was to just append
-target ntsc-dvd
to the FFmpeg command given by UMS.
ntsc-dvd is the good old magic bullet for most transcoding issues, though slightly less shiny now in an HD world :).

I should have also mentioned trying the transcode/mux renderer options. For instance TranscodeVideo (see description in renderers/PS3.conf):

Code: Select all

TranscodeVideo = H264TSAC3