Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12724 - Oggenc stops recording
Summary: Oggenc stops recording
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 All
: High major (vote)
Assignee: J. Ellis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-26 03:01 UTC by (disabled)
Modified: 2003-04-12 05:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
alsa-utils-0.9.0_rc8-r2.ebuild (alsa-utils-0.9.0_rc8-r2.ebuild,1.01 KB, text/plain)
2003-03-23 04:02 UTC, J. Ellis (RETIRED)
Details
alsa-utils-0.9.0_rc8-aplay.diff (alsa-utils-0.9.0_rc8-aplay.diff,1.60 KB, patch)
2003-03-23 04:04 UTC, J. Ellis (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description (disabled) 2002-12-26 03:01:04 UTC
I wanted to record 144 hours of audio from linein to an .ogg file using:
arecord -f cd -t raw | oggenc -r -q 0 -o recording.ogg -
Which works, but after 405 minutes and 47 seconds, it just halts. No CPU usage 
for neither arecord nor oggenc. Even the rotating bar that oggenc displays 
stops rotating, and the time doesn't increase anymore.
I don't know if this is a bug in oggenc or in arecord, but it seems to me that 
it shouldn't stop recording/encoding after 400 minutes.
Comment 1 (disabled) 2003-01-03 09:48:47 UTC
I noticed there are new alsa packages available. After upgrading, I will try 
if I still can reproduce the bug.
Comment 2 SpanKY gentoo-dev 2003-01-09 20:33:34 UTC
any luck ? 
Comment 3 (disabled) 2003-01-11 03:22:08 UTC
No, it still stops after 400 minutes.
If I pass a lower sample rate to arecord however, it stops later.
Comment 4 SpanKY gentoo-dev 2003-01-12 11:26:49 UTC
related to filesize perhaps ? 
how big does the file get each time ? 
Comment 5 (disabled) 2003-01-12 16:02:28 UTC
One resulting .ogg file is 177MB (399 minutes and 20 seconds) while another is 
180MB (405 minutes and 47 seconds).
Comment 6 SpanKY gentoo-dev 2003-02-05 01:58:16 UTC
dare i even ask but do you have the space to see if you could redirect the output of arecord into a file w/out piping it through oggenc ?

that way you could see if its arecord that chokes ...
Comment 7 SpanKY gentoo-dev 2003-03-01 23:18:29 UTC
giving back to wranglers because (1) i dont really have the time for this and
(2) i dont really have the expertise to deal with ogg/arecord/etc... since ive
never used them before ;)
Comment 8 J. Ellis (RETIRED) gentoo-dev 2003-03-15 06:57:15 UTC
Having spoken to the upstream dev. This is unlikely to be an oggenv bug.

Need to take a look at arecord and see if there is anything that could be overflowing. Should be fun..
Comment 9 J. Ellis (RETIRED) gentoo-dev 2003-03-20 21:37:58 UTC
Two things.

i) this is an arecord limitation. After discussing on alsa-devel, Takashi Iwai fixed in cvs. I'll work on creating a patch and creating an updated alsa-tools ebuild.

ii) you can use ecasound as a work around while i) is in progress:

ecasound -f:16,2,44100 -i alsa -o stdout |oggenc -r -q 0 -o recording.ogg -

A note from Kai Vehmanen, the ecasound author:

"Ecasound should be available as a Gentoo package. Be sure to compile
ecasound with --with-largefile."

"As a bonus, you should get much more reliable recording thanks to
ecasound's double-buffering disk i/o subsystem and other mechanisms 
present to fight both disk i/o and scheduling latency spikes."

I'll update this again over the weekend when i have an ebuild to build a patched alsa-tools.
Comment 10 J. Ellis (RETIRED) gentoo-dev 2003-03-23 04:02:34 UTC
Created attachment 9712 [details]
alsa-utils-0.9.0_rc8-r2.ebuild

Updadted ebuild to patch arecord.
Comment 11 J. Ellis (RETIRED) gentoo-dev 2003-03-23 04:04:30 UTC
Created attachment 9713 [details, diff]
alsa-utils-0.9.0_rc8-aplay.diff

Patch to allow more than size_t (2^32) bytes to be recorded with arecord.
Comment 12 J. Ellis (RETIRED) gentoo-dev 2003-03-23 04:08:31 UTC
Please try the attached ebuild and patch for alsa-utils. Copy the patch into alsa-utils/files and emerge the ebuild. You'll need to create a digest using 'ebuild alsa-utils-0.9.0_rc8-r2.ebuild digest'.

Let me know if it fixes the problem for you.

It would probably be better for you to be using ecasound but this should fix the problem.
Comment 13 J. Ellis (RETIRED) gentoo-dev 2003-04-12 05:09:45 UTC
This patch has been applied to Alsa 0.9.2. Closing. Will re-open if user returns and problem is not resolved.