Changes between Version 8 and Version 9 of Capture/ALSA


Ignore:
Timestamp:
Oct 12, 2020, 2:57:19 AM (6 years ago)
Author:
llogan
Comment:

use private options as shown in the docs

Legend:

Unmodified
Added
Removed
Modified
  • Capture/ALSA

    v8 v9  
    125125= Input options =
    126126
    127 The only useful [https://ffmpeg.org/ffmpeg.html#Audio-Options audio input options] for ALSA input are `-ar` (audio sample rate) and `-ac` (audio channels).
    128 
    129 Specifying audio sampling rate/frequency will force the audio card to record the audio at that specified rate. Usually the default value is "44100" (Hz).
    130 Specifying audio channels will force the audio card to record the audio as mono, stereo or even 2.1/5.1 (if supported by your audio card). Usually the default value is "1" (mono) for Mic input and "2" (stereo) for Line-In input.
     127The only useful [https://ffmpeg.org/ffmpeg.html#Audio-Options audio input options] for ALSA input are `-sample_rate` (audio sample rate) and `-channels` (audio channels).
     128
     129* Specifying audio sampling rate/frequency will force the audio card to record the audio at that specified rate. Usually the default value is "44100" (Hz).
     130* Specifying audio channels will force the audio card to record the audio as mono, stereo or even 2.1/5.1 (if supported by your audio card). Usually the default value is "1" (mono) for Mic input and "2" (stereo) for Line-In input.
    131131
    132132= Examples =
    … …  
    136136When doing screencast recordings, you usually want to record your voice too:
    137137{{{
    138 ffmpeg -f alsa -ac 1 -ar 44100 -i hw:0 -t 30 out.wav
     138ffmpeg -f alsa -channels 1 -sample_rate 44100 -i hw:0 -t 30 out.wav
    139139}}}
    140140Looking at our example device listing, this would be the same as this:
    141141{{{
    142 ffmpeg -f alsa -ac 1 -ar 44100 -i default:CARD=ICH5 -t 30 out.wav
     142ffmpeg -f alsa -channels 1 -sample_rate 44100 -i default:CARD=ICH5 -t 30 out.wav
    143143}}}
    144144
    … …  
    155155You can now record audio from a running application using:
    156156{{{
    157 ffmpeg -f alsa -ac 2 -ar 44100 -i hw:Loopback,1,0 out.wav
     157ffmpeg -f alsa -channels 2 -sample_rate 44100 -i hw:Loopback,1,0 out.wav
    158158}}}
    159159
    … …  
    214214You can now record audio from a running application using:
    215215{{{
    216 ffmpeg -f alsa -ac 2 -ar 44100 -i loopout out.wav
    217 }}}
     216ffmpeg -f alsa -channels 2 -sample_rate 44100 -i loopout out.wav
     217}}}