[gst-devel] Is it possible that videorate can support "image/jpeg"(mjpeg)?
Wang Diancheng
dcwang at redflag-linux.com
Fri Jun 13 03:19:57 CEST 2008
Thanks for your reply.
>>>>> Florent <fthiery at gmail.com> writes:
> Hi
>> Now, videorate plugin only supports "video/x-raw-yuv" and
>> "video/x-raw-rgb", can it support "image/jpeg" (mjpeg)?
>>
>> if it can support, how to modify the videorate source code to
>> support it?
> You might want to use it after the decoder. I didn't manage to do
> so myself though (got some "Got segment but doesn't have
> GST_FORMAT_TIME value" errors -- even with source that has a
> do-timestamp=true property)...
I use a camera that support "image/jpeg"(mjpeg), I use follow pipeline
to record video to avi files. this pipeline directly save jpeg encoded
frame to avi file.
gst-launch v4l2src queue-size=2 ! \
image/jpeg,width=640,height=480 ! tee name=vsrc vsrc. ! queue \
! jpegdec ! ffmpegcolorspace ! timeoverlay ! gconfvideosink \
vsrc. ! videorate ! queue ! muxer. avimux name=muxer ! filesink \
location=x.avi alsasrc ! \
'audio/x-raw-int,rate=8000,channels=1,width=8,signed=false' ! \
queue ! muxer.
I modify videorate make it support "image/jpeg", it works. at least,
uitil now, no problem found. following is the patch:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: videorate_mjpeg_support.patch
Type: text/x-diff
Size: 769 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080613/ceca7f39/attachment.patch>
-------------- next part --------------
> For instance, the following pipeline doesn't work: gst-launch-0.10
> -vvv gnomevfssrc location=http://192.168.40.137/image
> do-timestamp=true ! jpegdec ! capsfilter caps = "video/x-raw-yuv,
> format=(fourcc)I420, width=(int)640, height=(int)480,
> framerate=(fraction)25/1" ! videorate ! xvimagesink
> (with or without the capsfilter)
> Flo
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace. It's the best
> place to buy or sell services for just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
More information about the gstreamer-devel
mailing list