zmwangx / rust-ffmpeg-sys

FFmpeg bindings for Rust.
125 stars 86 forks source link

Clarify how to use AVChannelLayout #81

Closed nywhere closed 1 month ago

nywhere commented 1 month ago

Hi,

Thanks for the great work done on this project. I see there has been a workaround for AVChannelLayout but I can't figure out how to properly set a layout on the encoder context.

I have tried with AVChannelLayout__bindgen_ty_1, AVChannelLayout, av_channel_layout_from_string but I always get a segmentation fault.

Hope you can help. Thanks!