Open-Sora offers very flexible configuration of video parameters:
- Resolution range: Supports a wide range of resolution outputs from 144p to 768p, with 256p and 768p being standard in version 2.0
- Duration control: Video clips of 2 to 16 seconds can be generated through the
--num_framesParameters to precisely control the number of frames (supports up to 129 frames) - aspect ratio: Supports a wide range of common ratios including:
- Landscape 16:9 (for traditional video)
- Vertical 9:16 (adapted for mobile devices)
- Square 1:1 (commonly used in social media)
- Other customized ratios
In practice, these settings can be flexibly combined with command line parameters. For example, to generate 768p vertical video:
torchrun ... --aspect_ratio 9:16 --resolution 768x1365
It is worth noting that higher resolution video generation requires more GPU resources, and 8 GPUs are recommended for parallel processing for 768p video.
This answer comes from the articleOpen Sora: An Open Source Video Generation Tool for Optimizing Face ConsistencyThe































