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

result cannot save #22

Closed
zxbgoat opened this issue Oct 9, 2020 · 4 comments
Closed

result cannot save #22

zxbgoat opened this issue Oct 9, 2020 · 4 comments

Comments

@zxbgoat
Copy link

zxbgoat commented Oct 9, 2020

I used your code on a video, but it showed this error:

2020-10-09 19:01:42.440 python[34438:785101] mMovieWriter.status: 3. Error: Cannot Save
@bryceburrows
Copy link

heya - what kind of video? also..mac or pc?

@zxbgoat
Copy link
Author

zxbgoat commented Oct 10, 2020

mp4 video, an I used mac. I've locate the problem, in the 203 line of your code is:

vid_writer = cv2.VideoWriter(save_path, cv2.VideoWriter_fourcc(*opt.fourcc), fps, (w, h))

but in the 111 line, the value of save_path is:

save_path = str(Path(out))

It's actually a directory, so error occurred.

@mikel-brostrom
Copy link
Owner

Hi @zxbgoat & @bryceburrows !

I fixed the video saving bug now. Let me know if it works for you!

@bryceburrows
Copy link

cool - fix it in my copy a while ago - should have uploaded my changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants