mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Fix audio not in video previews (#2547)
This commit is contained in:
@@ -52,12 +52,12 @@ func Splice(concatFile string, options SpliceOptions) ffmpeg.Args {
|
|||||||
args = args.VideoCodec(options.VideoCodec)
|
args = args.VideoCodec(options.VideoCodec)
|
||||||
args = args.AppendArgs(options.VideoArgs)
|
args = args.AppendArgs(options.VideoArgs)
|
||||||
|
|
||||||
// if audio codec is not provided, then skip it
|
// if audio codec is not provided, then use copy
|
||||||
if options.AudioCodec == "" {
|
if options.AudioCodec == "" {
|
||||||
args = args.SkipAudio()
|
options.AudioCodec = ffmpeg.AudioCodecCopy
|
||||||
} else {
|
|
||||||
args = args.AudioCodec(options.AudioCodec)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
args = args.AudioCodec(options.AudioCodec)
|
||||||
args = args.AppendArgs(options.AudioArgs)
|
args = args.AppendArgs(options.AudioArgs)
|
||||||
|
|
||||||
args = args.Format(options.Format)
|
args = args.Format(options.Format)
|
||||||
|
|||||||
Reference in New Issue
Block a user