VideoWriterInventor¶
-
MLModule
¶ author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLVideoWriter
definition MLVideoWriter.def see also VideoWriterML
inherits from OffscreenRenderer
keywords video
,movie
Purpose¶
The VideoWriterInventor
module is derived from the OffscreenRenderer
module. It renders a given Open Inventor scenes and writes the resulting images to a video stream.
Usage¶
Connect an Open Inventor scene to the input of the VideoWriterInventor
module. Specify the size and frame rate for the target video. Use the Create New Video
field to open a video stream. Trigger the Write Frame
field to render the attached scene and write a single frame into the video stream. When finished, trigger the Finish Video
field to close the video stream.
Details¶
Due to Unicode limitations of the underlying OpenCV video file handling, a temporary file is used for recording under Windows. The resulting video file is renamed to the Filename
after recording is finished.
Additionally, if one of the parent directories contains non-ASCII characters, the current working directory of the main application process is changed to the directory used in Filename
intermediately.
Parameter Fields¶
Field Index¶
availableFrameQueueSpace : Integer |
Finish Video : Trigger |
selectedCodec : String |
availCodecsList : String |
fourcc : String |
stencilBuffer : Bool |
bgColor : Color |
Frames Per Second : Integer |
supported : Bool |
bufferType : Enum |
Image Format : String |
update : Trigger |
Create New Video : Trigger |
isImageSourceValid : Bool |
updateAvailableFrameQueueSpace : Trigger |
Current Error : String |
isVideoFileOpen : Bool |
Write Frame : Trigger |
Duration (in seconds) : Float |
pixelScale : Float |
Write Images Instead Of Video : Bool |
enableMultiSampling : Bool |
quality : Float |
writeFrameFPS : Double |
Filename : String |
renderFPS : Double |
Written Frames : Integer |
Visible Fields¶
Current Error¶
-
name:
currentError
, type:
String
, persistent:
no
¶ Shows the current error or an empty string if no error occurred.
Written Frames¶
-
name:
frameCounter
, type:
Integer
, persistent:
no
¶ Shows the number of written frames.
Duration (in seconds)¶
-
name:
duration
, type:
Float
, persistent:
no
¶ Shows the duration of the video in seconds.
Frames Per Second¶
-
name:
framesPerSecond
, type:
Integer
, default:
30
¶ Sets the frame rate in frames per second.
Finish Video¶
-
name:
finishVideo
, type:
Trigger
¶ When pressed, the current (open) video stream is closed.