I updated to pi3B+ and got the most recent raspivid. In my old software I use

raspivid -sg 6000 -wr 40 -sn 4 -o REC_%04d.h264" 

to produce a file named REC_0004.h264.

The new version produces a file named "REC_0010.h264" and 10 stands for the 10th day of the mounth.

When I use -sg 6000 -wr 40 -sn 4 -o REC_%d it produces a file named "REC_4.h264" which is correct. But I in my old software I need a file named "REC_0004.h264" (with three leading zeroes). How do I achieve that?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.