E533 Add hardware acceleration by webysther · Pull Request #525 · C4illin/ConvertX · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@webysther
Copy link
@webysther webysther commented Jan 28, 2026

Recording2026-01-280348031-ezgif com-video-to-gif-converter

make this pr obsolete: #480
fix #523
add drivers, need configuration to fix #518

Testing: ghcr.io/webysther/convertx:hwa

docker compose for intel:

services:
  convertx:
    image: ghcr.io/webysther/convertx:hwa
    environment:
      FFMPEG_ARGS: -hwaccel qsv
    devices:
      - /dev/dri:/dev/dri
    ...

Same as documentation in lsio for intel, amd and others. We need volunteer to test with gpu.

Using Lsio base
Suport for AMD, Intel, Nvidia and others
  Parse FFMPEG_ARGS and FFMPEG_OUTPUT_ARGS into arrays
  Detect 'qsv' and 'cuda' flags and map codecs to
  Hardware encoders (h264_qsv/hevc_qsv and h264_nvenc/hevc_nvenc)
  Make codec_short mutable to allow reassignment
  Log constructed ffmpeg command for visibility
  Enables runtime custom ffmpeg args and hw encoder selection
  Improves deployment flexibility and performance tuning
Copy link
@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 issues found across 2 files

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="Dockerfile">

<violation number="1" location="Dockerfile:52">
P2: Hard-coded x86_64 multiarch paths in buildstage and LIBVA_DRIVERS_PATH break arm64 builds and VAAPI driver discovery when building for aarch64.</violation>
</file>

<file name="src/converters/ffmpeg.ts">

<violation number="1" location="src/converters/ffmpeg.ts:751">
P2: CUDA hardware acceleration cases incorrectly select Intel QSV encoders instead of NVIDIA NVENC encoders.</violation>

<violation number="2" location="src/converters/ffmpeg.ts:761">
P2: Incorrect removal of hardware-accel args: slice keeps only the element before -hwaccel and drops all other args instead of removing -hwaccel and its value.</violation>
</file>

Since this is your first cubic review, here's how it works:

  • cubic automatically reviews your code and comments on bugs and improvements
  • Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
  • Ask questions if you need clarification on any suggestion

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

webysther and others added 3 commits January 28, 2026 05:00
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
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.

[Feature Request] Add igpu support inside docker image Intel VAAPI hardware acceleration fails on Synology (DS720+) - Missing drivers in image?

1 participant

0