FAQ  •  Register  •  Login

Sony Bravia KDL-40EX720 does not show HQ / HD otr-files

<<

bredy67

Serviio newbie

Posts: 3

Joined: Fri Feb 03, 2012 11:08 am

Post Fri Feb 03, 2012 10:11 pm

Sony Bravia KDL-40EX720 does not show HQ / HD otr-files

Hi there,

I have a Sony Bravia KDL-40EX720 from 2011 and I am trying to watch HQ/HD avi files from onlinetvrecorder. Unfortunately, when I try to play them, the Sony TV reports that the server cannot be accessed.

The file format is:
Video:
- Codec: H264 - MPEG-4 AVC (part 10) (H264)
- Resolution: 720x576
- Frame rate: 25
Audio:
- Codec: MPEG Audio layer 1/2/3 (mpga)
- Stereo
- Sample rate: 48000 Hz
- Bitrate: 192 kb/s

I looked into the log:

  Code:
2012-02-03 19:05:54,953 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.2.149, Profile=Sony Bravia TV (2011)'
2012-02-03 19:05:54,953 DEBUG [ResourceTransportRequestHandler] Request for resource 169 and type 'MEDIA_ITEM' received
2012-02-03 19:05:54,953 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 169 (local)
2012-02-03 19:05:54,953 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 169)
2012-02-03 19:05:54,953 DEBUG [VideoDAOImpl] Reading a Video (id = 169)
2012-02-03 19:05:54,953 DEBUG [VideoDeliveryEngine] Delivering item '169' for client 'IPAddress=/192.168.2.149, Profile=Sony Bravia TV (2011)'
2012-02-03 19:05:54,953 DEBUG [VideoDeliveryEngine] Delivering file 'Der_Pate_Teil_III_11.04.25_01-50_kabel1_175_TVOON_DE.mpg.HQ.avi' using transcoding
2012-02-03 19:05:54,953 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.2.149, Profile=Sony Bravia TV (2011)'
2012-02-03 19:05:54,968 DEBUG [MediaItemDAOImpl] Getting file of media item 169
2012-02-03 19:05:54,968 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: d:\Movies\Cut\Der_Pate_Teil_III_11.04.25_01-50_kabel1_175_TVOON_DE.mpg.HQ.avi
2012-02-03 19:05:54,968 DEBUG [ProcessExecutor] Starting C:\Programme\Serviio\bin\\..\lib/ffmpeg.exe -i d:\Movies\Cut\Der_Pate_Teil_III_11.04.25_01-50_kabel1_175_TVOON_DE.mpg.HQ.avi -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts C:\tmp\Serviio\transcoding-temp-169-MPEG2TS.stf
2012-02-03 19:05:55,375 WARN  [ProcessExecutor] Process cmd has a return code of 1! This is a possible error.
2012-02-03 19:05:55,375 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2012-02-03 19:06:02,468 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed
java.io.IOException: FFmpeg execution failed
   at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:47)
   at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:129)
   at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:96)
   at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:121)
   at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:116)
   at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:54)
   at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
   at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
   at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
   at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:187)


Then I tried to run ffmpeg in the command prompt:

  Code:
