Transcoding in TwonkyServer 8

General discussion about the media server. Feature requests. Hints, tips and tricks.
Post Reply
Stippos
Posts: 2
Joined: Tue Mar 03, 2015 7:20 pm
AV Hardware: Linkstation GL

Transcoding in TwonkyServer 8

Post by Stippos » Tue Mar 03, 2015 7:38 pm

Hi community,

already for a couple of days I am trying to get transcoding in TwonkyServer 8 working. And I got a couple of questions I hope you answer.
By the way: I tried to use the search function but every single term I tried, the board replied with "the term is too common". Maybe some admin could fix that...

Situation:
-Windows 8 PC with installed Twonky 8.
-Grundig 50 VLE 921 BL smart TV. (Friendly name: Inter@ctive)
The handbook says that the TV supports the following formats for DLNA:
Video: MPEG_PS_NTSC, MPEG_PS_PAL, MPEG_TS_SD_EU, MPEG_TS_EU_ISO
Audio: AAC_ADTS_320, LPCM, MP3
Pictures: JPEG_LRG, JPEG_MED, JPEG_SM

Problem:
I tried to stream a .mkv file to the TV.
FFMPEG tells me about the file: Video: h264, Audio: DTS
When I stream the file, video is fine but there is no audio.

Here is what I tried to do:
First I created a Grundig_Interactive.xml with the following content and put in the resources/devicedb/Grundig folder.

<Client>
<DeviceId>
<DisplayName>Grundig Inter@ctive</DisplayName>
<HttpRecognition>
<HttpText>AwoX/1.1 UPnP/1.0</HttpText>
</HttpRecognition>
</DeviceId>
<Capabilities>
<SupportedMediaProfiles>
<Profile>MPEG</Profile>
</SupportedMediaProfiles>
<VideoTranscoding>
<Source>video/x-matroska</Source>
<Source>video/quicktime</Source>
<Source>video/x-ms-dvr</Source>
<Source>video/x-ms-wtv</Source>
<Source>video/flv</Source>
<Source>video/webm</Source>
<Source>video/x-msvideo</Source>
<Source>video/mp4</Source>
<Source>video/3gpp</Source>
<Source>video/mpeg</Source>
<Source>video/mpeg2</Source>
<Target>MPEG</Target>
</VideoTranscoding>
</Capabilities>
<Adaptations>
<DLNA>
<Version>DLNA15</Version>
</DLNA>
</Adaptations>
</Client>

The TV is detected like that even though there are now two entries in the device list but both with the same name.

The Questions:
1. In Twonky versions before 7 there seemed to be a ffmpeg.location file in cgi-bin to specify the ffmpeg location. Is this file still needed or where should I put the ffmpeg.exe?
2. In cgi-bin there is already a ffmpeg-m4v-mpeg.desc so I don't need to do there anything, right?
3. Is my .xml file correct? So twonky knows that it has to transcode my example movie when I start streaming it?


I really hope you can help me get this running and I am sure that this will help other people, too.

Many thanks,
Stip

User avatar
twonky-reinhard
Lynx Technology Staff
Posts: 1
Joined: Fri Mar 13, 2015 3:19 pm
AV Hardware: all :-)

Re: Transcoding in TwonkyServer 8

Post by twonky-reinhard » Fri Mar 13, 2015 3:48 pm

Hi,

1. You can still add cgi-bin\ffmpeg.location containing the path to directory where the ffmpeg.exe binary is located, e.g. c:\Programs\ffmpeg\
2. Yes, all the *.desc files should still work, you may also improve it at you own risk :-)
3. the XML below will transcode all MKV file to MPEG and give only that MPEG URL to the TV.
I am not sure about the HttpText, since I don't have the device. It should be part of the User-Agent of the GET requests from the TV, here: "AwoX/1.1 UPnP/1.0"

Best Regards,
Reinhard

<Client>
<DeviceId>
<DisplayName>Grundig Inter@ctive</DisplayName>
<HttpRecognition>
<HttpText>AwoX/1.1 UPnP/1.0</HttpText>
</HttpRecognition>
<MappingUpdatePolicy>FIX</MappingUpdatePolicy>
</DeviceId>
<Capabilities>
<VideoTranscoding>
<Source>video/x-matroska</Source>
<Target>MPEG</Target>
</VideoTranscoding>
</Capabilities>
<Adaptations>
<MimeTranslations>
<MimeTypeSuppress>video/x-matroska</MimeTypeSuppress>
</MimeTranslations>
<DLNA>
<Version>DLNA15</Version>
</DLNA>
</Adaptations>
</Client>

Post Reply