Hi,<br><br><div class="gmail_quote">2010/4/29 Josep Creus Portolés <span dir="ltr">&lt;<a href="mailto:creus@ac.upc.edu">creus@ac.upc.edu</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello there,<br>
<br>
I&#39;d used this script about 3 or 4 months ago (Ubuntu 9.10 updated<br>
regularly):<br>
<br>
# First Pass<br>
gst-launch-0.10 filesrc location=&quot;video1.mpg&quot; \<br>
{ ! decodebin ! deinterlace ! videoscale method=2 ! videocrop left=6<br>
right=8 top=2 bottom=6 ! video/x-raw-yuv, width=454, height=358 !<br>
videobox border-alpha=0 alpha=1 right=&quot;-266&quot; top=&quot;-124&quot; bottom=&quot;-94&quot; !<br>
videomixer name=mix ! ffmpegcolorspace ! xvidenc pass=1<br>
statsfile=&quot;videoproc.log&quot; trellis=true ! fakesink } \<br>
{ filesrc location=&quot;video2.mpg&quot; ! decodebin ! deinterlace ! videoscale<br>
method=2 ! videocrop left=6 right=8 top=2 bottom=6 ! video/x-raw-yuv,<br>
width=268, height=224  ! videobox border-alpha=0 alpha=1 left=&quot;-452&quot;<br>
top=&quot;-138&quot; bottom=&quot;-214&quot; ! mix. } \<br>
{ multifilesrc location=&quot;background.png&quot; num-buffers=$1 ! image/png,<br>
framerate=25/1 ! pngdec ! ffmpegcolorspace ! mix. }<br>
<br>
# Second Pass<br>
gst-launch-0.10 filesrc location=&quot;video1.mpg&quot; \<br>
{ ! decodebin ! deinterlace ! videoscale method=2 ! videocrop left=6<br>
right=8 top=2 bottom=6 ! video/x-raw-yuv, width=454, height=358 !<br>
videobox border-alpha=0 alpha=1 right=&quot;-266&quot; top=&quot;-124&quot; bottom=&quot;-94&quot; !<br>
videomixer name=mix ! ffmpegcolorspace ! xvidenc pass=2<br>
statsfile=&quot;2cam.log&quot; bitrate=140000 trellis=true ! avimux ! filesink<br>
location=&quot;videoproc.avi&quot; } \<br>
{ filesrc location=&quot;video2.mpg&quot; ! decodebin ! deinterlace ! videoscale<br>
method=2 ! videocrop left=6 right=8 top=2 bottom=6 ! video/x-raw-yuv,<br>
width=268, height=224  ! videobox border-alpha=0 alpha=1 left=&quot;-452&quot;<br>
top=&quot;-138&quot; bottom=&quot;-214&quot; ! mix. } \<br>
{ multifilesrc location=&quot;backgorund.png&quot; num-buffers=$1 ! image/png,<br>
framerate=25/1 ! pngdec ! ffmpegcolorspace ! mix. }<br>
<br>
Now, it give me a warning and does nothing:<br>
 (gst-launch-0.10:3344): GLib-WARNING **: g_set_prgname() called<br>
multiple times<br>
WARNING: erroneous pipeline: could not link videocrop0 to videobox0<br></blockquote><div><br>Probably something is wrong with caps negotiation. Try setting in your script:<br><br>export GST_DEBUG=GST_CAPS:5<br><br>re-run the pipeline and check the misaligned caps.<br>
<br>Regards<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
I&#39;ve tryed to use a ffmpegcolorspace between the two elements, but<br>
doesn&#39;t solve anything. Changing the decobin  for a<br>
mpegpsdemux+mpeg2dec doesn&#39;t give me an error but keeps pre-rolling to<br>
the end of time.<br>
<br>
I&#39;m quite desperate, that worked fine for some time, what is the<br>
problem? Need queues? More cow bell? Is there another better method? XML<br>
defined filter chain may be?<br>
<br>
Greetings,<br>
<br>
Josep<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>
</blockquote></div><br>