Hi,<br><br><div class="gmail_quote">On Sat, May 15, 2010 at 8:57 PM, Louis-Simon Houde <span dir="ltr">&lt;<a href="mailto:houdelou@hotmail.com">houdelou@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">




<div>
<pre>Thanks for you reply,<br><br>Finally, I managed to find a solution, not the least invasive though : I switched from Ubuntu 10.04 to 9.10. And now, with the same command, the color is showing. Because I&#39;m on Amazon EC2, I can switch server pretty quickly. So, on 8.04, it was freezing at &quot;System Clock&quot; step, on 10.04 no color and fine on 9.10 and 9.04. So I guess it is an Ubuntu Issue ? Or the 9.04 and 9.10 versions are more forgiving.<br>
<br>Here is the big command :<br><br>gst-launch-0.10 -v input1. ! queue ! decodebin2 ! videoscale ! video/x-raw-yuv,width=320,height=240 ! videobox right=-340 ! ffmpegcolorspace ! vmix.sink_0 input2. ! queue ! decodebin2 ! ffmpegcolorspace ! videoscale ! video/x-raw-yuv,width=320,height=240 ! vmix.sink_1 vmix. ! ffmpegcolorspace ! ffenc_flv ! ffmux_flv ! filesink location=&#39;/mnt/data/home/karaoke/www/karaoke/output/test.flv&#39; filesrc name=&#39;input1&#39; location=/mnt/data/home/karaoke/smartfox/SFS_PRO_1.6.6/Server/RedBox/webapps/SFS_RedBox/streams/SmartVideoClipPlayer_IronMan.flv filesrc name=&#39;input2&#39; location=/mnt/data/home/karaoke/smartfox/SFS_PRO_1.6.6/Server/RedBox/webapps/SFS_RedBox/streams/SmartVideoClipPlayer_TheDarkKnight.flv videomixer name=vmix background=black sink_0::xpos=0 sink_0::ypos=0 sink_0::zorder=0 sink_1::xpos=340 sink_1::ypos=0 sink_1::zorder=1<br>
<br>The point of this command I think is to show two different movie in one stream. But I must say I just copied the line from our media expert :)<br></pre></div></blockquote><div>looks like the first two ffmpegcolorspace elements are converting the images to grayscale. As they&#39;re unneeded (you&#39;re already specifying the color space in the previous caps) you can safely remove them. I modified your pipeline for my tests as follows:<br>
<br>gst-launch-0.10 -v  \<br>  input1. ! queue ! videoscale ! video/x-raw-yuv,width=320,height=240 ! videobox right=-340 ! ffmpegcolorspace ! vmix.sink_0 \<br>  input2. ! queue ! ffmpegcolorspace ! videoscale ! video/x-raw-yuv,width=320,height=240 ! vmix.sink_1 \<br>
  vmix. ! ffmpegcolorspace ! ffenc_flv ! ffmux_flv ! filesink location=&#39;test.flv&#39; \<br>  videotestsrc name=&#39;input1&#39; num-buffers=100 \<br>  videotestsrc name=&#39;input2&#39; num-buffers=100 \<br>  videomixer name=vmix background=black sink_0::xpos=0 sink_0::ypos=0 sink_0::zorder=0 sink_1::xpos=340 sink_1::ypos=0 sink_1::zorder=1<br>
<br>the effect on the output file is the same as you described. Removing the first two color space converters (unneeded AFAIK):<br><br>gst-launch-0.10 -v  \<br>  input1. ! queue ! videoscale ! video/x-raw-yuv,width=320,height=240 ! videobox right=-340 ! vmix.sink_0 \<br>
  input2. ! queue ! videoscale ! video/x-raw-yuv,width=320,height=240 ! vmix.sink_1 \<br>  vmix. ! ffmpegcolorspace ! ffenc_flv ! ffmux_flv ! filesink location=&#39;test.flv&#39; \<br>  videotestsrc name=&#39;input1&#39; num-buffers=100 \<br>
  videotestsrc name=&#39;input2&#39; num-buffers=100 \<br>  videomixer name=vmix background=black sink_0::xpos=0 sink_0::ypos=0 sink_0::zorder=0 sink_1::xpos=340 sink_1::ypos=0 sink_1::zorder=1<br><br>it works nicely. It remains to understand why the color space converters are defaulting to grayscale :\.<br>
<br>Regards.<br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><pre></pre>Thanks !<br><br><hr>Date: Sat, 15 May 2010 09:44:04 +0300<br>
From: <a href="mailto:gibrovacco@gmail.com" target="_blank">gibrovacco@gmail.com</a><br>To: <a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>Subject: Re: [gst-devel] Black-and-white output<div>
<div></div><div class="h5"><br><br>Hi,<br><br><div>On Wed, May 12, 2010 at 7:11 PM, Louis-Simon Houde <span dir="ltr">&lt;<a href="mailto:houdelou@hotmail.com" target="_blank">houdelou@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote style="padding-left: 1ex;">




<div>
Hello,<br><br>The question might sound completely silly for you but does gstreamer needs a video card to generate video output on command line with its gst-launch command ?<br></div></blockquote><div><br>it shouldn&#39;t matter as long as you&#39;re not rendering the output on the card itself.. can you please post the gst-launch command you&#39;re using?<br>

<br>Regards<br> </div><blockquote style="padding-left: 1ex;"><div><br>I&#39;m asking this question because we use gst-launch to generate video output. On one of the server, with identical command, the output is black-and-white. One of the server doesn&#39;t have any video card because it is hosted on Amazon EC2.<br>

<br>Ubuntu versions are different also so it might be another cue. But it is the same gstreamer version on both servers.<br><br>Thanks<br><div>                                               <br><hr>10 000 $ de magasinage avec Hotmail. <a href="http://go.microsoft.com/?linkid=9729716" target="_blank">Inscrivez-vous!</a></div>

</div>
<br>------------------------------------------------------------------------------<br>
<br>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>                                               <br></div></div><div class="hm"><hr>30 jours de prix : Hotmail vous simplifie la vie! <a href="http://go.microsoft.com/?linkid=9729714" target="_blank">Inscrivez-vous!</a></div></div>

<br>------------------------------------------------------------------------------<br>
<br>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>