You've already forked FrameTour-RenderWorker
ffprobe 报错后不采用其内容
This commit is contained in:
@ -82,6 +82,8 @@ def probe_video_info(video_file):
|
||||
stderr=subprocess.STDOUT,
|
||||
**subprocess_args(True)
|
||||
)
|
||||
if result.returncode != 0:
|
||||
return 0, 0, 0
|
||||
all_result = result.stdout.decode('utf-8').strip()
|
||||
wh, duration = all_result.split('\n')
|
||||
width, height = wh.strip().split('x')
|
||||
|
Reference in New Issue
Block a user