Deinterlacing AVS still interlaced bug?
Posted: Tue May 23, 2023 5:55 pm
Thank you for continuing to support this software!
I just jumped back into this with a 7950x and 4080 to hopefully reduce my older larger files. No real issues getting this to work on Windows 11 with AviSynth+ 3.7.2.
I came across a MKV with h.264 video that is interlaced 29.970
Scan type : MBAFF
Scan type, store method : Interleaved fields
Scan order : Top Field First
I ran this through dgdecnv_248 without issues and adjusted the output avs to add deinterlace
DGSource(input.dgi,ct=104,cb=104,cl=0,cr=0, deinterlace=1)
The oddity is when I go to encode based on this avs input I get
Input #0, avisynth, from 'input.avs':
Duration: 02:28:00.47, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p(tv, top first), 1920x872, 29.97 fps, 29.97 tbr, 29.97 tbn
and therefore the output gets
Stream #0:0: Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, top coded first (swapped)), 1920x872, q=2-31, 29.97 fps, 30k tbn
I tried with deinterlace=2 but I get the same results at 59.94 fps
When I run the the output file back into DGIndexNV and play it shows Frame Struct is Progressive with zero frame/field repeats and 0% film.
I tried with the oldest you have hosted dgdecnv_242, but same results.
Most everything I have delt with so far is Progressive 23.976 fps so I haven't come across an interlaced video yet.
To see if this is a me problem or not I goodle'd and found these two sample interlaced files
https://forum.videohelp.com/threads/400 ... ced-sample
McCartney-MPEG2_1080-interlaced_sample.mkv (128.97 MB)
0090227_233739-H.264.m2ts_1080i_interlaced_letterman_sample.mp4 (55.14 MB)
and these also show the same characteristics. ffmpeg input and output metadata keeps it thinking its interlaced, but the actual encoded video is progressive.
Is this a bug or something I can/should force in the avisynth script? Not sure what command in Avisynth I should use to say hey this is progressive, if there is one.
Thank you
I just jumped back into this with a 7950x and 4080 to hopefully reduce my older larger files. No real issues getting this to work on Windows 11 with AviSynth+ 3.7.2.
I came across a MKV with h.264 video that is interlaced 29.970
Scan type : MBAFF
Scan type, store method : Interleaved fields
Scan order : Top Field First
I ran this through dgdecnv_248 without issues and adjusted the output avs to add deinterlace
DGSource(input.dgi,ct=104,cb=104,cl=0,cr=0, deinterlace=1)
The oddity is when I go to encode based on this avs input I get
Input #0, avisynth, from 'input.avs':
Duration: 02:28:00.47, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p(tv, top first), 1920x872, 29.97 fps, 29.97 tbr, 29.97 tbn
and therefore the output gets
Stream #0:0: Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, top coded first (swapped)), 1920x872, q=2-31, 29.97 fps, 30k tbn
I tried with deinterlace=2 but I get the same results at 59.94 fps
When I run the the output file back into DGIndexNV and play it shows Frame Struct is Progressive with zero frame/field repeats and 0% film.
I tried with the oldest you have hosted dgdecnv_242, but same results.
Most everything I have delt with so far is Progressive 23.976 fps so I haven't come across an interlaced video yet.
To see if this is a me problem or not I goodle'd and found these two sample interlaced files
https://forum.videohelp.com/threads/400 ... ced-sample
McCartney-MPEG2_1080-interlaced_sample.mkv (128.97 MB)
0090227_233739-H.264.m2ts_1080i_interlaced_letterman_sample.mp4 (55.14 MB)
and these also show the same characteristics. ffmpeg input and output metadata keeps it thinking its interlaced, but the actual encoded video is progressive.
Is this a bug or something I can/should force in the avisynth script? Not sure what command in Avisynth I should use to say hey this is progressive, if there is one.
Thank you