FAQ  •  Register  •  Login

Hit and miss with Sony W600B and TuneIn or CBS plugins.

<<

fidmas

Serviio lover

Posts: 96

Joined: Thu Dec 17, 2015 8:29 pm

Post Tue Jan 19, 2016 7:08 pm

Hit and miss with Sony W600B and TuneIn or CBS plugins.

Trying to play TuneIn stations or CBS shows on the KDL-48W600B results in failures most of the time. When I try to start a station, one of several things result:

1) The title will appear and about 20 seconds later "... cannot be played".
2) The title appears and the stream plays for 0.5 second, followed by "... cannot be played".
3) The title appears and about 20 seconds later the next title appears followed by "... cannot be played".
4) After about 20 seconds the Media Player crashes.
5) About 10% of the time, the show (or station) will start and play nicely forever.

Content that doesn't need a plugin or content using the Youtube.groovy never has any problem!

I'm attaching portions of a debug log around two of these failures. I'm hoping someone can make some sense of this problem.

The TuneIn.zip contains a log from 10:58 to 11:03 during which a TuneIn station failed to start 3 times and finally succeeded.

The CBS.zip contains a log from 11:05 to 11:13 during which multiple attempts failed to start a CBS show, and the last attempt to start a different CBS show crashed the TV's Media Player.
Attachments
TuneIn.zip
(94.01 KiB) Downloaded 335 times
CBS.zip
(95.16 KiB) Downloaded 330 times
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Jan 20, 2016 9:30 am

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

Hi,

For TunIn, you have many messages probably due to a ffmpeg process failed:
  Code:
[ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: Transcoded stream is empty, FFmpeg execution probably failed or connection has been lost.

and also many messages probably due to Sony stop to read due to a bad stream format:
  Code:
2016-01-19 11:02:11,234 DEBUG [WebServer] I/O error: Software caused connection abort: socket write error
2016-01-19 11:02:11,328 DEBUG [PipedOutputStreamMultiplexer] Caught exception: Read end dead
java.io.IOException: Read end dead
   at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:262)
   at java.io.PipedInputStream.receive(PipedInputStream.java:226)
   at java.io.PipedOutputStream.write(PipedOutputStream.java:149)
   at org.serviio.external.io.PipedOutputStreamMultiplexer$3.call(PipedOutputStreamMultiplexer.java:87)
   at org.serviio.external.io.PipedOutputStreamMultiplexer$MultiplexCaller.multiplex(PipedOutputStreamMultiplexer.java:119)
   at org.serviio.external.io.PipedOutputStreamMultiplexer.write(PipedOutputStreamMultiplexer.java:89)
   at org.serviio.external.io.PipedOutputBytesReader.processOutput(PipedOutputBytesReader.java:58)
   at org.serviio.external.io.OutputReader.run(OutputReader.java:47)


Some online resources need a transcoding process with ffmpeg.
Could you extract some process examples, like this, then in a new windows terminal past the same command line and check ffmpeg log.
  Code:
C:\Program Files\Serviio\bin\\..\lib\ffmpeg.exe -analyzeduration 10000000 -threads auto -i http://152.2.63.68:8000/wunc128 -y -threads auto -b:a 320k -id3v2_version 3 -ac 2 -c:v copy -f mp3


Some other online resources are delivered without transcoding process, but it seems that sometime, external server (TunIn) stop traffic.



For CBS, same test, past the command line to a new windows terminal like this and check ffmpeg output log:
  Code:
C:\Program Files\Serviio\bin\\..\lib\ffmpeg.exe -analyzeduration 10000000 -fflags +genpts -threads auto -i rtmp://cp48590.edgefcs.net/ondemand/?auth=daEb0dfb3d8b_d8didOc6bicfcZdGaeaVdB-bwNMaJ-h0-GcBNhXje&amp;aifp=v001&amp;slist=video/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2015/12/01/577328707931/ playpath=mp4:video/temp_hd_gallery_video/CBS_Production_Outlet_VMS/video_robot/CBS_Production_Entertainment/2015/12/01/577328707931/CBS_CRIMINAL_MINDS_1109_CONTENT_CIAN_Streamclip_694616_1296 buffer=100000000 -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 C:\WINDOWS\TEMP\TEST.stf
<<

