Streaming frame capture

jlesire jlesire at myapphone.com
Thu Jul 24 02:57:30 PDT 2014


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.


More information about the gstreamer-devel mailing list