Skip to content

Commit fa36987

Browse files
authored
Merge pull request #1594 from FrostKiwi/master
Fix #1591 ffmpeg 8 error: `init_hw_device` for `hwupload` with VAAPI
2 parents a57af91 + aec2c29 commit fa36987

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

go-vod/transcoder/stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ func (s *Stream) transcodeArgs(startAt float64, isHls bool) []string {
370370
// Check whether hwaccel should be used
371371
if s.c.VAAPI {
372372
CV = ENCODER_VAAPI
373-
extra := "-hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi"
373+
extra := "-hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -init_hw_device vaapi=memories:/dev/dri/renderD128 -filter_hw_device memories"
374374
args = append(args, strings.Split(extra, " ")...)
375375
} else if s.c.NVENC {
376376
CV = ENCODER_NVENC

0 commit comments

Comments
 (0)