I am trying to stream video from on Raspberry Pi to another. I am doing this successfully from a Pi 4 to a Pi 5. When I try to switch the transmitter to a Pi 5 I get the following error:
[NULL @ 0x466eb0] Unable to find a suitable output format for 'tcp://0.0.0.0:5000'
ERROR: *** libav: cannot allocate output context ***
The code I am using to transmit the video is:
def stream_video():
subprocess.run(['libcamera-vid', '-t', '0','--vflip','--hflip','--framerate','21', '--inline', '--listen', '-o', 'tcp://0.0.0.0:5000'])
This code was working perfectly on the Pi 4 but won't work on the Pi 5. Any ideas on how to fix this?
[NULL @ 0x466eb0] Unable to find a suitable output format for 'tcp://0.0.0.0:5000'
ERROR: *** libav: cannot allocate output context ***
The code I am using to transmit the video is:
def stream_video():
subprocess.run(['libcamera-vid', '-t', '0','--vflip','--hflip','--framerate','21', '--inline', '--listen', '-o', 'tcp://0.0.0.0:5000'])
This code was working perfectly on the Pi 4 but won't work on the Pi 5. Any ideas on how to fix this?
Statistics: Posted by TunnelRobot — Fri Mar 01, 2024 4:46 pm