Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th June 2019, 16:06   #1  |  Link
spoRv
Registered User
 
Join Date: Nov 2016
Posts: 112
x265 UHD-BD compliant settings, encode error

I'm trying to encode a 2160p 10bit SDR video to x265, and getting UHD-BD compliance.

I know that there is the --uhd-bd setting that *should* be enough, but I wanted to add more settings to be *sure*...

Started with veryslow, but it was, indeed... too slow? With medium, I can get almost the same quality, but in a fraction of the time, so I went with this.

Settings used:
Code:
x265.exe --pass 1 --uhd-bd --bitrate 50000 --vbv-maxrate 64000 --vbv-bufsize 64000 --keyint 24 --min-keyint 1 --preset medium --tune grain --profile main10 --level-idc 51 --high-tier --aud --sar 1 --hrd --repeat-headers --no-open-gop --ref 5 --no-temporal-layers --overscan show --wpp --multi-pass-opt-analysis --input-depth 10 --output-depth 10 --no-interlace --range limited --colorprim bt709 --transfer bt709 --colormatrix bt709 --stats ".stats" --output NUL "Input_File.avs"

x265.exe --pass 2 --uhd-bd --bitrate 50000 --vbv-maxrate 64000 --vbv-bufsize 64000 --keyint 24 --min-keyint 1 --preset medium --tune grain --profile main10 --level-idc 51 --high-tier --aud --sar 1 --hrd --repeat-headers --no-open-gop --ref 5 --no-temporal-layers --overscan show --wpp --multi-pass-opt-analysis --input-depth 10 --output-depth 10 --no-interlace --range limited --colorprim bt709 --transfer bt709 --colormatrix bt709 --stats ".stats" --output "Output_File.265" "Input_File.avs"
I used various x265 3.0 builds, using both CLI and x264/x265 simple launcher; sources were the same, encoded as 8bit lagarith or 16bit x265 lossless, or avisynth simple scripts with previous adding just convertbits(10)... every time the encoding stopped around 14/15% with the following error:



I tried to use only --uhd-bd, and it encoded flawlessly.

So, there is some "bad" setting that is causing the error, but I have no idea which ones could be the suspects!

HELP!
spoRv is offline   Reply With Quote
Old 9th June 2019, 17:57   #2  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,495
Quote:
x265 [error]: Error writing analysis 2 pass data
Try to remove --multi-pass-opt-analysis


P.S.: fps is weird, add --fps 24000/1001 to x265 or AssumeFPS(24000, 1001, false) to AviSynth
sneaker_ger is offline   Reply With Quote
Old 9th June 2019, 19:36   #3  |  Link
spoRv
Registered User
 
Join Date: Nov 2016
Posts: 112
Thanks!

I forgot to add --fps setting... my fault!

EDIT: but in the script I had AssumeFPS(24000,1001)... and now, adding --fps 24000/1001, I got "WARNING: Custom parameter "--fps" will be ignored in Pipe'd mode!"

Last edited by spoRv; 9th June 2019 at 19:40.
spoRv is offline   Reply With Quote
Reply

Tags
compliance, uhd-bd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:20.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.