updated ffmpeg binaries, general improvements
This commit is contained in:
37
ffprobe_drop.py
Normal file
37
ffprobe_drop.py
Normal file
@@ -0,0 +1,37 @@
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
droppedFile = sys.argv[1]
|
||||
droppedName = Path(droppedFile).name
|
||||
|
||||
skipto = " -ss "
|
||||
|
||||
#droppedFile = "test.mkv"
|
||||
count = 0
|
||||
del sys.argv[0]
|
||||
|
||||
for each in sys.argv:
|
||||
i = 0
|
||||
|
||||
print(each)
|
||||
arguments = ( "ffprobe.exe ", " -i ", '"' , each, '"' )
|
||||
|
||||
arg_list = "".join(map(str, arguments))
|
||||
print(arg_list)
|
||||
#print(each)
|
||||
cmd = subprocess.Popen(arg_list, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='UTF-8')
|
||||
subprocess_err = cmd.stderr.read()
|
||||
|
||||
#for line in subprocess_err:
|
||||
# print(line)
|
||||
print(subprocess_err)
|
||||
|
||||
|
||||
i += 1
|
||||
|
||||
|
||||
|
||||
|
||||
k=input("press close to exit")
|
||||
Reference in New Issue
Block a user