Thanks Matt,<div><br></div><div>What if I want to do the same thing with an RTSP stream? I am using the test-launch.c app and passing my plugin as argument i.e.:</div><div><br></div><div><span style="font-size:11.0pt;line-height:115%;font-family:"Calibri","sans-serif""><font color="#990000">./TEST
"( v4l2src always-copy=FALSE input-src=composite chain-ipipe=true !
video/x-raw-yuv,format=(fourcc)NV12, width=640, height=480 ! queue ! dmaiaccel
! dmaienc_h264 encodingpreset=2 ratecontrol=2 intraframeinterval=23
idrinterval=46 targetbitrate=3000000 ! rtph264pay name=pay0 pt=96 )"</font></span></div><div><font face="Calibri, sans-serif"><span style="font-size:15px;line-height:17px"><br></span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px;line-height:17px">So the above plugin is for RTSP stream which can be viewed using vlc on on another machine. This works fine. </span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px;line-height:17px">Now, neither I can tee with this plugin and record nor I can rescale. There is some video file being generated but it cannot be opened. The plugin I use to stream (RTSP) and record is as given below, but this does not work:</span></font></div>
<div><font face="Calibri, sans-serif"><span style="font-size:15px;line-height:17px"><br></span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px;line-height:17px"><div><font color="#990000">./TEST "( v4l2src always-copy=FALSE input-src=composite chain-ipipe=true ! video/x-raw-yuv,format=(fourcc)NV12, width=640, height=480 ! queue ! dmaiaccel ! dmaienc_h264 encodingpreset=2 ratecontrol=2 intraframeinterval=23 idrinterval=46 targetbitrate=3000000 ! tee name=x ! queue ! rtph264pay name=pay0 pt=96 x. ! queue ! qtmux! filesink location=test1.mp4 sync=false enable-last-buffer=false )"</font></div>
<div><font color="#990000"><br></font></div><div>Any help as to how would I go about recording and rescaling with this plugin.  The test-launch uses Gst RTSP server internally. </div><div><br></div><div>Thanks,<br>Maz</div>
</span></font><br><div class="gmail_quote">On 26 September 2012 19:05, Matt Pekar <span dir="ltr"><<a href="mailto:mpekar@raineyelectronics.com" target="_blank">mpekar@raineyelectronics.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For this case I think you'd need to encode it twice, once at 640x480 and again at 320x240.  So you'd have to move your tee up the pipeline:<div><br></div><div>gst-launch v4l2src ! tee name=t. ! <encode@640x480> ! <udpsink> t. ! <encode@320x240> ! <filesink><br>

<div><br></div><div> I have no clue if the DM365 can do that or not.<div><div class="h5"><br><br><div class="gmail_quote">
On Wed, Sep 26, 2012 at 4:51 AM, Mazahir Poonawalla <span dir="ltr"><<a href="mailto:mazahir.poonawalla@ideaforge.co.in" target="_blank">mazahir.poonawalla@ideaforge.co.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi Matt,<div><br></div><div>Thanks for the help, but this does not work.</div><div>My pipeline is as follows:</div><div><br></div><div><span style="font-size:11.0pt;line-height:115%;font-family:"Calibri","sans-serif"">gst-launch
-v -e v4l2src always-copy=FALSE input-src=composite chain-ipipe=true !
video/x-raw-yuv,format=\(fourcc\)NV12, width=640, height=480 ! queue !
dmaiaccel ! dmaienc_h264 encodingpreset=2 ratecontrol=2 intraframeinterval=23
idrinterval=46 targetbitrate=3000000 ! tee name=x ! queue ! rtph264pay !
udpsink port=3000 host=192.168.1.102 sync=false enable-last-buffer=false x. !
queue ! qtmux! filesink location=test1.mp4 sync=false enable-last-buffer=false</span></div><div><font face="Calibri, sans-serif"><span style="font-size:15px;line-height:17px"><br></span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px;line-height:17px">So basically one thread is for streaming and other for recording on a file. The default composite input video is 640*480. What if I want to record the same size and stream at 320*240. Is it possible? I am running this on Leopardboard DM365.</span></font></div>



<div><font face="Calibri, sans-serif"><span style="font-size:15px;line-height:17px"><br></span></font></div><div><font face="Calibri, sans-serif"><span style="font-size:15px;line-height:17px">Thanks,<br>Maz<br></span></font><div>


