Queston on VLC and FFMPEG

This forum is about all development around libVLC.
haixiang
Blank Cone
Blank Cone
Posts: 11
Joined: 10 Dec 2003 13:33

Queston on VLC and FFMPEG

Postby haixiang » 06 Feb 2009 05:34

I am a new vlc fan and browsed the code of vlc 0.9.5a.

I have one question on the relation between vlc and ffmpeg.

In the vlc source code directory, vlc has dumux directory which does the almost all container demux and codec directory which does the av decode stuff.

Since vlc already supported code to demux and decode, why when configure vlc still needs ffmpeg library like libavformat and libavcodec. It makes me much confused.

One simple question, if vlc decode one stream which can be done by vlc own code and by ffmpeg, which path it will go vlc own demux/decode path or ffmpeg demux/decode path.

Sorry to ask this stupid question.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Queston on VLC and FFMPEG

Postby Jean-Baptiste Kempf » 06 Feb 2009 09:19

VLC is a framework, in fact, and has many modules.

One decoding module is the avcodec one that uses libavcodec. It decodes many codecs that you NEED with VLC.

For demuxing, VLC has already most of the demuxer in itself, but there is one module that can use libavformat exotic formats power to demux them.

So, you don't need FFmpeg, but I think you really need at least the avcodec module.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

haixiang
Blank Cone
Blank Cone
Posts: 11
Joined: 10 Dec 2003 13:33

Re: Queston on VLC and FFMPEG

Postby haixiang » 09 Feb 2009 06:32

Thanks a lot. I will dig more on source code to see.

haixiang
Blank Cone
Blank Cone
Posts: 11
Joined: 10 Dec 2003 13:33

Re: Queston on VLC and FFMPEG

Postby haixiang » 09 Feb 2009 06:35

still have one question which is not clear for me:

if I configure vlc to --enable-ffmpeg, when play one .avi file:

vlc will use its own avi demux or ffmpeg's libavformat to demux

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Queston on VLC and FFMPEG

Postby Jean-Baptiste Kempf » 09 Feb 2009 09:31

for avi, own demux.
If you want to force ffmpeg demuxing, --demux ffmpeg at runtime.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

haixiang
Blank Cone
Blank Cone
Posts: 11
Joined: 10 Dec 2003 13:33

Re: Queston on VLC and FFMPEG

Postby haixiang » 11 Feb 2009 02:53

thanks a lot


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 16 guests