[gpodder-devel] Wrong length again

  • From: nikosapi at gmail.com (nikosapi)
  • Date: Mon, 6 Aug 2007 15:18:33 -0400

On 8/6/07, Thomas Perl <thp at perli.net> wrote:
> Hello, G?tz!
>
> On Mon, 2007-08-06 at 20:30 +0200, G?tz Waschk wrote:
> > On 8/6/07, Thomas Perl <thp at perli.net> wrote:
> > > On Sun, 2007-08-05 at 15:02 +0200, G?tz Waschk wrote:
> > > > the episodes of the Cory Doctorow podcast
> > > > (http://feeds.feedburner.com/doctorow_podcast) get the wrong length
> > > > set if copied with gpodder. For instance the current episode The
> > (http://www.archive.org/download/Cory_Doctorow_Podcast_91/Cory_Doctorow_Podcast_91_The_Hacker_Crackdown_Part_006.mp3)
> > > > gets a length of 29:55, that's the value I get from mplayer -identify:
> > > > ID_LENGTH=1795.00
> > > > The true length according to audacious is 31:07.
> > > Is this the true length indeed or only "according to" audacious? What
> > > kind of MP3 codec/library is audacious using? It's kind of hard, as it
> > > seems there is no "perfect" library to detect file lengths, I thought
> > > mplayer would be the best idea, but it seems like mplayer fails when
> > > other codecs don't and vice versa.
> >
> > Hi,
> >
> > the length according to mplayer is too short, you miss the last part
> > of this audio file, while audacious can play the whole. Audacious is
> > based on the mad library for decoding MP3.
>
> >From what I see from your previous posts, the problems with length
> detection have previously been because of enhanced AAC files. Does libmad
> always provide the correct length for MP3 files? If so, maybe using libmad
> for MP3 files and mplayer for everything else would fix your problem?
>
>
> Thanks,
> thomas
>
>

Hey Thomas and G?tz,

I have a patch for that already, I was working on it this weekend but
got interrupted :(

I also think pymad should be used for determining the length of mp3s,
not only would it probably be more reliable but it should be quicker
as well (no need to run mplayer for each new track).

I'll send it out tonight,

nick


Other related posts: