mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
enabled logging
This commit is contained in:
parent
d6e7027f01
commit
9d0f73feed
1 changed files with 5 additions and 2 deletions
7
av1an.py
7
av1an.py
|
@ -92,6 +92,9 @@ class Av1an:
|
|||
|
||||
self.args = parser.parse_args()
|
||||
|
||||
if self.logging != self.args.logging:
|
||||
self.logging = f'&>> {self.args.logging}.log'
|
||||
os.system(f'echo " Av1an Logging "> {self.args.logging}.log')
|
||||
|
||||
def determine_resources(self):
|
||||
"""
|
||||
|
@ -145,8 +148,8 @@ class Av1an:
|
|||
PySceneDetect used split video by scenes and pass it to encoder
|
||||
Optimal threshold settings 15-50
|
||||
"""
|
||||
cmd2 = f'scenedetect -q -i {input_vid} --output .temp/split detect-content --threshold {self.threshold} split-video -c'
|
||||
call(cmd2, shell=True)
|
||||
cmd2 = f'scenedetect -i {input_vid} --output .temp/split detect-content --threshold {self.threshold} list-scenes split-video -c {self.logging}'
|
||||
os.system(cmd2)
|
||||
print(f'\rVideo {input_vid} splitted')
|
||||
|
||||
def get_video_queue(self, source_path):
|
||||
|
|
Loading…
Reference in a new issue