Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not always working on windows 2012 #19

Open
git-cos opened this issue Apr 1, 2017 · 10 comments
Open

Not always working on windows 2012 #19

git-cos opened this issue Apr 1, 2017 · 10 comments

Comments

@git-cos
Copy link

git-cos commented Apr 1, 2017

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
Copy link
Owner

rdp commented Apr 1, 2017 via email

@git-cos
Copy link
Author

git-cos commented Apr 3, 2017

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
Copy link

astral2k5 commented Apr 3, 2017

@rdp
Copy link
Owner

rdp commented Apr 4, 2017 via email

@git-cos
Copy link
Author

git-cos commented Sep 22, 2017

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
Copy link
Owner

rdp commented Sep 22, 2017 via email

@git-cos
Copy link
Author

git-cos commented Sep 22, 2017

@rdp exactly

@rdp
Copy link
Owner

rdp commented Sep 22, 2017 via email

@git-cos
Copy link
Author

git-cos commented Sep 26, 2017

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
Copy link
Owner

rdp commented Sep 26, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants