[gst-devel] Converting an image to videosource

Sameer Naik sameer at damagehead.com
Wed Oct 24 09:41:45 CEST 2007


you would not run into any issues, if you will be using videomixer.
the mixer will keep that image until the video has finished playing.

try this:
gst-launch videotestsrc pattern=1 !
video/x-raw-yuv,width=100,height=100,framerate=\(fraction\)10/1  !
ffmpegcolorspace ! videomixer name=mix ! ffmpegcolorspace ! xvimagesink
filesrc location=file.jpg ! decodebin ! ffmpegcolorspace ! mix.

where file.jpg is your jpeg image

~sameer

On Wed, 2007-10-24 at 12:51 +0530, Anirudh Tara wrote:
> Hi 
>  
> I am trying to convert a single jpg/image to a videostream. I need the
> videostream to act like a live source ie. not send an EOS. I have
> tried using 'jpegdec' but the image gives an EOS and causes the
> pipeline to stop after 1 frame. Is there an already existing plug-in
> which shall enable me to do this?
>  
> What i am trying to do is to overlay a jpg/image on a video. I was
> thinking of converting the jpg into a video stream and use 'videomix'
> to overlay it. If there is a better way to do this or a plugin already
> please let me know.
>  
> Thanks
>  
> Anirudh
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list