mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
Create main.py
This commit is contained in:
parent
7979946238
commit
1adf9e4aca
1 changed files with 16 additions and 0 deletions
16
main.py
Normal file
16
main.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
import os
|
||||
import subprocess
|
||||
|
||||
|
||||
def get_cpu_count():
|
||||
return os.cpu_count()
|
||||
|
||||
|
||||
def get_ram():
|
||||
return round((os.sysconf('SC_PAGE_SIZE') * os.sysconf('SC_PHYS_PAGES')) / (1024. ** 3), 3)
|
||||
|
||||
|
||||
cmd = 'scenedetect --input my_video.mp4 --output my_video_scenes --stats my_video.stats.csv detect-content list-scenes'
|
||||
|
||||
d = subprocess.call(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
|
Loading…
Reference in a new issue