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:
Then I tried to run ffmpeg in the command prompt:
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
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