asticode / go-astiav

Golang ffmpeg and libav C bindings
MIT License
351 stars 38 forks source link

Question: How can i set metadata in output FormatContext? #66

Closed Mr3h1v closed 3 weeks ago

Mr3h1v commented 3 weeks ago

Add outputFormatCtx.Metadata().Set("key", "value", 0) after AllocOutputFormatContext, it will panic because Metadata() return nil.

when i add outputFormatCtx.Metadata().Set("key", "value", 0) after WriteHeader, it does not work.

asticode commented 3 weeks ago

Fixed by #67 👍