This is a command line Perl script I made a while back to simply show details about a specified video. It is tested on Ubuntu.
You can modify it for your specific requirements or grab some code for another use.
#!/usr/bin/perl -w use strict; use warnings; use IPC::Open3; # example my $filename = $ARGV[0]; [...]
