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 ------------------------------------------------------------------------------ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi,
2010/4/29 Josep Creus Portolés <[hidden email]> Hello there, 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
------------------------------------------------------------------------------ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |