Commit graph

24 commits

Author SHA1 Message Date
Tim-Philipp Müller
0c96b9dd10 Remove autotools build system
Todo:
 - hook up data/completions/ges-launch-1.0 in Meson (#77)
2019-10-13 13:54:19 +01:00
Tim-Philipp Müller
b624e19ff3 .gitignore: ignore test registry 2017-11-26 13:30:08 +00:00
Tim-Philipp Müller
ddc37e6b44 Remove generated .spec file
Likely extremely bitrotten, and we should not ship this anyway.
2016-12-16 17:29:59 +00:00
Sebastian Dröge
d4af1b6c9a ges: Rename parse_lex.h to ges-parse-lex.h
Fixes the build and makes it consistent with the meson build system.
2016-08-25 10:06:51 +03:00
Thibault Saunier
383c5d1f6d Add support for Meson as alternative/parallel build system
https://github.com/mesonbuild/meson
2016-08-24 16:44:32 -03:00
Sjors Gielen
84f7f04a64 Handle changing playback rate
Before this patch, NLE and GES did not support NleOperations (respectively
GESEffects) that changed the speed/tempo/rate at which the source plays. For
example, the 'pitch' element can make audio play faster or slower. In GES 1.5.90
and before, an NleOperation containing the pitch element to change the rate (or
tempo) would cause a pipeline state change to PAUSED after that stack; that has
been fixed in 1.5.91 (see #755012 [0]). But even then, in 1.5.91 and later,
NleComposition would send segment events to its NleSources assuming that one
source second is equal to one pipeline second. The resulting early EOS event
(in the case of a source rate higher than 1.0) would cause it to switch stacks
too early, causing confusion in the timeline and spectacularly messed up
output.

This patch fixes that by searching for rate-changing elements in
GESTrackElements such as GESEffects. If such rate-changing elements are found,
their final effect on the playing rate is stored in the corresponding NleObject
as the 'media duration factor', named like this because the 'media duration',
or source duration, of an NleObject can be computed by multiplying the duration
with the media duration factor of that object and its parents (this is called
the 'recursive media duration factor'). For example, a 4-second NleSource with
an NleOperation with a media duration factor of 2.0 will have an 8-second media
duration, which means that for playing 4 seconds in the pipeline, the seek
event sent to it must span 8 seconds of media. (So, the 'duration' of an
NleObject or GES object always refers to its duration in the timeline, not the
media duration.)

To summarize:

* Rate-changing elements are registered in the GESEffectClass (pitch::tempo and
  pitch::rate are registered by default);
* GESTimelineElement is responsible for detecting rate-changing elements and
  computing the media_duration_factor;
* GESTrackElement is responsible for storing the media_duration_factor in
  NleObject;
* NleComposition is responsible for the recursive_media_duration_factor;
* The latter property finally fixes media time computations in NleObject.

NLE and GES tests are included.

[0] https://bugzilla.gnome.org/show_bug.cgi?id=755012

Differential Revision: https://phabricator.freedesktop.org/D276
2016-02-26 19:54:40 +01:00
Tim-Philipp Müller
0c8c2c4bd7 Update .gitignore 2015-04-23 20:20:29 +01:00
Mathieu Duponchelle
abb5f2cc2f ges-launch: Implement a new parser for the commandline.
Summary: + flex-based lexing and manual simplistic parsing.

Test Plan: Use that stuff to make awesome things, see if it breaks.
2015-03-20 13:53:40 +01:00
Thibault Saunier
1373937b8e Add some ignore files to .gitignore 2014-12-06 10:34:16 +01:00
Tim-Philipp Müller
58bdd19cd4 .gitignore: add test driver and more test binaries 2014-01-10 00:05:34 +00:00
Nicolas Dufresne
26d247fd3a Update gitignore 2013-05-10 18:13:11 -04:00
Thibault Saunier
684eef17a6 gitignore: Ignore *.page 2013-03-14 18:10:34 -03:00
Thibault Saunier
3e310e5960 gitignore: Ignore anjuta files 2013-01-10 11:11:31 -03:00
Thibault Saunier
3120c525bb Add some more gitignore 2012-12-29 19:38:13 -03:00
Thibault Saunier
f7228a40a2 Add some ignored files 2012-12-29 19:36:52 -03:00
Thibault Saunier
7e82bef3a9 gitignore: Ignore some more files 2012-12-19 11:45:38 -03:00
Tim-Philipp Müller
d5494acf30 .gitignore: ignore more 2012-05-01 18:51:30 +01:00
Edward Hervey
b77da13eb8 bindings: Ignore more files 2011-08-11 16:35:11 +02:00
Edward Hervey
132cb68ab2 all: add/extend more .gitignore 2010-12-15 15:52:03 +01:00
Edward Hervey
0c3bcf1ed8 ges: Ignore more 2010-11-23 17:34:07 +01:00
Edward Hervey
69161e795e ignore more files 2010-03-11 11:06:50 +01:00
Edward Hervey
bd7f61c299 ignore more files 2009-11-09 15:55:06 +01:00
Edward Hervey
23a95ded19 gitignore: Ignore more files 2009-09-08 18:55:41 +02:00
Edward Hervey
b968d05216 .gitignore: ignore cruft 2009-08-04 19:23:00 +02:00