Re: FIle plugin and format change

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



well... I really want to use another application(mp4live)... not arecord.

So this application just ask me for : "sample rate", "channels" and
what Alsa device to use.

I've tell it "plugfile" device, 44100 as sample rate, and stereo(2
channels). As you can see I cannot specify the format.

When I run mp4live it says:

mp4live: pcm_params.c:2351: sndrv_pcm_hw_params: Assertion `err >= 0' failed.

I dont know what to do.


Thanks




On 22/12/2007, Bill Unruh <unruh@xxxxxxxxxxxxxx> wrote:
> On Sat, 22 Dec 2007, Carlos Hernandez wrote:
>
> > I know... and that's the reason why I can specify that, using the asound.conf.
> >
> > The source audio file is in 16 bit, 44100, stereo...  but when I
> > record with arecord, it does with 8bit, 8k, mono.
> >
> > So I must change this before arecord "record" the audio... where? .. I
> > suppose this should be in asound.conf (or .asoundrc)... setting in the
> > plug parameters "format", "channels" and "rate"... this way :
>
> arecord -f cd >outfile
>
> >
> > pcm.plugfile{
> >       type plug
> >       slave {
> >               pcm infile
> >               format S16_LE
> >               channels 2
> >               rate 44100
> >       }
> > }
> >
> > but this does not work...
> >
> >
> > thanks anyway
> >
> >
> >
> > On 22/12/2007, Lee Revell <rlrevell@xxxxxxxxxxx> wrote:
> >> On Dec 21, 2007 9:39 PM, Carlos Hernandez <dspcarlos@xxxxxxxxx> wrote:
> >>> Here the "format", "rate" and "channels" are set up, and these are the
> >>> same as the original audio file.  Then I suppose I would not have to
> >>> specify these parameters with arecord.
> >>> running arecord:
> >>>
> >>> carlos@chaos:~$ arecord -D plugfile out.wav
> >>> Recording WAVE 'out.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
> >>>
> >>
> >> arecord does not do any kind of format detection on its input.  It
> >> records with whatever format you tell it to (in this case, the default
> >> of 8Khz 8-bit mono)
> >>
> >> Lee
> >>
> >
> >
> >
>
> --
> William G. Unruh   |  Canadian Institute for|     Tel: +1(604)822-3273
> Physics&Astronomy  |     Advanced Research  |     Fax: +1(604)822-5324
> UBC, Vancouver,BC  |   Program in Cosmology |     unruh@xxxxxxxxxxxxxx
> Canada V6T 1Z1     |      and Gravity       |  www.theory.physics.ubc.ca/
>


-- 
--------------------------------------
Universidad de Talca
Facultad de Ingeniería
Ingeniería Civil en Computación
--------------------------------------
Movil   +56 9 92624541
Skype  dspcarlos

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux