Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 30th March 2016, 00:44   #1  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Remove pulldown from alleged progressive source

What is the best way to remove the pulldown from this video? eac3to tells me "The MPEG2 stream is a mixture of progressive and interlaced encoding." And I don't see any option for pulldown in QTGMC. Little confused here.


Video
ID : 1
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : Variable
Codec ID : V_MPEG2
Codec ID/Info : MPEG 1 or 2 Video
Bit rate mode : Variable
Bit rate : 5 189 Kbps
Maximum bit rate : 9 800 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Original frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Scan order : 2:3 Pulldown
Compression mode : Lossy
Time code of first frame : 01:00:00:00
Time code source : Group of pictures header
GOP, Open/Closed : Open
GOP, Open/Closed of first frame : Closed
Default : No
Forced : No
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 30th March 2016, 01:10   #2  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,691
What makes you think the video itself contains pulldown? It may already be progressive, and the "2:3 pulldown" being reported may be nothing more than the pulldown flag. I say this because the frame rate is being reported as 23.976.

If you have any question, do a lossless cut of a few seconds of high motion and upload that so people can take a look at it.
johnmeyer is offline   Reply With Quote
Old 30th March 2016, 08:15   #3  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by johnmeyer View Post
What makes you think the video itself contains pulldown? It may already be progressive, and the "2:3 pulldown" being reported may be nothing more than the pulldown flag. I say this because the frame rate is being reported as 23.976.

If you have any question, do a lossless cut of a few seconds of high motion and upload that so people can take a look at it.

Thanks for your reply.

tsMuxer lists it as 720:480i, 29.97fps. Hence my confusion. I uploaded a 2secs sample, though, here:

What pulldown is this?
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 30th March 2016, 09:33   #4  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
It looks like telecined to me.
I would suggest:
Code:
TFM().tdecimate()  
QTGMC(InputType=1) #stabilizing & cleaning
which returns 23.976 progressive frames per second

(It would be helpful to get a segment with action/movement rather than a static scene)
Sharc is offline   Reply With Quote
Old 30th March 2016, 10:27   #5  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,743
Yes, that's too short and not enough animated to see exactly what it is.
For Gspot, this is 23.976 fps with a pulldown flag, you can remove it with TsMuxer.
Music Fan is offline   Reply With Quote
Old 30th March 2016, 14:43   #6  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by Sharc View Post
It looks like telecined to me.
I would suggest:
Code:
TFM().tdecimate()  
QTGMC(InputType=1) #stabilizing & cleaning
which returns 23.976 progressive frames per second

(It would be helpful to get a segment with action/movement rather than a static scene)

My bad, Here's a somewhat longer scene (10 secs, is that allowed here?)

Slightly longer

On this small fragment, removing pulldown with tsMuxer seemed fine. On the whole DVD, though, I got this strange error (from tsMuxer):

Warning! Source stream contain irregular pulldown marks. Mistiming between original fps and fps/1.25(without pulldown) exceed 100ms.

As always, your collective help is much appreciated!
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 30th March 2016, 16:41   #7  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
It's definitely soft telecined using pulldown flags.
The pulldown pattern is regular, and removing the pulldown flag or leaving the flag alone and apply IVTC via TFM().tdecimate() produces identical results.
There seems to be a hiccup though at the very end of the clip, but I suspect it is just due to the cutting.
Sharc is offline   Reply With Quote
Old 30th March 2016, 16:44   #8  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by Sharc View Post
It's definitely soft telecined using pulldown flags.
The pulldown pattern is regular, and removing the pulldown flag or leaving the flag alone and apply IVTC via TFM().tdecimate() produces identical results.
There seems to be a hiccup though at the very end of the clip, but I suspect it is just due to the cutting.
Thank you kindly!
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 30th March 2016, 18:30   #9  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,691
The video you uploaded is simply 24 fps. No pulldown removal is needed. You can edit and deal with it as 24p. As I suspected in my initial post, it does have the pulldown flag set which means that when you play it with a "pulldown aware" player (including a DVD player) duplicate fields will be add in order to achieve 29.97 fps without changing the playback speed.
johnmeyer is offline   Reply With Quote
Old 30th March 2016, 18:46   #10  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,743
Quote:
Originally Posted by johnmeyer View Post
The video you uploaded is simply 24 fps. No pulldown removal is needed.
Open the video in MediaInfo or Gspot, you will see there is a pulldown flag. And I believe 24p in 720.480 without pulldown flag does not exist on DVD.
Music Fan is offline   Reply With Quote
Old 30th March 2016, 18:51   #11  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by Music Fan View Post
Open the video in MediaInfo or Gspot, you will see there is a pulldown flag. And I believe 24p in 720.480 without pulldown flag does not exist on DVD.
Both tsMuxer and eac3to, as well as MediaInfo, say it comes with 3:2 pulldown.

Now I'm confused again, LOL.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 30th March 2016, 19:25   #12  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Hmm, using this:

FFVideoSource ("f:\video\taylor.m2ts")
TFM().tdecimate()

Yields a very weird fps:

f:\jobs\taylor.avs: 720x480, 8732/455 fps, 572 frames
y4m [info]: 720x480p 1:1 @ 8732/455 fps (cfr)

19.1912 fps, to be precise. That can't be right.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 30th March 2016, 20:37   #13  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,691
This script:

Code:
loadPlugin("c:\Program Files\AviSynth 2.5\plugins\ffms2.dll")
source=FFVideoSource("E:\Documents\Dnload\UNPACK\taylor.m2ts")
return source
yields a 23.976 video. As I said above, your video is encoded as 23.976, so the original film frames are there.

There is no hard telecine.

Here's the snapshot of the result of that script, playing in VirtualDub:



Note how the File Information dialog in Virtualdub correctly reports 23.976.
johnmeyer is offline   Reply With Quote
Old 30th March 2016, 20:41   #14  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,691
BTW, your "weird fps" is more or less what you would expect when you (incorrectly) apply the standard 3:2 TDecimate to 23.976:

23.976 * (24 /30 ) = 19.1808

I'm not sure how you got to the slightly different roundoff, but it doesn't really matter. Just don't do any IVTC, and you'll get the result you want.
johnmeyer is offline   Reply With Quote
Old 30th March 2016, 20:43   #15  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by johnmeyer View Post
This script:

Code:
loadPlugin("c:\Program Files\AviSynth 2.5\plugins\ffms2.dll")
source=FFVideoSource("E:\Documents\Dnload\UNPACK\taylor.m2ts")
return source
yields a 23.976 video. As I said above, your video is encoded as 23.976, so the original film frames are there.

There is no hard telecine.

Here's the snapshot of the result of that script, playing in VirtualDub:



Note how the File Information dialog in Virtualdub correctly reports 23.976.

^^ Brilliant stuff here! Thank you very much!
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 30th March 2016, 21:33   #16  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by asarian View Post
Hmm, using this:

FFVideoSource ("f:\video\taylor.m2ts")
TFM().tdecimate()

Yields a very weird fps:

f:\jobs\taylor.avs: 720x480, 8732/455 fps, 572 frames
y4m [info]: 720x480p 1:1 @ 8732/455 fps (cfr)

19.1912 fps, to be precise. That can't be right.
This just means that your player is not pulldown aware, means it ignores the pulldown flags.
If the player would respect the pulldown flags you would get 23.976fps.

Last edited by Sharc; 30th March 2016 at 21:58.
Sharc is offline   Reply With Quote
Old 30th March 2016, 22:24   #17  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by Sharc View Post
This just means that your player is not pulldown aware, means it ignores the pulldown flags.
If the player would respect the pulldown flags you would get 23.976fps.
There was no player involved yet. The '8732/455 fps' was just what x264 reported.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 30th March 2016, 22:40   #18  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by asarian View Post
There was no player involved yet. The '8732/455 fps' was just what x264 reported.
Player or decoder (FFVideoSource), whichever ....
I indexed the clip with DGindexNV and decoded with DGsource("...... .dgi").

Last edited by Sharc; 30th March 2016 at 22:46.
Sharc is offline   Reply With Quote
Old 30th March 2016, 22:45   #19  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by Sharc View Post
Player or decoder (FFVideoSource), whichever ....
I indexed the clip with DGindexNV.

Actually, now that you mention DGindexNV, I just noticed frame inconsistencies with FFVideoSource:

SetMemoryMax (768)
SetMTMode (5,4)
FFVideoSource ("f:\jobs\taylor.mkv")
SetMTMode (3)

I wanted to use my old DGDecNV again (lost it since my clean install of Win 10). While I can still download the binaries from Neuron2's site, it would seem the online license generator is gone.

Are there other frame-safe source indexers out there? (for AviSynth 2.6)
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 30th March 2016, 22:58   #20  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by asarian View Post
Actually, now that you mention DGindexNV, I just noticed frame inconsistencies with FFVideoSource:

SetMemoryMax (768)
SetMTMode (5,4)
FFVideoSource ("f:\jobs\taylor.mkv")
SetMTMode (3)

I wanted to use my old DGDecNV again (lost it since my clean install of Win 10). While I can still download the binaries from Neuron2's site, it would seem the online license generator is gone.

Are there other frame-safe source indexers out there? (for AviSynth 2.6)
You may want to try LWLibavVideoSource(...).

P.S. The DG.... license generator worked for me recently. Otherwise you may PM Donald Graft.

Last edited by Sharc; 30th March 2016 at 23:01.
Sharc is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:04.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.