Transcoded AVI's look awful

Hi,
I have a panasonic vierra S60 (not the st60). This TV wont play AVI's i believe because every time I tried it would say "cannot read file". So I added the panasonic 2013 profile and was able to play avi files, transcoded, but they look awful. Its almost like theres a double image on top of eachother. The text looks all weird. Ive tried all the Vierra profiles and the same result.
Any idea what settings I should change? Do I need to up the bit rate? Ive attached a sample picture of the problem.
Heres the current profile Im using.
<Profile id="viera2013" name="Panasonic Viera (2013)" extendsProfileId="1">
<!-- Panasonic Viera ST60 (2013) -->
<Detection>
<UPnPSearch>
<FriendlyName>.*VIERA ST60.*</FriendlyName>
<Manufacturer>Panasonic</Manufacturer>
</UPnPSearch>
</Detection>
<ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PacketVideoDLNAMessageBuilder</ContentDirectoryMessageBuilder>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/divx">AVI</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<!-- Transcode h264 videos with profile level > 4.1 to mpegts with ac3 audio -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384" DAR="16:9" forceInheritance="true">
<Matches container="*" vCodec="h264" profile="high_10" />
<Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.1" />
<Matches container="*" vCodec="h263" />
</Video>
<!-- remux VORBIS/FLAC/LPCM in MKV/MP4 to AC3, all DTS to AC3 -->
<Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384" forceInheritance="true">
<!-- Some models support DTS natively, so the following line can be removed for those -->
<!-- Matches container="matroska" vCodec="h264" aCodec="dca" / --> <!-- Uncomment this line if DTS not supported natively -->
<Matches container="matroska" vCodec="h264" aCodec="flac" />
<Matches container="matroska" vCodec="h264" aCodec="vorbis" />
<Matches container="matroska" vCodec="h264" aCodec="truehd" />
<Matches container="mp4" vCodec="h264" aCodec="dca" /> <!-- E6 support??, remove this line -->
<Matches container="mp4" vCodec="h264" aCodec="lpcm" />
</Video>
<!-- Remux MPEG-TS with no transcoding -->
<Video targetContainer="mpegts" forceInheritance="true">
<!-- Matches container="avi" vCodec="h264" -->
<Matches container="wtv" />
</Video>
<!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384" DAR="16:9" forceInheritance="true">
<!-- DivX: the following two lines are required for models that do not support DivX: ST60 -->
<Matches container="avi" vCodec="mpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
<Matches container="avi" vCodec="msmpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
<Matches container="avi" vCodec="mpeg4" vFourCC="xvid" />
<Matches container="avi" vCodec="msmpeg4" vFourCC="xvid" />
<Matches container="mp4" vCodec="mjpeg" />
<Matches container="mp4" vCodec="dvvideo" />
<Matches container="mp4" vCodec="mpeg4" />
<Matches container="mpeg" vCodec="mpeg1video" />
<Matches container="matroska" vCodec="mpeg4" />
<Matches container="matroska" vCodec="vp8" />
<Matches container="asf" />
<Matches container="ogg" />
<Matches container="rm" />
</Video>
<!-- unsupported audio will be transcoded into lpcm audio -->
<Audio targetContainer="lpcm" forceInheritance="true">
<Matches container="ogg" />
<Matches container="asf" />
<Matches container="adts" />
<Matches container="wavpack" />
<Matches container="mpc" />
<Matches container="ape" />
</Audio>
</Transcoding>
<Subtitles>
<SoftSubs mime-type="text/srt" />
<HardSubs>
<RequiredFor container="mp4" />
</HardSubs>
</Subtitles>
<ThumbnailsResolution>HD</ThumbnailsResolution>
</Profile>
I have a panasonic vierra S60 (not the st60). This TV wont play AVI's i believe because every time I tried it would say "cannot read file". So I added the panasonic 2013 profile and was able to play avi files, transcoded, but they look awful. Its almost like theres a double image on top of eachother. The text looks all weird. Ive tried all the Vierra profiles and the same result.
Any idea what settings I should change? Do I need to up the bit rate? Ive attached a sample picture of the problem.
Heres the current profile Im using.
<Profile id="viera2013" name="Panasonic Viera (2013)" extendsProfileId="1">
<!-- Panasonic Viera ST60 (2013) -->
<Detection>
<UPnPSearch>
<FriendlyName>.*VIERA ST60.*</FriendlyName>
<Manufacturer>Panasonic</Manufacturer>
</UPnPSearch>
</Detection>
<ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PacketVideoDLNAMessageBuilder</ContentDirectoryMessageBuilder>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/divx">AVI</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<!-- Transcode h264 videos with profile level > 4.1 to mpegts with ac3 audio -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384" DAR="16:9" forceInheritance="true">
<Matches container="*" vCodec="h264" profile="high_10" />
<Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.1" />
<Matches container="*" vCodec="h263" />
</Video>
<!-- remux VORBIS/FLAC/LPCM in MKV/MP4 to AC3, all DTS to AC3 -->
<Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384" forceInheritance="true">
<!-- Some models support DTS natively, so the following line can be removed for those -->
<!-- Matches container="matroska" vCodec="h264" aCodec="dca" / --> <!-- Uncomment this line if DTS not supported natively -->
<Matches container="matroska" vCodec="h264" aCodec="flac" />
<Matches container="matroska" vCodec="h264" aCodec="vorbis" />
<Matches container="matroska" vCodec="h264" aCodec="truehd" />
<Matches container="mp4" vCodec="h264" aCodec="dca" /> <!-- E6 support??, remove this line -->
<Matches container="mp4" vCodec="h264" aCodec="lpcm" />
</Video>
<!-- Remux MPEG-TS with no transcoding -->
<Video targetContainer="mpegts" forceInheritance="true">
<!-- Matches container="avi" vCodec="h264" -->
<Matches container="wtv" />
</Video>
<!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384" DAR="16:9" forceInheritance="true">
<!-- DivX: the following two lines are required for models that do not support DivX: ST60 -->
<Matches container="avi" vCodec="mpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
<Matches container="avi" vCodec="msmpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
<Matches container="avi" vCodec="mpeg4" vFourCC="xvid" />
<Matches container="avi" vCodec="msmpeg4" vFourCC="xvid" />
<Matches container="mp4" vCodec="mjpeg" />
<Matches container="mp4" vCodec="dvvideo" />
<Matches container="mp4" vCodec="mpeg4" />
<Matches container="mpeg" vCodec="mpeg1video" />
<Matches container="matroska" vCodec="mpeg4" />
<Matches container="matroska" vCodec="vp8" />
<Matches container="asf" />
<Matches container="ogg" />
<Matches container="rm" />
</Video>
<!-- unsupported audio will be transcoded into lpcm audio -->
<Audio targetContainer="lpcm" forceInheritance="true">
<Matches container="ogg" />
<Matches container="asf" />
<Matches container="adts" />
<Matches container="wavpack" />
<Matches container="mpc" />
<Matches container="ape" />
</Audio>
</Transcoding>
<Subtitles>
<SoftSubs mime-type="text/srt" />
<HardSubs>
<RequiredFor container="mp4" />
</HardSubs>
</Subtitles>
<ThumbnailsResolution>HD</ThumbnailsResolution>
</Profile>