[Bug 743874] Text overlay not working on fresh GES

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Feb 2 09:43:21 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=743874
  GStreamer | gst-editing-services | git master

--- Comment #2 from Kyrylo V. Polezhaiev <polezhaiev at ukr.net> 2015-02-02 17:43:18 UTC ---
Hi, Thibault!

Thank you for your quick reply! Sure.

        ...
        project = ges_project_new(uri); /// URI of XGES file
        GESTimeline *timeline =
GES_TIMELINE(ges_asset_extract(GES_ASSET(project), &error));
        if (error)
        ...
        /// I handle error here
        ...
        else
        {
            pipeline = ges_pipeline_new();
            ges_pipeline_set_timeline(pipeline, timeline);
            gchar *uri = g_strdup_printf("file://" RAMFS_PATH "t%"
G_GUINT64_FORMAT ".webm", operation_identifier); /// Yet another URI: .webm
file where output should be directed
            ges_pipeline_set_render_settings(pipeline, uri,
GST_ENCODING_PROFILE(encoding_profile)); /// WebM with vp8 and Vorbis
            g_free(uri);
            ges_pipeline_set_mode(pipeline, GES_PIPELINE_MODE_RENDER);
            ...
            /// Here I attach some stuff to bus to handle errors, eos, etc.
            ...
            gst_element_set_state(GST_ELEMENT(pipeline), GST_STATE_PLAYING);
            ...

I use only one video file (file:///opt/cvd/audi.avi), raw uncompressed avi
video, without sound. My XGES doesn't contain any encoding profile (cause I
assign one manually):

<ges version='0.1'>
  <project properties='properties;' metadatas='metadatas;'>
    <encoding-profiles>
    </encoding-profiles>
    <ressources>
      <asset id='file:///opt/cvd/audi.avi' extractable-type-name='GESUriClip'
properties='properties, supported-formats=(int)4,
duration=(guint64)53760000000;' metadatas='metadatas;' />
      <asset id='diagonal-tr' extractable-type-name='GESTransitionClip'
properties='properties;' metadatas='metadatas,
description=(string)GES_VIDEO_STANDARD_TRANSITION_TYPE_DIAGONAL_TR;' />
      <asset id='GESTextOverlayClip' extractable-type-name='GESTextOverlayClip'
properties='properties;' metadatas='metadatas;' />
    </ressources>
    <timeline properties='properties, auto-transition=(boolean)true,
snapping-distance=(guint64)0;' metadatas='metadatas,
duration=(guint64)3000000000;'>
      <track caps='video/x-raw' track-type='4' track-id='0'
properties='properties, async-handling=(boolean)false,
message-forward=(boolean)false, caps=(string)video/x-raw,
restriction-caps=(string)"video/x-raw\,\ width\=\(int\)720\,\
height\=\(int\)576\,\ framerate\=\(fraction\)25/1";' metadatas='metadatas;'/>
      <track caps='audio/x-raw' track-type='2' track-id='1'
properties='properties, async-handling=(boolean)false,
message-forward=(boolean)false, caps=(string)audio/x-raw,
restriction-caps=(string)"NULL";' metadatas='metadatas;'/>
      <layer priority='0' properties='properties,
auto-transition=(boolean)true;' metadatas='metadatas, volume=(float)1;'>
        <clip id='3' asset-id='GESTextOverlayClip'
type-name='GESTextOverlayClip' layer-priority='0' track-types='4'
start='0000000000' duration='1000000000' inpoint='0' rate='0'
properties='properties, name=(string)textoverlay0, text=(string)Just;' />
        <clip id='4' asset-id='GESTextOverlayClip'
type-name='GESTextOverlayClip' layer-priority='0' track-types='4'
start='1000000000' duration='1000000000' inpoint='0' rate='0'
properties='properties, name=(string)textoverlay1, text=(string)Like;' />
        <clip id='5' asset-id='GESTextOverlayClip'
type-name='GESTextOverlayClip' layer-priority='0' track-types='4'
start='2000000000' duration='1000000000' inpoint='0' rate='0'
properties='properties, name=(string)textoverlay2, text=(string)Cucumber;' />
      </layer>
      <layer priority='1' properties='properties,
auto-transition=(boolean)true;' metadatas='metadatas, volume=(float)1;'>
        <clip id='0' asset-id='file:///opt/cvd/audi.avi' type-name='GESUriClip'
layer-priority='1' track-types='4' start='0' duration='2000000000' inpoint='0'
rate='0' properties='properties, name=(string)uriclip0, mute=(boolean)false,
is-image=(boolean)false;' />
        <clip id='1' asset-id='diagonal-tr' type-name='GESTransitionClip'
layer-priority='1' track-types='4' start='1000000000' duration='1000000000'
inpoint='0' rate='0' properties='properties, name=(string)transitionclip0;' />
        <clip id='2' asset-id='file:///opt/cvd/audi.avi' type-name='GESUriClip'
layer-priority='1' track-types='4' start='1000000000' duration='2000000000'
inpoint='10000000000' rate='0' properties='properties, name=(string)uriclip1,
mute=(boolean)false, is-image=(boolean)false;' >
        </clip>
      </layer>
    </timeline>
  </project>
</ges>

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list