mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
f1b6c80c23
Original commit message from CVS: reviewed by David Schleef * configure.ac: bump required gstreamer version to 0.8.1.1 because of following changes [--ds] * gst-libs/gst/riff/riff-read.c: Include gst/gstutils.h. (gst_riff_peek_head, gst_riff_peek_list, gst_riff_read_list) (gst_riff_read_header): Use GST_READ_UINT* macros to access possibly unaligned memory. * gst/typefind/gsttypefindfunctions.c: Include gst/gstutils.h. (mp3_type_find): Use GST_READ_UINT* macros to access possibly unaligned memory. (mp3_type_find, mpeg1_parse_header, qt_type_find) (speex_type_find): Likewise * gst/tags/gstvorbistag.c: (ADVANCE): Likewise * gst/qtdemux/qtdemux.c: Include stdlib.h (needed by realloc). (QTDEMUX_GUINT32_GET, QTDEMUX_GUINT16_GET, QTDEMUX_FP32_GET) (QTDEMUX_FP16_GET, QTDEMUX_FOURCC_GET) (gst_qtdemux_loop_header, gst_qtdemux_loop_header) (qtdemux_node_dump_foreach, qtdemux_tree_get_child_by_type) (qtdemux_tree_get_sibling_by_type): Use GST_READ_UINT* macros to access possibly unaligned memory. * gst/mpegstream/gstmpegpacketize.c: (parse_generic, parse_chunk): Likewise. * gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_parse_syshead) (gst_mpeg_demux_parse_packet, gst_mpeg_demux_parse_pes): Likewise. * gst/mpegaudioparse/gstmpegaudioparse.c: (gst_mp3parse_chain): Likewise. * gst/mpeg2sub/gstmpeg2subt.c: (GST_BUFFER_DATA) (gst_mpeg2subt_chain_subtitle): Likewise. * gst/mpeg1videoparse/gstmp1videoparse.c: (mp1videoparse_parse_seq) (gst_mp1videoparse_time_code, gst_mp1videoparse_real_chain): Likewise. * gst/mpeg1sys/buffer.c: (mpeg1mux_buffer_update_audio_info): Likewise. * gst/cdxaparse/gstcdxaparse.c: (gst_bytestream_peek_bytes): Likewise. * gst/asfdemux/gstasfdemux.c: (_read_var_length, _read_uint): Likewise. |
||
---|---|---|
.. | ||
asfheaders.h | ||
gstasfdemux.c | ||
gstasfdemux.h | ||
gstasfmux.c | ||
gstasfmux.h | ||
Makefile.am | ||
README |
ASF Demuxer Plugin ================== Overview -------- This plugin is a demuxer for Microsoft's ASF Advanced Streaming Format or ASF [1]. This demuxer only supports ASF v1.0 since the vast majority of existing ASF files use that version. The spcification has been derived from a third party source [2] without reference to the original. Design ------ The ASF format can carry any combination of audio, video or 'ASF_Command_Media' streams. For simplicity it is assumed that each file can carry up to 16 audio streams and 16 video streams. These are implemented as dynamic pads and appear as appropriate once the file headers have been parsed. (-------------------------) ! asfdemux ! ! (video/raw0)--- ! (video/raw1)--- ! (video/raw... --- src ! ! (audio/raw0)--- ! (audio/raw0)--- ! (audio/raw... ! ! (-------------------------) Known stream fourccs are: Type Tags MIME type ------------------------------------------ H263 H263 I263 MJPEG MJPG video/jpeg MPEG4 DIVX divx DX50 video/mpeg XVID xvid mp4s MP4S M4S2 m4s2 0x04000000 MSMPEG4V1 MPG4 video/mpeg MSMPEG4V2 MP42 video/mpeg MSMPEG4V3 MP43 DIV3 video/mpeg WMV1 WMV1 These video stream headers is very similar to that used in the AVI format as are the audio stream headers. In addition the content types are basically the same also so, for compatibility with existing plugins the src pads are set up as video/x-msvideo. This enables compatibility with the ffmpeg plugin. The demuxing process begins with the loop function gst_asf_demux_loop and parses the file in a recursive tree as follows: gst_asf_demux_loop() +-> gst_asf_demux_process_object() <---- +-> gst_asf_demux_process_stream() \ |-> gst_asf_demux_process_file() | |-> gst_asf_demux_process_header() --+ |-> gst_asf_demux_process_data() +-> gst_asf_demux_process_segment() +-> gst_asf_demux_process_chunk() Todo ---- - Support for ASF v2.0 - Support for command media streams References ---------- [1] Microsoft. ASF Specification - Windows Media Technologies. http://www.microsoft.com/windows/windowsmedia/WM7/format/asfspec11300e.asp [2] divx at euro.ru. ASF format version 1.0, reconstruction. http://avifile.sourceforge.net/asf-1.0.htm