On this sample directory tree: $ tree Music I don't know what options you want to use for ffmpeg, but I provided an echo example of the input and output file paths that you can build from. If the files are only ever *.wav and *.WAV, you could skip the shopt nocaseglob and instead use for input in Music/**/*.wav Music/**/*.WAV. I am using Arch Linux x86_64 and I have ffmpeg as follows: ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developersĬonfiguration: -prefix=/usr -disable-debug -disable-static -disable-stripping -enable-avisynth -enable-avresample -enable-fontconfig -enable-gmp -enable-gnutls -enable-gpl -enable-ladspa -enable-libass -enable-libbluray -enable-libfreetype -enable-libfribidi -enable-libgsm -enable-libiec61883 -enable-libmodplug -enable-libmp3lame -enable-libopencore_amrnb -enable-libopencore_amrwb -enable-libopenjpeg -enable-libopus -enable-libpulse -enable-libsoxr -enable-libspeex -enable-libssh -enable-libtheora -enable-libv4l2 -enable-libvidstab -enable-libvorbis -enable-libvpx -enable-libwebp -enable-libx264 -enable-libx265 -enable-libxcb -enable-libxml2 -enable-libxvid -enable-shared -enable-version3 -enable-omxĪnother option would be to use bash's globbing to find the wav files, then shell parameter expansion features to change the directory structure and filenames: shopt -s globstar nocaseglobĮcho ffmpeg -i "$input" "$" The original wav files are in ~/Music and the output flac files could go into ~/Music_Flac. flac files to a different directory tree. WAV files (ideally case insensitive), convert them to. ![]() The solution needs to recurse through subdirectories to find. I would like to convert them to flac (which is also lossless, but has compression).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |