Some source videos which uploaded to YouTube was in PAL format (576i). After uploading YouTube re-encode them to 480p. Can I restore correct interlaced resolution of this videos for further applying yadif deinterlace filter (may be in double framerate mode)? I found similar thread: https://forum.doom9.org/showthread.php?t=145301 , but it was closed. I tried to use lanczosresize(width,576,taps=6) and FixBlendIVTC filters but without result. Most effectively works filter linear blending deinterlace, but it very blurry video.
Original:
[Attachment 44341 - Click to enlarge]
Original+Applied YaDiF:
[Attachment 44342 - Click to enlarge]
Resized to 576+Applied YaDiF:
[Attachment 44343 - Click to enlarge]
Avisynth: lanczosresize(768,576,taps=6)+FixBlendIVTC():
[Attachment 44344 - Click to enlarge]
Avisynth:FixBlendIVTC()+lanczosresize(768,576,taps =6):
[Attachment 44345 - Click to enlarge]
Linear blending deinterlace:
[Attachment 44346 - Click to enlarge]
+ Reply to Thread
Results 1 to 11 of 11
-
-
Are you saying that it was YouTube that incorrectly re-sized interlaced video without first deinterlacing it?? I can't believe that would ever happen because there would be millions of massively screwed-up videos on YouTube if that were the case. I've never once seen this artifact on YouTube.
So, I'm not sure what you are asking.
If you are asking how to correctly re-size interlaced video, the answer is that you first deinterlace it, then re-size it, and then if you want to keep the video interlaced, you re-interlace it.
Here is one of many functions that you can use to re-size interlaced video, and end up with interlaced video:
Code:function IResize(clip Clip, int NewWidth, int NewHeight) { Clip SeparateFields() Shift=(GetParity() ? -0.25 : 0.25) * (Height()/Float(NewHeight/2)-1.0) E = SelectEven().Spline36resize(NewWidth, NewHeight/2, 0, Shift) O = SelectOdd( ).Spline36resize(NewWidth, NewHeight/2, 0, -Shift) Ec = SelectEven().Spline36Resize(NewWidth, NewHeight/2, 0, 2*Shift) Oc = SelectOdd( ).Spline36Resize(NewWidth, NewHeight/2, 0, -2*shift) Interleave(E, O) IsYV12() ? MergeChroma(Interleave(Ec, Oc)) : Last #Next line is optional #sharpen(0,.5) # Adjust 2nd value between 0.5 and 1.0 to taste Weave() }
You'll have to tune the script I present there in order to match your particular video.
Here is a link to the beginning of that long thread:
Repair Bad Deinterlacing -
Looks like the O.P. ended up where he started, except for residual artifacts and degradation from the processing and obsolete lancsoz resizing. IS there supposed to be something magic about yadif's deinterlacing? I would have thought QTGMC would do a cleaner job on messy YouTube video. The "original" sure doesn't look blended to me -- more than likely YouTube took 576i, dropped alternate fields, and resized progressive video to 480p, which is what they usually do.
After spending some time considering what all this work was for and wondering if I read the O.P. correctly, all I can say is- My sister Ann's brother -
Last edited by jagabo; 7th Jan 2018 at 19:04.
-
Did you try contacting the uploader / account holder?
YT stores the original video that was uploaded, but only the acct holder can access it (even if they deleted it locally, there is a copy on YT server). They might make it available for you depending on the details of the situation -
Yes. I guess this problem was due to the fact that some time ago YouTube didn't apply deinterlace filter before video resizing and perhaps some videos was uploaded without "interlaced" flag therefore deinterlace filter was not applied. Also this problem relates to not only YouTube videos. E.g. some resized interlaced TVRips without applied deinterlace.
It's another question. Uploader does not want to give me a source.And this problem relates to not only YouTube videos. E.g. some resized interlaced TVRips without applied deinterlace. -
Rescale video to half of original size (source 576 then output 288) probably easiest way to restore (albeit vertical details reduced) proper video.
Yes, it is common to YT movies - lot of uploaders are unaware if they source is interlaced or not - they don't care and YT don't care either.
I would no expect from average consumer any knowledge about video technology. -
Last edited by Lirk; 8th Jan 2018 at 07:21.
-
The link I already provided to you shows how to repair the large teeth artifacts. There is no way to actually reverse the original process.
-
I agree with johnmeyer, there is no way to restore the original fields. The best you can do is blur the them together more and then sharpen a bit to restore sharpness in areas that weren't interlaced. What you'll be left with is something like a simple blend deinterlace of the original interlaced video. I gave one simple AviSynth method earlier. A more complex variation.
Code:BilinearResize(width,288).nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=width, fheight=height).Sharpen(0.0, 0.5)
Last edited by jagabo; 8th Jan 2018 at 10:57.
Similar Threads
-
Restoring from 2 videos with different quality into one.
By freeindy in forum Newbie / General discussionsReplies: 3Last Post: 19th Jun 2016, 03:38 -
order of filters for interlaced gaming videos?
By muffinman123 in forum RestorationReplies: 27Last Post: 26th Aug 2014, 12:07 -
Exist better capturing program for interlaced videos than AmaRecTV?
By MIRKOSOFT in forum Capturing and VCRReplies: 17Last Post: 10th Jun 2014, 08:10 -
Interlaced and Progressive videos on same Bluray disc?
By VideoFanatic in forum Authoring (Blu-ray)Replies: 8Last Post: 18th Sep 2013, 20:53 -
Removing interlacing from resized interlaced file
By cedricm in forum RestorationReplies: 2Last Post: 25th Jun 2013, 06:43