On Tue, Oct 21, 2008 at 1:34 PM, Jean-Michel Pour? <jm at poure.com> wrote:
> Le mardi 21 octobre 2008 ? 13:02 -0700, Dan Dennedy a ?crit :
>> This seems rather silly. First, why use sox and not arecord? Secondly,
>> the audio is encoded twice when it could pass uncompressed pcm through
>> the pipe:
>>
>> arecord -D default -t raw -c 1 -f S16_LE -r 11025 | ffmpeg -f s16le
>> -ar 11025 -ac 1 -i - ...
>>
>
> Thanks a lot Dan.
>
> I used this command line:
>
> arecord -D default -t raw -c 1 -f S16_LE -r 48000 - | \
> ffmpeg -f s16le -ab 128k -ar 48000 -ac 1 -i - -acodec mp2 \
> -f x11grab -r 2 -s 1400x1050 -i :0.0 -vcodec mpeg4 \
> /home/jmpoure/kdenlive/capture.avi
>
> But I only hear scratches. Image is good.
> Any input?

Heh, well I did not test it; it was pure conjecture. I don't have a
mic at my desk here at work to test it real quick. Maybe sox with
uncompressed pcm output will work.
Did not the ALSA OSS emulation work with ffmpeg native OSS grabbing?

-- 
+-DRD-+


Reply via email to