Skip to content

A program for showing the duration of MPEG-4 files (i.e., mp4 and m4a).

License

Notifications You must be signed in to change notification settings

brothertoad/mp4duration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mp4duration

A command-line program for showing the duration of an MPEG-4 file. I have tested it with both .mp4 and .m4a files.

Normal output is of the form hh:mm:ss. If you specify the -m/--millis flag, you get hh:mm:ss.mmm (where mmm is millseconds). If you specify the -t/--total flag, you get the total, either in seconds (without the --millis flag) or milliseconds (with the --millis flag).

There are two other flags: -h/--no-filename and -H/--with-filename. These function as they do for the grep command. If you only specify one file, by default the filename is not printed. If you specify more than one file, by default the filenames are printed. Note that if both --no-filename and --with-filename are provided, the filenames are printed (not sure why you would do this, though).

About

A program for showing the duration of MPEG-4 files (i.e., mp4 and m4a).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages