4
$\begingroup$
import bpy
for scene in bpy.data.scenes:
    scene.render.image_settings.file_format = 'H264'
    scene.format = 'QUICKTIME'
    scene.color_mode = 'RGB'
    scene.audio_codec = 'AAC'
    scene.audio_bitrate = 128
    scene.render.resolution_percentage = 100

I have no idea how to get this to work right

$\endgroup$

1 Answer 1

3
$\begingroup$

Try this:

import bpy
for scene in bpy.data.scenes:
    scene.render.image_settings.file_format = 'H264'
    scene.render.ffmpeg.format = 'QUICKTIME'
    scene.render.image_settings.color_mode = 'RGB'
    scene.render.ffmpeg.audio_codec = 'AAC'
    scene.render.ffmpeg.audio_bitrate = 128
    scene.render.resolution_percentage = 100

Also see the API docs.

$\endgroup$
1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .