I'm trying to encode any x264 video to x264 to any other container
it seems the result i get is weird transparent vertical lines, and different contrast changing in different scenes,
what would be the problem? I'm using K-lite mega codec 6.0.4, Avisynth 2.5.8 + MeGUI
I choose a short video from Chihiro to test encode, (it's anamorphic encoded)
my avisynth script:
# Set DAR in encoder to 16 : 9. The following line is for automatic signalling
global MeGUI_darx = 16
global MeGUI_dary = 9
DirectShowSource("C:\Downloads\Completed\[Chihiro]_K-On!!_[1440x1080_H.264_AAC]\[Chihiro]_K-On!!_-_ED_[1440x1080_H.264_AAC][25FF6F0C].mkv", fps=23.976, audio=false, convertfps=true)
#deinterlace
#crop
LanczosResize(1440,1080) # Lanczos (Sharp)
#denoise
ConvertToYV12()
I've problem to type after attached images,
please use image name as refer,
testvidori1-3 = original video
testvidencd1-3 = video after encoded
from these image, you can see the differences...
-visible transparent vertical lines (you can see it clear at first 2 images at her black dress,this lines barely visible at other brighter area too)
-different contrast changing in different scenes
any solution ?
![]()
+ Reply to Thread
Results 1 to 13 of 13
-
Last edited by squall0833; 15th Jun 2010 at 17:00.
-
Could be directshow issues and codec pack issues; try another source filter like ffmpegsource2() instead of directshowsource()
The 1st & 2nd series screenshots aren't even of the same frame, nor are they the same size. How are you taking screenshots?
Why are you encoding an x264 encode to x264 ?? Waste of time ? -
Hi, thanks for reply,
the 2nd image is later than 1st image few frames(transparent vertical lines visible on black dress girl, and most other scenes) i couldn't cap it in mpc for some reason, i use print screen to cap instead,
it's not only x264 to x264 having the same problem, I choose this anime video because it clearly shows the problem than other vids, I was trying to encode from FRAPS avi (or other format) to x264, having the same problem,
just tried ffmpegsource2()
# Set DAR in encoder to 16 : 9. The following line is for automatic signalling
global MeGUI_darx = 16
global MeGUI_dary = 9
FfmpegSource2("C:\Downloads\Completed\[Chihiro]_K-On!!_[1440x1080_H.264_AAC]\[Chihiro]_K-On!!_-_ED_[1440x1080_H.264_AAC][25FF6F0C].mkv")
#deinterlace
#crop
LanczosResize(1440,1080) # Lanczos (Sharp)
#denoise
ConvertToYV12()
result is still the same. -
The problem isn't in you AviSynth script. It's probably in the way you view the videos and the graphics cards drivers.
You can't compare two videos at the same time in two different players. The graphics card has a "video overlay" feature that can only be used by one program at a time. Video overlay has its own proc amp (brightness, contrast, saturation, etc.) controls. If you play two videos at the same time the first player gets video overlay, the second doesn't. The two players will usually look different, even if they are playing exactly the same file. Make sure this isn't the source of the differences in brightness and contrast.
The brightness and contrast differences you see are almost exactly the difference between the rec.601 and pc.601 YUV to RGB conversion matrices (more contrast in rec.601). This could be a matter of what program you used to grab the frames.
The second issue, the "vertical lines" in what should be a solid color area, looks like a known bug in the way some graphics drivers process video. You can try selecting different output drivers in your player. Also try updating to the latest driver for your graphics card, or disabling the graphics driver's video filtering.Last edited by jagabo; 16th Jun 2010 at 07:25.
-
Hi,
I didn't compare the 2 videos by playing them on different players or at the same time, i play them individually with the same player,
thats how I compare them, play the original video first, have a look, close it, then play the 2nd video that I encoded from the original video, and thats the differences I can see,
contrast and brightness in the encoded video changes in different scenes, but the original video has constant brightness and contrast
the problem it's the video i'm trying to encode to x264 from any format, having the lines and different brightness and contrast (and also changes frequently in different scenes),
I did try changing them into rec 601 or pc 601 before, video looks brighter, but contrast issue still present, more vertical lines, even more clear to see.
I'm using:
MeGUI + Avisynth 2.5.8 , k-lite
GPU ATI 5870 - driver 10.4
Windows 7 x64 Ultimate
thanks for help anyway, I'll try to find it out.Last edited by squall0833; 16th Jun 2010 at 12:09.
-
there u are:
http://rapidshare.com/files/399747329/koned_vid.mkv.html it's larger than 33mb, I uploaded it to rapidshare instead. -
It's probably a playback issue. I just did a test encode with your sample and it looks the same (no color/levels shift, no vertical bars)
Try some other playback software, like MPCHC, or KMplayer, or SMplayer
If you upload your encoded sample, we can help rule out if its some directshow issue on your system -
Hi there, k-lite has mpchc and also enabled wmp to play,
as what you said, I tried to play both videos on mpchc, and try different dshow settings, I found out they are look the same with EVR Custom Prest**,
MPCHC + EVR Custom Prest** - both same (have the same issues)
MPCHC + VMR-9 Renderess - both same (look as good as what it should be)
WMP - original video looks good, encoded video have issues)
so, is it DirectShow issue?
here's my encoded sample,
http://rapidshare.com/files/399846145/konedencdvid-muxed.mkv.html -
The encode looks fine; no color or levels shifts, no vertical lines. Very likely a playback problem, either with render or codec pack problems
You can prove it yourself. Stack them in avisynth, and play the avs, or open in vdub, or avsp
e.g.
a=ffmpegsource2("video1.mkv")
b=ffmpegsource2("video2.mkv")
stackvertical(a,b)
#you might have to resize this if your too big for your monitor
or you can open them in different tabs in avsp, and flip back & forth
or you can interleave them (alternate frames from each encode)
As jagabo mentioned above, when using a media player, make sure you close each video application before opening the other -
-
But now for your playback issues - It doesn't make sense what you've reported.
If you've opened 1 video played it, then closed the player, then opened 2nd video with the same configuration it should look the same. You should make sure that the processes have been terminated in taskmanager before opening the 2nd
You could try uninstalling codec packs and just install the filters/decoders/splitters that you need
Similar Threads
-
How to Use x264 Command Line
By Anonymous344 in forum Newbie / General discussionsReplies: 37Last Post: 2nd Nov 2013, 08:49 -
x264 command line for max quality within Bluray spec?
By Asterra in forum Video ConversionReplies: 5Last Post: 5th Apr 2012, 15:22 -
YouTube the hard way (x264 command line)
By Zacariaz in forum Newbie / General discussionsReplies: 0Last Post: 8th Jan 2012, 23:53 -
x264 Compression brightness/contrast issues
By SavageStyle in forum Video ConversionReplies: 43Last Post: 29th Sep 2011, 22:03 -
ffmpeg tga to x264 command line ?
By krohm in forum Video ConversionReplies: 71Last Post: 6th Jul 2010, 02:01