Log in

View Full Version : Possible to remove Pulldown from stream?


Undead Sega
23rd November 2008, 23:23
Is it possible to remove Pulldown from a video stream? or does it have to be reencoded while the process is happening?

thetoof
23rd November 2008, 23:35
Do you mean applying IVTC on a 29.97fps video stream that is actually 24p with a hard pulldown?

If that's the case, one the the options you have is
AnimeIVTC(mode=1)
You can read the guide for more info...

Guest
23rd November 2008, 23:43
It depends on whether you have soft pulldown (with flags in the stream) or hard pulldown (the fields are physically duplicated). Which are you talking about?

Undead Sega
24th November 2008, 00:01
it is a soft pulldown, its from a badly authored NTSC DVD from 23.976 to 29.97. I have runend it through DGIndex and DVD2AVI both have failed to recognise it as FILM as it was below a certain percetage, thus the FORCE FILM or IVTC on both applications didnt work when making a .d2v file.

Guest
24th November 2008, 00:04
Post a link to an unprocessed source sample with high motion.

Undead Sega
24th November 2008, 03:09
I hope this will work for you:

http://www.badongo.com/file/12216230

please let me know ASAP :D thanks very much!

Guest
24th November 2008, 05:00
it is a soft pulldown You better learn what that means so you don't waste people's time again.

It's hard pulldown so there are no pulldown flags to strip.

Undead Sega
24th November 2008, 14:45
what??? no waaay, how the hell could i have mistaken the two terms! :( so embarrasing when one's ill.

well, i have to mention that i have tried using VirtualDub's Inverse Telecine, which does a pretty good job, however, it does leave me alot of combing artifacts which is annoying. what can be done now?

Guest
24th November 2008, 14:52
Use an Avisynth IVTC, such as:

Telecide()
Decimate()

Undead Sega
24th November 2008, 14:58
i see, but because they are filters to remove hard pulldown(?) would there be a small loss of quality as well?

also when using those filters, any specific scripts needed?

thetoof
24th November 2008, 15:27
Loss of detail is not introduced by IVTC, but by encoding with hard pulldown.
Too lazy to explain, here's a quote that does it well:
It could easily be shown that a frame that has been matched from different fields of a lossy-compressed interlaced source will be of lower quality, compared to the same frame that has been progressively compressed in its progressive state.

This also means that after applying IVTC to a hard-telecined source, the result is worse than with the progressive counterpart. The loss happened during compression of the pulldown'ed source.

You don't need any "specific" script. Only IVTC at the beginning (after Dotcrawl/rainbowing removal if you have some) of your script (after loading your video...) and you're good to go.

Again, all this info is in the AnimeIVTC docs, as well as in a few other guides out there.

As I said before, one of the options you have is AnimeIVTC (very accurate field matching by combining tfm, nnedi, tdeint and tmm with additionnal (optional) combing removal and anti-aliasing). Some others are, as neuron2 said, his decomb plugin (telecide+decimate) and tritical's TIVTC (tfm+tdecimate).

Undead Sega
24th November 2008, 16:04
i see, so many to choose from.

anyways, not intending to track off slightly, but what AviSynth filters are used to apply and remove 'soft' pulldown?

Comatose
24th November 2008, 16:27
Not really AviSynth filters, but you can use DGPulldown to apply soft pulldown (some MPEG-2 encoders can do this too) and DGIndex with Forced FILM to remove soft pulldown.

Undead Sega
24th November 2008, 16:41
i am aware of those, thats why i am asking if there are AviSynth filters that can do that precise job?

thetoof
24th November 2008, 16:50
soft and hard pulldown are removed by the same filters, but if you have 100% soft, you should do it in DGIndex to avoid unnecessary processing.
Edit: removed comment regarding animeivtc.

You can also specify d2v="yourfile" in tfm to make those flags readable by TIVTC (as neuron2 said, this is usually impossible by a non-source filter). See TIVTC docs for more info (d2v & flags parameter)

Guest
24th November 2008, 16:52
Soft pulldown is done by flags in the MPEG2 compressed bitstream. Avisynth non-source filters receive uncompressed frames and return uncompressed frames. MPEG2 encoded bitstream flags disappear in MPEG2Source(). There's no way they can be manipulated by a non-source filter. In a source filter like MPEG2Source, you can choose to ignore the flags or honor them. Honoring them means that you convert the soft pulldown to hard pulldown and deliver that to the following non-source filters.

Note to Comatose: DGPulldown can also remove pulldown.

@thetoof

Please don't turn every thread into an AnimeIVTC advocacy thread.

Undead Sega
24th November 2008, 17:01
DGPulldown can remove pulldown? how? because im pretty sure it wouldnt accept values lower than the source's framerate.

as i mentioned previously, when i used VirtualDub to IVTC, it did a good job but left from interlacing artifacts, is there a way to remove those completely?

Alex_ander
24th November 2008, 21:54
DGPulldown can remove pulldown? how? because im pretty sure it wouldnt accept values lower than the source's framerate.

For a really soft-pulldown source (23.976 flagged to 29.97) you can manually type 23.976 -> 23.976 to do it.

Undead Sega
24th November 2008, 22:06
23.976 -> 23.976 ???

im abit confused, if i want to remove pulldown from 29.97 -> 23.976

Guest
24th November 2008, 22:15
Read the DGPulldown help document! Stop wasting our time and bandwidth with stuff that is documented right where it should be. RTFM.

as i mentioned previously, when i used VirtualDub to IVTC, it did a good job but left from interlacing artifacts, is there a way to remove those completely? As I mentioned previously, use an Avisynth IVTC filter for hard pulldown removal. You have a short memory or something?

Undead Sega
27th November 2008, 23:30
Very well then, i dont mean to annoy anyone about this of course, sorry about that anyways :D

anyways (again) can someone give me a good IVTC script of AnimeIVTC? i also do have NNEDI :D

thanks.