View Full Version : 59.94P to 23.976
TruthOverFacts
23rd June 2025, 12:14
https://www.mediafire.com/file/sx1bvx09va09sn5/C9Clip.avi/file
Every frame is repeated twice but the fifth frame is repeated three times I think lol...
I'm trying to get it to 23.976P
Thank you!
TOF
Sharc
23rd June 2025, 13:01
LWLibavVideoSource("C9Clip.avi")
selecteven().TDecimate()
stab(dxmax=2,dymax=2)
crop(8,0,-8,-0).addborders(8,0,8,0)
https://mega.nz/file/eVVxHDZI#OA6OiT6GZTYdg35jcNHTzLqmDm_pJyLffxAA9F8ip-c
StainlessS
23rd June 2025, 13:29
#crop(8,0,-8,-0).addborders(8,0,8,0)
Letterbox(0,0,8,8) # Top, Bottom, Left, Right # Clean borders, Pure black.
2 filters collapsed to one. [not a big deal, maybe slightly faster.]
EDIT:
dymax=2,
Should above be dymax=0, or maybe should you be cleaning top and bottom borders too (if vertical jitter, Letterbox(2,2,8,8)) ?
(Or maybe you are just cleaning original left/right borders)
I have not viewed clip.
EDIT:
OK, I've looked at clip, maybe with
# dymax=2
Letterbox(134,130,8,8) # clean original top/bot/left/right borders
Original top(134) and bottom(130) borders too.
I cant actually test script, I'm getting errors from both LSMash and AviSource,
"[fatal]: Failed to avformat_open_input",
My Avs setup is seems to be broken.
Sharc
23rd June 2025, 20:26
I set dymax=2 and left it in, it seemed to have no effect though as there was no vertical jitter at a first glance, so dymax=0 would have been fine, I think.
I also did not touch the top/bottom bars but left it overall 1920x1080. For full black bars it would be better to crop the original bars (sometimes greyish or blocky) and letterbox, I agree.
hello_hello
23rd June 2025, 21:46
Whether you add them back or not, I think it'd be criminal not to crop the top and bottom borders to remove most of the ringing at the picture edges.
TDecimate(cycle=10, cycleR=6)
Stab()
Crop(8,136,-8,-132)
TemporalDegrain2(degrainTR=2, grainLevel=2)
CropResize(1920,1080, Borders=true)
# or CropResize(1920)
# or Addborders(8,134,8,134)
ConvertBits(16).GradFun3Plus().ConvertBits(10, Dither=0)
Prefetch(12)
I noticed the bitrate was slightly lower for the clip with borders than the one without. Same x265 settings each time. I never encode video with borders, but I wasn't expecting that.
After resizing back to 1920, the added borders were mod2, so maybe that's got something to do with it (1920x820 with 130 pixel borders).
C9Clip.zip (https://files.videohelp.com/u/210984/C9Clip.zip) (17.4 MB)
wonkey_monkey
23rd June 2025, 22:43
I noticed the bitrate was slightly lower for the clip with borders than the one without. Same x265 settings each time. I never encode video with borders, but I wasn't expecting that.
Could it be that leaving the borders on means the encoder is dividing the image into the same macroblocks as were originally encoded?
If you crop, those two grids get misaligned, and you end up with old macroblock edges (with a slight discontinuity) being in the middle of new macroblocks.
Sharc
23rd June 2025, 23:53
Whether you add them back or not, I think it'd be criminal not to crop the top and bottom borders ....[/URL]
Well well.... learning that I am a criminal ..... :D
hello_hello
24th June 2025, 04:18
Could it be that leaving the borders on means the encoder is dividing the image into the same macroblocks as were originally encoded?
If you crop, those two grids get misaligned, and you end up with old macroblock edges (with a slight discontinuity) being in the middle of new macroblocks.
The fact that both were denoised and resized back to 1920 after cropping the small side borders, before adding the borders back top and bottom, probably means that's not the reason.... I suspect. The sample is lossless, but I suspect it was originally h264 rather than h265.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.