use h264 high profile for .mp4

This commit is contained in:
j 2017-08-30 14:54:26 +02:00
parent 790b08ce77
commit a687f01fc7
2 changed files with 6 additions and 5 deletions

View file

@ -232,9 +232,8 @@ def stream(video, target, profile, info, audio_track=0, flags={}):
video_settings += [ video_settings += [
'-c:v', 'libx264', '-c:v', 'libx264',
'-preset:v', 'medium', '-preset:v', 'medium',
'-profile:v', 'baseline', '-profile:v', 'high',
# does not work with avconv in Ubuntu 14.04 yet '-level', '4.0',
# '-level', '3.0',
] ]
video_settings += ['-map', '0:%s,0:0' % info['video'][0]['id']] video_settings += ['-map', '0:%s,0:0' % info['video'][0]['id']]
audio_only = False audio_only = False

View file

@ -1241,8 +1241,10 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"userLevels": ["guest", "member", "staff", "admin"], "userLevels": ["guest", "member", "staff", "admin"],
/* /*
"video" contains the video settings. "video" contains the video settings.
"formats": Supported video formats. Should be ["webm", "mp4"], or "formats": Supported video formats.
["webm"] in case iDevices are not part of the audience Should be ["webm", "mp4"] to support WebM and MP4,
["webm"] if only WebM is used or
["mp4"] for MP4 only.
"previewRatio": Aspect ratio used in the info panel in the bottom left "previewRatio": Aspect ratio used in the info panel in the bottom left
corner of the screen corner of the screen
"resolutions": List of video resolutions. Supported values are 96, 144, "resolutions": List of video resolutions. Supported values are 96, 144,