AW: Video Recording issue in Gstreamer

Nicolas Dufresne nicolas at ndufresne.ca
Fri May 3 19:13:09 UTC 2019


Le vendredi 03 mai 2019 à 01:54 -0500, Aditya Oza a écrit :
> Thank you BGraaf,
> 
> as you mention i use queue element before and after encoder and its work
> better compare to previous pipeline.
> 
>  gst-launch-1.0  --gst-debug-level=3 -v  v4l2src device=/dev/video0 !
> capsfilter caps="video/x-raw, width=1920,height=1080,framerate=30/1" !
> videoflip method=rotate-180 ! videoconvert ! videorate ! queue ! omxh264enc
> ! queue ! avimux ! filesink location = test_video.h264 
> 
> PROBLEM:
> 
> After running  this pipeline, I  found that it records whole video, but
> still some frame are missing in it.

Move the queue between v4l2src and videoflip. v4l2src is the real-time
thing in your pipeline, so it's not ideal if it shares a thread with
the high CPU videoflip element. Be aware the videoreate can drop frames
too.

my two cents,
Nicolas



More information about the gstreamer-devel mailing list