You are not logged in.
What I want to do is take two sound sources (plughw:0,0 & plughw:1,0) and make them into either one plug or a whole new (virtual) sound card with a plug...
I am using ALSA (no PulseAudio, JACK or OSS), system updated to latest kernel, etc...
My goal is to have just 1 device that, when recorded, streams both System Sound and Microphone sound...
Help is appreciated! ![]()
Last edited by Nobabs27 (2014-12-27 02:47:46)
Facepalm.
Offline
You might be able to do that directly with your recording software. ffmpeg should be able to do that with custom filter chains and the amix filter
http://www.ffmpeg.org/ffmpeg-filters.html#amix
http://unix.stackexchange.com/questions … b-possible
Last edited by progandy (2014-12-26 09:44:25)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
It works!
Here is the magic command:
ffmpeg -f alsa -ac 2 -i plughw:1,0 -f alsa -ac 2 -i plughw:0,0 -filter_complex amix=inputs=2:duration=first:dropout_transition=3 -f x11grab -s 1280x1024 -i :0.0 -r 15 -acodec pcm_s16le -acodec pcm_s16le -vcodec libx264 -preset ultrafast -threads 0 output.mkvFacepalm.
Offline