exeldro / obs-source-record

GNU General Public License v2.0
333 stars 37 forks source link

Cannot capture audio of a scene #67

Open thelegendtubaguy opened 1 year ago

thelegendtubaguy commented 1 year ago

I cannot figure out how to set this up to record audio along with the video of my source. I've tried selecting a particular audio input device as well as what I use as an "audio scene", neither seem to work even though the devices show up in the audio mixer during the recording. I've also tried having OBS being recording while I try to use source record, I still don't get any audio in the source record. My settings: image

Log file doesn't seem to indicate anything but very little is said about audio.

04:42:23.274: Output 'Source Record 2': stopping
04:42:23.274: Output 'Source Record 2': Total frames output: 529
04:42:23.274: Output 'Source Record 2': Total drawn frames: 565
04:42:23.288: warning: 2 frames left in the queue on closing
04:44:29.104: ---------------------------------
04:44:29.104: [x264 encoder: 'Source Record 2'] preset: ultrafast
04:44:29.104: [x264 encoder: 'Source Record 2'] settings:
04:44:29.104:   rate_control: CBR
04:44:29.104:   bitrate:      2500
04:44:29.104:   buffer size:  2500
04:44:29.104:   crf:          23
04:44:29.104:   fps_num:      60
04:44:29.104:   fps_den:      1
04:44:29.104:   width:        608
04:44:29.104:   height:       1080
04:44:29.104:   keyint:       250
04:44:29.104: 
04:44:29.110: ---------------------------------
04:44:29.110: [FFmpeg aac encoder: 'Source Record 2'] bitrate: 128, channels: 2, channel_layout: stereo
04:44:29.110: 
04:44:29.116: [ffmpeg muxer: 'Source Record 2'] Writing file 'C:\Users\tuba\Videos/2022-12-05 04-44-29.mkv'...
04:44:40.815: User removed filter 'Source Record 2' (source_record_filter) from source '[M] Cam 1 Stack Mirror With Caption 9:16'

I'm also running into an issue where it's not finishing the recording. You can see there "2 frames left in the queue on closing". If I try and delete the recording that's already done (also playable in VLC), windows tells me the file is open by "obs-ffmpeg-mux.exe".

I'm running OBS 29.0 beta 2.