| 1 |
GStreamer Editing Services |
| 2 |
-------------------------- |
| 3 |
|
| 4 |
This is a list of features and goals for the GStreamer Editing |
| 5 |
Services. |
| 6 |
|
| 7 |
Some features are already implemented, and some others not. When the |
| 8 |
status is not specified, this means it is still not implemented but |
| 9 |
might be investigated. |
| 10 |
|
| 11 |
|
| 12 |
FUNDAMENTAL GOALS: |
| 13 |
|
| 14 |
1) API must be easy to use for simple use-cases. Use and abuse |
| 15 |
convenience methods. |
| 16 |
2) API must allow as many use-cases as possible, not just the simple |
| 17 |
ones. |
| 18 |
|
| 19 |
|
| 20 |
FEATURES |
| 21 |
|
| 22 |
Index of features: |
| 23 |
|
| 24 |
* Project file load/save support (GESFormatter) |
| 25 |
* Grouping/Linking of Multiple TrackObjects |
| 26 |
* Selection support (Extension from Grouping/Linking) |
| 27 |
* Effects support |
| 28 |
* Source Material object |
| 29 |
* Proxy support |
| 30 |
* Editing modes (Ripple/Roll/Slip/Slide) |
| 31 |
* Coherent handling of Content in different formats |
| 32 |
* Video compositing and audio mixing |
| 33 |
* Handling of alpha video (i.e. transparency) |
| 34 |
* Faster/Tigher interaction with GNonLin elements |
| 35 |
* Media Asset Management integration |
| 36 |
* Templates |
| 37 |
* Plugin system |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
* Project file load/save support (GESFormatter) |
| 42 |
|
| 43 |
Status: |
| 44 |
Implemented, requires API addition for all use-cases. |
| 45 |
|
| 46 |
Problems: |
| 47 |
Timelines can be stored in many different formats, we need to |
| 48 |
ensure it is as easy/trivial as possible for users to load/save |
| 49 |
those timelines. |
| 50 |
Some timeline formats might have format-specific |
| 51 |
sources/objects/effects which need to be handled in certain ways |
| 52 |
and therefore provide their own classes. |
| 53 |
|
| 54 |
The object that can save/load GESTimeline are Formatters. |
| 55 |
|
| 56 |
Formatters can offer support for load-only/save-only formats. |
| 57 |
|
| 58 |
There must be a list of well-known GES classes that all formatters |
| 59 |
must be able to cope with. If a subclass of one of those classes is |
| 60 |
present in a timeline, the formatter will do its best to store a |
| 61 |
compatible information. |
| 62 |
|
| 63 |
A Formatter can ask a pre-render of classes that it doesn't |
| 64 |
understand (See Proxy section). |
| 65 |
|
| 66 |
Formatters can provide subclasses of well-known GES classes when |
| 67 |
filling in the timeline to offer format-specific features. |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
* Grouping/Linking of Multiple TrackObjects |
| 72 |
|
| 73 |
Status: |
| 74 |
Implemented, but doesn't have public API for controlling the |
| 75 |
tracked objects or creating groups from TimelineObject(s) |
| 76 |
|
| 77 |
Problems: |
| 78 |
In order to make the usage of timelines at the Layer level as easy |
| 79 |
as possible, we must be able to group any TrackObject together as |
| 80 |
one TimelineObject. |
| 81 |
|
| 82 |
The base GESTimelineObject keeps a reference to all the |
| 83 |
GESTrackObjects it is controlling. It contains a mapping of the |
| 84 |
position of those track objects relatively to the timeline objects. |
| 85 |
|
| 86 |
TrackObjects will move and be modified synchronously with the |
| 87 |
TimelineObject, and vice-versa. |
| 88 |
|
| 89 |
TrackObjects can be 'unlocked' from the changes of its controlling |
| 90 |
TimelineObject. In this case, it will not move and be modified |
| 91 |
synchronously with the TimelineObject. |
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
* Selection support (Extension from Grouping/Linking) |
| 96 |
|
| 97 |
Problems: |
| 98 |
In order to make user-interface faster to write, we must have a way |
| 99 |
to create selections of user-selected TimelineObject(s) or |
| 100 |
TrackObject(s) to move them together. |
| 101 |
|
| 102 |
This should be able to do by creating a non-visible (maybe not even |
| 103 |
inserted in the layer?) TimelineObject. |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
* Effects support |
| 108 |
|
| 109 |
Status: |
| 110 |
Partially Implemented, requires API addition for all use-cases. |
| 111 |
|
| 112 |
Problems: |
| 113 |
In order for users to apply multimedia effects in their timelines, |
| 114 |
we need an API to search, add and control those effects. |
| 115 |
|
| 116 |
We must be able to provide a list of effects available on the system |
| 117 |
at runtime. |
| 118 |
We must be able to configure effects through an API in GES without |
| 119 |
having to access the GstElements properties directly. |
| 120 |
|
| 121 |
We should also expose the GstElements contained in an effect so it |
| 122 |
is possible for people to control their properties as they wish. |
| 123 |
|
| 124 |
We must be able to implement and handle complex effects directly in |
| 125 |
GES. |
| 126 |
|
| 127 |
We must be able to configure effects through time -> Keyframes |
| 128 |
without duplicating code from GStreamer. |
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
* Source Material object |
| 133 |
|
| 134 |
Problems: |
| 135 |
Several TimelineSource for a same uri actually share a lot |
| 136 |
in common. That information will mostly come from GstDiscoverer, |
| 137 |
but could also contain extra information provided by 3rd party |
| 138 |
modules. |
| 139 |
|
| 140 |
The information regarding the various streams (and obtained through |
| 141 |
optionally running GstDiscoverer) is not stored and has to be |
| 142 |
re-analyzed else where. |
| 143 |
|
| 144 |
Definition: |
| 145 |
Material: n, The substance or substances out of which a thing is or |
| 146 |
can be made. |
| 147 |
|
| 148 |
In order to avoid duplicating that information in every single |
| 149 |
TimelineSource, a 'Material' object needs to be made available. |
| 150 |
|
| 151 |
A Material object contains all the information which is independent |
| 152 |
of the usage of that material in a timeline. |
| 153 |
|
| 154 |
A Material contains the list of 'streams' that can be provided with |
| 155 |
as much information as possible (ex: contains audio and video |
| 156 |
streams with full caps information, or better yet the output of |
| 157 |
GstDiscoverer). |
| 158 |
|
| 159 |
A Material contains the various Metadata (author, title, origin, |
| 160 |
copyright ,....). |
| 161 |
|
| 162 |
A Material object can specify the TimelineSource class to use in a |
| 163 |
Layer. |
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
* Proxy support |
| 168 |
|
| 169 |
Problems: |
| 170 |
A certain content might be impossible to edit on a certain setup |
| 171 |
due to many reasons (too complex to decode in realtime, not in |
| 172 |
digital format, not available locally, ...). |
| 173 |
|
| 174 |
In order to be able to store/export timelines to some formats, one |
| 175 |
might need to have to create a pre-render of some items of the |
| 176 |
timeline, while retaining as much information as possible. |
| 177 |
|
| 178 |
Content here is not limited to single materials, it could very well |
| 179 |
be a complex combination of materials/effects like a timeline or a |
| 180 |
collection of images. |
| 181 |
|
| 182 |
To solve this problem, we need a notion of ProxyMaterial. |
| 183 |
|
| 184 |
It is a subclass of Material and as such provides all the same |
| 185 |
features as Material. |
| 186 |
|
| 187 |
It should be made easy to create one from an existing TimelineSource |
| 188 |
(and it's associated Material(s)), with specifiable rendering |
| 189 |
settings and output location. |
| 190 |
|
| 191 |
The user should have the possibility to switch from Proxy materials |
| 192 |
to original (in order to use the lower |
| 193 |
resolution/quality/... version for the editing phase and the |
| 194 |
original material for final rendering phase). |
| 195 |
|
| 196 |
Requires: |
| 197 |
GESMaterial |
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
* Editing modes (Ripple/Roll/Slip/Slide) |
| 202 |
|
| 203 |
Status: |
| 204 |
Not implemented. |
| 205 |
|
| 206 |
Problems: |
| 207 |
Most editing relies on heavy usage of 4 editing tools which editors |
| 208 |
will require. Ripple/Roll happen on edit points (between two clips) |
| 209 |
and Slip/Slide happen on a clip. |
| 210 |
|
| 211 |
The Ripple tool allows you to modify the beginning/end of a clip |
| 212 |
and move the neighbour accordingly. This will change the overall |
| 213 |
timeline duration. |
| 214 |
|
| 215 |
The Roll tool allows you to modify the position of an editing point |
| 216 |
between two clips without modifying the inpoint of the first clip |
| 217 |
nor the out-point of the second clip. This will not change the |
| 218 |
overall timeline duration. |
| 219 |
|
| 220 |
The Slip tool allows you to modify the in-point of a clip without |
| 221 |
modifying it's duration or position in the timeline. |
| 222 |
|
| 223 |
The Slide tool allows you to modify the position of a clip in a |
| 224 |
timeline without modifying it's duration or it's in-point, but will |
| 225 |
modify the out-point of the previous clip and in-point of the |
| 226 |
following clip so as not to modify the overall timeline duration. |
| 227 |
|
| 228 |
These tools can be used both on TimelineObjects and on |
| 229 |
TrackObjects, we need to make sure that changes are propagated |
| 230 |
properly. |
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
* Coherent handling of Content in different formats |
| 235 |
|
| 236 |
Problems: |
| 237 |
When mixing content in different format (Aspect-Ratio, Size, color |
| 238 |
depth, number of audio channels, ...), decisions need to be made on |
| 239 |
whether to conform the material to a common format or not, and on |
| 240 |
how to conform that material. |
| 241 |
|
| 242 |
Conforming the material here means bringing it to a common format. |
| 243 |
|
| 244 |
All the information regarding the contents we are handling are |
| 245 |
stored in the various GESMaterial. The target format is also known |
| 246 |
through the caps of the various GESTracks involved. The Material and |
| 247 |
track output caps will allow us to make decisions on what course of |
| 248 |
action to take. |
| 249 |
|
| 250 |
By default content should be conformed to a good balance of speed |
| 251 |
and avoid loss of information. |
| 252 |
Ex: If mixing a 4:3 video and a 16:9 video with a target track |
| 253 |
aspect ratio of 4:3, we will make the width of the two videos |
| 254 |
be equal without distorting their respective aspect-ratios. |
| 255 |
|
| 256 |
Requires: |
| 257 |
GESMaterial |
| 258 |
|
| 259 |
See also: |
| 260 |
Video compositing and audio mixing |
| 261 |
|
| 262 |
|
| 263 |
|
| 264 |
* Video compositing and audio mixing |
| 265 |
|
| 266 |
Status: |
| 267 |
Not implemented. The bare minimum to implement are the static |
| 268 |
absolute property handling. Relative/variable properties and group |
| 269 |
handling can be done once we know how to handle object grouping. |
| 270 |
|
| 271 |
Problems: |
| 272 |
Editing requires not only a linear combination of cuts and |
| 273 |
sequences, but also mixing various content/effect at the same |
| 274 |
time. |
| 275 |
|
| 276 |
Audio and Video compositing/mixing requires having a set of base |
| 277 |
properties for all sources that indicate their positioning in the |
| 278 |
final composition. |
| 279 |
|
| 280 |
Audio properties |
| 281 |
* Volume |
| 282 |
* Panning (or more generally positioning and up-/down-mixing for |
| 283 |
multi-channel). |
| 284 |
|
| 285 |
Video properties |
| 286 |
* Z-layer (implicit through priority property) |
| 287 |
* X,Y position |
| 288 |
* Vertical and Horizontal scaling |
| 289 |
* Global Alpha (see note below about alpha). |
| 290 |
|
| 291 |
A big problem with compositing/mixing is handling positioning that |
| 292 |
could change due to different input/output format AND avoiding any |
| 293 |
quality loss. |
| 294 |
|
| 295 |
Example 1 (video position and scale/aspect-ratio changes): |
| 296 |
A user puts a 32x24 logo video at position 10,10 on a 1280x720 |
| 297 |
video. Later on the user decides to render the timeline to a |
| 298 |
different resolution (like 1920x1080) or aspect ratio (4:3 instead |
| 299 |
of 16:9). |
| 300 |
The overlayed logo should stay at the same relative position |
| 301 |
regardless of the output format. |
| 302 |
|
| 303 |
Example 2 (video scaling): |
| 304 |
A user decides to overlay a video logo which is originally a |
| 305 |
320x240 video by scaling it down to 32x24 on top of a 1280x720 |
| 306 |
video. Later on the user decides to render a 1920x1080 version of |
| 307 |
the timeline. |
| 308 |
The resulting rendered 1920x1080 video shall have the overlay |
| 309 |
video located at the exact relative position and using a 64x48 |
| 310 |
downscale of the original overlay video (i.e. avoiding a |
| 311 |
640x480=>32x24=>64x48 double-scaling). |
| 312 |
|
| 313 |
Example 3 (audio volume): |
| 314 |
A user adjusts the commentary audio track and the soundtrack audio |
| 315 |
track based on the volume of the various videos playing. Later on |
| 316 |
the user wants to adjust the overall audio volume in order for the |
| 317 |
final output to conform to a target RMS/peak volume. |
| 318 |
The resulting relative volumes of each track should be the same |
| 319 |
WITHOUT any extra loss of audio quality (i.e. avoiding a |
| 320 |
downscale/upscale lossy volume conversion cycle). |
| 321 |
|
| 322 |
Example 4 (audio positioning): |
| 323 |
A user adjusts the relative panning/positioning of the commentary, |
| 324 |
soundtrack and sequence for a 5.1 mixing. Later on he decides to |
| 325 |
make a 7.1 and a stereo rendering. |
| 326 |
The resulting relative positioning should be kept as much as |
| 327 |
possible (left/right downmix and re-positioning for extra 2 |
| 328 |
channels in the case of 7.1 upmixing) WITHOUT any extra loss in |
| 329 |
quality. |
| 330 |
|
| 331 |
|
| 332 |
Create a new 'CompositingProperties' object for audio and video |
| 333 |
which is an extensible set of properties for media-specific |
| 334 |
positioning. This contains the properties mentionned above. |
| 335 |
|
| 336 |
Add the CompositingProperties object to the base GESTrackObject |
| 337 |
which points to the audio or video CompositingProperties |
| 338 |
object (depending on what format that object is handling). |
| 339 |
|
| 340 |
Provide convenience functions to retrieve and set the audio or video |
| 341 |
compositing properties of a GESTrackObject. Do the same for the |
| 342 |
GESTimelineObject, which proxies it to the relevant GESTrackObject. |
| 343 |
|
| 344 |
Create a new GESTrack{Audio|Video}Compositing GstElement which will |
| 345 |
be put in each track as a priority 0 expandable NleOperation. |
| 346 |
That object will be able to figure out which |
| 347 |
mixing/scaling/conversion elements to use at any given time by |
| 348 |
inspecting: |
| 349 |
* The various GESTrackObject Compositing Properties |
| 350 |
* The various GESTrackObject GESMaterial stream properties |
| 351 |
* The GESTrack target output GstCaps |
| 352 |
|
| 353 |
The properties values could be both set/stored as 'relative' values |
| 354 |
and as 'absolute' values in order to handle any input/output formats |
| 355 |
or setting. |
| 356 |
|
| 357 |
Objects that are linked/grouped with others have their properties |
| 358 |
move in sync with each other. (Ex: If an overlay logo is locked to a |
| 359 |
video, it will scale/move/be-transparent in sync with the video on |
| 360 |
which it is overlayed). |
| 361 |
|
| 362 |
Objects that are not linked/grouped to other objects have their |
| 363 |
properties move in sync with the target format. If the target format |
| 364 |
changes, all object positioning will change relatively to that |
| 365 |
format. |
| 366 |
|
| 367 |
Requires: |
| 368 |
GESMaterial |
| 369 |
|
| 370 |
See also: |
| 371 |
Coherent handling of Content in different formats |
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
* Handling of alpha video (i.e. transparency) |
| 376 |
|
| 377 |
Problem: |
| 378 |
Some streams will contain partial transparency (overlay |
| 379 |
logos/videos, bluescreen, ...). |
| 380 |
|
| 381 |
Those streams need to be handle-able by the user just like |
| 382 |
non-alpha videos without losing the transparency regions (i.e. it |
| 383 |
should be properly blended with the underlying regions). |
| 384 |
|
| 385 |
|
| 386 |
|
| 387 |
* Faster/Tighter interaction with GNonLin elements |
| 388 |
|
| 389 |
Problems: |
| 390 |
A lot of properties/concepts need to be duplicated at the GES level |
| 391 |
since the only way to communicate with the GNonLin elements is |
| 392 |
through publically available APIs (GObject and GStreamer APIs). |
| 393 |
|
| 394 |
The GESTrackObject for example has to duplicate exactly the same |
| 395 |
properties as NleObject for no reason. |
| 396 |
|
| 397 |
Other properties are also expensive to re-compute and also become |
| 398 |
non-MT-safe (like computing the exact 'tree' of objects at a |
| 399 |
certain position in a NleComposition). |
| 400 |
|
| 401 |
Merge the GES and GNonLin modules together into one single module, |
| 402 |
and keep the same previous API for both for backward compatibility. |
| 403 |
|
| 404 |
Add additional APIs to GNonLin which GES can use. |
| 405 |
|
| 406 |
|
| 407 |
|
| 408 |
* Media Asset Management integration |
| 409 |
|
| 410 |
(Track, Search, Browse, Push content) TBD |
| 411 |
|
| 412 |
|
| 413 |
|
| 414 |
* Templates |
| 415 |
|
| 416 |
Problem: |
| 417 |
In order to create as quickly as possible professional-looking |
| 418 |
timelines, we need to provide a way to create 'templates' which |
| 419 |
users can select and have an automatic timeline 'look' used. |
| 420 |
|
| 421 |
This will allow users to be able to quickly add their clips, set |
| 422 |
titles and have a timeline with a professional look. This is |
| 423 |
similar to the same feature that iMovie offers both on desktop and |
| 424 |
iOS. |
| 425 |
|
| 426 |
|
| 427 |
|
| 428 |
* Plugin system |
| 429 |
|
| 430 |
Problem: |
| 431 |
All of GES classes are made in such a way that creating new |
| 432 |
sources, effects, templates, formatters, etc... can be easily added |
| 433 |
either to the GES codebase itself or to applications. |
| 434 |
|
| 435 |
But in order to provide more features without depending on GES |
| 436 |
releases, limit those features to a single application, and in |
| 437 |
order to provide 'closed'/3rd party features, we need to implement |
| 438 |
a plugin system so one can add new features. |
| 439 |
|
| 440 |
Use a registry system similar to GStreamer. |