Update ComfyChannel.py

This commit is contained in:
MattTheTekie 2026-03-10 17:17:25 -04:00 committed by GitHub
commit ce8e38b72b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -418,7 +418,8 @@ class Server:
crf=SERV_OUTPUT_CRF,
tune='zerolatency',
acodec=SERV_OUTPUT_ACODEC,
preset=PRESET)
preset=PRESET,
force_key_frames='expr:gte(t,n_forced*4)')
self.cmd = ['ffmpeg'] + ffmpeg.get_args(self.ff)
self.process = subprocess.Popen(self.cmd, stdin=subprocess.PIPE, stdout=devnull, stderr=None if SERVER_DEBUG else devnull)
LOGGER.log(TYPE_INFO, 'Server Process Created')