mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-28 06:59:11 +00:00
fixed json output deocde error (by @Mirrorman95)
This commit is contained in:
parent
1429ae1fb2
commit
4eec3e3b9f
@ -38,7 +38,7 @@ import shutil
|
|||||||
import subprocess
|
import subprocess
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
VERSION = '2.0 beta'
|
VERSION = '2.0.1'
|
||||||
|
|
||||||
EXEC_PATH = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
|
EXEC_PATH = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
|
||||||
FRAMES = '{}\\frames'.format(EXEC_PATH) # Folder containing extracted frames
|
FRAMES = '{}\\frames'.format(EXEC_PATH) # Folder containing extracted frames
|
||||||
@ -95,7 +95,7 @@ def get_vid_info():
|
|||||||
"""
|
"""
|
||||||
json_str = subprocess.check_output(
|
json_str = subprocess.check_output(
|
||||||
'{} -v quiet -print_format json -show_format -show_streams {}'.format('\"' + FFMPEG_PATH + 'ffprobe.exe\"', args.video))
|
'{} -v quiet -print_format json -show_format -show_streams {}'.format('\"' + FFMPEG_PATH + 'ffprobe.exe\"', args.video))
|
||||||
return json.loads(json_str)
|
return json.loads(json_str.decode('utf-8'))
|
||||||
|
|
||||||
|
|
||||||
def check_model_type(args):
|
def check_model_type(args):
|
||||||
|
Loading…
Reference in New Issue
Block a user