feat(nks): only copy codec if source should be shortened

This commit is contained in:
Jakub Jezek 2020-05-13 11:43:06 +02:00
parent aa0ae99daa
commit cb12a83ff9
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3

View file

@ -190,6 +190,10 @@ class ExtractReviewCutUpVideo(pype.api.Extractor):
input_args.append("-t {:0.2f}".format(duration_sec))
input_args.append("-i {}".format(full_input_path))
# add copy audio video codec if only shortening clip
if "_cut-bigger" in tags:
output_args.append("-c:v copy")
# make sure it is having no frame to frame comprassion
output_args.append("-intra")