root/modules/demux/avformat/avformat.c
| Revision 21574c3af48d66e582466f1260175ba9c5f445f2, 2.3 kB (checked in by Antoine Cellerier <dionoea@videolan.org>, 6 months ago) | |
|---|---|
| |
| Line | |
|---|---|
| 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 | /***************************************************************************** |
| 26 | * Preamble |
| 27 | *****************************************************************************/ |
| 28 | #ifdef HAVE_CONFIG_H |
| 29 | # include "config.h" |
| 30 | #endif |
| 31 | |
| 32 | #include <vlc_common.h> |
| 33 | #include <vlc_plugin.h> |
| 34 | #include <vlc_codec.h> |
| 35 | |
| 36 | /* ffmpeg header */ |
| 37 | #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H |
| 38 | # include <libavformat/avformat.h> |
| 39 | #elif defined(HAVE_FFMPEG_AVFORMAT_H) |
| 40 | # include <ffmpeg/avformat.h> |
| 41 | #endif |
| 42 | |
| 43 | #include "avformat.h" |
| 44 | |
| 45 | /***************************************************************************** |
| 46 | * Module descriptor |
| 47 | *****************************************************************************/ |
| 48 | vlc_module_begin(); |
| 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 ); |
| 55 | |
| 56 | #ifdef ENABLE_SOUT |
| 57 | /* mux submodule */ |
| 58 | add_submodule(); |
| 59 | set_description( N_("FFmpeg muxer" ) ); |
| 60 | set_capability( "sout mux", 2 ); |
| 61 | add_string( "ffmpeg-mux", NULL, NULL, MUX_TEXT, |
| 62 | MUX_LONGTEXT, true ); |
| 63 | set_callbacks( OpenMux, CloseMux ); |
| 64 | #endif |
| 65 | vlc_module_end(); |
Note: See TracBrowser for help on using the browser.
