mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
Clean-up fall-back for ffmpeg not accepting show error
This commit is contained in:
parent
b02d6ef419
commit
dd2ce9112b
1 changed files with 3 additions and 4 deletions
|
@ -109,12 +109,11 @@ def get_video_details(videofile, img=None, bitbucket=None):
|
||||||
result = proc.returncode
|
result = proc.returncode
|
||||||
video_details = json.loads(out.decode())
|
video_details = json.loads(out.decode())
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
try: # try this again without -show error in case of ffmpeg limitation
|
||||||
if not video_details:
|
|
||||||
try:
|
|
||||||
command = [core.FFPROBE, '-v', 'quiet', print_format, 'json', '-show_format', '-show_streams', videofile]
|
command = [core.FFPROBE, '-v', 'quiet', print_format, 'json', '-show_format', '-show_streams', videofile]
|
||||||
|
print_cmd(command)
|
||||||
if img:
|
if img:
|
||||||
procin = zip_out(file, img)
|
procin = zip_out(file, img, bitbucket)
|
||||||
proc = subprocess.Popen(command, stdout=subprocess.PIPE, stdin=procin.stdout)
|
proc = subprocess.Popen(command, stdout=subprocess.PIPE, stdin=procin.stdout)
|
||||||
procin.stdout.close()
|
procin.stdout.close()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue