You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Let the user choose which installed graphics card to use for
decoding HW_DE_DEVICE_SET and/or encoding HW_EN_DEVICE_SET Possible options are /dev/dri/renderD128 for the first, /dev/dri/renderD129 for the second, and so on.
This commit is contained in:
@@ -1178,8 +1178,8 @@ void FFmpegWriter::open_video(AVFormatContext *oc, AVStream *st)
|
||||
#if IS_FFMPEG_3_2
|
||||
#if defined(__linux__)
|
||||
if (hw_en_on && hw_en_supported) {
|
||||
// Use the hw device given in the environment variable HW_DEVICE_SET or the default if not set
|
||||
char *dev_hw = getenv( "HW_DEVICE_SET" );
|
||||
// Use the hw device given in the environment variable HW_EN_DEVICE_SET or the default if not set
|
||||
char *dev_hw = getenv( "HW_EN_DEVICE_SET" );
|
||||
// Check if it is there and writable
|
||||
if( dev_hw != NULL && access( dev_hw, W_OK ) == -1 ) {
|
||||
dev_hw = NULL; // use default
|
||||
|
||||
Reference in New Issue
Block a user