Commit Graph
1 Commits
Author SHA1 Message Date
Isaac ConnorandClaude Opus 5.5 161a979673 fix: check the ffmpeg Options field syntax before saving a monitor
The Options field takes key=value pairs, but people copy ffmpeg command
line flags into it, such as -tls_verify 0 to accept an rtsps camera's
self-signed certificate now that ffmpeg 9 verifies by default. zmc then
logs that it could not parse the options and drops them.

monitor-ffmpeg-options.js ports av_dict_parse_string() and av_get_token()
so the form reports the entry ffmpeg would stop at. It also reports keys
that parse but can name no option: a leading dash, or whitespace or a
separator inside the key, which is what "a=1,tls_verify 0,b=2" turns into.
The help text now spells out the key=value form with tls_verify=0 as an
example.

The expected results in tests/js/ffmpeg-options.test.js were taken from
libavutil 61.1.102 on the same strings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 18:30:49 -05:00