I'm trying to convert a GIF to WEBM with ffmpeg. I've used it plenty before and it's worked fine for AVIs, I feel like I've gotten the hang of it, but no matter what options I throw at it, I cannot convert this GIF. It always says "Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height". It says that even when I don't specify any of those parameters.
help please?
pic unrelated
What gif and command?
Maybe you are using the wrong quality settings?
ffmpeg -i the.gif -c:v libvpx -b:v 1M -c:a libvorbis the.webm
Try something like this?
>>327040
didn't work
>>327038
I tried these commands:
ffmpeg -i disgrace.gif -codec:v libvpx -quality good -cpu-used 0 -b:v 2.5M -qmin 9 -qmax 34 -maxrate 2.7M -bufsize 3.5M -threads 4 -g 96 final.webm
ffmpeg -i disgrace.gif -codec:v libvpx -quality good -cpu-used 0 -b:v 2.5M -qmin 9 -qmax 34 -maxrate 2.7M -bufsize 3.5M -threads 4 final.webm
ffmpeg -i disgrace.gif -codec:v libvpx -quality good -cpu-used 0 -b:v 2.5M -qmin 9 -qmax 34 -bufsize 3.5M -threads 4 -g 96 final.webm
ffmpeg -i disgrace.gif -codec:v libvpx -quality good -cpu-used 0 -b:v 2.5M -threads 4 final.webm
ffmpeg -i disgrace.gif -codec:v libvpx -quality good -b:v 2.5M -threads 4 final.webm
ffmpeg -i disgrace.gif -codec:v libvpx -b:v 2.5M -threads 4 final.webm
ffmpeg -i disgrace.gif -codec:v libvpx -quality good -cpu-used 0 -b:v 2.5M final.webm
ffmpeg -i disgrace.gif -codec:v libvpx -quality good -b:v 2.5M final.webm
ffmpeg -i disgrace.gif -codec:v libvpx -b:v 2.5M final.webm
ffmpeg -i disgrace.gif -codec:v libvpx final.webm
ffmpeg -i disgrace.gif -codec:v libvpx -b:v 2.5M -crf 12 final.webm
ffmpeg -i disgrace.gif -c:v libvpx -b:v 1M -c:a libvorbis final.webm
the GIF is too big to post, that's why I want to convert it
it's just a dumb thing insulting anime
>>327035
perhaps convert the gif to something else, like an avi? some gifs have odd settings that confuse conversion programs.
>>327044
> convert it to a .avi ...
and THEN convert the avi to a .webm, is what i meant.
>>327043
I'm pretty sure most of those should work.
I tried a few on a .gif and they worked fine.
They all give that error? Maybe the file is corrupt?
Are you using the latest version of ffmpeg?
>>327046
they all give that error, and also "Transparency encoding with auto_alt_ref does not work", but I figured that was just it being weird
maybe that's causing the more fatal error?
I have version "ffmpeg version N-82597-gd316b21"
no idea which one that is
I just downloaded it again, about to copy it over and test it
>>327051
post the gif on a pomf clone
it probably doe shave something weird about it like the other anon says
>>327051
nope, same errors
>>327052
>post the gif on a pomf clone
a what?
I remember something about pomf.cat (I think), that URL leads nowhere, what am I looking for?
This might or might not help, but recently I was running into errors with converting .gif to .webm and someone told me you always had to set the rate which is why it was failing
The problem is I didn't know how to do that so couldn't test it.
>>327056
https://github.com/tsudoko/long-live-pomf/blob/master/long-live-pomf.md
RIP, OP.
>>327058
https://void.cat/775ef67f24ea47e4a190de3777a597d3bbcc390c&v
>>327073
Works on my machine no problem. Even with one of those commands you tried.
werd
>>327076
well thanks
I had an idea, maybe it was the batch file that came with the version of ffmpeg I had before I just upgraded, but it pretty much just sets the path temporarily; I ran it with path specification myself and it still didn't work
guess I'm just cursed or something