Audio Processing Tool Command Line To Extract Play Length?
Does any know of a command line tool to extract the play length of many different audio file formats? I have tried sox, using the following command.
sox a2.wav -n stat But it does not support the following formats. .acc, wma I thought mplayer might be able to do it but I am unsure and can't find how this might be done. Thanks |
mplayer does play the multimedia files well through command-line, but I doubt it could be used to just extract & display the media information of a file (metadata).
|
Have you check for whether sox's media support could be extended using some plugins or something?
|
this will show you the length in seconds of any media file
Code:
mplayer -vo null -ao null -frames 0 -identify yourmediafile 2>/dev/null | grep ID_LENGTH | awk -F= '{print $2}' |
anurag_bhd, the closes I can get to this is to install this package "libsox-fmt-all". After reading http://sox.sourceforge.net/soxformat.html it seems like the files format are not supported. If there is another way to "extended using some plugins" I am not sure.
|
almatic, wow thanks that was amazing and what I thought was possible.
Thanks, much |
almatic, I receive this as the output for my .aac file. The "ID_LENGTH" is not true it is longer than zero seconds. Any other tools or ideas how I might retrieve the play duration?
Code:
MPlayer dev-SVN-r26940 I can use faad but I was looking for magical bullet from mplayer. Thanks for all the help. faad -i Back\ To\ Basics\ \ Modern\ -\ 01\ Intro\ \(Back\ To\ Basics\).aac 2>&1 | grep ADTS | awk '{print int($2)}' |
All times are GMT -5. The time now is 01:03 PM. |