Page 1 of 1

VLC Code Understanding About Demux

Posted: 21 Mar 2008 06:07
by zhangtower
Hi, everyone, I want to study the code of demux from stream.
I know the demux code is in the directory ./modules/demux,
but i don't know where to begin my study.

When the stream is demuxed, does vlc choose a codec to decode the media?
Or does the demux will display the media to screen?
I want to know the demux procedure. Anyone Help Me!
TIA!!!

Re: VLC Code Understanding About Demux

Posted: 21 Mar 2008 08:46
by Jean-Baptiste Kempf
look at src/input/demux.c

Re: VLC Code Understanding About Demux

Posted: 23 Mar 2008 09:55
by RĂ©mi Denis-Courmont
A demux reads bytes from a stream (p_demux->), creates elementary streams with appropriate codec infos, and send encoded data chunks to these elementary streams. VLC core figures out how to create the appropriate codec (if needed), how to present the decoded result, and how to sync.