JuliaIO / VideoIO.jl

Reading and writing of video files in Julia via ffmpeg
https://juliaio.github.io/VideoIO.jl/stable
Other
125 stars 53 forks source link

Encoder options containing hyphens #365

Closed BioTurboNick closed 2 years ago

BioTurboNick commented 2 years ago

For at least the libx265 codec, it uses a hyphenated argument, x265-params; this is required to pass certain options, such as lossless=1.

https://trac.ffmpeg.org/wiki/Encode/H.265

However, symbols containing hyphens cannot be used as named tuple names, which is used by encoder_options.

EDIT: Symbol("x265-params") isn't allowed, but var"x265-params" works. Not sure what to do about that here, but maybe the error message on the Julia side could be improved.