<div dir="ltr">Hello,<div>I writing a gstreamer plugin that render subtitles based on a karaoke custom format</div><div style>The format support full color subtitle with alpha and image rendering. I have look at </div><div style>
gsttextoverlay plugin, but it's seems quite complicated to build pango markup</div><div style>to make it work. So I write a new plugin inspired by gsttextoverlay.</div><div style><br></div><div style>I didn't use the GstBaseTransform element but GstElement as base class</div>
<div style>The source code can be found at : <a href="http://stoyunda.shikami.org/browser/gstreamer-toyunda">http://stoyunda.shikami.org/browser/gstreamer-toyunda</a></div><div style>you can download the file (gsttoyunda.c) with the download link at the bottom of the page</div>
<div style>if you want.</div><div style><br></div><div style>Gstreamer version : 0.10.36</div><div style><br></div><div style>I have two majors issues :</div><div style><br></div><div style>I didn't figure to understand how to make it work with a videoscale plugin placed before</div>
<div style>it in the pipeline. I need to rescale the font size and other stuff to have a nice rendering, if the</div><div style>windows size change or set to fullscreen.</div><div style><br></div><div style>eg : filesrc location="somefile.avi" ! decodebin2 ! videoscale ! toyunda subfile="somesub.txt" ! ffmpegcolorspace ! ximagesink</div>
<div style><br></div><div style>Actualy this doesn't work, the video isn't resized when I change the windows size.</div><div style><br></div><div style>Another issue is with rendering of text itself.</div><div style>
White text look fine, but when the text is colored the text appear aliased, it's really ugly.</div><div style>I can't figure if it's a cairo/pango or gstComposition issue, but it's seem gsttextoverlay</div>
<div style>doesn't have this prob, and I don't see what I could be missing.</div><div style><br></div><div style>I have other question but it's not really a prob.</div><div style>Is there a way to tell the sink to use the hardware to make the composition ? it's really slow</div>
<div style>on hight res video to blend lot of text and image using the CPU when the GPU can do</div><div style>it really fast.</div><div><div><br></div>-- <br>Sylvain "Skarsnik" Colinet<br><br>Victory was near but the power of the ring couldn't be undone
</div></div>