View Full Version : Please help me decimate/smooth playback with this trainwreck of a video
takla
15th February 2024, 09:14
Sample here (https://www.mediafire.com/file/ofy1jfskhf374pf/TRAINWRECK.mkv/file)
I've fieldmatched it with this:
LWLibavVideoSource("C:\Users\Admin\Downloads\New folder\s01e01.mkv")
global c = last
global n = DoubleWeave(c).SelectOdd()
global p = DoubleWeave(c).SelectOdd().DuplicateFrame(0)
global c = VMAF2(c,vinverse(c),feature = 0)
global n = VMAF2(n,vinverse(n),feature = 0)
global p = VMAF2(p,vinverse(p),feature = 0)
c
ScriptClip("""
n_metric = propGetFloat(n,"psnr_y") + propGetFloat(n,"psnr_cb") + propGetFloat(n,"psnr_cr")
c_metric = propGetFloat(c,"psnr_y") + propGetFloat(c,"psnr_cb") + propGetFloat(c,"psnr_cr")
p_metric = propGetFloat(p,"psnr_y") + propGetFloat(p,"psnr_cb") + propGetFloat(p,"psnr_cr")
n_metric > c_metric && n_metric > p_metric ? n : \
p_metric > c_metric && p_metric > n_metric ? p : c
""")
Spline36Resize(720,540)
z_ConvertFormat(colorspace_op="470bg:601:170m:limited=>709:709:709:limited")
Trim(0, 300)
I've played around with TDecimate (http://avisynth.nl/index.php/TIVTC) but didn't get any good results.
I need these duplicated frames GONE and the panning/zooming to be SMOOTH.
Any help would be greatly appreciated.
huhn
16th February 2024, 00:41
field order is gone because the file is reencoded to progressive and this has true interlaced parts in it.
was that file really been 29i not 25i?
takla
16th February 2024, 05:45
field order is gone because the file is reencoded to progressive and this has true interlaced parts in it.
was that file really been 29i not 25i?
Ohhh this explains mediainfo still showing the interlaced flag which I manually deleted. (I did see interlaced frames on scene change but it was something I could have lived with.)
Edit: Here is a raw sample (https://www.mediafire.com/file/mxg40hkad6qiy9p/RAW.mkv/file)
Unfortunately yadif=deint=interlaced didn't manage to deinterlace the unmatchable fields. I had asked how to deinterlace unmatchable frames (https://forum.doom9.org/showthread.php?p=1997683#post1997683) with the fieldmatch script from above, but haven't gotten an answer yet.
Also, if you can produce a better result with any combination of filters, feel free to post it.
Selur
16th February 2024, 13:25
Also, if you can produce a better result with any combination of filters, feel free to post it.
Maybe replacing frames with interpolated frames is worth a try,...
I used Vapoursynth, but similar should be possible in Avisynth
TFM (for field matching)
+ Santiag (for AA)
+ BasicVSR+++ (for cleanup; probably overkill)
+ FillDuplicateFrames (to replace duplicates with interpolated frames using SVP)
script: https://pastebin.com/f2DLaHAB
file: https://www.mediafire.com/file/odeysqk3drbtwh2/ml_playing_around.mp4/file
+ going for 60fps with RIFE: https://www.mediafire.com/file/0xucaywbtsxa25f/ml_playing_around_60fps.mp4/file
Cu Selur
takla
16th February 2024, 13:49
Yeah.
Using very aggressive decimate settings to remove duplicates and then using RIFE was something I kept in mind.
I haven't done it yet because I wanted to see if there was a less destructive solution.
huhn
16th February 2024, 15:44
pal 60 wrong field order real 60 hz nice mix
i found 2423224 in it wtf sorry i lost count.
i would just deint technically the creators intend if anyone ever look at it.
DXVA deint can handle it mostly it can't fix the judder and random cadance and falls flat sometimes because of wrong field order but else...
Selur
16th February 2024, 16:35
@takla: my idea was to:
1. field match to get rid of the combing
2. apply anti aliasing to lessen the stair cases on some of the lines
3. to replace duplicates with interpolated frames (I used svp here, no need for rife)
4. (optionally) add another interpolation step to a higher frame rate to get smoother motion.
takla
16th February 2024, 18:42
@takla: my idea was to:
1. field match to get rid of the combing
2. apply anti aliasing to lessen the stair cases on some of the lines
3. to replace duplicates with interpolated frames (I used svp here, no need for rife)
4. (optionally) add another interpolation step to a higher frame rate to get smoother motion.
Oh wow. Your video looks super crispy. Nice. Tomorrow I'll see if I can reproduce that with avisynth.
pal 60 wrong field order real 60 hz nice mix
i found 2423224 in it wtf sorry i lost count.
i would just deint technically the creators intend if anyone ever look at it.
DXVA deint can handle it mostly it can't fix the judder and random cadance and falls flat sometimes because of wrong field order but else...
Yup. That is why I called this a trainwreck.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.