rdp / virtual-audio-capture-grabber-device

free audio capture device to capture all the "wave out sound" that is playing on your speakers (i.e. record what you hear) for Windows Vista+. Releases downloadable in this package:
https://github.com/rdp/screen-capture-recorder-to-video-windows-free
Other
578 stars 181 forks source link

Not always working on windows 2012 #19

Open git-cos opened 7 years ago

git-cos commented 7 years ago

Hi, first of all thanks for this good software.

I have an issue: I'm trying to record using "screen-capture-recorder" and "virtual-audio-capturer" with ffmpeg on Windows 2012 in a remote desktop connection. All works quite fine except for few things, the most important is that the video is not recorded if there's no audio. Only when there's something playing I have a full capture.

When I play the recorded file it seems that the video recording is starting from the beginning (when I launched the ffmpeg command) but also the audio starts at the same time, even if the original session I've started many seconds after. Also, if I stop the audio player in the original session for some time, the portion of the video is not recorded at all during that period. Off course in the recorded file video and audio are completely out of sync.

This is the ffmpeg command: C:\Users\Administrator>C:\Application\ffmpeg\bin\ffmpeg.exe -y -rtbufsize 1500M -f dshow -framerate 30 -i video="screen-capture-recorder" -rtbufsize 1500M -audio_buffer_size 100 -f dshow -i audio="virtual-audio-capturer" -acodec libmp3lame -bufsize 2048M -preset ultrafast capture_test_virtaudcap04.mp4 > test_log_virtaudcap04.txt 2>&1

The output is in attachment

Thanks a lot for any help

Cos test_log_virtaudcap04.txt

rdp commented 7 years ago

if you to -f dshow -i video=XX:audio=YY you might have better results sync wise. Yeah sorry known bug you have to play something else in the background, you can just play silence, funding welcome! Besides that, there's an async option in ffmpeg. That's about the end of my expertise. GL!

git-cos commented 7 years ago

Thanks rdp for your kind reply. Just a question: can you suggest me a way to generate silence from command line? I will go also to explore the async option.

Cos

astral2k5 commented 7 years ago

You should check this for more info on silence "generator" :) https://github.com/rdp/virtual-audio-capture-grabber-device/issues/10 https://blogs.msdn.microsoft.com/matthew_van_eerde/2008/12/10/sample-playing-silence-via-wasapi-event-driven-pull-mode/

rdp commented 7 years ago

https://blogs.msdn.microsoft.com/matthew_van_eerde/2008/12/10/sample-playing-silence-via-wasapi-event-driven-pull-mode/

On Mon, Apr 3, 2017 at 7:40 AM, astral2k5 notifications@github.com wrote:

You should check this for more info on silence "generator" :)

10

https://github.com/rdp/virtual-audio-capture-grabber-device/issues/10

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rdp/virtual-audio-capture-grabber-device/issues/19#issuecomment-291163504, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAw0HzLpEycIM5p9zq8z0Q3Ns_yfk4Eks5rsQTDgaJpZM4MwgtP .

git-cos commented 6 years ago

Hi, thanks for your kind help and sorry for taking long time to reply. I've tried the "silence generator" you suggest but with errors... I'm trying to record a RDP session so the "audio" is virtual.

c:\>silence.exe --list-devices
Active render endpoints found: 1
    Remote Audio

c:\>silence.exe --device "Remote Audio"
Press Enter to quit...
Got "feed me" event but IAudioClient::GetCurrentPadding reports buffer is full -
 glitch?
The thread terminated early - something bad happened
Thread HRESULT is 0x8000ffff

I cannot find a way to record the desktop and the audio (if no audio is playing).

Can you help me with this?

Thank

rdp commented 6 years ago

So silence isn't working?

On Fri, Sep 22, 2017 at 8:45 AM, git-cos notifications@github.com wrote:

Hi, thanks for your kind help and sorry for taking long time to reply. I've tried the "silence generator" you suggest but with errors... I'm trying to record a RDP session so the "audio" is virtual.

`c:>silence.exe --list-devices Active render endpoints found: 1 Remote Audio

c:>silence.exe --device "Remote Audio" Press Enter to quit... Got "feed me" event but IAudioClient::GetCurrentPadding reports buffer is full - glitch? The thread terminated early - something bad happened Thread HRESULT is 0x8000ffff`

I cannot find a way to record the desktop and the audio (if no audio is playing).

Can you help me with this?

Thank

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rdp/virtual-audio-capture-grabber-device/issues/19#issuecomment-331467498, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAw0KYY_KAwuHKTZ9Q9bnqzvA91qnK-ks5sk8f-gaJpZM4MwgtP .

git-cos commented 6 years ago

@rdp exactly

rdp commented 6 years ago

works if you play a youtube in the background?

On Fri, Sep 22, 2017 at 9:46 AM, git-cos notifications@github.com wrote:

@rdp https://github.com/rdp exactly

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rdp/virtual-audio-capture-grabber-device/issues/19#issuecomment-331484622, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAw0DHMro0tvFX_gQkWtXrx0pyqeaYuks5sk9ZRgaJpZM4MwgtP .

git-cos commented 6 years ago

If I play a youtube or something with sound it works. But if I stop the audio and I start again after some seconds, the audio will be played (in the recording) all attacched and the screen will be played normally but, off course, with audio completely out of sync (it means audio and video out of sync by seconds). Also, sometimes I start to record without sound and after I start to play a youtube clip: the recorded video will start only when the audio starts.

@rdp I ask you if we can have a professional help about this issue. Can I contact you in private?

Thanks again for your help

rdp commented 6 years ago

sure rogerdpack@gmail.com

On Tue, Sep 26, 2017 at 2:36 AM, git-cos notifications@github.com wrote:

If I play a youtube or something with sound it works. But if I stop the audio and I start again after some seconds, the audio will be played (in the recording) all attacched and the screen will be played normally but, off course, with audio completely out of sync (it means audio and video out of sync by seconds). Also, sometimes I start to record without sound and after I start to play a youtube clip: the recorded video will start only when the audio starts.

@rdp https://github.com/rdp I ask you if we can have a professional help about this issue. Can I contact you in private?

Thanks again for your help

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rdp/virtual-audio-capture-grabber-device/issues/19#issuecomment-332127509, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAw0O1mCVxTEeXL7alo0dFbPvDs-WPNks5smLeRgaJpZM4MwgtP .