Profile Building
I turned on transcoding in an attempt to play an Xvid [AC3] and only the Xbox 360 profile would do anything helpful. The others resulted in an error saying that the file could not be played but the Xbox 360 profile did at least render the video, without sound.
I tried editing the Xbox 360 profile which made no difference whatsoever, but how could I be sure that my edits were processed...? So I took a copy of the profile code for the Xbox 360 and edited it. Changed the ID, Name and various parameters to hopefully have the transcoding produce something that would play on the phone, I was aiming for MP4, h264, MP3. I added the code as the last profile in profiles.xml [ie above the last "</Profiles>"], stopped and started the server and didn't see my new profile in place.

[Edit] I stopped and started the server in the console, not via services.msc, when I used services.msc the server just stopped again, so I know I must have made a programming error [/Edit]
I'm nothing even close to an XML programmer, nor am I that clued up about the video transcoding world [you can tell I'm sure] so I suspect I did something stupid. The code is below for you to "enjoy".
- Code:
<Profile id="HTC" name="HTC" extendsProfileId="1">
<ResourceTransportProtocolHandler>org.serviio.upnp.protocol.http.transport.XBox360ProtocolHandler</ResourceTransportProtocolHandler>
<ProtocolInfo>simple</ProtocolInfo>
<Detection>
<UPnPSearch>
<ModelName>HTC</ModelName>
</UPnPSearch>
</Detection>
<DeviceDescription>
<FriendlyName>Serviio ({computerName}): 2</FriendlyName>
<ModelName>Windows Media Player Sharing</ModelName>
<ModelNumber>12.0</ModelNumber>
</DeviceDescription>
<ContentDirectoryDefinitionFilter>org.serviio.upnp.service.contentdirectory.definition.XBox360ContentDirectoryDefinitionFilter</ContentDirectoryDefinitionFilter>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/avi">AVI</MediaFormatProfile>
<MediaFormatProfile mime-type="video/x-ms-wmv">VC1_ASF_AP_L1_WMA</MediaFormatProfile>
<MediaFormatProfile mime-type="video/x-ms-wmv">VC1_ASF_AP_L2_WMA</MediaFormatProfile>
<MediaFormatProfile mime-type="video/x-ms-wmv">VC1_ASF_AP_L3_WMA</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<Video targetContainer="mp4" targetVCodec="h264" targetACodec="mp3" maxVBitrate="15360" forceStereo="true">
<Matches container="matroska" />
<Matches container="mpeg" />
<Matches container="mpegts" />
<Matches container="mpegvideo" />
<Matches container="avi" vCodec="h264" />
<Matches container="avi" vCodec="msmpeg4" />
<Matches container="avi" vCodec="wmv2" />
<Matches container="avi" vCodec="dvvideo" />
<Matches container="mp4" vCodec="dvvideo" />
<Matches container="wtv" />
<Matches container="ogg" />
<Matches container="3gp" />
<Matches container="flv" />
<Matches container="rm" />
<Matches container="asf" vCodec="wmv2" aCodec="wmav2" />
</Video>
<Audio targetContainer="mp3">
<Matches container="flac" />
<Matches container="ogg" />
<Matches container="adts" />
<Matches container="mp4" /> <!-- iTunes store m4a files need to be transcoded to play -->
<Matches container="mp2" />
<Matches container="wavpack" />
<Matches container="mpc" />
<Matches container="ape" />
</Audio>
</Transcoding>
<OnlineTranscoding keepStreamOpen="false">
<Video targetContainer="mp4" targetVCodec="h264" targetACodec="mp3" maxVBitrate="15360" forceStereo="true">
<Matches container="*"/>
</Video>
</OnlineTranscoding>
<HardSubsTranscoding>
<Video targetContainer="mp4" targetVCodec="h264" targetACodec="mp3" maxVBitrate="15360" forceStereo="true"/>
</HardSubsTranscoding>
<LimitImageResolution>false</LimitImageResolution>
<ThumbnailsResolution>HD</ThumbnailsResolution>
</Profile>
If someone could help me with the profile to get the transcoding to work that would be great, and also to tell me how to correctly add a new profile into the list.
Thanks in advance.
Samsung UE48H6400, Sony BDP-S490, PlayStation 3, Xbox 360, Xbox One.