VideoHelp Forum
+ Reply to Thread
Results 1 to 16 of 16
Thread
  1. Hi guys.
    I've trying to encode HDR 4k, But it dosnt being like source movie.
    my output movie is too shining, but source file is really darkest:

    my release: Image
    [Attachment 69620 - Click to enlarge]

    source release: Image
    [Attachment 69621 - Click to enlarge]


    and this is my preset:
    Code:
    --deblock -3:-3:-3 --output-depth 10 --frame-threads 12 --rc-lookahead 60 --subme 4 --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --master-display G(8500,39850)B(6550,2300)R(35400,14600)WP(15635,16450)L(10000000,0) --max-cll 711,617
    Last edited by doostanehsoft; 7th Mar 2023 at 18:50.
    Quote Quote  
  2. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Are you trying to maintain the HDR or strip it?
    Quote Quote  
  3. Originally Posted by davexnet View Post
    Are you trying to maintain the HDR or strip it?
    I wanna maintain it. I trying to encode a real HDR10.
    Quote Quote  
  4. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Just a simple command line like this copies over all the HDR attributes from the source; I tested it on my TV and it works properly
    ffmpeg.exe -i "source_HDR.mp4" -c:v libx265 -c:a copy new_HDR.mp4

    SO not sure why yours is not working Your bottom image does not look like HDR should look; either encoded wrong
    or media player is not playing properly
    the top one does look very bright, this is often how HDR looks
    Last edited by davexnet; 8th Mar 2023 at 03:19.
    Quote Quote  
  5. Originally Posted by davexnet View Post
    Just a simple command line like this copies over all the HDR attributes from the source; I tested it on my TV and it works properly
    ffmpeg.exe -i "source_HDR.mp4" -c:v libx265 -c:a copy new_HDR.mp4

    SO not sure why yours is not working Your bottom image does not look like HDR should look; either encoded wrong
    or media player is not playing properly
    the top one does look very bright, this is often how HDR looks
    i dont want make a copy of source! i want to rip and compress it.
    Quote Quote  
  6. Originally Posted by davexnet View Post
    Just a simple command line like this copies over all the HDR attributes from the source; I tested it on my TV and it works properly
    ffmpeg.exe -i "source_HDR.mp4" -c:v libx265 -c:a copy new_HDR.mp4

    SO not sure why yours is not working Your bottom image does not look like HDR should look; either encoded wrong
    or media player is not playing properly
    the top one does look very bright, this is often how HDR looks
    I need a hdr preset that keep hdr colors and its dark effects.
    Quote Quote  
  7. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by doostanehsoft View Post
    Originally Posted by davexnet View Post
    Just a simple command line like this copies over all the HDR attributes from the source; I tested it on my TV and it works properly
    ffmpeg.exe -i "source_HDR.mp4" -c:v libx265 -c:a copy new_HDR.mp4

    SO not sure why yours is not working Your bottom image does not look like HDR should look; either encoded wrong
    or media player is not playing properly
    the top one does look very bright, this is often how HDR looks
    I need a hdr preset that keep hdr colors and its dark effects.
    The simple command line I gave does re-encode the video - it just copies the attributes, such as the existing colorspace . You can add/modify to it to your liking.
    Or just try it as is first and see what else it needs

    Or just encode it in Handfbrake or Vidcoder instead of FFmpeg
    Quote Quote  
  8. Originally Posted by davexnet View Post
    Originally Posted by doostanehsoft View Post
    Originally Posted by davexnet View Post
    Just a simple command line like this copies over all the HDR attributes from the source; I tested it on my TV and it works properly
    ffmpeg.exe -i "source_HDR.mp4" -c:v libx265 -c:a copy new_HDR.mp4

    SO not sure why yours is not working Your bottom image does not look like HDR should look; either encoded wrong
    or media player is not playing properly
    the top one does look very bright, this is often how HDR looks
    I need a hdr preset that keep hdr colors and its dark effects.
    The simple command line I gave does re-encode the video - it just copies the attributes, such as the existing colorspace . You can add/modify to it to your liking.
    Or just try it as is first and see what else it needs

    Or just encode it in Handfbrake or Vidcoder instead of FFmpeg
    its working tnx, but my new release presets is too simillar the previous release. its too bright.
    Really i encoded through avisynth, from premiere.
    Quote Quote  
  9. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    For any further analysis provide a short clip of your source showing the problem
    Quote Quote  
  10. Originally Posted by davexnet View Post
    For any further analysis provide a short clip of your source showing the problem
    the source & my release test files are in the following link:
    https://easyupload.io/m/a91wjb
    Quote Quote  
  11. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by doostanehsoft View Post
    Originally Posted by davexnet View Post
    For any further analysis provide a short clip of your source showing the problem
    the source & my release test files are in the following link:
    https://easyupload.io/m/a91wjb
    Yes I see the problem; it's possible you have to add something else to FFmpeg to fix this, but it's beyond my experience.
    Tried the encode in Vidcoder, seems good
    Image Attached Files
    Last edited by davexnet; 8th Mar 2023 at 19:00.
    Quote Quote  
  12. Originally Posted by davexnet View Post
    Originally Posted by doostanehsoft View Post
    Originally Posted by davexnet View Post
    For any further analysis provide a short clip of your source showing the problem
    the source & my release test files are in the following link:
    https://easyupload.io/m/a91wjb
    Yes I see the problem; it's possible you have to add something else to FFmpeg to fix this, but it's beyond my experience.
    Tried the encode in Vidcoder, seems good
    i've tested it without avisynth and premiere and the problem was fixed.
    i have to do some edit on movie first (with Premiere), and then encode it with the help of frameserver (on Premiere) and avisynth (on ffmpeg).
    i guess the problem is related to the avisynth script or frameserver plugin of preimere.
    in your opinion, could it related to the avisynth script, like YV12 code or etc?
    ConvertBits(8)
    ConvertToYV12()
    Quote Quote  
  13. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by doostanehsoft View Post
    Originally Posted by davexnet View Post
    Originally Posted by doostanehsoft View Post
    Originally Posted by davexnet View Post
    For any further analysis provide a short clip of your source showing the problem
    the source & my release test files are in the following link:
    https://easyupload.io/m/a91wjb
    Yes I see the problem; it's possible you have to add something else to FFmpeg to fix this, but it's beyond my experience.
    Tried the encode in Vidcoder, seems good
    i've tested it without avisynth and premiere and the problem was fixed.
    i have to do some edit on movie first (with Premiere), and then encode it with the help of frameserver (on Premiere) and avisynth (on ffmpeg).
    i guess the problem is related to the avisynth script or frameserver plugin of preimere.
    in your opinion, could it related to the avisynth script, like YV12 code or etc?
    ConvertBits(8)
    ConvertToYV12()
    Yes it could be. why do you need either of these?
    Quote Quote  
  14. my 2cents:
    Assuming you are encoding to HDR10 as output and not to SDR.
    My guess is what happens:
    When Premiere opens the source file directly, it sees that the content is HDR10 and copied the hdr metadata from the input to the output. (or configured the Premiere project accordingly)
    When Premiere opens the source through AviSynth, that metadata is missing, thus Premiere handles the content as SDR.
    So to let Premiere know that the content is HDR you need to add the metadata manually. Since I never used Premiere, I have no clue how to set color matrix, min/max light level, master display info and luma range, but from what I read this seems to be the issue to me.

    Cu Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  15. Originally Posted by davexnet View Post
    Originally Posted by doostanehsoft View Post
    Originally Posted by davexnet View Post
    Originally Posted by doostanehsoft View Post
    Originally Posted by davexnet View Post
    For any further analysis provide a short clip of your source showing the problem
    the source & my release test files are in the following link:
    https://easyupload.io/m/a91wjb
    Yes I see the problem; it's possible you have to add something else to FFmpeg to fix this, but it's beyond my experience.
    Tried the encode in Vidcoder, seems good
    i've tested it without avisynth and premiere and the problem was fixed.
    i have to do some edit on movie first (with Premiere), and then encode it with the help of frameserver (on Premiere) and avisynth (on ffmpeg).
    i guess the problem is related to the avisynth script or frameserver plugin of preimere.
    in your opinion, could it related to the avisynth script, like YV12 code or etc?
    ConvertBits(8)
    ConvertToYV12()
    Yes it could be. why do you need either of these?
    I need for some of my personal edits...
    Quote Quote  
  16. Originally Posted by Selur View Post
    my 2cents:
    Assuming you are encoding to HDR10 as output and not to SDR.
    My guess is what happens:
    When Premiere opens the source file directly, it sees that the content is HDR10 and copied the hdr metadata from the input to the output. (or configured the Premiere project accordingly)
    When Premiere opens the source through AviSynth, that metadata is missing, thus Premiere handles the content as SDR.
    So to let Premiere know that the content is HDR you need to add the metadata manually. Since I never used Premiere, I have no clue how to set color matrix, min/max light level, master display info and luma range, but from what I read this seems to be the issue to me.

    Cu Selur
    so as you said, the outputs from premiere, all are SDRs and its useless for me that i use HDR presets for this project, is this right?
    Last edited by doostanehsoft; 9th Mar 2023 at 08:24.
    Quote Quote  



Similar Threads

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