Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
26th May 2019, 10:57 | #1 | Link |
Registered User
Join Date: Sep 2016
Posts: 67
|
Handling Multiple Image Resolutions
I'm (ab)using VapourSynth for something it was probably not meant to do: batch image processing. But I've run into an issue: trying to feed a script images of different sizes, without resizing them to a common size, throws a "Size mismatch for frame X" error. Just poking around the Github, it seems this is a limitation of the ImageMagick reader, and I can't seem to get around it by reading images inside FrameEval.: https://github.com/vapoursynth/vapou...mwri/imwri.cpp
However, I have read that ffms2 in Vapoursynth supports "video streams that change resolution mid-stream". Other than running different scripts back-to-back or encoding images as a video, is there a workaround for feeding VS images with different resolutions? |
26th May 2019, 14:50 | #2 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
You can technically create one image image source per image and then combine them all into one clip with "std.Splice([all the one frame clips], mismatch=True)" if it really matters a lot to you.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
27th May 2019, 02:53 | #3 | Link | |
Registered User
Join Date: Sep 2016
Posts: 67
|
Quote:
And thanks, that works. |
|
1st April 2021, 16:06 | #4 | Link |
Registered User
Join Date: Feb 2021
Location: Florida Miami
Posts: 3
|
I discovered how to increases image resolution without losing quality on this site imglarger.com that really amazed me a lot because I saw there besides other equally useful options. It helped me to enhance color and contrast with only one click, to remove the background from the image automatically, to retouch and fix the blurry face, to unblur image with advanced and fast AI technology, and many other opportunities that I personally often use because it's part of my job and it brings me maximum pleasure.
Last edited by Dressy; 4th April 2021 at 10:32. |
|
|