Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

video delay whith ttyS0 #699

Open
leonelinocencio opened this issue Aug 2, 2021 · 1 comment
Open

video delay whith ttyS0 #699

leonelinocencio opened this issue Aug 2, 2021 · 1 comment

Comments

@leonelinocencio
Copy link

I'm using PICAMERA v1.13 to send an h264 video in the "ttyS0" with a raspberrypi zero, but the video appears with a delay of 1s or more.
Using example 3.13. Recording to a network stream, I don't have this delay in bronser.
Below command used.

import pickup

os.system("sudo chmod o+rw /dev/ttyS0")
os.system("sudo stty -F /dev/ttyS0 2000000")
os.system("sudo stty -F /dev/ttyS0 raw")

camera = picamera.PiCamera()
camera.resolution = (640, 480)
camera.start_recording('/dev/ttyS0', bitrate=500000)
camera.wait_recording(60)
camera.stop_recording()

Using the raspivid terminal command, this delay is less than 100ms.
raspivid -t 0 -n -ih -w 1280 -h 720 -hf -vf -fps 30 -b 500000 -o /dev/ttyS0

I'm trying to have the video on the control of skydroid T10 obtained via camera with raspberry pi zero.

@Esser50K
Copy link

Esser50K commented Aug 9, 2021

humm not sure what could be causing this and it's probably not the answer you are looking for but there is the picameleon project that let's you access the raspberryPi from other processes and even remotely. Not sure if that's what you want though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants