From faea34bf985e95c4356e96a88737273baa6ad94b Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Thu, 19 Jul 2007 15:05:30 +0000 Subject: Adds a first draft of an FLV demuxer. Original commit message from CVS: 2007-07-19 Julien MOUTTE * configure.ac: * gst/flv/Makefile.am: * gst/flv/gstflvdemux.c: (gst_flv_demux_flush), (gst_flv_demux_cleanup), (gst_flv_demux_chain), (gst_flv_demux_pull_tag), (gst_flv_demux_pull_header), (gst_flv_demux_seek_to_prev_keyframe), (gst_flv_demux_loop), (gst_flv_demux_sink_activate), (gst_flv_demux_sink_activate_push), (gst_flv_demux_sink_activate_pull), (gst_flv_demux_sink_event), (gst_flv_demux_change_state), (gst_flv_demux_dispose), (gst_flv_demux_base_init), (gst_flv_demux_class_init), (gst_flv_demux_init), (plugin_init): * gst/flv/gstflvdemux.h: * gst/flv/gstflvparse.c: (FLV_GET_BEUI24), (FLV_GET_STRING), (gst_flv_demux_query_types), (gst_flv_demux_query), (gst_flv_parse_metadata_item), (gst_flv_parse_tag_script), (gst_flv_parse_tag_audio), (gst_flv_parse_tag_video), (gst_flv_parse_tag_type), (gst_flv_parse_header): * gst/flv/gstflvparse.h: Adds a first draft of an FLV demuxer. It does not do seeking yet, it supports pull and push mode so YES you can use it to play youtube videos directly from an HTTP uri. Not so much testing done yet but it parses metadata, reply to duration queries, etc... --- gst/flv/gstflvparse.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 gst/flv/gstflvparse.h (limited to 'gst/flv/gstflvparse.h') diff --git a/gst/flv/gstflvparse.h b/gst/flv/gstflvparse.h new file mode 100644 index 00000000..027aaeda --- /dev/null +++ b/gst/flv/gstflvparse.h @@ -0,0 +1,44 @@ +/* GStreamer + * Copyright (C) <2007> Julien Moutte + * + * 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. + */ + +#ifndef __FLV_PARSE_H__ +#define __FLV_PARSE_H__ + +#include "gstflvdemux.h" + +G_BEGIN_DECLS + +GstFlowReturn gst_flv_parse_tag_script (GstFLVDemux * demux, + const guint8 * data, size_t data_size); + +GstFlowReturn gst_flv_parse_tag_audio (GstFLVDemux * demux, const guint8 * data, + size_t data_size); + +GstFlowReturn gst_flv_parse_tag_video (GstFLVDemux * demux, const guint8 * data, + size_t data_size); + +GstFlowReturn gst_flv_parse_tag_type (GstFLVDemux * demux, const guint8 * data, + size_t data_size); + +GstFlowReturn gst_flv_parse_header (GstFLVDemux * demux, const guint8 * data, + size_t data_size); + +G_END_DECLS + +#endif /* __FLV_PARSE_H__ */ -- cgit v1.2.1