PPluginInputVideoStreamVLC (RTSP streams)

Description

Read video streams using VLC media player (support RTSP, RTMP, HTTP, HTTPS or local video file)

  • Product name: VLCInputVideoStream
  • Version: 1.0

How to read a stream using the VLC plugin?

To create a PInputVideoStream to retrieve images from a VLC input stream:

PResult ret = PInputVideoStream::Open("rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov", ivs);
// other example:
// PResult ret = PInputVideoStream::Open("https://www.youtube.com/watch?v=tXjVOFgNd5M?width=800&height=600", ivs);
if (ret.Failed()) ...

URI schemes accepted by this plugin:

- rtsp (rtsp://...)
- rtmp (rtmp://...)
- http (http://...)
- https (https://...)
- file (file:...)

Options on query string

  • width=W: width of the stream to retrieve, in pixels
  • height=H: height of the stream to retrieve, in pixels
  • protocol=P: protocol to be used; for example, P can be "rtsp-tcp", "rtsp-http" or "rtsp-http-port=80"
  • rgbSwapped: swap red and blue channels of the video stream
  • maxDelayMs: maximum time allowed to open a stream before time-out, in milliseconds (10 seconds by default). In case of time-out, PInputVideoStream::Open() will return an error.

Example:

PResult ret = PInputVideoStream::Open("rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov?maxDelayMs=30000", ivs);
if (ret.Failed()) ...

Get properties

None

Set properties

None