-
-
Notifications
You must be signed in to change notification settings - Fork 863
Add nvidia cuda hardware accelerated decoding/encoding support #480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Rob-Otman
wants to merge
12
commits into
C4illin:main
Choose a base branch
from
Rob-Otman:add-hardware-encode-ffmpeg
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6cca431
feat: add NVENC hardware encoding support for FFmpeg
Rob-Otman f250451
feat: add CUDA hardware acceleration with ffprobe codec detection
Rob-Otman db3acff
feat: add NVIDIA GPU availability checking and hardware acceleration β¦
Rob-Otman 0093109
fix: ensure GPU availability is checked before using hardware accelerβ¦
Rob-Otman 53d576d
Merge pull request #1 from Rob-Otman/add-hardware-encode-ffmpeg
Rob-Otman 947be70
refactor: improve formatting of mock callbacks in ffmpeg tests
Rob-Otman 7119ff3
docs: update README with enhanced deployment instructions and environβ¦
Rob-Otman d141551
Merge remote-tracking branch 'upstream/main'
Rob-Otman 572bac9
Merge branch 'main' into add-hardware-encode-ffmpeg
Rob-Otman c9b43e1
docs: enhance README with detailed NVIDIA GPU hardware acceleration iβ¦
Rob-Otman 5ec86d6
refactor: update codec detection logic to focus on container formats
Rob-Otman f71d555
Merge branch 'main' into add-hardware-encode-ffmpeg
Rob-Otman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't we have a list of all formats that potentially supports instead. It should only be all video container formats right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried that at first but file types like .mkv can contain virtually any codec and .mp4 can contain H.264, H.265, MPEG-2, AV1 etc. so many formats we can not know without ffprobe if has a cuda supported codec.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes and then instead of skipping all image formats we skip everything that isn't a container. And we use ffprobe on mkv, mp4 etc.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think my current approach is preferable because it only skips definitively non-video formats (images) and lets ffprobe handle codec detection for all video files. File extensions can be changed/wrong but ffprobe reading the file headers is very accurate assurance that the file is supported.
I'm open to change to your approach if you want, this is just my thinking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But FFmpeg support almost 500 file extensions and of them only a handful is a container format. I don't mean that we should remove FFprobe just changing it from an image blacklist to a container whitelist :)