Libcamera and rtsp streaming

Bonjour,

J’essaie de « streamer » la camera Pi v2 en RTSP sur un Pi 0 2W, avec le system Lite. J’ai suivi la doc officielle, mais ça ne fonctionne pas …

Tout d’abord, j’ai commencé par un simple protocole TCP. Ca fonctionne bien, la libcamera affiche les infos, et stream jusqu’a un CTRL+C :

libcamera-vid -t 0 --inline --listen -o tcp://192.168.1.50:8554

Ensuite, j’ai essayé le RTSP avec VLC (Comme la doc officielle) :

libcamera-vid -t 0 --inline -o - | cvlc stream://dev/stdin --sout ‹ #rtp{sdp=rtsp://:8554/stream1} › :demux=h264

Mais là, libacamera me met bien les infos … Et je reviens aussitot à l’invite de commande … Pas de stream :

pi@Poulailler:~ $ libcamera-vid -t 0 --inline -o - | cvlc stream://dev/stdin --sout ‹ #rtp{sdp=rtsp://:8554/stream1} › :de
mux=h264
VLC media player 3.0.16 Vetinari (revision 1.0.6-1682-g88158c836)
[1:37:34.292535751] [1129] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3156-f4070274
[1:37:34.405441139] [1129] INFO Camera camera.cpp:937 configuring streams: (0) 640x480-YUV420
[1:37:34.405744207] [1134] INFO RPI raspberrypi.cpp:122 Mode: 2592x1944 fmt BG10 Score: 2354 (best 2354)
[1:37:34.405867122] [1134] INFO RPI raspberrypi.cpp:122 Mode: 1920x1080 fmt BG10 Score: 2136.67 (best 2136.67)
[1:37:34.405944569] [1134] INFO RPI raspberrypi.cpp:122 Mode: 1296x972 fmt BG10 Score: 1787 (best 1787)
[1:37:34.406014256] [1134] INFO RPI raspberrypi.cpp:122 Mode: 640x480 fmt BG10 Score: 1500 (best 1500)
[1:37:34.406087953] [1134] INFO RPI raspberrypi.cpp:122 Mode: 640x480 fmt BA81 Score: 2500 (best 1500)
[1:37:34.406159722] [1134] INFO RPI raspberrypi.cpp:122 Mode: 2592x1944 fmt pBAA Score: 1854 (best 1500)
[1:37:34.406231544] [1134] INFO RPI raspberrypi.cpp:122 Mode: 1920x1080 fmt pBAA Score: 1636.67 (best 1500)
[1:37:34.406304252] [1134] INFO RPI raspberrypi.cpp:122 Mode: 1296x972 fmt pBAA Score: 1287 (best 1287)
[1:37:34.406375917] [1134] INFO RPI raspberrypi.cpp:122 Mode: 640x480 fmt pBAA Score: 1000 (best 1000)
[1:37:34.408327974] [1134] INFO RPI raspberrypi.cpp:620 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected mode: 640x480-pBAA
[1:37:34.428245411] [1138] INFO IPARPI raspberrypi.cpp:626 Request ctrl: Saturation = 1.000000
[1:37:34.428397545] [1138] INFO IPARPI raspberrypi.cpp:626 Request ctrl: Contrast = 1.000000
[1:37:34.428467388] [1138] INFO IPARPI raspberrypi.cpp:626 Request ctrl: Brightness = 0.000000
[1:37:34.428529158] [1138] INFO IPARPI raspberrypi.cpp:626 Request ctrl: AwbMode = 0
[1:37:34.428588323] [1138] INFO IPARPI raspberrypi.cpp:626 Request ctrl: Sharpness = 1.000000
[1:37:34.428653166] [1138] INFO IPARPI raspberrypi.cpp:626 Request ctrl: ExposureValue = 0.000000
[1:37:34.428745405] [1138] INFO IPARPI raspberrypi.cpp:626 Request ctrl: AeExposureMode = 0
[1:37:34.428849726] [1138] INFO IPARPI raspberrypi.cpp:626 Request ctrl: FrameDurationLimits = [ 33333, 33333 ]
[1:37:34.428955818] [1138] INFO IPARPI raspberrypi.cpp:626 Request ctrl: AeMeteringMode = 0
[1:37:34.429050557] [1138] INFO IPARPI raspberrypi.cpp:626 Request ctrl: NoiseReductionMode = 1
[1:37:34.431556668] [1134] INFO RPISTREAM rpi_stream.cpp:122 No buffers available for ISP Output0
[1:37:34.431624480] [1134] INFO RPISTREAM rpi_stream.cpp:122 No buffers available for ISP Output0
[1:37:34.498128210] [1134] INFO RPI raspberrypi.cpp:1636 Dropping frame at the request of the IPA (7 left)
[1:37:34.552562938] [1134] INFO RPI raspberrypi.cpp:1636 Dropping frame at the request of the IPA (6 left)
[1:37:34.582181858] [1134] INFO RPI raspberrypi.cpp:1636 Dropping frame at the request of the IPA (5 left)
[1:37:34.611451563] [1134] INFO RPI raspberrypi.cpp:1636 Dropping frame at the request of the IPA (4 left)
[1:37:34.640262265] [1134] INFO RPI raspberrypi.cpp:1636 Dropping frame at the request of the IPA (3 left)
[1:37:34.669924309] [1134] INFO RPI raspberrypi.cpp:1636 Dropping frame at the request of the IPA (2 left)
[1:37:34.698799906] [1134] INFO RPI raspberrypi.cpp:1636 Dropping frame at the request of the IPA (1 left)
[1:37:34.728067841] [1134] INFO RPI raspberrypi.cpp:1636 Dropping frame at the request of the IPA (0 left)
pi@Poulailler:~ $

Qu’est-ce que j’ai loupé ? J’ai trouvé des tas de sites/forum qui font la même chose, et a chaque fois j’ai le même résultat …