This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

vhs-bordercontrol, telecide() and (ml)degrain in vapoursynth
#21
Quote:what did i expect and what would be the proper way:
-crop 16 pixels
-letterbox ie add 16 black lines on bottom
-upscale
Then you can't use Hybrid.
Hybrid does not support a random order for crop, rotate, resize, letterbox.
The order needs to be always: crop < rotate < resize < letterbox.

Quote:you take 480x576 source and crop xx pixels from the bottom (if one selects cropping and inputs the number)
you then upscale to desired resolution, and in doing so you're skewing the aspect ratio of the video, because you didn't add black borders to fill it in untill it's 576 again
That will only affect the DAR not the PAR, PAR does not change by resize.
If you want to go from anamorphic SDR to HDR, you should:
  • crop all the black bars
  • make sure the input par is correct
  • let Hybrid know you want to convert to a 1:1 output PAR
  • adjust the height or width to your desired target (let auto adjust, adjust the other)
  • use letterbox to archive the desired output resolution

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#22
if everything works as expected, there should be no vertical stretch in produced video, i believe.

here's the video:
https://www.mediafire.com/file/d0i0ysxgk...M.avi/file


and according to
https://www.doom9.org/capture/capture_window.html
and
https://www.doom9.org/capture/par.html
that 480x576 clip has source PAR of 1.56468
("You are now reading the (v4.0) version of the guide. This time the changelog is substantional. Many things are added or rewritten by the Version4 team (Wilbert, trevlac, arachnotron and i4004 (Ivo))."
arachnotron was much more into PAR details, i didn't really bother)

if you would be so kind to apply process (that you mention in your reply above) to that clip to produce 1440x1080 x264 clip (with 1:1PAR) and then i make same encoding but totally disregarding PAR, comparison of both might be interesting.

thanks

ps/inspect lipsync when you encode audio too, with settings from this screenshot.
video was bobbed with qtgmc and compressed with x264 in crf mode.

oh yeah, when one inputs external audio, the resulting mp4 file (audio) is not trimmed properly by hybrid, ie file has duration of audio clip no matter (shorter) duration of video.


Attached Files Thumbnail(s)
   
Reply
#23
Quote: oh yeah, when one inputs external audio, the resulting mp4 file (audio) is not trimmed properly by hybrid, ie file has duration of audio clip no matter (shorter) duration of video.
cutting is an experimental setting, without a debug output and files to reproduce the problem I won't look at that.

------------------
Your source is signaled with a PAR (Pixel aspect ratio) of 1:1, looking at the Vapoursynth preview one can see that this is not the correct PAR.
=> you need to let Hybrid know what the correct PAR is.
Let's assume the correct PAR of your source is 4:3 (<>720:480)
So by setting 'Crop/Resize->Pixel Aspect Ratio (PAR)->Input PAR' to 4:3 you need Hybrid know that it should use this PAR.
Cropping the black borders:
clip = core.std.Crop(clip=clip, left=14, right=18, top=18, bottom=16)# cropping to 448x542

Quote:1440x1080 x264 clip (with 1:1PAR)
Okay. (side note, on Blu-rays 1440x1080 normally too has a PAR of 4:3)
Since you want 1:1 PAR you need to enable 'Crop/Resize->Pixel Aspect Ratio (PAR)->Convert output to PAR' and set it to 'Square Pixel (1:1)'.
To get your desired 1440x1080 you now need to change 'Crop/Resize->Picture Resize->Auto adjust' to 'width' and the width to 1080. Hybrid will then adjust the target width so that the output isn't distorted (width = 1190).
Now to get 1440x1080 you enable letterbox and set it to 1440x1080 and end up with:
[Image: grafik.png][Image: grafik.png]
side note: You might want to fix the chroma shift of the source.

Sure, you can archive the same result by totally disregarding Hybrids workflow, by not adjusting the input par, disabling the audio adjust and manually setting the correct resolution and letterbox, but then you have to do the whole aspect ratio calculations yourself and it doesn't really make sense to use Hybrid.

Cu Selur

Ps.: according to http://web.archive.org/web/2011122800541...onversion/ 128:78 might be the correct PAR, so with my cropping and the 108ß0 target height, you would get 1440x1062. With letterboxing to 1440x1080 it would look like this:
[Image: grafik.png]
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)