Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
guCiel opened this issue Mar 23, 2022 · 3 comments
Open

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

guCiel opened this issue Mar 23, 2022 · 3 comments
Assignees
Labels
confirmed question Further information is requested

Comments

@guCiel
Copy link

guCiel commented Mar 23, 2022

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.

@buresu
Copy link
Owner

buresu commented Mar 23, 2022

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 ec6bf44

@buresu buresu self-assigned this Mar 23, 2022
@buresu buresu added question Further information is requested confirmed labels Mar 23, 2022
@guCiel
Copy link
Author

guCiel commented Mar 25, 2022

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.

@buresu
Copy link
Owner

buresu commented Mar 25, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants