Streaming frame capture

Dušan Poizl poizl at maindata.sk
Thu Jul 24 03:25:39 PDT 2014


try query duration and seek to it. effectively you should get last frame.

https://developer.gnome.org/gstreamer/stable/gstreamer-GstQuery.html#GST-QUERY-DURATION:CAPS
https://developer.gnome.org/gstreamer/stable/gstreamer-GstEvent.html#gst-event-new-seek

Dňa 24.07.2014 o 11:57 jlesire napísal(a):
> Hello.
>
> Does anyone know if it's possible to get the last frame from a file with
> gstreamer ?
> My process is in C, here is the same in bash with gst-launch :
>
> gst-launch-1.0 uridecodebin uri=${CAMERA_STREAM} ! \
> tee name=tf ! queue ! videoscale ! video/x-raw,width=640,height=360 !
> videorate ! video/x-raw,framerate=30/1 ! x264enc bitrate=600 ! mpegtsmux !
> hlssink location=${HLS_LOW_QUALITY_FOLDER}/segment%05d.ts
> playlist-location=${HLS_LOW_QUALITY_FOLDER}/playlist.m3u8 ${HLSSINK_OPTION}
> \
> tf. ! queue ! videoscale ! video/x-raw,width=1280,height=720 ! videorate !
> video/x-raw,framerate=30/1 ! x264enc bitrate=5000 ! mpegtsmux ! \
> tee name=to ! queue ! hlssink
> location=${HLS_NORMAL_QUALITY_FOLDER}/segment%05d.ts
> playlist-location=${HLS_NORMAL_QUALITY_FOLDER}/playlist.m3u8
> ${HLSSINK_OPTION} \
> to. ! queue ! filesink location=${TARGET_FILE_PATH}/stream.ts
>
> It generates two HLS streams in two subdirectories and keeps a backup into
> "stream.ts". It's connected with a socket that may ask for a screen capture
> at a given time.
>
> Do you think it's feasible ?
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Streaming-frame-capture-tp4668047.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list