如何以编程方式使用 ffmpeg 将 flv 视频转换为 mp3?
我需要在 C++ 上创建视频转换应用程序,但无法使用 ffmpeg.exe。
我需要以编程方式执行此操作,但我不知道该怎么做,而且我在互联网上没有找到任何示例。
也许有人了解我的任务?谢谢。
I need to create application on C++ for video conversion, and I can't use ffmpeg.exe.
I need to do it programmatically, but I don't know how can I do it, and I didn't find any examples on Internet.
May be somebody know something about my task? Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ffmpeg 是一个开源项目。 ffmpeg 使用的转码引擎位于库 libavcodec(用于编解码器)和 libavformat(用于容器)中。您可以将转换编写为对这些库的调用,而无需 ffmpeg 命令行应用程序。
这里是有关使用这些库的教程。
祝你好运。
ffmpeg is an open source project. The transcoding engine used by ffmpeg is in the libraries libavcodec (for the codecs) and libavformat (for the containers). You can write your conversion as calls into these libraries, without the ffmpeg command line application.
Here is a tutorial on using these libraries.
Good luck.
这是另一个很好的 ffmpeg 教程。查看 ffmpeg 的实际源代码也会有所帮助。
教程源的更新版本位于此处。
Here's another good ffmpeg tutorial. Looking at the actual source code for ffmpeg would also help.
An updated version of the tutorial source is here.