<div><br>
<div class="gmail_quote">On 24 September 2012 18:41, Matt Pekar <span dir="ltr"><<a href="mailto:mpekar@raineyelectronics.com" target="_blank">mpekar@raineyelectronics.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



You'll want to use the videoscale element along with a caps element:<div><br></div><div>gst-launch videotestsrc is-live=TRUE num-buffers=90 ! tee name=t ! queue2 ! videoscale ! ffmpegcolorspace ! video/x-raw-rgb,width=640,height=480 ! ximagesink sync=false t. ! queue2 ! videoscale ! ffmpegcolorspace ! video/x-raw-yuv,width=320,height=240 ! theoraenc ! matroskamux ! filesink location=/tmp/test.mkv</div>




<div><br></div><div>Make sure to add queue elements on your tee so threads don't block.</div><div><br></div><div><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-videoscale.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-videoscale.html</a></div>




<div><br><br><div class="gmail_quote"><div><div>On Mon, Sep 24, 2012 at 1:40 AM, Mazahir Poonawalla <span dir="ltr"><<a href="mailto:mazahir.poonawalla@ideaforge.co.in" target="_blank">mazahir.poonawalla@ideaforge.co.in</a>></span> wrote:<br>




</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi All,<div><br></div><div>I am using a plugin along with a "tee" element to stream live capture as well as record the video. I would like to know how should I specify two different video frame sizes for the two tasks (i.e. streaming and recording). Lets say for example, the incoming video is 720p which I would want to record at that size, but I would want to stream it at only 640*480. </div>





<div><br></div><div>Any help?</div><div><br clear="all"><div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Thank you & Regards,</span></div><p style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif;margin:0px">





<u></u></p><p style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif;margin:0px"><b>Maz</b></p>
</div>
<br></div></div>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">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>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">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>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><p style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif;margin:0px">Thank you & Regards,<u></u><u></u></p>



<p style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif;margin:0px"><b>Mazahir Poonawalla</b><u></u><u></u></p><p style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif;margin:0px">
<span style="font-size:9pt">ideaForge Technology Pvt. Ltd. | Board: <a href="tel:%2B91%2022%202767%200001" value="+912227670001" target="_blank">+91 22 2767 0001</a>; </span><span style="font-size:12px"><a href="tel:%2B91%2022%202767%200707" value="+912227670707" target="_blank">+91 22 2767 0707</a></span> <span style="font-size:9pt">| <a href="mailto:mazahir.poonawalla@ideaforge.co.in" style="color:rgb(17,85,204)" target="_blank"><span style="color:blue">mazahir.poonawalla@ideaforge.co.in</span></a> |<a href="http://www.ideaforge.co.in/" style="color:rgb(17,85,204)" target="_blank"><span style="color:blue">www.ideaforge.co.in</span></a><u></u><u></u></span></p>



<font color="#d60093" face="Wingdings"><span style="font-size:11px"><br></span></font><p style="margin:0px"><b style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:Webdings;color:green">P</span></b><b style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:Webdings"> </span></b><b style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;color:green">Please consider the environment before printing this e-mail</span></b></p>



<br>
</font></span></div>
</blockquote></div><br>
</div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><p style="margin:0px;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Thank you & Regards,<u></u><u></u></p>
<p style="margin:0px;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><b>Mazahir Poonawalla</b><u></u><u></u></p><p style="margin:0px;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="font-size:9pt">ideaForge Technology Pvt. Ltd. | Board: +91 22 2767 0001; </span><span style="font-size:12px">+91 22 2767 0707</span> <span style="font-size:9pt">| <a href="mailto:mazahir.poonawalla@ideaforge.co.in" style="color:rgb(17,85,204)" target="_blank"><span style="color:blue">mazahir.poonawalla@ideaforge.co.in</span></a> |<a href="http://www.ideaforge.co.in/" style="color:rgb(17,85,204)" target="_blank"><span style="color:blue">www.ideaforge.co.in</span></a><u></u><u></u></span></p>
<font color="#d60093" face="Wingdings"><span style="font-size:11px"><br></span></font><p style="margin:0px;background-color:rgb(255,255,255)"><b style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:Webdings;color:green">P</span></b><b style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;font-family:Webdings"> </span></b><b style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><span style="font-size:9pt;color:green">Please consider the environment before printing this e-mail</span></b></p>
<br>
</div>