Skip to content

Commit

Permalink
Bump version to 21w50a
Browse files Browse the repository at this point in the history
change `--output_dir` to `--download_dir`
change video bitrate default to 10m
  • Loading branch information
WyattBlue committed Dec 13, 2021
1 parent 6d8da8c commit 09a2cf3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions auto_editor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'''__init__.py'''

__version__ = '21.49.1'
version = '21w49a'
__version__ = '21.50.1'
version = '21w50a'
4 changes: 2 additions & 2 deletions auto_editor/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def main_options(parser):
help='set the strength of the blur applied to a frame before being compared.')

parser.add_argument('urlOps', nargs=0, action='grouping')
parser.add_argument('--output_dir', type=str, group='urlOps',
parser.add_argument('--download_dir', type=str, group='urlOps',
default=None,
help='the directory where the downloaded file is placed.')
parser.add_argument('--limit_rate', '-rate', default='3m',
Expand All @@ -61,7 +61,7 @@ def main_options(parser):
help='check the website certificate before downloading.')

parser.add_argument('exportMediaOps', nargs=0, action='grouping')
parser.add_argument('--video_bitrate', '-b:v', default='5m', group='exportMediaOps',
parser.add_argument('--video_bitrate', '-b:v', default='10m', group='exportMediaOps',
help='set the number of bits per second for video.')
parser.add_argument('--audio_bitrate', '-b:a', default='unset', group='exportMediaOps',
help='set the number of bits per second for audio.')
Expand Down
2 changes: 1 addition & 1 deletion auto_editor/config.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Auto-Editor default configuration file

# exportMediaOps
auto-editor.exportMediaOps.video_bitrate = '5m' # '5m'
auto-editor.exportMediaOps.video_bitrate = '10m' # '10m'
auto-editor.exportMediaOps.audio_bitrate = 'unset' # 'unset'
auto-editor.exportMediaOps.sample_rate = None # None
auto-editor.exportMediaOps.video_codec = 'auto' # 'auto'
Expand Down
4 changes: 2 additions & 2 deletions auto_editor/validate_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def download_video(my_input, args, ffmpeg, log):
outtmpl = outtmpl[:-4]
outtmpl += '.mp4'

if(args.output_dir is not None):
outtmpl = os.path.join(args.output_dir, outtmpl)
if(args.download_dir is not None):
outtmpl = os.path.join(args.download_dir, outtmpl)

try:
import yt_dlp
Expand Down

0 comments on commit 09a2cf3

Please sign in to comment.