<div dir="ltr"><div>Tim,</div><div><br></div>>Out of curiosity - do you really need to get all subs at the same time?<br>>Why? (Instead of one selected one)<div><br>I am considering showing up two or more subtitle concurrently.<br>
<div class="gmail_extra">That's the reason why I need to get multiple subs at the same time.<br><br>>I suppose it's correct and required for some use cases, but might be<br>>quite expensive/noisy, if caps change before almost every buffer.<br>
<br>I have more questions about it.</div><div class="gmail_extra"><br></div><div class="gmail_extra">1. If I add this caps event code, it will not affect video/audio data flow. Is it correct?</div><div class="gmail_extra">
<br></div><div class="gmail_extra">2. Can I <span class="" tabindex="0" title="보조사전 보기" lang="en" style="font-family:Arial;font-size:13px;color:rgb(0,0,0);display:inline-block;line-height:17px">guarantee caps and buffer are always matched?</span></div>
<div class="gmail_extra">I push buffer right after sent caps event by using gst_pad_push_event function.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks,<br>Wonchul Lee</div><div class="gmail_extra">
<br><div class="gmail_quote">2013/8/15 Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Wed, 2013-08-14 at 15:54 +0900, Wonchul Lee wrote:<br>
<br>
Hi,<br>
<div class="im"><br>
> I am trying to use funnel when playing multiple internal subtitle<br>
> stream(mkv). I intended to get out of subtitle data from gstreamer and<br>
> treat it on application. Thus I used funnel instead of input-selector<br>
> and link it with appsink.<br>
<br>
</div>Out of curiosity - do you really need to get all subs at the same time?<br>
Why? (Instead of one selected one)<br>
<div class="im"><br>
> mkvdemux subtitle pad1 \<br>
> mkvdemux subtitle pad2 - funnel - appsink<br>
> mkvdemux subtitle pad3 /<br>
><br>
><br>
><br>
> However there was a problem with output caps of funnel.<br>
> Lets assume, the caps of subtitle pad 1 is text/x-raw and subtitle pad<br>
> 2 is application/x-ass.<br>
> Then funnel's srcpad and appsink's sinkpad negotiated with text/x-raw<br>
> mime-type.<br>
> In addition, when get the GstSample data from appsink by using<br>
> pull-sample action,<br>
> The caps info in GstSample is always text/x-raw, even actual data is<br>
> application/x-ass.<br>
><br>
><br>
> Thus, I pushed a caps event on funnel's srcpad before push the buffer<br>
> data.<br>
> Then I saw the caps info in GstSample is correctly changed.<br>
> However I am not sure that this approach is correct.<br>
> Please give me an advice for it.<br>
<br>
</div>I suppose it's correct and required for some use cases, but might be<br>
quite expensive/noisy, if caps change before almost every buffer.<br>
<br>
Cheers<br>
-Tim<br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div></div></div>