VideoHelp Forum




+ Reply to Thread
Results 1 to 13 of 13
  1. Member
    Join Date
    May 2009
    Location
    Argentina
    Search Comp PM
    Hi,

    Every time I convert a video to x265 I get a green tint /hue on the output picture, no matter if I use staxrip, handbrake or shutter encoder. it's notorious no matter if I play the output file with vlc, potplayer or mpc-hc with madvr, mpcvr or in auto mode, in my monitor or in the TV through HDMI, that's why I think that it's a encoder issue or something that I'm not doing right.

    here is a sample, see the whites in the shirt
    Original


    X265


    Any idea how to fix it in order to get the exact same color in the output file.

    Thanks in advance for any help.
    Quote Quote  
  2. You probably have a color matrix problem, rec.601 vs rec.709. Did you convert to RGB anywhere in your processing before encoding? Use the correct color matrix and flag it in your output video. Make sure you use a player that respects the color matrix.

    In the attached video I converted your RGB image to YV12 with a rec.709 matrix, then encoded with x265 (via ffmpeg) and flagged it as rec.709. I get the same colors as the original here.
    Image Attached Files
    Quote Quote  
  3. Member
    Join Date
    May 2009
    Location
    Argentina
    Search Comp PM
    Originally Posted by jagabo View Post
    Did you convert to RGB anywhere in your processing before encoding?
    I think not, just opened the file in those encoders (staxrip, shutter and handbrake) set q18 and press encode.
    Screenshot of Staxrip (the one that I used for this particular video)




    Make sure you use a player that respects the color matrix.
    Where can I check that? These are screenshoots of the players

    Potplayer



    MPC-BE


    K-lite also is installed


    Should I change any of the screenshot settings? Or is there a specific setting that I should look for in Staxrip in order to change the color matrix? Sorry for the dumb questions I don't know to much of video conversion.
    Last edited by TGB; 24th Jul 2023 at 00:42.
    Quote Quote  
  4. Member
    Join Date
    May 2009
    Location
    Argentina
    Search Comp PM
    I could solve the issue! x265 in the 3 encoders mentioned above is set by default to 10 bit and the sources that I was importing are AVC 8 bit, so I changed to 8 bit in x265 and now the colors seems to match perfectly
    So convert 8 bit to 10 bit leads to wrong colors no? (another dumb question, but I want to be sure that it was that and not other thing)
    Quote Quote  
  5. So convert 8 bit to 10 bit leads to wrong colors no?
    No, in general, conversion from 8bit to 10bit should not change the colors noticeable.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  6. I agree that 10 bit encoding (even of 8 bit sources) shouldn't change the colors. But sometimes graphics cards or players may have problems like this with 10 bit video, especially older hardware or software.
    Quote Quote  
  7. Member
    Join Date
    May 2009
    Location
    Argentina
    Search Comp PM
    That's strange then, I'm running Staxrip 2.22 (latest) and Shutter encoder 17.3 (latest) on a Ryzen 5700x with 32GB ddr4 and a Nvidia 3060ti GPU, it is not the latest hardware but it is not old either. Also I'm doing the conversion using the CPU not the cudas of the GPU. That's why I thought it might be a bug in the x265 codec, but I'm not really sure.
    Last edited by TGB; 24th Jul 2023 at 12:23.
    Quote Quote  
  8. Might be a vui flag issue,... What does mediainfo (detailed view) report about the source and the reencode?
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  9. Member
    Join Date
    May 2009
    Location
    Argentina
    Search Comp PM
    From MediaInfo

    Source


    Output


    The output is a fragment encoded with staxrip using x265 at q18 10bit (as I mentioned setting the output to 8 bit solves the problem)
    Last edited by TGB; 24th Jul 2023 at 18:28.
    Quote Quote  
  10. No color range, primaries, transfer, matrix info for the source?
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  11. Member
    Join Date
    May 2009
    Location
    Argentina
    Search Comp PM
    Originally Posted by Selur View Post
    No color range, primaries, transfer, matrix info for the source?
    Nop, that's all medianfo shows.
    Quote Quote  
  12. Try whether the output looks correct if you use bt.601 (or use some ColorMatrix conversion from bt.601 to bt.709; StaxRip should have an option for this).
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  13. Member
    Join Date
    May 2009
    Location
    Argentina
    Search Comp PM
    I couldn't find such option in staxrip so I did it with shutter encoder

    output


    settings


    It results in an even more green hue :/

    Like I mention before the only way that I can replicate the same colors it's setting x265 to 8 bit, either in staxrip or in shutter.
    Quote Quote  



Similar Threads

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