AdamSpannbauer / python_video_stab

A Python package to stabilize videos using OpenCV
https://adamspannbauer.github.io/python_video_stab/html/index.html
MIT License
682 stars 118 forks source link

Batch file stabilization using globs breaks #114

Open IEWbgfnYDwHRoRRSKtkdyMDUzgdwuBYgDKtDJWd opened 4 years ago

IEWbgfnYDwHRoRRSKtkdyMDUzgdwuBYgDKtDJWd commented 4 years ago

Trying to use the custom overlays in a batch script that loops files in a folder, only problem is it looks like it doesn't completely release the capture/stabilizer and it flows into the next video window, can see it using playback it will keep the last overlay frames from the last batch video.

Tried using sleep, tried cv2 destroying all, I am sure that I just suck at python and there is probably an easy way to end the stabilizer def each loop, but just making sure.

Anyone had this issue? It gives an error citing window dimensions, so its caught up on the last video it seems. If I change order of videos it breaks on the new one, so its not an issue with the video itself.

thanks.

AdamSpannbauer commented 4 years ago

Thanks for reporting I’ll take a look at it before the end of the weekend.

IEWbgfnYDwHRoRRSKtkdyMDUzgdwuBYgDKtDJWd commented 4 years ago

I'm not even sure it is a bug, like I said, I probably just suck at python. I have not had any issue running the module for single videos (some strange black border artifacts using overlay, cant get it to look clean like the ostrich example for some reason) other than that its been great. just problem with batching is all. thanks for response.