on-internet
← Community

Audio delay after resuming FFmpeg on Windows

Stack Overflow ·

I'm building a screen recording software for Windows using Python. I use FFmpeg for recording and psutil to pause and resume the process. Here is a sample of my code: import psutil import subprocess process = subprocess.Popen([ 'ffmpeg', '-y', '-rtbufsize', '100M', '-f', 'gdigrab', '-thread_queue_size', '1024', '-probesize', '50M', '-r', '24', '-draw_mouse', '1', '-video_size', '1920x1080', '-i', 'desktop', '-f', 'dshow', '-channel_layout', 'stereo', '-thread_queue_size', '1024', '-i', 'audio=Microphone (2- High Definition Audio Device)', # my audio device '-c:v', 'h264_nvenc', # encoding via

Comments

Sign in or sign up to comment and upvote.

No comments yet.