mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
postprocess.merge: when we merge .ts to .mp4 we need to have bsf:a
fixes: #825
This commit is contained in:
parent
35691d85cc
commit
3818ee1ee9
@ -169,9 +169,13 @@ class postprocess(object):
|
|||||||
log.info("Merge audio and video into {0}".format(orig_filename))
|
log.info("Merge audio and video into {0}".format(orig_filename))
|
||||||
|
|
||||||
tempfile = u"{0}.temp".format(orig_filename)
|
tempfile = u"{0}.temp".format(orig_filename)
|
||||||
name = os.path.splitext(orig_filename)[0]
|
name, ext = os.path.splitext(orig_filename)
|
||||||
audio_filename = u"{0}.m4a".format(name)
|
|
||||||
arguments = ["-c:v", "copy", "-c:a", "copy", "-f", "mp4"]
|
arguments = ["-c:v", "copy", "-c:a", "copy", "-f", "mp4"]
|
||||||
|
if ext == ".ts":
|
||||||
|
audio_filename = u"{0}.audio.ts".format(name)
|
||||||
|
arguments += ["-bsf:a", "aac_adtstoasc"]
|
||||||
|
else:
|
||||||
|
audio_filename = u"{0}.m4a".format(name)
|
||||||
cmd = [self.detect, "-i", orig_filename, "-i", audio_filename]
|
cmd = [self.detect, "-i", orig_filename, "-i", audio_filename]
|
||||||
|
|
||||||
if self.merge_subtitle:
|
if self.merge_subtitle:
|
||||||
|
Loading…
Reference in New Issue
Block a user