Log in

View Full Version : What is causing this weird image distortion?


morph166955
7th April 2006, 00:50
Im not sure if this is a general encoding issue or an x264 issue so im putting it here, if thats wrong, i appologize but this is something i never saw on xvid or divx when i was using those so im just making a guess here.

Im attaching 10 images, these images were created using the -vo jpeg filter from mplayer on a 60 second snip of a rip i just did (the full length encode has the exact same distortions). First let me preface this by saying im new to x264 so if i oopsed, let me know. Also note im only seeing this distortion on this one chapter of this one dvd, every other chapter of the dvd and of others is thus far clean. Im including the mencoder line i used to create this video below (for now im using nosound just to speed up encoding and decrease size until i fix this).

mencoder dvd:// -dvd-device ../HOUSE-D2-SB-CH1-EP113.ISO -nosound -vf crop=720:352:0:66,scale=720:396 -ovc x264 -x264encopts crf=22:psnr:b_pyramid:frameref=10:bframes=3:weight_b:8x8dct:4x4mv:subq=6:me=3:mixed_refs:nofast_pskip:brdo:bime -o CH1Crop.avi

Clean Frames:
281,282,285,286,287,290
Bad Frames:
283,284,288,289

morph166955
7th April 2006, 00:54
Second set...

Lil' Jer
7th April 2006, 01:36
Could you maybe post them to imageshack.us and link them so we don't have to wait forever for the attachments to get approved?

morph166955
7th April 2006, 01:56
i threw them on my webspace. Hope that helps

http://www.benswebs.com/x264

Sharktooth
7th April 2006, 02:06
seems an IVTC problem

Lil' Jer
7th April 2006, 02:10
seems an IVTC problem

Well it looks like they didn't even do an IVTC at all as it still has the 3 clean and 2 bad frame pattern. Morph you need to do an IVTC to get rid of the combing.

morph166955
7th April 2006, 02:32
how do i do an IVTC?

Lil' Jer
7th April 2006, 02:37
how do i do an IVTC?

There's a variety of ways. Using Avisynth would be the easiest. Look up Decomb or TIVTC. This should probably be moved to the Avisynth forum as it has nothing to do with x264.

nm
7th April 2006, 02:52
He's using mencoder, which has loads of ivtc filters built-in. Just RTFM :)

morph166955
7th April 2006, 03:02
I did, thus far i have had the ability to run one test using -vf pullup after my croping and scaling (the whole line was -vf crop=720:352:0:66,scale=720:396,pullup). didnt do a blasted thing. im going to keep hunting since there are many but i was wondering what generally works the best option wise.

nm
7th April 2006, 03:37
Use MPlayer to test the filters, so you don't need to encode anything. Also put the IVTC filters before scaling and cropping in the filter chain. Otherwise it certainly won't work correctly.

ChronoCross
7th April 2006, 04:24
hmm you know what's wierd. I have the house season 1 DVD's and it's progressive FILM.

Lil' Jer
7th April 2006, 04:36
hmm you know what's wierd. I have the house season 1 DVD's and it's progressive FILM.

Not all that weird. If you open up vobs from a progressive DVD in DGIndex you will see combing due to the fact that the content is stored on the disc as 30fps soft-telecined. I think the cause of him seeing combing here is due to the way he is loading the files into mencoder.

morph166955
7th April 2006, 04:45
why would it only do it on one chapter from one disc though? (btw chronocross this is disc 2, side b, chapter 1 if your checking it out). ive run it from the dvd, from an iso made of the full dvd, from an iso made of just that chapter, and from an exactly disc duplication file by file...all do the same thing. ill keep poking at it. using mplayer to test it and the fd filter seems to work adequately enough so i think im going to manually handle that. you said that its the way im loading the files...whats a better way for me to load them?

now lemme ask this question, if i include fd as a default option in my script, how bad is that? will it cause any negative effects to a file that does not need it or will it simply do nothing?

ChronoCross
7th April 2006, 05:05
Not all that weird. If you open up vobs from a progressive DVD in DGIndex you will see combing due to the fact that the content is stored on the disc as 30fps soft-telecined. I think the cause of him seeing combing here is due to the way he is loading the files into mencoder.

your right. I'm too used to Dgindex. Using forced film removes these issues. If you don't use force film you must do this

tfm().tdecimate() in avs.

mencoder is foriegn to me but yeah the process shouldn't be hard if it's built in.

nm
7th April 2006, 05:49
you said that its the way im loading the files...whats a better way for me to load them?
The DVD/file input has got nothing to do with this. It's a filtering problem or simply broken original encoding of that particular chapter.

now lemme ask this question, if i include fd as a default option in my script, how bad is that? will it cause any negative effects to a file that does not need it or will it simply do nothing?
It is bad. You'll lose a lot of vertical resolution. It is bad even for this case, unless there really is something wrong with the original encoding and not your mplayer/mencoder settings. Actually it is surprising that you don't see the telecine anywhere else on NTSC discs. Are you sure you don't already have an IVTC filter inserted in some MPlayer config file (in Linux/*BSD: /etc/mplayer/mplayer,conf, ~/.mplayer/config, don't know about Windows)?

Thasp
9th April 2007, 19:12
filmdint=dint_thres=256,harddup is your friend. Try it before the crop.

morph166955
10th April 2007, 01:47
holy thread from the dead batman! yea i fixed this a good long while ago...thanks though!

Thasp
10th April 2007, 05:18
I saw April 7th and figured it was a few days old. I must have clicked this while searching for "mencoder distortion" to fix a weird issue of mine. Whoops. :(