diff options
Diffstat (limited to 'release/scripts/presets/ffmpeg/H264_in_Matroska.py')
-rw-r--r-- | release/scripts/presets/ffmpeg/H264_in_Matroska.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/release/scripts/presets/ffmpeg/H264_in_Matroska.py b/release/scripts/presets/ffmpeg/H264_in_Matroska.py new file mode 100644 index 00000000000..1fe066dc4bf --- /dev/null +++ b/release/scripts/presets/ffmpeg/H264_in_Matroska.py @@ -0,0 +1,17 @@ +import bpy +is_ntsc = (bpy.context.scene.render.fps != 25) + +bpy.context.scene.render.ffmpeg.format = "MKV" +bpy.context.scene.render.ffmpeg.codec = "H264" + +if is_ntsc: + bpy.context.scene.render.ffmpeg.gopsize = 18 +else: + bpy.context.scene.render.ffmpeg.gopsize = 15 + +bpy.context.scene.render.ffmpeg.video_bitrate = 6000 +bpy.context.scene.render.ffmpeg.maxrate = 9000 +bpy.context.scene.render.ffmpeg.minrate = 0 +bpy.context.scene.render.ffmpeg.buffersize = 224 * 8 +bpy.context.scene.render.ffmpeg.packetsize = 2048 +bpy.context.scene.render.ffmpeg.muxrate = 10080000 |