In 396936-Improper-Display-Aspect-Ratio, jagabo helped me verify whether or not my file (captured from a Sony DCR-TRV350 via a PCIe card - Magewell Capture Pro HDMI) was interlaced. My goal is to capture interlaced video to preserve the original as well as possible.
Video>Capture Filters>Video in VirtualDub show a "Deinterlace" option with no checkbox and no option for leaving interlaced:
[Attachment 52943 - Click to enlarge]
Am I looking at the wrong menu option?
+ Reply to Thread
Results 1 to 20 of 20
-
-
That was the secret... "weave" means "interlaced." Changed to look at 500 frames:
[Parsed_idet_0 @ 0000018f5670abc0] Single frame detection: TFF: 180 BFF: 0 Progressive: 0 Undetermined: 321
[Parsed_idet_0 @ 0000018f5670abc0] Multi frame detection: TFF: 485 BFF: 0 Progressive: 0 Undetermined: 16
Thanks for getting me past that hurdle! -
I never really liked calling weave a type of deinterlacing. But if you consider that analog video is transmitted as a series of fields then weaving pairs them together into frames can be considered deinterlacing. That is, the act of turning a sequence if fields into a sequence of frames is deinterlacing.
-
From https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/wp/wp-01117-h...nterlacing.pdf
"Both bob and weave deinterlacing can affect the image quality, especially when there is motion."
Is the Magewell capture card impacting quality of the archived video by not giving a "no deinterlacing" option and doing weave "deinterlacing?" This would be very disappointing...
By the way, VirtualDub seems to recognize the file as interlaced, since it seems to properly deinterlace in "Preview" using Bob. -
On second thought... maybe not "properly." This is a "deinterlaced" screen capture from the VirtualDub2 "Output" display. I know the lighting is terrible, but that applies to a lot I the material I have to work with. Maybe the sawtooth edges are inevitable?
[Attachment 52956 - Click to enlarge] -
Sawtooth edges eliminated using ELA deinterlace:
[Attachment 52958 - Click to enlarge] -
I don't see a "no deinterlacing" option in the pulldown you pictured, only Weave, Blend, Top field only, Bottom field only. Of those only Weave is lossless -- it contains all the information that was captured.
Let's ignore the fact that analog video engineers consider weaving a type of deinterlacing. People dealing with digital video don't start with fields, they start with frames. To them a frame that shows comb artifacts when there is motion is "interlaced". A frame that shows no artifacts even though there is motion is progressive.
VirtualDub's deinterlacing filters will work on any video you apply them to. That doesn't mean it recognizes which videos are interlaced and which are progressive. Applying a deinterlacing filter to progressive video only damages it. To VirtualDub a frame of video is just a frame of video. It's up to you to tell it what to do with it. -
-
the act of turning a sequence if fields into a sequence of frames is deinterlacing
-
One thing that is troubling me about Weave deinterlacing - Shouldn't the frame rate double if the Fields are being turned into Frames?
Is Weave deinterlacing the purest form that analog, interlaced video can be digitally represented? If 2 Fields are combined into 1 Frame, it seems we've done damage to the original quality.Last edited by GrouseHiker; 28th Apr 2020 at 17:40.
-
No. Pairs of fields are turned into frames by weaving them together. In the original interlaced signal a field is only every other scanline of the picture. One field is all the even scan lines, the other all the odd scan lines. In color NTSC video there are 59.94 fields per second, alternating between even and odd fields. In the part of the frame that's usually captured there are 240 lines per field. Weaving them together gives you 480 scan lines at 29.97 frames per second. When they are played back on an interlaced device each frame is split back into two fields that are sent out at 59.94 fields per second, the same as the original signal.
I've never seen a capture device do this but it would be possible for each field to be saved separately. So the video could be saved as 59.94 240 line fields per second. VirtualDub's deinterlace filter has a mode that separates the two fields and stacks them horizontally rather than woven. It's also possible to stack the two fields vertically rather than horizontally. But such filters are for specialized purposes.
The advantage of weaving is that you have the full 480 line resolution. Still parts of the picture look fine. The disadvantage is that there are comb artifacts wherever there is motion. -
Thanks for clarifying... that's the key point for me... that the original fields are there if needed on an interlaced device. I guess it's a mystery as to how the Magewell card actually codes the information... doesn't matter as long as the original fields can be broken out.
I found this while researching the subject, but I don't know if the Magewell card conforms:
https://www.sciencedirect.com/topics/engineering/interlaced-video
In addition to regular frame coding in which lines from both fields are included in each macroblock, H.264/AVC provides two options for special handling of interlaced video field coding and macroblock-adaptive field/frame coding (MB-AFF). -
-
I'm in way over my head, but in researching another issue with flicker, I figured out how to run my first Avisynth script:
Code:avisource("test1.avi") SeparateFields()
-
SeparateFields() is ok for testing but not good for viewing video. The two fields will never align vertically -- the lines of one field are in between the lines of the other field in the original video. And it will leave you with a lot of aliasing artifacts.
I haven't seen an actual capture clip but from your description there's no doubt the Magewell card is capturing properly. And it's a well respected card. It wouldn't be if it couldn't capture interlaced video properly.
If you want to test for interlacing use a test clip with a lot more motion. Especially horizontal motion. Medium speed panning shots are good for this. -
I'm still in my learning and equipment/software verification stage. Based on what I have learned from this forum and other study, I am planning to use QTGMC for deinterlacing. Yesterday found this very informative how-to on the subject: Deinterlacing SD video with AVISynth+, QTGMC, and FFMPEG Tutorial However, I'm hoping the 64-bit versions are working now.
The deinterlacing I have been doing in VDub so far is only for testing, and I have noticed the interlace combing has not been 100% eliminated.
I really appreciate the generous help you, jagabo, and others have offered, and I'm now confident in the Magewell capture card. -
Yes, QTGMC() gives the best visual quality for most material. It's hard to get set up because it has so many dependencies you have to find, download, and install. It's worth the effort if you have lots of video you want to deinterlace. But it's not the best choice for analysis as it combines elements from both fields and performs a lot of cleanup of buzzing/aliased edges, etc. SeparateFields() or Bob(0.0, 1.0) is better for analysis as they cleanly separate the two fields. But the aliasing they leave behind is not great for viewing. Bob is closest to what a CRT TV does.
I took you SeparateFields() clip, wove the fields back together, did some fast/crude white balance and levels adjustments, and applied QTGMC()...
Code:AviSource("Test 1 pass 60 fps.avi") RGBAdjust(b=167.0/237.0) # crude white balance AssumeFieldBased() AssumeTFF() Weave() # weave the two fields back together. ConvertToYV12(interlaced=true) ColorYUV(gain_y=60, off_y=-20, cont_u=200, cont_v=200) # levels and saturation QTGMC()
-
Similar Threads
-
Feedback on Magewell USB Capture AIO
By celsoac in forum Capturing and VCRReplies: 23Last Post: 29th Jun 2019, 11:03 -
No video preview with Magewell Pro 4K+ video capture driver
By mikeiz in forum Capturing and VCRReplies: 7Last Post: 29th May 2019, 09:53 -
Pro capture dual hdmi magewell and motherboard
By design89 in forum Capturing and VCRReplies: 5Last Post: 26th Feb 2018, 14:29 -
Magewell USB to HDMI Capture Device HELP
By bdizzle009 in forum Capturing and VCRReplies: 2Last Post: 6th Feb 2017, 07:21 -
Magewell Pro Capture HDMI 5.1 Aduio
By BlockABoots in forum Capturing and VCRReplies: 14Last Post: 24th Nov 2015, 13:51