multifilesrc can't record fb0 correctly
Hello. I need to record fb0 with gstreamer. AFAIK, multifilesrc can solve the problem, but something went wrong when I tried to do that.
For test I used command:
while [ true ] ; echo `date` > /dev/tty0 ; sleep 1s ; done &
with ffmpeg all is OK: https://youtu.be/1iiEpE35aDY
cmd:
ffmpeg -f fbdev -i /dev/fb0 output.avi
output: https://pastebin.com/0e6MkiiF
but with gstreamer-1.0 I can't record it normally:
25FPS: https://youtu.be/Ba8vaqyNc40 (too fast)
cmd:
gst-launch-1.0 -v multifilesrc location=/dev/fb0 \
! videoparse format=bgra width=1280 height=720 framerate=25 \
! avimux ! filesink location=gst25.avi
output: https://pastebin.com/wPDdhaQe
4.3FPS: https://youtu.be/cLXtM9YAurE (too slow and some frames were missed)
cmd:
gst-launch-1.0 -v multifilesrc location=/dev/fb0 \
! videoparse format=bgra width=1280 height=720 framerate=17/4 \
! avimux ! filesink location=gst4.3.avi
output: https://pastebin.com/ma91jgGT
I've tried gst v1.14.5 and v1.16.2, both have the same result.
What I'm doing wrong? Help, please.
(copy of this issue I sent to gstreamer-devel mailing before).