[ogg-dev] Ogg encoding longer than 203 minutes?

Durand durand1 at gmail.com
Sun Jul 5 19:16:46 PDT 2009


On Mon, 06 Jul 2009 03:07:43 +0100, Silvia Pfeiffer <silvia at silvia-pfeiffer.de> wrote:

> Have you just tried to encode it? The 203m remaining message may be
> misleading - after all it gets it through a pipe, so doesn't really
> know how long the file is that it encodes. It might just work.
>
> Cheers,
> Silvia.
>

Yes I have, it doesn't work unfortunately :(


On Mon, 06 Jul 2009 03:09:07 +0100, Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> wrote:

> My guess is that it has to do with the wav file header. arecord doesn't
> know the duration of the wav file (since it's live), so it has to put
> "something" in the wav header for duration. I would assume it puts
> 0xffffffff or something, meaning that oggenc interprets this as the file
> length. I would suggest making arecord output raw pcm instead to make
> sure there's no confusion.
>
> Cheers,
>
> 	Jean-Marc

That did the trick! I'm now using "arecord -f cd -t raw | oggenc -b 192 -o file.ogg --raw -" and its now counting up rather than down. Thanks!


More information about the ogg-dev mailing list