has anyone here tried using ffmpeg to record their hdmi capture cards? i've been dabbling with it, but i'm having major issues with it. i wanted to ditch obs because of the duplicate frame issue but i can't seem to avoid it now.
i'm getting duplicate frames in my capture despite having vsync set to 0 and fps_mode set to passthrough (the dupes aren't being reported in ffmpeg), i keep getting "non monotonus dts" warnings during capture, and i am also getting corrupted frames when importing the captured video into davinci resolve. the duplicate frames is what's causing the glitching.
[Attachment 91257 - Click to enlarge]
is there a fix for this? my computer is more than capable of capturing in real time.
the reason why I'm using ffmpeg is because I cannot record 4k60 4:4:4 with OBS without massive duplicate frames and encoder overload even though my computer should be more than capable of doing so. OBS gives me duplicate frames regardless of settings though, it's a longstanding issue with capture cards.
vsync=1 and fps_mode cfr reports duplicate frames. fps_mode cfr gives me drops and dupes. I'm getting them every few seconds, sometimes every few minutes, and sometimes its several frames at a time. I know it's not noticeable by most people, but I'm sensitive to them and my pc should be more than capable of capturing with zero duplicate frames.
here's my command:
specs:Code:ffmpeg -hide_banner -rtbufsize 2G -f dshow -video_size 2560x1440 -framerate 59.9402 -pix_fmt bgr24 -video_pin_name 0 -audio_pin_name 2 -vsync 0 -fflags +genpts -i video="AVerMedia HD Capture GC573 1":audio="AVerMedia HD Capture GC573 1" -colorspace:v "bt709" -color_primaries:v "bt709" -color_trc:v "bt709" -color_range:v "tv" -c:v hevc_nvenc -pix_fmt yuv444p -gpu any -g 30 -rc vbr -cq 16 -qmin 16 -qmax 16 -b:v 0K -b_ref_mode 1 -spatial_aq 1 -temporal_aq 1 -aq-strength 15 -sc_threshold 40 -bf 2 -b_ref_mode each -i_qfactor 0.75 -b_qfactor 1.1 -refs 3 -keyint_min 25 -qcomp 0.6 -qblur 0.5 -surfaces 64 -preset p1 -profile rext -c:a copy -f segment -segment_time 9999999999 -strftime 1 -metadata DEVICE="AVerMedia Live Gamer 4K" -metadata:s:v:0 title="Game Video [AVerMedia Live Gamer 4K]" -metadata:s:a:0 title="Game Audio [AVerMedia Live Gamer 4K]" -metadata:s:a:1 title="Mic Audio" "F:\ffmpeg recordings\%%Y-%%m-%%d_%%H-%%M-%%S.mkv"
CPU - Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
GPU - Gigabyte NVIDIA GeForce RTX 2070 8 GB
RAM - G.SKILL TridentZ RGB Series 64GB DDR4 3600MHz
Capture Card - Avermedia Live Gamer 4K (GC573)
i asked about this on another site. someone recommended me use either ddagrab or gfxcapture because "dshow is ancient". those are basically just screen recorders. i'm screen recording a preview. that's not practical for me, i want to record in the resolution and framerate my console is outputting.
+ Reply to Thread
Results 1 to 4 of 4
-
Last edited by ENunn; 19th Feb 2026 at 00:13.
-
try this - ffmpeg -f dshow -video_size 3840x2160 -framerate 60 -i video="AVerMedia HD Capture GC573 1" -c:v hevc_nvenc -preset lossless -pix_fmt p010 -an -vsync 0 -rtbufsize 2G output.mkv
Key parameters:
-video_size 3840x2160: Sets 4K resolution (adjust if needed).
-framerate 60: Captures at 60 FPS (supports 4K60).
-i video="AVerMedia HD Capture GC573 1": Uses the correct device name (verify with ffmpeg -list_devices true -f dshow -i dummy).
-c:v hevc_nvenc: Uses NVIDIA's HEVC encoder for efficient lossless or high-quality encoding.
-preset lossless: Enables lossless capture (use lossless or medium for balanced quality).
-pix_fmt p010: Captures HDR content in 10-bit format (critical for HDR).
-an: Disables audio capture (add -c:a copy to include audio).
-rtbufsize 2G: Increases buffer size to prevent frame drops.
⚠️ Note: The card may report input as yuyv422 or yuv422p instead of p010, even when HDR is active. This is a known limitation. Use ffprobe -f dshow -i video="AVerMedia HD Capture GC573 1" to verify supported formats.
For lossless 4:4:4 capture, ensure the source supports it and use:
-c:v h264_nvenc -pix_fmt yuv444p -preset lossless
However, 4:4:4 is not consistently supported by the GC573 via dshow, and may require testing with specific source content.
For audio, use:
-i video="AVerMedia HD Capture GC573 1":audio="AVerMedia HD Capture GC573 1"
to include both HDMI and mic audio.
Tip: Use FFmpeg 4.2.2 on Windows to avoid audio lag and crackling issues reported in newer versions.Last edited by october262; 19th Feb 2026 at 04:29.
-
Last edited by Nimble; 24th Feb 2026 at 05:35.
-
you got hdr working? wouldn't this just convert yuv422 to p010? the recorded video looks fine but that kinda concerns me for some reason.
anyways i'm not recording losslessly so i changed some settings around. but i'm still getting dropped frames.
[Attachment 91266 - Click to enlarge]
buttttt....
i didn't know there was a driver update. did a test recording, 16 minutes without a drop, at least with recording 4k60 hdr10. so that's a lot more stable.
however, i'm still getting dupes when i record 4:4:4 1440p. i don't get it. there's no reason why i should be getting dupes, my pc is more than capable. my new command is this:
is there anything else i can do? or is this an issue with ffmpeg?Code:ffmpeg -hide_banner -rtbufsize 2G -f dshow -video_size 2560x1440 -framerate 59.9402 -pix_fmt bgr24 -video_pin_name 0 -audio_pin_name 2 -i video="AVerMedia HD Capture GC573 1":audio="AVerMedia HD Capture GC573 1" -c:v hevc_nvenc -pix_fmt yuv444p -rc vbr -cq 16 -qmin 16 -qmax 16 -b:v 0K -preset p1 -profile rext -c:a copy -f segment -segment_time 9999999999 -strftime 1 "F:\ffmpeg recordings\%%Y-%%m-%%d_%%H-%%M-%%S.mkv"
i think i figured out why resolve is glitching. i think its because of the -bf option. took it out, and it seems like it's fixed. that's odd.Last edited by ENunn; 19th Feb 2026 at 13:28.
Similar Threads
-
Question how to add time duration for ffmpeg record/play
By jimdagys in forum AudioReplies: 3Last Post: 26th Mar 2025, 06:55 -
Issues running FFMPEG-VVC
By imkira3 in forum Video ConversionReplies: 4Last Post: 7th Oct 2023, 15:46 -
record/stream live camera feed with ffmpeg on Raspberry Pi 2B+
By Andrei2 in forum Newbie / General discussionsReplies: 0Last Post: 27th Mar 2023, 02:12 -
QTGMC, VSpipe, and FFmpeg Issues
By cscad in forum RestorationReplies: 14Last Post: 2nd Mar 2023, 08:31 -
ffmpeg buffering issues
By Caidking in forum Video Streaming DownloadingReplies: 0Last Post: 14th Jul 2022, 19:02


Quote
