Pi 3 B+, v2.1 camera abyssmal fps @1080p
I am quite new to the community, but I am facing one of those problems that seems like not to bother anyone but me. First let's start with the context.
I am trying to record a video through a nodejs server, then host this video for watching/downloading. I wrote the code and everything was okay until I started actually watching the videos. It was extremely sped up. I attributed that to raspivid not providing the promised fps for ffmpeg and since it has no timestamps ffmpeg has now way to adjust to the dropping fps.
I don't want to bore you with the full details of the trials I went through so I will just provide a simple reproduction for my issue, right now I have nothing heavy running on my pi the cpu load and memory usage are not crossing 10~15% and I am running this command:
Code: Select all
raspivid -md 1 -w 1920 -h 1080 -pts tst.pts -t 100000 -fps 20 -o tst.h264
I tested this on 3 boards and 3 different cameras so far, 2 pi 3 B and 1 pi 3 B+, the results are the same a 30% sped up videos being recorded. the more extensive testing was done with the B+ model and v2.1 cam.