SolvedShareX Sound recording from two sources at same time

Hello,
is it possible to record both my desktop audio and microphone audio at the same time on Windows 10? If not is there some workaround, e.g. install some mixer instead of virtual-audio-capture that put all audio sources together?

14 Answers

✔️Accepted Answer

And here is a proof of concept: https://youtu.be/CrhpaZ8GQrE

I created this with ShareX by downloading the source code and making the following change in FFmpegHelper.cs:

public bool Record()
{
    recordingStarted = false;
    string commands = Options.GetFFmpegCommands();
    commands = commands.Replace(":audio=\"Microphone (Realtek High Definition Audio)\"",
        " -f dshow -i audio=\"virtual-audio-capturer\" -f dshow -i audio=\"Microphone (Realtek High Definition Audio)\" -filter_complex amix=inputs=2:duration=first:dropout_transition=3");
    return Run(Options.FFmpeg.FFmpegPath, commands);
}

Obviously this is not the exact proper way to do it, but it's proof that it IS possible

Other Answers:

It is possible to use the "Use custom command" and achieve the required behavior.
But anyway, GUI option for this would be desirable for beginners, and not much technically literate people.

This is how we add two inputs into a single capture:
ffmpeg.exe -y -rtbufsize 150M -f dshow -framerate 30 -i video="screen-capture-recorder":audio="virtual-audio-capturer":audio="Microphone (USB PnP Audio Device)" -c:v libx264 -r 30 -preset ultrafast -tune zerolatency -crf 28 -pix_fmt yuv420p -movflags +faststart -c:a aac -strict -2 -ac 2 -b:a 128k "output.mp4"

The bold part is what I added to achieve what I need => system sound and mic in a single capture.

Related Issues:

