Documentation/Nightly/Developers/CompressedVideo

From Slicer Wiki
Revision as of 19:47, 14 November 2019 by Sunderlandkyl (talk | contribs) (Add compressed video page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home < Documentation < Nightly < Developers < CompressedVideo


For the latest Slicer documentation, visit the read-the-docs.


Slicer Compressed Video Overview and Acknowledgements

Slicer provides infrastructure for visualizing, and managing compressed video frames. Compressed video data is stored in a volume node that performs automatic encoding and decoding as needed. In conjunction with the Sequences and SlicerIGSIO modules, it is also possible to playback and record video sequences in a compressed format. These compressed video sequences can be read and written to a video container format that can be played back in any supporting media player.

Authors:
Kyle Sunderland (PerkLab, Queen's University)
Andras Lasso (PerkLab, Queen's University)

Acknowledgements: Development was funded in part by CANARIE’s Research Software Program.

Architecture

Frame Management

vtkStreamingVolumeFrame
Contains the frame data and metadata information.
Represents the frame type, codec, decoded frame size, and a vtkUnsignedCharArray representing the encoded frame data.
The frame also contains a pointer to the previous frame that must be decoded before the current frame can be decoded.
vtkStreamingVolumeCodec
Decodes/Encodes the vtkStreamingVolumeFrame to convert the contents to/from vtkImageData.
When decoding a frame, it will compare against the last decoded frame and decode as many previous frames as necessary for the current frame.
vtkStreamingVolumeCodecFactory
Factory for registering availiable codecs.
Can create a new codec given a FOURCC.

MRML Nodes

vtkMRMLStreamingVolumeNode
Represents a volume created from a compressed video frame.
Automatically decodes the frame when it is set and GetImageData() is called, or if there are observers on the vtkImageData.

Available Codecs and Video Containers Formats

The following codecs and video container formats are available in Slicer.

Codecs

  • Uncompressed RGB: Included in Slicer
  • VP9: Included in the SlicerIGSIO extension


Video containers

  • MKV: Included in the SlicerIGSIO extension

Future Work

  • Add support for additional codecs
  • Add support for additional video container formats