mirror of
https://github.com/owncast/owncast.git
synced 2025-11-03 04:27:18 +08:00
fix: universal Intel and AMD VA-API accelerated pipeline for FFmpeg 4 - 7 (#4022)
This commit is contained in:
@ -191,7 +191,7 @@ func (c *VaapiCodec) GlobalFlags() string {
|
||||
|
||||
// PixelFormat is the pixel format required for this codec.
|
||||
func (c *VaapiCodec) PixelFormat() string {
|
||||
return "vaapi_vld"
|
||||
return "vaapi"
|
||||
}
|
||||
|
||||
// Scaler is the scaler used for resizing the video in the transcoder.
|
||||
@ -201,7 +201,7 @@ func (c *VaapiCodec) Scaler() string {
|
||||
|
||||
// ExtraFilters are the extra filters required for this codec in the transcoder.
|
||||
func (c *VaapiCodec) ExtraFilters() string {
|
||||
return ""
|
||||
return "hwupload=extra_hw_frames=64,format=vaapi"
|
||||
}
|
||||
|
||||
// ExtraArguments are the extra arguments used with this codec in the transcoder.
|
||||
|
||||
Reference in New Issue
Block a user