1.Where did you get the camera module(s)?
2.Model number of the product(s)?
3.What hardware/platform were you working on?
4.Instructions you have followed. (link/manual/etc.)
Standard Arducam Guide+long exposure mode
5. Problems you were having?
Unable to decode libcamera-vid - - codec yuv420
- The dmesg log from your hardware?
dmesg | grep arducam [ 14.728713] arducam: loading out-of-tree module taints kernel. [ 15.040059] arducam-pivariety 10-000c: firmware version: 0x10002 [ 15.806029] arducam-pivariety 10-000c: Consider updating driver arducam-pivariety to match on endpoints
- Troubleshooting attempts you’ve made?
- What help do you need?
Check what is wrong.
This is code I use to record video :
time libcamera-vid --codec yuv420 -o /media/astroberry/227adeb5-2441-49bc-afd1-7561fce25e79/temp/date +“%Y-%m-%d-%H-%M-%S”
.mp4 --shutter 10000 --analoggain 250 --frames 18000 --framerate 60
and this is the command I use to convert video to lossless h264
ffmpeg -f rawvideo -vcodec rawvideo -s 1920x1080 -r 25 -pix_fmt yuv420p -i 2022-09-06-21-28-42.mp4 -c:v libx264 -preset ultrafast -qp 0 output.mp4
and this is result I get for EVERY video I record, of course depending on video different frame is broken.
50449.1kbi[rawvideo @ 0x109ed90] Packet corrupt (stream = 0, dts = 2370). 2022-09-06-21-28-42.mp4: corrupt input packet in stream 0 [rawvideo @ 0x10a9720] Invalid buffer size, packet size 1152000 < expected frame_size 3110400 Error while decoding stream #0:0: Invalid argument frame= 2370 fps= 10 q=0.0 size= 581888kB time=00:01:34.48 bitrate=50453.2kbiframe= 2370 fps= 10 q=-1.0 Lsize= 583722kB
I use exactly the same procedure with official RpiHQ cam and have no issues at all. Any ideas where to go? I have long exposure firmware.