IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
FLAC compression setting: %s -o %d does what?
Johnny Muzak
post 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
Go to the top of the page
+Quote Post
A_Man_Eating_Duc...
post Apr 5 2008, 01:24
Post #2





Group: Members
Posts: 930
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.
Go to the top of the page
+Quote Post
Johnny Muzak
post 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
Go to the top of the page
+Quote Post
A_Man_Eating_Duc...
post Apr 5 2008, 05:04
Post #4





Group: Members
Posts: 930
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.
Go to the top of the page
+Quote Post
Johnny Muzak
post Apr 5 2008, 07:19
Post #5





Group: Members
Posts: 4
Joined: 4-April 08
Member No.: 52550



QUOTE (A_Man_Eating_Duck @ Apr 4 2008, 23:04) *
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
Go to the top of the page
+Quote Post
Synthetic Soul
post Apr 5 2008, 09:30
Post #6





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



QUOTE (Johnny Muzak @ Apr 5 2008, 07:19) *
I was just trying to figure out what the two different endings are doing differently.
%s VS. %s -o %d
%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.


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
Johnny Muzak
post Apr 6 2008, 00:25
Post #7





Group: Members
Posts: 4
Joined: 4-April 08
Member No.: 52550



QUOTE (Synthetic Soul @ Apr 5 2008, 03:30) *
QUOTE (Johnny Muzak @ Apr 5 2008, 07:19) *
I was just trying to figure out what the two different endings are doing differently.
%s VS. %s -o %d
%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.



Thanks to both of you for taking the time to explain this to me. I appreciate it!

Have a nice day!

-Johnny
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: 22nd August 2014 - 17:22