Function
ffmpeg_command
(path: str, pix_fmt: str)
Source from the content-addressed store, hash-verified
| 346 | """Render depth and save as video.""" |
| 347 | |
| 348 | def ffmpeg_command(path: str, pix_fmt: str): |
| 349 | return [ |
| 350 | "ffmpeg", |
| 351 | "-loglevel", |
| 352 | "quiet", |
| 353 | "-y", |
| 354 | "-f", |
| 355 | "rawvideo", |
| 356 | "-vcodec", |
| 357 | "rawvideo", |
| 358 | "-pix_fmt", |
| 359 | pix_fmt, |
| 360 | "-s", |
| 361 | f"{width}x{height}", |
| 362 | "-r", |
| 363 | str(fps), |
| 364 | "-i", |
| 365 | "-", |
| 366 | "-an", |
| 367 | "-vcodec", |
| 368 | "libx264", |
| 369 | "-pix_fmt", |
| 370 | "yuv420p", |
| 371 | path, |
| 372 | ] |
| 373 | |
| 374 | start_time = time.time() |
| 375 | depth_maps = rendering_batches( |
Tested by
no test coverage detected