how to override the subtitleoverlay bin in playbin2
bcxa sz
bcxa.sz at gmail.com
Thu Oct 13 20:53:18 PDT 2011
Reply with new progress.
Finanally, I select to use playbin2 'text-sink' property to override
the gstreamer suboverlay bin. And I let my video decoder element to
send video width&height information to my own textoverlay element
through customerized event (or set property) since video decoder
element and textoverlay is not in the same chain now.
On Fri, Oct 7, 2011 at 6:28 PM, bcxa sz <bcxa.sz at gmail.com> wrote:
> On Thu, Oct 6, 2011 at 12:58 AM, Mike Mitchell
> <mike.mitchell at panometric.net> wrote:
>> BCXA,
>> Playbin is an autoplugger that just creates valid pipelines intelligently
>> for you. With your requirement you have outgrown those training wheels. If
>> you construct the pipeline yourself you will be able to replace the
>> subtitling with your own.
>> One way to do this is to have a good map of your existing pipeline. I find
>> the script below priceless in exploring Gstreamer capabilities because it
>> will graphically what sort of fancy pipeline playbin and other smart
>> elements like autosink do. Then you can reconstruct the 90% you like
>> manually, and plug in your replacements.
>>
>
> Yes. But playbin2 is so popular and avoid customer to study how to
> construct the pipeline and just use standard gstreamer component to
> achieve the target. That's why we preferred to use playbin2.
>
>> Mike Mitchell
>>
>> #!/bin/bash
>> export GST_DEBUG_DUMP_DOT_DIR=$PWD/gstdot
>> rm $GST_DEBUG_DUMP_DOT_DIR/*.dot $GST_DEBUG_DUMP_DOT_DIR/*.png
>> # INSERT YOUR gst-launch HERE
>> # Debug Code shows result file and graphic of pipeline.
>> echo "Press ENTER to continue ..."
>> read WAIT
>> for f in $GST_DEBUG_DUMP_DOT_DIR/* ;
>> do
>> dot -T png $f >$f.png;
>> done
>> eog $GST_DEBUG_DUMP_DOT_DIR/*.png
>> exit
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
More information about the gstreamer-devel
mailing list