You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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 sent
  • framerate: 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

LMS1xx 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)


  • No labels