<div dir="auto"><div>Unfortunately, this still doesn't work. The pipeline you wrote gives the error:</div><div dir="auto"><br></div><div dir="auto">WARNING: erroneous pipeline: could not link v4l2src0 to videoconvert0</div><div dir="auto"><br></div><div dir="auto"><br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On May 3, 2017 02:29, "Arjen Veenhuizen [via GStreamer-devel]" <<a href="/user/SendEmail.jtp?type=node&node=4682903&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:<br type="attribution"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        x264enc only takes the following formats on its sink pad:
<br><pre>gst-inspect-1.0 x264enc
format: { (string)Y444, (string)Y42B, (string)I420, (string)YV12, (string)NV12 }</pre><br>Try to insert a videoconvert between the caps and the encoder and don't forget to insert an h264parse between encoder and mpegtsmux. Furthermore, your pipeline could use a queue in front of the encoder.
<br><br>All in all, your pipeline should look like this:
<br>gst-launch-1.0 -e -v v4l2src device="/dev/video0" ! 'video/x-raw,format=YUYV,<wbr>framerate=25/1,width=640,<wbr>height=360' ! videoconvert ! queue ! x264enc bitrate=498 ! h264parse ! mpegtsmux ! filesink location=video1.ts 
<br><br>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="quoted-text">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://gstreamer-devel.966125.n4.nabble.com/Streaming-webcam-to-ts-file-link-error-tp4682888p4682895.html" target="_blank" rel="nofollow" link="external">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Streaming-<wbr>webcam-to-ts-file-link-error-<wbr>tp4682888p4682895.html</a>
        </div><div class="elided-text">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Streaming webcam to .ts file: link error, <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></blockquote></div><br></div></div></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Streaming-webcam-to-ts-file-link-error-tp4682888p4682903.html">Re: Streaming webcam to .ts file: link error</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>