Record video at 30fps and images at 1fps simultaneously

Vinod Kesti vinodkesti at yahoo.com
Wed Feb 14 10:47:17 UTC 2018


By default x264 uses more video buffers for better rate control. This leads
to dead lock when it is used along with other sink or audio branch.

To avoid this dead lock there are 2 option.
1. Reduce look ahead in x264enc or enable low latency by setting tune=4
property
2. Adjust queue size in mulitfilesink branch.

By setting tune=4 below pipeline worked for me. Otherwise it doesn't work.

gst-launch-1.0 videotestsrc !
video/x-bayer,format=bggr,width=1024,height=768 ! capssetter join=false
caps="video/x-bayer,format=gbrg" ! bayer2rgb ! tee name=t \
t. ! queue ! videoscale ! video/x-raw,framerate=30/1 ! videoconvert !
x264enc ! mp4mux ! filesink location=test.mp4 \
t. ! queue ! videorate ! video/x-raw,framerate=1/1 ! videoconvert ! jpegenc
! multifilesink location=frame_%04d.jpg 

! Vinod



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list