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