[AUDIO] m4a, flac, wav, wmv to mp3 Transcoding issue

Linux and UNIX specific discussions
Post Reply
Namevac
Posts:2
Joined:Tue Mar 01, 2011 2:32 pm
AV Hardware:Server
Linux ubuntu 10.10 32bits
with ffmpeg/flac/mpeg and all stuff to make the service twonkyserver working.
TwonkyServer v 6.0.31 RC6 (also tried the stable version)

Clients
Philips Streamium NP2500
NOXON iRadio
Pinacle (Roku) Soundbrigde Radio

3 pc under Windows 7

A mpeg2/mpeg4 TV receiver "NeufBox TV"
[AUDIO] m4a, flac, wav, wmv to mp3 Transcoding issue

Post by Namevac » Tue Mar 01, 2011 3:16 pm

Hello,
I'm having troubles to make transcoding to work in my linux (ubuntu 10.10 32bits) machine.

"mp3" available and checked in the Transcoding Administration Page.
Twonkyserver launched with -D option (to make it a daemon)

1) Here is my configuration :
Server
Linux ubuntu 10.10 32bits with ffmpeg/flac/mpeg and all stuff to make the service twonkyserver working.
TwonkyServer v 6.0.31 RC6

Clients
A mpeg2/mpeg4 TV receiver "NeufBox TV"
Philips Streamium NP2500
NOXON iRadio
Pinacle (Roku) Soundbrigde Radio
3 pc under Windows 7

My network showed by a windows 7 machine
http://www.imagup.com/data/1113653073.html

2) Installation of TwonkyServer :
Installed via the .zip file.
http://www.twonkyforum.com/downloads/6. ... 31-RC6.zip
I moved files to the /usr/local/twonkyserver directory
I created files to make the transcoding of m4a, wav, flac, wma working.

Here is the listing :
http://pastebin.com/83wMPCv8

I modified the directory link of convert.location , ffmpeg.location and flac.location
# cat *.location
/usr/bin
/usr/bin
/usr/bin

The file any2mp3 contains :
/usr/bin/ffmpeg -i "$1" -ab 160000 -ar 441000 "$2"
exit 0

Which have to encode incoming files to mp3 at 160kbps/44100Hz

And any2mp3 is launched by files
# ls *-mp3.desc
ffmpeg-mp4-mp3.desc ffmpeg-vorbis-mp3.desc ffmpeg-wma-mp3.desc
ffmpeg-ogg-mp3.desc ffmpeg-wav-mp3.desc

who contains :
# transcode audio (mp4, wav, wma to mp3)
#(c) 2008 by PacketVideo
#exec: any2mp3 "$infile" "$outfile" -br 128000 -sps 44100
exec: any2mp3 $infile $outfile
# capabilities
from=audio/x-ms-wma
to=audio/mpeg
asynchronous
priority=idle

with modifications in the MIME TYPE « from » to :
from=audio/vnd.wave
from=audio/x-ms-wma
from=audio/mp4
from=audio/ogg
from=audio/vorbis
from=audio/x-flac

3) The results
According to the server's logs, the transcoding is well executed.

ps aux | grep ffmpeg
shows me ffmpeg with good arguments (Transcoded files are stocked into special directory /media/nas/twonky/db/cache/foo/MP3/)

Ex :
root 2331 95.2 0.9 28252 10096 ? RN 14:45 0:32 /usr/bin/ffmpeg -i /media/nas/Musique/Portishead/Third/11 - Threads.m4a -ab 160000 -ar 441000 /media/nas/twonky/db/cache/4f46f78f04a369c7124a2c0014a9a1b1/MP3/11 - Threads.m4a.mp3

TwonkyServer's logs shows my player's calls (here, A serge Gainsbourg's song untitled "Melody" from the album "Histoire de Melody Nelson"
http://pastebin.com/9G9yJRTR

Links :
Image of the cache directory with transcoded mpeg4 successfully played from the file manager :
http://www.imagup.com/data/1113653205.html

Image of the Server Playlist with no mp3 files from mpeg4 albums
http://www.imagup.com/data/1113653277.html

(Is this normal? Maybe the transcoding process bypass the "mpeg4" extension on the fly? BTW it isn't woking into Windows Media Player client which doesn't support mpeg4 audio stream)

Any help appreciated ;)
Namevac

steven2583
Posts:8
Joined:Mon Mar 07, 2011 4:50 am
AV Hardware:QNAP TS-451+, OPPO 93 blue-ray player.

Re: [AUDIO] m4a, flac, wav, wmv to mp3 Transcoding issue

Post by steven2583 » Mon Mar 07, 2011 5:32 am

I'm having the same issue transcoding doesn't seem to work. Anyone got it working for Flac, or apple lossless? Started the Twonky.sh with the & and without no change. Another post mentioned about the -D but couldn't find it anywhere?

Has anyone got trancoding working on the 6.X TwonkyServer. I'm trying to transcode Flac and Apple Lossless to WAV or LPCM. It's just isn't working. I'm trying to use ffmpeg. I'm trying to use windows media player for testing and all that it get are X on the file and it tries to play but doesn't and skips to the next song in 2 seconds. I Don't want to install Flac codecs on the computer since I want to test out conversion to WAV or PCM. When I run ffmpeg manually it produces a file. How do I find out where TwonkyServer is writing the temporary file after ffmpeg begins transcoding and the Twonky begins to send it out. I'm not that concerned with flac but Apple lossless is what I really want transcoded to wav to send to my Oppo 93 blue-ray player. Any help would be appreciated. Twonky support wasn't much help. Just told me that transcoding in general is not supported.

Help please. I'm so frustrated. It seems simple enough.

Post Reply