Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/master-of-zen/Av1an
Browse files Browse the repository at this point in the history
  • Loading branch information
master-of-zen committed Apr 24, 2020
2 parents 163e7d2 + d1d4c8a commit 8290f51
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ With your own parameters:
Example: -a '-c:a libopus -b:a 64k'

-w --workers Overrides automatically set number of workers.
Example: Rav1e settings " ... --tile-rows 2 --tile-cols 2 ... " -t 3
Example: Rav1e settings " ... --tile-rows 2 --tile-cols 2 ... " -w 3

-s --scenes Path to file with scenes timestamps.
If given `0` spliting will be ignored
Expand Down
9 changes: 8 additions & 1 deletion av1an.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import sys
import os
import shutil
import atexit
from distutils.spawn import find_executable
from ast import literal_eval
from psutil import virtual_memory
Expand All @@ -28,6 +29,12 @@
print('Python 3.7+ required')
sys.exit()

if sys.platform == 'linux':
def restore_term():
os.system("stty sane")

atexit.register(restore_term)


class Av1an:

Expand Down Expand Up @@ -58,7 +65,7 @@ def arg_parsing(self):
parser.add_argument('--encoder', '-enc', type=str, default='aom', help='Choosing encoder')
parser.add_argument('--workers', '-w', type=int, default=0, help='Number of workers')
parser.add_argument('--audio_params', '-a', type=str, default='-c:a copy', help='FFmpeg audio settings')
parser.add_argument('--threshold', '-tr', type=float, default=30, help='PySceneDetect Threshold')
parser.add_argument('--threshold', '-tr', type=float, default=50, help='PySceneDetect Threshold')
parser.add_argument('--temp', type=Path, default=Path('.temp'), help='Set temp folder path')
parser.add_argument('--logging', '-log', type=str, default=None, help='Enable logging')
parser.add_argument('--passes', '-p', type=int, default=2, help='Specify encoding passes')
Expand Down

0 comments on commit 8290f51

Please sign in to comment.