[gst-devel] gst-launch script problem
Marco Ballesio
gibrovacco at gmail.com
Sun May 9 09:54:14 CEST 2010
Hi,
2010/4/29 Josep Creus Portolés <creus at ac.upc.edu>
> 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
>
Probably something is wrong with caps negotiation. Try setting in your
script:
export GST_DEBUG=GST_CAPS:5
re-run the pipeline and check the misaligned caps.
Regards
>
> 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
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100509/9b1b6628/attachment.htm>
More information about the gstreamer-devel
mailing list