Disable webm variation creation for video assets
Encoding webm video is very time consuming and currently h264 is supported by most browsers. Once we switch to a different encoding backend we can reintroduce it, if needed, along with multiple resolutions.
This commit is contained in:
parent
694016f58b
commit
782ac9ac1e
@ -149,8 +149,8 @@ def _process_video(gcs, file_id, local_file, src_file):
|
|||||||
root, _ = os.path.splitext(src_file['file_path'])
|
root, _ = os.path.splitext(src_file['file_path'])
|
||||||
src_file['variations'] = []
|
src_file['variations'] = []
|
||||||
|
|
||||||
for v in ('mp4', 'webm'):
|
|
||||||
# Most of these properties will be available after encode.
|
# Most of these properties will be available after encode.
|
||||||
|
v = 'mp4'
|
||||||
file_variation = dict(
|
file_variation = dict(
|
||||||
format=v,
|
format=v,
|
||||||
content_type='video/{}'.format(v),
|
content_type='video/{}'.format(v),
|
||||||
@ -162,7 +162,8 @@ def _process_video(gcs, file_id, local_file, src_file):
|
|||||||
length=0,
|
length=0,
|
||||||
md5='',
|
md5='',
|
||||||
)
|
)
|
||||||
# Append file variation
|
# Append file variation. Originally mp4 and webm were the available options,
|
||||||
|
# that's why we build a list.
|
||||||
src_file['variations'].append(file_variation)
|
src_file['variations'].append(file_variation)
|
||||||
|
|
||||||
j = Encoder.job_create(src_file)
|
j = Encoder.job_create(src_file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user