Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4547

Troubleshooting • Libcamera-vid app not capturing video

$
0
0
I am using 8gb Raspberry Pi 5, official 64-bit Bookworm OS, Raspberry Pi HQ Camera CS, and CS lens 16 mm 5 Mpix.

Libcamera-vid will not capture a full video so that it can be played back in vlc player.

When I input

Code:

libcamera-vid -t 10000 -o test.h264
the resulting .h264 file size is 788.0 KiB

Code:

vlc test.h264
opens vlc but, plays video for less then a second, although, the terminal returns message:
VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126b)
[0000555635d7d560] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
QStandardPaths: wrong permissions on runtime directory /run/user/1000, 0770 instead of 0700
QStandardPaths: wrong permissions on runtime directory /run/user/1000, 0770 instead of 0700
[h264_v4l2m2m @ 0x7fff0cc20040] Could not find a valid device
[h264_v4l2m2m @ 0x7fff0cc20040] can't configure decoder
[00007fff0cc01f10] avcodec decoder error: cannot start codec (h264_v4l2m2m)
[00007ffef00013f0] wl_dmabuf vout display: <<< Open: I420 640x482(640x480 @ 0,0 0/0), cfg.display: 640x480, source: 640x482(640x480 @ 0,0 1/1)
Then when I input

Code:

libcamera-vid -t 600000 -o test2.h264
it plays in vlc for 2 seconds only showing the first video frame, resulting .h264 file size 29.7 MiB

Code:

libcamera-vid -t 10000 --save-pts timestamps.txt -o test-time.h264
it plays video for maybe 1 second, resulting in .h264 file size 508.3 KiB, while the resulting timestamps.txt only contains "# timecode format v2"

Code:

mkvmerge --timecodes 0:timestamps.txt test-time.h264 \ -o test-time.mkv
Terminal returns message:
mkvmerge v74.0.0 ('You Oughta Know') 64-bit
'test-time.h264': Using the demultiplexer for the format 'AVC/H.264'.
Error: The timestamp file 'timestamps.txt' does not contain any valid entry.
I don't seem to be having trouble with still images or time-lapses.

Any help or advice would be greatly appreciated.

Not sure if it is related to this but, I have a steadily on red LED when the Pi is powered on and operating. I posted about it here, If you think it could be related please let me know. viewtopic.php?t=366351

Thanks

Statistics: Posted by Rueful-Pi — Mon Feb 26, 2024 8:24 pm — Replies 2 — Views 55



Viewing all articles
Browse latest Browse all 4547

Trending Articles