I have a question about deinterlacing with OBS using Yadif 2x.
I have captured an old TV Recording (PAL-Region) using a GV-USB2 with Input of 25 fps, (weave setting).
Ouptput is mp4 with same size but 50 fps and using Yadif 2x.
The resulting mp4 now is on 50 fps but all frames are doubled. The doubled frames are looking nearly the same (not exactly but nearly).
Does Yadif 2x work like this? I thought the deinterlacer makes a frame out of each field. The ouptput does not make sense to me ...
Thanks in advance for enlightenment !
+ Reply to Thread
Results 1 to 30 of 51
-
-
PAL video is often progressive even if it's transmitted as interlaced. In cases like this you don't want to deinterlace, you want to combine the fields to restore the progressive frames at 25 fps. Using Yadif 2x will deliver exactly what you are seeing. You want to use a field matcher instead. In AviSynth you can use TFM(), included with the TIVTC package. If your software doesn't support field matching use Yadif 1x.
-
Thanks for your reply.
The captured source is defitively interlaced (see attached picture).
In addition, the recorded brodcast on VHS tape is from 1991. So I can not belive it was prior progressive before transmitting.
I think OBS struggles with handling the two fields seperately. I think I must chosse an other capturing program.
[Attachment 80015 - Click to enlarge]Last edited by ArmerRitter; 18th Jun 2024 at 23:59.
-
The content on video can be “progressive” (the two fields are from the same moment in time) or interlaced. In general what is shot on film is the first, while what shot on cameras is the second. Since ever.
In one of our recent threads we examined a capture from Alwin and concluded that OBS did not handle correctly the interlaced source (in that case). Switch to AmarecTV 3.10 and, if needed, deinterlace later with QTGMC in AviSynth. -
Aside from news and live sports, most TV content was shot on film then transmitted as interlaced video. With PAL video that was done by speeding the film from 24p to 25p and transmitting one field at a time. That means pairs of fields come from the same film frame and you can restore the original progressive film frames via field matching.
Given a sequence of film frames:
Code:A, B, C, D, E, F... (each letter represents a film frame)
Code:A a B b C c D d E e F f... (capitol letter = top field, lower case letter = bottom field)
Code:Aa Bb Cc Dd Ee Ff...
But if you capture bottom field first and pack into frames you get:
Code:aB bC cD dE eF (each pair of letters represents a video frame)
But you can easily restore the original film frames (except the first and last) by simply recombining the fields. First separate fields:
Code:a B b C c D d E e F
Code:B b C c D d E e F
Code:Bb Cc Dd Ee
On the other hand, if you really have interlaced content (as opposed to progressive content transmitted interlaced) it may be that OBS is screwing up. Your sample image has been scaled from the captured 720x576 which has screwed up the interlacing. We can't tell if OBS is the problem or the way you prepared the sample image. So upload a short video sample directly from OBS (not a re-encoded cap). -
Interlaced and progressive is a bit confusing to me because lossless codecs do not flag interlacing correctly.
Is all PAL captured video progressive? Even if the software shows interlaced?
What if it shows interlacing? When you deinterlace progressive video it plays back with ghosting.
Would it be better to blend or interpolate fields and encode progressive?
I wouldn't de-interlace with OBS I would use Hybrid for de-interlacing or Virtuldub -
-
No. As I mentioned before, live sports and news is usually truly interlaced (50 different half-pictures per second). Note that all analog PAL video was transmitted interlaced -- one field every 1/50th second. When you watched that on a CRT TV you saw one field at a time, never both fields simultaneously. What differentiates interlaced content from progressive content is whether two consecutive fields come from a different point in time (interlaced) or from the same point in time (progressive).
As I described above, it could be interlaced or progressive.
That depends on how you deinterlace. One simple deinterlacing method is to blur the two fields together. That leads to ghosting whenever there is motion.
What looks best depends on the source properties and your personal taste. That's why there are so many different algorithms.
Yes, QTGMC is one of the best deinterlacers for most material. But there is no perfect method. And there never will be. There's no way to know for certain what was lost. -
No. PAL is basically a TV broadcast standard.
In the wider sense "PAL" (as used for PAL DVDs for example) can be
- true interlaced
- PsF (Progressive segmented Frames) = progressive video but encoded and flagged as interlaced for PAL standard compliance
- Phase shifted video (looks like interlaced frames, but is in fact progressive video)
- Telecined, for converting 24fps film frames to 25fps video (Euro pulldown aka 2:2:2:2:2:2:2:2:2:2:2:3 pulldown)
Re-read post #6 (except for the telecined case).
Captured home video (tapes) is usually true interlaced (50 fields per second for PAL).
And never trust the flags or what tools report. Flags are often wrong, and tools usually just report what the (possibly wrong) flags suggest, or they make a 'best guess'.
ALWAYS separate the fields, then step through the fields and draw your conclusions based on the fields sequence which you observe.
P.S. and take the "warnings" which you find in previous posts about using OBS for capturing analog video serious .....Last edited by Sharc; 19th Jun 2024 at 17:00. Reason: spelling
-
Yes, indeed, my fault. I have taken a screenshot with snipping tool. The screen bleow now is a "real" captured screen from this video (768x576).
@ jagabo
Thanks for good explanation about the interlacing process.
@ lollo
I will make a try with AmarecTV the next days and post a short clip.
Never thought this will get so time consuming
[Attachment 80038 - Click to enlarge] -
What if it's a PAL commercial movie not available on DVD or a personal home recording? Will it be progressive?
The problem is lossless codecs like Lagrith don't flag interlacing they show the footage as progressive this confuses video editors and software like hybrid that use media info tool, because the software is seeing progressive it's.deinterlacing progressive footage which damages it and causes it to ghost (shimmer) I don't know what the correct technical term is.
Blend does lead to ghosting but it does always removing the shimmering, I use upper field first -TFF for VHS capture but if I fo that in Hybrid I get shimmering, it only fixes it if I use 'reduce interlace flicker' then encode and import in hybrid.
That's the problem I don't know what to choose and why this is where I'm getting stuck 😢
QTGMC is popular and used the most but Yadif in virtuldub is very easy and never has the shimmering issue but it has quite a few algorithms and options, blend, bob interpolation, blend is cleaner in Yadif at least from my limited tests. -
This is all very difficult stuff to understand because nothing is what it seems, I always thought PAL was progressive?
What should we do with 'phase shifted video' ? How will we get to know it's phase shifted video? I'm just learning please explain in non technical language on how I can spot phase shifted video and what filter I can use in Hybrid to check and solve this?
PAL also has sub alphabet categories like PAL B PAL I PAL M that's to do with how it handles color on analogue broadcast I think?
I don't trust flags media info flags Huff BFF when it's not and it flsgs Lags as progressive when it probably isn't.
I have separated fields in virtualdub and TFF always works the BFF option skips that means it's the wrong option. -
The problem is lossless codecs like Lagrith don't flag interlacing they show the footage as progressive this confuses video editors and software like hybrid that use media info tool, because the software is seeing progressive it's.deinterlacing progressive footage which damages it and causes it to ghost (shimmer) I don't know what the correct technical term is.
Yadif in virtuldub is very easy and never has the shimmering issue but it has quite a few algorithms and options, blend, bob interpolation, blend is cleaner in Yadif at least from my limited tests. -
Yes, initially.
So here some examples you may want to inspect (e.g. using Alwyn's method in post#14, or by just separating and stepping through the fields):
(0) is the original 24fps progressive film
(1) is the same as (0) but sped up to 25fps
(2) is PsF = progressive video encoded as interlaced
(3) is true interlaced 25i, TFF
(4) is the same as (1) but phase-shifted (sometimes called field-shifted)
(5) is Euro pulldown
Note: The files are mpeg4 (x264) encoded in .mp4 container. For PAL DVD they should be mpeg2 encoded in .vob container. This doesn't matter for the fields structure demo though.
VHS consumer videocam captures (PAL) are usually of type (3).
Commercial movies (captured from VHS or on PAL DVD) are typically of type (2).Last edited by Sharc; 23rd Jun 2024 at 12:58. Reason: Note added
-
Is PSF. When separating the fields and stepping field-by-field you see the "bobbing" vertival effect, that's why you probably wrote "almost" (the top field contains the odd lines of the frame, the bottom the even). In PAL, almost all videos originated by a film source are "progressive" (the two fields are at the same moment in time)
-
-
Thanks all, I did have a look at all of yours, Sharc, just wanted to make sure I was on the right track with a base file.
-
I've done that and it plays correctly with upperfield first but when I export it upper field first and then deinterlace it again upper field in Hybrid then I get jagged lines.
Maybe it's because I export the lossless codecs in DV mode exporting then 729x570 leaves black spaces in each side.
Yadif deinteelace gives it a plastic look. -
Thanks for the videos I've had a look none of them have the shimmering I'm talking about maybe I should find a video online with that issue? It captures fine in VD I think it's a Moviestudio setting or export setting that is messing something up?
I think my issue is I'm encoding DV profile 720x576 if I encode standard 720x576 with a lossless codec in Movie studio I get black spaces on each side, but if I use the 720x480 profile I don't get the black spaces.
My captures are 720x576 both virtualdub and Moviestudio are reporting that in file properties, my VD is set to capture 720x576 I only use Virtuldub and capture lossless, so sensible person would use OBS it's not a capture software it's more of a streaming gaming software with a choice of strange codecs.
Maybe both fields are recorded at the same moment because it's Pal progressive couid that mean I don't need to de-interlace and I should just encode upper field progressive scan? -
-
Here you gohttps://files.videohelp.com/u/308503/Rice-Advert1.avi
My original lossless file was 12mb over the 500 mb site limit
This is a second one all I've done is denoised it, I did not get the jagged effect this time when compressing to.mp4
I just want to know is this clip interlaced or progressive or something else?
Taken from an old VHS tape.
I'll try to upload a lossless shorter version if needed.
https://files.videohelp.com/u/308503/Rice-Advert1.avi
Thanks to all for helping 👍 -
This clip is progressive.
Is there any reason to be in RGB colorspace? -
I cleaned it up color corrected it in movie studio I'm sure the VD original is yuv2
I will upload the original short VD capture.
I could because it was 512mb this site only allows 500mb per clip. -
For what concerns the fields architecture is irrelevant, no need for additional upload
-
-
-
Similar Threads
-
OBS DeInterlacing Options-Which is best?
By Alwyn in forum RestorationReplies: 5Last Post: 28th Oct 2023, 22:44 -
VHS with Blackmagic Intensity PRO and OBS studio...
By Bartoloni in forum Newbie / General discussionsReplies: 26Last Post: 19th May 2023, 11:33 -
Problems capturing analogue video in Virtualdub and OBS Studio
By techmot in forum Capturing and VCRReplies: 85Last Post: 6th Jan 2022, 15:43 -
Obs studio produces screen capturing files with consequently delayed sound
By Glen in forum Newbie / General discussionsReplies: 4Last Post: 1st Sep 2021, 03:25 -
Deinterlacing with VirtualDub's Yadif filter?
By dellsam34 in forum Capturing and VCRReplies: 44Last Post: 29th Jul 2019, 14:27