my_ffmpeg_utils icon indicating copy to clipboard operation
my_ffmpeg_utils copied to clipboard

I know the windows .bat file is old but

Open bearachute opened this issue 8 years ago • 2 comments

It seems with the newer version of ffmpeg and the windows script it fails creating the palette.

I've attached a screenshot of the error, I'm not finding much about it on the web, maybe I downloaded the wrong version of ffmpeg, but I'm unsure, it seems to fail creating the palette file maybe because of permissions on windows?

Anyways thanks for the script, I run a blog that uses a lot of gifs and this script works perfect. ffmpegerror

bearachute avatar Jul 25 '17 04:07 bearachute

I don't have a windows machine for testing at the moment. So some ideas which might fix it:

  • If you have the script located somewhere where you don't have write permissions that might be the reason. I updated the script to save the palette image into the temp folder. Please try if it works now. Otherwise try the old script and move it somewhere were you have write permissions.

  • The palette generation part is newish in ffmpeg (2 years or so). Try it with the neweset version from the ffmpeg website.

If that doesn't fix it please report back and i'll see if i can test it with wine.

To test if your movie might be corrupt try running: ffmpeg -i yourmovie.mp4 yourgif.gif

SleepProgger avatar Jul 25 '17 18:07 SleepProgger

I tested it in wine and it looks like newer ffmpeg versions won't return proper error codes in the newer version (why ever). If the previous suggestions won't fix your problem try the version of the script at: https://gist.github.com/SleepProgger/5a317e60a8f51999e2975bcec4752b60

SleepProgger avatar Jul 25 '17 19:07 SleepProgger