Page 1 of 1

Transcoding flac2wav

Posted: Fri Mar 11, 2011 4:41 pm
by dennis_k85
I av been trying to get transcoding to work on a 6.0.30 twonky server. I followed the directions:


* install flac : sudo apt-get install flac

* in /usr/local/twonkymedia/cgi-bin create file flac-wav.desc ( or edit it, if already in place) and make it in this way :

Code: Select all
# transcode audio
#(c) 2008 by PacketVideo
exec: flac2wav $infile $outfile
# capabilities
from=audio/x-flac
to=audio/x-wav
synchronous
priority=idle



note that I made it "sync" and not "async", otherwise when you first select the flac, if not in cache, you must
exit from ps3 browser and select same flac again.
On the other hand is better to have a speedy pc :)

* in /usr/local/twonkymedia/cgi-bin create file flac2wav

Code: Select all
#!/bin/bash
/usr/bin/flac --silent --decode "$1" -o "$2"



* make flac2wav executable
sudo chmod +x /usr/local/twonkymedia/cgi-bin/flac2wav

* restart tms


But no matter what I do I can not get twonky to transcode. Am I missing something?

Re: Transcoding flac2wav

Posted: Fri Mar 11, 2011 5:19 pm
by phibertron
did you edit the flac.location for the flac executabkle ?

did you edit the ps3 profile in the clients.db to tell it to transcode flac?

I think the following is how to do it, but not exactly sure if this is correct

// MT MIMETYPE conversion - client needs alternative mime type for given file extension (case insensitive)
// TR support for this transcoded formats
// TP <target name>,<extra parameters> add extra parameters to transcoder

NA:PS3
HH:PLAYSTATION
DB:FIX
XM:DLNA10
XM:DATETIME
XM:NOEMBEDDEDALBUMART
XM:NOBYTES_IN_TIMESEEK_RESPONSE
DL:MP4DLNA
HP:chunked
HP:1.0PROXYRESPONSE
TR:MPEG,JPEGORG,MP4,FLAC
MT:mpeg,mpeg2,vdr,spts,tp,ts,mpg,mpg-tts video/mpeg
MT:m4a audio/mp4
MT:avi,divx video/avi
MT flac audio/flac
TP FLAC
TP:MP4,-suppress_amr -add_isom -update_stss
MT:3gp not-supported

Re: Transcoding flac2wav

Posted: Fri Mar 11, 2011 10:40 pm
by phibertron
I noticed you are using version 6.0.30
in the revsion history for 6.0.31

http://twonkyforum.com/viewtopic.php?f= ... 702#p34696

it says this

-fixed: Disabling a content type in client adaptation (e.g. "MT:flac not-supported") disables also transcoding from that mime type


Not sure if it is connected or not,

Re: Transcoding flac2wav

Posted: Sun Mar 13, 2011 7:17 pm
by phibertron
I think that may have to edit the transcoding.db

From this post

http://twonkyforum.com/viewtopic.php?f= ... ure#p33582

There is a link to this document

http://www.dbstalk.com/attachment.php?a ... 1208634481

The document does help clear a few things up, I havent gone down the path yet
But it may be of some use to you