Skip to content

Commit 08678fe

Browse files
committed
Silence x265
1 parent c56eaaa commit 08678fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/render/video.nim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ proc makeNewVideoFrames*(output: var OutputContainer, tl: v3, args: mainArgs):
171171
"language": tl.v[0].lang}.toTable)
172172
let codec = encoderCtx.codec
173173

174+
if codec.id == 173:
175+
discard av_opt_set(encoderCtx.priv_data, "x265-params", "log-level=error", 0)
176+
174177
encoderCtx.framerate = targetFps
175178
encoderCtx.thread_type = FF_THREAD_FRAME or FF_THREAD_SLICE
176179

0 commit comments

Comments
 (0)