[gst-devel] gst-launch script problem

Josep Creus Portolés creus at ac.upc.edu
Thu Apr 29 21:02:49 CEST 2010


Hello there,

I'd used this script about 3 or 4 months ago (Ubuntu 9.10 updated 
regularly):

# First Pass
gst-launch-0.10 filesrc location="video1.mpg" \
{ ! decodebin ! deinterlace ! videoscale method=2 ! videocrop left=6 
right=8 top=2 bottom=6 ! video/x-raw-yuv, width=454, height=358 ! 
videobox border-alpha=0 alpha=1 right="-266" top="-124" bottom="-94" ! 
videomixer name=mix ! ffmpegcolorspace ! xvidenc pass=1 
statsfile="videoproc.log" trellis=true ! fakesink } \
{ filesrc location="video2.mpg" ! decodebin ! deinterlace ! videoscale 
method=2 ! videocrop left=6 right=8 top=2 bottom=6 ! video/x-raw-yuv, 
width=268, height=224  ! videobox border-alpha=0 alpha=1 left="-452" 
top="-138" bottom="-214" ! mix. } \
{ multifilesrc location="background.png" num-buffers=$1 ! image/png, 
framerate=25/1 ! pngdec ! ffmpegcolorspace ! mix. }

# Second Pass
gst-launch-0.10 filesrc location="video1.mpg" \
{ ! decodebin ! deinterlace ! videoscale method=2 ! videocrop left=6 
right=8 top=2 bottom=6 ! video/x-raw-yuv, width=454, height=358 ! 
videobox border-alpha=0 alpha=1 right="-266" top="-124" bottom="-94" ! 
videomixer name=mix ! ffmpegcolorspace ! xvidenc pass=2 
statsfile="2cam.log" bitrate=140000 trellis=true ! avimux ! filesink 
location="videoproc.avi" } \
{ filesrc location="video2.mpg" ! decodebin ! deinterlace ! videoscale 
method=2 ! videocrop left=6 right=8 top=2 bottom=6 ! video/x-raw-yuv, 
width=268, height=224  ! videobox border-alpha=0 alpha=1 left="-452" 
top="-138" bottom="-214" ! mix. } \
{ multifilesrc location="backgorund.png" num-buffers=$1 ! image/png, 
framerate=25/1 ! pngdec ! ffmpegcolorspace ! mix. }

Now, it give me a warning and does nothing:
 (gst-launch-0.10:3344): GLib-WARNING **: g_set_prgname() called 
multiple times
WARNING: erroneous pipeline: could not link videocrop0 to videobox0

I've tryed to use a ffmpegcolorspace between the two elements, but 
doesn't solve anything. Changing the decobin  for a  
mpegpsdemux+mpeg2dec doesn't give me an error but keeps pre-rolling to 
the end of time.

I'm quite desperate, that worked fine for some time, what is the 
problem? Need queues? More cow bell? Is there another better method? XML 
defined filter chain may be?

Greetings,

Josep




More information about the gstreamer-devel mailing list