Piping rpicam-vid latest libcamera for Raspberry Pi camera

*nix specific usage questions
harry8
New Cone
New Cone
Posts: 1
Joined: 08 Aug 2024 13:55

Piping rpicam-vid latest libcamera for Raspberry Pi camera

Postby harry8 » 08 Aug 2024 15:16

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 08 Aug 2024 19:24

You probably need to force the file format; in this case, VLC can't guess it without the extension.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 18 guests