VideoHelp Forum




+ Reply to Thread
Results 1 to 13 of 13
  1. 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 ?

    Click image for larger version

Name:	testvidori1.png
Views:	776
Size:	881.3 KB
ID:	2317Click image for larger version

Name:	testvidencd1.png
Views:	747
Size:	818.3 KB
ID:	2321
    Click image for larger version

Name:	testvidencd3.png
Views:	725
Size:	643.4 KB
ID:	2319Click image for larger version

Name:	testvidori3.png
Views:	746
Size:	679.0 KB
ID:	2318
    Click image for larger version

Name:	testvidencd2.png
Views:	723
Size:	655.0 KB
ID:	2320
    Click image for larger version

Name:	testvidori2.png
Views:	766
Size:	720.8 KB
ID:	2316
    Last edited by squall0833; 15th Jun 2010 at 17:00.
    Quote Quote  
  2. 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 ?
    Quote Quote  
  3. 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.
    Quote Quote  
  4. 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.
    Quote Quote  
  5. 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.
    Quote Quote  
  6. Post a sample of the source
    Quote Quote  
  7. there u are:

    http://rapidshare.com/files/399747329/koned_vid.mkv.html it's larger than 33mb, I uploaded it to rapidshare instead.
    Quote Quote  
  8. 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
    Quote Quote  
  9. 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
    Quote Quote  
  10. 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
    Quote Quote  
  11. it shows both videos are the same,
    well all the color/level shift and bar issues gone, thank you all for the help

    confirmed it's playback issue
    ignore the different brightness in two different screens, that preview player always like that

    Click image for larger version

Name:	stackvidpre1.png
Views:	686
Size:	1.01 MB
ID:	2332
    Click image for larger version

Name:	stackvidpre2.png
Views:	717
Size:	1.05 MB
ID:	2331

    Click image for larger version

Name:	stackvidpre3.png
Views:	706
Size:	1,021.4 KB
ID:	2330
    Quote Quote  
  12. 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
    Quote Quote  
  13. MPCHC, yea, both videos are the same with same configuration
    WMP both videos look different with same configuration (don't know why)
    and yes, I always make sure player process completely ended before opening the next video,

    i'll remove k-lite and try others
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!