mirror of
https://github.com/soimort/you-get.git
synced 2025-02-02 16:24:00 +03:00
avoid using the libav fork of FFmpeg, as in #159
This commit is contained in:
parent
77e3f0da9b
commit
bbd50c4e6c
@ -5,10 +5,14 @@ import subprocess
|
|||||||
|
|
||||||
def has_ffmpeg_installed():
|
def has_ffmpeg_installed():
|
||||||
try:
|
try:
|
||||||
subprocess.call(['ffmpeg', '-loglevel', '0'])
|
p = subprocess.Popen(['ffmpeg', '-version'], stdout=subprocess.PIPE)
|
||||||
return True
|
out, err = p.communicate()
|
||||||
|
import re
|
||||||
|
assert re.search('Libav', str(out, 'utf-8').split('\n')[0]) is None
|
||||||
except:
|
except:
|
||||||
return False
|
return False
|
||||||
|
else:
|
||||||
|
return True
|
||||||
|
|
||||||
def ffmpeg_convert_ts_to_mkv(files, output = 'output.mkv'):
|
def ffmpeg_convert_ts_to_mkv(files, output = 'output.mkv'):
|
||||||
for file in files:
|
for file in files:
|
||||||
|
Loading…
Reference in New Issue
Block a user