summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2006-12-07 18:07:32 +0000
committerEdward Hervey <bilboed@bilboed.com>2006-12-07 18:07:32 +0000
commitd524eefabb600a8986c283f3f8d6128754a4eb5d (patch)
tree072cf40c60c28296c53b44a923dfcae1ecf9318e
parentc9e71601c5d6d686ae71549ea689ad498a7d0bd2 (diff)
ext/ffmpeg/gstffmpegcodecmap.c: Activate "amr" and "3gp" muxers.
Original commit message from CVS: * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_formatid_get_codecids): Activate "amr" and "3gp" muxers. Add AMR-NB as a valid audio codec for "mp4" muxer
-rw-r--r--ChangeLog6
-rw-r--r--ext/ffmpeg/gstffmpegcodecmap.c30
2 files changed, 33 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 0b71b1a..5301546 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-12-07 Edward Hervey <edward@fluendo.com>
+
+ * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_formatid_get_codecids):
+ Activate "amr" and "3gp" muxers.
+ Add AMR-NB as a valid audio codec for "mp4" muxer
+
2006-12-07 Wim Taymans <wim@fluendo.com>
* ext/ffmpeg/gstffmpegcodecmap.c:
diff --git a/ext/ffmpeg/gstffmpegcodecmap.c b/ext/ffmpeg/gstffmpegcodecmap.c
index 1495ba2..61d47eb 100644
--- a/ext/ffmpeg/gstffmpegcodecmap.c
+++ b/ext/ffmpeg/gstffmpegcodecmap.c
@@ -1717,8 +1717,13 @@ gst_ffmpeg_formatid_get_codecids (const gchar *format_name,
GST_LOG ("format_name : %s", format_name);
if (!strcmp (format_name, "mp4")) {
- static enum CodecID mp4_video_list[] = { CODEC_ID_MPEG4, CODEC_ID_H264, CODEC_ID_NONE };
- static enum CodecID mp4_audio_list[] = { CODEC_ID_AAC, CODEC_ID_NONE };
+ static enum CodecID mp4_video_list[] = {
+ CODEC_ID_MPEG4, CODEC_ID_H264, CODEC_ID_NONE
+ };
+ static enum CodecID mp4_audio_list[] = {
+ CODEC_ID_AAC, CODEC_ID_MP3, CODEC_ID_AMR_NB,
+ CODEC_ID_NONE
+ };
*video_codec_list = mp4_video_list;
*audio_codec_list = mp4_audio_list;
@@ -1789,12 +1794,31 @@ gst_ffmpeg_formatid_get_codecids (const gchar *format_name,
*video_codec_list = mov_video_list;
*audio_codec_list = mov_audio_list;
+ } else if ((!strcmp (format_name, "3gp") ||
+ !strcmp (format_name, "3g2"))) {
+ static enum CodecID tgp_video_list[] = {
+ CODEC_ID_H263,
+ CODEC_ID_NONE
+ };
+ static enum CodecID tgp_audio_list[] = {
+ CODEC_ID_AMR_NB,
+ CODEC_ID_NONE
+ };
+
+ *video_codec_list = tgp_video_list;
+ *audio_codec_list = tgp_audio_list;
} else if (!strcmp (format_name, "mmf")) {
static enum CodecID mmf_audio_list[] = {
CODEC_ID_ADPCM_YAMAHA};
*video_codec_list = NULL;
*audio_codec_list = mmf_audio_list;
- } else {
+ } else if (!strcmp (format_name, "amr")) {
+ static enum CodecID amr_audio_list[] = {
+ CODEC_ID_AMR_NB, CODEC_ID_AMR_WB,
+ CODEC_ID_NONE };
+ *video_codec_list = NULL;
+ *audio_codec_list = amr_audio_list;
+ } else {
GST_LOG ("Format %s not found", format_name);
return FALSE;
}