Log in

View Full Version : Edit/force frame properties to be frame-based (instead of field-based)?


PoeBear
27th February 2022, 22:09
I'm not sure where the error lies, but I'm having trouble outputting as frame-based instead of field-based. Is there a plugin or deep AviSynth+ command to change the properties, like there is in VapourSynth: core.std.SetFieldBased(clip, 0)

Fresh 3.7.2 test 8 install (tried test 2, and 3.7.0), and I've got a mixed-footage/framerate 60i source that I've decoded/deinterlaced/decimated to 23.976, but when I try to resize it using avsresize (https://forum.doom9.org/showthread.php?t=173986), it spits an error about "clip must be frame-based". I've used GetParity to verify that it is indeed loading as field-based

I've tried decoding with both LWLibavVideoSource and DGDecNV, both output the same yet fail with avsresize. Oddly enough, an older FFM2 build actually worked with avsresize, yet still reports as field-based via GetPartiy. But it can't handle 60i and drops frames, so just a curious side note

Script examples:

LWLibavVideoSource:
LWLibavVideoSource(".\PATH\TO\FILE.264")
TFM()
AssumeFPS("ntsc_video")
TDecimate()
#z_Spline36Resize(1280,720)
GetParity() ? Subtitle("Field-based") : last

AssumeFPS used because L-SMASH spits it out as 32.000 FPS by default, and fpsnum has no effect. Output matches DGDecNV, which required no workaround

DGDecNV:
DGSource(".\PATH\TO\FILE.dgi")
DGTelecide()
DGDecimate()
#z_Spline36Resize(1280,720)
GetParity() ? Subtitle("Field-based") : last


Any ideas? Almost feel silly for hitting a wall just trying to resize, but it crashes as soon as I remove that # lol

poisondeathray
27th February 2022, 22:17
Did you try propset ?

propset("_FieldBased",0) #0=frame based (progressive), 1=bottom field first, 2=top field first

PoeBear
27th February 2022, 22:32
Did you try propset ?

Cheers, that worked. One of those deeper commands I guess I should familiarize myself with

I'm guessing this is down to the decoder's settings, as I've done plenty of interlaced content, even 60i DVDs with DGMPGDec, and haven't had this issue. Never any 60i H.264 though