1 /*****************************************************************************
2  * avformat.c: demuxer and muxer using libavformat library
3  *****************************************************************************
4  * Copyright (C) 1999-2008 VLC authors and VideoLAN
5  * $Id: 12d3881a21998949d485ef68da2d1763d69f6a50 $
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 it
11  * under the terms of the GNU Lesser General Public License as published by
12  * the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this program; if not, write to the Free Software Foundation,
22  * 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 #include "../../codec/avcodec/avcommon.h"
35 
36 vlc_module_begin ()
37 #endif /* MERGE_FFMPEG */
38     add_shortcut( "ffmpeg", "avformat" )
39     set_category( CAT_INPUT )
40     set_subcategory( SUBCAT_INPUT_DEMUX )
41     set_description( N_("Avformat demuxer" ) )
42     set_shortname( N_("Avformat") )
43     set_capability( "demux", 2 )
44     set_callbacks( avformat_OpenDemux, avformat_CloseDemux )
45     set_section( N_("Demuxer"), NULL )
46     add_string( "avformat-format", NULL, FORMAT_TEXT, FORMAT_LONGTEXT, true )
47     add_obsolete_string("ffmpeg-format") /* removed since 2.1.0 */
48     add_string( "avformat-options", NULL, AV_OPTIONS_TEXT, AV_OPTIONS_LONGTEXT, true )
49 
50 #ifdef ENABLE_SOUT
51     /* mux submodule */
52     add_submodule ()
53     add_shortcut( "ffmpeg", "avformat" )
54     set_description( N_("Avformat muxer" ) )
55     set_capability( "sout mux", 2 )
56     set_section( N_("Muxer"), NULL )
57     add_string( "sout-avformat-mux", NULL, MUX_TEXT, MUX_LONGTEXT, true )
58     add_obsolete_string("ffmpeg-mux") /* removed since 2.1.0 */
59     add_string( "sout-avformat-options", NULL, AV_OPTIONS_TEXT, AV_OPTIONS_LONGTEXT, true )
60     add_bool( "sout-avformat-reset-ts", false, AV_RESET_TS_TEXT, AV_RESET_TS_LONGTEXT, true )
61     set_callbacks( avformat_OpenMux, avformat_CloseMux )
62 #endif
63 #ifndef MERGE_FFMPEG
64 vlc_module_end ()
65 #endif
66