Producing streamable video from screen using gdigrab and ffmpeg.autogen libav wrapper
I’m working on creating a class that captures the screen, encodes it using H.264, and outputs it in a streamable format to a pipe. For this, I’m using the ffmpeg.autogen version 5.1.2.3 wrapper, along with the libav binaries from ffmpeg-n5.1-latest-win64-gpl-shared-5.1. Although I’m not an expert, I believe the following options are necessary to facilitate a streamable output: frag_keyframe, empty_moov, default_base_moof, and faststart.