Need advice with using funnel on multi-subtitle stream.
Wonchul Lee
chul0812 at gmail.com
Thu Aug 15 17:00:13 PDT 2013
Tim,
>Out of curiosity - do you really need to get all subs at the same time?
>Why? (Instead of one selected one)
I am considering showing up two or more subtitle concurrently.
That's the reason why I need to get multiple subs at the same time.
>I suppose it's correct and required for some use cases, but might be
>quite expensive/noisy, if caps change before almost every buffer.
I have more questions about it.
1. If I add this caps event code, it will not affect video/audio data flow.
Is it correct?
2. Can I guarantee caps and buffer are always matched?
I push buffer right after sent caps event by using gst_pad_push_event
function.
Thanks,
Wonchul Lee
2013/8/15 Tim-Philipp Müller <t.i.m at zen.co.uk>
> On Wed, 2013-08-14 at 15:54 +0900, Wonchul Lee wrote:
>
> Hi,
>
> > I am trying to use funnel when playing multiple internal subtitle
> > stream(mkv). I intended to get out of subtitle data from gstreamer and
> > treat it on application. Thus I used funnel instead of input-selector
> > and link it with appsink.
>
> Out of curiosity - do you really need to get all subs at the same time?
> Why? (Instead of one selected one)
>
> > mkvdemux subtitle pad1 \
> > mkvdemux subtitle pad2 - funnel - appsink
> > mkvdemux subtitle pad3 /
> >
> >
> >
> > However there was a problem with output caps of funnel.
> > Lets assume, the caps of subtitle pad 1 is text/x-raw and subtitle pad
> > 2 is application/x-ass.
> > Then funnel's srcpad and appsink's sinkpad negotiated with text/x-raw
> > mime-type.
> > In addition, when get the GstSample data from appsink by using
> > pull-sample action,
> > The caps info in GstSample is always text/x-raw, even actual data is
> > application/x-ass.
> >
> >
> > Thus, I pushed a caps event on funnel's srcpad before push the buffer
> > data.
> > Then I saw the caps info in GstSample is correctly changed.
> > However I am not sure that this approach is correct.
> > Please give me an advice for it.
>
> I suppose it's correct and required for some use cases, but might be
> quite expensive/noisy, if caps change before almost every buffer.
>
> Cheers
> -Tim
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130816/e347fe3a/attachment.html>
More information about the gstreamer-devel
mailing list