-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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] Retaining ugoira_meta(.json) and Losslessly Converting Ugoira to Video Format When Downloading Pixiv Ugoira #6909
Comments
You can achieve most, maybe even all, of what you listed with appropriate config and To get "simple" lossless ugoira, even {
"extractor": {
"pixiv": {
"ugoira": "original",
"postprocessors": [
{
"name": "metadata",
"event": "post,skip",
"filename": "{id}.json"
},
{
"name": "ugoira",
"metadata": true,
"keep-files": true,
"extension": "mkv",
"ffmpeg-args": ["-c", "copy"]
},
{
"name": "ugoira",
"mode": "archive",
"metadata": true,
"keep-files": false
}
]
}
}
} |
{
"name": "ugoira",
"metadata": true,
"keep-files": true,
"extension": "mkv",
"ffmpeg-args": ["-c", "copy"]
}, What does |
Thank you for your helpful reply. When using mkvmerge, it seems to use my temp directory. I want it to run in my RAM disk instead of the hard drive to speed up processing and reduce disk writes. Is there an option to change this setting? |
@Hrxn @tglsf |
It is still recommended that when using |
Use an f-string and access
|
This worked, thank you. |
Retaining ugoira_meta(.json) When Downloading Pixiv Ugoira
Currently, when downloading Pixiv ugoira, the program does not retain ugoira_meta(.json), which contains the duration of each frame. Sometimes, I need this metadata for manual image conversion.
When downloading ugoira as a ZIP file, no FPS or frame delay information is included. If exported as GIF or MP4, the program assigns a constant frame rate. However, some ugoira animations do not use a constant frame rate, which is why I perform manual conversion.
Losslessly Converting Ugoira to Video Format
ffmpeg -framerate 30 -i %6d.jpg -c copy out.mkv
ffmpeg -f concat -safe 0 -i inputlist.txt -sws_flags lanczos+bitexact+full_chroma_int+full_chroma_inp+accurate_rnd -fps_mode vfr -c libx264 -preset slower -crf 24 -color_range 2 -pix_fmt yuv420p -movflags +write_colr out.mp4
Content of inputlist.txt:
(Using this method, redundant frames can also be removed with -vf mpdecimate=hi=1:lo=1:frac=1:max=0:keep=0, further reducing storage space.)
The text was updated successfully, but these errors were encountered: