Giter Site home page Giter Site logo

av-length's Introduction

av-length โ€” command line tool to get the length of an A/V file

Usage

av-length [-types] <AV file path>

Examples

print the length of the audio file myfile.caf

./av-length myfile.caf

print the length of the video file myfile.m4v

./av-length myfile.m4v

print the file MIME types supported by av-length

./av-length -types

Behaviour

av-length will print to stdout the duration in seconds of the audio-visual file at the path specified by <AV file path>.

If the file is not a valid AV file, then 0.000000 will be printed.

If the argument -types is given, a list of supported file MIME types will be printed.

Current MIME types

At the time of writing, the supported file MIME types are as follows:

  • audio/aacp
  • video/3gpp2
  • audio/mpeg3
  • audio/mp3
  • video/x-m2ts
  • audio/x-caf
  • audio/mpeg
  • video/quicktime
  • audio/x-mpeg3
  • video/mp4
  • audio/wav
  • video/avi
  • audio/scpls
  • audio/mp4
  • audio/x-mpg
  • video/x-m4v
  • audio/x-wav
  • audio/x-aiff
  • video/x-mpeg
  • application/vnd.apple.mpegurl
  • video/3gpp
  • video/mpeg2
  • audio/x-mpeg
  • audio/wave
  • audio/x-m4r
  • audio/x-mp3
  • audio/AMR
  • video/x-mpg
  • audio/aiff
  • video/mpg
  • video/mpeg
  • audio/3gpp2
  • audio/aac
  • audio/mpg
  • audio/mpegurl
  • video/m2ts
  • audio/x-m4b
  • audio/x-scpls
  • application/mp4
  • audio/x-m4p
  • audio/x-mpegurl
  • video/x-mpeg2
  • audio/x-aac
  • audio/3gpp
  • application/x-mpegurl
  • audio/basic
  • audio/x-m4a

av-length's People

Watchers

Jamie Bullock avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.