Skip to content

Commit 467c60b

Browse files
sbryngelsonclaude
andcommitted
Suppress ffmpeg diagnostic noise in MP4 output
Pass ffmpeg_log_level='error' to imageio.mimwrite so the rawvideo probesize warning is not printed for short videos. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b87d82c commit 467c60b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

toolchain/mfc/viz/renderer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ def render_mp4(varname, steps, output, fps=10, # pylint: disable=too-many-argum
242242
output,
243243
[imageio.imread(os.path.join(viz_dir, fname)) for fname in frame_files],
244244
fps=fps, codec='libx264', pixelformat='yuv420p', macro_block_size=2,
245+
ffmpeg_log_level='error',
245246
)
246247
success = True
247248
except (OSError, ValueError, RuntimeError) as exc:

0 commit comments

Comments
 (0)