4
ShareX Sound recording from two sources at same time
And here is a proof of concept: https://youtu.be/CrhpaZ8GQrE I created this with ShareX by downloadi...
46
flameshot FlameShot doesn't start, no errors
Having the same issues But calling flameshot gui shows something. Hi I've installed flameshot on gen...
5
flameshot Flameshot not launching when using Wayland
For @AkechiShiro Flameshot version 0.6.0-9(Debian) Describe the bug The commands flameshot gui or fl...
4
fluxion Airmon-ng doesn't support RTL8812AU
Ok I got monitor mode working Please see edit below Do you want to request a feature or report a bug...
3
hyperion.ng [SOLVED] Hyperion.NG on Docker Hub for arm/Raspberry Pi
If the Arduino Nano is the one driving the leds and its connected to the RPi4 via USB that should wo...
99
omnisharp vscode v1.23.1 fails to load Unity project, worked with v1.23.0
The problem is that the new .NET Core 3.1 SDK isn't supported by any current Mono release ...
69
omnisharp vscode [fail]: OmniSharp.MSBuild.ProjectManager: Attemped to update project that is not loaded.
Thanks a bunch! This solved the issue for me Steps taken Download version 1.15.2 (see link above ...
67
MonoGame templates for visual studio 2019
I could not find templates for VS 2017 anywhere so that I had to install VS 2017 to get them ...
52
mono System.TermInfoReader cannot handle new NCurses 6 TermInfo files
fix is in progress A simple workaround is to set TERM=xterm for example that is some terminfo file t...
50
omnisharp vscode Debug Console window cannot accept Console.ReadLine() input during debugging
From @kieferrm on December 17 2016 14:50 The debug console is output only From @LiangZugeng on Decem...
50
roslyn Unable to compile C# 7.1 code on VSTS build agents
I just checked and <LangVersion>7.1</LangVersion> was in the project file Visual Studio Enterprise 2...
48
graphql code generator [TypeScript Resolvers] Apollo Server resolvers types mismatch
For anyone wondering where to put the useIndexSignature: true my codegen.yml looks like this (see th...
38
csharplang Proposal: Dependency Injection / Service Locator as a Language Feature
DI frameworks tend to have a lot of power and flexibility associated with them DI / Service Locator ...
38
roslyn Language Feature: Extension Everything
Why we still require to name the extension class while it can be self explanatory like: Using class-...
37
docs Please document how to change default console template.
There is no direct way to do this in .NET 6 There are two approaches: We want feedback Voting on thi...
31
omnisharp vscode 'System' not found after update to dotnet core 3.0
I was able to resolve this issue by uninstalling mono via brew and letting omnisharp use the MSBuild...
31
omnisharp vscode Omnisharp can't find .NET SDK when open any C sharp project
Sometimes the Visual Studio warning will still persist even after installing the .NET SDK ...
29
graphql code generator Duplicate identifier error
@dotansimha @danbruegge Faced the same problem Describe the bug Duplicate resolver type is generated...
28
omnisharp vscode Debug multiple ASP.NET Core projects in Visual Studio Code
Try this also Moved from microsoft/vscode#25628 From @mdmoura VSCode Version: 1.11.2 OS Version: Win...
28
omnisharp vscode The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.
Solved this problem by adding omnisharp.json with Was asked to create new issue on #2876 Environment...
27
omnisharp vscode Format code returns: Sorry, but there is no formatter for 'csharp'-files installed.
Ah got it there was line csharp.format.enable: false in my user config after cleared that it started...
26
omnisharp vscode Issues when upgrading to 1.23.3 - Unity assembly definitions not found correctly
A temporary work-around to anyone who finds this for now: Right-click the C# extention from within V...
25
omnisharp vscode Always show "Downloading package 'OmniSharp (.NET 4.6 / x64)' (12310 KB) ."
Sorry for the delay I needed to get 1.6 out the door before taking some time to write up the steps b...
25
csharplang Discussion: try expression without catch for inline use
In PHP @ is used quite often to shorten things. Proposal: try expression without catch for inline us...
24
xamarin macios [Meta] Xcode 12.0 Support
Hey everyone - I know there was a lot of interest in WidgetKit This is a meta issue tracking the sta...
22
omnisharp vscode The SDK 'Microsoft.NET.Sdk.Web' specified could not be found
Latest OmniSharp beta as of now is 3.5.0-beta.2204 which seem to work with the latest .NET Core SDK ...
22
mono Unable to update ca-certificates-mono package
I need to investigate more on how to prevent this from happening but for now please just mv /etc/mon...
21
csharplang Nominal records
Again I see absolutely no reason why this syntax and functionality can't be applied to struct Having...
20
20
csharplang Exploration: Roles, extension interfaces and static interface members
The term view has several definitions in CS Given the enormity of C# code that uses the term in the ...
20
csharplang Proposed changes for Pattern Matching in C# 9.0 - Draft Specification
I do think that: Needs to have exactly the same behaviour (both in terms of any compiler warnings/er...
20
xamarin macios [entityframeworkcore] Query throws Exception with Xamarin iOS when linking
Hey I get it working by create a file in my iOS project : Linkers.xml From @rob2212 on November 2 20...
19
csharplang Open LDM Issues in Pattern-Matching
Some options for the syntax of the match expression All of these assume the introduction of a new ma...
18
csharplang [Proposal][Free function]
Interesting approach liking and +1ing your own suggestion 🤔. This proposal is not original at all ...
17
graphql code generator How to specify types for nested Maybes in generated query types?
I'm also having this exact same issue where it's outputting Array<Maybe<Post>> which means it can be...
16
csharplang Proposal: Multi-expression switch statement
Added the following to #1054 switching on a tuple literal In order to switch on a tuple literal ...
16
csharplang Discussion : Local Properties
While the idea of a local identifier that refers to a live calculation is intriguing I don't really ...
16
xamarin macios Build Error - PHImageManager.h: Error GEA45E82A: expected identifier or '{'
I'm the dude that originally reported the issue.. To get around it at the time I patched the SDK Adm...
15
MonoGame [Todo list] Future-proofing MonoGame
Thanks to everyone's effort lately especially harry-cpp and tomspilman MonoGame is getting super clo...
15
cordova plugin inappbrowser iOS - build fails if using "WKWebViewOnly" preference
yes its being sent since August Bug Report Problem What is expected to happen? cordova build ios Bui...
15
graphql code generator Can't return null from nullable filed resolver
@wallzero Adding my solution as the Maybe value fixes this issue. To Reproduce Steps to reproduce th...
15
csharplang Do not use in as a synonym for ref readonly
Since in is supposed to help cut down the ugly verbosity of readonly ref i have an alternative propo...
15
csharplang Adding the pipeline operator to C#
The Pipeline operator is going to add to Javascript ...
15
roslyn Proposal: guard statement
Why not just: ? The 'else' reads super weird to me With the above i can then write: Or ...
15
roslyn Checklist and open issues for C# range (..) operator
Would a type be able to accept a Range as an indexer argument e.g foo[1..10]? Personally ...
14
cordova plugin inappbrowser not work ios13 InAppbrowser select target _blank
This issue is not intended for support Please go to Cordova slack for more help Did you try to add t...
14
csharplang Natural value equality
If value were the keyword I think I'd prefer it as a modifier with class so that it's obvious that y...
14
botframework sdk [Feature Request] Facebook Messenger Feature Requests
We would like support for the Facebook handover protocol We are able to able to pass thread control ...
13
omnisharp vscode remove unused usings
Bump!.. This reasonably basic capability is a big miss on Visual Studio Code Environment data dotnet...
13
graphql code generator Custom Scalars?
Is there an example on how to configure custom scalars mapping them to custom types? How do you spec...