Blog Comments

  1. kgroneman's Avatar
    Hehe..only the first paragraph of this blog shows in the blog preview. It doesn't entice me to really want to click on it to read further, but the title didn't match the text so I clicked. Glad I did. :-)
  2. oldcpu's Avatar
    The example I gave above was with pulse audio installed. Of course, one can bypass pulse and run the ffmpeg command receive input direct from the device (albeit one has argueably less control over the device input) . The command, for example, for this would be:
    Code:
    ffmpeg -f alsa -ac 2 -i hw:1,0 -f x11grab -r 30 -s 1920x1200 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 output.avi
    where in my example here I have assumed the microphone is device " hw:1,0".

    Of course that begs the question, how does now the device (mic) is hw:1,0 ?

    In my case I first ran :
    Code:
    arecord -l
    which gave me:
    Code:
    oldcpu@core-i7:~> arecord -l
    **** List of CAPTURE Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
      Subdevices: 3/3
      Subdevice #0: subdevice #0
      Subdevice #1: subdevice #1
      Subdevice #2: subdevice #2
    card 1: U0x46d0x821 [USB Device 0x46d:0x821], device 0: USB Audio [USB Audio]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    and determined my USB (webcam) mic was HW:1,0 (ie card-1, subdevice 0). Since I wanted to use the mic in my webcam to record, I input hw:1,0 in the ffmpeg command. Which happens to my USB webcam mic.

    I think the rest is intuitively obvious ?
Page 10 of 10 FirstFirst ... 8910