You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
End of video sometimes(?) cut off when appending PNG data to ffmpeg writer #304
with imageio.get_writer(location, format='ffmpeg', mode='I', codec= fps=1000/duration, quality=6) as writer:
for i in range(foo):
writer.append_data(imageio.imread(some_data, 'png'))
or also replacing the context manager with imageio.get_writer(location, format='mp4', mode='I', fps=1000/duration, quality=6)
The result is that what should be a perfect loop has a noticeable skip, which I believe is caused by the end of the video being skipped over.
I am not sure if this can be attributed to imageio. FFMPEG encodes using keyframes and my feeling is that the end not being aligned with a keyframe causes an "inaccurate" ending. But I'd love to be proven wrong on this. Maybe @kuchi ?
This could either be what I mentioned in the above post, or the estimate of the number of frames could be 1 frame short, which was not uncommon. The latter will be fixed wirth #425.
Activity
almarklein commentedon Mar 12, 2018
I am not sure if this can be attributed to imageio. FFMPEG encodes using keyframes and my feeling is that the end not being aligned with a keyframe causes an "inaccurate" ending. But I'd love to be proven wrong on this. Maybe @kuchi ?
almarklein commentedon Feb 5, 2019
This could either be what I mentioned in the above post, or the estimate of the number of frames could be 1 frame short, which was not uncommon. The latter will be fixed wirth #425.