[alsa-devel] arecord - bug with big file?

Bugtracker is down -> https://bugtrack.alsa-project.org/alsa-bug from main page -> http://alsa-project.org
So, excuse my reporting here.
I can't record with arecord for long periods.
time arecord -f dat -D hw:0,0 | aplay Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
real 186m25.375s user 1m26.204s sys 0m20.772s
It seems that this bug was also reported there. https://bugzilla.redhat.com/show_bug.cgi?id=213783
cat /proc/asound/version Advanced Linux Sound Architecture Driver Version k3.12.9x40-122l. (custom kernel)
arecord --version arecord: version 1.0.27.1 by Jaroslav Kysela perex@perex.cz
I now trying with sox (rec test.wav) to check if sox is ok.
Thank you for reading this!

On 05/04/2014 10:30 PM, korgman wrote:
Bugtracker is down -> https://bugtrack.alsa-project.org/alsa-bug from main page -> http://alsa-project.org
So, excuse my reporting here.
I can't record with arecord for long periods.
time arecord -f dat -D hw:0,0 | aplay Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
real 186m25.375s
What architecture (uname -a) and distribution is this? Was your libc and alsa-lib compiled with LARGEFILE support?
Daniel

korgman wrote:
I can't record with arecord for long periods.
time arecord -f dat -D hw:0,0 | aplay Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
real 186m25.375s
This is the time needed for 2^31 bytes. Stopping recording after that is a feature because .wav files (as supported by arecord) have a 2 GB limit. When recording to a file, it would be possible to create multiple files, but this is not possible with stdout.
Use "-t raw" to avoid the .wav restrictions. (This requires you to tell aplay about the format.)
Regards, Clemens
participants (3)
-
Clemens Ladisch
-
Daniel Mack
-
korgman