How do VLC and ffmpeg work together?

你说的曾经没有我的故事 提交于 2020-06-24 04:41:08

问题


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?

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


回答1:


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.




回答2:


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

ffplay video.mp4

ffplay is however a very stripped down video viewer, mostly only suitable for debugging video things and not for daily usage.

ffplay may be more accurate than VLC for some quirky formats, for example it can handle very low FPS video where VLC 2.2.4 could not: How to resize a picture using ffmpeg's sws_scale()?

Tested in Ubuntu 16.04, ffmpeg 2.8 with this minimal procedurally generated videos from: How to resize a picture using ffmpeg's sws_scale()?



来源:https://stackoverflow.com/questions/11525769/how-do-vlc-and-ffmpeg-work-together

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!