mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +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:
@@ -43,7 +43,7 @@ type Manager struct {
|
||||
Paths *paths.Paths
|
||||
|
||||
FFMpeg *ffmpeg.FFMpeg
|
||||
FFProbe ffmpeg.FFProbe
|
||||
FFProbe *ffmpeg.FFProbe
|
||||
StreamManager *ffmpeg.StreamManager
|
||||
|
||||
JobManager *job.Manager
|
||||
@@ -300,7 +300,7 @@ func (s *Manager) Setup(ctx context.Context, input SetupInput) error {
|
||||
}
|
||||
|
||||
func (s *Manager) validateFFmpeg() error {
|
||||
if s.FFMpeg == nil || s.FFProbe == "" {
|
||||
if s.FFMpeg == nil || s.FFProbe == nil {
|
||||
return errors.New("missing ffmpeg and/or ffprobe")
|
||||
}
|
||||
return nil
|
||||
@@ -400,7 +400,7 @@ func (s *Manager) GetSystemStatus() *SystemStatus {
|
||||
}
|
||||
|
||||
ffprobePath := ""
|
||||
if s.FFProbe != "" {
|
||||
if s.FFProbe != nil {
|
||||
ffprobePath = s.FFProbe.Path()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user