You are not logged in.

#1 2014-12-26 05:42:14

Nobabs27
Member
Registered: 2014-01-25
Posts: 38

[SOLVED] Make 2 sound sources into 1

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! big_smile

Last edited by Nobabs27 (2014-12-27 02:47:46)


Facepalm.

Offline

#2 2014-12-26 09:38:06

progandy
Member
Registered: 2012-05-17
Posts: 5,305

Re: [SOLVED] Make 2 sound sources into 1

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

#3 2014-12-27 02:47:17

Nobabs27
Member
Registered: 2014-01-25
Posts: 38

Re: [SOLVED] Make 2 sound sources into 1

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.mkv

Facepalm.

Offline

Board footer

Powered by FluxBB