only use ffmpeg

This commit is contained in:
j 2021-11-21 23:17:34 +01:00
parent f3771f1b56
commit 657a1dd234
1 changed files with 1 additions and 8 deletions

View File

@ -13,14 +13,7 @@ import numpy as np
import ox
FFMPEG = None
for cmd in ('ffmpeg', 'avconv'):
cmd = ox.file.cmd(cmd)
if subprocess.call(['which', cmd], stdout=subprocess.PIPE) == 0:
FFMPEG = cmd
break
if not FFMPEG:
print("could not find ffmpeg, make sure its installed and available in PATH")
FFMPEG = 'ffmpeg'
FPS = 25
class Video(object):