OK, did a quick web search and found a manual for your set. British, right? This is what they say is supported via DLNA:
Movie : MPEG-2 (PS format) / DivX Extension - ".mpg", ".mpeg", ".divx" or ".avi"
● Some MPEG-2 format may not be supported
So, MKV is not supported, MPEG2 is good, although there might be an issue with some (and they don't say why). So, you need everything transcoded to MPEG video. Your audio looks like it should be supported, as the manual says "You can enjoy the multi-channel sound via an amplifier connected to DIGITAL AUDIO OUT terminal".
So, for DLNA directly to the TV, I'd try the "Panasonic Viera E/S/ST/VT (2011)" profile in the Serviio console. Remember to hit the save button when you choose a different profile. This will transcode all MKV files to MPEG video and ac3 audio.
Now, for the Roku, this is what is in my profile. I thought it was the default, but maybe I've tweaked it and forgotten I did it. Anyway, I can play all my MKV files, regardless of HD or SD, and don't have any buffering issues. I remember that the profile originally used applehttp as the target container, and the Roku didn't seem to like that very well. Chaneru worked with it, and that's where the Roku profile started. I also notice the DTS audio line commented out, so maybe I did that as well. The Roku can pass AC-3 and DTS bitstream over HDMI. However, it's unlikely your TV can handle DTS, so that line should be uncommented. (A line in the profile file is commented out by putting <!-- where you want the comment to start and --> at the end)
Check this against your version of the Roku profile (note that this is only a portion of the complete profile. It is, however, the complete video transcoding portion). Remember that after making any changes to the profile file, you must restart the Serviio service (or simply reboot the computer). Hitting the stop button on the Console does not accomplish this.
- Code:
<Transcoding>
<Video targetContainer="mpegts" targetVCodec="h264" maxVBitrate="12000" targetACodec="ac3">
<!-- <Video targetContainer="applehttp" targetVCodec="h264" targetACodec="aac"> -->
<Matches container="asf" />
<Matches container="mpegvideo" />
<Matches container="mpeg" />
<Matches container="mpegts" />
<Matches container="matroska" />
<Matches container="avi" />
<Matches container="flv" />
<Matches container="wtv" />
<Matches container="ogg" />
<Matches container="3gp" />
<Matches container="rtp" />
<Matches container="rtsp" />
<Matches container="rm" />
</Video>
<Video targetContainer="mpegts" targetACodec="aac" aBitrate="320">
<!-- <Matches container="matroska" aCodec="dca" /> -->
<Matches container="matroska" aCodec="vorbis" />
<Matches container="ogg" vCodec="mpeg4" />
<Matches container="mp4" aCodec="lpcm" />
</Video>
<Video targetContainer="mpegts">
<Matches container="matroska" vCodec="h264" />
<Matches container="flv" vCodec="h264" />
</Video>
<Video targetContainer="asf" targetVCodec="wmv2" targetACodec="wmav2" maxVBitrate="15360" forceStereo="true">
<Matches container="*" vCodec="mpeg2video" />
<Matches container="*" vCodec="dvvideo" />
<Matches container="wtv" />
<Matches container="ogg" />
<Matches container="flv" />
<Matches container="rm" />
</Video>
<Audio targetContainer="mp3">
<Matches container="*" />
</Audio>
</Transcoding>
Dan
LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram
HOWTO: Enable debug logging HOWTO: Identify media file contents