Page 1 of 1

Piping rpicam-vid latest libcamera for Raspberry Pi camera

Posted: 08 Aug 2024 15:16
by harry8
In most cases these are equivalent:
cvlc test.mp4
cat test.mp4 | cvlc -

However when I create a video using the new libcamera app for Raspberry pi (https://www.raspberrypi.com/documentati ... rpicam-vid)
rpicam-vid -t 10s -o test.h264

Then
cvlc test.h264 (Works!)
cat test.h264 | cvlc - (Does not work)

Some of the debug messages of the latter are:
[0000007f98000ca0] main input debug: `fd://0' successfully opened
[0000007f8c001150] ps demux warning: garbage at input from 509, trying to resync...
and
[000000557a9b3870] main playlist debug: nothing to play

Any ideas why "cat test.h264 | cvlc -" does not work? or how to troubleshoot? Eventually I would like to pipe the camera directly which also does not work at the moment. I also tried different codec but no success.
Using a Raspberry Pi zero 2 with official software

Thanks in advance

Re: Piping rpicam-vid latest libcamera for Raspberry Pi camera

Posted: 08 Aug 2024 19:24
by RĂ©mi Denis-Courmont
You probably need to force the file format; in this case, VLC can't guess it without the extension.