Skip to content

Commit 6972301

Browse files
committed
make style
1 parent 779691f commit 6972301

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

src/diffusers/utils/export_utils.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -148,24 +148,21 @@ def export_to_video(
148148
) -> str:
149149
"""
150150
quality:
151-
Video output quality. Default is 5. Uses variable bit rate.
152-
Highest quality is 10, lowest is 0.
153-
Set to None to prevent variable bitrate flags to FFMPEG so you can manually specify them using output_params instead.
151+
Video output quality. Default is 5. Uses variable bit rate. Highest quality is 10, lowest is 0. Set to None to
152+
prevent variable bitrate flags to FFMPEG so you can manually specify them using output_params instead.
154153
Specifying a fixed bitrate using `bitrate` disables this parameter.
155154
156155
bitrate:
157-
Set a constant bitrate for the video encoding.
158-
Default is None causing `quality` parameter to be used instead.
159-
Better quality videos with smaller file sizes will result from using the `quality` variable bitrate parameter rather
160-
than specifiying a fixed bitrate with this parameter.
156+
Set a constant bitrate for the video encoding. Default is None causing `quality` parameter to be used instead.
157+
Better quality videos with smaller file sizes will result from using the `quality` variable bitrate parameter
158+
rather than specifiying a fixed bitrate with this parameter.
161159
162160
macro_block_size:
163-
Size constraint for video.
164-
Width and height, must be divisible by this number.
165-
If not divisible by this number imageio will tell ffmpeg to scale the image up to the next closest size divisible by this number.
166-
Most codecs are compatible with a macroblock size of 16 (default), some can go smaller (4, 8).
167-
To disable this automatic feature set it to None or 1, however be warned many players can't decode videos that are odd in size and
168-
some codecs will produce poor results or fail. See https://en.wikipedia.org/wiki/Macroblock.
161+
Size constraint for video. Width and height, must be divisible by this number. If not divisible by this number
162+
imageio will tell ffmpeg to scale the image up to the next closest size divisible by this number. Most codecs
163+
are compatible with a macroblock size of 16 (default), some can go smaller (4, 8). To disable this automatic
164+
feature set it to None or 1, however be warned many players can't decode videos that are odd in size and some
165+
codecs will produce poor results or fail. See https://en.wikipedia.org/wiki/Macroblock.
169166
"""
170167
# TODO: Dhruv. Remove by Diffusers release 0.33.0
171168
# Added to prevent breaking existing code

0 commit comments

Comments
 (0)