Transcode FLAC in Linux |
![]() ![]() |
Transcode FLAC in Linux |
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
|
|
|
|
Jun 26 2006, 01:38
Post
#2
|
|
![]() Group: Members Posts: 302 Joined: 18-June 03 From: Europe/Germ./MA Member No.: 7255 |
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? |
|
|
|
Jun 26 2006, 04:53
Post
#3
|
|
|
Group: Developer Posts: 165 Joined: 3-June 06 From: Raleigh, NC Member No.: 31393 |
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 |
|
|
|
Jun 26 2006, 07:17
Post
#4
|
|
|
Group: Members Posts: 391 Joined: 24-December 02 From: Eugene, OR Member No.: 4224 |
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
|
|
|
|
Jun 26 2006, 08:17
Post
#5
|
|
![]() Group: Members Posts: 302 Joined: 18-June 03 From: Europe/Germ./MA Member No.: 7255 |
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? |
|
|
|
Jun 26 2006, 10:18
Post
#6
|
|
![]() Group: Members Posts: 139 Joined: 23-December 05 Member No.: 26599 |
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 |
|
|
|
Jun 26 2006, 16:10
Post
#7
|
|
|
Group: Members Posts: 391 Joined: 24-December 02 From: Eugene, OR Member No.: 4224 |
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
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 22nd May 2013 - 23:27 |