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

[question] RTSP #189

Open
nodrygo opened this issue Nov 25, 2021 · 3 comments
Open

[question] RTSP #189

nodrygo opened this issue Nov 25, 2021 · 3 comments

Comments

@nodrygo
Copy link

nodrygo commented Nov 25, 2021

Hello
I really like gintro and gstreamer and I wondered if it was possible to read a RTSP flux from webcam ?
any idea on subject ?
not really primordial

thank's in advance

@StefanSalewski
Copy link
Owner

Thanks for reporting. No idea currently, will investigate soon.

@piertoni
Copy link

piertoni commented Apr 1, 2023

This should be possible even with gst-launch-1.0 and a proper pipeline, so for sure is possible with this library.
Here an example of a pipeline that streams to m3u8 protocol (but you could adapt for any sink element)

gst-launch-1.0 -v rtspsrc location="rtsp://freja.hiof.no:1935/rtplive/_definst_/hessdalen03.stream" ! rtph264depay ! avdec_h264 ! clockoverlay ! videoconvert ! videoscale ! video/x-raw,width=640, height=360 ! x264enc bitrate=512 ! video/x-h264,profile=\"high\" ! mpegtsmux ! hlssink playlist-root=http://localhost:8080 location=segment.%05d.ts target-duration=5

Doing that in nim would be like gst.parseLauch("....")

@nodrygo
Copy link
Author

nodrygo commented Apr 1, 2023

tanks

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

3 participants