PDA

View Full Version : green horizontal bar in result using x264


mastrboy
9th October 2009, 20:47
First time experienced this, see screenshots to se what i mean, basicly there is a weird green horizontal bar in the result after encoding. (On the bottom of the image)

The green bar is there throughout the entire movie, sometimes flickers a little...

Screenshot:
http://forum.doom9.org/attachment.php?attachmentid=10367&stc=1&d=1255113841

Version:
x264 0.75.1259M dd026f2
built on Sep 17 2009, gcc: 4.3.4 20090220 (prerelease) (x32.generic.Komisar)

Commandline:
x264.exe --preset fast --tune grain --pass 2 --bitrate 4100 --stats ".stats" --thread-input --output "output" "input"

Avisynth script:
AVCSource("E:\Track1.dga")

The avisynth script plays without the green bar, so it's something done in the encode process, but what? and how can i resolve this?

neuron2
9th October 2009, 21:00
Tell the dimensions of your source frame.

mastrboy
9th October 2009, 21:07
DGAVCIndex reports following:
Frame size: 1280x534
SAR: 1:1
Display size: 1280x534

poisondeathray
9th October 2009, 21:18
What software are you using for playback?

Did you try another? e.g. MPCHC, KMplayer, SMPlayer etc..

Keiyakusha
9th October 2009, 21:28
DGAVCIndex reports following:
Frame size: 1280x534
SAR: 1:1
Display size: 1280x534

534 is not mod16. Actually it even can't be divided by 4 without remainder. In other words this is wrong resolution and it can't be handled normally by many decoders. Green bar you see probably has 10px height and represents "missing" pixels

mastrboy
9th October 2009, 21:34
Yes different players have been testet, MPC, SMplayer, VLC, i don't have The KMplayer installed on my laptop.

So there is no workaround in x264?, and i have to resize before encoding.?

Dark Shikari
9th October 2009, 21:37
Yes different players have been testet, MPC, SMplayer, VLC, i don't have The KMplayer installed on my laptop.It's likely a problem with your display drivers.

mastrboy
9th October 2009, 21:49
It's likely a problem with your display drivers.

I double checked that just now, same problem om my HTPC which has Nvidia Graphics as on my laptop which has ATI Graphics.. I Kind of doubt that nvidia and ATI would have the same problem in their driver...

thewebchat
9th October 2009, 22:27
Bad handling of non-mod8 video is pretty much commonplace across all drivers. For example, I know I get "green pixels" using mod2/4 width, and I think I get missing lines (haven't tested) using mod2 height. Try using MPC/HC with the Haali Renderer (I think it handles this fine). I suspect that the encode is actually fine, just the playback that's broken.

mastrboy
11th October 2009, 03:21
Solved it by cropping it to mod16, 1280x528... Thanks for the info (Never got around to testing with the haali renderer, but i need my files to be portable between linux and windows, so depending on a windows only component would not really be a solution for me)