So I did this and got an error on the last line. I've posted the error below. I think the problem lies within flt.get_frame(0) but not sure how to resolve it. The clip description before and after bm3d is also shown.
Quote:
Shape of Numpy Array
(256, 256)
VideoNode
Format: RGB24
Width: 256
Height: 256
Num Frames: 1
FPS: 24
Flags: NoCache IsCache
###########
VideoNode
Format: RGB24
Width: 256
Height: 256
Num Frames: 1
FPS: 24
Flags: NoCache
Traceback (most recent call last):
File "test.py", line 28, in <module>
I = np.dstack([np.asarray(flt.get_frame(0).get_read_array(i)) for i in range(2)])
File "test.py", line 28, in <listcomp>
I = np.dstack([np.asarray(flt.get_frame(0).get_read_array(i)) for i in range(2)])
File "src\cython\vapoursynth.pyx", line 1244, in vapoursynth.VideoNode.get_frame
vapoursynth.Error: too many indices for array
|