StefanSalewski / gintro

High level GObject-Introspection based GTK3/GTK4 bindings for Nim language
MIT License
296 stars 20 forks source link

[question] RTSP #189

Open nodrygo opened 2 years ago

nodrygo commented 2 years ago

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 commented 2 years ago

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

piertoni commented 1 year ago

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 commented 1 year ago

tanks