将声卡的输入记录到ogg文件中

・1 分钟阅读

将声卡的输入记录到ogg文件中

rec -c 2 -r 44100 -s -t wav - | oggenc -q 5 --raw --raw-chan=2 --raw-rate=44100 --raw-bits=16 - > MyLiveRecording.ogg
将输入保存到ogg文件中
示例输出
root@robby:/home/gnu# rec -c 2 -r 44100 -s -t wav - | oggenc -q 5 --raw --raw-chan=2 --raw-rate=44100 --raw-bits=16 - > MyLiveRecording.ogg
Codage de entr?e standard 
 en sortie standard 
? la qualit? 5,00
rec wav: Length in output .wav header will be wrong since can't seek to fix it
Input File : 'default' (alsa)
Sample Size : 16-bit (2 bytes)
Sample Encoding: signed (2's complement)
Channels : 2
Sample Rate : 48000
Time: 00:01.62 [00:00.00] of 00:00.00 (0.00%) Samples out: 67.7k Clips: 0 ^C
讨论
Hujiuxiang profile image