rdp / screen-capture-recorder-to-video-windows-free

a free open source windows "screen capture" device and recorder (also allows VLC/ffmpeg and others to capture/stream desktop/audio)
https://github.com/rdp/screen-capture-recorder-to-video-windows-free/releases
Other
2.06k stars 456 forks source link

Dropping frames due to too big video input while being 1920x1080 input and stream #136

Open HeyaGlitz opened 3 years ago

HeyaGlitz commented 3 years ago

When I try recording Rainbow Six Siege in borderless fullscreen using screen-capture-recorder + ffmpeg, I get these errors [dshow @ 00000297d9d3d600] real-time buffer [screen-capture-recorder] [video input] too full or near too full (545% of size: 3041280 [rtbufsize parameter])! frame dropped! Last message repeated 69 times.

rdp commented 3 years ago

Encoding can't keep up you could try a different codec x264 ultrafast comes to mind...

On Wednesday, August 19, 2020, ItzRiotz notifications@github.com wrote:

When I try recording Rainbow Six Siege in borderless fullscreen using screen-capture-recorder + ffmpeg, I get these errors [dshow @ 00000297d9d3d600] real-time buffer [screen-capture-recorder] [video input] too full or near too full (545% of size: 3041280 [rtbufsize parameter])! frame dropped! Last message repeated 69 times.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.< https://ci3.googleusercontent.com/proxy/ablumLdha_mG_SvDowUCWXgQ62mZMU39eYTbdiTk9PVYY-9qk696RxbRY1IrxqTfz2D5CE1Gr8kM4RX0K5yREXoUFLNy9ba6MHuhY-loHXCHrOEIPJTPhOfIqIF_astbmziX83nmdEVEZKhGtHD8wE63IIVQPl7Gomu9XeVXC2pDPHOgleVxx8z8-Y2b8WzrMhy9L5W8s3N2zBZIuxEdzj-Yv1A=s0-d-e1-ft#https://github.com/notifications/beacon/AAADBUFHZUNILFTCTMTPHS3SBRIGPA5CNFSM4QFNTL5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KFJ7FGA.gif>

HeyaGlitz commented 3 years ago

Tried ffmpeg -f dshow -i video="screen-capture-recorder" -r 30 -c:v libx264 -preset ultrafast test.mp4 but get the exact same error.

rdp commented 3 years ago

Should work, here's some more examples, it's the best I can provide, thanks! https://trac.ffmpeg.org/wiki/Encode/H.264

On 8/21/20, ItzRiotz notifications@github.com wrote:

Tried ffmpeg -f dshow -i video="screen-capture-recorder" -r 30 -c:v libx264 -preset ultrafast test.mp4 but get the exact same error.

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/136#issuecomment-678390231

ranjanpr commented 3 years ago

Try setting rtbufsize for video in ffmpeg command parameters should resolve this. e.g.

ffmpeg.exe -rtbufsize 1500M -f dshow -framerate 30 -i video="screen-capture-recorder":audio="Microphone (Realtek Audio)" -c:v libx264 -r 30 -preset ultrafast -tune zerolatency -crf 28 -pix_fmt yuv420p "test.mp4"

Of course this means your system should have enough RAM for ffmpeg to use as video buffer. Above works well for 4K recording @15fps. You can also play around with changing to lower framerates.