jump: make long flags use dash instead of underscore

This commit is contained in:
xfnw 2022-02-16 19:53:59 -05:00
parent 3a4e5528e6
commit 24e74f5dca
1 changed files with 8 additions and 8 deletions

View File

@ -63,14 +63,14 @@ parser = argparse.ArgumentParser(description='Modifies a video file to play at d
parser.add_argument('-i', type=str, help='the video file you want modified')
parser.add_argument('--url', type=str, help='A youtube url to download and process')
parser.add_argument('-o', type=str, default="", help="the output file. (optional. if not included, it'll just modify the input file name)")
parser.add_argument('--silent_threshold', type=float, default=0.03, help="the volume amount that frames' audio needs to surpass to be consider \"sounded\". It ranges from 0 (silence) to 1 (max volume)")
parser.add_argument('--sounded_speed', type=float, default=1.75, help="the speed that sounded (spoken) frames should be played at. Typically 1.")
parser.add_argument('--silent_speed', type=float, default=7.50, help="the speed that silent frames should be played at. 999999 for jumpcutting.")
parser.add_argument('--frame_margin', type=float, default=2, help="some silent frames adjacent to sounded frames are included to provide context. How many frames on either the side of speech should be included? That's this variable.")
parser.add_argument('--sample_rate', type=float, default=44100, help="sample rate of the input and output videos")
parser.add_argument('--frame_rate', type=float, default=30, help="frame rate of the input and output videos. optional... I try to find it out myself, but it doesn't always work.")
parser.add_argument('--frame_quality', type=int, default=9, help="quality of frames to be extracted from input video. 1 is highest, 31 is lowest, 3 is the default.")
parser.add_argument('--audio_only', default=False, action='store_true', help="outputs an audio file")
parser.add_argument('--silent-threshold', type=float, default=0.03, help="the volume amount that frames' audio needs to surpass to be consider \"sounded\". It ranges from 0 (silence) to 1 (max volume)")
parser.add_argument('--sounded-speed', type=float, default=1.75, help="the speed that sounded (spoken) frames should be played at. Typically 1.")
parser.add_argument('--silent-speed', type=float, default=7.50, help="the speed that silent frames should be played at. 999999 for jumpcutting.")
parser.add_argument('--frame-margin', type=float, default=2, help="some silent frames adjacent to sounded frames are included to provide context. How many frames on either the side of speech should be included? That's this variable.")
parser.add_argument('--sample-rate', type=float, default=44100, help="sample rate of the input and output videos")
parser.add_argument('--frame-rate', type=float, default=30, help="frame rate of the input and output videos. optional... I try to find it out myself, but it doesn't always work.")
parser.add_argument('--frame-quality', type=int, default=9, help="quality of frames to be extracted from input video. 1 is highest, 31 is lowest, 3 is the default.")
parser.add_argument('--audio-only', default=False, action='store_true', help="outputs an audio file")
args = parser.parse_args()