mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Add apple encoder and fix extra_hw_frames bug (#4986)
* Fixes format in full hw encoding to nv12 for cuda, vaapi and qsv now * Remove extra_hw_frames * Add apple transcoder support * Up the duration to discover decoding errors * yuv420p is not supported on intel --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -195,6 +195,20 @@ type FFMpegVersion struct {
|
||||
patch int
|
||||
}
|
||||
|
||||
// Gteq returns true if the version is greater than or equal to the other version.
|
||||
func (v FFMpegVersion) Gteq(other FFMpegVersion) bool {
|
||||
if v.major > other.major {
|
||||
return true
|
||||
}
|
||||
if v.major == other.major && v.minor > other.minor {
|
||||
return true
|
||||
}
|
||||
if v.major == other.major && v.minor == other.minor && v.patch >= other.patch {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// FFMpeg provides an interface to ffmpeg.
|
||||
type FFMpeg struct {
|
||||
ffmpeg string
|
||||
|
||||
Reference in New Issue
Block a user