mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Scan video orientation (#5189)
* Adjust video dimensions for side data rotation * Warn user when ffprobe version < 5. Only get rotation data on version >= 5
This commit is contained in:
@@ -31,7 +31,7 @@ var (
|
||||
|
||||
type ThumbnailEncoder struct {
|
||||
FFMpeg *ffmpeg.FFMpeg
|
||||
FFProbe ffmpeg.FFProbe
|
||||
FFProbe *ffmpeg.FFProbe
|
||||
ClipPreviewOptions ClipPreviewOptions
|
||||
vips *vipsEncoder
|
||||
}
|
||||
@@ -49,7 +49,7 @@ func GetVipsPath() string {
|
||||
return vipsPath
|
||||
}
|
||||
|
||||
func NewThumbnailEncoder(ffmpegEncoder *ffmpeg.FFMpeg, ffProbe ffmpeg.FFProbe, clipPreviewOptions ClipPreviewOptions) ThumbnailEncoder {
|
||||
func NewThumbnailEncoder(ffmpegEncoder *ffmpeg.FFMpeg, ffProbe *ffmpeg.FFProbe, clipPreviewOptions ClipPreviewOptions) ThumbnailEncoder {
|
||||
ret := ThumbnailEncoder{
|
||||
FFMpeg: ffmpegEncoder,
|
||||
FFProbe: ffProbe,
|
||||
|
||||
Reference in New Issue
Block a user