C:\Programme\Serviio\lib>ffmpeg -i d:\Movies\Cut\Der_Pate_Teil_III_11.04.25_01-50_kabel1_175_TVOON_DE.mpg.HQ.avi -fflags +genpts -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 2 -map 0:0 -map 0:1  -sn -f mpegts C:\tmp\Serviio\transcoding-temp-169-MPEG2TS.stf
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 13 2011 20:46:11 with gcc 4.4.2
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-config
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 0 / 53. 42. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
[avi @ 01852320] max_analyze_duration 5000000 reached at 5016000
Input #0, avi, from 'd:\Movies\Cut\Der_Pate_Teil_III_11.04.25_01-50_kabel1_175_TVOON_DE.mpg.HQ.avi':
  Metadata:
    encoder         : Lavf52.31.0
  Duration: 02:36:01.92, start: 0.000000, bitrate: 1091 kb/s
    Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 50 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 192 kb/s
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
[ac3 @ 02099020] channel_layout not specified
[ac3 @ 02099020] No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[mpegts @ 02099ae0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'C:\tmp\Serviio\transcoding-temp-169-MPEG2TS.stf':
  Metadata:
    encoder         : Lavf53.24.0
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 90k tbn, 25 tbc
    Stream #0:1: Audio: ac3, 48000 Hz, stereo, flt, 384 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (mp3 -> ac3)
Press [q] to stop, [?] for help
h264_mp4toannexb failed for stream 0, codec copy: Invalid argument
[mpegts @ 02099ae0] first pts value must set
av_interleaved_write_frame(): Operation not permitted


I tried to follow the advice that has been given in a Samsung related post: http://forum.serviio.org/viewtopic.php?f=7&t=4606 regarding adding "-fflags +genpts" to the ffmpeg command. If I use the the batch file in command prompt, the transcoding does start, nevertheless showing many "av_interleaved_write_frame(): Operation not permitted" errors. In the server, the batch file did not seem to work.

Has anybody any idea about how to make serviio play onlinetvrecorder's HQ/HD files on Sony Bravia

Many thanks,

Bredy67
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Feb 05, 2012 12:45 pm

Re: Sony Bravia KDL-40EX720 does not show HQ / HD otr-files

It looks like the original stream is not very much liked by FFmpeg. You could ask on FFmpeg mailing list.
<<

bredy67

Serviio newbie

Posts: 3

Joined: Fri Feb 03, 2012 11:08 am

Post Mon Feb 06, 2012 7:38 pm

Re: Sony Bravia KDL-40EX720 does not show HQ / HD otr-files

Hi zip,

many thanks for the fast response. I try to investigate into the ffmpeg error then.

Nevertheless I would like to thank you for the great software that serviio is.

I will post an answer if I find out how to fix the ffmpeg issue.

Best regards,

Bredy67
<<

bredy67

Serviio newbie

Posts: 3

Joined: Fri Feb 03, 2012 11:08 am

Post Mon Feb 06, 2012 10:13 pm

Re: Sony Bravia KDL-40EX720 does not show HQ / HD otr-files

Hi,

I further researched regarding the ffmpeg error. I found a hint that the proposed set up would need a re-encoding with libx264. I tried to adapt the ffmpeg command accordingly and it seemed to work:

  Code:
D:\Install\ffmpeg\ffmpeg-git-01fcbdf-win32-static\bin>ffmpeg -i d:\Movies\Cut\Der_Pate_Teil_III_11.04.25_01-50_kabel1_175_TVOON_DE.mpg.HQ.avi -y -async 1 -vcode
c libx264 -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 2 -map 0:0 -map 0:1  -sn -f mpegts C:\tmp\Serviio\transcoding-temp-169-MPEG2TS.stf
ffmpeg version N-37208-g01fcbdf Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan 27 2012 18:34:52 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 34.101 / 51. 34.101
  libavcodec     53. 60.100 / 53. 60.100
  libavformat    53. 31.100 / 53. 31.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 60.100 /  2. 60.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[avi @ 020F2320] max_analyze_duration 5000000 reached at 5016000
Input #0, avi, from 'd:\Movies\Cut\Der_Pate_Teil_III_11.04.25_01-50_kabel1_175_TVOON_DE.mpg.HQ.avi':
  Metadata:
    encoder         : Lavf52.31.0
  Duration: 02:36:01.92, start: 0.000000, bitrate: 1091 kb/s
    Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 50 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 192 kb/s
[buffer @ 02111EC0] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:64/45 sws_param:
Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
[libx264 @ 02750BA0] using SAR=64/45
[libx264 @ 02750BA0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 02750BA0] profile High, level 3.0
[ac3 @ 027108C0] channel_layout not specified
[ac3 @ 027108C0] No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[mpegts @ 020FF9A0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'C:\tmp\Serviio\transcoding-temp-169-MPEG2TS.stf':
  Metadata:
    encoder         : Lavf53.31.100
    Stream #0:0: Video: h264, yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=-1--1, 90k tbn, 25 tbc
    Stream #0:1: Audio: ac3, 48000 Hz, stereo, flt, 384 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (mp3 -> ac3)
Press [q] to stop, [?] for help
frame= 2763 fps=157 q=-1.0 Lsize=   13875kB time=00:01:50.44 bitrate=1029.2kbits/s
video:6947kB audio:5180kB global headers:0kB muxing overhead 14.413753%
[libx264 @ 02750BA0] frame I:14    Avg QP:16.11  size: 15819
[libx264 @ 02750BA0] frame P:1084  Avg QP:22.70  size:  4755
[libx264 @ 02750BA0] frame B:1665  Avg QP:26.53  size:  1044
[libx264 @ 02750BA0] consecutive B-frames: 12.1% 18.2% 13.4% 56.3%
[libx264 @ 02750BA0] mb I  I16..4: 50.6% 39.7%  9.7%
[libx264 @ 02750BA0] mb P  I16..4:  6.8%  5.3%  0.5%  P16..4: 31.5%  8.9%  3.8%  0.0%  0.0%    skip:43.1%
[libx264 @ 02750BA0] mb B  I16..4:  0.3%  0.3%  0.0%  B16..8: 23.8%  1.8%  0.2%  direct: 0.9%  skip:72.8%  L0:38.1% L1:56.8% BI: 5.1%
[libx264 @ 02750BA0] 8x8 transform intra:42.0% inter:79.7%
[libx264 @ 02750BA0] coded y,uvDC,uvAC intra: 29.2% 47.2% 10.1% inter: 8.2% 10.9% 0.3%
[libx264 @ 02750BA0] i16 v,h,dc,p: 42% 23% 14% 20%
[libx264 @ 02750BA0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 18% 37%  4%  4%  4%  4%  5%  5%
[libx264 @ 02750BA0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 18% 18%  5%  6%  6%  5%  7%  4%
[libx264 @ 02750BA0] i8c dc,h,v,p: 58% 20% 18%  4%
[libx264 @ 02750BA0] Weighted P-Frames: Y:10.2% UV:3.4%
[libx264 @ 02750BA0] ref P L0: 66.6% 12.4% 15.3%  5.6%  0.2%
[libx264 @ 02750BA0] ref B L0: 88.7% 10.3%  1.1%
[libx264 @ 02750BA0] ref B L1: 94.7%  5.3%
[libx264 @ 02750BA0] kb/s:514.94
Received signal 2: terminating.


The serviio provided ffmpeg.exe does not include libx264, but that is easily fixed by replacing the file in the lib folder.

My question is now: how can I teach serviio to use the above described ffmpeg command for me to check whether now it will work?

Best regards,

Bredy67
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Feb 07, 2012 11:29 am

Re: Sony Bravia KDL-40EX720 does not show HQ / HD otr-files

you can't

Return to Sony

Who is online

Users browsing this forum: No registered users and 47 guests

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