only use ffmpeg

This commit is contained in:
j 2021-11-21 23:17:34 +01:00
parent f3771f1b56
commit 657a1dd234

View file

@ -13,14 +13,7 @@ import numpy as np
import ox import ox
FFMPEG = None FFMPEG = 'ffmpeg'
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")
FPS = 25 FPS = 25
class Video(object): class Video(object):