Search code examples
ffmpegdirectshow

FFMPEG: is it possible to record 1920x1080 screen with DSHOW?


I am currently working on a screen recorder in VB.net and i need ffmpeg to record my screen. I have the following ffmpeg code now:

ffmpeg.exe -f dshow -framerate 30 -i video="UScreenCapture":audio="Stereo Mix (Realtek High Definition Audio)" -filter_complex amix=inputs=1 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -acodec pcm_s16le "output result file.mkv"

This works fine, but it only records a part of my screen. I already tried the registry keys (They weren't made, so i made them myself), but it also didn't work. Does anyone know how to do it?

thanks in advance for helping me.


Solution

  • just wanted to share this with you who have the same problem.

    Problem solved

    just right-click ffmpeg.exe. 2: Select properties 3: Select the compatibility 4: Check The High DPI windows thing and you're done