Skip to content
Discussion options

You must be logged in to vote

You need to provide a dictionary containing the proper options in the CodecContext.Open() method (I've omitted error handling for readability purposes below however you should handle error when needed):

// Create dictionary
d := astiav.NewDictionary()

// Make sure to free it
defer d.Free()

// Parse dictionary
d.ParseString("preset=medium,crf=23", "=", ",", 0)

// Open codec context with the dictionary
encoderCtx.Open(codec, d)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by asticode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #157 on June 24, 2025 08:25.