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

Using libcamera-vid #1010

Closed
cedricve opened this issue Jun 29, 2022 · 4 comments · Fixed by #1057
Closed

Using libcamera-vid #1010

cedricve opened this issue Jun 29, 2022 · 4 comments · Fixed by #1057

Comments

@cedricve
Copy link

Describe the feature

Description

I'm trying to inject a raspberry pi camera (h264) stream into FFMPEG from within the rtsp-simple-server.yaml file. When running this from outside the container this works as expected, the stream is being forwarded to the rtsp server, and I can SETUP a connection from VLC.

libcamera-vid -t 0 --inline -o - | ffmpeg -i pipe: -c copy -f rtsp rtsp://localhost:$RTSP_PORT/$RTSP_PATH

However when trying to run this from within the config, I'm getting a series of exit code 0.

cam:
  runOnInit: libcamera-vid -t 0 --inline -o - | ffmpeg -i pipe: -c copy -f rtsp rtsp://localhost:$RTSP_PORT/$RTSP_PATH
  runOnInitRestart: yes

Any thoughts? I looked at the examples here (https://github.com/aler9/rtsp-simple-server#from-a-raspberry-pi-camera) but this is no longer applicable I assume (dont work with latest version)

@stevewells20
Copy link

stevewells20 commented Jul 2, 2022

Here is what I have working:

rtsp-simple-server.yml

paths:
cam:
runOnInit:
runOnInitRestart: yes

Then run in terminal:
libcamera-vid -t 0 --width 1280 --height 1080 --codec h264 -n --autofocus 1 --shutter 0 --vflip --hflip --profile=high --framerate 15 -o - | gst-launch-1.0 fdsrc ! h264parse ! rtspclientsink location=rtsp://$SERVER_IP:$SERVER_PORT/cam

That being said, it is extremely slow for me. I'm only getting like 1/7 FPS, not sure why.

@aler9
Copy link
Member

aler9 commented Jul 2, 2022

moved here #1011

@aler9 aler9 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 2, 2022
@aler9
Copy link
Member

aler9 commented Aug 16, 2022

Raspberry Pi camera is supported natively since v0.20.0. Please take a look at the README in order to enable the feature.

@github-actions
Copy link
Contributor

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants