Advertisement
metalx1000

Record multiple Audio tracks with FFMPEG

Dec 21st, 2016
1,688
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1. #get PulseAudio outputs which you can record from
  2. pacmd list-source-outputs|grep 'source:'|sort -u|grep output
  3.  
  4. #get PulseAudio inputs (microphones) which you can record from
  5. pacmd list-source-outputs|grep 'source:'|sort -u|grep input
  6.  
  7. #Record multiple sources to separate files
  8. ffmpeg -f pulse -i 6 -map '0' 0.mp3 -f pulse -i 3 -map '1' 1.mp3
  9.  
  10. #Record multiple sources to a single file
  11. ffmpeg -f pulse -i 25 -f pulse -i 2 -filter_complex "[0][1] amix [a]" -map "[a]" -threads 2 mix.mp3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement