Skip to content

Commit

Permalink
removed scaling option
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuiancu committed Mar 22, 2021
1 parent 8f2607d commit 6af48ea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mosh.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

parser = argparse.ArgumentParser()
parser.add_argument('input_video', type=str, help='File to be moshed')
parser.add_argument('--output_width', default=1920, type=int, help='Width of output video in pixels.')
parser.add_argument('--start_frame', '-s', default=0, type=int, help='start frame of the mosh')
parser.add_argument('--end_frame', '-e', default=-1, type=int, help='end frame of the mosh')
parser.add_argument('--fps', '-f', default=30, type=int, help='fps to convert initial video to')
Expand All @@ -16,7 +15,6 @@
args = parser.parse_args().__dict__

input_video = args['input_video']
output_width = args['output_width']
start_frame = args['start_frame']
end_frame = args['end_frame']
fps = args['fps']
Expand Down Expand Up @@ -113,7 +111,6 @@ def mosh_delta_repeat(n_repeat):
# export the video
subprocess.call('ffmpeg -loglevel error -y -i ' + output_avi + ' ' +
' -crf 18 -pix_fmt yuv420p -vcodec libx264 -acodec aac -b 10000k -r ' + str(fps) + ' ' +
' -vf "scale=' + str(output_width) + ':-2:flags=lanczos" ' +
output_video, shell=True)

cleanup()

0 comments on commit 6af48ea

Please # to comment.