HydrogenAudio

Lossy Audio Compression => AAC => AAC - General => Topic started by: reardon on 2005-11-17 19:23:55

Title: itunesencode -r imagefile problem
Post by: reardon on 2005-11-17 19:23:55
I am using 4.6 with itunes 6.  The -r option doesn't seem to work.  I've tried with jpg and bmp files, with fully qualified path and without.

All other tags work properly.  And ideas?

+Reardon
Title: itunesencode -r imagefile problem
Post by: Otto42 on 2005-11-17 21:09:11
Quote
I am using 4.6 with itunes 6.  The -r option doesn't seem to work.  I've tried with jpg and bmp files, with fully qualified path and without.

All other tags work properly.  And ideas?

+Reardon
[a href="index.php?act=findpost&pid=342619"][{POST_SNAPBACK}][/a]

I think I've actually used that only once, when I first tested it. It worked then.

You should give it the full path, and if that path contains spaces, you should enclose the whole path+filename in quotes. Like itunesencode -r "c:\full path\file.jpg". Also, it probably only likes JPG or PNG files, dunno about BMP's.

And it may not work at all anymore. I'll try it when I get home.
Title: itunesencode -r imagefile problem
Post by: reardon on 2005-11-21 02:35:56
Quote
You should give it the full path, and if that path contains spaces, you should enclose the whole path+filename in quotes. Like itunesencode -r "c:\full path\file.jpg". Also, it probably only likes JPG or PNG files, dunno about BMP's.
[a href="index.php?act=findpost&pid=342646"][{POST_SNAPBACK}][/a]


Done.  Still no workie.
Title: itunesencode -r imagefile problem
Post by: Otto42 on 2005-11-21 05:57:27
I just tested it here. It worked perfectly. What's your exact command line?

I did something like this:
iTunesEncode.exe -i temp.wav -o temp.m4a -e "AAC Encoder" -r "c:\temp.jpg"

And the resulting file did indeed have the picture in it.
Title: itunesencode -r imagefile problem
Post by: reardon on 2005-12-03 01:14:35
Quote
I did something like this:
iTunesEncode.exe -i temp.wav -o temp.m4a -e "AAC Encoder" -r "c:\temp.jpg"

[a href="index.php?act=findpost&pid=343690"][{POST_SNAPBACK}][/a]


Precisely what I am doing.  Something is weird.  I am using iTunes 6.  Every other field is ok.

I will play with some more.
Title: itunesencode -r imagefile problem
Post by: bonestx on 2006-03-30 13:10:52
I'm having the same issue using:
iTunes 6.0.4.2
iTunesEncode.exe dated 2/16/2005 12:18am
FooBar v0.8.3

I've even tried moving the art file to a base directory and I still can't get it to showup in the encoded file. 

My Foobar encode command follows:
-e "AAC Encoder" -r "d:\folder.jpg" -a "%artist%" -l "%album%" -t "%title%" -g "%genre%" -y %date% -n %tracknumber% -i %s -o %d -d

Any suggestions are appreciated.
Title: itunesencode -r imagefile problem
Post by: Jebus on 2006-03-30 20:40:47
i know i just encountered a weirdness using the iTunes COM API... if a path contains a double-slash (\\) instead of a single slash anywhere, Windows has no problem with it, but iTunes will choke on it.

Don't know what else it has problems with... try putting the folder.jpg someplace else, and then try again? Is the file writeable?
Title: itunesencode -r imagefile problem
Post by: bonestx on 2006-03-31 01:35:38
Jebus, thanks for the suggestions.  I checked all of your suggestions.

I checked for \\ -- none
I tried moving the file to another root folder  -- still not the fix
I made sure the file was writeable.

I even tried a forward slash (/) in the directory.  I can drag the file into the iTunes art window and it is then associated with that file.
Title: itunesencode -r imagefile problem
Post by: Otto42 on 2006-03-31 09:19:36
I don't know what to tell you. I just tried my same test again, and it works perfectly. I'm using iTunes 6.0.4.2 and the last iTunesEncode from rarewares.org.

