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.
I noticed there are new alsa packages available. After upgrading, I will try if I still can reproduce the bug.
any luck ?
No, it still stops after 400 minutes. If I pass a lower sample rate to arecord however, it stops later.
related to filesize perhaps ? how big does the file get each time ?
One resulting .ogg file is 177MB (399 minutes and 20 seconds) while another is 180MB (405 minutes and 47 seconds).
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 ...
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 ;)
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..
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.
Created attachment 9712 [details] alsa-utils-0.9.0_rc8-r2.ebuild Updadted ebuild to patch arecord.
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.
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.
This patch has been applied to Alsa 0.9.2. Closing. Will re-open if user returns and problem is not resolved.