fidmas

Serviio lover

Posts: 96

Joined: Thu Dec 17, 2015 8:29 pm

Post Wed Jan 20, 2016 6:02 pm

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

Can you help me get the info you need? This is all new to me.

One thing at a time. Lets pick TuneIn audio.

1) What do I look for in the log? I assume 'debug log'?
2) The commands you're asking me to "Paste" into a TERMINAL session are not valid CMD (DOS) commands. Do I need another Terminal Emulator or can I just run ffmpeg in CMD? If so, please give me instructions (input, output, switches)?

If I can get the hang of this, I'll try to get info on CBS.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Jan 20, 2016 6:59 pm

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

2)
Do you try with quote " " for ffmpeg path, like this :
  Code:
"C:\Program Files\Serviio\bin\\..\lib\ffmpeg.exe"-analyzeduration 10000000 -threads auto -i http://152.2.63.68:8000/wunc128 -y -threads auto -b:a 320k -id3v2_version 3 -ac 2 -c:v copy -f mp3


Could you confirm that this online audio resource does not work on your Sony Bravia TV ?
serviio://audio:live?url=http%3A%2F%2F1 ... me=Try+MP3

On mine, it works only for 16 seconds.
<<

fidmas

Serviio lover

Posts: 96

Joined: Thu Dec 17, 2015 8:29 pm

Post Wed Jan 20, 2016 7:14 pm

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

PLease give me a couple minutes to switch to debug log and I'll try it. Normally WUNC either fails or streams forever.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Jan 20, 2016 7:28 pm

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

fidmas wrote:Normally WUNC either fails or streams forever.


I retry and this time http://152.2.63.68:8000/wunc128 streams works forever ?!
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Jan 20, 2016 7:30 pm

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

and retry again, then its failed !!

I don't really know where is the bug...

  Code:
2016-01-20 20:27:31,373 DEBUG [AudioDeliveryEngine] Found Format profile for transcoded file http://152.2.63.68:8000/wunc128: MP3
2016-01-20 20:27:31,373 DEBUG [GETMethodProcessor] Stream entity has length: 900000000
2016-01-20 20:27:31,373 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2016-01-20 20:27:31,373 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: audio/mpeg,Accept-Ranges: none,Cache-control: no-cache,Connection: close,contentFeatures.dlna.org: DLNA.ORG_PN=MP3;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=8D500000000000000000000000000000,Date: Wed, 20 Jan 2016 19:27:31 GMT,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,Server: Windows 8, UPnP/1.0 DLNADOC/1.50, Serviio/1.6-SNAPSHOT,transferMode.dlna.org: Streaming]]
2016-01-20 20:27:32,202 DEBUG [MediaItemDAOImpl] Getting counts of media items by type
2016-01-20 20:27:32,550 DEBUG [TimeoutStreamDelegator] Scheduling stream stop to happen in 20 seconds if there is no traffic
2016-01-20 20:27:32,555 DEBUG [WebServer] I/O error: Software caused connection abort: socket write error
2016-01-20 20:27:32,555 DEBUG [PipedOutputStreamMultiplexer] Caught exception: Read end dead
java.io.IOException: Read end dead
   at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:262)
   at java.io.PipedInputStream.receive(PipedInputStream.java:226)
   at java.io.PipedOutputStream.write(PipedOutputStream.java:149)
   at org.serviio.external.io.PipedOutputStreamMultiplexer$3.call(PipedOutputStreamMultiplexer.java:87)
   at org.serviio.external.io.PipedOutputStreamMultiplexer$MultiplexCaller.multiplex(PipedOutputStreamMultiplexer.java:119)
   at org.serviio.external.io.PipedOutputStreamMultiplexer.write(PipedOutputStreamMultiplexer.java:89)
   at org.serviio.external.io.PipedOutputBytesReader.processOutput(PipedOutputBytesReader.java:58)
   at org.serviio.external.io.OutputReader.run(OutputReader.java:47)
