sync h264 detection
This commit is contained in:
parent
a2f815bedc
commit
f821af6303
1 changed files with 3 additions and 2 deletions
|
@ -49,13 +49,14 @@ def supported_formats():
|
||||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
|
||||||
stdout, stderr = p.communicate()
|
stdout, stderr = p.communicate()
|
||||||
stdout = stdout.decode('utf-8')
|
stdout = stdout.decode('utf-8')
|
||||||
|
mp4 = 'libx264' in stdout and bool(re.compile('DEA.L. aac').findall(stdout))
|
||||||
return {
|
return {
|
||||||
'ogg': 'libtheora' in stdout and 'libvorbis' in stdout,
|
'ogg': 'libtheora' in stdout and 'libvorbis' in stdout,
|
||||||
'webm': 'libvpx' in stdout and 'libvorbis' in stdout,
|
'webm': 'libvpx' in stdout and 'libvorbis' in stdout,
|
||||||
'vp8': 'libvpx' in stdout and 'libvorbis' in stdout,
|
'vp8': 'libvpx' in stdout and 'libvorbis' in stdout,
|
||||||
'vp9': 'libvpx-vp9' in stdout and 'libopus' in stdout,
|
'vp9': 'libvpx-vp9' in stdout and 'libopus' in stdout,
|
||||||
'mp4': 'libx264' in stdout and 'DEA.L. aac' in stdout,
|
'mp4': mp4,
|
||||||
'h264': 'libx264' in stdout and 'DEA.L. aac' in stdout,
|
'h264': mp4,
|
||||||
}
|
}
|
||||||
|
|
||||||
def video_cmd(video, target, profile, info):
|
def video_cmd(video, target, profile, info):
|
||||||
|
|
Loading…
Reference in a new issue