Topic: Ugoira conversion clarification

Posted under Tag/Wiki Projects and Questions

I want to ask clarification on the subject of ugoira conversion, since I've been having my uploads deleted en masse (even years old, though not all) even though the parameters used for conversion haven't changed in years.

It's not that I mind them being deleted, it's just that in the past couple of days, no matter what alterations I made they have been corrupted for some users and deleted on those grounds. I've tried variable and constant frame rate both with and without all kinds of different parameters but it just doesn't seem satisfactory as evident by even the latest upload being deleted.

So I want to ask the staff to provide instruction on the satisfactory parameters that should be used so it works for majority (all being impossible) of the users. (Don't mention APNG since it has 20mb limit I'm talking about those that have to be converted to video).

Maybe try asking @Mairo directly since they seem to be the most knowledgeable when it comes to conversion and was also the one replacing your posts?

Mairo

Janitor

Ugoiras are PNG or JPG image sequences, so this isn't necessarily about ugoiras specifically, but using image sequence as input with FFmpeg or other software.
And you are either fucking up commands extremely badly or something is outdated, because old uploads seem fine, new uploads are all corrupted and have timing related issues in header, some players assume playback speed and some straight up fail.

Also in case of last post I already rejected and deleted four occasions, why are you uploading GIF to JPG image sequence (ugoira) to WebM conversion, when we have artist on this site, verified and they have uploaded the original GIF here already?

As I said, same commands were used forever since they were hard-coded. But then suddenly you told me that vfr is no good and I should use cfr but those kept getting deleted too.

As for the deletion, it's an updated version with more details and it's a video because it's too big for apng.

So yeah, go ahead and provide satisfactory parameters. You always say "no that bad" but never stated what is good.

Updated

Mairo

Janitor

aobird said:
As I said, same commands were used forever since they were hard-coded. But then suddenly you told me that vfr is no good and I should use cfr but those kept getting deleted too.

As for the deletion, it's an updated version with more details and it's a video because it's too big for apng.

So yeah, go ahead and provide satisfactory parameters. You always say "no that bad" but never stated what is good.

Something has changed, because your new uploads, for weeks, have been corrupted.
It's not even about vfr or cfr, they are straight up borked. You should see how many comments people have left how nothing works and many of your posts have been flagged for being broken/corrupted by yet more users.

Answer is, stop fucking up the files. I have no idea what you are fucking up on your end.

https://github.com/e621-ReBot/e621-ReBot-v3/commits/master/e621%20ReBot%20v3/Modules/Converter/Module_FFMpeg.cs

Since 2021 up until 23 Nov 2025 it was:

FFmpeg.StartInfo.Arguments = $"-hide_banner -y -f concat -i {TempFolderName}\\input.txt -c:v libvpx-vp9 -pix_fmt yuv420p -lossless 1 -an -row-mt 1 \"{FullFolderPath}\\{UgoiraFileName}.webm\"";

when it got changed to

FFMpeg.StartInfo.Arguments = $"-hide_banner -loglevel error -progress pipe:1 -nostats -y -f concat -i \"{TempFolderName}\\input.txt\" -c:v libvpx-vp9 -pix_fmt yuv420p -lossless 1 -row-mt 1 -an \"{FullFolderPath}\\{UgoiraFileName}.webm\"";

and then 3 days later to

FFMpeg.StartInfo.Arguments = $"-hide_banner -loglevel error -progress pipe:1 -nostats -y -f concat -i \"{TempFolderName}\\input.txt\" -vsync vfr -c:v libvpx-vp9 -pix_fmt yuv420p -lossless 1 -row-mt 1 -an \"{FullFolderPath}\\{UgoiraFileName}.webm\"";

then on 9th Dec 2025

FFMpeg.StartInfo.Arguments = $"-hide_banner -loglevel error -progress pipe:1 -nostats -y -framerate {avgFPS} -i \"{FullFolderPath}\\{UgoiraFileName}%d.{ext}\" -r {avgFPS} -c:v libvpx-vp9 -pix_fmt yuv420p -crf 8 -cpu-used 2 -an \"{FullFolderPath}\\{UgoiraFileName}.webm\"";

with the latest

FFMpeg.StartInfo.Arguments = $"-hide_banner -loglevel error -progress pipe:1 -nostats -y -framerate {avgFPS} -i \"{FullFolderPath}\\{UgoiraFileName}%d.{ImageExtension}\" -r {avgFPS} -c:v libvpx-vp9 -g 1 -pix_fmt yuv420p -crf 8 -cpu-used 2 -an \"{FullFolderPath}\\{UgoiraFileName}.webm\"";

It got changed because you said variable is bad, in addition I read that lossless and row-mt can cause issues.

There was no change to commands other than that as you can verify on github.
The only other relevant change is instead of downloading the zip, extracting it and using those images. I download the supposed originals and use that.

Now, once again I ask, please provide satisfactory commands so that I could maybe move further.

Updated

It may be a reach but maybe your HD and/or RAM is getting faulty? Have you tried to make these conversions on another PC?

notknow said:
It may be a reach but maybe your HD and/or RAM is getting faulty? Have you tried to make these conversions on another PC?

It's not that kind of error. The files work for me and for majority of the users. They had hundreds of faves, only a few report that "it won't play".

Mairo

Janitor

aobird said:
Now, once again I ask, please provide satisfactory commands so that I could maybe move further.

No, I'm not your teacher and I'm not paid for my time.
If your uploads are broken, I will keep deleting them. That simple.

If you feel I'm being unreasonable, there is report button on my profile. I will not respond to this any further.

Wow, very mature. For the time you spent writing that you could have helped me and that way both of us wouldn't need to waste more time. I don't see the logic in refusing to help me fix the issue.

aobird said:
Wow, very mature. For the time you spent writing that you could have helped me and that way both of us wouldn't need to waste more time. I don't see the logic in refusing to help me fix the issue.

Mairo isn't your personal IT department, my dude. you really can't expect him to sit down and troubleshoot whatever's wrong with your setup that's causing files to corrupt.

Original page: https://e621.net/forum_topics/60863