[gst-devel] videorate for encoded video

Farkas Levente lfarkas at lfarkas.org
Wed Sep 8 10:22:46 CEST 2010


hi,
we'd like to make snapshots of an input encoded video stream.
does anybody have any tip how can we do this?
unfortunately videorate can only accept raw streams.
so suppose we've got a h264 input source and like to save the stream and
every 5 minutes a jpeg image, then this pipeline almost good:
---------------------------
gst-launch -e rtspsrc
location="rtsp://a-h264-url" ! rtph264depay access-unit=true ! h264parse
! tee name="t" ! queue ! matroskamux ! filesink location="test.mkv"  t.
! queue ! ffdec_h264 ! videorate !
video/x-raw-yuv,framerate=1/300 !
ffmpegcolorspace ! jpegenc ! multifilesink location="frame%05d.jpg"
---------------------------
but in this case we've to decode _all_ frames. and we'd like to save cpu
and only decode the required frames.
does anybody has any tips?
thanks in advance.
regards.

-- 
  Levente                               "Si vis pacem para bellum!"




More information about the gstreamer-devel mailing list