Gstreamer Filesink Problem

I use the following command for 100 times to generate a video file and record the size of the file , but i discover the size of the file is 0 for 3 times and i can’t open it.

The command is :
timeout 30 gst-launch-1.0 v4l2src device=/dev/video0 ! “video/x-raw,width=1920,height=1080,framerate=60/1” ! videoscale ! “video/x-raw,width=720,height=480” ! avimux ! filesink location=output.avi

Hi,
It looks to be instability of the v4l2 source. If the source does not generate frames, you will see the file with size 0. So it is very likely the source fails to run in 3 times out of 100.

Do you mean it’s the problem of the camera or the problem of v4l2src pulgn-in ?

Hi,
It is problem of the camera. It does not generate frames and you will see a file with size=0.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.