MCPcopy Create free account
hub / github.com/BrokenSource/DepthFlow / make

Function make

examples/docs.py:204–241  ·  view source on GitHub ↗
(
    cls: type[DepthScene],
    time: float,
)

Source from the content-addressed store, hash-verified

202"""Example videos output directory"""
203
204def make(
205 cls: type[DepthScene],
206 time: float,
207):
208 scene = cls(backend="headless")
209 scene.input(image=None)
210 scene.ffmpeg.h264(
211 preset="veryslow",
212 profile="high",
213 tune="film",
214 crf=24,
215 x264params=(
216 "ref=8",
217 "bframes=8",
218 "b-adapt=2",
219 "rc-lookahead=60",
220 "me=umh",
221 "subme=8",
222 "merange=24",
223 "analyse=all",
224 "trellis=2",
225 "deblock=-3,-3",
226 "psy-rd=1.0",
227 "aq-mode=2",
228 "aq-strength=1.0",
229 ),
230 ) # type: ignore
231 scene.relay(ShaderMessage.Shader.Compile)
232 scene.main(
233 output=output.joinpath(cls.__name__.lower() + ".mp4"),
234 time=time,
235 width=1920,
236 height=1080,
237 quality=100,
238 subsample=4,
239 ssaa=4,
240 )
241 imgui.destroy_context()
242
243def main():
244 make(cls=Quality, time=5)

Callers 1

mainFunction · 0.85

Calls 1

inputMethod · 0.80

Tested by

no test coverage detected