Help - Search - Members - Calendar
Full Version: clienc parameter for input file directory?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
cwinson
Is it possible to pass the directory of the input file (not temp file) as a parameter in clienc config string?

The problem I have is as follows:

I have a directory structure full of tagged flac files:

M:\FLAC\<artist>\<album>\xx - title.flac

with a folder.jpg file in each directory for artwork.

I am trying to use clienc and iTunesEncode to create fully tagged AAC files (including artwork) under

M:\AAC\<artist>\<album>\xx - title.flac

Everything is working as hoped, apart from I cannot point iTunesEncode to the correct folder.jpg file for inclusion in the tags

It looks as though clienc provides %d (destination file) and %s (source file), however, %s is the temporary wav file which is based in the target directory.

I was hoping to use '-r %s/../folder.jpg' in the config string, but it doesn't work as I'd hoped.

Any help would be much appreciated
cwinson
I have also tried using the following metadata tags, but they all seem to return null strings when used in clienc config string:

%path%
%_path%
%directoryname%
%_directoryname%

Any guidance would be much appreciated
Synthetic Soul
I have a feeling that you can't use functions in the command line - only tags may be used (e.g.: %artist%).

I'm not sure whether this is the same for 0.9.
kjoonlee
Functions definitely don't work with 0.9. Tag field names still work, though.

I'd suggest tagging the files with temporary tags, and using them instead.

For example, with TEMPTAG=12345:

oggenc -Q -s %temptag% - -o %d should work.
kockroach
QUOTE(cwinson @ Nov 4 2005, 03:06 AM)
I have also tried using the following metadata tags, but they all seem to return null strings when used in clienc config string:

%path%
%_path%
%directoryname%
%_directoryname%

Any guidance would be much appreciated
*



In which part of the diskwriter are you trying to use these? The command line parameters for the encoder, or in the output filename formatting?
cwinson
QUOTE(kockroach @ Nov 4 2005, 03:08 PM)
In which part of the diskwriter are you trying to use these?  The command line parameters for the encoder, or in the output filename formatting?
*



I am using them in 'Parameters' configuration within clienc config. The help text suggests that the following should be available:

%d = output file name
%s = temporary input file
%field% = any metadata field

The tags (metadata field) for %artist%, %album% etc. work fine, however the metadata relating to the filename or directory (i.e. %path%, %directoryname%) do not seem to be available

In setup, both %s and %d point to files in the destination directory, not the source directory where the artwork file is.


cwinson
QUOTE(kjoonlee @ Nov 4 2005, 02:52 PM)
Functions definitely don't work with 0.9. Tag field names still work, though.

I'd suggest tagging the files with temporary tags, and using them instead.

For example, with TEMPTAG=12345:

oggenc -Q -s %temptag% - -o %d  should work.
*



I will give this a try - thanks for the advice
kjoonlee
Just in case someone asks, I did not try %_path% or anything similar. I just tried $upper(aaa) and %temptag%.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.