ndi-python icon indicating copy to clipboard operation
ndi-python copied to clipboard

How could I get the whole video from a ndi resource?

Open guCiel opened this issue 3 years ago • 3 comments

According to your example, i can get image by recv_capture ,but it depends on how the while circulation fast. if a ndi resource is playing a video, how can I get a while video to save as v1.mov in local file.

Thank you for everything.

guCiel avatar Mar 23 '22 10:03 guCiel

Hi, are you using cv2.VideoWriter for video encoding? cv2.VideoWriter connot respect a time due to frame based. I added example for recieving with PyAV. Please see ec6bf446bb360dee0511434a8d3fdff0b5cbfab8

buresu avatar Mar 23 '22 13:03 buresu

it may really work for me, but my av package can not import like open method... maybe i use the wrong version. I will try it again, Thanks a lot.

guCiel avatar Mar 25 '22 02:03 guCiel

Thank you for trying it. I tried it in the following environment.

Windows11 x64
Python 3.10.4
ndi-python 5.1.1.1
PyAV 9.0.2

pip install ndi-python av
python recv_av.py

I hope to help you.

buresu avatar Mar 25 '22 04:03 buresu