I successfully got FAAD to stream to FLAC with the following settings.
This is using FAAD 2.5 and Flac 1.1.3 on Fedora RC4. 


[faad] -w -q -f 2 $FILE$ 2>/dev/null | [flac] -c --totally-silent
--compression-level-4 --force-raw-format --endian=little --sign=signed
--channels=2 --bps=16 --sample-rate=44100 -


There are two problems with the suggestions posted before. FAAD 2.5
(and probably 2.0) seems to have bug that does not write the WAV header
when directing the output to stdout. So you need to use the raw PCM
format output and tell FLAC this also. The only other change was
endian=little to make it work.

Also, I used compression level 4 rather than zero. In playing around,
level 4 seems to take about 30% more CPU time (which is still way
faster than real-time on my machine) than 0 and gives about 15% better
compression. Above 4, there was hardly any increase in compression with
a substantial increase in CPU usage.

Finally, here's how to get FAAD 2.5 compile under Linux:

http://www.audiocoding.com/modules/newbb/viewtopic.php?topic_id=504&forum=2

I attached the files that I changed... you should be able to just
extract the attached files over the "release" version of 2.5 to get it
to compile on Linux.


+-------------------------------------------------------------------+
|Filename: faad2-2.5-linux-fixes.tar.gz                             |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=2089|
+-------------------------------------------------------------------+

-- 
jamietre
------------------------------------------------------------------------
jamietre's Profile: http://forums.slimdevices.com/member.php?userid=8794
View this thread: http://forums.slimdevices.com/showthread.php?t=28691

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to