-
-
Notifications
You must be signed in to change notification settings - Fork 991
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
[ASK] How to convert local downloaded ugoira zip into GIF/WebM/MP4/etc? #453
Comments
Assuming it is still possible to access the ugoira metadata on Pixiv, you can convert your already downloaded ZIP files by invoking gallery-dl with the same Pixiv URLs and some "special" options:
|
Is it possible if the gallery itself is removed by author or bad ID? |
Kind of, but not with gallery-dl. You need to somehow replicate the process in postprocessor/ugoira.py, except you won't have any frame-delay data available; unless you used Basically it's
You could also take a look at https://github.com/mikf/ugoira-conv, but that hasn't seen any updates in years. Or maybe you can find the animation on Danbooru. They store the original ZIP with frame-delay data. |
I see. As your example above, is it possible to perform single illustration instead the artist url? Your example is artist URL. |
Yes, that will work as well. And another thing that might be important: |
Thanks. Question answered. |
Uh oh. I have a trouble. It deleted the zip. Would you please give me an example of gallery-dl conf for this |
Uh, what? You mean like this? {
"extractor":
{
"base-directory": "./gallery-dl/",
"archive": "./gallery-dl/archivefile.db",
"cookies": null,
"cookies-update": false,
"proxy": null,
"skip": true,
"sleep": 0,
"path-restrict": "auto",
"path-remove": "\\u0000-\\u001f\\u007f",
"user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0",
"postprocessors": [
{
"name": "ugoira",
"whitelist": ["pixiv", "danbooru"],
"ffmpeg-twopass": true,
"ffmpeg-args": ["-c:v", "libvpx", "-crf", "4", "-b:v", "5000k", "-an"],
"keep-files": true
},
{
"name": "metadata",
"whitelist": ["danbooru", "yandere", "sankaku"],
"mode": "tags"
}
],
"artstation":
{
"external": false
},
"danbooru":
{
"username": null,
"password": null,
"ugoira": true
},
"deviantart":
{
"refresh-token": null,
"extra": false,
"flat": true,
"folders": false,
"journals": "html",
"mature": true,
"metadata": false,
"original": true,
"quality": 100,
"wait-min": 0
},
"exhentai":
{
"username": null,
"password": null,
"original": true,
"wait-min": 3.0,
"wait-max": 6.0
},
"flickr":
{
"access-token": null,
"access-token-secret": null,
"videos": true,
"size-max": null
},
"gelbooru":
{
"api": true
},
"gfycat":
{
"format": "mp4"
},
"idolcomplex":
{
"username": null,
"password": null,
"wait-min": 3.0,
"wait-max": 6.0
},
"imgur":
{
"mp4": true
},
"instagram":
{
"highlights": false
},
"kissmanga":
{
"captcha": "stop"
},
"nijie":
{
"username": null,
"password": null
},
"oauth":
{
"browser": true
},
"pixiv":
{
"username": null,
"password": null,
"ugoira": true
},
"reactor":
{
"wait-min": 3.0,
"wait-max": 6.0
},
"readcomiconline":
{
"captcha": "stop"
},
"recursive":
{
"blacklist": ["directlink", "oauth", "recursive", "test"]
},
"reddit":
{
"refresh-token": null,
"comments": 500,
"morecomments": false,
"date-min": 0,
"date-max": 253402210800,
"date-format": "%Y-%m-%dT%H:%M:%S",
"id-min": "0",
"id-max": "zik0zj",
"recursion": 0,
"user-agent": "Python:gallery-dl:0.8.4 (by /u/mikf1)"
},
"sankaku":
{
"username": null,
"password": null,
"wait-min": 3.0,
"wait-max": 6.0
},
"seiga":
{
"username": null,
"password": null
},
"tumblr":
{
"avatar": false,
"external": false,
"inline": true,
"posts": "all",
"reblogs": true
},
"twitter":
{
"content": false,
"retweets": true,
"videos": false
},
"wallhaven":
{
"api-key": null
},
"booru":
{
"tags": false
}
},
"downloader":
{
"part": true,
"part-directory": null,
"http":
{
"adjust-extensions": true,
"mtime": true,
"rate": null,
"retries": 4,
"timeout": 30.0,
"verify": true
},
"ytdl":
{
"format": null,
"forward-cookies": true,
"mtime": true,
"outtmpl": null,
"rate": null,
"retries": 4,
"timeout": 30.0,
"verify": true
}
},
"output":
{
"mode": "auto",
"progress": true,
"shorten": true,
"log": "[{name}][{levelname}] {message}",
"logfile": null,
"unsupportedfile": null
},
"netrc": false
} |
Should it be like this? {
"ugoira":
{
"keep-files": true
}
} or like this? {
"extractor":
{
"postprocessors": [
{
"keep-files": true
},
],
}
} Please correct me. |
Like this: {
"extractor":
{
"postprocessors": [
{
"name": "ugoira",
"keep-files": true
}
]
}
} You need (at least) the Remove the comma behind the object in the |
Thanks. That helps me a ton. |
The gallery is downloaded locally. How do I do to make video out of it so I can play it?
The text was updated successfully, but these errors were encountered: