Mixing multiple sources with different framerates

Mike Mitchell mike.mitchell at panometric.net
Fri Oct 7 01:16:29 PDT 2011


Edu,
Well there are no dropped frames now, your frame rates all match! Your
original problem was different.  Using the sync option is fine, whatever
works.
*
*
*Mike Mitchell*



On Thu, Oct 6, 2011 at 4:01 AM, Eduardo Herraiz <edu at ifisc.uib-csic.es>wrote:

> Hi,
>
> Looking for another solutions I tried with the option "sync=false" in the
> xvimagesink :
> gst-launch-0.10 \
>  videomixer2 name=mix !
> video/x-raw-yuv,width=1536,height=768,framerate=25/1 ! xvimagesink
> sync=false \
>  v4l2src device="/dev/video0" ! video/x-raw-yuv,width=640,height=480 !
> videoscale ! video/x-raw-yuv,width=512,height=384 ! ffmpegcolorspace ! \
>    videobox border-alpha=0 top=-384 left=0 ! videorate silent=FALSE !
> video/x-raw-yuv,framerate=25/1 ! queue ! mix. \
>  v4l2src device="/dev/video1" ! video/x-raw-yuv,width=720,height=576 !
> videoscale ! video/x-raw-yuv,width=512,height=384 ! ffmpegcolorspace ! \
>    videobox border-alpha=0 top=0 left=0 ! videorate silent=FALSE !
> video/x-raw-yuv,framerate=25/1 ! queue ! mix. \
>  v4l2src device="/dev/video2" ! video/x-raw-yuv,width=1024,height=768 !
> ffmpegcolorspace  ! \
>     videobox border-alpha=0 top=0 left=-512 ! videorate silent=FALSE !
> video/x-raw-yuv,framerate=25/1 ! queue ! mix.
>
> It works with a high framerate!!, but reading about sync option seems to be
> a debugging option:
>
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-ximagesink.html
>
> I can't see any information about dropped or added frames with videorate.
>
> Can I use this option for a production application? What's wrong with this?
>
> Bests
> Edu
>
> *****************************************************************
> Edu Herraiz - Web developer
> http://www.eduherraiz.com
>
> IFISC
> email: edu at ifisc.uib-csic.es
> *****************************************************************
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111007/7eae7637/attachment.html>


More information about the gstreamer-devel mailing list