Transcoding flac2wav

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
dennis_k85
Posts: 3
Joined: Mon Jul 05, 2010 8:04 pm
AV Hardware: PSAudio DAC

Transcoding flac2wav

Post by dennis_k85 » Fri Mar 11, 2011 4:41 pm

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?

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Transcoding flac2wav

Post by phibertron » Fri Mar 11, 2011 5:19 pm

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
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Transcoding flac2wav

Post by phibertron » Fri Mar 11, 2011 10:40 pm

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,
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Transcoding flac2wav

Post by phibertron » Sun Mar 13, 2011 7:17 pm

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
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

Locked