<div dir="ltr"><div>I faced this issue earlier, the only difference being that I added video meta-data into hardware decoder plugin (vpudec) instead of h264parse.  I don't have the proper clue of the real issue, having a consumer of the output buffer downstream avoids it.  Here are some results that could help<br><br></div><div>.. h264parse ! vpudec ! videoconvert ! fakesink - error<br><br>.. h264parse ! vpudec ! videoconvert ! video/-raw, format =I420 ! fakesink  -the output of vpudec is NV12 format. Force video convert to avoid bypass mode - No error<br><br></div><div>.. h264patrse ! vpudec ! videorga ! fakesink - No error , videorga is hardware post process element, checks for the video meta data and copies to the output buffer, so I don't get the issue and is my default use case. I didn't investigated further.<br><br>You could give a similar try to your pipeline, though I am not sure as the the meta data is added in h264parse element. Or just try this if the same error comes<br>gst-launch-1.0 filesrc location=input.ts ! tsdemux ! h264parse ! fakesink<br><br></div><div>Then you could keep adding element..<br></div><div><br></div><div>Regards,<br></div><div>Sudip<br></div><div><br></div><div><br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 24 November 2016 at 14:38, parithi [via GStreamer-devel] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4680857&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        Sudip,
<br><br>Even I don't have any problem running this pipeline without meta data(with tag "video"). But problem arises when I add meta data with ouput buffer of h264_parse. The decoder element should copy this meta data on it's output buffer and pass it to downstream element.
<br><br>avdec_h264 is receiving all meta data. I've checked this. Problem arises when it tries to add the meta data to its output buffer. The pipeline crashes at gst_buffer_add_meta(), since the buffer passed from avdec_h264 is not in writable mode.
<br>call stack:
<br>------------------------------<wbr>--
<br>#2 gst_buffer_add_meta
<br>#3 gst_buffer_add_h264_meta
<br>#4 gst_h264_meta_transform
<br>#5 foreach_metadata
<br>#6 gst_buffer_foreach_meta
<br>#7 gst_video_decoder_finish_frame
<br>#8 gst_ffmpegviddec_frame
<br>------------------------------<wbr>----
<br>If the meta tag is "video" the frame work will do the copying, otherwise we have to retrieve it from input buffer and append it to the outut buffer.
<br>I tried both ways, but the behaviour is same.  
<br><br>Please let me know if you have any suggestion to resolve this issue.
<br><br>Regards,
<br>Parithi

        
        
        
        <br>
        <br>
        <hr color="#cccccc" size="1" noshade>
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><span class="">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </span><a href="http://gstreamer-devel.966125.n4.nabble.com/avdec-h264-is-not-copying-metadata-to-the-outputbuffer-tp4680842p4680853.html" target="_blank" rel="nofollow" link="external">http://gstreamer-devel.966125.<wbr>n4.nabble.com/avdec-h264-is-<wbr>not-copying-metadata-to-the-<wbr>outputbuffer-<wbr>tp4680842p4680853.html</a>
        </div><div class="HOEnZb"><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                To start a new topic under GStreamer-devel, email <a href="/user/SendEmail.jtp?type=node&node=4680857&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
                To unsubscribe from GStreamer-devel, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></div></div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/avdec-h264-is-not-copying-metadata-to-the-outputbuffer-tp4680842p4680857.html">Re: avdec_h264 is not copying metadata to the outputbuffer</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>