[SOLVED] what's a quick way to convert many audio files to an iPod format?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
what's a quick way to convert many audio files to an iPod format?
I need to convert some MP3s to one of the native iPod formats. I know perfectly well that iPod is supposed to read MP3, but the recipient claimed the files were the wrong format (mistakenly, if my information was correct). Rather than debating it, I chose to take the flash drive back and convert the MP3s on it to one of the more recognizably iPod formats. (I think for me to do a little more computer work is, honestly, potentially easier than trying to convince a busy professional her facts might be incorrect. It was a nurse, a unit manager in a care center with more pressing things to do.)
I know perfectly well how to convert one file from one audio format to another: open it in Audacity and export it in the new format. But I forgot to consider that there are 60-80 MP3s on this flash drive; this is going to take a while if I do the above. So (after some research) I opened Winff and tried to convert the entire batch with Ffmpeg; but it doesn't appear to have anything I recognize as a native iPod format. I see two "Ac3 DVD" formats, MP3, Mpeg4, OGG, WAV, and WMA.
What else can I use to convert all the files? Or can I download anything to add iPod formats to what ffmpeg offers? I could go back to Audacity and zap them one by one if I have to, but it would be nice to avoid it...
Last edited by newbiesforever; 03-02-2018 at 01:03 PM.
SoundConverter might be worth looking into.
just changing the extension might work, I'd have to check that one myself. I just resample mine mp3 and flac down to a 128 mp3's. Using flac and lame.
I just did that test , re-sample from mp3 to m4a and it played on kplay, eine, amarok,
this is my elaborate script I use. of course you can pull out the lame command line and set it up to work on the cli too. depending on what and where you want to put your files and such.
it separates the one with and without meta tags so I can fix that too and can or cannot save the originals depending on how I mod it. Using process of elimination logic.
Code:
#!/bin/bash
working_dir=/home/userx/m4as
move_to=/home/userx/m4as
script_dir=/home/userx/scripts
no_tags=/media/data/music_no_tags
orginals=/media/data/orginal_music
while read FILE ; do
c=$FILE
xpath=${c%/*}
xbase=${c##*/}
xfext=${xbase##*.}
xpref=${xbase%.*}
path=${xpath}
pref=${xpref}
ext=${xfext}
# set file name and extension
newFile="$pref"."m4a"
#removes and replaces leaving the band directroy and its subdirectories
#to put the resmaped music into
NoTags=${path/$working_dir/$no_tags}
keep_orginals=${path/$working_dir/$orginals}
bitrate="$(exiftool -p '$AudioBitrate' "$FILE")"
#strips kpbs
bitrate=${bitrate% *}
echo "$bitrate"
# set check bitrate values low / high
rate2l=128
rate2h=128
artist="$(exiftool -p '$Artist' "$FILE")"
album="$(exiftool -p '$Album' "$FILE")"
title="$(exiftool -p '$Title' "$FILE")"
genre="$(exiftool -p '$Genre' "$FILE")"
##############################################################
# Resampling with LAME 99.9.5
# if MP3 is out of limits then re-sample it if not then send it through
# skip resampling saves time
###
# flac -cd "$f" | lame -b 320 - "${f%.*}".mp3
if [[ "${ext}" == 'flac' ]] ; then
{
echo "got Dflack file $ext"
flac -cd "$FILE" | lame -V2 -b 128 -F --vbr-new -m j -q 2 - "$newFile"
#rm -v "$FILE"
mid3v2 -a "$artist" "$script_dir"/"$newFile"
mid3v2 -A "$album" "$script_dir"/"$newFile"
mid3v2 -t "$title" "$script_dir"/"$newFile"
mid3v2 -g "$genre" "$script_dir"/"$newFile"
if [[ -n "$artist" && -n "$album" ]] ; then
{
NewPath2="$move_to"/"$artist"/"$album"
mkdir -p "$NewPath2"
mv -vf "$script_dir"/"$newFile" "$NewPath2"
# echo;echo "moving orginal"
# mkdir -pv "$keep_orginals"
# rm -vf "$FILE"
# echo;echo "orginal moved"
}
else
{
mkdir -p "$NoTags"
mv -vf "$script_dir"/"$newFile" "$NoTags"
# echo;echo "moving orginal"
# mkdir -pv "$keep_orginals"
# rm -vf "$FILE"
# echo;echo "orginal moved"
}
fi
} # if start bitrate < 128 or start bitrate > 160 then resample
elif [[ "${bitrate%.*}" -gt "${rate2h}" ]] ; then
{
lame -V2 -b 128 -F --vbr-new -m j -q 2 "$FILE" "$newFile"
mid3v2 -a "$artist" "$script_dir"/"$newFile"
mid3v2 -A "$album" "$script_dir"/"$newFile"
mid3v2 -t "$title" "$script_dir"/"$newFile"
mid3v2 -g "$genre" "$script_dir"/"$newFile"
if [[ -n "$artist" && -n "$album" ]] ; then
{
NewPath2="$move_to"/"$artist"/"$album"
mkdir -p "$NewPath2"
mv -vf "$script_dir"/"$newFile" "$NewPath2"
# echo;echo "moving orginal"
# mkdir -pv "$keep_orginals"
# rm -vf "$FILE"
# echo;echo "orginal moved"
}
else
{
mkdir -p "$NoTags"
mv -vf "$script_dir"/"$newFile" "$NoTags"
# echo;echo "moving orginal"
# mkdir -pv "$keep_orginals"
# rm -vf "$FILE"
# echo;echo "orginal moved"
}
fi
}
elif [[ -n "$artist" && -n "$album" ]] ; then
{
NewPath2="$move_to"/"$artist"/"$album"
echo "$NewPath2 =>"
mkdir -p "$NewPath2"
cp -vf "$FILE" "$NewPath2"
}
else
{
mkdir -p "$NoTags"
mv -vf "$script_dir"/"$newFile" "$NoTags"
echo;echo "moving orginal"
# mkdir -pv "$keep_orginals"
# rm -vf "$FILE"
# echo;echo "orginal moved"
}
fi
#done <<<"$(find "$working_dir" "$working_dir2" -type f -name "*.mp3" -o -name "*.Mp3" -o -name "*.MP3" -o -name "*.flac" )"
done <<<"$(find "$working_dir" -not \( -path /media/data/downloads -prune \) -type f -name "*.mp3" -o -name "*.Mp3" -o -name "*.MP3" -o -name "*.flac" )"
"Apple recommends using the following file formats for iPod and iTunes content:
• AAC (Advanced Audio Coding) for audio content
AAC is a state-of-the-art, open (not proprietary) format. It is the audio format of choice for Internet, wireless, and digital broadcast arenas. AAC provides audio encoding that compresses much more efficiently than older formats, yet delivers quality rivaling that of uncompressed CD audio.
[1]
Last edited by Habitual; 03-02-2018 at 11:37 AM.
Reason: cuz I care
"Apple recommends using the following file formats for iPod and iTunes content:
• AAC (Advanced Audio Coding) for audio content
AAC is a state-of-the-art, open (not proprietary) format. It is the audio format of choice for Internet, wireless, and digital broadcast arenas. AAC provides audio encoding that compresses much more efficiently than older formats, yet delivers quality rivaling that of uncompressed CD audio.
[1]
Audacity has it available, but only to convert one file at a time.
Last edited by newbiesforever; 03-02-2018 at 12:44 PM.
I think I unexpectedly found the answer. I saw that the website www.cloudconvert.com can convert MP4 to m4a. I thought the MPEG4 Audio that WinFF could convert to would be MP4, so I had Winff started converting all these MP3s to Mpeg4, and I see I was wrong. They're all converting from MP3 to M4A, not MP4. That was not obvious.
But as indicated in that screenshot, Audacity says M4A is AAC. I wish Winff would have made that clear. So I guess this should work. I don't own an iPod myself to observe the results with; but if iPod is known to read AAC/M4A, well then...
Last edited by newbiesforever; 03-02-2018 at 01:01 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.