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

Camera board • Re: Video stream code working on Pi 4 but not Pi 5

$
0
0
I have tried a variety of ways to declare a codec but I keep getting the same error. Is there some syntax I am missing that must be included. Thanks for you help, I have included my code below.

def stream_video():
subprocess.run(['libcamera-vid', '-t', '0','--vflip','--hflip','--framerate','21', '--inline', '--listen', '-o', 'tcp://0.0.0.0:5000','--codec', 'h264'])

Statistics: Posted by TunnelRobot — Mon Mar 04, 2024 4:54 pm



Viewing all articles
Browse latest Browse all 4168

Trending Articles