From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tossel@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Estimating track length Date: Wed, 25 Aug 2010 22:46:17 +0400 Message-ID: References: <87tymi5z5r.fsf@kanis.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1282762015 24364 80.91.229.12 (25 Aug 2010 18:46:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Aug 2010 18:46:55 +0000 (UTC) To: Ivan Kanis , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 25 20:46:53 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OoKzn-0004uS-RJ for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Aug 2010 20:46:48 +0200 Original-Received: from localhost ([127.0.0.1]:42162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OoKzm-0003s3-VB for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Aug 2010 14:46:46 -0400 Original-Received: from [140.186.70.92] (port=52183 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OoKzM-0003pc-Ob for help-gnu-emacs@gnu.org; Wed, 25 Aug 2010 14:46:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OoKzL-0001ti-Ax for help-gnu-emacs@gnu.org; Wed, 25 Aug 2010 14:46:20 -0400 Original-Received: from mail-px0-f169.google.com ([209.85.212.169]:59841) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OoKzL-0001tQ-4s for help-gnu-emacs@gnu.org; Wed, 25 Aug 2010 14:46:19 -0400 Original-Received: by pxi5 with SMTP id 5so580436pxi.0 for ; Wed, 25 Aug 2010 11:46:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=z4qwfOcDtCYVNxOencdjunyi8M3L2XXHi47XLyW9hwc=; b=S9RqaQB5V+zcvCk9WaBkJUZAXhE6TrWW9F1qMGLjT5uJesbAQkyTxwLKltrdWRJoSA Dx12bLrbC4SujlQ9XMB9R2mPajtF3O6C/gG0mEnaTRxRCzzVwm6abpAHSiF/8ZycnAYU l5ftO/KNWM+NT562lP/DdA5xGvc0grChVt0LA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=PJXA5v7nRM+gAyf/eXeM6mbYixKwa8c+XkIAdEg6M8sPPwa0eVoe9G7nMnVezwCYGF UYjb4eKLoDLLJQyHA+jy8D8cFUtjR98hSIh3Apw7zICojVfuI7LHR8aqtFgNcQhZsa+h o77TFs0AJEhQo2h+lM46e9940JkueX1Yw83eI= Original-Received: by 10.142.233.12 with SMTP id f12mr7237641wfh.303.1282761977493; Wed, 25 Aug 2010 11:46:17 -0700 (PDT) Original-Received: by 10.231.195.218 with HTTP; Wed, 25 Aug 2010 11:46:17 -0700 (PDT) In-Reply-To: <87tymi5z5r.fsf@kanis.fr> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74806 Archived-At: 2010/8/25 Ivan Kanis : > tossel@gmail.com wrote: > >> Hello, everybody! I need to estimate length of audio file in seconds >> from emacs. Is such function already implemented in some package? One >> obvious candidate is EMMS, but I couldn't find information about how >> to do it. I'd be grateful for any suggestions. > > What kind of file? Emacs won't tell you the track length of a file. You > will need to call a separate process which will output the information > you want. > > HTH, > -- > Ivan Kanis > http://kanis.fr > > In this world nothing can be said to be certain, > except death and taxes. > =A0 =A0-- Benjamin Franklin > > mp3, ogg, wav, wma etc. - the more formats the better. It's a good idea to find an external program to do this task, but could not find any either. And if I'll have to develop it myself, it can be implemented in elisp as well as in any other language.