Allow bounded playback to buffer ahead of the browser

This commit is contained in:
Codex
2026-10-06 23:08:40 +08:00
parent f7d3fea92f
commit d8826152c6
8 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ def command(source, authorization, duration):
'-tune', 'zerolatency', '-profile:v', 'baseline', '-pix_fmt', 'yuv420p',
'-crf', '26', '-g', '20', '-bf', '0']
input_options = (['-rw_timeout', '15000000', '-headers', 'Authorization: ' + authorization + '\r\n']
if authorization else ['-readrate', '1'])
if authorization else [])
return [executable, '-hide_banner', '-loglevel', 'error', '-nostdin',
'-threads', '1', '-filter_threads', '1'] + acceleration + input_options + [
'-analyzeduration', '1000000', '-probesize', '1000000',