[Python] How to Pause and Resume Screen Recording in FFmpeg on Windows?

Discussão em 'Python' iniciado por Stack, Março 24, 2025.

  1. Stack

    Stack Membro Participativo

    I use FFmpeg on Windows to record my screen. I want to pause and resume the recording properly. I know that pressing Ctrl + S, Pause key on the Keyboard, or suspending FFmpeg via Resource Monitor stops the process, but screen recording conntinues in the background. Here is an example of the command I use for screen recording:

    ffmpeg -f gdigrab -probesize 100M -i desktop -f dshow -channel_layout stereo -i audio="Microphone (2- High Definition Audio Device)" output.mp4

    How can I pause recording completely so that no frames are captured during the pause and resume it seamlessly?

    Continue reading...

Compartilhe esta Página