Re: [LAU] robust command line tool to determine duration of sound file using more than the header

From: Ralf Mardorf <ralf.mardorf@email-addr-hidden-dsl.net>
Date: Thu Aug 18 2016 - 14:19:10 EEST

On Thu, 18 Aug 2016 03:50:00 +0000, Eric Wong wrote:
>And was able to reproduce soxi showing the the length as
>3:49.80 but "sox .. -n stats" showed only 44.304s

Hi,

I get three times the same duration for a wav

  $ exiftool Audio_Oberheim_Matrix.wav|tail -1
  Duration : 0:02:18
  $ soxi Audio_Oberheim_Matrix.wav|grep D|cut -d= -f1
  Duration : 00:02:18.19
  $ sox Audio_Oberheim_Matrix.wav -n stats 2>&1|grep Len
  Length s 138.194

and three times the same duration for a mp3.

  $ exiftool *mix?.mp3|tail -1
  Duration : 0:02:42 (approx)
  $ soxi *mix?.mp3|grep D|cut -d= -f1|head -1
  Duration : 00:02:42.25
  $ sox *mix?.mp3 -n stats 2>&1|grep Len
  Length s 162.246

I didn't check with a stopwatch, to ensure the duration is correct.

  $ pacman -Q perl-image-exiftool sox
  perl-image-exiftool 10.20-1
  sox 14.4.2-1

Regards,
Ralf
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Thu Aug 18 16:15:01 2016

This archive was generated by hypermail 2.1.8 : Thu Aug 18 2016 - 16:15:02 EEST