animator-video-reference icon indicating copy to clipboard operation
animator-video-reference copied to clipboard

Video Never Processes

Open Lost-10 opened this issue 3 years ago • 7 comments

When I start processing a video, it creates a new image then a new layer then completely freezes. I don't know if it's just taking very long, but I don't have the patience to wait and see. The videos I've tried aren't even 1MB and have 88 frames, but the same problem happened on both. krita_Gqn6S1UqQL

It detects ffmpeg, I had it directly located in the Krita bin folder, but I added it to my environmental variables when I noticed this happening.

Lost-10 avatar May 09 '21 19:05 Lost-10

You are gonna have to provide more information. Like what platform are you using? What krita are you using(appimage, flatpak, ppa)? Do you see the frames being dumped in the folder? What version of ffmpeg? What format is the video you are importing?

KnowZero avatar May 18 '21 06:05 KnowZero

You are gonna have to provide more information. Like what platform are you using? What krita are you using(appimage, flatpak, ppa)? Do you see the frames being dumped in the folder? What version of ffmpeg? What format is the video you are importing?

I just downloaded the latest version from the site using the Windows 64 installer, and I'm using ffmpeg 4.4 on an MP4 format video.

This is what happens whenever I try to do it, qNdAwDzW5W

Lost-10 avatar May 22 '21 16:05 Lost-10

Since the first frame is imported, it means that ffmpeg is exporting the frames correctly and Krita is importing them.

Here is a few things you can try:

  1. Move the video to a completely new folder. If there is an images folder in the same directory, this plugin can break or destroy that folder. As mentioned in issue #12 . So move the video to its own folder to insure there is no images folder there. (you may have an images folder from a broken build)

  2. If the issue still happens, go check the images folder in this new path and see if all the frames are there. If they are, try importing the frames manually through the image sequence import.

  3. If the issue continues to happen, see if you can import a smaller amount of frames.

KnowZero avatar May 22 '21 18:05 KnowZero

@KnowZero I'm having the same issue.

Windows 10, Krita 4.4.5, just installed this plugin today.

I tried moving the video into its own folder, and that did help in making sure the frames show up in the images folder -- but it seems to hang when it tries getting the rest of the frames after the first into Krita.

JNotelddim avatar Jan 27 '22 00:01 JNotelddim

Seems to me like maybe the images are being deleted prematurely, like they haven't actually made it into the krita timeline yet at this point?

https://github.com/scottpetrovic/animator-video-reference/blob/5924ea7f91199d3f7d4c7f9c3e8087beb2e19d6e/animationimporter/animationimporter.py#L226

Also, I wonder if it's hanging because it's trying to delete the folder while the folder is in use? If I let the plugin keep "processing" and try to delete the empty "/images" folder after the plugin has deleted the frames, then I get an OS error about not being able to delete it while it's in use.

JNotelddim avatar Jan 27 '22 00:01 JNotelddim

@JNotelddim I highly suggest updating to latest Krita 5.0.2, the feature was implemented natively without need for a plugin. There are also a TON of animation improvements and fixes.

If you wish to continue using Krita 4 for whatever reason, you can try commenting out the line 226-229 and then handle it manually. Or set up a QTimer to check on the frames.

KnowZero avatar Jan 28 '22 06:01 KnowZero

@KnowZero hey that's great to know, thanks a ton!

JNotelddim avatar Jan 28 '22 16:01 JNotelddim