Skip to content

fix: video conversion freeze & add Intel QSV + hardware detection#760

Open
Roxy-0304 wants to merge 2 commits into
Tichau:integrationfrom
Roxy-0304:integration
Open

fix: video conversion freeze & add Intel QSV + hardware detection#760
Roxy-0304 wants to merge 2 commits into
Tichau:integrationfrom
Roxy-0304:integration

Conversation

@Roxy-0304
Copy link
Copy Markdown

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 StandardOutput pipe buffer filled up, blocking the ffmpeg process. Fixed by using BeginOutputReadLine() / BeginErrorReadLine() to asynchronously read both stdout and stderr simultaneously, preventing buffer overflow.

    Modified file: ConversionJobs/ConversionJob_FFMPEG.cs

New 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 — Added QSV to HardwareAccelerationMode enum
    • ValueConverters/HardwareAccelerationModeToString.cs — Added localized string mapping for QSV
    • Properties/Resources.resx / Resources.Designer.cs — Added corresponding resource strings
  • Add hardware acceleration auto-detection system: Added HardwareDetector module 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

Roxy-0304 added 2 commits May 19, 2026 17:56
- 新增 HardwareAccelerationMode 枚举成员 QSV
- 实现 HardwareDetector 类以自动检测 GPU 型号和编码支持
- 修改 ConversionJob_FFMPEG.cs 以解决视频转换卡住问题
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant