Sebastian Dröge
b6bac882f9
mxfdemux: Simplify caps selection by using a lookup table
2009-03-21 10:19:49 +01:00
Sebastian Dröge
9aa16c2ea5
mxfmux: Add initial support for muxing raw picture essence
2009-03-21 10:19:48 +01:00
Sebastian Dröge
3d2f7c9ca0
mxfmux: Only add an essence container UL once to the partition and preface
2009-03-21 10:19:48 +01:00
Sebastian Dröge
1925b8e9f7
mxfdemux: Add support for AYUV and v308 YUV colorspaces
2009-03-21 10:19:48 +01:00
Sebastian Dröge
9fd64eee8d
mxfmux: Use the correct edit rate instead of estimating it from the first buffer duration
2009-03-21 10:19:48 +01:00
Sebastian Dröge
6c126cbfdf
mxfdemux: Error out directly if pushing a packet downstream failed
2009-03-21 10:19:48 +01:00
Sebastian Dröge
fc70fb1706
mxfmux: Add support for DV/DIF muxing and add framerate, etc to the caps when demuxing DV/DIF content
2009-03-21 10:19:48 +01:00
Sebastian Dröge
266736817d
mxfmux: Add some debugging and error out on invalid input data
2009-03-21 10:19:48 +01:00
Sebastian Dröge
c5c155884a
mxfmux: Add support for muxing MPEG audio and video
2009-03-21 10:19:48 +01:00
Sebastian Dröge
28e4871217
mxfdemux: Use correct caps type for AC3 audio (audio/x-ac3 instead of audio/ac3)
2009-03-21 10:19:47 +01:00
Sebastian Dröge
654f0627e4
mxfmux: Add support for muxing JPEG2000 code streams
2009-03-21 10:19:47 +01:00
Sebastian Dröge
244c0a4707
mxfmux: Add support for muxing VC-3 (aka DNxHD) video
2009-03-21 10:19:47 +01:00
Sebastian Dröge
60d0dc07bf
mxfmux: Add support for muxing A-Law audio
2009-03-21 10:19:47 +01:00
Sebastian Dröge
0a5dc919fb
mxfmux: Add support for muxing raw audio
2009-03-21 10:19:47 +01:00
Sebastian Dröge
e50039897b
mxf: Add MXF muxer
...
This muxer currently only supports OP1a and is
probably not yet 100% complying to the standards.
2009-03-21 10:19:47 +01:00
Jan Schmidt
cf4485133b
mxfdemux: Fix build on GLib < 2.16 some more
2009-03-18 10:35:43 +00:00
Zaheer Merali
43117a8d86
mxf: Replace g_hash_table_get_values with code working with glib 2.6.
...
Fixes #575565
2009-03-16 17:33:45 +00:00
Sebastian Dröge
6b51d475b5
mxfdemux: Store and use the seqnum of the currently running segment everywhere
2009-03-06 17:46:37 +01:00
Sebastian Dröge
424bb07965
mxf: Don't even try to serialize DM frameworks as it will cause an assertion until this is finished
2009-03-06 17:24:03 +01:00
Sebastian Dröge
b5e87b6517
mxf: Don't use NULL GstStructures to prevent warnings
...
Currently serializing of DM Frameworks is not supported
yet by DMS1 and will give us NULL.
2009-03-05 14:40:57 +01:00
Sebastian Dröge
62dbf4b9bc
mxfdemux: Use arrays instead of lists for the metadata registries
2009-03-02 17:00:41 +01:00
Sebastian Dröge
ed72bba6a2
mxf: Fix memory leak
...
gst_structure_id_set() will copy GstStructures instead of taking
the ownership.
2009-02-28 20:42:49 +01:00
Sebastian Dröge
b5b2e44563
mxf: Store the metadata type ID inside the class structure
2009-02-28 20:39:42 +01:00
Sebastian Dröge
b7f617ad58
mxfdemux: Add read-only property to get the structural metadata
2009-02-21 17:45:09 +01:00
Sebastian Dröge
a0951a630b
mxfdemux: Add MPEG video bitrate to the tags if available
2009-02-21 17:40:01 +01:00
Sebastian Dröge
acc6a316ce
mxfdemux: Post structural metadata tree as tag on the bus
...
This will later be used to keep the structural metadata when
remuxing an MXF file and can also be used in Pitivi for example
to know the file structure and to select what should be used
and played.
2009-02-21 17:38:49 +01:00
Sebastian Dröge
a9461b9818
mxfdemux: Fix calculation of AES3 bitrate tag
2009-02-21 16:16:32 +01:00
Sebastian Dröge
636b535e4a
mxfdemux: Add helper function to convert MXFraction to gdouble and use it
2009-02-21 16:16:32 +01:00
Sebastian Dröge
8172830d47
mxfdemux: Only store the main descriptor in source packages
...
For the tracks we still resolve the descriptors but the
source package only contains the descriptor it really references
instead of all subdescriptors of multiple descriptors.
This makes it easier later to serialize the structural metadata
again.
2009-02-21 16:16:32 +01:00
Sebastian Dröge
e11f0be161
mxfdemux: Set free'd memory to NULL to prevent a double free later in some cases
2009-02-21 16:16:32 +01:00
Sebastian Dröge
2a93712ea1
mxfdemux: Don't use generic metadata parsers for unknown metadata, the results are useless anyway
2009-02-21 16:16:32 +01:00
Sebastian Dröge
e8efc4d020
mxfdemux: Also include the picture/sound/data essence coding in the unknown caps
2009-02-12 11:00:07 +01:00
Sebastian Dröge
25e84ff223
mxfdemux: Update TODO, we should support the drop-frame property of timecode tracks
2009-02-12 11:00:07 +01:00
Sebastian Dröge
eb78f9c8f7
mxfdemux: Fix resolval of identifications from the preface
2009-02-12 11:00:07 +01:00
Sebastian Dröge
61b284de0d
mxfdemux: Parse MXFTimestamp's milliseconds and add _to_string() function
2009-02-12 11:00:07 +01:00
Sebastian Dröge
144466e2cd
mxfdemux: Update TODO
2009-02-12 11:00:07 +01:00
Sebastian Dröge
08aadd31dc
mxfdemux: After pulling the footer metadata reset essence track positions to 0
2009-02-09 18:14:14 +01:00
Sebastian Dröge
1229f0a149
mxfdemux: When trying to find an essence track position try to find position+1 too
...
By searching for the following position we will add the complete
generic container (i.e. all tracks) at the same position to the
index which should make finding positions for more than one track
a bit faster.
2009-02-09 17:55:05 +01:00
Sebastian Dröge
df0dd0b378
mxfdemux: For new essence tracks only set the position to 0 if it starts in the current partition
2009-02-09 17:48:38 +01:00
Sebastian Dröge
1ae9334355
mxfdemux: Check if the length of the src/essence track arrays are 0, not the array itself
2009-02-09 17:44:43 +01:00
Sebastian Dröge
32dc77f853
mxfdemux: Make sure that the srcpad and essence track arrays always exist
2009-02-09 17:25:35 +01:00
Sebastian Dröge
ae4b0fcb7c
mxfdemux: Change some GST_ERRORs to something less critical
2009-02-09 16:40:44 +01:00
Sebastian Dröge
3f9400d968
mxfdemux: Only go into EOS and send segment-done after all tracks are finished
2009-02-09 16:40:44 +01:00
Sebastian Dröge
15c0db9c38
mxfdemux: Update TODO
2009-02-09 16:40:44 +01:00
Sebastian Dröge
dc408bb28b
mxfdemux: Fix seeking to the end of file
...
When seeking to a position where no new offset can be
found or after the end of a track don't set the EOS flag
to TRUE as we don't (and can't) push EOS downstream then.
Instead set the current essence track position to then
end of the essence track and let the loop or chain function
set everything to EOS and push EOS downstream.
Also restart the pad's task if resolving metadata failed
(playback will continue as before) and return FALSE from
the seek if no new offset could be found.
2009-02-09 07:33:41 +01:00
Sebastian Dröge
f169201c24
mxfdemux: Fix last_stop calculation when seeking
2009-02-08 21:52:03 +01:00
Sebastian Dröge
33baa707a2
mxfdemux: Resolve source package before accessing it's members
2009-02-08 21:31:40 +01:00
Sebastian Dröge
2b566be795
mxfdemux: Correctly implement timestamping in all cases
...
When the material package track and source package track
edit rate are different the source package track edit
rate applies to the stored essence and the material track
edit rate only applies to the values in the track's sequence
and components.
2009-02-08 21:23:03 +01:00
Sebastian Dröge
3cc77d4dd6
mxfdemux: Correctly handle DURATION queries with a negative duration
2009-02-08 21:22:17 +01:00
Sebastian Dröge
81fb90748f
mxfdemux: When changing to the component after the last component update the essence track position
2009-02-08 21:17:11 +01:00
Sebastian Dröge
c33678dab3
mxfdemux: Small cleanup and an additional check
...
Update TODO list, reduce size of a stack allocated string
and don't allow essence tracks with an invalid edit rate
2009-02-08 21:12:21 +01:00
Sebastian Dröge
658066d085
mxfdemux: For material packages make sure that tracks resolve to source tracks
2009-02-08 07:33:33 +01:00
Sebastian Dröge
8dc9f2ea4d
mxfdemux: Add support for non-standard Avid MXF files containing DNxHD essence
...
Avid uses a custom essence container UL and custom essence element keys
that are fortunately compatible with the generic container essence
elements. Partially fixes bug #561922 .
2009-02-07 10:38:26 +01:00
Sebastian Dröge
3c3dff6869
mxfdemux: Make essence track creation a bit more robust against broken files
...
Some files contain multiple tracks with the same track number but different
track id inside the same source package. This is invalid and we simply ignore
the second and following of such traacks now instead of overwriting the
information of the first one.
2009-02-07 10:13:54 +01:00
Sebastian Dröge
410681f8b5
mxfdemux: Don't include multiple descriptors in the track's descriptors
2009-02-07 10:03:24 +01:00
Sebastian Dröge
6e392318c0
mxfdemux: Add support for non-standard Avid MXF files containing DV essence
...
Avid usually uses a custom essence container label for the essence
descriptors and stores the actual codec that is used inside the
picture essence coding field (and for sound probably in the sound
essence coding field but I have no sample files with sound).
Partially fixes bug #561922 .
2009-02-07 09:27:13 +01:00
Sebastian Dröge
1822dc99d3
mxfdemux: Add data definition for Avid vendor specific picture essence
2009-02-06 11:57:46 +01:00
Sebastian Dröge
86088f92be
mxfdemux: For tracks with no known mapping use dummy caps
2009-02-06 11:55:45 +01:00
Sebastian Dröge
6eef7983fb
mxfdemux: Don't remove invalid new essence track twice from the GPtrArray
2009-02-06 11:21:00 +01:00
Sebastian Dröge
f529a4c6b3
mxfdemux: Implement keyframe detection for MPEG4 video streams
2009-02-06 11:09:11 +01:00
Sebastian Dröge
0d8099685d
mxfdemux: Handle some more special cases when setting the position when seeking
2009-02-06 10:46:47 +01:00
Sebastian Dröge
bb11522f1d
mxfdemux: Adjust last_stop to the last keyframe when seeking
2009-02-06 10:46:09 +01:00
Sebastian Dröge
22cb259f19
mxfdemux: Fix logic for finding the previous keyframe
2009-02-06 10:06:59 +01:00
Sebastian Dröge
6208795598
mxfdemux: Add keyframe detection for MPEG2 video streams
...
This is useful for seeking as we usually want to seek to the previous
keyframe. The keyframe detection is done by parsing the MPEG2
elementary stream and if a GOP or I-frame packet is found we
assume a keyframe in this edit unit.
2009-02-06 09:53:13 +01:00
Sebastian Dröge
c9f6a8b586
mxfdemux: Protect the metadata with a lock against concurrent access
2009-02-05 21:29:29 +01:00
Sebastian Dröge
ad2a64870c
Update TODO
2009-02-04 11:12:14 +01:00
Sebastian Dröge
3e2a880c6b
Post an UMID tag with the current package's UMID
2009-02-04 11:12:14 +01:00
Sebastian Dröge
c0557df34d
Reset the current partition after seeking and NEWSEGMENT events
2009-02-04 11:12:13 +01:00
Sebastian Dröge
2ee7e7768d
In push mode play all remaining parts of the file on EOS if there are any
2009-02-04 11:12:13 +01:00
Sebastian Dröge
cc5699340d
Add property to set the maximum allowed time difference between tracks
2009-02-04 11:12:13 +01:00
Sebastian Dröge
fd72ef34f6
Always set the current package, not only when it was changed
...
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-04 11:12:13 +01:00
Sebastian Dröge
a79c4e0314
Try to resolve all synchronization issues, not only the first
2009-02-04 11:12:13 +01:00
Sebastian Dröge
c4a0bc9887
Remove some checks that will always be TRUE
2009-02-04 11:12:13 +01:00
Sebastian Dröge
18e2ffa484
Cleanup playback package selection and notify about the current package
2009-02-02 17:48:47 +01:00
Sebastian Dröge
5277650a20
Update tags properly, especially on component switch
2009-02-02 16:23:30 +01:00
Sebastian Dröge
0c756199c0
Error out if no pads could be created
2009-02-02 16:05:14 +01:00
Sebastian Dröge
ee131d8af7
Resolve metadata and update tracks if necessary before seeking
2009-02-02 15:54:23 +01:00
Sebastian Dröge
5e57a0a052
Don't go after the last component of a track
2009-02-02 15:54:00 +01:00
Sebastian Dröge
92f372ba30
Return an error if updating an already existing pad fails
2009-02-02 15:53:32 +01:00
Sebastian Dröge
60f5c6f03f
Fix seeking if the source clip duration is unknown
2009-02-02 07:44:12 +01:00
Sebastian Dröge
0ac0645de6
Add initial support for seeking in push mode
2009-02-01 17:00:33 +01:00
Sebastian Dröge
99298da3d5
Fix deadlocks when seeking in pull mode failed and check new offset before using it
2009-02-01 17:00:33 +01:00
Sebastian Dröge
43ade6cf71
Update offset in push mode and handle events properly
2009-02-01 17:00:23 +01:00
Sebastian Dröge
58a3220dde
Implement initial seeking support (pull mode only)
2009-02-01 15:07:09 +01:00
Sebastian Dröge
6a09f5f4fe
Don't use GLib 2.16 API unconditionally
2009-01-31 11:29:20 +01:00
Sebastian Dröge
93a2b5c9ea
Check for EOS on all pads after adjusting the essence track durations
2009-01-31 11:02:26 +01:00
Sebastian Dröge
ebd8b8dbaf
Fix duration calculation for essence tracks
2009-01-31 11:02:26 +01:00
Sebastian Dröge
f638caef57
Implement GstElement::query/get_query_types vfuncs
2009-01-31 11:02:26 +01:00
Sebastian Dröge
061a96fa94
Reset all internal state in finalize
2009-01-31 11:02:26 +01:00
Sebastian Dröge
02769b4a4d
Improve EOS detection and fix push mode for the last pushed in buffer
2009-01-31 11:02:26 +01:00
Sebastian Dröge
707136fe5d
Keep track of essence track position when playing source packages
...
This ensures that the correct essence elements are played and
that we seek to the correct essence elements.
2009-01-31 11:02:26 +01:00
Sebastian Dröge
dfa0e43848
Compensate for timestamp/duration rounding errors
2009-01-31 11:02:25 +01:00
Sebastian Dröge
a930b36adc
Improve EOS logic to check all pads when pulling a packet returned EOS
...
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-31 11:02:25 +01:00
Sebastian Dröge
2dbe706330
Only push buffers for pads that are not more than 500ms before other pads
2009-01-31 11:02:25 +01:00
Sebastian Dröge
91ed2ef166
Improve EOS logic to only go into EOS after all tracks are finished
2009-01-31 11:02:25 +01:00
Sebastian Dröge
b783f38813
Update TODO list
2009-01-31 11:02:25 +01:00
Sebastian Dröge
20c92a4db3
Try to keep the timestamp difference between tracks lower than 500ms
2009-01-31 11:02:25 +01:00
Sebastian Dröge
742fc4e80d
Fix playback of atom files
2009-01-31 11:02:25 +01:00
Sebastian Dröge
f404262adf
Keep track of current playback position
2009-01-31 11:02:25 +01:00
Sebastian Dröge
556e3c46e4
Set essence track positions to 0 if we're at the start partition
2009-01-31 11:02:24 +01:00