bestd25
Posts: 10
Joined: Tue Nov 10, 2015 9:22 pm

Need help to Create Stream Using Python (Picamera)

Sat Dec 19, 2015 11:29 am

Hi,

I want to create a python script that will run the following command:

Code: Select all

 raspivid -o - -t 0 -n | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264
I have developed the following script to start the preview but how do I get the video to stream to the correct port etc.?

Code: Select all

import io
import time
import picamera

# Create an in-memory stream
my_stream = io.BytesIO()
with picamera.PiCamera() as camera:
    camera.start_preview()
Any help would be appreciated! :D

Return to “Python”