VLC Code Understanding About Demux

*nix specific usage questions
zhangtower
Blank Cone
Blank Cone
Posts: 34
Joined: 04 Feb 2008 04:28

VLC Code Understanding About Demux

Postby zhangtower » 21 Mar 2008 06:07

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!!!

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: VLC Code Understanding About Demux

Postby Jean-Baptiste Kempf » 21 Mar 2008 08:46

look at src/input/demux.c
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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC Code Understanding About Demux

Postby Rémi Denis-Courmont » 23 Mar 2008 09:55

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 9 guests