FLAC compression setting: %s -o %d does what? |
![]() ![]() |
FLAC compression setting: %s -o %d does what? |
Apr 5 2008, 00:36
Post
#1
|
|
|
Group: Members Posts: 4 Joined: 4-April 08 Member No.: 52550 |
I found this setting on the web, and wanted to know what the %s -o %d does? That is the letter o, not a zero.
-6 -V -T "ARTIST=%a" -T "TITLE=%t" -T "ALBUM=%g" -T "DATE=%y" -T "TRACKNUMBER=%n" -T "GENRE=%m" -T "COMMENT=%e" %s -o %d FYI I am using EAC. I found the FLAC site, but I still couldn't decipher what %s -o %d does. I am using this setting, and it does work, but I want to understand exactly what it is doing, especially since I haven't seen the %s -o %d in anyone else's setting. I have seen the %s %d without the -o. All I know is that "I think" it is talking about source file and destination file, but that doesn't explain a lot to me. Are they referring to the wav and FLAC files, and if so, what is it doing with them? As you might have guessed I am new to music grabbers, EAC, FLAC etc, so any help would be appreciated. Also, fyi, I have not been able to relocate the site I got the setting from. I don't think it explained the part in question. Thanks, from a new member. -Johnny |
|
|
|
Apr 5 2008, 01:24
Post
#2
|
|
![]() Group: Members Posts: 841 Joined: 21-December 01 From: New Zealand Member No.: 705 |
they are placeholders
%s means source file %d means destination file the -o means output file name. so if you were encoding the file called music.wav, the command line you posted would look like this -6 -V -T "ARTIST=%a" -T "TITLE=%t" -T "ALBUM=%g" -T "DATE=%y" -T "TRACKNUMBER=%n" -T "GENRE=%m" -T "COMMENT=%e" music.wav -o music.flac This post has been edited by A_Man_Eating_Duck: Apr 5 2008, 01:25 -------------------- Who are you and how did you get in here ?
I'm a locksmith, I'm a locksmith. |
|
|
|
Apr 5 2008, 02:13
Post
#3
|
|
|
Group: Members Posts: 4 Joined: 4-April 08 Member No.: 52550 |
So what is %s -o %d actually accomplishing? Is it needed? I really don't understand if it is serving a useful purpose or not. As I said, most settings that I have seen posted on the web do not include this. I have seen many that end in %s but only once did I see the ending of %s -o %d.
Thanks, Johnny |
|
|
|
Apr 5 2008, 05:04
Post
#4
|
|
![]() Group: Members Posts: 841 Joined: 21-December 01 From: New Zealand Member No.: 705 |
yes they are needed. It's there so EAC knows where it should put the source file name and destination file name in the command line for flac. if they aren't there, when flac tries to encode the file it has no idea what the file to be encoded is called or the name of the destination file.
-------------------- Who are you and how did you get in here ?
I'm a locksmith, I'm a locksmith. |
|
|
|
Apr 5 2008, 07:19
Post
#5
|
|
|
Group: Members Posts: 4 Joined: 4-April 08 Member No.: 52550 |
yes they are needed. It's there so EAC knows where it should put the source file name and destination file name in the command line for flac. if they aren't there, when flac tries to encode the file it has no idea what the file to be encoded is called or the name of the destination file. Thanks for your reply, I was just trying to figure out what the two different endings are doing differently. %s VS. %s -o %d Thanks again, Johnny |
|
|
|
Apr 5 2008, 09:30
Post
#6
|
|
![]() Group: Super Moderator Posts: 4887 Joined: 12-August 04 From: Exeter, UK Member No.: 16217 |
I was just trying to figure out what the two different endings are doing differently. %s represents the source WAVE, and %d represents the destination FLAC. So, with "%s" you specify the source only, and let FLAC automatically name the output ("<source>.wav" => "<source>.flac"). With "%s -o %d" you are specifying the source, and the destination filename: the "-o" switch tells FLAC that the next value is the desired output name.
%s VS. %s -o %d -------------------- I'm on a horse.
|
|
|
|
Apr 6 2008, 00:25
Post
#7
|
|
|
Group: Members Posts: 4 Joined: 4-April 08 Member No.: 52550 |
I was just trying to figure out what the two different endings are doing differently. %s represents the source WAVE, and %d represents the destination FLAC. So, with "%s" you specify the source only, and let FLAC automatically name the output ("<source>.wav" => "<source>.flac"). With "%s -o %d" you are specifying the source, and the destination filename: the "-o" switch tells FLAC that the next value is the desired output name.%s VS. %s -o %d Thanks to both of you for taking the time to explain this to me. I appreciate it! Have a nice day! -Johnny |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 23:16 |