Skip to content

rtsp camera stream 3 seconds delay  #106

@spiderdab

Description

@spiderdab

Hi, I really don't know where the issue applies, but in Processing 3.5.3, with this library, using this code:

import processing.video.*;
Movie movie;

void setup() {
  //size(1280, 720, P2D);
  size(640, 360, P2D);
  Movie.supportedProtocols[0] = "rtsp";
  println(Movie.supportedProtocols[0]);
  try {
    movie = new Movie(this,"rtsp://192.168.1.10:554/user=admin&password=1234&channel=1&stream=0.sdp?real_stream");
    movie.play();
  } 
  catch (Exception e) {
    println(e);
  }
}

void movieEvent(Movie m) {
  m.read();
}

void draw() {
  background(0);
  image(movie, 0, 0, width, height);
}

the video is displayed 3 seconds later, on every resolution, fps or bandwidth i set the camera.
this on LinuxMint 19.1 either with the integrated i915 intel graphic card, and the GeForce GTX 850M.
The strange thing is that on a windows guest, virtualized on the same host, using CMS software (suggested by the cam manufactor) there is no lag.

Any suggestion?
maybe something dealing with buffering?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions