Difference between revisions of "Hacker Guide/Demux"
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
After implementing those functions, you should assign them to the corresponding pf_ function. | After implementing those functions, you should assign them to the corresponding pf_ function. | ||
+ | |||
+ | |||
+ | {{Documentation}}{{Coding}}{{Container}} |
Revision as of 00:07, 12 November 2010
Description
The modules of 'demux' capability are designed to handle the different "file" formats. They usually come after the access in the modules chain.
Examples of demuxers are WMV/ASF, Ogg or Mkv.
Write an demuxer module
To write an demuxer module, read the introduction to module writing.
Then, you should specify your module of being of demux type:
set_capability( "demux", 60 ) set_category( CAT_INPUT ) set_subcategory( SUBCAT_INPUT_DEMUX )
Functions to implement
After implementing Open() and Close() functions, you will need to implement a few majors features that will be implemented by your functions.
As you can see include/vlc_demux.h, you should define:
- Seek, as in pf_seek
- Control, as in pf_control
- Read or Block, depending on your module type
After implementing those functions, you should assign them to the corresponding pf_ function.
This page is part of official VLC media player Documentation (User Guide • Streaming HowTo • Hacker Guide • Modules)
Please read the Documentation Editing Guidelines before you edit the documentation
Please read the Documentation Editing Guidelines before you edit the documentation
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
??
|
VLC can decode this container. The module name to use at the command line is unknown. |