Hi,<br><br><div class="gmail_quote">2010/4/29 Josep Creus Portolés <span dir="ltr"><<a href="mailto:creus@ac.upc.edu">creus@ac.upc.edu</a>></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'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="video1.mpg" \<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="-266" top="-124" bottom="-94" !<br>
videomixer name=mix ! ffmpegcolorspace ! xvidenc pass=1<br>
statsfile="videoproc.log" trellis=true ! fakesink } \<br>
{ filesrc location="video2.mpg" ! 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="-452"<br>
top="-138" bottom="-214" ! mix. } \<br>
{ multifilesrc location="background.png" num-buffers=$1 ! image/png,<br>
framerate=25/1 ! pngdec ! ffmpegcolorspace ! mix. }<br>
<br>
# Second Pass<br>
gst-launch-0.10 filesrc location="video1.mpg" \<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="-266" top="-124" bottom="-94" !<br>
videomixer name=mix ! ffmpegcolorspace ! xvidenc pass=2<br>
statsfile="2cam.log" bitrate=140000 trellis=true ! avimux ! filesink<br>
location="videoproc.avi" } \<br>
{ filesrc location="video2.mpg" ! 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="-452"<br>
top="-138" bottom="-214" ! mix. } \<br>
{ multifilesrc location="backgorund.png" 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've tryed to use a ffmpegcolorspace between the two elements, but<br>
doesn't solve anything. Changing the decobin for a<br>
mpegpsdemux+mpeg2dec doesn't give me an error but keeps pre-rolling to<br>
the end of time.<br>
<br>
I'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>