...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
video = ACCESS({source='Video',
wrapper='GenericPull',
transport='none',
protocol='FFmpegVideoStream',
datahandler='Tuple',
options=[
['streamUrl', 'video.avi'],
['timeStampMode', 'filetime'],
['useDelay', 'true']
],
schema= [
['image', 'IMAGEJCV'],
['starttimestamp', 'STARTTIMESTAMP'],
['endtimestamp', 'ENDTIMESTAMP']
]})
/// or shorter, as a source operator:
video = FFMPEGVIDEO({source='Video', options=[['streamUrl', 'video.avi'],
['timeStampMode', 'filetime'],
['useDelay', 'true']]})
output = SENDER({sink='Sink',
wrapper='GenericPush',
transport='none',
protocol='FFmpegVideoStream',
dataHandler='Tuple',
options=[ ['framerate', '30.0'],
['streamUrl', 'udp://127.0.0.1:12345'],
['bitrate', '400000'],
['format', 'h264'],
['codec:tune', 'zerolatency'],
['codec:preset', 'ultrafast']
]
},
video) |
...