<<

fidmas

Serviio lover

Posts: 96

Joined: Thu Dec 17, 2015 8:29 pm

Post Wed Jan 20, 2016 7:35 pm

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

Yes. Today, right now this time wunc128 started right up and played forever after a slight hickups in the first 1 second
<<

fidmas

Serviio lover

Posts: 96

Joined: Thu Dec 17, 2015 8:29 pm

Post Wed Jan 20, 2016 7:44 pm

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

Yes. This is what I see all the time with all TuneIn Stations and all CBS shows. Normally fail to start, but once started they play forever. Youtube and those that don't need a plugin never have any problems.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Jan 20, 2016 7:53 pm

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

I think there were something that Sony Bravia did not like at the start of the streaming, then it stops reading the content, and serviio raises an exception due to the connection aborted.
I could not help you here. It's probably a sony firmware weakness.
<<

fidmas

Serviio lover

Posts: 96

Joined: Thu Dec 17, 2015 8:29 pm

Post Wed Jan 20, 2016 8:00 pm

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

Illico wrote:2)
Do you try with quote " " for ffmpeg path, like this :
  Code:
"C:\Program Files\Serviio\bin\\..\lib\ffmpeg.exe"-analyzeduration 10000000 -threads auto -i http://152.2.63.68:8000/wunc128 -y -threads auto -b:a 320k -id3v2_version 3 -ac 2 -c:v copy -f mp3



The \\... isn't legal in the Windows/DOS path format either. It should be "C:\Program Files\Serviio\bin\..\lib\ffmpeg.exe". But don't worry about that. I can run ffmpeg if I just know how to find the line you want me to feed it.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Jan 20, 2016 8:04 pm

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

I try this command line on my side, but I found nothing that could help. Hope Zip (serviio developper) have an idea for this issue. It's a dead end for me. Sorry.
<<

fidmas

Serviio lover

Posts: 96

Joined: Thu Dec 17, 2015 8:29 pm

Post Wed Jan 20, 2016 8:08 pm

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

Nuts! Have you tried any CBS shows, like Criminal Minds for example? They behave the same way.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Fri Jan 22, 2016 2:57 am

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

All he wants you to do is run the ffmpeg command that is in the debug log, in a windows command window. Start Menu...Command Prompt
You can copy the tunein command straight from the debug log, but remove the bin\\..\ and add quotes so you get "C:\Program Files\Serviio\lib\ffmpeg.exe"
and replace pipe: with C:\tunein.mp3
  Code:
C:\Program Files\Serviio\bin\\..\lib\ffmpeg.exe -analyzeduration 10000000 -threads auto -i http://152.2.63.68:8000/wunc128 -y -threads auto -b:a 320k -id3v2_version 3 -ac 2 -c:v copy -f mp3 pipe:

becomes
  Code:
 "C:\Program Files\Serviio\lib\ffmpeg.exe" -analyzeduration 10000000 -threads auto -i http://152.2.63.68:8000/wunc128 -y -threads auto -b:a 320k -id3v2_version 3 -ac 2 -c:v copy -f mp3 C:\Tunein.mp3

After a minute or so hit "q". This will show what ffmpeg does and create an mp3 file that mimics what goes to the TV, which you can try and play.

When I do this I get
  Code:
C:\Users\John>"C:\Program Files\Serviio\lib\ffmpeg.exe" -analyzeduration 1000000
0 -threads auto -i http://152.2.63.68:8000/wunc128 -y -threads auto -b:a 320k -i
d3v2_version 3 -ac 2 -c:v copy -f mp3 C:\Tunein.mp3
ffmpeg version N-67331-g547fce9 Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov  1 2014 22:01:52 with gcc 4.9.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
 --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      54. 11.100 / 54. 11.100
  libavcodec     56. 10.101 / 56. 10.101
  libavformat    56. 12.100 / 56. 12.100
  libavdevice    56.  2.100 / 56.  2.100
  libavfilter     5.  2.101 /  5.  2.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[mp3 @ 0496fe80] Header missing
