fix: video conversion freeze & add Intel QSV + hardware detection#760
Open
Roxy-0304 wants to merge 2 commits into
Open
fix: video conversion freeze & add Intel QSV + hardware detection#760Roxy-0304 wants to merge 2 commits into
Roxy-0304 wants to merge 2 commits into
Conversation
- 新增 HardwareAccelerationMode 枚举成员 QSV - 实现 HardwareDetector 类以自动检测 GPU 型号和编码支持 - 修改 ConversionJob_FFMPEG.cs 以解决视频转换卡住问题
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug Fix
Fix video conversion hanging issue: Converting video to 720p resolution would cause the program to freeze. The root cause was that ffmpeg's
StandardOutputpipe buffer filled up, blocking the ffmpeg process. Fixed by usingBeginOutputReadLine()/BeginErrorReadLine()to asynchronously read both stdout and stderr simultaneously, preventing buffer overflow.Modified file:
ConversionJobs/ConversionJob_FFMPEG.csNew Features
Add Intel QSV hardware acceleration support: Added Intel Quick Sync Video as a new hardware acceleration option alongside existing NVIDIA CUDA and AMD AMF, for MP4/MKV H.264 video encoding acceleration.
Modified files:
Helpers.cs— AddedQSVtoHardwareAccelerationModeenumValueConverters/HardwareAccelerationModeToString.cs— Added localized string mapping for QSVProperties/Resources.resx/Resources.Designer.cs— Added corresponding resource stringsAdd hardware acceleration auto-detection system: Added
HardwareDetectormodule that automatically detects GPU model and hardware encoding support via WMI at startup, and recommends the optimal acceleration method by priority (NVENC > AMF > QSV).New file:
Helpers/HardwareDetector.cs