Tool/software: Linux
I have a camera running at 60fps, and I want to compress using ducatimpeg4enc then write to a file. If I use a gstreamer pipeline with the framerate stated as 30/1, when the camera is running at 60fps, then it all appears to work, and my output file even gives the frame rate (correctly) as 60fps.
Pipeline that "works":
gst-launch-1.0 v4l2src device=/dev/video1 num_buffers=200 io-mode=4 ! 'video/x-raw,format=(string)YUY2,width=640,height=480,framerate=30/1'! vpe num-input-buffers=8 ! 'video/x-raw, format=(string)NV12, width=(int)640, height=(int)480' ! queue ! ducatimpeg4enc intra-interval=4 ! queue ! mpeg4videoparse ! mp4mux ! filesink location=test1.mp4
But if I set the stated frame rate to 60/1, then I get the following error:
ERROR: from element /GstPipeline:pipeline0/GstDucatiMPEG4Enc:ducatimpeg4enc0: Could not encode stream.
Additional debug info:
gstducatividenc.c(752): gst_ducati_videnc_handle_frame (): /GstPipeline:pipeline0/GstDucatiMPEG4Enc:ducatimpeg4enc0
Please can you let me know what's going on here, and if my pipeline needs changing?
Best regards,
Bob.