Closed AlbertoMQ closed 4 years ago
The video writer isn't being reset if the same instance is used multiple times. This should be reset either on entering / exiting stabilize process.
The resulting output videos are 'stable_1.avi'
& 'stable_3.avi'
(no output for 'stable_2.avi'
)
import tempfile
from vidstab import VidStab
import vidstab.download_videos as dl
TMP_DIR = tempfile.TemporaryDirectory()
VID_PATH = f'{TMP_DIR.name}/test_video.mp4'
dl.download_ostrich_video(VID_PATH)
stabilizer = VidStab()
stabilizer.stabilize(VID_PATH, 'stable_1.avi')
stabilizer.stabilize(VID_PATH, 'stable_2.avi')
# Reset writer
stabilizer.writer = None
stabilizer.stabilize(VID_PATH, 'stable_3.avi')
plant_ordered.zip
The second time we run stabilize we get no output. I was trying to apply second transform onto another dataset, but am doing on the same just to check it's not an issue with my data.
Installed using pip, running on Ubuntu 18