mp3 - Time length of an audio file from unix command line - Stack Overflow
You could use ffprobe, for example:

ffprobe -v quiet -show_entries format=duration sample.mp3

The output can be also in JSON format:

ffprobe -v quiet -print_format json -show_format sample.mp3

To extract only the duration using jq:

ffprobe -v quiet -print_format json -show_format sample.mp3 | jq '.[].duration'

Another tool is sox:

sox sample.mp3 -n stat

And probably the shortest one:

soxi -D sample.mp3
mp3  unix  linux 
5 weeks ago
Apprenticeship Patterns
When implementing the Breakable Toys pattern, make your systems relevant and useful to your life as an apprentice. For example, build your own wiki, calendar, or address book. Your solutions might be massively overengineered for the problem they’re solving, and probably could easily be replaced by something off the shelf. However, these projects are where you are allowed to fail. They’re the projects where you can try ideas and techniques that might lead to catastrophic failure. But the only one who can be hurt by their failure is you.
6 weeks ago
osx - error in dired sorting on OS X - Stack Overflow
I installed coreutils through Homebrew, and it apparently installs /usr/local/bin/gls. I ln -s'd this to /usr/local/bin/ls and then I didn't get the error in Emacs any more. – duma Feb 19 '13 at 15:19
osx  dired  emacs 
7 weeks ago
« earlier      
2008 2009 academia activism advertising advice amazon america apple arstechnica art article articles askmefi atheism audio awesome blog blogging blogs book books brain browser buddhism bush business career children chrome clojure code collaboration college comic comics communication community computer computers cool creativity culture data debate delicious design development diy download drupal ebooks economics economy education election emacs encryption english environment essay ethics exercise facebook favoritejot film finance firefox fitness food free freeware from:ifttt fun funny future games geek github google government gtd guide hacks happiness hardware health history howto humor ideas information innovation inspiration intelligence interesting internet interview iphone javascript journalism kids language law learning library life lifehack lifehacker lifehacks linux lisp literature logic luciddreaming mac macosx macswitch management marketing math mathematics mccain media meditation memory metafilter microsoft mind money movies music neuroscience news nytimes obama online opensource organization osx philosophy photography physics poetry politics presentation privacy productivity programming psychology python reading reference religion research resources school science search security selfimprovement seniorproject sjc social socialmedia society software sparknotes statistics stevepavlina teaching tech technology ted theatlantic tips tool tools toread travel trends tutorial tutorials twitter ubuntu unix usa usability video videos visualization war web web2.0 webdesign wiki wikipedia windows wired work writing xkcd youtube

Copy this bookmark:



description:


tags: