forked from FFmpeg/FFmpeg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ffmpeg: Introduce 'cuda' hwaccel and deprecate 'cuvid'
We want to switch to using the generic hwaccel codepath but doing that introduces a requirement to pass '-hwaccel_output_format cuda' on the command line to turn on full transcoding. That breaks compatibility, so we'd rather deprecate than cut over directly. But this change doesn't seem to be working. I can specify one of the two hwaccels but the 'cuda' one doesn't seem to work. The context does not get shared between the decoder and encoder. If I reverse the declaration order of the two hwaccels, then 'cuda' works and 'cuvid' does not (cuvid_init isn't even called). I assume this is related to having both of them say they handle the same pix_fmt.
- Loading branch information
Showing
3 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,7 @@ enum HWAccelID { | |
HWACCEL_VIDEOTOOLBOX, | ||
HWACCEL_QSV, | ||
HWACCEL_VAAPI, | ||
HWACCEL_CUDA, | ||
HWACCEL_CUVID, | ||
}; | ||
|
||
|
This file contains 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 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