FFmpeg Batch Transcode Audio
Recently I have been dealing with transcoding media files for my streaming site travisflix and performing ad-hoc media conversions is no longer realistic. I strongly recommend checking out my FFmpeg Examples to give you a head start if you’re not familiar with deep diving in FFmpeg details. Before you choose to batch transcode the audio for your entire library, the following will stdout anything not using the AAC codec: find . -mount -depth -maxdepth 2 -regextype posix-extended -regex ‘.*mkv$|.*mp4$’ -type f -exec bash -c ‘echo “{}” $(ffprobe -loglevel error -select_streams a:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 “{}”)’ 2>/dev/null \; | grep