Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I know the windows .bat file is old but #1

Open
bearachute opened this issue Jul 25, 2017 · 2 comments
Open

I know the windows .bat file is old but #1

bearachute opened this issue Jul 25, 2017 · 2 comments

Comments

@bearachute
Copy link

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

@SleepProgger
Copy link
Owner

SleepProgger commented Jul 25, 2017

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants