Open GodOMG opened 3 months ago
In the underlying opencv 4.10.0 source code, I found the Cisco openh264 version 1.8 that corresponds to this version.
The latest version of openh264 that I downloaded before is not supported.
By copying the 1.8 version of openh264.dll to system32 or the current project's exe generation directory, I can use h264 encoding when I specify the use of ffmpeg backend recording, but the compression effect of the recording quality is still not very good.
Through testing, I found that no matter how I configured VideoWriter, when recording webCam at 640×480 resolution and 15FPS, the minimum bitrate was over 1000. And the FFMPEG backend does not support H264. MSMF backend H264 bit rate 4000+.
Environment
win 10 64bit .NET 8 opencvsharp 4.10.0.20240616 opencvsharp.Extensions 4.10.0.20240616 opencvsharp.runtime.win 4.10.0.20240616
MP4V:
H264
FFMPEG CLI Recording
I hope to record high-quality video files in real time like FFMPEG CLI records webCam (good compression and clear image quality)?
Is it that the file opencv_videoio_ffmpeg4100.dll does not have libx264 integrated? Do I need to manually compile opencv and include libx264 or Cisco's openh264 when integrating ffmpeg to make the ffmpeg backend support H264?