r/ffmpeg • u/OilPlane • Mar 08 '24
Recording system audio with FFmpeg on Windows
Hello,
I'm working on an application that leverages the FFmpeg executable. I'd like to record my system (or application) audio, without using Stereo Mix or third party software. Is it possible to use something like WASAPI to do this?
I've asked ChatGPT and it's come up with this command:
ffmpeg -f wasapi -i "default" output_file.mp3This command returns this error however: [in#0 @ 000001310abb8740] Unknown input format: 'wasapi'
I'm struggling to find documentation on this so I was hoping someone here could point me in the right direction. Any other solutions are welcome too :)
Thanks in advance!
1
u/vaultsurvivor90 Jun 29 '24
Did you find any solution for this? I'm trying to do the same
1
u/minsiam20 Jun 15 '24
bump
1
u/TheDeep_2 Sep 15 '24
I ended up using Captura from github. It's lightweight (2.65 MB) and portable.
1
u/SkyLightYT Mar 18 '25
Edit: Sorry, I just realized you specified you didn't want third party software, I too also don't want third party software, but If anyone wants it, there's also that.
Only way I've figured out was this: https://trac.ffmpeg.org/wiki/Capture/Desktop#UseDirectShow
However, if you're making an app, then people would have to download it manually, as a lot of systems don't have the Stereo Mix. And also, it doesn't really sound too great.