1
/*****************************************************************
2
* gmerlin-encoders - encoder plugins for gmerlin
4
* Copyright (c) 2001 - 2011 Members of the Gmerlin project
5
* gmerlin-general@lists.sourceforge.net
6
* http://gmerlin.sourceforge.net
8
* This program is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation, either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
* *****************************************************************/
23
#include <gmerlin/translation.h>
24
#include "ffmpeg_common.h"
26
static const ffmpeg_format_info_t formats[] =
29
.name = "SUN AU Format",
32
.max_audio_streams = 1,
33
.audio_codecs = (enum CodecID[]){ CODEC_ID_PCM_MULAW,
42
.max_audio_streams = 1,
43
.audio_codecs = (enum CodecID[]){ CODEC_ID_AC3,
50
.max_audio_streams = 1,
51
.audio_codecs = (enum CodecID[]){ CODEC_ID_PCM_S16BE,
61
.max_audio_streams = 1,
62
.audio_codecs = (enum CodecID[]){ CODEC_ID_MP2,
65
#if LIBAVCODEC_BUILD >= ((51<<16)+(32<<8)+0)
70
.max_audio_streams = 1,
71
.audio_codecs = (enum CodecID[]){ CODEC_ID_WMAV2,
76
{ /* End of formats */ }
79
static void * create_ffmpeg()
81
return bg_ffmpeg_create(formats);
84
const bg_encoder_plugin_t the_plugin =
89
.name = "e_ffmpeg_audio", /* Unique short name */
90
.long_name = TRS("FFmpeg audio encoder"),
91
.description = TRS("Plugin for encoding various audio formats with ffmpeg \
92
(http://www.ffmpeg.org)."),
93
.type = BG_PLUGIN_ENCODER_AUDIO,
94
.flags = BG_PLUGIN_FILE,
96
.create = create_ffmpeg,
97
.destroy = bg_ffmpeg_destroy,
98
.get_parameters = bg_ffmpeg_get_parameters,
99
.set_parameter = bg_ffmpeg_set_parameter,
102
.max_audio_streams = 1,
104
.get_audio_parameters = bg_ffmpeg_get_audio_parameters,
106
.set_callbacks = bg_ffmpeg_set_callbacks,
108
.open = bg_ffmpeg_open,
110
.add_audio_stream = bg_ffmpeg_add_audio_stream,
112
.set_audio_parameter = bg_ffmpeg_set_audio_parameter,
114
.get_audio_format = bg_ffmpeg_get_audio_format,
116
.start = bg_ffmpeg_start,
118
.write_audio_frame = bg_ffmpeg_write_audio_frame,
119
.close = bg_ffmpeg_close,
122
/* Include this into all plugin modules exactly once
123
to let the plugin loader obtain the API version */
124
BG_GET_PLUGIN_API_VERSION;