use h264 baseline settings so the video play in safari
This commit is contained in:
parent
e8e6bb1926
commit
9a47b5eef4
1 changed files with 23 additions and 0 deletions
|
@ -140,6 +140,8 @@ def stream(video, target, profile, info):
|
||||||
'-aspect', aspect,
|
'-aspect', aspect,
|
||||||
]
|
]
|
||||||
if format == 'mp4':
|
if format == 'mp4':
|
||||||
|
#quicktime does not support bpyramid
|
||||||
|
'''
|
||||||
video_settings += [
|
video_settings += [
|
||||||
'-vcodec', 'libx264',
|
'-vcodec', 'libx264',
|
||||||
'-flags', '+loop+mv4',
|
'-flags', '+loop+mv4',
|
||||||
|
@ -159,6 +161,27 @@ def stream(video, target, profile, info):
|
||||||
'-qmin', '10', '-qmax', '51',
|
'-qmin', '10', '-qmax', '51',
|
||||||
'-qdiff', '4'
|
'-qdiff', '4'
|
||||||
]
|
]
|
||||||
|
'''
|
||||||
|
video_settings += [
|
||||||
|
'-vcodec', 'libx264',
|
||||||
|
'-flags', '+loop+mv4',
|
||||||
|
'-cmp', '256',
|
||||||
|
'-partitions', '+parti4x4+parti8x8+partp4x4+partp8x8+partb8x8',
|
||||||
|
'-me_method', 'hex',
|
||||||
|
'-subq', '7',
|
||||||
|
'-trellis', '1',
|
||||||
|
'-refs', '5',
|
||||||
|
'-bf', '0',
|
||||||
|
'-flags2', '+mixed_refs',
|
||||||
|
'-coder', '0',
|
||||||
|
'-me_range', '16',
|
||||||
|
'-g', '250', #FIXME: should this be related to fps?
|
||||||
|
'-keyint_min', '25', #FIXME: should this be related to fps?
|
||||||
|
'-sc_threshold','40',
|
||||||
|
'-i_qfactor', '0.71',
|
||||||
|
'-qmin', '10', '-qmax', '51',
|
||||||
|
'-qdiff', '4'
|
||||||
|
]
|
||||||
else:
|
else:
|
||||||
video_settings = ['-vn']
|
video_settings = ['-vn']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue