
Window Script to Convert MOV to MP4/MPEGīelow is the equivalent Windows BATCH script to convert all MOV in current folder and its sub directories into MP4/MPEG video using ffmpeg video/audio encoder/decoder tool. It also reports the remaining MOV files to convert for your convenience to track the progress. You can tailor it to your needs for example, naming the target MPG video file (currently adding a “.mpg” extension to the end of the original MOV file).


The go-to tool for converting anything, audio, or video, using CLI in a terminal on Linux is ffmpeg. The process() is a bash function to convert a MOV video file. 3.1 Batch converting a folder full of audio files. Also, after the original video is removed, you also have 5 seconds to Ctrl+C if you don’t want to continue. Here, in the script, a 5 second interval of sleep between finish of video conversion and removing the original video.

You can also run it at Window Subsystem for Linux (WSL).Ĭonverting may consume your CPU cycles and cause CPU spikes. name "*.mov" -type f -exec bash -c 'process ""' \ Ffmpeg -i "$mov" -vcodec h264 -acodec mp2 "$mov.mp4"Įcho "Waiting to delete the original file: $mov"Įcho Remaining MOV count = $(find.
