Question / Help Record Audio Only?

silentshadow56

New Member
I'm looking to record the soundtrack from a game and save it as a sound file that I can later use as background music. Is there a simple way to just record the audio or even separate the audio from the video into two different files? Any ideas or help would be greatly appreciated!
 

gnumaru

New Member
You can either use "Audio Output Capture" as your only source or use "Display Capture" and disable the visual capture by checking the eye icon, to the left of the lock icon. This will give you a video file with all black video but with normal audio. Then you can extract the raw audio stream into an audio file using ffmpeg. For example you could extract the raw audio stream from an mp4 file using the following command:

ffmpeg -i input.mp4 -vn -c:a copy output.m4a
 

ucrbuffalo

New Member
I'm really sorry for necro-ing this thread. It showed up as the second result when I googled this issue, so I'm just going to add one more way to turn your stream into audio only. You can convert video files to .mp3 using VLC. Continue your google search from there. It's well-documented.
 

Yisroel Tech

New Member
There is actually a very easy way to directly record audio-only output using OBS.
  1. go to File -> Settings -> Output
  2. make sure Advanced mode is selected
  3. Open Recording tab and choose Custom Output (FFmpeg) in dropdown
  4. Choose e.g. mp3 as container, disable Video encoder and edit the rest of settings to suit your needs.
This will save the output to .mp3 directly and you can use a separate profile for that in case you're also using OBS for normal video recording.

(Source where I saw it: https://superuser.com/a/1809771/368970)
 
Top