video_streamer_vlc
Public Member Functions | Public Attributes | List of all members
VlcStream Class Reference

#include <VlcStream.hpp>

Public Member Functions

 VlcStream (std::string sout, int fps, int width, int height)
 
virtual ~VlcStream ()
 
bool write (cv::Mat &image, int64_t timestamp=1)
 
void start ()
 
void stop ()
 

Public Attributes

pthread_mutex_t imagemutex
 
cv::Mat imagebuf
 
cv::Mat pixbuf
 
int64_t timestamp
 

Constructor & Destructor Documentation

◆ VlcStream()

VlcStream::VlcStream ( std::string  sout,
int  fps,
int  width,
int  height 
)

Constructor of the streamer class

Parameters
soutsout string as defined for vlc, see following links for documentation: https://wiki.videolan.org/Transcode/ http://www.videolan.org/doc/vlc-user-guide/en/ch04.html http://www.videolan.org/doc/videolan-howto/en/ch09.html http://www.videolan.org/doc/streaming-howto/en/ch04.html
fpsframes per second of the input from opencv
widthwidth of the input in pixels
heightheight of the input in pixels

◆ ~VlcStream()

VlcStream::~VlcStream ( )
virtual

Member Function Documentation

◆ start()

void VlcStream::start ( )

start streaming thread (vlc instance "play") automatically called by the constructor

◆ stop()

void VlcStream::stop ( )

stop streaming (vlc instance "stop")

◆ write()

bool VlcStream::write ( cv::Mat &  image,
int64_t  timestamp = 1 
)

write the next image to the stream

Member Data Documentation

◆ imagebuf

cv::Mat VlcStream::imagebuf

◆ imagemutex

pthread_mutex_t VlcStream::imagemutex

◆ pixbuf

cv::Mat VlcStream::pixbuf

◆ timestamp

int64_t VlcStream::timestamp

The documentation for this class was generated from the following files: