I don't know if you are part of the Serviio organisation...
Other than the developer, Petr (zip), everyone else on the forum is simply a user of the product (myself included). Users give of their time freely to try and assist other users.
jhb50 has pointed you to the guide. There are two main parts you need to look at:
- The <Matches ...> statement. This defines the container type, video codec, audio codec and some other selected parameters of the source file. For example the statement:
<Matches container="matroska" vCodec="h264" aCodec="ac3" />
will match any source files with a Matroska container type (.MKV file) with a video codec of AVC (H264) and an audio codec of Dolby Digital (AC3). When you attempt to play a file that matches these characteristics, Serviio will "match" it and perform the transcoding action that is listed in the <Video..> statement that precedes the matches command
- The <Video ...> statement/block. This defines the container type, video codec, audio codec and some other selected parameters that the source file will be transcoded to. For example the statement:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
will transcode the source file (matched via the Match statement) to a MPEG2-TS container type with a video codec of mpeg-2 and an audio codec of Dolby Digital (AC3) with a audio bitrate of 384 kbps.
You put these two parts together to provide a complete "transcoding block" - for example:
- Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="17000" targetACodec="ac3" aBitrate="384">
<Matches container="maktroska" vCodec="h264" aCodec="ac3"/>
</Video>
will match any maktroska (MKV) source file that contains H264 video and AC3 audio, and transcode it to a MPEG2-TS file with MPEG2 video and AC3 audio. It will limit the video bit rate to 17Mbps during transcoding.
The guide will give you all the supported parameters (supported container types, video codecs, audio codecs etc). What I think you may be missing is "what the hell do all these terms mean". What is a container, what is video codec, audio codec, etc. This is where the guide doesnt help you - but google does- some suggested reading for this is:
- https://www.youtube.com/watch?v=WpBjGUlBTHU - pretty good, but I don't necessary support his recommendation to use MP4 ... this depends on your renderer, but a good overview of containers, codecs, etc.
- http://www.fallenempiredigital.com/blog/2013/02/08/a-guide-to-common-video-formats-containers-compression-and-codecs/
- https://library.rice.edu/services/dmc/guides/video/VideoFormatsGuide.pdf
You can use tools like ffmpeg and MediaInfo (see
viewtopic.php?f=5&t=1123 - I prefer MediaInfo for this) which will provide you with the details of your video files (container type, codecs, etc) - as you can see, this information is critical to triggering transcoding through the <Matches..> command.
Even once you get your head around all of this, the last part is... video files ain't perfect. Some video encoders are better than others; some were freeware that was poorly written and caused issues. So you can end up with an AVI file for example that has all the characteristics and looks exactly the same as another AVI, and yet one will play and the other not. This is where the forum can assist - others will have had similar experiences and can help you. For example, looking at some of you other posts I think your AVI files may be able to fixed by remuxing them - there was a commonly encoder that caused some problems with AVI files (if you play the AVI on your TV via USB does it display the same problems ). To remux the file use the command:
ffmpeg -i filename.avi -c copy -map 0 newfilename.avi
and see if the new file is better.
Hope this long, long post helps your understanding. Once you get your head around it, its not too bad... and the forum users will fill in the gaps. Serviio is imho the best media server around, and has the flexibility to deal with 99% of the video variants out there (99% of all stats are made up

). I think this is why Sony recommend it....