def test_loglevel(): ff = FFmpeg() ff.loglevel = 'fa' path = "./" o = os.path.join(path, 'f.wav') opt = ['-i', i, o] ff.options(opt) assert ff.loglevel != 'fa'
def test_loglevel(): ff = FFmpeg() ff.loglevel = 'fa' path = os.path.join(cwd, '_test') #i = os.path.join(path, 'f.mp3') o = os.path.join(path, 'f.wav') opt = ['-i', i, o] ff.options(opt) assert ff.loglevel != 'fa'
def test_convert(): """ """ path = Paths().home_path out = os.path.join(path, 'f.wav') ff = FFmpeg() ff.loglevel = 'info' print(f'in and out: {i}, {out}') ff.convert(i, out) if ff.error: if 'Output' in ff.error: assert True else: print(ff.error) assert False else: assert True
from pyffmpeg import FFmpeg ff = FFmpeg() ff.loglevel = 'info' out = ff.convert('H:\\GitHub\\pyffmpeg\\_test\\f.mp3', 'H:\\GitHub\\pyffmpeg\\_test\\f.wav') if ff.error: if 'Output' in ff.error: assert True else: print(ff.error) else: assert True fps = ff.get_fps("H:/CS/practice/python/pyffmpeg subproces/vid.mp4")