summaryrefslogtreecommitdiffstats
path: root/gst/mxf
AgeCommit message (Collapse)AuthorFilesLines
2009-02-04Add property to set the maximum allowed time difference between tracksSebastian Dröge2-3/+21
2009-02-04Always set the current package, not only when it was changedSebastian Dröge1-1/+1
This is necessary as the current package link will be set to NULL when updated metadata is parsed and should be set here again.
2009-02-04Try to resolve all synchronization issues, not only the firstSebastian Dröge1-35/+33
2009-02-04Remove some checks that will always be TRUESebastian Dröge1-26/+19
2009-02-02Cleanup playback package selection and notify about the current packageSebastian Dröge1-15/+21
2009-02-02Update tags properly, especially on component switchSebastian Dröge1-5/+18
2009-02-02Error out if no pads could be createdSebastian Dröge1-0/+3
2009-02-02Resolve metadata and update tracks if necessary before seekingSebastian Dröge1-4/+6
2009-02-02Don't go after the last component of a trackSebastian Dröge1-0/+1
2009-02-02Return an error if updating an already existing pad failsSebastian Dröge1-21/+56
2009-02-02Fix seeking if the source clip duration is unknownSebastian Dröge1-14/+19
2009-02-01Add initial support for seeking in push modeSebastian Dröge1-63/+216
2009-02-01Fix deadlocks when seeking in pull mode failed and check new offset before ↵Sebastian Dröge1-2/+11
using it
2009-02-01Update offset in push mode and handle events properlySebastian Dröge1-36/+41
2009-02-01Implement initial seeking support (pull mode only)Sebastian Dröge2-18/+242
2009-01-31Don't use GLib 2.16 API unconditionallySebastian Dröge2-19/+75
2009-01-31Check for EOS on all pads after adjusting the essence track durationsSebastian Dröge1-8/+31
2009-01-31Fix duration calculation for essence tracksSebastian Dröge1-2/+4
2009-01-31Implement GstElement::query/get_query_types vfuncsSebastian Dröge1-8/+114
2009-01-31Reset all internal state in finalizeSebastian Dröge1-2/+3
2009-01-31Improve EOS detection and fix push mode for the last pushed in bufferSebastian Dröge1-60/+80
2009-01-31Keep track of essence track position when playing source packagesSebastian Dröge2-20/+16
This ensures that the correct essence elements are played and that we seek to the correct essence elements.
2009-01-31Compensate for timestamp/duration rounding errorsSebastian Dröge2-0/+13
2009-01-31Improve EOS logic to check all pads when pulling a packet returned EOSSebastian Dröge1-3/+2
This makes sure that we finish all pads that are at EOS now instead of just finishing one and returning to this point over and over again.
2009-01-31Only push buffers for pads that are not more than 500ms before other padsSebastian Dröge1-14/+27
2009-01-31Improve EOS logic to only go into EOS after all tracks are finishedSebastian Dröge1-33/+117
2009-01-31Update TODO listSebastian Dröge1-4/+0
2009-01-31Try to keep the timestamp difference between tracks lower than 500msSebastian Dröge1-27/+202
2009-01-31Fix playback of atom filesSebastian Dröge1-1/+1
2009-01-31Keep track of current playback positionSebastian Dröge1-11/+14
2009-01-31Set essence track positions to 0 if we're at the start partitionSebastian Dröge1-9/+28
2009-01-31Generate an index table for essence streamsSebastian Dröge11-183/+272
Generate an index table for essence streams during playback and make sure that only the correct essence elements are used for played tracks. Make it possible to have one essence stream used in multiple playback tracks. Fix some minor bugs.
2009-01-31Don't complain if the preface has no primary package setSebastian Dröge1-6/+8
2009-01-31Allow index table segments without primer packSebastian Dröge2-11/+13
When parsing an index table segment without a valid primer pack in this partition only parse the static local tags and ignore all dynamic ones. This allows us to use index table segments in some broken files.
2009-01-31Add essence track abstractionSebastian Dröge2-247/+460
Add an abstraction to represent essence tracks and use this everywhere. This will later be used to keep track of positions and to generate/handle seek tables. Some random cleanup and renaming.
2009-01-31Fix parsing of index table segmentsSebastian Dröge1-4/+6
Allocate memory for the pos tables and slice offsets of the index entries separately to a) fix alignment in weird cases and b) to actually have something to free() in the index table segment reset function.
2009-01-31Improve detection of the end of the header metadataSebastian Dröge2-12/+20
Header metadata is finished after partition.header_byte_count bytes after the first byte of the primer pack are handled. After this there can only be index table segments, filler packets, essence or the start of the next partition. This fixes playback of some files that have non-standard metadata packets in the header metadata.
2009-01-23Store all partitions & primer packs in memory for faster accessSebastian Dröge4-128/+213
Store all partitions & primer packs in memory for faster access. This is later needed for fast seeking. Pre-fill the list of partitions with the content of the random index pack. Don't parse metadata of an partition twice.
2009-01-22Fix UL for DTS and MPEG2 layer 1Sebastian Dröge1-2/+2
2009-01-22Add support for AAC audioSebastian Dröge1-0/+10
2009-01-22Store MXF metadata in a hash table, keyed by UIDSebastian Dröge7-835/+819
Store the MXF metadata in a hash table, keyed by the instance UID. This simplifies resolval of the metadata and makes looping over all metadata sets unnecessary in most cases. Additionally parse metadata always. If we already have a metadata set with the same UID replace it only if the new metadata set is from a later offset. This fixes metadata parsing of files where following partitions don't have a complete copy of the previous metadata.
2009-01-22Build the random index pack while parsingSebastian Dröge2-10/+40
If the file contains no random index pack or just an invalid one build the random index pack while parsing.
2009-01-22Update copyrights for 2009Sebastian Dröge25-25/+25
2009-01-22Simplify parsing of UL/UUID arraysSebastian Dröge6-1138/+640
Simplify parsing of UL/UUID arrays by abstracting it into a separate function.
2009-01-22Implement parsing of DMS1 (SMPTE S380M)Sebastian Dröge12-187/+7261
2009-01-05gst/mxf/: "Generation UID" and "This Generation UID" are different so handle ↵Sebastian Dröge4-21/+133
them different. Also both are not part o... Original commit message from CVS: * gst/mxf/Makefile.am: * gst/mxf/mxfdemux.c: * gst/mxf/mxfmetadata.c: (mxf_metadata_handle_tag), (mxf_metadata_preface_handle_tag), (mxf_metadata_identification_handle_tag), (mxf_metadata_content_storage_handle_tag), (mxf_metadata_essence_container_data_handle_tag), (mxf_metadata_generic_package_handle_tag), (mxf_metadata_track_handle_tag), (mxf_metadata_sequence_handle_tag), (mxf_metadata_structural_component_handle_tag), (mxf_metadata_generic_descriptor_handle_tag), (mxf_metadata_locator_handle_tag), (mxf_metadata_locator_class_init): * gst/mxf/mxfmetadata.h: "Generation UID" and "This Generation UID" are different so handle them different. Also both are not part of every metadata type.
2009-01-05gst/mxf/mxfdemux.c: Don't allow negative or zero edit rates to prevent ↵Sebastian Dröge1-8/+21
division by zero and we support negative edit ... Original commit message from CVS: * gst/mxf/mxfdemux.c: (gst_mxf_demux_handle_header_metadata_update_streams), (gst_mxf_demux_pad_next_component): Don't allow negative or zero edit rates to prevent division by zero and we support negative edit rates anyway.
2009-01-05gst/mxf/: Fix compilation with debugging disabled.Sebastian Dröge4-16/+66
Original commit message from CVS: * gst/mxf/mxfaes-bwf.c: (mxf_metadata_wave_audio_essence_descriptor_handle_tag), (mxf_bwf_create_caps): * gst/mxf/mxfdemux.c: (gst_mxf_demux_handle_klv_packet): * gst/mxf/mxfmetadata.c: (mxf_metadata_handle_tag), (mxf_metadata_preface_handle_tag), (mxf_metadata_identification_handle_tag), (mxf_metadata_content_storage_handle_tag), (mxf_metadata_essence_container_data_handle_tag), (mxf_metadata_generic_package_handle_tag), (mxf_metadata_source_package_handle_tag), (mxf_metadata_track_handle_tag), (mxf_metadata_sequence_handle_tag), (mxf_metadata_structural_component_handle_tag), (mxf_metadata_source_clip_handle_tag), (mxf_metadata_dm_segment_handle_tag), (mxf_metadata_generic_descriptor_handle_tag), (mxf_metadata_file_descriptor_handle_tag), (mxf_metadata_generic_picture_essence_descriptor_handle_tag), (mxf_metadata_generic_sound_essence_descriptor_handle_tag), (mxf_metadata_generic_data_essence_descriptor_handle_tag), (mxf_metadata_multiple_descriptor_handle_tag): * gst/mxf/mxfparse.c: (mxf_partition_pack_parse), (mxf_index_table_segment_parse), (mxf_primer_pack_parse), (mxf_local_tag_add_to_hash_table): Fix compilation with debugging disabled.
2008-12-31Implement support for OP2a/b/c and OP3a/b/c, i.e. tracks with more than a ↵Sebastian Dröge11-116/+320
single component. This currently only works... Original commit message from CVS: * gst/mxf/mxfaes-bwf.c: (mxf_bwf_handle_essence_element), (mxf_aes3_handle_essence_element): * gst/mxf/mxfalaw.c: (mxf_alaw_handle_essence_element): * gst/mxf/mxfd10.c: (mxf_d10_picture_handle_essence_element), (mxf_d10_sound_handle_essence_element): * gst/mxf/mxfdemux.c: (gst_mxf_demux_pad_init), (gst_mxf_demux_choose_package), (gst_mxf_demux_handle_header_metadata_update_streams), (gst_mxf_demux_pad_next_component), (gst_mxf_demux_handle_generic_container_essence_element), (gst_mxf_demux_parse_footer_metadata), (gst_mxf_demux_handle_klv_packet), (gst_mxf_demux_src_query): * gst/mxf/mxfdv-dif.c: (mxf_dv_dif_handle_essence_element): * gst/mxf/mxfjpeg2000.c: (mxf_jpeg2000_handle_essence_element): * gst/mxf/mxfmetadata.c: (mxf_metadata_sequence_init), (mxf_metadata_structural_component_init), (mxf_metadata_generic_picture_essence_descriptor_init): * gst/mxf/mxfmpeg.c: (mxf_mpeg_video_handle_essence_element), (mxf_mpeg_audio_handle_essence_element): * gst/mxf/mxfparse.h: * gst/mxf/mxfup.c: (mxf_up_handle_essence_element): * gst/mxf/mxfvc3.c: (mxf_vc3_handle_essence_element): * tests/check/elements/mxfdemux.c: (_sink_chain): Implement support for OP2a/b/c and OP3a/b/c, i.e. tracks with more than a single component. This currently only works for the case where the components are stored in playback order in the file. Set some more default/distinguished values for the structural metadata. Make some types more strict by choosing the correct subclasses. Set DISCONT flag on buffers after a component switch. Take the last partition from the random index pack for the footer partition of the header partition doesn't reference the footer partition. This gives us the final structural metadata for some more files in the beginning.
2008-12-22gst/mxf/mxfmpeg.c: Add initial support for h.264 video (SMPTE RP2008).Sebastian Dröge1-9/+34
Original commit message from CVS: * gst/mxf/mxfmpeg.c: (mxf_mpeg_es_create_caps), (mxf_mpeg_create_caps): Add initial support for h.264 video (SMPTE RP2008).