I am using archlinux on my laptop. I can record output from alsa to a file using ffmpeg $ ffmpeg -f alsa -ac 2 -i default -acodec libmp3lame -ab 320k ouput2.mp3 I have installed termux and ffmpeg inside it. Now how to record the FM audio to a file