IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Transcode FLAC in Linux
torok
post Jun 26 2006, 01:16
Post #1





Group: Members
Posts: 391
Joined: 24-December 02
From: Eugene, OR
Member No.: 4224



Does anyone know a good way to do this? My encoder is a bash script, so it can't be a pipes thing. I need to have it go through a temp wav file. I used FooBar for this in Windows, of course, but I'm not sure how to go about it now. Thanks!


--------------------
http://www.pkulak.com
Go to the top of the page
+Quote Post
neomoe
post Jun 26 2006, 01:38
Post #2





Group: Members
Posts: 302
Joined: 18-June 03
From: Europe/Germ./MA
Member No.: 7255



QUOTE (torok @ Jun 25 2006, 16:16) *
Does anyone know a good way to do this? My encoder is a bash script, so it can't be a pipes thing. I need to have it go through a temp wav file. I used FooBar for this in Windows, of course, but I'm not sure how to go about it now. Thanks!



what do you mean with "your encoder is a script"? have you looked at the debian section of rarewares?


--------------------
[url="http://www.ergosum-apple.de"]www.ergosum-apple.de[/url]
Go to the top of the page
+Quote Post
Justin Ruggles
post Jun 26 2006, 04:53
Post #3





Group: Developer
Posts: 165
Joined: 3-June 06
From: Raleigh, NC
Member No.: 31393



QUOTE (torok @ Jun 25 2006, 18:16) *
Does anyone know a good way to do this? My encoder is a bash script, so it can't be a pipes thing. I need to have it go through a temp wav file. I used FooBar for this in Windows, of course, but I'm not sure how to go about it now. Thanks!


Well you haven't given a lot of information, but maybe you're thinking of something like the script below? Of course, you could replace encode="faac..." with the commandline encoder of your choice. Another alternative would be FFmpeg, which can decode FLAC and also encode ogg/vorbis, aac, mp3, ac3, and others.

CODE
#!/bin/bash

decode="flac -s -f -o test.wav -d"
encode="faac --mpeg-vers 4 test.wav -o"

mkfifo test.wav
${decode} $1 &
${encode} $1.aac

rm test.wav
Go to the top of the page
+Quote Post
torok
post Jun 26 2006, 07:17
Post #4





Group: Members
Posts: 391
Joined: 24-December 02
From: Eugene, OR
Member No.: 4224



QUOTE (neomoe @ Jun 25 2006, 17:38) *
what do you mean with "your encoder is a script"?



CODE
#!/bin/bash
wine neroAacEnc.exe -q .425 -if "$1" -of "$2"
wine neroAacTag.exe "Z:/$2" -meta:artist="$3" -meta:album="$4" -meta:title="$5" -meta:track="$6" -meta:year="$7"
aacgain -r -c "$2"


--------------------
http://www.pkulak.com
Go to the top of the page
+Quote Post
neomoe
post Jun 26 2006, 08:17
Post #5





Group: Members
Posts: 302
Joined: 18-June 03
From: Europe/Germ./MA
Member No.: 7255



QUOTE (torok @ Jun 25 2006, 22:17) *
QUOTE (neomoe @ Jun 25 2006, 17:38) *

what do you mean with "your encoder is a script"?



CODE
#!/bin/bash
wine neroAacEnc.exe -q .425 -if "$1" -of "$2"
wine neroAacTag.exe "Z:/$2" -meta:artist="$3" -meta:album="$4" -meta:title="$5" -meta:track="$6" -meta:year="$7"
aacgain -r -c "$2"



you use a commandline encoder. why do you need to have a temporary WAV-file? is piping impossible anyhow?


--------------------
[url="http://www.ergosum-apple.de"]www.ergosum-apple.de[/url]
Go to the top of the page
+Quote Post
iGold
post Jun 26 2006, 10:18
Post #6





Group: Members
Posts: 139
Joined: 23-December 05
Member No.: 26599



QUOTE (torok @ Jun 26 2006, 12:17) *
CODE
#!/bin/bash
wine neroAacEnc.exe -q .425 -if "$1" -of "$2"
wine neroAacTag.exe "Z:/$2" -meta:artist="$3" -meta:album="$4" -meta:title="$5" -meta:track="$6" -meta:year="$7"
aacgain -r -c "$2"

neroAacEnc.exe uses "-" for stdin, so just use "-" as "$1", like this:
CODE
flac -d -c file.flac | you_script - file.mp4 ...


This post has been edited by iGold: Jun 26 2006, 10:19
Go to the top of the page
+Quote Post
torok
post Jun 26 2006, 16:10
Post #7





Group: Members
Posts: 391
Joined: 24-December 02
From: Eugene, OR
Member No.: 4224



QUOTE (iGold @ Jun 26 2006, 02:18) *
neroAacEnc.exe uses "-" for stdin, so just use "-" as "$1", like this:
CODE
flac -d -c file.flac | you_script - file.mp4 ...


Ooo, that's good to know. Thanks!


--------------------
http://www.pkulak.com
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 31st October 2014 - 11:06