gpt4 book ai didi

rust 中的 FFMPEG 输入选项

转载 作者:行者123 更新时间:2023-12-04 23:35:03 31 4
gpt4 key购买 nike

我想像这样解码 rtsp 流:ffplay -max_delay 50000 "rtsp://name:password@1.2.3.4:port" .所以我尝试使用这个箱子 - https://crates.io/crates/ffmpeg-next ,但我只成功地使用函数 input() 非选项接收数据.
好吧,我不明白如何使用该选项或其他选项。
我应该使用其他 crate 还是其他东西?

最佳答案

出色地。我找到了答案。它需要其他输入。需要使用input_with_dictionary() .但在此之前需要像这样设置“字典”:

    let mut name_of_Dictionary = ::ffmpeg::Dictionary::new();
name_of_Dictionary.set("key", "value");
我希望有人会觉得它有帮助。

关于rust 中的 FFMPEG 输入选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63148876/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com