<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:CourierPS;
        panose-1:2 7 6 9 2 2 5 2 4 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>For your reference, I used following:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>$ gst-launch-0.10 &#8211;v v4l2src device=/dev/video0 ! queue ! \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>ffmpegcolorspace ! videoscale ! video/x-raw-yuv,\<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>width=640,height=480 ! queue ! mux. \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>alsasrc device=hw:1,0 ! audio/x-raw-int,rate=32000,\<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>channels=2,depth=16 ! queue ! audioconvert ! mux. \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>avimux name=mux ! filesink location=./avtest-ch1.avi<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>( capturing raw video+audio, from Channel-1,<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>and save the A/V data into an .avi file )<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>$ gst-launch-0.10 avimux name=mux ! filesink location=avcapCh2.avi \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>v4l2src device=/dev/video1 ! video/x-raw-yuv,width=320,<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>height=240,framerate=\(fraction\)30000/1001 ! \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>ffenc_mpeg4 ! queue ! mux. alsasrc device=hw:2,0 ! \<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>audio/x-raw-int,rate=32000,channels=2,depth=16 !<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>audioconvert ! lame ! mux.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>( capturing video+audio, from Channel-2, compressing<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:CourierPS'>the A/V in MPEG4+MP3, and save the compressed data<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:CourierPS'>into an .avi file )<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>and they worked well for our Model 811 (</span><a href="http://www.sensoray.com/products/811.htm">http://www.sensoray.com/products/811.htm</a>) <span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>and Model 911 (</span><a href="http://www.sensoray.com/products/911.htm">http://www.sensoray.com/products/911.htm</a>) <span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>A/V capturing.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Charlie X. Liu @ Sensoray Co.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> gstreamer-devel-bounces+charlie=sensoray.com@lists.freedesktop.org [mailto:gstreamer-devel-bounces+charlie=sensoray.com@lists.freedesktop.org] <b>On Behalf Of </b>Rick T<br><b>Sent:</b> Tuesday, January 24, 2012 9:35 AM<br><b>To:</b> Discussion of the development of and with GStreamer<br><b>Subject:</b> Re: Help with syntax<o:p></o:p></span></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>I added the line you said was missing and I get an error<br>&quot;erroneous pipeline: link without source element&quot;<br>Do you have an example of the working line you suggested I add in?<br><br><br>gst-launch-0.10 v4l2src ! 'video/x-raw-yuv,width=640,height=480,framerate=25/1' ! \<br>timeoverlay halignment=right valignment=bottom shaded-background=true ! \<br>clockoverlay halignment=left valignment=bottom text=&quot;M/D/Y:&quot; shaded-background=true time-format=&quot;%m/%d/%Y %H:%M:%S&quot; ! \<br>tee name=t_vid ! queue ! xvimagesink sync=false t_vid. ! queue ! videorate ! \<br>'video/x-raw-yuv,framerate=25/1' ! xvidenc ! queue ! mux. ! \<br>audiotestsrc num-buffers=440 ! audioconvert \<br>&nbsp;audioconvert ! 'audio/x-raw-int,rate=44100,channels=2' \<br>! lame ! queue ! mux. \<br>avimux name=mux ! filesink location=testavi.avi<o:p></o:p></p><div><p class=MsoNormal>On Tue, Jan 24, 2012 at 5:06 AM, Stefan Sauer &lt;<a href="mailto:ensonic@hora-obscura.de">ensonic@hora-obscura.de</a>&gt; wrote:<o:p></o:p></p><div><div><p class=MsoNormal>On 01/20/2012 04:59 PM, Rick T wrote: <o:p></o:p></p><pre><code>Greetings All <o:p></o:p></code></pre><pre><code><o:p>&nbsp;</o:p></code></pre><pre><code>I'm having trouble getting the following line to work<o:p></o:p></code></pre><pre><code>I get an error &quot;WARNING: erroneous pipeline: link without source element&quot;<o:p></o:p></code></pre><pre><code><o:p>&nbsp;</o:p></code></pre><pre><code>I think I narrowed it down to the audio section but I'm not sure how to fix it can some one assist?<o:p></o:p></code></pre><pre><code><o:p>&nbsp;</o:p></code></pre><pre><code><o:p>&nbsp;</o:p></code></pre><pre><code><o:p>&nbsp;</o:p></code></pre><pre><code>Thanks&nbsp; See code below<o:p></o:p></code></pre><pre><code><o:p>&nbsp;</o:p></code></pre><pre><code>gst-launch-0.10 v4l2src ! 'video/x-raw-yuv,width=640,height=480,framerate=25/1' ! \<o:p></o:p></code></pre><pre><code>timeoverlay halignment=right valignment=bottom shaded-background=true ! \<o:p></o:p></code></pre><pre><code>clockoverlay halignment=left valignment=bottom text=&quot;M/D/Y:&quot; shaded-background=true time-format=&quot;%m/%d/%Y %H:%M:%S&quot; ! \<o:p></o:p></code></pre><pre><code>tee name=t_vid ! queue ! xvimagesink sync=false t_vid. ! queue ! videorate ! \<o:p></o:p></code></pre><pre><code>'video/x-raw-yuv,framerate=25/1' ! xvidenc ! queue ! mux. ! \<o:p></o:p></code></pre></div><p class=MsoNormal>this part above is wrong. You miss your audiosrc element between the 'mux.' and '!'.<br><br>Stefan<br><br><br><o:p></o:p></p><div><pre><code> audioconvert ! 'audio/x-raw-int,rate=44100,channels=2' \<o:p></o:p></code></pre><pre><code>! lame ! queue ! mux. \<o:p></o:p></code></pre><pre><code>avimux name=mux ! filesink location=testavi.avi<o:p></o:p></code></pre><pre><o:p>&nbsp;</o:p></pre><pre><code><o:p>&nbsp;</o:p></code></pre></div><pre><o:p>&nbsp;</o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>gstreamer-devel mailing list<o:p></o:p></pre><pre><a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><o:p></o:p></pre><pre><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><o:p></o:p></pre><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><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><o:p></o:p></p></div><p class=MsoNormal><br><br clear=all><br>-- <br>-- <br>|<o:p></o:p></p></div></body></html>