Input #0, mp3, from 'http://152.2.63.68:8000/wunc128':
  Metadata:
    icy-br          : 128
    icy-description : WUNC FM 128
    icy-genre       : Public Radio
    icy-name        : WUNC FM
    icy-private     : 0
    icy-pub         : 1
    icy-url         : http://wunc.org
    StreamTitle     :
  Duration: N/A, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
[AVFilterGraph @ 04972420] [Eval @ 0028ac1c] Undefined constant or missing '(' i
n 'auto'
[AVFilterGraph @ 04972420] Unable to parse option value "auto"
Output #0, mp3, to 'C:\Tunein.mp3':
  Metadata:
    icy-br          : 128
    icy-description : WUNC FM 128
    icy-genre       : Public Radio
    icy-name        : WUNC FM
    icy-private     : 0
    icy-pub         : 1
    icy-url         : http://wunc.org
    StreamTitle     :
    TSSE            : Lavf56.12.100
    Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 320 kb/s
    Metadata:
      encoder         : Lavc56.10.101 libmp3lame
Stream mapping:
  Stream #0:0 -> #0:0 (mp3 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[mp3 @ 049685c0] Header missing
Error while decoding stream #0:0: Invalid data found when processing input
size=    2658kB time=00:01:08.02 bitrate= 320.1kbits/s
video:0kB audio:2657kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: 0.048403%

I believe the header missing message is simply because we are picking up the mp3 song in the middle. The auto will default to all.
The transcoded mp3 file then plays fine for me because ffmpeg will add a header to the new mp3 file.
Make sure your test repeats this.

I don't think the same will work for the CBS show because the "key" in the url is time sensitive so it will fail.

This will not fix the problem but it will confirm that your ffmpeg is working correctly.

Other than that I think its the TV, particularly due to the intermittent failure. Is your firmware up to date?
<<

fidmas

Serviio lover

Posts: 96

Joined: Thu Dec 17, 2015 8:29 pm

Post Fri Jan 22, 2016 2:40 pm

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

Thank you. There will be no problem doing that. Since the log always has many such entries, I needed to know which one to emulate. I think he wants the ffmpeg line just before some kind of error. Correct? However, I thought I read that last message:
I try this command line on my side, but I found nothing that could help. Hope Zip (serviio developper) have an idea for this issue. It's a dead end for me. Sorry.

as "He gives up". :(

I do seem to notice that, most of the time when i do get a TuneIn station to start, it is just playing the last 1 second of a tune. Possible?

I just got this TV in early November. Shortly later it wanted to update software. I told it to wait until it was off. The next day, when powered on, it told me it had done it. I'm assuming that was the latest since the router is always on.

So, someone tell me if I should perform this test, or did I read Illico correctly as giving up?
<<

fidmas

Serviio lover

Posts: 96

Joined: Thu Dec 17, 2015 8:29 pm

Post Wed Jan 27, 2016 3:37 pm

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

Anyone know of any other DLNA software that might handle these tasks? Tversity doesn't even come close.
<<

fidmas

Serviio lover

Posts: 96

Joined: Thu Dec 17, 2015 8:29 pm

Post Fri Jan 29, 2016 11:16 pm

Re: Hit and miss with Sony W600B and TuneIn or CBS plugins.

I believe the header missing message is simply because we are picking up the mp3 song in the middle. The auto will default to all.
The transcoded mp3 file then plays fine for me because ffmpeg will add a header to the new mp3 file.
Make sure your test repeats this.


If I were to play with this, and that turned out to be the case, could the plugin have any affect on it. Or, is it still out of anyone's control other than zip?

Return to Sony

Who is online

Users browsing this forum: No registered users and 18 guests

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