[gstreamer-bugs] [Bug 435120] cairosvgoverlay

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Sep 13 03:17:02 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=435120
  GStreamer | gst-plugins-bad | git

--- Comment #17 from olivier.aubert at liris.cnrs.fr 2010-09-13 10:16:56 UTC ---
Regarding David's arguments, I have two remarks:

- the "one logo insertion element" looks a bit narrow to me: SVG overlaying is
not just for logo insertion (even though it is a very common use). I use it to
display annotations over the video (see the screencast
http://liris.cnrs.fr/advene/screencasts/advene-svg-overlay.ogv for instance). 

Some time ago, someone wanted to overlay a grid over the video. Presto:
gst-launch videotestsrc ! rsvgoverlay data='<svg viewBox="0 0 800 600"><rect
fill="none" stroke="green" x="0" y="0" width="100%" height="100%"/><rect
fill="none" stroke="green" x="266" y="0" width="266" height="100%"/><rect
fill="none" stroke="green" x="0" y="200" width="100%" height="200"/></svg>' !
ffmpegcolorspace ! xvimagesink

It can be used to overlay bitmap images too:
gst-launch videotestsrc ! rsvgoverlay data='<svg viewBox="0 0 800 600"><image
x="0" y="0" width="100%" height="100%" xlink:href="foo.jpg" /></svg>' !
ffmpegcolorspace ! xvimagesink
We could even imagine a "bitmap" property which would generate the appropriate
SVG code as above to overlay a bitmap image, such as you requested. But this
would qualify as "complicated API", wouldn't it?

- the API with both a filename property and a data-sink is directly inspired by
the textoverlay API. And as a matter of fact, I think it is perfectly
appropriate. It can be used to overlay a static text, or it can be fed
subtitles from the subparse element. Put your SVG content into a subtitle file,
and you get graphical subtitles.

-- 
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