I have loads of videos named different things and different extensions (some mp4 some wmv etc).
I would like to run the command below but on every video in a specific directory and then save that in another directory, no overwrites of original files.
Some videos maybe duplicates, if that happens it should pause the script. For example there maybe
video1.avi both can't be video1.mp4 in
/home/videos/processedso the script should pause.
ffmpeg -i '/home/videos/unprocessed/vidabc.mp4' -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac -movflags +faststart '/home/videos/processed/vidabc.mp4' ffmpeg -i '/home/videos/unprocessed/vidxyz.mp4' -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac -movflags +faststart '/home/videos/processed/vidxyz.mp4'