mirror of https://github.com/stashapp/stash.git
Fix audio not in video previews (#2547)
This commit is contained in:
parent
1964481ff2
commit
ce175dcfc6
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue