2003-12-07 22:49:04 +00:00
|
|
|
/* GStreamer RIFF I/O
|
|
|
|
* Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
|
|
|
*
|
|
|
|
* riff-media.h: RIFF-id to/from caps routines
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "riff-ids.h"
|
|
|
|
#include "riff-media.h"
|
|
|
|
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
/**
|
|
|
|
* gst_riff_create_video_caps_with_data:
|
|
|
|
* @codec_fcc: fourCC codec for this codec.
|
|
|
|
* @strh: pointer to the strh stream header structure.
|
|
|
|
* @strf: pointer to the strf stream header structure, including any
|
|
|
|
* data that is within the range of strf.size, but excluding any
|
|
|
|
* additional data withint this chunk but outside strf.size.
|
|
|
|
* @strf_data: a #GstBuffer containing the additional data in the strf
|
|
|
|
* chunk outside reach of strf.size. Ususally a palette.
|
|
|
|
* @strd_data: a #GstBuffer containing the data in the strd stream header
|
|
|
|
* chunk. Usually codec initialization data.
|
|
|
|
* @codec_name: if given, will be filled with a human-readable codec name.
|
|
|
|
*/
|
|
|
|
|
2003-12-07 22:49:04 +00:00
|
|
|
GstCaps *
|
2005-06-30 08:59:30 +00:00
|
|
|
gst_riff_create_video_caps (guint32 codec_fcc,
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
gst_riff_strh * strh, gst_riff_strf_vids * strf,
|
|
|
|
GstBuffer * strf_data, GstBuffer * strd_data, char **codec_name)
|
2003-12-07 22:49:04 +00:00
|
|
|
{
|
|
|
|
GstCaps *caps = NULL;
|
2004-10-02 14:10:19 +00:00
|
|
|
GstBuffer *palette = NULL;
|
2003-12-07 22:49:04 +00:00
|
|
|
|
|
|
|
switch (codec_fcc) {
|
2004-10-02 14:10:19 +00:00
|
|
|
case GST_MAKE_FOURCC ('D', 'I', 'B', ' '):
|
|
|
|
caps = gst_caps_new_simple ("video/x-raw-rgb",
|
|
|
|
"bpp", G_TYPE_INT, 8,
|
|
|
|
"depth", G_TYPE_INT, 8, "endianness", G_TYPE_INT, G_BYTE_ORDER, NULL);
|
|
|
|
palette = strf_data;
|
|
|
|
strf_data = NULL;
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Palettized 8-bit RGB");
|
|
|
|
break;
|
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('I', '4', '2', '0'):
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-raw-yuv",
|
2004-03-15 19:32:28 +00:00
|
|
|
"format", GST_TYPE_FOURCC, codec_fcc, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-04-11 17:21:32 +00:00
|
|
|
*codec_name = g_strdup ("Uncompressed planar YUV 4:2:0");
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
break;
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('Y', 'U', 'Y', '2'):
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-raw-yuv",
|
2004-03-15 19:32:28 +00:00
|
|
|
"format", GST_TYPE_FOURCC, codec_fcc, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-04-11 17:21:32 +00:00
|
|
|
*codec_name = g_strdup ("Uncompressed packed YUV 4:2:2");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
2004-03-15 19:32:28 +00:00
|
|
|
case GST_MAKE_FOURCC ('M', 'J', 'P', 'G'): /* YUY2 MJPEG */
|
2005-12-19 15:00:38 +00:00
|
|
|
case GST_MAKE_FOURCC ('A', 'V', 'R', 'n'):
|
|
|
|
case GST_MAKE_FOURCC ('I', 'J', 'P', 'G'):
|
|
|
|
case GST_MAKE_FOURCC ('i', 'j', 'p', 'g'):
|
|
|
|
case GST_MAKE_FOURCC ('J', 'P', 'G', 'L'):
|
2004-04-11 17:21:32 +00:00
|
|
|
caps = gst_caps_new_simple ("image/jpeg", NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("Motion JPEG");
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
break;
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
|
2004-03-15 19:32:28 +00:00
|
|
|
case GST_MAKE_FOURCC ('J', 'P', 'E', 'G'): /* generic (mostly RGB) MJPEG */
|
2004-04-11 17:21:32 +00:00
|
|
|
caps = gst_caps_new_simple ("image/jpeg", NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("JPEG Still Image");
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
break;
|
2004-03-14 22:34:34 +00:00
|
|
|
|
2004-03-15 19:32:28 +00:00
|
|
|
case GST_MAKE_FOURCC ('P', 'I', 'X', 'L'): /* Miro/Pinnacle fourccs */
|
|
|
|
case GST_MAKE_FOURCC ('V', 'I', 'X', 'L'): /* Miro/Pinnacle fourccs */
|
2004-04-11 17:21:32 +00:00
|
|
|
caps = gst_caps_new_simple ("image/jpeg", NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-04-11 17:21:32 +00:00
|
|
|
*codec_name = g_strdup ("Miro/Pinnacle Motion JPEG Video");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
2004-03-14 22:34:34 +00:00
|
|
|
|
2005-12-19 15:00:38 +00:00
|
|
|
case GST_MAKE_FOURCC ('S', 'P', '5', '3'):
|
|
|
|
case GST_MAKE_FOURCC ('S', 'P', '5', '4'):
|
|
|
|
case GST_MAKE_FOURCC ('S', 'P', '5', '5'):
|
|
|
|
case GST_MAKE_FOURCC ('S', 'P', '5', '6'):
|
|
|
|
case GST_MAKE_FOURCC ('S', 'P', '5', '7'):
|
|
|
|
case GST_MAKE_FOURCC ('S', 'P', '5', '8'):
|
|
|
|
caps = gst_caps_new_simple ("video/sp5x", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Sp5x-like JPEG");
|
|
|
|
break;
|
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('H', 'F', 'Y', 'U'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-huffyuv", NULL);
|
2005-08-08 16:58:29 +00:00
|
|
|
if (strf) {
|
|
|
|
gst_caps_set_simple (caps, "bpp",
|
|
|
|
G_TYPE_INT, (int) strf->bit_cnt, NULL);
|
|
|
|
}
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("Huffman Lossless Codec");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
2004-03-14 22:34:34 +00:00
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('M', 'P', 'E', 'G'):
|
|
|
|
case GST_MAKE_FOURCC ('M', 'P', 'G', 'I'):
|
2004-05-31 04:56:55 +00:00
|
|
|
case GST_MAKE_FOURCC ('m', 'p', 'g', '1'):
|
|
|
|
case GST_MAKE_FOURCC ('M', 'P', 'G', '1'):
|
2005-12-19 15:00:38 +00:00
|
|
|
case GST_MAKE_FOURCC ('P', 'I', 'M', '1'):
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("video/mpeg",
|
2004-03-15 19:32:28 +00:00
|
|
|
"systemstream", G_TYPE_BOOLEAN, FALSE,
|
2004-04-22 03:29:01 +00:00
|
|
|
"mpegversion", G_TYPE_INT, 1, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2005-08-08 16:58:29 +00:00
|
|
|
*codec_name = g_strdup ("MPEG-1 video");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
2004-05-31 04:56:55 +00:00
|
|
|
case GST_MAKE_FOURCC ('M', 'P', 'G', '2'):
|
|
|
|
case GST_MAKE_FOURCC ('m', 'p', 'g', '2'):
|
|
|
|
caps = gst_caps_new_simple ("video/mpeg",
|
|
|
|
"systemstream", G_TYPE_BOOLEAN, FALSE,
|
|
|
|
"mpegversion", G_TYPE_INT, 2, NULL);
|
|
|
|
if (codec_name)
|
2005-08-08 16:58:29 +00:00
|
|
|
*codec_name = g_strdup ("MPEG-2 video");
|
2004-05-31 04:56:55 +00:00
|
|
|
break;
|
2003-12-07 22:49:04 +00:00
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('H', '2', '6', '3'):
|
2005-12-19 15:00:38 +00:00
|
|
|
case GST_MAKE_FOURCC ('h', '2', '6', '3'):
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('i', '2', '6', '3'):
|
2005-12-19 15:00:38 +00:00
|
|
|
case GST_MAKE_FOURCC ('U', '2', '6', '3'):
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-h263", NULL);
|
|
|
|
if (codec_name)
|
2005-12-19 15:00:38 +00:00
|
|
|
*codec_name = g_strdup ("ITU H.26n");
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
break;
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('L', '2', '6', '3'):
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-h263", NULL);
|
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("Lead H.263");
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
break;
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('M', '2', '6', '3'):
|
2005-08-08 16:58:29 +00:00
|
|
|
case GST_MAKE_FOURCC ('m', '2', '6', '3'):
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-h263", NULL);
|
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("Microsoft H.263");
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
break;
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('V', 'D', 'O', 'W'):
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-h263", NULL);
|
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("VDOLive");
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
break;
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('V', 'I', 'V', 'O'):
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-h263", NULL);
|
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("Vivo H.263");
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
break;
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('x', '2', '6', '3'):
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-h263", NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("Xirlink H.263");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
2005-08-08 16:58:29 +00:00
|
|
|
/* apparently not standard H.263...? */
|
|
|
|
case GST_MAKE_FOURCC ('I', '2', '6', '3'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-intel-h263", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Intel H.263");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('h', '2', '6', '4'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-h264", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("ITU H.264");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('V', 'S', 'S', 'H'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-h264", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("VideoSoft H.264");
|
|
|
|
break;
|
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('D', 'I', 'V', '3'):
|
2004-04-16 01:43:13 +00:00
|
|
|
case GST_MAKE_FOURCC ('d', 'i', 'v', '3'):
|
2004-04-11 17:21:32 +00:00
|
|
|
case GST_MAKE_FOURCC ('D', 'I', 'V', '4'):
|
2004-04-16 01:43:13 +00:00
|
|
|
case GST_MAKE_FOURCC ('d', 'i', 'v', '4'):
|
2004-04-11 17:21:32 +00:00
|
|
|
case GST_MAKE_FOURCC ('D', 'I', 'V', '5'):
|
2004-04-16 01:43:13 +00:00
|
|
|
case GST_MAKE_FOURCC ('d', 'i', 'v', '5'):
|
2004-04-11 17:21:32 +00:00
|
|
|
case GST_MAKE_FOURCC ('D', 'I', 'V', '6'):
|
2004-04-16 01:43:13 +00:00
|
|
|
case GST_MAKE_FOURCC ('d', 'i', 'v', '6'):
|
2005-12-19 15:00:38 +00:00
|
|
|
case GST_MAKE_FOURCC ('M', 'P', 'G', '3'):
|
|
|
|
case GST_MAKE_FOURCC ('m', 'p', 'g', '3'):
|
|
|
|
case GST_MAKE_FOURCC ('c', 'o', 'l', '0'):
|
|
|
|
case GST_MAKE_FOURCC ('C', 'O', 'L', '0'):
|
|
|
|
case GST_MAKE_FOURCC ('c', 'o', 'l', '1'):
|
|
|
|
case GST_MAKE_FOURCC ('C', 'O', 'L', '1'):
|
|
|
|
case GST_MAKE_FOURCC ('A', 'P', '4', '1'):
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-divx",
|
2004-03-15 19:32:28 +00:00
|
|
|
"divxversion", G_TYPE_INT, 3, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-04-11 17:21:32 +00:00
|
|
|
*codec_name = g_strdup ("DivX MS-MPEG-4 Version 3");
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
break;
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
|
2004-04-11 17:21:32 +00:00
|
|
|
case GST_MAKE_FOURCC ('d', 'i', 'v', 'x'):
|
|
|
|
case GST_MAKE_FOURCC ('D', 'I', 'V', 'X'):
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-divx",
|
2004-04-15 03:21:14 +00:00
|
|
|
"divxversion", G_TYPE_INT, 4, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("DivX MPEG-4 Version 4");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
|
2005-08-08 16:58:29 +00:00
|
|
|
case GST_MAKE_FOURCC ('B', 'L', 'Z', '0'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-divx",
|
|
|
|
"divxversion", G_TYPE_INT, 4, NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Blizzard DivX");
|
|
|
|
break;
|
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('D', 'X', '5', '0'):
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-divx",
|
2004-03-15 19:32:28 +00:00
|
|
|
"divxversion", G_TYPE_INT, 5, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("DivX MPEG-4 Version 5");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('X', 'V', 'I', 'D'):
|
|
|
|
case GST_MAKE_FOURCC ('x', 'v', 'i', 'd'):
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-xvid", NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("XVID MPEG-4");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('M', 'P', 'G', '4'):
|
2004-10-01 10:50:57 +00:00
|
|
|
case GST_MAKE_FOURCC ('M', 'P', '4', 'S'):
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-msmpeg",
|
2004-03-15 19:32:28 +00:00
|
|
|
"msmpegversion", G_TYPE_INT, 41, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("Microsoft MPEG-4 4.1");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
2004-07-15 23:56:05 +00:00
|
|
|
case GST_MAKE_FOURCC ('m', 'p', '4', '2'):
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('M', 'P', '4', '2'):
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-msmpeg",
|
2004-03-15 19:32:28 +00:00
|
|
|
"msmpegversion", G_TYPE_INT, 42, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("Microsoft MPEG-4 4.2");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
2004-07-15 23:56:05 +00:00
|
|
|
case GST_MAKE_FOURCC ('m', 'p', '4', '3'):
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('M', 'P', '4', '3'):
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-msmpeg",
|
2004-03-15 19:32:28 +00:00
|
|
|
"msmpegversion", G_TYPE_INT, 43, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("Microsoft MPEG-4 4.3");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
2005-08-08 16:58:29 +00:00
|
|
|
case GST_MAKE_FOURCC ('M', '4', 'S', '2'):
|
|
|
|
caps = gst_caps_new_simple ("video/mpeg",
|
|
|
|
"mpegversion", G_TYPE_INT, 4, NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Microsoft ISO MPEG-4 1.1");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('F', 'M', 'P', '4'):
|
2005-12-19 15:00:38 +00:00
|
|
|
case GST_MAKE_FOURCC ('U', 'M', 'P', '4'):
|
2005-08-08 16:58:29 +00:00
|
|
|
caps = gst_caps_new_simple ("video/mpeg",
|
|
|
|
"mpegversion", G_TYPE_INT, 4, NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("FFmpeg MPEG-4");
|
|
|
|
break;
|
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('3', 'I', 'V', '1'):
|
|
|
|
case GST_MAKE_FOURCC ('3', 'I', 'V', '2'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-3ivx", NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("3ivx");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('D', 'V', 'S', 'D'):
|
|
|
|
case GST_MAKE_FOURCC ('d', 'v', 's', 'd'):
|
2005-12-19 15:00:38 +00:00
|
|
|
case GST_MAKE_FOURCC ('C', 'D', 'V', 'C'):
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-dv",
|
2004-03-15 19:32:28 +00:00
|
|
|
"systemstream", G_TYPE_BOOLEAN, FALSE, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("Generic DV");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('W', 'M', 'V', '1'):
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-wmv",
|
2004-03-15 19:32:28 +00:00
|
|
|
"wmvversion", G_TYPE_INT, 1, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2005-08-08 16:58:29 +00:00
|
|
|
*codec_name = g_strdup ("Microsoft Windows Media 7");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
2004-03-14 22:34:34 +00:00
|
|
|
case GST_MAKE_FOURCC ('W', 'M', 'V', '2'):
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-wmv",
|
2004-03-15 19:32:28 +00:00
|
|
|
"wmvversion", G_TYPE_INT, 2, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2005-08-08 16:58:29 +00:00
|
|
|
*codec_name = g_strdup ("Microsoft Windows Media 8");
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
break;
|
2004-03-14 22:34:34 +00:00
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('W', 'M', 'V', '3'):
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-wmv",
|
2004-03-15 19:32:28 +00:00
|
|
|
"wmvversion", G_TYPE_INT, 3, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2005-08-08 16:58:29 +00:00
|
|
|
*codec_name = g_strdup ("Microsoft Windows Media 9");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
2004-03-24 02:12:30 +00:00
|
|
|
case GST_MAKE_FOURCC ('c', 'v', 'i', 'd'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-cinepak", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Cinepak video");
|
|
|
|
break;
|
|
|
|
|
2004-04-11 21:36:45 +00:00
|
|
|
case GST_MAKE_FOURCC ('M', 'S', 'V', 'C'):
|
|
|
|
case GST_MAKE_FOURCC ('m', 's', 'v', 'c'):
|
|
|
|
case GST_MAKE_FOURCC ('C', 'R', 'A', 'M'):
|
|
|
|
case GST_MAKE_FOURCC ('c', 'r', 'a', 'm'):
|
|
|
|
case GST_MAKE_FOURCC ('W', 'H', 'A', 'M'):
|
|
|
|
case GST_MAKE_FOURCC ('w', 'h', 'a', 'm'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-msvideocodec",
|
|
|
|
"msvideoversion", G_TYPE_INT, 1, NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("MS video v1");
|
|
|
|
break;
|
|
|
|
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
case GST_MAKE_FOURCC ('R', 'L', 'E', ' '):
|
|
|
|
case GST_MAKE_FOURCC ('m', 'r', 'l', 'e'):
|
|
|
|
case GST_MAKE_FOURCC (0x1, 0x0, 0x0, 0x0): /* why, why, why? */
|
|
|
|
caps = gst_caps_new_simple ("video/x-rle",
|
|
|
|
"layout", G_TYPE_STRING, "microsoft", NULL);
|
2004-10-02 14:10:19 +00:00
|
|
|
palette = strf_data;
|
|
|
|
strf_data = NULL;
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
if (strf) {
|
|
|
|
gst_caps_set_simple (caps,
|
|
|
|
"depth", G_TYPE_INT, (gint) strf->bit_cnt, NULL);
|
|
|
|
} else {
|
|
|
|
gst_caps_set_simple (caps, "depth", GST_TYPE_INT_RANGE, 1, 64, NULL);
|
|
|
|
}
|
|
|
|
if (codec_name)
|
2004-10-02 20:27:03 +00:00
|
|
|
*codec_name = g_strdup ("Microsoft RLE");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('X', 'x', 'a', 'n'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-xan",
|
|
|
|
"wcversion", G_TYPE_INT, 4, NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Xan Wing Commander 4");
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
break;
|
|
|
|
|
2005-12-19 15:00:38 +00:00
|
|
|
case GST_MAKE_FOURCC ('R', 'T', '2', '1'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-indeo",
|
|
|
|
"indeoversion", G_TYPE_INT, 2, NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Intel Video 2");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('I', 'V', '3', '1'):
|
2005-10-17 16:14:29 +00:00
|
|
|
case GST_MAKE_FOURCC ('I', 'V', '3', '2'):
|
2005-12-19 15:00:38 +00:00
|
|
|
case GST_MAKE_FOURCC ('i', 'v', '3', '1'):
|
|
|
|
case GST_MAKE_FOURCC ('i', 'v', '3', '2'):
|
2005-10-17 16:14:29 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-indeo",
|
|
|
|
"indeoversion", G_TYPE_INT, 3, NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Intel Video 3");
|
|
|
|
break;
|
|
|
|
|
2005-12-19 15:00:38 +00:00
|
|
|
case GST_MAKE_FOURCC ('I', 'V', '4', '1'):
|
|
|
|
case GST_MAKE_FOURCC ('i', 'v', '4', '1'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-indeo",
|
|
|
|
"indeoversion", G_TYPE_INT, 4, NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Intel Video 4");
|
|
|
|
break;
|
|
|
|
|
2004-12-01 20:42:01 +00:00
|
|
|
case GST_MAKE_FOURCC ('I', 'V', '5', '0'):
|
2005-12-19 15:00:38 +00:00
|
|
|
caps = gst_caps_new_simple ("video/x-indeo",
|
|
|
|
"indeoversion", G_TYPE_INT, 5, NULL);
|
2004-12-01 20:42:01 +00:00
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Intel Video 5");
|
|
|
|
break;
|
|
|
|
|
2005-12-19 15:00:38 +00:00
|
|
|
case GST_MAKE_FOURCC ('M', 'S', 'Z', 'H'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-mszh", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Lossless MSZH Video");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('Z', 'L', 'I', 'B'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-zlib", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Lossless zlib video");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('C', 'L', 'J', 'R'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-cirrus-logic-accupak", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Cirrus Logipak AccuPak");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('C', 'Y', 'U', 'V'):
|
|
|
|
case GST_MAKE_FOURCC ('c', 'y', 'u', 'v'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-compressed-yuv", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("CYUV Lossless");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('D', 'U', 'C', 'K'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-truemotion",
|
|
|
|
"trueversion", G_TYPE_INT, 1, NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Duck Truemotion1");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('T', 'M', '2', '0'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-truemotion",
|
|
|
|
"trueversion", G_TYPE_INT, 2, NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("TrueMotion 2.0");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('V', 'P', '3', '0'):
|
|
|
|
case GST_MAKE_FOURCC ('v', 'p', '3', '0'):
|
|
|
|
case GST_MAKE_FOURCC ('V', 'P', '3', '1'):
|
|
|
|
case GST_MAKE_FOURCC ('v', 'p', '3', '1'):
|
|
|
|
case GST_MAKE_FOURCC ('V', 'P', '3', ' '):
|
|
|
|
caps = gst_caps_new_simple ("video/x-vp3", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("VP3");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('U', 'L', 'T', 'I'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-ultimotion", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("IBM UltiMotion");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('T', 'S', 'C', 'C'):
|
|
|
|
case GST_MAKE_FOURCC ('t', 's', 'c', 'c'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-camtasia", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("TechSmith Camtasia");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('V', 'C', 'R', '1'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-ati-vcr",
|
|
|
|
"vcrversion", G_TYPE_INT, 1, NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("ATI VCR 1");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('V', 'C', 'R', '2'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-ati-vcr",
|
|
|
|
"vcrversion", G_TYPE_INT, 2, NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("ATI VCR 2");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('A', 'S', 'V', '1'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-asus",
|
|
|
|
"asusversion", G_TYPE_INT, 1, NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Asus Video 1");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('A', 'S', 'V', '2'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-asus",
|
|
|
|
"asusversion", G_TYPE_INT, 2, NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Asus Video 2");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_MAKE_FOURCC ('M', 'P', 'N', 'G'):
|
|
|
|
case GST_MAKE_FOURCC ('m', 'p', 'n', 'g'):
|
|
|
|
case GST_MAKE_FOURCC ('P', 'N', 'G', ' '):
|
|
|
|
caps = gst_caps_new_simple ("image/png", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("PNG image");
|
|
|
|
break;
|
|
|
|
|
2003-12-07 22:49:04 +00:00
|
|
|
default:
|
2005-11-21 13:32:36 +00:00
|
|
|
GST_WARNING ("Unknown video fourcc %" GST_FOURCC_FORMAT,
|
2004-03-15 19:32:28 +00:00
|
|
|
GST_FOURCC_ARGS (codec_fcc));
|
2003-12-22 01:47:09 +00:00
|
|
|
return NULL;
|
2003-12-07 22:49:04 +00:00
|
|
|
}
|
|
|
|
|
2003-12-22 01:47:09 +00:00
|
|
|
if (strh != NULL) {
|
Convert elements to use fractions for their framerate.
Original commit message from CVS:
* ext/libvisual/visual.c: (gst_visual_src_setcaps), (get_buffer),
(gst_visual_chain):
* ext/ogg/gstogmparse.c: (gst_ogm_parse_chain):
* ext/theora/theoradec.c: (theora_handle_type_packet):
* ext/theora/theoraenc.c: (theora_enc_sink_setcaps),
(theora_enc_chain):
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps):
* gst-libs/gst/video/video.c: (gst_video_frame_rate):
* gst-libs/gst/video/video.h:
* gst/ffmpegcolorspace/avcodec.h:
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_caps_to_pixfmt):
* gst/ffmpegcolorspace/gstffmpegcolorspace.c:
(gst_ffmpegcsp_set_caps):
* gst/videorate/gstvideorate.c: (gst_videorate_transformcaps),
(gst_videorate_setcaps), (gst_videorate_blank_data),
(gst_videorate_chain):
* gst/videotestsrc/gstvideotestsrc.c:
(gst_videotestsrc_src_fixate), (gst_videotestsrc_getcaps),
(gst_videotestsrc_parse_caps), (gst_videotestsrc_setcaps),
(gst_videotestsrc_event), (gst_videotestsrc_create):
* gst/videotestsrc/gstvideotestsrc.h:
* sys/ximage/ximagesink.c: (gst_ximagesink_xcontext_get),
(gst_ximagesink_setcaps), (gst_ximagesink_change_state),
(gst_ximagesink_get_times), (gst_ximagesink_init):
* sys/ximage/ximagesink.h:
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_get_xv_support),
(gst_xvimagesink_setcaps), (gst_xvimagesink_change_state),
(gst_xvimagesink_get_times), (gst_xvimagesink_init):
* sys/xvimage/xvimagesink.h:
Convert elements to use fractions for their framerate.
V4L elements to come later tonight.
2005-11-22 16:08:37 +00:00
|
|
|
gst_caps_set_simple (caps, "framerate", GST_TYPE_FRACTION,
|
|
|
|
strh->rate, strh->scale, NULL);
|
2003-12-22 01:47:09 +00:00
|
|
|
} else {
|
|
|
|
gst_caps_set_simple (caps,
|
Convert elements to use fractions for their framerate.
Original commit message from CVS:
* ext/libvisual/visual.c: (gst_visual_src_setcaps), (get_buffer),
(gst_visual_chain):
* ext/ogg/gstogmparse.c: (gst_ogm_parse_chain):
* ext/theora/theoradec.c: (theora_handle_type_packet):
* ext/theora/theoraenc.c: (theora_enc_sink_setcaps),
(theora_enc_chain):
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps):
* gst-libs/gst/video/video.c: (gst_video_frame_rate):
* gst-libs/gst/video/video.h:
* gst/ffmpegcolorspace/avcodec.h:
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_caps_to_pixfmt):
* gst/ffmpegcolorspace/gstffmpegcolorspace.c:
(gst_ffmpegcsp_set_caps):
* gst/videorate/gstvideorate.c: (gst_videorate_transformcaps),
(gst_videorate_setcaps), (gst_videorate_blank_data),
(gst_videorate_chain):
* gst/videotestsrc/gstvideotestsrc.c:
(gst_videotestsrc_src_fixate), (gst_videotestsrc_getcaps),
(gst_videotestsrc_parse_caps), (gst_videotestsrc_setcaps),
(gst_videotestsrc_event), (gst_videotestsrc_create):
* gst/videotestsrc/gstvideotestsrc.h:
* sys/ximage/ximagesink.c: (gst_ximagesink_xcontext_get),
(gst_ximagesink_setcaps), (gst_ximagesink_change_state),
(gst_ximagesink_get_times), (gst_ximagesink_init):
* sys/ximage/ximagesink.h:
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_get_xv_support),
(gst_xvimagesink_setcaps), (gst_xvimagesink_change_state),
(gst_xvimagesink_get_times), (gst_xvimagesink_init):
* sys/xvimage/xvimagesink.h:
Convert elements to use fractions for their framerate.
V4L elements to come later tonight.
2005-11-22 16:08:37 +00:00
|
|
|
"framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1, NULL);
|
2003-12-22 01:47:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (strf != NULL) {
|
|
|
|
gst_caps_set_simple (caps,
|
2004-03-15 19:32:28 +00:00
|
|
|
"width", G_TYPE_INT, strf->width,
|
|
|
|
"height", G_TYPE_INT, strf->height, NULL);
|
2003-12-22 01:47:09 +00:00
|
|
|
} else {
|
|
|
|
gst_caps_set_simple (caps,
|
2004-03-15 19:32:28 +00:00
|
|
|
"width", GST_TYPE_INT_RANGE, 16, 4096,
|
|
|
|
"height", GST_TYPE_INT_RANGE, 16, 4096, NULL);
|
2003-12-07 22:49:04 +00:00
|
|
|
}
|
|
|
|
|
2004-10-01 10:50:57 +00:00
|
|
|
/* extradata */
|
|
|
|
if (strf_data || strd_data) {
|
|
|
|
gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER,
|
|
|
|
strf_data ? strf_data : strd_data, NULL);
|
|
|
|
}
|
|
|
|
|
2004-10-02 14:10:19 +00:00
|
|
|
/* palette */
|
|
|
|
if (palette && GST_BUFFER_SIZE (palette) >= 256 * 4) {
|
|
|
|
GstBuffer *copy = gst_buffer_copy (palette);
|
|
|
|
|
|
|
|
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
|
|
|
gint n;
|
|
|
|
guint32 *data = (guint32 *) GST_BUFFER_DATA (copy);
|
|
|
|
|
|
|
|
/* own endianness */
|
|
|
|
for (n = 0; n < 256; n++)
|
|
|
|
data[n] = GUINT32_FROM_LE (data[n]);
|
|
|
|
#endif
|
|
|
|
gst_caps_set_simple (caps, "palette_data", GST_TYPE_BUFFER, copy, NULL);
|
|
|
|
gst_buffer_unref (copy);
|
|
|
|
}
|
|
|
|
|
2003-12-07 22:49:04 +00:00
|
|
|
return caps;
|
|
|
|
}
|
|
|
|
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
GstCaps *
|
2005-06-30 08:59:30 +00:00
|
|
|
gst_riff_create_audio_caps (guint16 codec_id,
|
2004-07-13 10:24:29 +00:00
|
|
|
gst_riff_strh * strh, gst_riff_strf_auds * strf,
|
|
|
|
GstBuffer * strf_data, GstBuffer * strd_data, char **codec_name)
|
2003-12-07 22:49:04 +00:00
|
|
|
{
|
2004-07-13 10:24:29 +00:00
|
|
|
gboolean block_align = FALSE, rate_chan = TRUE;
|
2003-12-07 22:49:04 +00:00
|
|
|
GstCaps *caps = NULL;
|
2005-08-08 16:58:29 +00:00
|
|
|
gint rate_min = 1000, rate_max = 96000;
|
2004-07-12 11:41:51 +00:00
|
|
|
gint channels_max = 2;
|
2003-12-07 22:49:04 +00:00
|
|
|
|
|
|
|
switch (codec_id) {
|
2004-03-15 19:32:28 +00:00
|
|
|
case GST_RIFF_WAVE_FORMAT_MPEGL3: /* mp3 */
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("audio/mpeg",
|
2004-03-15 19:32:28 +00:00
|
|
|
"mpegversion", G_TYPE_INT, 1, "layer", G_TYPE_INT, 3, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2005-08-08 16:58:29 +00:00
|
|
|
*codec_name = g_strdup ("MPEG-1 layer 3");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
2004-03-15 19:32:28 +00:00
|
|
|
case GST_RIFF_WAVE_FORMAT_MPEGL12: /* mp1 or mp2 */
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("audio/mpeg",
|
2004-03-15 19:32:28 +00:00
|
|
|
"mpegversion", G_TYPE_INT, 1, "layer", G_TYPE_INT, 2, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2005-08-08 16:58:29 +00:00
|
|
|
*codec_name = g_strdup ("MPEG-1 layer 2");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
2004-04-11 19:33:55 +00:00
|
|
|
case GST_RIFF_WAVE_FORMAT_PCM: /* PCM */
|
2003-12-07 22:49:04 +00:00
|
|
|
if (strf != NULL) {
|
2004-07-20 21:06:35 +00:00
|
|
|
gint ba = strf->blockalign;
|
|
|
|
gint ch = strf->channels;
|
|
|
|
gint ws = strf->size;
|
2004-03-15 19:32:28 +00:00
|
|
|
|
|
|
|
caps = gst_caps_new_simple ("audio/x-raw-int",
|
|
|
|
"endianness", G_TYPE_INT, G_LITTLE_ENDIAN,
|
|
|
|
"width", G_TYPE_INT, (int) (ba * 8 / ch),
|
|
|
|
"depth", G_TYPE_INT, ws, "signed", G_TYPE_BOOLEAN, ws != 8, NULL);
|
2003-12-07 22:49:04 +00:00
|
|
|
} else {
|
2004-03-15 19:32:28 +00:00
|
|
|
caps = gst_caps_from_string ("audio/x-raw-int, "
|
|
|
|
"endianness = (int) LITTLE_ENDIAN, "
|
|
|
|
"signed = (boolean) { true, false }, "
|
2005-08-08 16:58:29 +00:00
|
|
|
"width = (int) { 8, 16, 24, 32 }, "
|
|
|
|
"depth = (int) { 8, 16, 24, 32 }");
|
2003-12-07 22:49:04 +00:00
|
|
|
}
|
2005-08-08 16:58:29 +00:00
|
|
|
if (codec_name && strf)
|
|
|
|
*codec_name = g_strdup_printf ("Uncompressed %d-bit PCM audio",
|
|
|
|
strf->size);
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
case GST_RIFF_WAVE_FORMAT_ADPCM:
|
|
|
|
caps = gst_caps_new_simple ("audio/x-adpcm",
|
|
|
|
"layout", G_TYPE_STRING, "microsoft", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("ADPCM audio");
|
2004-05-09 15:49:25 +00:00
|
|
|
block_align = TRUE;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_RIFF_WAVE_FORMAT_DVI_ADPCM:
|
|
|
|
caps = gst_caps_new_simple ("audio/x-adpcm",
|
|
|
|
"layout", G_TYPE_STRING, "dvi", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("DVI ADPCM audio");
|
|
|
|
block_align = TRUE;
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
break;
|
|
|
|
|
2003-12-07 22:49:04 +00:00
|
|
|
case GST_RIFF_WAVE_FORMAT_MULAW:
|
|
|
|
if (strf != NULL && strf->size != 8) {
|
2004-03-15 19:32:28 +00:00
|
|
|
GST_WARNING ("invalid depth (%d) of mulaw audio, overwriting.",
|
|
|
|
strf->size);
|
2005-08-08 16:58:29 +00:00
|
|
|
strf->size = 8;
|
|
|
|
strf->av_bps = 8;
|
|
|
|
strf->blockalign = strf->av_bps * strf->channels;
|
|
|
|
}
|
|
|
|
if (strf != NULL && (strf->av_bps == 0 || strf->blockalign == 0)) {
|
|
|
|
GST_WARNING ("fixing av_bps (%d) and blockalign (%d) of mulaw audio",
|
|
|
|
strf->av_bps, strf->blockalign);
|
|
|
|
strf->av_bps = strf->size;
|
|
|
|
strf->blockalign = strf->av_bps * strf->channels;
|
2003-12-07 22:49:04 +00:00
|
|
|
}
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("audio/x-mulaw", NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2005-08-08 16:58:29 +00:00
|
|
|
*codec_name = g_strdup ("Mu-law audio");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_RIFF_WAVE_FORMAT_ALAW:
|
|
|
|
if (strf != NULL && strf->size != 8) {
|
2004-03-15 19:32:28 +00:00
|
|
|
GST_WARNING ("invalid depth (%d) of alaw audio, overwriting.",
|
|
|
|
strf->size);
|
2005-08-08 16:58:29 +00:00
|
|
|
strf->size = 8;
|
|
|
|
strf->av_bps = 8;
|
|
|
|
strf->blockalign = strf->av_bps * strf->channels;
|
|
|
|
}
|
|
|
|
if (strf != NULL && (strf->av_bps == 0 || strf->blockalign == 0)) {
|
|
|
|
GST_WARNING ("fixing av_bps (%d) and blockalign (%d) of alaw audio",
|
|
|
|
strf->av_bps, strf->blockalign);
|
|
|
|
strf->av_bps = strf->size;
|
|
|
|
strf->blockalign = strf->av_bps * strf->channels;
|
2003-12-07 22:49:04 +00:00
|
|
|
}
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("audio/x-alaw", NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2005-08-08 16:58:29 +00:00
|
|
|
*codec_name = g_strdup ("A-law audio");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
2004-03-15 19:32:28 +00:00
|
|
|
case GST_RIFF_WAVE_FORMAT_VORBIS1: /* ogg/vorbis mode 1 */
|
|
|
|
case GST_RIFF_WAVE_FORMAT_VORBIS2: /* ogg/vorbis mode 2 */
|
|
|
|
case GST_RIFF_WAVE_FORMAT_VORBIS3: /* ogg/vorbis mode 3 */
|
|
|
|
case GST_RIFF_WAVE_FORMAT_VORBIS1PLUS: /* ogg/vorbis mode 1+ */
|
|
|
|
case GST_RIFF_WAVE_FORMAT_VORBIS2PLUS: /* ogg/vorbis mode 2+ */
|
|
|
|
case GST_RIFF_WAVE_FORMAT_VORBIS3PLUS: /* ogg/vorbis mode 3+ */
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("audio/x-vorbis", NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("Vorbis");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case GST_RIFF_WAVE_FORMAT_A52:
|
2004-07-12 11:41:51 +00:00
|
|
|
channels_max = 6;
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_simple ("audio/x-ac3", NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2005-08-08 16:58:29 +00:00
|
|
|
*codec_name = g_strdup ("AC-3 audio");
|
2003-12-07 22:49:04 +00:00
|
|
|
break;
|
2004-07-13 10:24:29 +00:00
|
|
|
case GST_RIFF_WAVE_FORMAT_WMAV1:
|
|
|
|
case GST_RIFF_WAVE_FORMAT_WMAV2:
|
2004-10-01 10:50:57 +00:00
|
|
|
case GST_RIFF_WAVE_FORMAT_WMAV3:
|
2004-07-13 10:24:29 +00:00
|
|
|
{
|
2004-10-01 10:50:57 +00:00
|
|
|
gint version = (codec_id - GST_RIFF_WAVE_FORMAT_WMAV1) + 1;
|
2004-07-13 10:24:29 +00:00
|
|
|
|
2004-10-30 06:44:03 +00:00
|
|
|
channels_max = 6;
|
|
|
|
|
2004-07-13 10:24:29 +00:00
|
|
|
block_align = TRUE;
|
|
|
|
|
|
|
|
caps = gst_caps_new_simple ("audio/x-wma",
|
|
|
|
"wmaversion", G_TYPE_INT, version, NULL);
|
|
|
|
|
|
|
|
if (codec_name)
|
2005-08-08 16:58:29 +00:00
|
|
|
*codec_name = g_strdup_printf ("WMA Version %d", version + 6);
|
2003-12-07 22:49:04 +00:00
|
|
|
|
2004-07-13 10:24:29 +00:00
|
|
|
if (strf != NULL) {
|
|
|
|
gst_caps_set_simple (caps,
|
|
|
|
"bitrate", G_TYPE_INT, strf->av_bps * 8, NULL);
|
|
|
|
} else {
|
|
|
|
gst_caps_set_simple (caps,
|
|
|
|
"bitrate", GST_TYPE_INT_RANGE, 0, G_MAXINT, NULL);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
2004-10-06 14:18:13 +00:00
|
|
|
case GST_RIFF_WAVE_FORMAT_SONY_ATRAC3:
|
|
|
|
caps = gst_caps_new_simple ("audio/x-vnd.sony.atrac3", NULL);
|
|
|
|
if (codec_name)
|
|
|
|
*codec_name = g_strdup ("Sony ATRAC3");
|
|
|
|
break;
|
|
|
|
|
2003-12-07 22:49:04 +00:00
|
|
|
default:
|
2004-05-14 11:39:41 +00:00
|
|
|
GST_WARNING ("Unknown audio tag 0x%04x", codec_id);
|
2004-03-30 03:13:03 +00:00
|
|
|
return NULL;
|
2003-12-07 22:49:04 +00:00
|
|
|
}
|
|
|
|
|
2003-12-22 01:47:09 +00:00
|
|
|
if (strf != NULL) {
|
2004-07-13 10:24:29 +00:00
|
|
|
if (rate_chan) {
|
|
|
|
gst_caps_set_simple (caps,
|
|
|
|
"rate", G_TYPE_INT, strf->rate,
|
|
|
|
"channels", G_TYPE_INT, strf->channels, NULL);
|
|
|
|
}
|
|
|
|
if (block_align) {
|
2004-05-09 15:49:25 +00:00
|
|
|
gst_caps_set_simple (caps,
|
|
|
|
"block_align", G_TYPE_INT, strf->blockalign, NULL);
|
2004-07-13 10:24:29 +00:00
|
|
|
}
|
2003-12-22 01:47:09 +00:00
|
|
|
} else {
|
2004-07-13 10:24:29 +00:00
|
|
|
if (rate_chan) {
|
|
|
|
gst_caps_set_simple (caps,
|
|
|
|
"rate", GST_TYPE_INT_RANGE, rate_min, rate_max,
|
|
|
|
"channels", GST_TYPE_INT_RANGE, 1, channels_max, NULL);
|
|
|
|
}
|
|
|
|
if (block_align) {
|
2004-05-09 15:49:25 +00:00
|
|
|
gst_caps_set_simple (caps,
|
2004-12-03 15:34:19 +00:00
|
|
|
"block_align", GST_TYPE_INT_RANGE, 1, G_MAXINT, NULL);
|
2004-07-13 10:24:29 +00:00
|
|
|
}
|
2003-12-07 22:49:04 +00:00
|
|
|
}
|
|
|
|
|
2004-10-01 10:50:57 +00:00
|
|
|
/* extradata */
|
|
|
|
if (strf_data || strd_data) {
|
|
|
|
gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER,
|
|
|
|
strf_data ? strf_data : strd_data, NULL);
|
|
|
|
}
|
|
|
|
|
2003-12-07 22:49:04 +00:00
|
|
|
return caps;
|
|
|
|
}
|
|
|
|
|
|
|
|
GstCaps *
|
2004-03-14 22:34:34 +00:00
|
|
|
gst_riff_create_iavs_caps (guint32 codec_fcc,
|
2005-06-30 08:59:30 +00:00
|
|
|
gst_riff_strh * strh, gst_riff_strf_iavs * strf,
|
|
|
|
GstBuffer * init_data, GstBuffer * extra_data, char **codec_name)
|
2003-12-07 22:49:04 +00:00
|
|
|
{
|
|
|
|
GstCaps *caps = NULL;
|
|
|
|
|
|
|
|
switch (codec_fcc) {
|
2004-03-14 22:34:34 +00:00
|
|
|
/* is this correct? */
|
|
|
|
case GST_MAKE_FOURCC ('D', 'V', 'S', 'D'):
|
|
|
|
case GST_MAKE_FOURCC ('d', 'v', 's', 'd'):
|
|
|
|
caps = gst_caps_new_simple ("video/x-dv",
|
2004-03-15 19:32:28 +00:00
|
|
|
"systemstream", G_TYPE_BOOLEAN, TRUE, NULL);
|
gst/: First batch implementing audio and video codec tags in demuxers.
Original commit message from CVS:
2004-02-23 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps),
(gst_riff_create_audio_caps), (gst_riff_create_iavs_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps),
(gst_riff_create_iavs_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_audio_caps), (gst_asf_demux_add_audio_stream),
(gst_asf_demux_video_caps), (gst_asf_demux_add_video_stream):
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps),
(gst_matroska_demux_plugin_init): First batch implementing audio and
video codec tags in demuxers.
2004-02-23 22:16:21 +00:00
|
|
|
if (codec_name)
|
2004-03-15 19:32:28 +00:00
|
|
|
*codec_name = g_strdup ("Generic DV");
|
2004-05-14 11:39:41 +00:00
|
|
|
break;
|
2003-12-07 22:49:04 +00:00
|
|
|
|
|
|
|
default:
|
2005-11-21 13:32:36 +00:00
|
|
|
GST_WARNING ("Unknown IAVS fourcc %" GST_FOURCC_FORMAT,
|
2004-03-15 19:32:28 +00:00
|
|
|
GST_FOURCC_ARGS (codec_fcc));
|
2003-12-22 01:47:09 +00:00
|
|
|
return NULL;
|
2003-12-07 22:49:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return caps;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Functions below are for template caps. All is variable.
|
|
|
|
*/
|
|
|
|
|
|
|
|
GstCaps *
|
|
|
|
gst_riff_create_video_template_caps (void)
|
|
|
|
{
|
|
|
|
guint32 tags[] = {
|
2004-03-14 22:34:34 +00:00
|
|
|
GST_MAKE_FOURCC ('I', '4', '2', '0'),
|
|
|
|
GST_MAKE_FOURCC ('Y', 'U', 'Y', '2'),
|
|
|
|
GST_MAKE_FOURCC ('M', 'J', 'P', 'G'),
|
|
|
|
GST_MAKE_FOURCC ('D', 'V', 'S', 'D'),
|
|
|
|
GST_MAKE_FOURCC ('W', 'M', 'V', '1'),
|
|
|
|
GST_MAKE_FOURCC ('W', 'M', 'V', '2'),
|
2004-10-09 19:55:30 +00:00
|
|
|
GST_MAKE_FOURCC ('W', 'M', 'V', '3'),
|
2004-03-14 22:34:34 +00:00
|
|
|
GST_MAKE_FOURCC ('M', 'P', 'G', '4'),
|
|
|
|
GST_MAKE_FOURCC ('M', 'P', '4', '2'),
|
|
|
|
GST_MAKE_FOURCC ('M', 'P', '4', '3'),
|
|
|
|
GST_MAKE_FOURCC ('H', 'F', 'Y', 'U'),
|
|
|
|
GST_MAKE_FOURCC ('D', 'I', 'V', '3'),
|
|
|
|
GST_MAKE_FOURCC ('M', 'P', 'E', 'G'),
|
|
|
|
GST_MAKE_FOURCC ('H', '2', '6', '3'),
|
2005-08-08 16:58:29 +00:00
|
|
|
GST_MAKE_FOURCC ('I', '2', '6', '3'),
|
|
|
|
GST_MAKE_FOURCC ('h', '2', '6', '4'),
|
2004-03-14 22:34:34 +00:00
|
|
|
GST_MAKE_FOURCC ('D', 'I', 'V', 'X'),
|
2004-07-12 11:41:51 +00:00
|
|
|
GST_MAKE_FOURCC ('D', 'X', '5', '0'),
|
2004-03-14 22:34:34 +00:00
|
|
|
GST_MAKE_FOURCC ('X', 'V', 'I', 'D'),
|
|
|
|
GST_MAKE_FOURCC ('3', 'I', 'V', '1'),
|
2004-04-11 21:36:45 +00:00
|
|
|
GST_MAKE_FOURCC ('c', 'v', 'i', 'd'),
|
|
|
|
GST_MAKE_FOURCC ('m', 's', 'v', 'c'),
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
GST_MAKE_FOURCC ('R', 'L', 'E', ' '),
|
2004-10-02 14:10:19 +00:00
|
|
|
GST_MAKE_FOURCC ('D', 'I', 'B', ' '),
|
2004-10-02 20:27:03 +00:00
|
|
|
GST_MAKE_FOURCC ('X', 'x', 'a', 'n'),
|
2005-10-17 16:14:29 +00:00
|
|
|
GST_MAKE_FOURCC ('I', 'V', '3', '2'),
|
2004-12-01 20:42:01 +00:00
|
|
|
GST_MAKE_FOURCC ('I', 'V', '5', '0'),
|
2005-08-08 16:58:29 +00:00
|
|
|
GST_MAKE_FOURCC ('M', '4', 'S', '2'),
|
2005-12-19 15:00:38 +00:00
|
|
|
GST_MAKE_FOURCC ('M', 'S', 'Z', 'H'),
|
|
|
|
GST_MAKE_FOURCC ('Z', 'L', 'I', 'B'),
|
|
|
|
GST_MAKE_FOURCC ('A', 'S', 'V', '1'),
|
|
|
|
GST_MAKE_FOURCC ('A', 'S', 'V', '2'),
|
|
|
|
GST_MAKE_FOURCC ('V', 'C', 'R', '1'),
|
|
|
|
GST_MAKE_FOURCC ('V', 'C', 'R', '2'),
|
|
|
|
GST_MAKE_FOURCC ('C', 'L', 'J', 'R'),
|
|
|
|
GST_MAKE_FOURCC ('I', 'V', '4', '1'),
|
|
|
|
GST_MAKE_FOURCC ('R', 'T', '2', '1'),
|
2005-12-20 10:13:05 +00:00
|
|
|
GST_MAKE_FOURCC ('D', 'U', 'C', 'K'),
|
2005-12-19 15:00:38 +00:00
|
|
|
GST_MAKE_FOURCC ('T', 'M', '2', '0'),
|
|
|
|
GST_MAKE_FOURCC ('U', 'L', 'T', 'I'),
|
|
|
|
GST_MAKE_FOURCC ('V', 'P', '3', ' '),
|
|
|
|
GST_MAKE_FOURCC ('T', 'S', 'C', 'C'),
|
|
|
|
GST_MAKE_FOURCC ('S', 'P', '5', '3'),
|
|
|
|
GST_MAKE_FOURCC ('P', 'N', 'G', ' '),
|
|
|
|
GST_MAKE_FOURCC ('C', 'Y', 'U', 'V'),
|
2003-12-07 22:49:04 +00:00
|
|
|
/* FILL ME */
|
|
|
|
0
|
|
|
|
};
|
|
|
|
guint i;
|
2003-12-22 01:47:09 +00:00
|
|
|
GstCaps *caps, *one;
|
2003-12-07 22:49:04 +00:00
|
|
|
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_empty ();
|
2003-12-07 22:49:04 +00:00
|
|
|
for (i = 0; tags[i] != 0; i++) {
|
2005-06-30 08:59:30 +00:00
|
|
|
one = gst_riff_create_video_caps (tags[i], NULL, NULL, NULL, NULL, NULL);
|
2003-12-07 22:49:04 +00:00
|
|
|
if (one)
|
2003-12-22 01:47:09 +00:00
|
|
|
gst_caps_append (caps, one);
|
2003-12-07 22:49:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return caps;
|
|
|
|
}
|
|
|
|
|
|
|
|
GstCaps *
|
|
|
|
gst_riff_create_audio_template_caps (void)
|
|
|
|
{
|
|
|
|
guint16 tags[] = {
|
|
|
|
GST_RIFF_WAVE_FORMAT_MPEGL3,
|
|
|
|
GST_RIFF_WAVE_FORMAT_MPEGL12,
|
|
|
|
GST_RIFF_WAVE_FORMAT_PCM,
|
|
|
|
GST_RIFF_WAVE_FORMAT_VORBIS1,
|
|
|
|
GST_RIFF_WAVE_FORMAT_A52,
|
|
|
|
GST_RIFF_WAVE_FORMAT_ALAW,
|
|
|
|
GST_RIFF_WAVE_FORMAT_MULAW,
|
gst/: Add MS RLE support. I added some functions to read out strf chunks into strf chunks and the data behind it. Thi...
Original commit message from CVS:
reviewed by: <delete if not using a buddy>
* gst-libs/gst/riff/riff-media.c:
(gst_riff_create_video_caps_with_data),
(gst_riff_create_video_caps), (gst_riff_create_audio_caps),
(gst_riff_create_video_template_caps),
(gst_riff_create_audio_template_caps):
* gst-libs/gst/riff/riff-media.h:
* gst-libs/gst/riff/riff-read.c:
(gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_vids):
* gst-libs/gst/riff/riff-read.h:
* gst/avi/gstavidemux.c: (gst_avi_demux_add_stream):
Add MS RLE support. I added some functions to read out strf chunks
into strf chunks and the data behind it. This is usually color
palettes (as in RLE, but also in 8-bit RGB). Also use those during
caps creation. Lastly, add ADPCM (similar to wavparse - which
should eventually be rifflib based).
* gst/matroska/matroska-demux.c: (gst_matroska_demux_class_init),
(gst_matroska_demux_init), (gst_matroska_demux_reset):
* gst/matroska/matroska-demux.h:
Remove placeholders for some prehistoric tagging system. Didn't add
support for any tag system really anyway.
* gst/qtdemux/qtdemux.c:
Add support for audio/x-m4a (MPEG-4) through spider.
* gst/wavparse/gstwavparse.c: (gst_wavparse_parse_fmt),
(gst_wavparse_loop):
ADPCM support (#135862). Increase max. buffer size because we
cannot split buffers for ADPCM (screws references) and I've seen
files with 2048 byte chunks. 4096 seems safe for now.
2004-04-16 01:20:43 +00:00
|
|
|
GST_RIFF_WAVE_FORMAT_ADPCM,
|
2004-05-09 15:49:25 +00:00
|
|
|
GST_RIFF_WAVE_FORMAT_DVI_ADPCM,
|
2004-07-13 10:24:29 +00:00
|
|
|
GST_RIFF_WAVE_FORMAT_WMAV1,
|
|
|
|
GST_RIFF_WAVE_FORMAT_WMAV2,
|
2004-10-30 06:44:03 +00:00
|
|
|
GST_RIFF_WAVE_FORMAT_WMAV3,
|
2005-11-28 10:12:26 +00:00
|
|
|
GST_RIFF_WAVE_FORMAT_SONY_ATRAC3,
|
2003-12-07 22:49:04 +00:00
|
|
|
/* FILL ME */
|
|
|
|
0
|
|
|
|
};
|
|
|
|
guint i;
|
2003-12-22 01:47:09 +00:00
|
|
|
GstCaps *caps, *one;
|
2003-12-07 22:49:04 +00:00
|
|
|
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_empty ();
|
2003-12-07 22:49:04 +00:00
|
|
|
for (i = 0; tags[i] != 0; i++) {
|
2005-06-30 08:59:30 +00:00
|
|
|
one = gst_riff_create_audio_caps (tags[i], NULL, NULL, NULL, NULL, NULL);
|
2003-12-07 22:49:04 +00:00
|
|
|
if (one)
|
2003-12-22 01:47:09 +00:00
|
|
|
gst_caps_append (caps, one);
|
2003-12-07 22:49:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return caps;
|
|
|
|
}
|
|
|
|
|
|
|
|
GstCaps *
|
|
|
|
gst_riff_create_iavs_template_caps (void)
|
|
|
|
{
|
|
|
|
guint32 tags[] = {
|
2004-03-14 22:34:34 +00:00
|
|
|
GST_MAKE_FOURCC ('D', 'V', 'S', 'D'),
|
2003-12-07 22:49:04 +00:00
|
|
|
/* FILL ME */
|
|
|
|
0
|
|
|
|
};
|
|
|
|
guint i;
|
2003-12-22 01:47:09 +00:00
|
|
|
GstCaps *caps, *one;
|
2003-12-07 22:49:04 +00:00
|
|
|
|
2003-12-22 01:47:09 +00:00
|
|
|
caps = gst_caps_new_empty ();
|
2003-12-07 22:49:04 +00:00
|
|
|
for (i = 0; tags[i] != 0; i++) {
|
2005-06-30 08:59:30 +00:00
|
|
|
one = gst_riff_create_iavs_caps (tags[i], NULL, NULL, NULL, NULL, NULL);
|
2003-12-07 22:49:04 +00:00
|
|
|
if (one)
|
2003-12-22 01:47:09 +00:00
|
|
|
gst_caps_append (caps, one);
|
2003-12-07 22:49:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return caps;
|
|
|
|
}
|