All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Maley <dmaley@nc.rr.com>
To: alsa-devel@lists.sourceforge.net
Subject: Re: [patch] problem w/ arecord "split interleaved files" feature
Date: Tue, 25 Apr 2006 17:07:35 -0400	[thread overview]
Message-ID: <1145999255.7045.27.camel@flanders> (raw)
In-Reply-To: <s5hmze9zpnn.wl%tiwai@suse.de>

Thanks for the quick response ...

> > [dave@flanders ~]$ arecord -q -t wav -f dat -d 10800 | sox -t wav -r
> > 48000 -c 2 - -t wav -r 44100 -c 2 foo.wav resample
> > 
> > 
> > It seems this new split feature doesn't work properly when writing to a
> > pipe (or at least when piping to sox).  A quick look at an strace shows
> > constant write errors, and foo.wav grows in size until the disk is full.
> 
> I guess it's rather a bug of sox.  arecord quits when the data size
> reaches to max_filesize in the case of pipe output (since obviously
> you cannot split the output).  sox should quits, too, when receiving
> EPIPE error.

Hmm, this doesn't seem to match the behavior I'm seeing.  It's very
possible I'm misunderstanding something here, but this is what I see:

Using the above arecord | sox command when the foo.wav file reaches
2000000000 in size and the split occurs it'll actually be split into
foo-01.wav and foo-02.wav, and I believe that this rename of foo.wav to
foo-01.wav is where the problem may be occurring.  I can capture strace
output at the time of the split, if it's at all helpful.

> > A quick fix for this is to set max_filesize to 2147483648.  Not sure if
> > this is a "proper" fix however I have tested it and it seems to work
> > just fine for me.  Please consider the attached patch.
> 
> Well, I'm not sure whether exactly 2GB is allowed.

If not then I'd be happy with just increasing this max_filesize to
2073600044 as that's what my 180 minute 48KHz files end up being ... 8)

Thanks again for your feedback on this.

~Dave



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

  reply	other threads:[~2006-04-25 21:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-25  5:43 [patch] problem w/ arecord "split interleaved files" feature Dave Maley
2006-04-25 14:38 ` Takashi Iwai
2006-04-25 21:07   ` Dave Maley [this message]
2006-04-26 14:11     ` Takashi Iwai
2006-04-26 21:56       ` Dave Maley
2006-04-30 17:03       ` Dave Maley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1145999255.7045.27.camel@flanders \
    --to=dmaley@nc.rr.com \
    --cc=alsa-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.