Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do VLC and ffmpeg work together?

Tags:

ffmpeg

vlc

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?

like image 879
Toufik Moad Avatar asked Jul 17 '12 15:07

Toufik Moad


People also ask

Does VLC player use FFmpeg?

The libavcodec library from the FFmpeg project provides many of VLC's codecs, but the player mainly uses its own muxers and demuxers.


1 Answers

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.

like image 189
Roman R. Avatar answered Sep 18 '22 01:09

Roman R.