This script scans directories for any video files with .avi, .mp4, or .mkv extentions, and then enodes them to a .mp4 format. It also cleans up the filename.
- PHP
- ffmpeg
- screen
- Change all directories to match yours.
- Start script with screen php encode.php
- Exit screen by pressing Ctrl ad