Skip to content

Commit 7a5930a

Browse files
committed
Video: Change to I420 format for Pi cam
1 parent d96feda commit 7a5930a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/rtsp-server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def getPipeline(device, height, width, bitrate, format, rotation, framerate, tim
7878
if is_debian_bookworm():
7979
format = "RGBx"
8080
else:
81-
format = "NV12"
81+
format = "I420" # https://forums.raspberrypi.com/viewtopic.php?t=93560
8282
pipeline.append("libcamerasrc camera-name={0}".format(device))
8383
pipeline.append("capsfilter caps=video/x-raw,width={0},height={1},format={3}{2}".format(width, height, framestr, format))
8484
pipeline.append("queue")

0 commit comments

Comments
 (0)