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? Thanks, Best regards ------------------------------------------------------------------------- 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 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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)... 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 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Thanks for your reply. >>>>> Florent <[hidden email]> 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: --- gst-plugins-base-0.10.19/gst/videorate/gstvideorate.c 2007-08-10 18:08:05.000000000 +0800 +++ gst-plugins-base-0.10.19.new/gst/videorate/gstvideorate.c 2008-06-12 14:06:40.000000000 +0800 @@ -120,14 +120,14 @@ GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("video/x-raw-yuv; video/x-raw-rgb") + GST_STATIC_CAPS ("video/x-raw-yuv; video/x-raw-rgb; image/jpeg") ); static GstStaticPadTemplate gst_video_rate_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("video/x-raw-yuv; video/x-raw-rgb") + GST_STATIC_CAPS ("video/x-raw-yuv; video/x-raw-rgb; image/jpeg") ); static void gst_video_rate_swap_prev (GstVideoRate * videorate, > 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 ------------------------------------------------------------------------- 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 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |