The VideoStream protocol handler allows sending a video stream to a remote location. It is write-only and can also be used to write video files.
Options
streamurl:
The target URL, where the video stream will be sentframerate:
The frame rate, with which the stream will be sent. If writing to a file, this is the playback frame rate (optional)
Example
This example shows how to grab a video stream from a webcam and stream it to a remote client:
PQL
VideoStream Protocol Handler
video = ACCESS({source='Video', wrapper='GenericPull', transport='IntegratedCamera', protocol='none', datahandler='Tuple', options=[['id', '0']]}) output = SENDER({sink='Sink', wrapper='GenericPush', transport='none', protocol='VideoStream', dataHandler='Tuple', options=[ ['framerate', '30.0'], ['streamUrl', 'udp://192.168.178.105:8085'] ] }, video)