/* BeejBlog */

Transcode MOV to MP4

Motivation:

Digital cameras and phones typically save video to MOV (Motion JPEG) files. I share my photos & videos via a self hosted open source photo gallery (zenPhoto). MOV files must be converted to a compatible format like MP4 to stream through the readily available web video players like Flowplayer.

Script features:

  • Handles multiple files at once… even from different folders when part of an explorer search result
  • Applies rotation where necessary.
  • Touches new file datestamp to be same as original.

Leverages 3rd party tools:

  • FileMenu Tools - handy for creating a FileExplorer right mouse context menu for executing transcode on selected files
  • HandBrake - read something that suggested HandBrake is faster than ffmpeg and that appears true on my quick comparison
  • MediaInfo - pulls the EXIF metadata to determine if any rotation is necessary

Install:

  1. save transcode.ps1 below into a known location
  2. install FileMenu Tools and disable all the commands you don’t want. Configure a “transcode” command as shown in screenshot below (of course edit your ps1 file path accordingly)
  3. install HandBrake and put HandBrakeCli in your path
  4. minimally, put MediaInfo.exe and MediaInfo.dll in your path

transcode.ps1


Example UI

enter image description here

FileMenu Tools Config

enter image description here