pynaviz.video#

class pynaviz.video.PlotTsdTensor(data: TsdTensor, index=None, parent=None)[source]#

Bases: PlotBaseVideoTensor

Video tensor plot for Pynapple TsdTensor objects.

class pynaviz.video.PlotVideo(video_path: str | Path, t: ndarray[tuple[int, ...], dtype[_ScalarType_co]] | None = None, stream_index: int = 0, index=None, parent=None)[source]#

Bases: PlotBaseVideoTensor

Video visualization class for rendering video files synchronized with a time series.

This class uses shared memory and multiprocessing to efficiently stream frames from disk to GPU via pygfx. It also supports real-time interaction and frame-based control.

close()[source]#

Cleanly close shared memory, worker, and background thread.

property data#

Read-only access to the video data handler.

Modules