[nzlug] Video files

Daniel Pittman daniel at rimspace.net
Wed Jun 6 02:17:05 NZST 2007


Nevyn <nevynh at gmail.com> writes:

> I've been encoding avi files into mpegs suitable for dvd's of late.
> It's all terribly repetitive and so I thought a bash script might be
> able to sort out the task for me. I can't seem to find a command line
> application that can report back the aspect ratio of a avi file. Does
> anyone know of a command that can do this?

mplayer has an appropriate mode, designed for shell parsing.

ffmpeg, as noted by another correspondent, can output this.

The file command will output the size from the AVI header.  

transcode includes tools that can report this.

Regards,
        Daniel
-- 
Digital Infrastructure Solutions -- making IT simple, stable and secure
Phone: 0401 155 707        email: contact at digital-infrastructure.com.au
                 http://digital-infrastructure.com.au/



More information about the NZLUG mailing list