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

StopIteration exception end of video file and Make video does not output video #15

Open
Sweta-codes opened this issue Feb 11, 2019 · 4 comments

Comments

@Sweta-codes
Copy link

After the traffic_capacity.py reaches the end of the 'input.mp4' video file, it throws a StopIteration exception as follows:

Traceback (most recent call last):
File "traffic_capacity.py", line 72, in
main()
File "traffic_capacity.py", line 61, in main
cap.next()
StopIteration

Also the make_video.sh file is not creating an output video for traffic capacity example.

@creotiv
Copy link
Owner

creotiv commented Feb 11, 2019 via email

@Sweta-codes
Copy link
Author

I have cloned the repository with your latest commit with a try-catch block, I'm still getting the StopIteration exception.

Also, I do have ffmpeg installed and the make_video.sh script is running perfectly fine with the traffic counting project, just not with traffic capacity.

@Sweta-codes
Copy link
Author

Trying to run make_video.sh gives the following exception:

Could find no file with path './out/processed_%04d.png' and index in the range 0-4
./out/processed_%04d.png: No such file or directory

@harshsp31
Copy link

@Sweta-codes @creotiv I face the same error with make_video.sh
Did you guys find any solution?

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