VLC和ffmpeg如何一起工作? [英] How do VLC and ffmpeg work together?

查看:527
本文介绍了VLC和ffmpeg如何一起工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从源代码编译了VLC,它运行良好.当我执行"./Vlc"时,vlc运行.我也从源代码编译了ffmpeg,它也很好用.当我执行"ffmpeg-i-f toto.flv mp3-vn-acodec复制new_toto.mp3"时,将生成名为"new_toto.mp3"的文件. 我不明白VLC和ffmpeg如何一起工作? VLC代码的哪一部分使用ffmpeg代码?

I compiled VLC from the source code and it works well. When I do ". / Vlc" vlc runs. I also compiled ffmpeg from source and it works well too. When I do "ffmpeg-i-f toto.flv mp3-vn-acodec copy new_toto.mp3", the file named "new_toto.mp3" is generated. What I cannot understand is how VLC and ffmpeg work together? What part of VLC code uses ffmpeg code?

是否有一个ffmpeg命令来播放(阅读)视频?

Is there a ffmpeg command to play (read) a video?

推荐答案

VLC并未将FFmpeg嵌入为内部使用的一种从属二进制文件,正如您可能会想到的那样.相反,FFmpeg和VLC都使用libavcodec,该库实现了ffmpeg通过其命令行界面公开的内容.因此,FFmpeg通过提供libavcodec库作为VLC作为播放器应用程序的基础组件之一,来支持VLC.

VLC does not embed FFmpeg as a sort of slave binary used internally, as you possibly could suppose. Instead, both FFmpeg and VLC are using libavcodec, a library which implement what ffmpeg exposes through its command line interface. So, FFmpeg supports VLC through supplying its libavcodec library to be one of the essential components on which the VLC is built as a player app.

这篇关于VLC和ffmpeg如何一起工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