From 9a47b5eef412ce2ef49a1a3dff37af2d2d2ba44a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 15 Sep 2010 17:00:53 +0200 Subject: [PATCH] use h264 baseline settings so the video play in safari --- pandora/archive/extract.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index e3852592..5006ae62 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -140,6 +140,8 @@ def stream(video, target, profile, info): '-aspect', aspect, ] if format == 'mp4': + #quicktime does not support bpyramid + ''' video_settings += [ '-vcodec', 'libx264', '-flags', '+loop+mv4', @@ -159,6 +161,27 @@ def stream(video, target, profile, info): '-qmin', '10', '-qmax', '51', '-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: video_settings = ['-vn']