In other words, this
Code: [Select]
iTunesEncode.exe -i temp.wav -o temp.m4a -e "AAC Encoder" -r "c:\temp.jpg"

...works. I created the WAV file using Audacity, nothing particularly special about it. The temp.jpg was created using nothing more than paint to draw some crap and saving it as a jpg. The jpg dimensions was 300x300, which is what I usually use for most album art.

My only suggestion is to examine your jpg file more closely. Perhaps iTunes cannot read the file or doesn't like it for some reason. Make sure that it is actually a JPG and not a misnamed GIF or some such thing. The PNG format should also be acceptable by iTunes.
Title: itunesencode -r imagefile problem
Post by: bonestx on 2006-03-31 15:25:02
Otto, I'm converting from a FLAC file using FooBar 0.8.3 if that makes any difference.

The cover art is a pulled from Amazon.com, it states it is a JPG and Photoshop Elements and the Windows Picture Viewer agree.  I've dragged this file into the "Art Panel" in iTunes and it will associate it with the file at that point.

Any other suggestions?

Otto, I've used iTunesEncode a lot to convert my FLAC files to AAC.  It works really well, I was trying to start adding cover art to files.  Thanks for all your work Otto, too bad you lost the source.
Title: itunesencode -r imagefile problem
Post by: bonestx on 2006-04-01 17:10:53
Otto & Jebus I figured it out, thanks for your help you pushed me in the right direction!  And GREAT tool Otto!!!

I had to modify my foobar setup based on this thread:
http://www.hydrogenaudio.org/forums/index....topic=37920&hl= (http://www.hydrogenaudio.org/forums/index.php?showtopic=37920&hl=)

The big change was on the foobar "Commandline Encoder Settings" options page.  I had "tag" set to "default" I changed it to "none" and it WORKS!

Thanks again!
Title: itunesencode -r imagefile problem
Post by: reardon on 2006-06-03 18:58:37
I don't know what to tell you. I just tried my same test again, and it works perfectly. I'm using iTunes 6.0.4.2 and the last iTunesEncode from rarewares.org.

In other words, this
Code: [Select]
iTunesEncode.exe -i temp.wav -o temp.m4a -e "AAC Encoder" -r "c:\temp.jpg"

...works. I created the WAV file using Audacity, nothing particularly special about it. The temp.jpg was created using nothing more than paint to draw some crap and saving it as a jpg. The jpg dimensions was 300x300, which is what I usually use for most album art.

My only suggestion is to examine your jpg file more closely. Perhaps iTunes cannot read the file or doesn't like it for some reason. Make sure that it is actually a JPG and not a misnamed GIF or some such thing. The PNG format should also be acceptable by iTunes.


I finally figured out the problem.  For some reason the -r option requires a fully-qualified path.  Could you update so that relative paths work?

+Reardon
Title: itunesencode -r imagefile problem
Post by: Otto42 on 2006-06-04 04:04:07
Nope.  The source code was lost, and so there will be no further updates to iTunesEncode.
Title: itunesencode -r imagefile problem
Post by: reardon on 2006-06-06 20:53:19
Nope.  The source code was lost, and so there will be no further updates to iTunesEncode.


It's still a reasonably straightforward object tho, right?  Meaning one (me) could throw this together reasonably quickly in javascript or vbscript?

+Reardon
Title: itunesencode -r imagefile problem
Post by: mad6c on 2012-07-06 21:24:24
I know this is an old thread, but I was looking to do this and was able to accomplish it with itunesencode and EAC, taking advantage of the way I have EAC automatically organize my music at extraction time.

So I have a base folder I store all my music "c:\stuff\Music", then a folder for artist, then one for each album.  I used the command line option below. The %soemthing% are variables that EAC provides.

-r "c:\stuff\music\%artist%\%albumtitle%\folder.jpg"

As long as the file called folder.jpg is in the file it is automatically added to the tag.

Hope this helps everyone.