#!/usr/bin/perl # id-codec: Identify the codec used in a video file. # # Usage: id-codec *.avi # # Requires mplayer. # # --Kirsle # http://sh.kirsle.net/ use 5.16.0; use strict; use warnings; use Getopt::Long; use Term::ANSIColor; my $help; my $color = 1; GetOptions( 'color!' => \$color, 'help|h|?' => \$help, ); if ($help) { die "Usage: id-codec [--nocolor]