concat支持annexb
This commit is contained in:
parent
52c2df8b65
commit
09e0f5f3be
@ -323,8 +323,13 @@ class FfmpegTask(object):
|
|||||||
else:
|
else:
|
||||||
output_args.append(audio_output_str)
|
output_args.append(audio_output_str)
|
||||||
output_args += AUDIO_ARGS
|
output_args += AUDIO_ARGS
|
||||||
|
if self.annexb:
|
||||||
|
output_args.append("-bsf:v")
|
||||||
|
output_args.append("h264_mp4toannexb")
|
||||||
|
output_args.append("-bsf:a")
|
||||||
|
output_args.append("setts=pts=DTS")
|
||||||
output_args.append("-f")
|
output_args.append("-f")
|
||||||
output_args.append("mp4")
|
output_args.append("mpegts" if self.annexb else "mp4")
|
||||||
_filter_args = [] if len(filter_args) == 0 else ["-filter_complex", ";".join(filter_args)]
|
_filter_args = [] if len(filter_args) == 0 else ["-filter_complex", ";".join(filter_args)]
|
||||||
return args + input_args + _filter_args + output_args + [self.get_output_file()]
|
return args + input_args + _filter_args + output_args + [self.get_output_file()]
|
||||||
elif self.task_type == 'copy':
|
elif self.task_type == 'copy':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user