Changes between Version 8 and Version 9 of Capture/ALSA
- Timestamp:
- Oct 12, 2020, 2:57:19 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Capture/ALSA
v8 v9 125 125 = Input options = 126 126 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.127 The 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. 131 131 132 132 = Examples = … … 136 136 When doing screencast recordings, you usually want to record your voice too: 137 137 {{{ 138 ffmpeg -f alsa - ac 1 -ar44100 -i hw:0 -t 30 out.wav138 ffmpeg -f alsa -channels 1 -sample_rate 44100 -i hw:0 -t 30 out.wav 139 139 }}} 140 140 Looking at our example device listing, this would be the same as this: 141 141 {{{ 142 ffmpeg -f alsa - ac 1 -ar44100 -i default:CARD=ICH5 -t 30 out.wav142 ffmpeg -f alsa -channels 1 -sample_rate 44100 -i default:CARD=ICH5 -t 30 out.wav 143 143 }}} 144 144 … … 155 155 You can now record audio from a running application using: 156 156 {{{ 157 ffmpeg -f alsa - ac 2 -ar44100 -i hw:Loopback,1,0 out.wav157 ffmpeg -f alsa -channels 2 -sample_rate 44100 -i hw:Loopback,1,0 out.wav 158 158 }}} 159 159 … … 214 214 You can now record audio from a running application using: 215 215 {{{ 216 ffmpeg -f alsa - ac 2 -ar44100 -i loopout out.wav217 }}} 216 ffmpeg -f alsa -channels 2 -sample_rate 44100 -i loopout out.wav 217 }}}
