Compare commits

...

2 commits

Author SHA1 Message Date
j
171c0b6095 make user and group available in list view 2022-10-20 11:10:40 +02:00
j
1c8b5b4b48 avoid double test for h264 2022-10-20 11:09:43 +02:00
2 changed files with 5 additions and 2 deletions

View file

@ -57,14 +57,15 @@ def supported_formats():
stdout = stdout.decode('utf-8')
stderr = stderr.decode('utf-8')
version = stderr.split('\n')[0].split(' ')[2]
mp4 = 'libx264' in stdout and bool(re.compile('DEA.L. aac').findall(stdout))
return {
'version': version.split('.'),
'ogg': 'libtheora' in stdout and 'libvorbis' in stdout,
'webm': 'libvpx' in stdout and 'libvorbis' in stdout,
'vp8': 'libvpx' in stdout and 'libvorbis' in stdout,
'vp9': 'libvpx-vp9' in stdout and 'libopus' in stdout,
'mp4': 'libx264' in stdout and bool(re.compile('DEA.L. aac').findall(stdout)),
'h264': 'libx264' in stdout and bool(re.compile('DEA.L. aac').findall(stdout)),
'mp4': mp4,
'h264': mp4,
}
def stream(video, target, profile, info, audio_track=0, flags={}):

View file

@ -794,12 +794,14 @@
"id": "user",
"title": "User",
"type": "string",
"columnWidth": 30,
"capability": "canSeeMedia",
"find": true
},
{
"id": "groups",
"title": "Group",
"columnWidth": 30,
"type": ["string"]
},
{