My folder has some video files with mp3 audio and some video files with aac audio. I want to move all files which have mp3 audio to another folder. When I asked my friend, he gave me this script:
#To convert mp3 audio to AAC for file in *; do if [ $file == "mp3ToAAC.sh" ]; then continue; fi if [ -f "$file" ]; then ffmpeg -i "$file" -acodec aac -vcodec copy ../"$file" fi done
That will convert all video files with audio mp3 to aac. Before using this, I want to move the files which have mp3 audio to another directory. I want to run this script only on those files. How to do that?
Read more here: Source link