1 /*****************************************************************************
2 * avformat.c: demuxer and muxer using libavformat library
3 *****************************************************************************
4 * Copyright (C) 1999-2008 the VideoLAN team
7 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8 * Gildas Bazin <gbazin@videolan.org>
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.
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.
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 *****************************************************************************/
25 /*****************************************************************************
27 *****************************************************************************/
32 #include <vlc_common.h>
33 #include <vlc_plugin.h>
34 #include <vlc_codec.h>
37 #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H
38 # include <libavformat/avformat.h>
39 #elif defined(HAVE_FFMPEG_AVFORMAT_H)
40 # include <ffmpeg/avformat.h>
45 /*****************************************************************************
47 *****************************************************************************/
49 add_shortcut( "ffmpeg" );
50 set_category( CAT_INPUT );
51 set_subcategory( SUBCAT_INPUT_SCODEC );
52 set_description( N_("FFmpeg demuxer" ) );
53 set_capability( "demux", 2 );
54 set_callbacks( OpenDemux, CloseDemux );
59 set_description( N_("FFmpeg muxer" ) );
60 set_capability( "sout mux", 2 );
61 add_string( "ffmpeg-mux", NULL, NULL, MUX_TEXT,
63 set_callbacks( OpenMux, CloseMux );