gpu detection #39

Closed
opened 2025-12-19 23:28:50 +01:00 by Anri · 2 comments
Owner

Automatically detect if we can use GPU to reencode the video

Automatically detect if we can use GPU to reencode the video
Author
Owner

We could use the command : ffmpeg -benchmark -f lavfi -i testsrc2=size=1920x1080:rate=60 \ -t 5 -c:v libx264 -f null - and replacing the libx264 with the encoder with wanna test (note that libx264 and so on are non-free so on some systems, they are not present)

After, we just check the return code and if != 0, encoder isn't supported!

We could use the command : `ffmpeg -benchmark -f lavfi -i testsrc2=size=1920x1080:rate=60 \ -t 5 -c:v libx264 -f null -` and replacing the `libx264` with the encoder with wanna test (note that libx264 and so on are non-free so on some systems, they are not present) After, we just check the return code and if != 0, encoder isn't supported!
Author
Owner

introduced in 1eac169d00

introduced in 1eac169d005d7851c62d6363eaa69f9a713625e9
Anri closed this issue 2026-01-31 13:19:48 +01:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Anri/dsr#39
No description provided.