animator-video-reference
animator-video-reference copied to clipboard
GIF frame counts are inaccurate, why not use -count_frames option?
The gif frame calculation if off.
I suggest changing:
self.cmd = "ffprobe -v quiet -print_format json -show_streams"
to
self.cmd = "ffprobe -v quiet -print_format json -count_frames -show_streams"
That will make nb_read_frames show up for gifs
and
self.ffprobeData_totalFrameCount = int(rawFrameRate.split("/")[0])
to
self.ffprobeData_totalFrameCount = int(self.ffprobeOutput['streams'][0]['nb_read_frames'])
Wich file contains the code to make the changes,
Don't quite sure if this is a change I have to make in krita or ffmpeg, and if is a notepad file or console programming.
I don't know much of programming, sorry if I'm not clear
extract the zip file and look for animationimporter.py
Then in notepad or any other text editing tool (not MS word) search for the lines and replace them with the changed lines.
Then save and zip it again. Then add the modified plugin to krita.
Pretty straight forward, but If you run into problems, i'll make a fork of this project with the changes so you can just download it.
Man THANKS that actually solve my problem.