GHC 2020-06-25

1 comment.

, https://git.io/JfhAP in zmwangx/rust-ffmpeg
Hey, the code for your use case should be substantially similar to `transcode-audio` except you'll not be [focusing on a single stream](https://github.com/zmwangx/rust-ffmpeg/blob/48271cc5878b952ad36809df44401680992be863/examples/transcode-audio.rs#L166), so you should prepare a transcoder for each stream, and use the appropriate transcoder for each packet. To set encoder codec and options, have a look at [`open_as_with`](https://docs.rs/ffmpeg-next/4.3.0/ffmpeg_next/codec/encoder/video/struct.Video.html#method.open_as_with).