feat(thumb): adding option to define custom input argument for FFmpeg (#2657)
This commit is contained in:
@@ -202,6 +202,8 @@ type (
|
||||
CustomNavItems(ctx context.Context) []CustomNavItem
|
||||
// CustomHTML returns the custom HTML settings.
|
||||
CustomHTML(ctx context.Context) *CustomHTML
|
||||
// FFMpegExtraArgs returns the extra arguments of ffmpeg thumb generator.
|
||||
FFMpegExtraArgs(ctx context.Context) string
|
||||
}
|
||||
UseFirstSiteUrlCtxKey = struct{}
|
||||
)
|
||||
@@ -406,6 +408,10 @@ func (s *settingProvider) FFMpegThumbSeek(ctx context.Context) string {
|
||||
return s.getString(ctx, "thumb_ffmpeg_seek", "00:00:01.00")
|
||||
}
|
||||
|
||||
func (s *settingProvider) FFMpegExtraArgs(ctx context.Context) string {
|
||||
return s.getString(ctx, "thumb_ffmpeg_extra_args", "")
|
||||
}
|
||||
|
||||
func (s *settingProvider) FFMpegThumbMaxSize(ctx context.Context) int64 {
|
||||
return s.getInt64(ctx, "thumb_ffmpeg_max_size", 10737418240)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user