-
-
Notifications
You must be signed in to change notification settings - Fork 216
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
Pixiv animated pictures (Videos, Gif, etc) becomes Image File #2610
Comments
Pixiv animations (usually?) are so-called ugoira. [explanation] tl;dr: custom format, it's not a video nor a gif. If Grabber were able to get proper support for this, especially if transferring from say Pixiv or official Danbooru to a personal Danbooru instance, that'd be super awesome! For portability and simple uses a download of the Pixiv-provided converted version should/could be offered as well in my humble opinion. :) |
AFAIK ugoira already download properly as ZIP and show as MP4 in the preview for Danbooru. |
Here is pretty simple solution : usual image url looks like: ugoira zip url: metadata for keyframes: So, here is very simple and dummy but working solution for downloading ugoira zip from pixiv: in model.js add this lines after
zip is basic 0001 0002 0003 etc frames, so it is possible to convert to gif using full color methodics (slice to 16x16...32x32 64x64 blocks per one 256-color pallete and merge to one full/true color gif file) or mp4/webm using ffmpeg. |
you could also inspect danbooru's code logic to see how danbooru handles it. Keep in mind though for any conversions that they should be optional imho and that generation has to take into account that ugoira's have per-frame timing. gifs don't have that iirc, but proper video containers do support VFR of course. |
Thanks a lot for that @uvhat, I didn't know Pixiv provided already-made ZIP files. I just updated the source code to download the ZIP properly and show the first frame as preview on Pixiv. The unfortunate part is that those ZIP don't contain the metadata so can't really be converted "as-is". As for converting to video (via |
2022-03-01.01-18-58.mp4
in browser Video/Gif works, but in Grabber Video/Gif becomes Image File (JPG/JPEG/PNG)
Grabber ver 7.7.1
Windows 10 21H2
The text was updated successfully, but these errors were encountered: