http://www.twonkyforum.com/viewtopic.php?f=2&t=10667
This post is going to tell you exactly how to get transcoding to work for source format to mpeg format
If your device will play mpeg format, then this will work, if not,
then I say again transcoding doesnt work like it does in 6.x
wrote: 1. Place a copy of ffmpeg in the cgi-bin folder
note: doing this negates the need for a location file for ffmpeg
C:\Program Files\Twonky\TwonkyServer\cgi-bin\ffmpeg.exe
wrote: 2. Create a text description file for any media type to mpeg in the cgi-bin folder
C:\Program Files\Twonky\TwonkyServer\cgi-bin\ffmpeg-any-mpeg.desc
exec: ffmpeg -i $infile -vcodec mpeg2video $outfile
from=video/*
to=video/mpeg
asynchronous
wrote: 3. add an entry for MPEG,mpg,video/mpeg,MPEG_PS in the transcoding.db
note: make sure to place it below the existing one for MPEG like shown below
C:\Program Files\Twonky\TwonkyServer\resources\transcoding.db
# video: DLNA mandatory
PAL,mpg,video/mpeg,MPEG_PS_PAL,720,576
NTSC,mpg,video/mpeg,MPEG_PS_NTSC,720,480
MPEG,ts,video/vnd.dlna.mpeg-tts,MPEG_TS_HD_NA_MPEG1_L2_ISO
MPEG,mpg,video/mpeg,MPEG_PS
CIF15,mp4,video/mp4,AVC_MP4_BL_CIF15_AAC_520
MP4,mp4,video/mp4,AVC_MP4_BL_CIF15_AAC_520
WMV,wmv,video/x-ms-wmv,WMVMED_BASE
When doing any type of transcode testingwrote: 4. You shouldnt have to modify any existing device profile, but I would verify the devices settings
For Ex: The PS3 device profile says to transcode MKV and MOV to MPEG
note: MPEG is a reference to what was just defined in the transcode.db,
they had one for MPEG to .ts not but not to .mpg which was why it is was failing to transcode
C:\Program Files\Twonky\TwonkyServer\resources\devicedb\Sony\PS3.XML
<VideoTranscoding>
<Source>video/x-matroska</Source>
<Source>video/quicktime</Source>
<Target>MPEG</Target>
</VideoTranscoding>
always always always remeber to clear your cache, hence cache being cache
your results might not be accurate unless you clear the cache