Log in

View Full Version : How to deinterlace this video?


asarian
3rd January 2011, 16:57
Would someone please be so kind as to tell me how to deinterlace this video? (10s fragment here (http://www.mediafire.com/file/1ooe1gdfa9w300k/cherry200-test.mkv))

It's a fragment from Cherry 2000, listed as 576i50. I tried to deinterlace it as follows:

FFVideoSource("f:\jobs\cherry2000.mkv")
# separatefields
SmoothDeinterlace

When I do that, however, I get a double height. :( And I can't feed it to x264 'as is,' as it keeps telling me it's not progressive. So, how can I make this progressive again, without doubling the height?

Thanks.

smok3
3rd January 2011, 18:15
it is not interlaced, so nothin to deinterlace.

a script like:
LoadPlugin("t:\utility\avisynth\ffmpegsource\FFMS2.dll")
ffvideosource("c:\!dl\cherry200-test.mkv")

is working for me as a valid feed to x264.

p.s. are you sure x264 has an opinion about field/frame based video? what is the exact error you get?

asarian
3rd January 2011, 20:20
it is not interlaced, so nothin to deinterlace.

a script like:
LoadPlugin("t:\utility\avisynth\ffmpegsource\FFMS2.dll")
ffvideosource("c:\!dl\cherry200-test.mkv")

is working for me as a valid feed to x264.

p.s. are you sure x264 has an opinion about field/frame based video? what is the exact error you get?

Thanks for your reply.

I expressed myself a bit too briefly. I meant is, that when I used separatefields, to keep the correct height, x264 tells me the source is not progressive (as expected, in a way). When I feed the source file directly to x264, it will start encoding, but the resultant file has a completely messed up aspect ratio; see here (http://www.mediafire.com/download.php?gj9ckbq226f8490). The top image is how it should be (taken directly with a player from the input mkv). The bottom one is what x264 makes of it.

I just can't figure out why the height is suddenly all wrong.

smok3
3rd January 2011, 21:04
well, its not wrong, your source is anamorfic mpeg2, so you either have to:

a. tell x264 what --sar to use (see x264 help file), you may want to use --sar 64:45 for this example.
autocalc http://resize.110mb.com/index.php?ssmw=720&sar=1.42222&sar2=&ssmh=576&CT=&CL=&CR=&CB=&mplayCrop=&trw=&dar=1.42222&dar2=&modw=&modh=&padw=&padh=&css=&doit=true
b. resize to square pixels
autocalc http://resize.110mb.com/index.php?ssmw=720&sar=1.42222&sar2=&ssmh=576&CT=&CL=&CR=&CB=&mplayCrop=&trw=&dar=1&dar2=&modw=16&modh=16&padw=&padh=&css=&doit=true

that will depend on the players you want to use.

asarian
3rd January 2011, 23:06
well, its not wrong, your source is anamorfic mpeg2, so you either have to:

a. tell x264 what --sar to use (see x264 help file), you may want to use --sar 64:45 for this example.
autocalc http://resize.110mb.com/index.php?ssmw=720&sar=1.42222&sar2=&ssmh=576&CT=&CL=&CR=&CB=&mplayCrop=&trw=&dar=1.42222&dar2=&modw=&modh=&padw=&padh=&css=&doit=true
b. resize to square pixels
autocalc http://resize.110mb.com/index.php?ssmw=720&sar=1.42222&sar2=&ssmh=576&CT=&CL=&CR=&CB=&mplayCrop=&trw=&dar=1&dar2=&modw=16&modh=16&padw=&padh=&css=&doit=true

that will depend on the players you want to use.

Thank you very much! Very useful, those calculators! :) Took a bit of sorting out, but it's all working as intended now. Thanks again!