see below

On Tue, Aug 27, 2013 at 10:53 PM, Dave <[email protected]> wrote:

> see below
>
>
> On Tue, Aug 27, 2013 at 10:20 PM, Dave <[email protected]> wrote:
>
>> see below
>>
>> On Tue, Aug 27, 2013 at 10:08 PM, Luca Barbato <[email protected]>wrote:
>>
>>> On 28/08/13 00:31, Dave wrote:
>>> > Thank you for your reply. I am using pulseaudio. However, I am not
>>> familiar
>>> > with "pulseaudio control" yet. How would I use it? Would you be so
>>> kind as
>>> > to take my pseudo code script and show me how it actually should look
>>> with
>>> > the changes you suggest?
>>> >
>>> > Also any links to references I should read are appreciated. Thanks!
>>>
>>> https://libav.org/avconv.html#pulse
>>>
>>> lu
>>>
>>
>> Thank you. From that, here is what I came up with:
>>
>>
>> #!/bin/bash
>> OUTPUT="audio_`date +%Y-%m-%d_%H%M`"
>> avconv \
>> -ac 2 -f pulse -i
>> alsa_output.usb-Focusrite_Scarlett_2i2_USB-00-USB.analog-stereo.monitor\
>> -ac 1 -f pulse -i
>> alsa_input.usb-Focusrite_Scarlett_2i2_USB-00-USB.analog-stereo\
>>
>> -map 0:0 -map 1:0 \
>> -c:a flac \
>> -threads 0 \
>> -y $OUTPUT
>>
>> How does that look? (I'll be testing it later tonight.)
>>
>
>
> From this link: https://libav.org/avconv.html#pulse
> "To enable this input device during configuration you need libpulse-simple
> installed in your system."
>
> Is that saying that I need to compile avconv from source?
>
> Currently I have:
> avconv version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the
> Libav developers
>   built on Apr  2 2013 17:02:36 with gcc 4.6.3
>


This is almost working. However, the recorded audio is garbled and there is
only one track. My goal was to record each of these two sources to its own
channel (like left & right in a stereo audio file).

I'm not sure what the problem is because I'm new to everything related to
audio.

#!/bin/bash

pacmd list-cards | grep -qi -e
"alsa_output.usb-Focusrite_Scarlett_2i2_USB-00-USB.analog-stereo.monitor"
if [ $? -ne 0 ]; then
    echo "there seems to be a problem with the Focusrite_Scarlett_2i2..."
    exit 1
fi

OUTPUT="/path/audio_`date +%Y-%m-%d_%H%M`.flac"
ffmpeg \
-ac 1 -f pulse -i
alsa_input.usb-Focusrite_Scarlett_2i2_USB-00-USB.analog-stereo -name
localmic \
-ac 1 -f pulse -i
alsa_output.usb-Focusrite_Scarlett_2i2_USB-00-USB.analog-stereo.monitor
-name remote \
-map 0:0 -map 1:0 \
-c:a flac \
-threads 0 \
-y $OUTPUT
exit 0
_______________________________________________
libav-tools mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-tools

Reply via email to