View Full Version : Recovering 24fps from deinterlaced 29.97 progressive source?


BlueCop
16th May 2020, 18:51
Hi, I have a short animated video that was badly deinterlaced. It was never released on DVD/VHS so I can't work from the interlaced source. I am trying to recover the 24fps video to try out some ai upscaling options.

I have tried QTGMC to fix some an occasional combing issues still present in the video. I noticed the 3 progressive then 2 de-interlaced frames structure appears at times.

Thanks for any help. I tried searching and trying some options but it is hard to find what currently works best with so much information out there.

Katie Boundary
16th May 2020, 19:11
If it's not from DVD or VHS, then where IS it from?

What exactly is wrong with it?

BlueCop
16th May 2020, 19:32
It is an animated short video that broadcast on television. It was streamed online multiple places in the past. I have 2 copies saved but it isn't commercially available. One is 720x400 and the other is 854x480 which looks like it was upscaled from the 720x400 source which has interlacing artifacts.

I am trying to recover the original 24fps that was drawn by the animators. The current video was deinterlaced to 29.97 which has 3 progressive frames and then 2 blended frames pattern which is extremely ugly.

Katie Boundary
16th May 2020, 20:32
It is an animated short video that broadcast on television. It was streamed online multiple places in the past. I have 2 copies saved but it isn't commercially available.

So you downloaded it from a streaming site?

I am trying to recover the original 24fps that was drawn by the animators. The current video was deinterlaced to 29.97 which has 3 progressive frames and then 2 blended frames pattern which is extremely ugly.

Oh, yes, I've dealt with that before. The plugin you're looking for is called srestore. Manolito (one of my two favorite people on this forum) has a version of it that includes all relevant dependencies and works on older operating systems. I used it to clean up Beast Wars a while back.

magnetite
17th May 2020, 18:57
I am trying to recover the original 24fps that was drawn by the animators. The current video was deinterlaced to 29.97 which has 3 progressive frames and then 2 blended frames pattern which is extremely ugly.

The process you're referring to is known as telecine. Taking 24p and converting it to 30i. So to reverse it, you need an inverse telecine filter like TIVTC (http://avisynth.nl/index.php/TIVTC).

This technique was common back in the day to have the regular film sections as 24p, and the special effects as 30i. So something like the Simpsons has 24p for some sections, and any special effects or missing film they couldn't find would be replaced with 30i sections from the NTSC master tapes.

Katie Boundary
18th May 2020, 02:54
The process you're referring to is known as telecine. Taking 24p and converting it to 30i. So to reverse it, you need an inverse telecine filter like TIVTC (http://avisynth.nl/index.php/TIVTC).

This technique was common back in the day to have the regular film sections as 24p, and the special effects as 30i. So something like the Simpsons has 24p for some sections, and any special effects or missing film they couldn't find would be replaced with 30i sections from the NTSC master tapes.

No no no, something worse has happened here. The video was telecined, but then the telecined footage was vertically resized, converting all the interlaced frames into blended ones. Or at least that's what the description sounds like.

hello_hello
18th May 2020, 07:37
If it's telecined footage that was blend de-interlaced instead of inverse telecined, Srestore has a mode for that. You need to decimate the duplicate frames after Srestore. Uf that's not what it is, the result will probably be ugly.
http://avisynth.nl/index.php/Srestore

srestore(mode=-4,omode="pp0")
TDecimate()

manono
18th May 2020, 08:35
A sample is worth 1000 words. In addition to the method hello_hello suggested, ExBlend (http://avisynth.nl/index.php/ExBlend#Fieldblending_and_Frameblending_removal) also can (usually) handle screwups like that.

BlueCop
19th May 2020, 03:42
Thanks for all the suggestions.

Upon further investigation there seems to be some CGI sections partly computer rendered at 29.97 fps.

Some deinterlacing algorithm was done on it but its mixed content where some is telecined from 24fps drawn animation and some was cgi done at 30. There also seems to be 2 layers of animated in a couple places were one layer plays at 12 fps and the other 24fps. I am still going through filters trying out stuff but I haven't been able to get anything working right.

I have been cutting it up into sections of each type 30fps and 24fps to try to recover them separately and then just frame repeat the 24fps stuff back to 29.97fps to make one frame rate.

srestore didn't seem to detect the blended frames. I am not sure what deinterlacing algorithm this used but it weighted the frames were one would be the stronger blend and one weaker.

Thanks again for all the guidance. I will keep tinkering with different options.

BlueCop
19th May 2020, 03:53
Sorry I can to cut a sample. I am not sure how much or which parts to put up though. How much do you want to check out?

I was more looking for guidance on good plugins to put me on a path to learning how to do it myself. I was kinda intimidated by the amount of avisynth plugins out now and didn't want to use an outdated method when a better one existed. Thanks again for the replies.

Edit: oh someone deleted their reply

Katie Boundary
19th May 2020, 04:22
srestore didn't seem to detect the blended frames. I am not sure what deinterlacing algorithm this used

srestore is a deblender, not a deinterlacer.

BlueCop
19th May 2020, 04:27
I understand. I meant the de-interlacer the video used.

srestore didn't seem to detect any of frames blended over 2 frames with the the fields on each side of it. The video did some kind of weighted deinterlacer where one frame is more strongly blended then the other. It introduces weak ghosting in some frames. Some frames are just 50/50 weighted though and I couldn't even seem to get them deblended.

I feel like I am just going to have to try to manually clean it up the best I can by separating each frame rate section.

manono
19th May 2020, 06:18
I am not sure how much or which parts to put up though. How much do you want to check out?
10 seconds with steady movement will do. Something cut from your 'source' with no further filtering and reencoding.

Katie Boundary
19th May 2020, 09:15
I understand. I meant the de-interlacer the video used.

srestore didn't seem to detect any of frames blended over 2 frames with the the fields on each side of it. The video did some kind of weighted deinterlacer where one frame is more strongly blended then the other. It introduces weak ghosting in some frames. Some frames are just 50/50 weighted though and I couldn't even seem to get them deblended.

I feel like I am just going to have to try to manually clean it up the best I can by separating each frame rate section.

Oh, that's some kind of improper frame rate conversion. There's all kinds of ways it can happen. One of those is by capturing from VHS tapes or live broadcasts.