Post Sat Dec 07, 2013 5:52 am

KDL-40EX521: transcoding of avi with mpeg4 is needed

Hello.

I own Sony Bravia KDL-40EX521 TV. It has PKG4.021EUA-0104 firmware version.
This TV is detected as sony2011 by Serviio.

I found that Serviio expects that the TV can play avi files with MPEG4 itself, but actually TV fails complaining that it does not support such stream.
The example ffmpeg's output:
  Code:
Input #0, avi, from '/media/sandra/rtorrent/download/movies/test.avi':
  Metadata:
    encoder         : VirtualDubMod 1.5.10.3 | www.virtualdub-fr.org || (build 2550/release)
  Duration: 02:31:19.00, start: 0.000000, bitrate: 2060 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 23.98 tbr, 23.98 tbn, 23.98 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), s16, 448 kb/s


I've patched profiles.xml to make Serviio force transcoding:
  Code:
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
             <Matches container="avi" vCodec="mpeg4" />
         </Video>

It actually works and TV now plays such videos.

I'm not sure if my transcoding configuration is efficient and provides the best quality.
Can you please advice if the above changes to profiles.xml can be optimized?

Also is it possible to include transcoding of such avis in the Serviio?