@@ -56,17 +56,16 @@ def to_file(
5656 "yuv420p", "yuv444p"). If not specified, uses codec's default format.
5757 See :ref:`pixel_format` for details.
5858 crf (int or float, optional): Constant Rate Factor for encoding quality. Lower values
59- mean better quality. Valid range depends on the encoder (commonly 0-51).
59+ mean better quality. Valid range depends on the encoder (e.g. 0-51 for libx264 ).
6060 Defaults to None (which will use encoder's default).
6161 See :ref:`crf` for details.
6262 preset (str or int, optional): Encoder option that controls the tradeoff between
63- encoding speed and compression. Valid values depend on the encoder (commonly
63+ encoding encoding speed and compression (output size). Valid on the encoder (commonly
6464 a string: "fast", "medium", "slow"). Defaults to None
6565 (which will use encoder's default).
6666 See :ref:`preset` for details.
6767 extra_options (dict[str, Any], optional): A dictionary of additional
6868 encoder options to pass, e.g. ``{"qp": 5, "tune": "film"}``.
69- Values will be converted to strings before passing to the encoder.
7069 See :ref:`extra_options` for details.
7170 """
7271 preset = str (preset ) if isinstance (preset , int ) else preset
@@ -106,17 +105,16 @@ def to_tensor(
106105 "yuv420p", "yuv444p"). If not specified, uses codec's default format.
107106 See :ref:`pixel_format` for details.
108107 crf (int or float, optional): Constant Rate Factor for encoding quality. Lower values
109- mean better quality. Valid range depends on the encoder (commonly 0-51).
108+ mean better quality. Valid range depends on the encoder (e.g. 0-51 for libx264 ).
110109 Defaults to None (which will use encoder's default).
111110 See :ref:`crf` for details.
112111 preset (str or int, optional): Encoder option that controls the tradeoff between
113- encoding speed and compression. Valid values depend on the encoder (commonly
112+ encoding encoding speed and compression (output size). Valid on the encoder (commonly
114113 a string: "fast", "medium", "slow"). Defaults to None
115114 (which will use encoder's default).
116115 See :ref:`preset` for details.
117116 extra_options (dict[str, Any], optional): A dictionary of additional
118117 encoder options to pass, e.g. ``{"qp": 5, "tune": "film"}``.
119- Values will be converted to strings before passing to the encoder.
120118 See :ref:`extra_options` for details.
121119
122120 Returns:
@@ -165,17 +163,16 @@ def to_file_like(
165163 "yuv420p", "yuv444p"). If not specified, uses codec's default format.
166164 See :ref:`pixel_format` for details.
167165 crf (int or float, optional): Constant Rate Factor for encoding quality. Lower values
168- mean better quality. Valid range depends on the encoder (commonly 0-51).
166+ mean better quality. Valid range depends on the encoder (e.g. 0-51 for libx264 ).
169167 Defaults to None (which will use encoder's default).
170168 See :ref:`crf` for details.
171169 preset (str or int, optional): Encoder option that controls the tradeoff between
172- encoding speed and compression. Valid values depend on the encoder (commonly
170+ encoding encoding speed and compression (output size). Valid on the encoder (commonly
173171 a string: "fast", "medium", "slow"). Defaults to None
174172 (which will use encoder's default).
175173 See :ref:`preset` for details.
176174 extra_options (dict[str, Any], optional): A dictionary of additional
177175 encoder options to pass, e.g. ``{"qp": 5, "tune": "film"}``.
178- Values will be converted to strings before passing to the encoder.
179176 See :ref:`extra_options` for details.
180177 """
181178 preset = str (preset ) if isinstance (preset , int ) else preset
0 commit comments