Lost frames into .avi file 1080p

Unclesav savch.serg.vit at gmail.com
Thu Jul 4 14:37:34 UTC 2019


I have trouble, trying to save fullHD video into .avi file.

The pipeline for saving:
*gst-launch-1.0 -e -v v4l2src device=/dev/video4 !
video/x-bayer,format=grbg,depth=8,width=1920,height=1080,framerate=30/1 !
bayer2rgbneon !
video/x-raw,format=RGBA,width=1920,height=1080,framerate=30/1 !
videoconvert ! video/x-raw,format=I420,width=1920,height=1080,framerate=30/1
v4l2h264enc ! video/x-h264,width=1920,height=1080,framerate=30/1 !
avimux !
filesink location=/mnt/video/a.avi*

After running this pipeline I have .avi video, but in external players, like
VLC, it is too much faster (I have recorded for 20sec but in VLC it plays
during 3-4 seconds).

I have tried to use 'videorate'. It helped with the length of video, but if
fills the video with duplicated frames, so the video looks like freezed.

Also when I stream video from camera on the device internally - it looks
nice (fullHD, 30fps).
Camera's documentation tells that the camera can give me FullHD

Pipeline for streaming:
*gst-launch-1.0 v4l2src device=/dev/video4 !
video/x-bayer,format=grbg,depth=8,width=1920,height=1080 !
bayer2rgbneon ! video/x-raw,width=1920,height=1080 !
videoscale ! video/x-raw,width=1920,height=1080 ! queue ! kmssink
driver-name=imx-drm force-modesetting=false can-scale=false sync=false*

I guess I lost the frames somewhere in the pipeline (in v4l2h264enc or
somewhere else), or there is a trouble with a buffer size. But I can not
catch it.

Does anyone have any idea?
Ask for more detailed info if you need it, please.

Thanks in advance!

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

More information about the gstreamer-devel mailing list