GSPipeline refresh
in
Contributed Library Questions
•
1 year ago
Hi All!
Working on a project with live video streams, came to decide that GSVideo GSPipeline and VLC's Gstreamer functionality would be a good workflow. Eventually ill set it up using vlc's command line tools to streamline the process.
After a lot of (somewhat blind) trial and error I found a solution that actually works! I start up a capture stream in vlc, grabbing my screen at 5fps, and sending through http on my local ip address, encapsulated in MPEG 1, with the video transcoded as mp2v 512kbps. This stream is then captured in processing with the GSPipeline Capture example with this string:
- pipeline = new GSPipeline(this, "wininetsrc location=http://xx.xx.xx.xx:1234 ! mpegdemux ! mpeg2dec ! ffmpegcolorspace");
And I can see my mac screen on my pc!
However, it seems that the refresh rate is somewhat inconsistant sometimes I see changes within a half second, other times it is more like 6-8 seconds before updates, sometimes even longer.
Are there adjustments to either my vlc server or the processing client that could make for a more reliable solution? I think in the end I will put the pipeline reading and updating on a seperate thread to reserve power for other parts of the application, but I would like a closer to realtime video stream if possible.
Thanks!
ak
1