Posts Downloads Tags About RSS feed of posts

Recording

Some notes on recording in Linux using ffmpeg/alsa.

Recording to mp3 in 20 minute chunks for a fixed time:

ffmpeg
   -channels 1
   -sample_rate 44100
   -f alsa
   -i hw:1 (see arecord -l)
   -acodec libmp3lame
   -q:a 5  (1 highest, 5 default, 6 tolerable)
   -segment_time 00:20:00
   -t SECONDS
   -f segment
   output-%03d.mp3

Recording as a flac for a fixed time:

ffmpeg      
   -channels 1
   -sample_rate 44100      
   -f alsa      
   -i hw:1 (see arecord -l)
   -acodec flac
   -t SECONDS
   output.flac

#note