#!/usr/local/bin/perl open(LS, "ls -1 *.mp4|"); while() { chomp; system("qt-faststart $_ temp.mp4 && mv temp.mp4 $_"); }