]> git.sesse.net Git - vlc/blob - modules/demux/avformat/avformat.c
8d41faac7ad213f2aa46d5afdaccc14d0ce2c199
[vlc] / modules / demux / avformat / avformat.c
1 /*****************************************************************************
2  * avformat.c: demuxer and muxer using libavformat library
3  *****************************************************************************
4  * Copyright (C) 1999-2008 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8  *          Gildas Bazin <gbazin@videolan.org>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 #ifndef MERGE_FFMPEG
26 #ifdef HAVE_CONFIG_H
27 # include "config.h"
28 #endif
29
30 #include <vlc_common.h>
31 #include <vlc_plugin.h>
32
33 #include "avformat.h"
34
35 vlc_module_begin ()
36 #endif /* MERGE_FFMPEG */
37     add_shortcut( "ffmpeg", "avformat" )
38     set_category( CAT_INPUT )
39     set_subcategory( SUBCAT_INPUT_DEMUX )
40     set_description( N_("FFmpeg demuxer" ) )
41     set_shortname( N_("Avformat") )
42     set_capability( "demux", 2 )
43     set_callbacks( OpenDemux, CloseDemux )
44
45 #ifdef ENABLE_SOUT
46     /* mux submodule */
47     add_submodule ()
48     add_shortcut( "ffmpeg", "avformat" )
49     set_description( N_("FFmpeg muxer" ) )
50     set_capability( "sout mux", 2 )
51     add_string( "ffmpeg-mux", NULL, MUX_TEXT,
52                 MUX_LONGTEXT, true )
53     set_callbacks( OpenMux, CloseMux )
54 #endif
55 #ifndef MERGE_FFMPEG
56 vlc_module_end ()
57 #endif