2003-11-21 21:34:27 +00:00
|
|
|
/* GStreamer Matroska muxer/demuxer
|
|
|
|
* (c) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
|
|
|
*
|
|
|
|
* matroska-ids.h: matroska file/stream data IDs
|
|
|
|
*
|
|
|
|
* 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
|
2012-11-04 00:07:18 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2003-11-21 21:34:27 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_MATROSKA_IDS_H__
|
|
|
|
#define __GST_MATROSKA_IDS_H__
|
|
|
|
|
2006-04-25 16:38:50 +00:00
|
|
|
#include <gst/gst.h>
|
2015-06-10 14:22:54 +00:00
|
|
|
#include <gst/video/video-info.h>
|
2006-04-25 16:38:50 +00:00
|
|
|
|
2003-11-21 21:34:27 +00:00
|
|
|
#include "ebml-ids.h"
|
|
|
|
|
2010-05-09 10:09:57 +00:00
|
|
|
/*
|
2010-05-20 18:01:58 +00:00
|
|
|
* EBML DocType.
|
2010-05-09 10:09:57 +00:00
|
|
|
*/
|
|
|
|
|
2010-05-20 18:01:58 +00:00
|
|
|
#define GST_MATROSKA_DOCTYPE_MATROSKA "matroska"
|
|
|
|
#define GST_MATROSKA_DOCTYPE_WEBM "webm"
|
2010-05-09 10:09:57 +00:00
|
|
|
|
2003-11-21 21:34:27 +00:00
|
|
|
/*
|
Riff, EBML, fourcc etc. work. Not fully finished, but better than what we used to have and definately worth a first b...
Original commit message from CVS:
Riff, EBML, fourcc etc. work. Not fully finished, but better than
what we used to have and definately worth a first broad testing.
I've revived rifflib. Rifflib used to be a bytestream-for-riff, which
just dup'ed bytestream. I've rewritten rifflib to be a modern riff-
chunk parser that uses bytestream fully, plus adds some extra functions
so that riff file parsing becomes extremely easy. It also contains some
small usability functions for strh/strf and metadata parsing. Note that
it doesn't use the new tagging yet, that's a TODO.
Avidemux has been rewritten to use this. I think we all agreed that
avidemux was pretty much a big mess, which is because it used all
sort of bytestream magic all around the place. It was just ugly.
This is a lot nicer, very complete and safe. I think this is far more
robust than what the old avidemux could ever have been. Of course, it
might contain bugs, please let me know.
EBML writing has also been implemented. This is useful for matroska.
I'm intending to modify avidemux (with a riffwriter) similarly. Maybe
I'll change wavparse/-enc too to use rifflib.
Lastly, several plugins have been modified to use rifflib's fourcc
parsing instead of their own. this puts fourcc parsing in one central
place, which should make it a lot simpler to add new fourccs. We might
want to move this to its own lib instead of rifflib.
Enjoy!
2003-12-07 20:00:41 +00:00
|
|
|
* Matroska element IDs. max. 32-bit.
|
2003-11-21 21:34:27 +00:00
|
|
|
*/
|
|
|
|
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
/* toplevel Segment */
|
|
|
|
#define GST_MATROSKA_ID_SEGMENT 0x18538067
|
|
|
|
|
|
|
|
/* matroska top-level master IDs, childs of Segment */
|
|
|
|
#define GST_MATROSKA_ID_SEGMENTINFO 0x1549A966
|
|
|
|
#define GST_MATROSKA_ID_TRACKS 0x1654AE6B
|
|
|
|
#define GST_MATROSKA_ID_CUES 0x1C53BB6B
|
|
|
|
#define GST_MATROSKA_ID_TAGS 0x1254C367
|
|
|
|
#define GST_MATROSKA_ID_SEEKHEAD 0x114D9B74
|
|
|
|
#define GST_MATROSKA_ID_CLUSTER 0x1F43B675
|
|
|
|
#define GST_MATROSKA_ID_ATTACHMENTS 0x1941A469
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERS 0x1043A770
|
|
|
|
|
|
|
|
/* IDs in the SegmentInfo master */
|
|
|
|
#define GST_MATROSKA_ID_TIMECODESCALE 0x2AD7B1
|
|
|
|
#define GST_MATROSKA_ID_DURATION 0x4489
|
|
|
|
#define GST_MATROSKA_ID_WRITINGAPP 0x5741
|
|
|
|
#define GST_MATROSKA_ID_MUXINGAPP 0x4D80
|
|
|
|
#define GST_MATROSKA_ID_DATEUTC 0x4461
|
|
|
|
#define GST_MATROSKA_ID_SEGMENTUID 0x73A4
|
|
|
|
#define GST_MATROSKA_ID_SEGMENTFILENAME 0x7384
|
|
|
|
#define GST_MATROSKA_ID_PREVUID 0x3CB923
|
|
|
|
#define GST_MATROSKA_ID_PREVFILENAME 0x3C83AB
|
|
|
|
#define GST_MATROSKA_ID_NEXTUID 0x3EB923
|
|
|
|
#define GST_MATROSKA_ID_NEXTFILENAME 0x3E83BB
|
|
|
|
#define GST_MATROSKA_ID_TITLE 0x7BA9
|
|
|
|
#define GST_MATROSKA_ID_SEGMENTFAMILY 0x4444
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERTRANSLATE 0x6924
|
|
|
|
|
|
|
|
/* IDs in the ChapterTranslate master */
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERTRANSLATEEDITIONUID 0x69FC
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERTRANSLATECODEC 0x69BF
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERTRANSLATEID 0x69A5
|
|
|
|
|
|
|
|
/* ID in the Tracks master */
|
|
|
|
#define GST_MATROSKA_ID_TRACKENTRY 0xAE
|
|
|
|
|
|
|
|
/* IDs in the TrackEntry master */
|
|
|
|
#define GST_MATROSKA_ID_TRACKNUMBER 0xD7
|
|
|
|
#define GST_MATROSKA_ID_TRACKUID 0x73C5
|
|
|
|
#define GST_MATROSKA_ID_TRACKTYPE 0x83
|
|
|
|
#define GST_MATROSKA_ID_TRACKAUDIO 0xE1
|
|
|
|
#define GST_MATROSKA_ID_TRACKVIDEO 0xE0
|
|
|
|
#define GST_MATROSKA_ID_CONTENTENCODINGS 0x6D80
|
|
|
|
#define GST_MATROSKA_ID_CODECID 0x86
|
|
|
|
#define GST_MATROSKA_ID_CODECPRIVATE 0x63A2
|
|
|
|
#define GST_MATROSKA_ID_CODECNAME 0x258688
|
|
|
|
#define GST_MATROSKA_ID_TRACKNAME 0x536E
|
|
|
|
#define GST_MATROSKA_ID_TRACKLANGUAGE 0x22B59C
|
|
|
|
#define GST_MATROSKA_ID_TRACKFLAGENABLED 0xB9
|
|
|
|
#define GST_MATROSKA_ID_TRACKFLAGDEFAULT 0x88
|
|
|
|
#define GST_MATROSKA_ID_TRACKFLAGFORCED 0x55AA
|
|
|
|
#define GST_MATROSKA_ID_TRACKFLAGLACING 0x9C
|
|
|
|
#define GST_MATROSKA_ID_TRACKMINCACHE 0x6DE7
|
|
|
|
#define GST_MATROSKA_ID_TRACKMAXCACHE 0x6DF8
|
|
|
|
#define GST_MATROSKA_ID_TRACKDEFAULTDURATION 0x23E383
|
|
|
|
#define GST_MATROSKA_ID_TRACKTIMECODESCALE 0x23314F
|
|
|
|
#define GST_MATROSKA_ID_MAXBLOCKADDITIONID 0x55EE
|
|
|
|
#define GST_MATROSKA_ID_TRACKATTACHMENTLINK 0x7446
|
|
|
|
#define GST_MATROSKA_ID_TRACKOVERLAY 0x6FAB
|
|
|
|
#define GST_MATROSKA_ID_TRACKTRANSLATE 0x6624
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_TRACKOFFSET 0x537F
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_CODECSETTINGS 0x3A9697
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_CODECINFOURL 0x3B4040
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_CODECDOWNLOADURL 0x26B240
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_CODECDECODEALL 0xAA
|
2015-11-03 10:18:19 +00:00
|
|
|
#define GST_MATROSKA_ID_SEEKPREROLL 0x56BB
|
|
|
|
#define GST_MATROSKA_ID_CODECDELAY 0x56AA
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
|
|
|
|
/* IDs in the TrackTranslate master */
|
|
|
|
#define GST_MATROSKA_ID_TRACKTRANSLATEEDITIONUID 0x66FC
|
|
|
|
#define GST_MATROSKA_ID_TRACKTRANSLATECODEC 0x66BF
|
|
|
|
#define GST_MATROSKA_ID_TRACKTRANSLATETRACKID 0x66A5
|
|
|
|
|
|
|
|
|
|
|
|
/* IDs in the TrackVideo master */
|
|
|
|
/* NOTE: This one is here only for backward compatibility.
|
|
|
|
* Use _TRACKDEFAULDURATION */
|
|
|
|
#define GST_MATROSKA_ID_VIDEOFRAMERATE 0x2383E3
|
|
|
|
#define GST_MATROSKA_ID_VIDEODISPLAYWIDTH 0x54B0
|
|
|
|
#define GST_MATROSKA_ID_VIDEODISPLAYHEIGHT 0x54BA
|
|
|
|
#define GST_MATROSKA_ID_VIDEODISPLAYUNIT 0x54B2
|
|
|
|
#define GST_MATROSKA_ID_VIDEOPIXELWIDTH 0xB0
|
|
|
|
#define GST_MATROSKA_ID_VIDEOPIXELHEIGHT 0xBA
|
|
|
|
#define GST_MATROSKA_ID_VIDEOPIXELCROPBOTTOM 0x54AA
|
|
|
|
#define GST_MATROSKA_ID_VIDEOPIXELCROPTOP 0x54BB
|
|
|
|
#define GST_MATROSKA_ID_VIDEOPIXELCROPLEFT 0x54CC
|
|
|
|
#define GST_MATROSKA_ID_VIDEOPIXELCROPRIGHT 0x54DD
|
|
|
|
#define GST_MATROSKA_ID_VIDEOFLAGINTERLACED 0x9A
|
2019-08-07 14:01:34 +00:00
|
|
|
#define GST_MATROSKA_ID_VIDEOFIELDORDER 0x9D
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_VIDEOSTEREOMODE 0x53B8
|
2021-04-23 18:37:46 +00:00
|
|
|
#define GST_MATROSKA_ID_VIDEOALPHAMODE 0x53C0
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
#define GST_MATROSKA_ID_VIDEOASPECTRATIOTYPE 0x54B3
|
|
|
|
#define GST_MATROSKA_ID_VIDEOCOLOURSPACE 0x2EB524
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_VIDEOGAMMAVALUE 0x2FB523
|
|
|
|
|
2017-11-07 09:03:53 +00:00
|
|
|
#define GST_MATROSKA_ID_VIDEOCOLOUR 0x55B0
|
|
|
|
/* IDs in the Colour master*/
|
|
|
|
#define GST_MATROSKA_ID_VIDEOMATRIXCOEFFICIENTS 0x55B1
|
|
|
|
#define GST_MATROSKA_ID_VIDEORANGE 0x55B9
|
|
|
|
#define GST_MATROSKA_ID_VIDEOTRANSFERCHARACTERISTICS 0x55BA
|
|
|
|
#define GST_MATROSKA_ID_VIDEOPRIMARIES 0x55BB
|
2019-02-18 14:28:50 +00:00
|
|
|
#define GST_MATROSKA_ID_MAXCLL 0x55BC
|
|
|
|
#define GST_MATROSKA_ID_MAXFALL 0x55BD
|
|
|
|
#define GST_MATROSKA_ID_MASTERINGMETADATA 0x55D0
|
|
|
|
/* IDs in the MasteringMetadata */
|
|
|
|
#define GST_MATROSKA_ID_PRIMARYRCHROMATICITYX 0x55D1
|
|
|
|
#define GST_MATROSKA_ID_PRIMARYRCHROMATICITYY 0x55D2
|
|
|
|
#define GST_MATROSKA_ID_PRIMARYGCHROMATICITYX 0x55D3
|
|
|
|
#define GST_MATROSKA_ID_PRIMARYGCHROMATICITYY 0x55D4
|
|
|
|
#define GST_MATROSKA_ID_PRIMARYBCHROMATICITYX 0x55D5
|
|
|
|
#define GST_MATROSKA_ID_PRIMARYBCHROMATICITYY 0x55D6
|
|
|
|
#define GST_MATROSKA_ID_WHITEPOINTCHROMATICITYX 0x55D7
|
|
|
|
#define GST_MATROSKA_ID_WHITEPOINTCHROMATICITYY 0x55D8
|
|
|
|
#define GST_MATROSKA_ID_LUMINANCEMAX 0x55D9
|
|
|
|
#define GST_MATROSKA_ID_LUMINANCEMIN 0x55DA
|
2017-11-07 09:03:53 +00:00
|
|
|
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
/* IDs in the TrackAudio master */
|
|
|
|
#define GST_MATROSKA_ID_AUDIOSAMPLINGFREQ 0xB5
|
|
|
|
#define GST_MATROSKA_ID_AUDIOBITDEPTH 0x6264
|
|
|
|
#define GST_MATROSKA_ID_AUDIOCHANNELS 0x9F
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_AUDIOCHANNELPOSITIONS 0x7D7B
|
|
|
|
#define GST_MATROSKA_ID_AUDIOOUTPUTSAMPLINGFREQ 0x78B5
|
|
|
|
|
|
|
|
/* IDs in the TrackContentEncoding master */
|
|
|
|
#define GST_MATROSKA_ID_CONTENTENCODING 0x6240
|
|
|
|
|
|
|
|
/* IDs in the ContentEncoding master */
|
|
|
|
#define GST_MATROSKA_ID_CONTENTENCODINGORDER 0x5031
|
|
|
|
#define GST_MATROSKA_ID_CONTENTENCODINGSCOPE 0x5032
|
|
|
|
#define GST_MATROSKA_ID_CONTENTENCODINGTYPE 0x5033
|
|
|
|
#define GST_MATROSKA_ID_CONTENTCOMPRESSION 0x5034
|
|
|
|
#define GST_MATROSKA_ID_CONTENTENCRYPTION 0x5035
|
|
|
|
|
|
|
|
/* IDs in the ContentCompression master */
|
|
|
|
#define GST_MATROSKA_ID_CONTENTCOMPALGO 0x4254
|
|
|
|
#define GST_MATROSKA_ID_CONTENTCOMPSETTINGS 0x4255
|
|
|
|
|
|
|
|
/* IDs in the ContentEncryption master */
|
|
|
|
#define GST_MATROSKA_ID_CONTENTENCALGO 0x47E1
|
|
|
|
#define GST_MATROSKA_ID_CONTENTENCKEYID 0x47E2
|
|
|
|
#define GST_MATROSKA_ID_CONTENTSIGNATURE 0x47E3
|
|
|
|
#define GST_MATROSKA_ID_CONTENTSIGKEYID 0x47E4
|
|
|
|
#define GST_MATROSKA_ID_CONTENTSIGALGO 0x47E5
|
|
|
|
#define GST_MATROSKA_ID_CONTENTSIGHASHALGO 0x47E6
|
matroska: Add the WebM encrypted content support in matroskademux
This commit:
1. Reads the WebM and Matroska ContentEncryption subelements.
2. Creates a GST_PROTECTION event for each ContentEncryption, which
will be sent before pushing the first source buffer.
The DRM system id field in this event is set to GST_PROTECTION_UNSPECIFIED_SYSTEM_ID,
because it isn't specified neither by Matroska nor by the WebM spec.
3. Reads the protection information of encrypted Block/SimpleBlock and
extracts the IV and the partitioning format (subsamples).
4. Creates the metadata protection for each encrypted Block/SimpleBlock,
with those informations: KeyID (extracted from ContentEncryption element),
IV and partitioning format.
5. Adds a new caps for WebM encrypted content named "application/x-webm-enc",
with the following new fields:
"encryption-algorithm": The encryption algorithm used.
values: "None", "DES", "3DES", "Twofish", "Blowfish", "AES".
"encoding-scope": The field that describes which Elements have been modified.
Values: "frame", "codec-data", "next-content".
"cipher-mode": The cipher mode used in the encryption.
Values: "None", "CTR".
https://bugzilla.gnome.org/show_bug.cgi?id=765275
2018-09-30 17:28:07 +00:00
|
|
|
/* Added in WebM spec */
|
|
|
|
#define GST_MATROSKA_ID_CONTENTENCAESSETTINGS 0x47E7
|
|
|
|
#define GST_MATROSKA_ID_AESSETTINGSCIPHERMODE 0x47E8
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
|
|
|
|
/* ID in the CUEs master */
|
|
|
|
#define GST_MATROSKA_ID_POINTENTRY 0xBB
|
2003-11-21 21:34:27 +00:00
|
|
|
|
|
|
|
/* IDs in the pointentry master */
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
#define GST_MATROSKA_ID_CUETIME 0xB3
|
|
|
|
#define GST_MATROSKA_ID_CUETRACKPOSITIONS 0xB7
|
|
|
|
|
|
|
|
/* IDs in the CueTrackPositions master */
|
|
|
|
#define GST_MATROSKA_ID_CUETRACK 0xF7
|
|
|
|
#define GST_MATROSKA_ID_CUECLUSTERPOSITION 0xF1
|
|
|
|
#define GST_MATROSKA_ID_CUEBLOCKNUMBER 0x5378
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_CUECODECSTATE 0xEA
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_CUEREFERENCE 0xDB
|
|
|
|
|
|
|
|
/* IDs in the CueReference master */
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_CUEREFTIME 0x96
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_CUEREFCLUSTER 0x97
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_CUEREFNUMBER 0x535F
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_CUEREFCODECSTATE 0xEB
|
|
|
|
|
|
|
|
/* IDs in the Tags master */
|
|
|
|
#define GST_MATROSKA_ID_TAG 0x7373
|
|
|
|
|
|
|
|
/* in the Tag master */
|
|
|
|
#define GST_MATROSKA_ID_SIMPLETAG 0x67C8
|
|
|
|
#define GST_MATROSKA_ID_TARGETS 0x63C0
|
|
|
|
|
|
|
|
/* in the SimpleTag master */
|
|
|
|
#define GST_MATROSKA_ID_TAGNAME 0x45A3
|
|
|
|
#define GST_MATROSKA_ID_TAGSTRING 0x4487
|
|
|
|
#define GST_MATROSKA_ID_TAGLANGUAGE 0x447A
|
|
|
|
#define GST_MATROSKA_ID_TAGDEFAULT 0x4484
|
|
|
|
#define GST_MATROSKA_ID_TAGBINARY 0x4485
|
|
|
|
|
|
|
|
/* in the Targets master */
|
|
|
|
#define GST_MATROSKA_ID_TARGETTYPEVALUE 0x68CA
|
|
|
|
#define GST_MATROSKA_ID_TARGETTYPE 0x63CA
|
|
|
|
#define GST_MATROSKA_ID_TARGETTRACKUID 0x63C5
|
2012-08-22 11:32:41 +00:00
|
|
|
#define GST_MATROSKA_ID_TARGETEDITIONUID 0x63C9
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
#define GST_MATROSKA_ID_TARGETCHAPTERUID 0x63C4
|
|
|
|
#define GST_MATROSKA_ID_TARGETATTACHMENTUID 0x63C6
|
|
|
|
|
|
|
|
/* IDs in the SeekHead master */
|
|
|
|
#define GST_MATROSKA_ID_SEEKENTRY 0x4DBB
|
|
|
|
|
|
|
|
/* IDs in the SeekEntry master */
|
|
|
|
#define GST_MATROSKA_ID_SEEKID 0x53AB
|
|
|
|
#define GST_MATROSKA_ID_SEEKPOSITION 0x53AC
|
|
|
|
|
|
|
|
/* IDs in the Cluster master */
|
|
|
|
#define GST_MATROSKA_ID_CLUSTERTIMECODE 0xE7
|
|
|
|
#define GST_MATROSKA_ID_BLOCKGROUP 0xA0
|
|
|
|
#define GST_MATROSKA_ID_SIMPLEBLOCK 0xA3
|
|
|
|
#define GST_MATROSKA_ID_REFERENCEBLOCK 0xFB
|
|
|
|
#define GST_MATROSKA_ID_POSITION 0xA7
|
|
|
|
#define GST_MATROSKA_ID_PREVSIZE 0xAB
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_ENCRYPTEDBLOCK 0xAF
|
|
|
|
#define GST_MATROSKA_ID_SILENTTRACKS 0x5854
|
|
|
|
|
|
|
|
/* IDs in the SilentTracks master */
|
|
|
|
#define GST_MATROSKA_ID_SILENTTRACKNUMBER 0x58D7
|
|
|
|
|
|
|
|
/* IDs in the BlockGroup master */
|
|
|
|
#define GST_MATROSKA_ID_BLOCK 0xA1
|
|
|
|
#define GST_MATROSKA_ID_BLOCKDURATION 0x9B
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_BLOCKVIRTUAL 0xA2
|
|
|
|
#define GST_MATROSKA_ID_REFERENCEBLOCK 0xFB
|
|
|
|
#define GST_MATROSKA_ID_BLOCKADDITIONS 0x75A1
|
|
|
|
#define GST_MATROSKA_ID_REFERENCEPRIORITY 0xFA
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_REFERENCEVIRTUAL 0xFD
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_CODECSTATE 0xA4
|
|
|
|
#define GST_MATROSKA_ID_SLICES 0x8E
|
2015-11-03 10:18:19 +00:00
|
|
|
#define GST_MATROSKA_ID_DISCARDPADDING 0x75A2
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
|
|
|
|
/* IDs in the BlockAdditions master */
|
|
|
|
#define GST_MATROSKA_ID_BLOCKMORE 0xA6
|
|
|
|
|
|
|
|
/* IDs in the BlockMore master */
|
|
|
|
#define GST_MATROSKA_ID_BLOCKADDID 0xEE
|
|
|
|
#define GST_MATROSKA_ID_BLOCKADDITIONAL 0xA5
|
|
|
|
|
|
|
|
/* IDs in the Slices master */
|
|
|
|
#define GST_MATROSKA_ID_TIMESLICE 0xE8
|
|
|
|
|
|
|
|
/* IDs in the TimeSlice master */
|
|
|
|
#define GST_MATROSKA_ID_LACENUMBER 0xCC
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_FRAMENUMBER 0xCD
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_BLOCKADDITIONID 0xCB
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_TIMESLICEDELAY 0xCE
|
|
|
|
#define GST_MATROSKA_ID_TIMESLICEDURATION 0xCF
|
|
|
|
|
|
|
|
/* IDs in the Attachments master */
|
|
|
|
#define GST_MATROSKA_ID_ATTACHEDFILE 0x61A7
|
|
|
|
|
|
|
|
/* IDs in the AttachedFile master */
|
|
|
|
#define GST_MATROSKA_ID_FILEDESCRIPTION 0x467E
|
|
|
|
#define GST_MATROSKA_ID_FILENAME 0x466E
|
|
|
|
#define GST_MATROSKA_ID_FILEMIMETYPE 0x4660
|
|
|
|
#define GST_MATROSKA_ID_FILEDATA 0x465C
|
|
|
|
#define GST_MATROSKA_ID_FILEUID 0x46AE
|
|
|
|
/* semi-draft */
|
|
|
|
#define GST_MATROSKA_ID_FILEREFERRAL 0x4675
|
|
|
|
|
|
|
|
/* IDs in the Chapters master */
|
|
|
|
#define GST_MATROSKA_ID_EDITIONENTRY 0x45B9
|
|
|
|
|
|
|
|
/* IDs in the EditionEntry master */
|
|
|
|
#define GST_MATROSKA_ID_EDITIONUID 0x45BC
|
|
|
|
#define GST_MATROSKA_ID_EDITIONFLAGHIDDEN 0x45BD
|
|
|
|
#define GST_MATROSKA_ID_EDITIONFLAGDEFAULT 0x45DB
|
|
|
|
#define GST_MATROSKA_ID_EDITIONFLAGORDERED 0x45DD
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERATOM 0xB6
|
|
|
|
|
|
|
|
/* IDs in the ChapterAtom master */
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERUID 0x73C4
|
2017-12-01 17:17:06 +00:00
|
|
|
#define GST_MATROSKA_ID_CHAPTERSTRINGUID 0x5654
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
#define GST_MATROSKA_ID_CHAPTERTIMESTART 0x91
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERTIMESTOP 0x92
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERFLAGHIDDEN 0x98
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERFLAGENABLED 0x4598
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERSEGMENTUID 0x6E67
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERSEGMENTEDITIONUID 0x6EBC
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERPHYSICALEQUIV 0x63C3
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERTRACK 0x8F
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERDISPLAY 0x80
|
|
|
|
#define GST_MATROSKA_ID_CHAPPROCESS 0x6944
|
|
|
|
|
|
|
|
/* IDs in the ChapProcess master */
|
|
|
|
#define GST_MATROSKA_ID_CHAPPROCESSCODECID 0x6955
|
|
|
|
#define GST_MATROSKA_ID_CHAPPROCESSPRIVATE 0x450D
|
|
|
|
#define GST_MATROSKA_ID_CHAPPROCESSCOMMAND 0x6911
|
|
|
|
|
|
|
|
/* IDs in the ChapProcessCommand master */
|
|
|
|
#define GST_MATROSKA_ID_CHAPPROCESSTIME 0x6922
|
|
|
|
#define GST_MATROSKA_ID_CHAPPROCESSDATA 0x6933
|
|
|
|
|
|
|
|
/* IDs in the ChapterDisplay master */
|
|
|
|
#define GST_MATROSKA_ID_CHAPSTRING 0x85
|
|
|
|
#define GST_MATROSKA_ID_CHAPLANGUAGE 0x437C
|
|
|
|
#define GST_MATROSKA_ID_CHAPCOUNTRY 0x437E
|
|
|
|
|
|
|
|
/* IDs in the ChapterTrack master */
|
|
|
|
#define GST_MATROSKA_ID_CHAPTERTRACKNUMBER 0x89
|
2006-09-04 16:21:17 +00:00
|
|
|
|
2003-11-21 21:34:27 +00:00
|
|
|
/*
|
|
|
|
* Matroska Codec IDs. Strings.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_VFW_FOURCC "V_MS/VFW/FOURCC"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_UNCOMPRESSED "V_UNCOMPRESSED"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_MPEG4_SP "V_MPEG4/ISO/SP"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_MPEG4_ASP "V_MPEG4/ISO/ASP"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_MPEG4_AP "V_MPEG4/ISO/AP"
|
2005-10-14 12:43:30 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_MPEG4_AVC "V_MPEG4/ISO/AVC"
|
2003-11-21 21:34:27 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_MSMPEG4V3 "V_MPEG4/MS/V3"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_MPEG1 "V_MPEG1"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_MPEG2 "V_MPEG2"
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
/* FIXME: not (yet) in the spec! */
|
2003-11-21 21:34:27 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_MJPEG "V_MJPEG"
|
2006-01-23 18:39:31 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_REALVIDEO1 "V_REAL/RV10"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_REALVIDEO2 "V_REAL/RV20"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_REALVIDEO3 "V_REAL/RV30"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_REALVIDEO4 "V_REAL/RV40"
|
gst/matroska/: Add support for muxing/demuxing theora video (#342448; too bad none of the usual linux players can act...
Original commit message from CVS:
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_push_xiph_codec_priv_data),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_video_pad_setcaps),
(xiph3_streamheader_to_codecdata),
(vorbis_streamheader_to_codecdata),
(theora_streamheader_to_codecdata),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_write_data):
Add support for muxing/demuxing theora video (#342448; too bad
none of the usual linux players can actually play this). Playback
in GStreamer will require additional changes to theoradec in -base.
Refactor streamheaders <=> CodecPrivateData code a bit; some small
cleanups.
2006-05-23 13:44:11 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_THEORA "V_THEORA"
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_QUICKTIME "V_QUICKTIME"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_SNOW "V_SNOW"
|
2008-02-29 06:18:55 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_DIRAC "V_DIRAC"
|
2010-04-27 13:26:13 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_VP8 "V_VP8"
|
2013-06-21 11:11:32 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_VP9 "V_VP9"
|
2017-12-13 09:22:17 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_AV1 "V_AV1"
|
2014-01-06 13:54:38 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_MPEGH_HEVC "V_MPEGH/ISO/HEVC"
|
2015-11-18 05:20:38 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_PRORES "V_PRORES"
|
2021-09-11 06:24:35 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_VIDEO_FFV1 "V_FFV1"
|
2003-11-21 21:34:27 +00:00
|
|
|
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_MPEG1_L1 "A_MPEG/L1"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_MPEG1_L2 "A_MPEG/L2"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_MPEG1_L3 "A_MPEG/L3"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_PCM_INT_BE "A_PCM/INT/BIG"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_PCM_INT_LE "A_PCM/INT/LIT"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_PCM_FLOAT "A_PCM/FLOAT/IEEE"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_AC3 "A_AC3"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_AC3_BSID9 "A_AC3/BSID9"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_AC3_BSID10 "A_AC3/BSID10"
|
2008-11-16 14:41:32 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_EAC3 "A_EAC3"
|
2012-08-29 15:24:00 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_TRUEHD "A_TRUEHD"
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_DTS "A_DTS"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_VORBIS "A_VORBIS"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_FLAC "A_FLAC"
|
2009-04-13 12:03:03 +00:00
|
|
|
/* FIXME: not yet in the spec */
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_SPEEX "A_SPEEX"
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_ACM "A_MS/ACM"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_TTA "A_TTA1"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_WAVPACK4 "A_WAVPACK4"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_REAL_14_4 "A_REAL/14_4"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_REAL_28_8 "A_REAL/28_8"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_REAL_COOK "A_REAL/COOK"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_REAL_SIPR "A_REAL/SIPR"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_REAL_RALF "A_REAL/RALF"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_REAL_ATRC "A_REAL/ATRC"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_AAC "A_AAC"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_AAC_MPEG2 "A_AAC/MPEG2/"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_AAC_MPEG4 "A_AAC/MPEG4/"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_QUICKTIME_QDMC "A_QUICKTIME/QDMC"
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_QUICKTIME_QDM2 "A_QUICKTIME/QDM2"
|
2014-03-30 00:31:11 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_OPUS "A_OPUS"
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
/* Undefined for now:
|
|
|
|
#define GST_MATROSKA_CODEC_ID_AUDIO_MPC "A_MPC"
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define GST_MATROSKA_CODEC_ID_SUBTITLE_ASCII "S_TEXT/ASCII"
|
OGM text support, Matroska UTF-8 text support, deadlock fixes all over the place, subtitle awareness in decodebin/pla...
Original commit message from CVS:
* configure.ac:
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_new):
* ext/ogg/gstogmparse.c: (gst_ogm_text_parse_get_type),
(gst_ogm_text_parse_base_init), (gst_ogm_text_parse_init),
(gst_ogm_parse_get_sink_querytypes), (gst_ogm_parse_sink_convert),
(gst_ogm_parse_sink_query), (gst_ogm_parse_chain),
(gst_ogm_parse_plugin_init):
* ext/pango/gsttextoverlay.c: (gst_textoverlay_linkedpads),
(gst_textoverlay_link), (gst_textoverlay_getcaps),
(gst_textoverlay_event), (gst_textoverlay_video_chain),
(gst_textoverlay_loop), (gst_textoverlay_init), (plugin_init):
* ext/pango/gsttextoverlay.h:
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_seek_event),
(gst_matroska_demux_sync_streams),
(gst_matroska_demux_parse_blockgroup),
(gst_matroska_demux_subtitle_caps),
(gst_matroska_demux_plugin_init):
* gst/matroska/matroska-ids.h:
* gst/playback/gstdecodebin.c: (close_pad_link):
* gst/playback/gstplaybasebin.c: (gst_play_base_bin_init),
(gen_preroll_element), (remove_groups), (add_stream),
(new_decoded_pad), (setup_subtitles), (gen_source_element),
(setup_source):
* gst/playback/gstplaybasebin.h:
* gst/playback/gstplaybin.c: (gen_text_element), (setup_sinks):
* gst/subparse/Makefile.am:
* gst/subparse/gstsubparse.c: (gst_subparse_get_type),
(gst_subparse_base_init), (gst_subparse_class_init),
(gst_subparse_init), (gst_subparse_formats),
(gst_subparse_eventmask), (gst_subparse_event),
(gst_subparse_handle_event), (convert_encoding), (get_next_line),
(parse_mdvdsub), (parse_mdvdsub_init), (parse_subrip),
(parse_subrip_deinit), (parse_subrip_init), (parse_mpsub),
(parse_mpsub_deinit), (parse_mpsub_init),
(gst_subparse_buffer_format_autodetect),
(gst_subparse_format_autodetect), (gst_subparse_loop),
(gst_subparse_change_state), (gst_subparse_type_find),
(plugin_init):
* gst/subparse/gstsubparse.h:
* gst/typefind/gsttypefindfunctions.c: (ogmtext_type_find),
(plugin_init):
Add subtitle support, .sub parser (supports SRT and MPsub),
OGM text support, Matroska UTF-8 text support, deadlock fixes
all over the place, subtitle awareness in decodebin/playbin
and some fixes to textoverlay to handle subtitles in a stream
correctly. Fixes #100931.
2005-01-08 18:22:41 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_SUBTITLE_UTF8 "S_TEXT/UTF8"
|
2006-02-18 17:20:48 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_SUBTITLE_SSA "S_TEXT/SSA"
|
2019-02-19 09:27:23 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_SUBTITLE_ASS "S_TEXT/ASS"
|
2006-02-18 17:20:48 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_SUBTITLE_USF "S_TEXT/USF"
|
2006-09-04 16:21:17 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_SUBTITLE_VOBSUB "S_VOBSUB"
|
2009-05-19 14:12:09 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_SUBTITLE_HDMVPGS "S_HDMV/PGS"
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_SUBTITLE_BMP "S_IMAGE/BMP"
|
2009-02-15 18:49:44 +00:00
|
|
|
#define GST_MATROSKA_CODEC_ID_SUBTITLE_KATE "S_KATE"
|
OGM text support, Matroska UTF-8 text support, deadlock fixes all over the place, subtitle awareness in decodebin/pla...
Original commit message from CVS:
* configure.ac:
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_new):
* ext/ogg/gstogmparse.c: (gst_ogm_text_parse_get_type),
(gst_ogm_text_parse_base_init), (gst_ogm_text_parse_init),
(gst_ogm_parse_get_sink_querytypes), (gst_ogm_parse_sink_convert),
(gst_ogm_parse_sink_query), (gst_ogm_parse_chain),
(gst_ogm_parse_plugin_init):
* ext/pango/gsttextoverlay.c: (gst_textoverlay_linkedpads),
(gst_textoverlay_link), (gst_textoverlay_getcaps),
(gst_textoverlay_event), (gst_textoverlay_video_chain),
(gst_textoverlay_loop), (gst_textoverlay_init), (plugin_init):
* ext/pango/gsttextoverlay.h:
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_seek_event),
(gst_matroska_demux_sync_streams),
(gst_matroska_demux_parse_blockgroup),
(gst_matroska_demux_subtitle_caps),
(gst_matroska_demux_plugin_init):
* gst/matroska/matroska-ids.h:
* gst/playback/gstdecodebin.c: (close_pad_link):
* gst/playback/gstplaybasebin.c: (gst_play_base_bin_init),
(gen_preroll_element), (remove_groups), (add_stream),
(new_decoded_pad), (setup_subtitles), (gen_source_element),
(setup_source):
* gst/playback/gstplaybasebin.h:
* gst/playback/gstplaybin.c: (gen_text_element), (setup_sinks):
* gst/subparse/Makefile.am:
* gst/subparse/gstsubparse.c: (gst_subparse_get_type),
(gst_subparse_base_init), (gst_subparse_class_init),
(gst_subparse_init), (gst_subparse_formats),
(gst_subparse_eventmask), (gst_subparse_event),
(gst_subparse_handle_event), (convert_encoding), (get_next_line),
(parse_mdvdsub), (parse_mdvdsub_init), (parse_subrip),
(parse_subrip_deinit), (parse_subrip_init), (parse_mpsub),
(parse_mpsub_deinit), (parse_mpsub_init),
(gst_subparse_buffer_format_autodetect),
(gst_subparse_format_autodetect), (gst_subparse_loop),
(gst_subparse_change_state), (gst_subparse_type_find),
(plugin_init):
* gst/subparse/gstsubparse.h:
* gst/typefind/gsttypefindfunctions.c: (ogmtext_type_find),
(plugin_init):
Add subtitle support, .sub parser (supports SRT and MPsub),
OGM text support, Matroska UTF-8 text support, deadlock fixes
all over the place, subtitle awareness in decodebin/playbin
and some fixes to textoverlay to handle subtitles in a stream
correctly. Fixes #100931.
2005-01-08 18:22:41 +00:00
|
|
|
|
2004-05-01 17:27:23 +00:00
|
|
|
/*
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
* Matroska tags. Strings.
|
2004-05-01 17:27:23 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#define GST_MATROSKA_TAG_ID_TITLE "TITLE"
|
|
|
|
#define GST_MATROSKA_TAG_ID_AUTHOR "AUTHOR"
|
2011-03-16 08:35:50 +00:00
|
|
|
#define GST_MATROSKA_TAG_ID_ARTIST "ARTIST"
|
2004-05-01 17:27:23 +00:00
|
|
|
#define GST_MATROSKA_TAG_ID_ALBUM "ALBUM"
|
|
|
|
#define GST_MATROSKA_TAG_ID_COMMENTS "COMMENTS"
|
2012-08-24 09:55:41 +00:00
|
|
|
#define GST_MATROSKA_TAG_ID_COMMENT "COMMENT"
|
2004-05-01 17:27:23 +00:00
|
|
|
#define GST_MATROSKA_TAG_ID_BITSPS "BITSPS"
|
2008-06-11 11:18:23 +00:00
|
|
|
#define GST_MATROSKA_TAG_ID_BPS "BPS"
|
2004-05-01 17:27:23 +00:00
|
|
|
#define GST_MATROSKA_TAG_ID_ENCODER "ENCODER"
|
|
|
|
#define GST_MATROSKA_TAG_ID_ISRC "ISRC"
|
|
|
|
#define GST_MATROSKA_TAG_ID_COPYRIGHT "COPYRIGHT"
|
2008-06-11 11:18:23 +00:00
|
|
|
#define GST_MATROSKA_TAG_ID_BPM "BPM"
|
|
|
|
#define GST_MATROSKA_TAG_ID_TERMS_OF_USE "TERMS_OF_USE"
|
|
|
|
#define GST_MATROSKA_TAG_ID_DATE "DATE"
|
|
|
|
#define GST_MATROSKA_TAG_ID_COMPOSER "COMPOSER"
|
|
|
|
#define GST_MATROSKA_TAG_ID_LEAD_PERFORMER "LEAD_PERFOMER"
|
|
|
|
#define GST_MATROSKA_TAG_ID_GENRE "GENRE"
|
2012-08-23 11:07:22 +00:00
|
|
|
#define GST_MATROSKA_TAG_ID_TOTAL_PARTS "TOTAL_PARTS"
|
|
|
|
#define GST_MATROSKA_TAG_ID_PART_NUMBER "PART_NUMBER"
|
2012-08-24 09:55:41 +00:00
|
|
|
#define GST_MATROSKA_TAG_ID_SUBTITLE "SUBTITLE"
|
|
|
|
#define GST_MATROSKA_TAG_ID_ACCOMPANIMENT "ACCOMPANIMENT"
|
|
|
|
#define GST_MATROSKA_TAG_ID_LYRICS "LYRICS"
|
|
|
|
#define GST_MATROSKA_TAG_ID_CONDUCTOR "CONDUCTOR"
|
|
|
|
#define GST_MATROSKA_TAG_ID_ENCODED_BY "ENCODED_BY"
|
|
|
|
#define GST_MATROSKA_TAG_ID_DESCRIPTION "DESCRIPTION"
|
|
|
|
#define GST_MATROSKA_TAG_ID_KEYWORDS "KEYWORDS"
|
|
|
|
#define GST_MATROSKA_TAG_ID_DATE_RELEASED "DATE_RELEASED"
|
|
|
|
#define GST_MATROSKA_TAG_ID_DATE_RECORDED "DATE_RECORDED"
|
|
|
|
#define GST_MATROSKA_TAG_ID_DATE_ENCODED "DATE_ENCODED"
|
|
|
|
#define GST_MATROSKA_TAG_ID_DATE_TAGGED "DATE_TAGGED"
|
|
|
|
#define GST_MATROSKA_TAG_ID_DATE_DIGITIZED "DATE_DIGITIZED"
|
|
|
|
#define GST_MATROSKA_TAG_ID_DATE_WRITTEN "DATE_WRITTEN"
|
|
|
|
#define GST_MATROSKA_TAG_ID_DATE_PURCHASED "DATE_PURCHASED"
|
|
|
|
#define GST_MATROSKA_TAG_ID_RECORDING_LOCATION "RECORDING_LOCATION"
|
|
|
|
#define GST_MATROSKA_TAG_ID_PRODUCTION_COPYRIGHT "PRODUCTION_COPYRIGHT"
|
|
|
|
#define GST_MATROSKA_TAG_ID_LICENSE "LICENSE"
|
2004-05-01 17:27:23 +00:00
|
|
|
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
/*
|
|
|
|
* TODO: add this tag & mappings
|
|
|
|
* "REPLAYGAIN_GAIN" -> GST_TAG_*_GAIN see http://replaygain.hydrogenaudio.org/rg_data_format.html
|
|
|
|
* "REPLAYGAIN_PEAK" -> GST_TAG_*_PEAK see http://replaygain.hydrogenaudio.org/peak_data_format.html
|
2008-06-11 11:18:23 +00:00
|
|
|
* both are depending on the target (track, album?)
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
*
|
|
|
|
* "TOTAL_PARTS" -> GST_TAG_TRACK_COUNT depending on target
|
|
|
|
* "PART_NUMBER" -> GST_TAG_TRACK_NUMBER depending on target
|
|
|
|
*
|
2008-06-11 11:18:23 +00:00
|
|
|
* "SORT_WITH" -> nested in other elements, GST_TAG_TITLE_SORTNAME, etc
|
|
|
|
*
|
|
|
|
* TODO: maybe add custom gstreamer tags for other standard matroska tags,
|
|
|
|
* see http://matroska.org/technical/specs/tagging/index.html
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
*
|
2008-06-11 11:18:23 +00:00
|
|
|
* TODO: handle tag targets and nesting correctly
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
*/
|
|
|
|
|
2003-11-21 21:34:27 +00:00
|
|
|
/*
|
|
|
|
* Enumerations for various types (mapping from binary
|
|
|
|
* value to what it actually means).
|
|
|
|
*/
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef enum {
|
|
|
|
GST_MATROSKA_TRACK_TYPE_VIDEO = 0x1,
|
|
|
|
GST_MATROSKA_TRACK_TYPE_AUDIO = 0x2,
|
|
|
|
GST_MATROSKA_TRACK_TYPE_COMPLEX = 0x3,
|
|
|
|
GST_MATROSKA_TRACK_TYPE_LOGO = 0x10,
|
2003-11-21 21:34:27 +00:00
|
|
|
GST_MATROSKA_TRACK_TYPE_SUBTITLE = 0x11,
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
GST_MATROSKA_TRACK_TYPE_BUTTONS = 0x12,
|
2004-03-15 16:32:54 +00:00
|
|
|
GST_MATROSKA_TRACK_TYPE_CONTROL = 0x20,
|
2003-11-21 21:34:27 +00:00
|
|
|
} GstMatroskaTrackType;
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef enum {
|
|
|
|
GST_MATROSKA_ASPECT_RATIO_MODE_FREE = 0x0,
|
|
|
|
GST_MATROSKA_ASPECT_RATIO_MODE_KEEP = 0x1,
|
2003-11-21 21:34:27 +00:00
|
|
|
GST_MATROSKA_ASPECT_RATIO_MODE_FIXED = 0x2,
|
|
|
|
} GstMatroskaAspectRatioMode;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* These aren't in any way "matroska-form" things,
|
|
|
|
* it's just something I use in the muxer/demuxer.
|
|
|
|
*/
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef enum {
|
|
|
|
GST_MATROSKA_TRACK_ENABLED = (1<<0),
|
|
|
|
GST_MATROSKA_TRACK_DEFAULT = (1<<1),
|
|
|
|
GST_MATROSKA_TRACK_LACING = (1<<2),
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
GST_MATROSKA_TRACK_FORCED = (1<<3),
|
2004-03-15 16:32:54 +00:00
|
|
|
GST_MATROSKA_TRACK_SHIFT = (1<<16)
|
2003-11-21 21:34:27 +00:00
|
|
|
} GstMatroskaTrackFlags;
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef enum {
|
2018-08-23 20:57:35 +00:00
|
|
|
GST_MATROSKA_INTERLACE_MODE_UNKNOWN = 0,
|
|
|
|
GST_MATROSKA_INTERLACE_MODE_INTERLACED = 1,
|
|
|
|
GST_MATROSKA_INTERLACE_MODE_PROGRESSIVE = 2,
|
|
|
|
} GstMatroskaInterlaceMode;
|
2003-11-21 21:34:27 +00:00
|
|
|
|
2015-06-10 14:22:54 +00:00
|
|
|
typedef enum {
|
|
|
|
GST_MATROSKA_STEREO_MODE_SBS_LR = 0x1,
|
|
|
|
GST_MATROSKA_STEREO_MODE_TB_RL = 0x2,
|
|
|
|
GST_MATROSKA_STEREO_MODE_TB_LR = 0x3,
|
|
|
|
GST_MATROSKA_STEREO_MODE_CHECKER_RL = 0x4,
|
|
|
|
GST_MATROSKA_STEREO_MODE_CHECKER_LR = 0x5,
|
|
|
|
GST_MATROSKA_STEREO_MODE_SBS_RL = 0x9,
|
|
|
|
GST_MATROSKA_STEREO_MODE_FBF_LR = 0xD,
|
|
|
|
GST_MATROSKA_STEREO_MODE_FBF_RL = 0xE
|
|
|
|
} GstMatroskaStereoMode;
|
2008-06-19 09:12:55 +00:00
|
|
|
|
matroska: Add the WebM encrypted content support in matroskademux
This commit:
1. Reads the WebM and Matroska ContentEncryption subelements.
2. Creates a GST_PROTECTION event for each ContentEncryption, which
will be sent before pushing the first source buffer.
The DRM system id field in this event is set to GST_PROTECTION_UNSPECIFIED_SYSTEM_ID,
because it isn't specified neither by Matroska nor by the WebM spec.
3. Reads the protection information of encrypted Block/SimpleBlock and
extracts the IV and the partitioning format (subsamples).
4. Creates the metadata protection for each encrypted Block/SimpleBlock,
with those informations: KeyID (extracted from ContentEncryption element),
IV and partitioning format.
5. Adds a new caps for WebM encrypted content named "application/x-webm-enc",
with the following new fields:
"encryption-algorithm": The encryption algorithm used.
values: "None", "DES", "3DES", "Twofish", "Blowfish", "AES".
"encoding-scope": The field that describes which Elements have been modified.
Values: "frame", "codec-data", "next-content".
"cipher-mode": The cipher mode used in the encryption.
Values: "None", "CTR".
https://bugzilla.gnome.org/show_bug.cgi?id=765275
2018-09-30 17:28:07 +00:00
|
|
|
typedef enum {
|
|
|
|
GST_MATROSKA_ENCODING_COMPRESSION = 0x00,
|
|
|
|
GST_MATROSKA_ENCODING_ENCRYPTION = 0x01
|
|
|
|
} GstMatroskaEncodingType;
|
|
|
|
|
|
|
|
/* WebM spec */
|
|
|
|
typedef enum {
|
|
|
|
GST_MATROSKA_BLOCK_ENCRYPTED = 0x01,
|
|
|
|
GST_MATROSKA_BLOCK_PARTITIONED = 0x02
|
|
|
|
} GstMatroskaEncryptedBlockFlags;
|
|
|
|
|
2008-06-19 09:12:55 +00:00
|
|
|
typedef struct _GstMatroskaTrackContext GstMatroskaTrackContext;
|
|
|
|
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
/* TODO: check if all fields are used */
|
2008-06-19 09:12:55 +00:00
|
|
|
struct _GstMatroskaTrackContext {
|
2004-03-15 16:32:54 +00:00
|
|
|
GstPad *pad;
|
|
|
|
GstCaps *caps;
|
2005-12-06 19:44:58 +00:00
|
|
|
guint index;
|
2010-03-23 16:34:50 +00:00
|
|
|
/* reverse playback */
|
|
|
|
GstClockTime from_time;
|
2010-05-28 14:37:32 +00:00
|
|
|
gint64 from_offset;
|
|
|
|
gint64 to_offset;
|
2003-11-21 21:34:27 +00:00
|
|
|
|
2009-05-11 13:36:46 +00:00
|
|
|
GArray *index_table;
|
|
|
|
|
2009-05-14 12:46:14 +00:00
|
|
|
gint index_writer_id;
|
|
|
|
|
2003-11-21 21:34:27 +00:00
|
|
|
/* some often-used info */
|
2004-03-15 16:32:54 +00:00
|
|
|
gchar *codec_id, *codec_name, *name, *language;
|
2011-11-26 09:01:07 +00:00
|
|
|
gpointer codec_priv;
|
|
|
|
gsize codec_priv_size;
|
|
|
|
gpointer codec_state;
|
|
|
|
gsize codec_state_size;
|
2003-11-21 21:34:27 +00:00
|
|
|
GstMatroskaTrackType type;
|
2012-08-22 11:32:41 +00:00
|
|
|
guint64 uid, num;
|
2003-11-21 21:34:27 +00:00
|
|
|
GstMatroskaTrackFlags flags;
|
2004-03-15 16:32:54 +00:00
|
|
|
guint64 default_duration;
|
OGM text support, Matroska UTF-8 text support, deadlock fixes all over the place, subtitle awareness in decodebin/pla...
Original commit message from CVS:
* configure.ac:
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_new):
* ext/ogg/gstogmparse.c: (gst_ogm_text_parse_get_type),
(gst_ogm_text_parse_base_init), (gst_ogm_text_parse_init),
(gst_ogm_parse_get_sink_querytypes), (gst_ogm_parse_sink_convert),
(gst_ogm_parse_sink_query), (gst_ogm_parse_chain),
(gst_ogm_parse_plugin_init):
* ext/pango/gsttextoverlay.c: (gst_textoverlay_linkedpads),
(gst_textoverlay_link), (gst_textoverlay_getcaps),
(gst_textoverlay_event), (gst_textoverlay_video_chain),
(gst_textoverlay_loop), (gst_textoverlay_init), (plugin_init):
* ext/pango/gsttextoverlay.h:
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_seek_event),
(gst_matroska_demux_sync_streams),
(gst_matroska_demux_parse_blockgroup),
(gst_matroska_demux_subtitle_caps),
(gst_matroska_demux_plugin_init):
* gst/matroska/matroska-ids.h:
* gst/playback/gstdecodebin.c: (close_pad_link):
* gst/playback/gstplaybasebin.c: (gst_play_base_bin_init),
(gen_preroll_element), (remove_groups), (add_stream),
(new_decoded_pad), (setup_subtitles), (gen_source_element),
(setup_source):
* gst/playback/gstplaybasebin.h:
* gst/playback/gstplaybin.c: (gen_text_element), (setup_sinks):
* gst/subparse/Makefile.am:
* gst/subparse/gstsubparse.c: (gst_subparse_get_type),
(gst_subparse_base_init), (gst_subparse_class_init),
(gst_subparse_init), (gst_subparse_formats),
(gst_subparse_eventmask), (gst_subparse_event),
(gst_subparse_handle_event), (convert_encoding), (get_next_line),
(parse_mdvdsub), (parse_mdvdsub_init), (parse_subrip),
(parse_subrip_deinit), (parse_subrip_init), (parse_mpsub),
(parse_mpsub_deinit), (parse_mpsub_init),
(gst_subparse_buffer_format_autodetect),
(gst_subparse_format_autodetect), (gst_subparse_loop),
(gst_subparse_change_state), (gst_subparse_type_find),
(plugin_init):
* gst/subparse/gstsubparse.h:
* gst/typefind/gsttypefindfunctions.c: (ogmtext_type_find),
(plugin_init):
Add subtitle support, .sub parser (supports SRT and MPsub),
OGM text support, Matroska UTF-8 text support, deadlock fixes
all over the place, subtitle awareness in decodebin/playbin
and some fixes to textoverlay to handle subtitles in a stream
correctly. Fixes #100931.
2005-01-08 18:22:41 +00:00
|
|
|
guint64 pos;
|
gst/matroska/ebml-write.c: Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
Original commit message from CVS:
* gst/matroska/ebml-write.c: (gst_ebml_write_float):
Use GDOUBLE_TO_BE() instead of (probably slower) custom code.
* gst/matroska/matroska-demux.c: (gst_matroska_demux_base_init),
(gst_matroska_demux_class_init), (gst_matroska_demux_init),
(gst_matroska_track_free), (gst_matroska_demux_encoding_cmp),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_handle_src_query),
(gst_matroska_demux_init_stream),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_demux_parse_info),
(gst_matroska_demux_parse_metadata_id_simple_tag),
(gst_matroska_demux_parse_metadata),
(gst_matroska_demux_add_wvpk_header), (gst_matroska_decode_buffer),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_parse_cluster),
(gst_matroska_demux_parse_contents_seekentry),
(gst_matroska_demux_loop_stream_parse_id),
(gst_matroska_demux_loop), (gst_matroska_demux_video_caps),
(gst_matroska_demux_audio_caps),
(gst_matroska_demux_subtitle_caps):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.c:
(gst_matroska_track_init_subtitle_context):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_class_init), (gst_matroska_mux_init),
(gst_matroska_mux_create_uid), (gst_matroska_mux_reset),
(gst_matroska_mux_video_pad_setcaps),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_subtitle_pad_setcaps),
(gst_matroska_mux_request_new_pad),
(gst_matroska_mux_track_header), (gst_matroska_mux_start),
(gst_matroska_mux_write_simple_tag), (gst_matroska_mux_finish),
(gst_matroska_mux_write_data), (gst_matroska_mux_collected),
(gst_matroska_mux_set_property):
Add many FIXMEs/TODOs all over the matroska muxer and demuxer
elements, do some checks for valid values in the demuxer, handle
tracktimecodescale in the demuxer, set correct default values for all
settings in the demuxer, review and add all missing matroska
IDs and some more raw YUV formats, and some trivial cleanup.
2008-06-10 10:44:53 +00:00
|
|
|
gdouble timecodescale;
|
2015-11-03 10:18:19 +00:00
|
|
|
guint64 seek_preroll;
|
|
|
|
guint64 codec_delay;
|
2006-04-20 13:23:40 +00:00
|
|
|
|
|
|
|
gboolean set_discont; /* TRUE = set DISCONT flag on next buffer */
|
gst/matroska/: Add support for muxing/demuxing theora video (#342448; too bad none of the usual linux players can act...
Original commit message from CVS:
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_push_xiph_codec_priv_data),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_video_pad_setcaps),
(xiph3_streamheader_to_codecdata),
(vorbis_streamheader_to_codecdata),
(theora_streamheader_to_codecdata),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_write_data):
Add support for muxing/demuxing theora video (#342448; too bad
none of the usual linux players can actually play this). Playback
in GStreamer will require additional changes to theoradec in -base.
Refactor streamheaders <=> CodecPrivateData code a bit; some small
cleanups.
2006-05-23 13:44:11 +00:00
|
|
|
|
matroska: Add the WebM encrypted content support in matroskademux
This commit:
1. Reads the WebM and Matroska ContentEncryption subelements.
2. Creates a GST_PROTECTION event for each ContentEncryption, which
will be sent before pushing the first source buffer.
The DRM system id field in this event is set to GST_PROTECTION_UNSPECIFIED_SYSTEM_ID,
because it isn't specified neither by Matroska nor by the WebM spec.
3. Reads the protection information of encrypted Block/SimpleBlock and
extracts the IV and the partitioning format (subsamples).
4. Creates the metadata protection for each encrypted Block/SimpleBlock,
with those informations: KeyID (extracted from ContentEncryption element),
IV and partitioning format.
5. Adds a new caps for WebM encrypted content named "application/x-webm-enc",
with the following new fields:
"encryption-algorithm": The encryption algorithm used.
values: "None", "DES", "3DES", "Twofish", "Blowfish", "AES".
"encoding-scope": The field that describes which Elements have been modified.
Values: "frame", "codec-data", "next-content".
"cipher-mode": The cipher mode used in the encryption.
Values: "None", "CTR".
https://bugzilla.gnome.org/show_bug.cgi?id=765275
2018-09-30 17:28:07 +00:00
|
|
|
/* Queue to save the GST_PROTECTION events which will be sent before the first source buffer */
|
|
|
|
GQueue protection_event_queue;
|
|
|
|
/* Protection information structure which will be added in protection metadata for each encrypted buffer */
|
|
|
|
GstStructure * protection_info;
|
|
|
|
|
2012-09-27 23:43:38 +00:00
|
|
|
/* Stream header buffer, to put into caps and send before any other buffers */
|
|
|
|
GstBufferList * stream_headers;
|
|
|
|
gboolean send_stream_headers;
|
2009-04-13 12:03:03 +00:00
|
|
|
|
2007-11-13 17:01:07 +00:00
|
|
|
/* Special flag for VobSub, for which we have to send colour table info
|
|
|
|
* (if available) first before sending any data, and just testing
|
|
|
|
* for time == 0 is not enough to detect that. Used by demuxer */
|
|
|
|
gboolean send_dvd_event;
|
|
|
|
|
gst/matroska/: Add support for muxing/demuxing theora video (#342448; too bad none of the usual linux players can act...
Original commit message from CVS:
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream),
(gst_matroska_demux_push_xiph_codec_priv_data),
(gst_matroska_demux_parse_blockgroup_or_simpleblock),
(gst_matroska_demux_video_caps), (gst_matroska_demux_audio_caps):
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.c: (gst_matroska_mux_base_init),
(gst_matroska_mux_video_pad_setcaps),
(xiph3_streamheader_to_codecdata),
(vorbis_streamheader_to_codecdata),
(theora_streamheader_to_codecdata),
(gst_matroska_mux_audio_pad_setcaps),
(gst_matroska_mux_write_data):
Add support for muxing/demuxing theora video (#342448; too bad
none of the usual linux players can actually play this). Playback
in GStreamer will require additional changes to theoradec in -base.
Refactor streamheaders <=> CodecPrivateData code a bit; some small
cleanups.
2006-05-23 13:44:11 +00:00
|
|
|
/* Special counter for muxer to skip the first N vorbis/theora headers -
|
|
|
|
* they are put into codec private data, not muxed into the stream */
|
|
|
|
guint xiph_headers_to_skip;
|
2006-06-29 11:41:55 +00:00
|
|
|
|
2008-06-19 09:12:55 +00:00
|
|
|
/* Used for postprocessing a frame before it is pushed from the demuxer */
|
|
|
|
GstFlowReturn (*postprocess_frame) (GstElement *element,
|
|
|
|
GstMatroskaTrackContext *context,
|
|
|
|
GstBuffer **buffer);
|
|
|
|
|
2015-03-27 21:58:31 +00:00
|
|
|
/* List of tags for this stream */
|
|
|
|
GstTagList *tags;
|
|
|
|
/* Tags changed and should be pushed again */
|
|
|
|
gboolean tags_changed;
|
2006-09-04 16:21:17 +00:00
|
|
|
|
|
|
|
/* A GArray of GstMatroskaTrackEncoding structures which contain the
|
|
|
|
* encoding (compression/encryption) settings for this track, if any */
|
|
|
|
GArray *encodings;
|
2010-03-02 13:09:14 +00:00
|
|
|
|
|
|
|
/* Whether the stream is EOS */
|
|
|
|
gboolean eos;
|
2011-09-27 14:59:24 +00:00
|
|
|
|
|
|
|
/* any alignment we need our output buffers to have */
|
|
|
|
gint alignment;
|
2019-02-19 09:27:23 +00:00
|
|
|
|
2015-02-26 01:12:18 +00:00
|
|
|
/* for compatibility with VFW files, where timestamp represents DTS */
|
|
|
|
gboolean dts_only;
|
2019-02-19 09:27:23 +00:00
|
|
|
|
2015-03-11 20:25:40 +00:00
|
|
|
/* indicate that the track is raw (jpeg,raw variants) and so pts=dts */
|
|
|
|
gboolean intra_only;
|
2008-06-19 09:12:55 +00:00
|
|
|
};
|
2003-11-21 21:34:27 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef struct _GstMatroskaTrackVideoContext {
|
2003-11-21 21:34:27 +00:00
|
|
|
GstMatroskaTrackContext parent;
|
|
|
|
|
2006-12-11 13:59:33 +00:00
|
|
|
guint pixel_width, pixel_height;
|
|
|
|
guint display_width, display_height;
|
|
|
|
gdouble default_fps;
|
2003-11-21 21:34:27 +00:00
|
|
|
GstMatroskaAspectRatioMode asr_mode;
|
2004-03-15 16:32:54 +00:00
|
|
|
guint32 fourcc;
|
2008-11-05 14:42:35 +00:00
|
|
|
|
2018-08-23 20:57:35 +00:00
|
|
|
GstMatroskaInterlaceMode interlace_mode;
|
2019-08-07 14:01:34 +00:00
|
|
|
GstVideoFieldOrder field_order;
|
2018-08-23 20:57:35 +00:00
|
|
|
|
2015-06-10 14:22:54 +00:00
|
|
|
GstVideoMultiviewMode multiview_mode;
|
|
|
|
GstVideoMultiviewFlags multiview_flags;
|
|
|
|
|
2021-04-23 18:37:46 +00:00
|
|
|
gboolean alpha_mode;
|
|
|
|
|
2010-05-23 07:32:08 +00:00
|
|
|
/* QoS */
|
|
|
|
GstClockTime earliest_time;
|
|
|
|
|
2008-11-05 14:42:35 +00:00
|
|
|
GstBuffer *dirac_unit;
|
2017-11-07 09:03:53 +00:00
|
|
|
GstVideoColorimetry colorimetry;
|
2019-02-18 14:28:50 +00:00
|
|
|
|
|
|
|
GstVideoMasteringDisplayInfo mastering_display_info;
|
|
|
|
gboolean mastering_display_info_present;
|
|
|
|
|
|
|
|
GstVideoContentLightLevel content_light_level;
|
2003-11-21 21:34:27 +00:00
|
|
|
} GstMatroskaTrackVideoContext;
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef struct _GstMatroskaTrackAudioContext {
|
2003-11-21 21:34:27 +00:00
|
|
|
GstMatroskaTrackContext parent;
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
guint samplerate, channels, bitdepth;
|
2008-06-19 10:48:57 +00:00
|
|
|
|
|
|
|
guint32 wvpk_block_index;
|
2003-11-21 21:34:27 +00:00
|
|
|
} GstMatroskaTrackAudioContext;
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef struct _GstMatroskaTrackSubtitleContext {
|
2003-11-21 21:34:27 +00:00
|
|
|
GstMatroskaTrackContext parent;
|
|
|
|
|
2006-06-22 16:27:03 +00:00
|
|
|
gboolean check_utf8; /* buffers should be valid UTF-8 */
|
2011-12-01 12:34:52 +00:00
|
|
|
gboolean check_markup; /* check if buffers contain markup
|
|
|
|
* or plaintext and escape characters */
|
2006-06-22 16:27:03 +00:00
|
|
|
gboolean invalid_utf8; /* work around broken files */
|
2010-06-23 09:12:00 +00:00
|
|
|
gboolean seen_markup_tag; /* markup found in text */
|
2003-11-21 21:34:27 +00:00
|
|
|
} GstMatroskaTrackSubtitleContext;
|
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef struct _GstMatroskaIndex {
|
gst/matroska/: Use a GArray for storing the Cue (i.e. seek) information, store the CueTrackPositions for every track,...
Original commit message from CVS:
* gst/matroska/matroska-demux.c: (gst_matroska_demux_reset),
(gst_matroskademux_do_index_seek),
(gst_matroska_demux_parse_index_cuetrack),
(gst_matroska_demux_parse_index_pointentry),
(gst_matroska_index_compare), (gst_matroska_demux_parse_index),
(gst_matroska_demux_parse_metadata):
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.h:
Use a GArray for storing the Cue (i.e. seek) information, store
the CueTrackPositions for every track, store the block number
and optimize searching in the array by sorting it after the last
element was added.
Fix a small memory leak when trying to parse a tags element that was
already parsed.
2008-06-15 19:09:54 +00:00
|
|
|
guint64 pos; /* of the corresponding *cluster*! */
|
|
|
|
GstClockTime time; /* in nanoseconds */
|
|
|
|
guint32 block; /* number of the block in the cluster */
|
2017-05-06 21:30:20 +00:00
|
|
|
guint16 track; /* reference to 'num' */
|
2003-11-21 21:34:27 +00:00
|
|
|
} GstMatroskaIndex;
|
|
|
|
|
2005-10-14 12:43:30 +00:00
|
|
|
typedef struct _Wavpack4Header {
|
|
|
|
guchar ck_id [4]; /* "wvpk" */
|
|
|
|
guint32 ck_size; /* size of entire frame (minus 8, of course) */
|
|
|
|
guint16 version; /* 0x403 for now */
|
|
|
|
guint8 track_no; /* track number (0 if not used, like now) */
|
|
|
|
guint8 index_no; /* remember these? (0 if not used, like now) */
|
|
|
|
guint32 total_samples; /* for entire file (-1 if unknown) */
|
|
|
|
guint32 block_index; /* index of first sample in block (to file begin) */
|
|
|
|
guint32 block_samples; /* # samples in this block */
|
|
|
|
guint32 flags; /* various flags for id and decoding */
|
|
|
|
guint32 crc; /* crc for actual decoded data */
|
|
|
|
} Wavpack4Header;
|
|
|
|
|
2021-03-04 11:05:19 +00:00
|
|
|
#define WAVPACK4_HEADER_SIZE (32)
|
|
|
|
|
Decode the codec private data and following ContentEncoding if necessary.
Original commit message from CVS:
* configure.ac:
* gst/matroska/Makefile.am:
* gst/matroska/lzo.c: (get_byte), (get_len), (copy),
(copy_backptr), (lzo1x_decode), (main):
* gst/matroska/lzo.h:
* gst/matroska/matroska-demux.c:
(gst_matroska_demux_read_track_encoding),
(gst_matroska_decompress_data), (gst_matroska_decode_data),
(gst_matroska_decode_buffer),
(gst_matroska_decode_content_encodings),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_parse_blockgroup_or_simpleblock):
* gst/matroska/matroska-ids.h:
Decode the codec private data and following ContentEncoding if
necessary.
Support bzip2, lzo and header stripped compression. For lzo use the
ffmpeg lzo implementation as liblzo is GPL licensed.
Fix zlib decompression.
2008-08-02 18:18:05 +00:00
|
|
|
typedef enum {
|
|
|
|
GST_MATROSKA_TRACK_ENCODING_SCOPE_FRAME = (1<<0),
|
|
|
|
GST_MATROSKA_TRACK_ENCODING_SCOPE_CODEC_DATA = (1<<1),
|
|
|
|
GST_MATROSKA_TRACK_ENCODING_SCOPE_NEXT_CONTENT_ENCODING = (1<<2)
|
|
|
|
} GstMatroskaTrackEncodingScope;
|
|
|
|
|
matroska: Add the WebM encrypted content support in matroskademux
This commit:
1. Reads the WebM and Matroska ContentEncryption subelements.
2. Creates a GST_PROTECTION event for each ContentEncryption, which
will be sent before pushing the first source buffer.
The DRM system id field in this event is set to GST_PROTECTION_UNSPECIFIED_SYSTEM_ID,
because it isn't specified neither by Matroska nor by the WebM spec.
3. Reads the protection information of encrypted Block/SimpleBlock and
extracts the IV and the partitioning format (subsamples).
4. Creates the metadata protection for each encrypted Block/SimpleBlock,
with those informations: KeyID (extracted from ContentEncryption element),
IV and partitioning format.
5. Adds a new caps for WebM encrypted content named "application/x-webm-enc",
with the following new fields:
"encryption-algorithm": The encryption algorithm used.
values: "None", "DES", "3DES", "Twofish", "Blowfish", "AES".
"encoding-scope": The field that describes which Elements have been modified.
Values: "frame", "codec-data", "next-content".
"cipher-mode": The cipher mode used in the encryption.
Values: "None", "CTR".
https://bugzilla.gnome.org/show_bug.cgi?id=765275
2018-09-30 17:28:07 +00:00
|
|
|
#define MATROSKA_TRACK_ENCODING_SCOPE_TYPE (matroska_track_encoding_scope_get_type())
|
|
|
|
GType matroska_track_encoding_scope_get_type (void);
|
|
|
|
|
Decode the codec private data and following ContentEncoding if necessary.
Original commit message from CVS:
* configure.ac:
* gst/matroska/Makefile.am:
* gst/matroska/lzo.c: (get_byte), (get_len), (copy),
(copy_backptr), (lzo1x_decode), (main):
* gst/matroska/lzo.h:
* gst/matroska/matroska-demux.c:
(gst_matroska_demux_read_track_encoding),
(gst_matroska_decompress_data), (gst_matroska_decode_data),
(gst_matroska_decode_buffer),
(gst_matroska_decode_content_encodings),
(gst_matroska_demux_read_track_encodings),
(gst_matroska_demux_add_stream),
(gst_matroska_demux_parse_blockgroup_or_simpleblock):
* gst/matroska/matroska-ids.h:
Decode the codec private data and following ContentEncoding if
necessary.
Support bzip2, lzo and header stripped compression. For lzo use the
ffmpeg lzo implementation as liblzo is GPL licensed.
Fix zlib decompression.
2008-08-02 18:18:05 +00:00
|
|
|
typedef enum {
|
|
|
|
GST_MATROSKA_TRACK_COMPRESSION_ALGORITHM_ZLIB = 0,
|
|
|
|
GST_MATROSKA_TRACK_COMPRESSION_ALGORITHM_BZLIB = 1,
|
|
|
|
GST_MATROSKA_TRACK_COMPRESSION_ALGORITHM_LZO1X = 2,
|
|
|
|
GST_MATROSKA_TRACK_COMPRESSION_ALGORITHM_HEADERSTRIP = 3
|
|
|
|
} GstMatroskaTrackCompressionAlgorithm;
|
|
|
|
|
matroska: Add the WebM encrypted content support in matroskademux
This commit:
1. Reads the WebM and Matroska ContentEncryption subelements.
2. Creates a GST_PROTECTION event for each ContentEncryption, which
will be sent before pushing the first source buffer.
The DRM system id field in this event is set to GST_PROTECTION_UNSPECIFIED_SYSTEM_ID,
because it isn't specified neither by Matroska nor by the WebM spec.
3. Reads the protection information of encrypted Block/SimpleBlock and
extracts the IV and the partitioning format (subsamples).
4. Creates the metadata protection for each encrypted Block/SimpleBlock,
with those informations: KeyID (extracted from ContentEncryption element),
IV and partitioning format.
5. Adds a new caps for WebM encrypted content named "application/x-webm-enc",
with the following new fields:
"encryption-algorithm": The encryption algorithm used.
values: "None", "DES", "3DES", "Twofish", "Blowfish", "AES".
"encoding-scope": The field that describes which Elements have been modified.
Values: "frame", "codec-data", "next-content".
"cipher-mode": The cipher mode used in the encryption.
Values: "None", "CTR".
https://bugzilla.gnome.org/show_bug.cgi?id=765275
2018-09-30 17:28:07 +00:00
|
|
|
/* The encryption algorithm used. The value '0' means that the contents
|
|
|
|
* have not been encrypted but only signed.
|
|
|
|
* Predefined values: 1 - DES; 2 - 3DES; 3 - Twofish; 4 - Blowfish; 5 - AES.
|
|
|
|
* WebM only supports a value of 5 (AES).
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_MATROSKA_TRACK_ENCRYPTION_ALGORITHM_NONE = 0,
|
|
|
|
GST_MATROSKA_TRACK_ENCRYPTION_ALGORITHM_DES = 1,
|
|
|
|
GST_MATROSKA_TRACK_ENCRYPTION_ALGORITHM_3DES = 2,
|
|
|
|
GST_MATROSKA_TRACK_ENCRYPTION_ALGORITHM_TWOFISH = 3,
|
|
|
|
GST_MATROSKA_TRACK_ENCRYPTION_ALGORITHM_BLOWFISH = 4,
|
|
|
|
GST_MATROSKA_TRACK_ENCRYPTION_ALGORITHM_AES = 5
|
|
|
|
} GstMatroskaTrackEncryptionAlgorithm;
|
|
|
|
|
|
|
|
#define MATROSKA_TRACK_ENCRYPTION_ALGORITHM_TYPE (matroska_track_encryption_algorithm_get_type())
|
|
|
|
GType matroska_track_encryption_algorithm_get_type (void);
|
|
|
|
|
|
|
|
/* Defined only in WebM spec.
|
|
|
|
* The cipher mode used in the encryption. Predefined values: 1 - CTR
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_MATROSKA_TRACK_ENCRYPTION_CIPHER_MODE_NONE = 0,
|
|
|
|
GST_MATROSKA_TRACK_ENCRYPTION_CIPHER_MODE_CTR = 1
|
|
|
|
} GstMatroskaTrackEncryptionCipherMode;
|
|
|
|
|
|
|
|
#define MATROSKA_TRACK_ENCRYPTION_CIPHER_MODE_TYPE (matroska_track_encryption_cipher_mode_get_type())
|
|
|
|
GType matroska_track_encryption_cipher_mode_get_type (void);
|
|
|
|
|
|
|
|
|
2006-09-04 16:21:17 +00:00
|
|
|
typedef struct _GstMatroskaTrackEncoding {
|
|
|
|
guint order;
|
|
|
|
guint scope : 3;
|
|
|
|
guint type : 1;
|
|
|
|
guint comp_algo : 2;
|
|
|
|
guint8 *comp_settings;
|
|
|
|
guint comp_settings_length;
|
matroska: Add the WebM encrypted content support in matroskademux
This commit:
1. Reads the WebM and Matroska ContentEncryption subelements.
2. Creates a GST_PROTECTION event for each ContentEncryption, which
will be sent before pushing the first source buffer.
The DRM system id field in this event is set to GST_PROTECTION_UNSPECIFIED_SYSTEM_ID,
because it isn't specified neither by Matroska nor by the WebM spec.
3. Reads the protection information of encrypted Block/SimpleBlock and
extracts the IV and the partitioning format (subsamples).
4. Creates the metadata protection for each encrypted Block/SimpleBlock,
with those informations: KeyID (extracted from ContentEncryption element),
IV and partitioning format.
5. Adds a new caps for WebM encrypted content named "application/x-webm-enc",
with the following new fields:
"encryption-algorithm": The encryption algorithm used.
values: "None", "DES", "3DES", "Twofish", "Blowfish", "AES".
"encoding-scope": The field that describes which Elements have been modified.
Values: "frame", "codec-data", "next-content".
"cipher-mode": The cipher mode used in the encryption.
Values: "None", "CTR".
https://bugzilla.gnome.org/show_bug.cgi?id=765275
2018-09-30 17:28:07 +00:00
|
|
|
guint enc_algo : 3;
|
|
|
|
guint enc_cipher_mode : 2;
|
2006-09-04 16:21:17 +00:00
|
|
|
} GstMatroskaTrackEncoding;
|
|
|
|
|
2006-04-25 16:38:50 +00:00
|
|
|
gboolean gst_matroska_track_init_video_context (GstMatroskaTrackContext ** p_context);
|
|
|
|
gboolean gst_matroska_track_init_audio_context (GstMatroskaTrackContext ** p_context);
|
|
|
|
gboolean gst_matroska_track_init_subtitle_context (GstMatroskaTrackContext ** p_context);
|
|
|
|
|
2008-06-16 10:59:39 +00:00
|
|
|
void gst_matroska_register_tags (void);
|
|
|
|
|
2012-09-27 23:43:38 +00:00
|
|
|
GstBufferList * gst_matroska_parse_xiph_stream_headers (gpointer codec_data,
|
|
|
|
gsize codec_data_size);
|
|
|
|
|
|
|
|
GstBufferList * gst_matroska_parse_speex_stream_headers (gpointer codec_data,
|
|
|
|
gsize codec_data_size);
|
|
|
|
|
2014-12-17 17:36:18 +00:00
|
|
|
GstBufferList * gst_matroska_parse_opus_stream_headers (gpointer codec_data,
|
|
|
|
gsize codec_data_size);
|
|
|
|
|
2012-09-27 23:43:38 +00:00
|
|
|
GstBufferList * gst_matroska_parse_flac_stream_headers (gpointer codec_data,
|
|
|
|
gsize codec_data_size);
|
2014-01-20 20:31:14 +00:00
|
|
|
void gst_matroska_track_free (GstMatroskaTrackContext * track);
|
2015-03-03 17:40:16 +00:00
|
|
|
GstClockTime gst_matroska_track_get_buffer_timestamp (GstMatroskaTrackContext * track, GstBuffer *buf);
|
2012-09-27 23:43:38 +00:00
|
|
|
|
2003-11-21 21:34:27 +00:00
|
|
|
#endif /* __GST_MATROSKA_IDS_H__ */
|