diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index c2d09db93..000000000 Binary files a/.DS_Store and /dev/null differ diff --git a/404.html b/404.html index 634ee68e6..84ffd338b 100644 --- a/404.html +++ b/404.html @@ -2,7 +2,7 @@ - + Page Not Found | Codec Wiki @@ -13,9 +13,9 @@ - - - + + +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

diff --git a/assets/css/styles.6ca912c1.css b/assets/css/styles.93aec407.css similarity index 56% rename from assets/css/styles.6ca912c1.css rename to assets/css/styles.93aec407.css index 4004031b8..c5537bb8b 100644 --- a/assets/css/styles.6ca912c1.css +++ b/assets/css/styles.93aec407.css @@ -1 +1 @@ -.col,.container{padding:0 var(--ifm-spacing-horizontal);width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown li,body{word-wrap:break-word}body,ol ol,ol ul,ul ol,ul ul{margin:0}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}.toggleButton_gllP,html{-webkit-tap-highlight-color:transparent}*,.loadingRing_RJI3 div{box-sizing:border-box}.authorSocials_rSDt,.authorTitle_nd0D{-webkit-box-orient:vertical;overflow:hidden}.clean-list,.containsTaskList_mC6p,.details_lb9f>summary,.dropdown__menu,.menu__list{list-style:none}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:#0000;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:#0000000d;--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 #0000001a;--ifm-global-shadow-md:0 5px 40px #0003;--ifm-global-shadow-tl:0 12px 28px 0 #0003,0 2px 4px 0 #0000001a;--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:#0000;--ifm-table-stripe-background:#00000008;--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--docusaurus-announcement-bar-height:auto;--docusaurus-collapse-button-bg:#0000;--docusaurus-collapse-button-bg-hover:#0000001a;--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px;--docusaurus-blog-social-icon-size:1rem;--docusaurus-tag-list-border:var(--ifm-color-emphasis-300)}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:#0000}html{background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;-webkit-text-size-adjust:100%;text-size-adjust:100%}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none,.tabItem_LNqP{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_NmtK,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width)}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-top--md,.margin-vert--md{margin-top:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid #0000001a;border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}a code{color:inherit}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:initial;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img{max-width:100%}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul,.tabList__CuJ{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin)}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table{border-collapse:collapse;display:block;margin-bottom:var(--ifm-spacing-vertical)}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary,.wordWrapButtonEnabled_EoeP .wordWrapButtonIcon_Bwma{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.centered-text,.text--center{text-align:center}.text--left{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_Gvgb,.alert__heading,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:#3578e526;--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:#ebedf026;--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:#00a40026;--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:#54c7ec26;--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:#ffba0026;--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:#fa383e26;--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);overflow:hidden;width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after,.searchBarContainer_NW3z.searchIndexLoading_EJ1f .searchBarLoadingRing_YnHq{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:any-link:hover,.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:#0000;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column;overflow:hidden}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{font-size:.8rem;margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.content_knG7 a,.hitFooter_E9YW a,.suggestion_fB_2.cursor_eG29 mark{text-decoration:underline}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.header-discord-link:hover,.header-github-link:hover,.theme-code-block-highlighted-line .codeLineNumber_Tfdd:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;pointer-events:none;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.sidebar_re4s,.tableOfContents_bqdL{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor #0000;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__links{margin-bottom:1rem}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.docItemContainer_Djhp article>:first-child,.docItemContainer_Djhp header+*,.footer__item{margin-top:0}.admonitionContent_BuS1>:last-child,.collapsibleContent_i85q p:last-child,.details_lb9f>summary>p:last-child,.footer__items,.searchResultItem_U687>h2,.tabItem_Ymn6>:last-child{margin-bottom:0}.codeBlockStandalone_MEMb,[type=checkbox]{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__title,.title_f1Hy{font-size:3rem}.hero__subtitle{font-size:1.5rem}.menu__list{margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_lb9f[data-collapsed=false].isBrowser_bmU9>summary:before,.details_lb9f[open]:not(.isBrowser_bmU9)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;width:1.25rem;content:"";filter:var(--ifm-menu-link-sublist-icon-filter)}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0;z-index:var(--ifm-z-index-fixed)}.navbar-sidebar,.navbar-sidebar__backdrop{bottom:0;opacity:0;position:fixed;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;left:0;top:0;visibility:hidden}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;margin-right:1rem;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_xLdY,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center .navbar__brand{margin:0}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}#nprogress,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:#ffffff1a;--ifm-navbar-search-input-placeholder-color:#ffffff80;color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:#ffffff0d;--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{-webkit-appearance:none;appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:1rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:#0009;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover,.sidebarItemLink_mo7H:hover{text-decoration:none}.pagination-nav{display:grid;grid-gap:var(--ifm-spacing-horizontal);gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;cursor:pointer;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs,:not(.containsTaskList_mC6p>li)>.containsTaskList_mC6p{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid #0000;border-radius:var(--ifm-global-radius);cursor:pointer;display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:#ffffff0d;--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:#ffffff1a;--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:#ffffff12;--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}@font-face{font-family:Mona Sans;font-stretch:75% 125%;font-weight:500 900;src:url(/assets/fonts/Mona-Sans-2f40792e491758879b8530661f90743a.woff2) format("woff2 supports variations"),url(/assets/fonts/Mona-Sans-2f40792e491758879b8530661f90743a.woff2) format("woff2-variations")}@font-face{font-family:Inter;font-stretch:75% 125%;font-weight:200 900;src:url(/assets/fonts/Inter.var-c2fe3cb2b7c746f7966a973d869d21c3.woff2) format("woff2 supports variations"),url(/assets/fonts/Inter.var-c2fe3cb2b7c746f7966a973d869d21c3.woff2) format("woff2-variations")}@font-face{font-family:Monaspace Neon;font-stretch:100% 100%;font-weight:200 900;src:url(/assets/fonts/Monaspace-Neon-d42b5dfd306f7308ea84dbc6980c5140.woff2) format("woff2 supports variations"),url(/assets/fonts/Monaspace-Neon-d42b5dfd306f7308ea84dbc6980c5140.woff2) format("woff2-variations")}h4,h5,h6,html{font-family:Inter,sans-serif}h1,h2,h3{font-family:Mona Sans,sans-serif}code *{font-family:Monaspace Neon,monospace;font-variant-ligatures:discretionary-ligatures}[data-theme=dark],[data-theme=light]{--ifm-color-primary-darkest:oklch(66.47% 0.298 7);--ifm-color-primary-darker:oklch(66.47% 0.298 7);--ifm-color-primary-dark:oklch(66.47% 0.298 7);--ifm-color-primary:oklch(66.47% 0.298 7);--ifm-color-primary-light:oklch(66.47% 0.298 7);--ifm-color-primary-lighter:oklch(66.47% 0.298 7);--ifm-color-primary-lightest:oklch(66.47% 0.298 7)}.header-discord-link{height:24px}.header-discord-link:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 127.14 96.36'%3E%3Cpath fill='%235865F2' d='M107.7 8.07A105.2 105.2 0 0 0 81.47 0a72 72 0 0 0-3.36 6.83 97.7 97.7 0 0 0-29.11 0A72 72 0 0 0 45.64 0a106 106 0 0 0-26.25 8.09C2.79 32.65-1.71 56.6.54 80.21a105.7 105.7 0 0 0 32.17 16.15 77.7 77.7 0 0 0 6.89-11.11 68.4 68.4 0 0 1-10.85-5.18c.91-.66 1.8-1.34 2.66-2a75.57 75.57 0 0 0 64.32 0c.87.71 1.76 1.39 2.66 2a68.7 68.7 0 0 1-10.87 5.19 77 77 0 0 0 6.89 11.1 105.3 105.3 0 0 0 32.19-16.14c2.64-27.38-4.51-51.11-18.9-72.15M42.45 65.69C36.18 65.69 31 60 31 53s5-12.74 11.43-12.74S54 46 53.89 53s-5.05 12.69-11.44 12.69m42.24 0C78.41 65.69 73.25 60 73.25 53s5-12.74 11.44-12.74S96.23 46 96.12 53s-5.04 12.69-11.43 12.69'/%3E%3C/svg%3E") no-repeat;content:"";display:flex;height:24px;right:550px;width:24px}.header-github-link:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E") no-repeat;content:"";display:flex;height:24px;width:24px}html[data-theme=dark] .header-github-link:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E") no-repeat}.backToTopButton_sjWU{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.backToTopButton_sjWU:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_xfvO{opacity:1;transform:scale(1);visibility:visible}.skipToContent_fXgn{background-color:var(--ifm-background-surface-color);color:var(--ifm-color-emphasis-900);left:100%;padding:calc(var(--ifm-global-spacing)/2) var(--ifm-global-spacing);position:fixed;top:1rem;z-index:calc(var(--ifm-z-index-fixed) + 1)}.skipToContent_fXgn:focus{box-shadow:var(--ifm-global-shadow-md);left:1rem}.closeButton_CVFx{line-height:0;padding:0}.content_knG7{font-size:85%;padding:5px 0;text-align:center}.content_knG7 a{color:inherit}.announcementBar_mb4j{align-items:center;background-color:var(--ifm-color-white);border-bottom:1px solid var(--ifm-color-emphasis-100);color:var(--ifm-color-black);display:flex;height:var(--docusaurus-announcement-bar-height)}#__docusaurus-base-url-issue-banner-container,.docSidebarContainer_YfHR,.hideAction_vcyE>svg,.navbarSearchContainer_Bca1:empty,.sidebarLogo_isFc,.themedComponent_mlkZ,[data-theme=dark] .lightToggleIcon_pyhR,[data-theme=light] .darkToggleIcon_wfgR,html[data-announcement-bar-initially-dismissed=true] .announcementBar_mb4j{display:none}.announcementBarPlaceholder_vyr4{flex:0 0 10px}.announcementBarClose_gvF7{align-self:stretch;flex:0 0 30px}.toggle_vylO{height:2rem;width:2rem}.toggleButton_gllP{align-items:center;border-radius:50%;display:flex;height:100%;justify-content:center;transition:background var(--ifm-transition-fast);width:100%}.toggleButton_gllP:hover{background:var(--ifm-color-emphasis-200)}.toggleButtonDisabled_aARS{cursor:not-allowed}.darkNavbarColorModeToggle_X3D1:hover{background:var(--ifm-color-gray-800)}[data-theme=dark] .themedComponent--dark_xIcU,[data-theme=light] .themedComponent--light_NVdE,html:not([data-theme]) .themedComponent--light_NVdE{display:initial}[data-theme=dark]:root{--docusaurus-collapse-button-bg:#ffffff0d;--docusaurus-collapse-button-bg-hover:#ffffff1a}.collapseSidebarButton_PEFL{display:none;margin:0}.iconExternalLink_nPIU{margin-left:.3rem}.docMainContainer_TBSr,.docRoot_UBD9{display:flex;width:100%}.docsWrapper_hBAB{display:flex;flex:1 0 auto}.dropdownNavbarItemMobile_S0Fm{cursor:pointer}.iconLanguage_nlXk{margin-right:5px;vertical-align:text-bottom}.searchBar_RVTs .dropdownMenu_qbY6{background:var(--search-local-modal-background,#f5f6f7);border-radius:6px;box-shadow:var(--search-local-modal-shadow,inset 1px 1px 0 0 #ffffff80,0 3px 8px 0 #555a64);left:auto!important;margin-top:8px;padding:var(--search-local-spacing,12px);position:relative;right:0!important;width:var(--search-local-modal-width,560px)}html[data-theme=dark] .searchBar_RVTs .dropdownMenu_qbY6{background:var(--search-local-modal-background,var(--ifm-background-color));box-shadow:var(--search-local-modal-shadow,inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309)}.searchBar_RVTs .dropdownMenu_qbY6 .suggestion_fB_2{align-items:center;background:var(--search-local-hit-background,#fff);border-radius:4px;box-shadow:var(--search-local-hit-shadow,0 1px 3px 0 #d4d9e1);color:var(--search-local-hit-color,#444950);cursor:pointer;display:flex;flex-direction:row;height:var(--search-local-hit-height,56px);padding:0 var(--search-local-spacing,12px);width:100%}.hitTree_kk6K,.noResults_l6Q3{align-items:center;display:flex}html[data-theme=dark] .dropdownMenu_qbY6 .suggestion_fB_2{background:var(--search-local-hit-background,var(--ifm-color-emphasis-100));box-shadow:var(--search-local-hit-shadow,none);color:var(--search-local-hit-color,var(--ifm-font-color-base))}.searchBar_RVTs .dropdownMenu_qbY6 .suggestion_fB_2:not(:last-child){margin-bottom:4px}.searchBar_RVTs .dropdownMenu_qbY6 .suggestion_fB_2.cursor_eG29{background-color:var(--search-local-highlight-color,var(--ifm-color-primary))}.hitFooter_E9YW a,.hitIcon_a7Zy,.hitPath_ieM4,.hitTree_kk6K,.noResultsIcon_EBY5{color:var(--search-local-muted-color,#969faf)}html[data-theme=dark] .hitIcon_a7Zy,html[data-theme=dark] .hitPath_ieM4,html[data-theme=dark] .hitTree_kk6K,html[data-theme=dark] .noResultsIcon_EBY5{color:var(--search-local-muted-color,var(--ifm-color-secondary-darkest))}.hitTree_kk6K>svg{height:var(--search-local-hit-height,56px);opacity:.5;width:24px}.hitIcon_a7Zy,.hitTree_kk6K>svg{stroke-width:var(--search-local-icon-stroke-width,1.4)}.hitAction_NqkB,.hitIcon_a7Zy{height:20px;width:20px}.hitWrapper_sAK8{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;margin:0 8px;overflow-x:hidden;width:80%}.hitWrapper_sAK8 mark{background:none;color:var(--search-local-highlight-color,var(--ifm-color-primary))}.hitTitle_vyVt{font-size:.9em}.hitPath_ieM4{font-size:.75em}.hitPath_ieM4,.hitTitle_vyVt{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.noResults_l6Q3{flex-direction:column;justify-content:center;padding:var(--search-local-spacing,12px) 0}.noResultsIcon_EBY5{margin-bottom:var(--search-local-spacing,12px)}.hitFooter_E9YW{font-size:.85em;margin-top:var(--search-local-spacing,12px);text-align:center}.cursor_eG29 .hideAction_vcyE>svg,.tocCollapsibleContent_vkbj a{display:block}.suggestion_fB_2.cursor_eG29,.suggestion_fB_2.cursor_eG29 .hitIcon_a7Zy,.suggestion_fB_2.cursor_eG29 .hitPath_ieM4,.suggestion_fB_2.cursor_eG29 .hitTree_kk6K,.suggestion_fB_2.cursor_eG29 mark{color:var(--search-local-hit-active-color,var(--ifm-color-white))!important}.searchBarContainer_NW3z{margin-left:16px}.searchBarContainer_NW3z .searchBarLoadingRing_YnHq{display:none;left:10px;position:absolute;top:6px}.searchBarContainer_NW3z .searchClearButton_qk4g{background:none;border:none;line-height:1rem;padding:0;position:absolute;right:.8rem;top:50%;transform:translateY(-50%)}.navbar__search{position:relative}.searchIndexLoading_EJ1f .navbar__search-input{background-image:none}.searchHintContainer_Pkmr{align-items:center;display:flex;gap:4px;height:100%;justify-content:center;pointer-events:none;position:absolute;right:10px;top:0}.searchHint_iIMx{background-color:var(--ifm-navbar-search-input-background-color);border:1px solid var(--ifm-color-emphasis-500);box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-500);color:var(--ifm-navbar-search-input-placeholder-color)}.loadingRing_RJI3{display:inline-block;height:20px;opacity:var(--search-local-loading-icon-opacity,.5);position:relative;width:20px}.authorSocialIcon_XYv3,.authorSocialLink_owbf,.authorSocials_rSDt{height:var(--docusaurus-blog-social-icon-size)}.loadingRing_RJI3 div{animation:1.2s cubic-bezier(.5,0,.5,1) infinite a;border:2px solid var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color));border-color:var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color)) #0000 #0000 #0000;border-radius:50%;display:block;height:16px;margin:2px;position:absolute;width:16px}.loadingRing_RJI3 div:first-child{animation-delay:-.45s}.loadingRing_RJI3 div:nth-child(2){animation-delay:-.3s}.loadingRing_RJI3 div:nth-child(3){animation-delay:-.15s}@keyframes a{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.navbarHideable_m1mJ{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_jGov{transform:translate3d(0,calc(-100% - 2px),0)}.errorBoundaryError_a6uf{color:red;white-space:pre-wrap}.errorBoundaryFallback_VBag{color:red;padding:.55rem}.footerLogoLink_BH7S{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.footerLogoLink_BH7S:hover,.hash-link:focus,:hover>.hash-link{opacity:1}body:not(.navigation-with-keyboard) :not(input):focus{outline:0}.anchorWithStickyNavbar_LWe7{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_WYt5{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;user-select:none}.hash-link:before{content:"#"}.mainWrapper_z2l0{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.sidebar_re4s{overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 2rem)}.sidebarItemTitle_pO2u{font-size:var(--ifm-h3-font-size);font-weight:var(--ifm-font-weight-bold)}.container_mt6G,.sidebarItemList_Yudw{font-size:.9rem}.sidebarItem__DBe{margin-top:.7rem}.sidebarItemLink_mo7H{color:var(--ifm-font-color-base);display:block}.sidebarItemLinkActive_I1ZP{color:var(--ifm-color-primary)!important}.yearGroupHeading_rMGB{margin-bottom:.4rem;margin-top:1.6rem}.yearGroupHeading_QT03{margin:1rem .75rem .5rem}.searchContextInput_mXoe,.searchQueryInput_CFBF{background:var(--ifm-background-color);border:var(--ifm-global-border-width) solid var(--ifm-color-content-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-font-color-base);font-size:var(--ifm-font-size-base);margin-bottom:1rem;padding:.5rem;width:100%}.authorSocialIcon_XYv3,.authorSocialLink_owbf{width:var(--docusaurus-blog-social-icon-size)}.searchResultItem_U687{border-bottom:1px solid #dfe3e8;padding:1rem 0}.searchResultItemPath_uIbk{color:var(--ifm-color-content-secondary);font-size:.8rem;margin:.5rem 0 0}.searchResultItemSummary_oZHr{font-style:italic;margin:.5rem 0 0}[data-theme=dark] .githubSvg_Uu4N,[data-theme=dark] .xSvg_y3PF{fill:var(--light)}[data-theme=light] .githubSvg_Uu4N,[data-theme=light] .xSvg_y3PF{fill:var(--dark)}.authorSocials_rSDt{align-items:center;display:flex;flex-wrap:wrap;line-clamp:1;-webkit-line-clamp:1}.authorSocialLink_owbf,.authorSocials_rSDt{line-height:0}.authorSocialLink_owbf{margin-right:.4rem}.authorImage_XqGP{--ifm-avatar-photo-size:3.6rem}.author-as-h1_n9oJ .authorImage_XqGP{--ifm-avatar-photo-size:7rem}.author-as-h2_gXvM .authorImage_XqGP{--ifm-avatar-photo-size:5.4rem}.authorDetails_lV9A{align-items:flex-start;display:flex;flex-direction:column;justify-content:space-around}.authorName_yefp{display:flex;flex-direction:row;font-size:1.1rem;line-height:1.1rem}.author-as-h1_n9oJ .authorName_yefp{display:inline;font-size:2.4rem;line-height:2.4rem}.author-as-h2_gXvM .authorName_yefp{display:inline;font-size:1.4rem;line-height:1.4rem}.authorTitle_nd0D{display:-webkit-box;font-size:.8rem;line-height:1rem;line-clamp:1;-webkit-line-clamp:1}.author-as-h1_n9oJ .authorTitle_nd0D{font-size:1.2rem;line-height:1.6rem}.author-as-h2_gXvM .authorTitle_nd0D{font-size:1rem;line-height:1.3rem}.authorBlogPostCount_iiJ5{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.8rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.buttonGroup__atx button,.codeBlockContainer_Ckt0{background:var(--prism-background-color);color:var(--prism-color)}.authorCol_Hf19{max-width:inherit!important}.imageOnlyAuthorRow_pa_O{display:flex;flex-flow:row wrap}.imageOnlyAuthorCol_G86a{margin-left:.3rem;margin-right:.3rem}.heroBanner_qdFl{overflow:hidden;padding:4rem 0;position:relative;text-align:center}.buttons_AeoN{align-items:center;display:flex;justify-content:center}.codeBlockContainer_Ckt0{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_biex{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_Ktv7{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_bY9V{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_Ktv7+.codeBlockContent_biex .codeBlock_bY9V{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_e6Vv{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_o6Pm{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup__atx{column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup__atx button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup__atx button:focus-visible,.buttonGroup__atx button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup__atx button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_lJS_{counter-increment:a;display:table-row}.codeLineNumber_Tfdd{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_Tfdd:before{content:counter(a);opacity:.4}.codeLineContent_feaV{padding-right:var(--ifm-pre-padding)}.theme-code-block:hover .copyButtonCopied_obH4{opacity:1!important}.copyButtonIcons_eSgA{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_y97N,.copyButtonSuccessIcon_LjdS{left:0;position:absolute;top:0;fill:currentColor;height:inherit;opacity:inherit;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_LjdS{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_obH4 .copyButtonIcon_y97N{opacity:0;transform:scale(.33)}.copyButtonCopied_obH4 .copyButtonSuccessIcon_LjdS{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.tag_zVej{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_zVej:hover{--docusaurus-tag-list-border:var(--ifm-link-color);text-decoration:none}.tagRegular_sFm0{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_h2kH{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_h2kH:after,.tagWithCount_h2kH:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_h2kH:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_h2kH:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_h2kH span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tag_Nnez{display:inline-block;margin:.5rem .5rem 0 1rem}.wordWrapButtonIcon_Bwma{height:1.2rem;width:1.2rem}.tags_jXut{display:inline}.tag_QGVx{display:inline-block;margin:0 .4rem .5rem 0}.iconEdit_Z9Sw{margin-right:.3em;vertical-align:sub}.details_lb9f{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_lb9f>summary{cursor:pointer;padding-left:1rem;position:relative}.details_lb9f>summary::-webkit-details-marker{display:none}.details_lb9f>summary:before{border-color:#0000 #0000 #0000 var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_i85q{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.lastUpdated_JAkA{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_TO0P{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_TO0P:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_MG3E:after,.tocCollapsibleExpanded_sAul{transform:none}.tocCollapsible_ETCw{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.tocCollapsibleContent_vkbj>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_vkbj ul li{margin:.4rem .8rem}.details_b_Ee{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.img_ev3q{height:auto}.tableOfContents_bqdL{overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.admonition_xJq3{margin-bottom:1em}.admonitionHeading_Gvgb{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family)}.admonitionHeading_Gvgb:not(:last-child){margin-bottom:.3rem}.admonitionHeading_Gvgb code{text-transform:none}.admonitionIcon_Rf37{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_Rf37 svg{display:inline-block;height:1.6em;width:1.6em;fill:var(--ifm-alert-foreground-color)}.breadcrumbHomeIcon_YNFT{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_Z_bl{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}.mdxPageWrapper_j9I6{justify-content:center}@media (min-width:997px){.collapseSidebarButton_PEFL,.expandButton_TmdG{background-color:var(--docusaurus-collapse-button-bg)}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_gvF7,.announcementBarPlaceholder_vyr4{flex-basis:50px}.collapseSidebarButton_PEFL{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_kv0_{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_i1dp,[dir=rtl] .collapseSidebarButtonIcon_kv0_{transform:rotate(0)}.collapseSidebarButton_PEFL:focus,.collapseSidebarButton_PEFL:hover,.expandButton_TmdG:focus,.expandButton_TmdG:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_M9Kj{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_SIkG{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_SIkG{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_GW3s{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_njMd{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_wUlq{padding-top:0}.sidebarHidden_VK0M{opacity:0;visibility:hidden}.sidebarLogo_isFc{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_isFc img{height:2rem;margin-right:.5rem}.expandButton_TmdG{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_i1dp{transform:rotate(180deg)}.docSidebarContainer_YfHR{border-right:1px solid var(--ifm-toc-border-color);-webkit-clip-path:inset(0);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_DPk8{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_aRkj{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_TBSr{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_lQrH{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_JWYK{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}.navbarSearchContainer_Bca1{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.lastUpdated_JAkA{text-align:right}.tocMobile_ITEo{display:none}.docItemCol_VOVn{max-width:75%!important}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_DEke,.footer__link-separator,.navbar__item,.sidebar_re4s,.tableOfContents_bqdL{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.navbarSearchContainer_Bca1{position:absolute;right:var(--ifm-navbar-padding-horizontal)}.docItemContainer_F8PC{padding:0 .3rem}}@media not (max-width:996px){.searchBar_RVTs.searchBarLeft_MXDe .dropdownMenu_qbY6{left:0!important;right:auto!important}}@media only screen and (max-width:996px){.searchQueryColumn_q7nx{max-width:60%!important}.searchContextColumn_oWAF{max-width:40%!important}}@media screen and (max-width:996px){.heroBanner_qdFl{padding:2rem}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}.navbar__search-input:not(:focus){width:2rem}.searchBar_RVTs .dropdownMenu_qbY6{max-width:calc(100vw - var(--ifm-navbar-padding-horizontal)*2);width:var(--search-local-modal-width-sm,340px)}.searchBarContainer_NW3z:not(.focused_OWtg) .searchClearButton_qk4g,.searchHintContainer_Pkmr{display:none}.title_f1Hy{font-size:2rem}}@media screen and (max-width:576px){.searchQueryColumn_q7nx{max-width:100%!important}.searchContextColumn_oWAF{max-width:100%!important;padding-left:var(--ifm-spacing-horizontal)!important}}@media (hover:hover){.backToTopButton_sjWU:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media print{.announcementBar_mb4j,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_ITEo{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_e6Vv{white-space:pre-wrap}} \ No newline at end of file +.col,.container{padding:0 var(--ifm-spacing-horizontal);width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown li,body{word-wrap:break-word}body,ol ol,ol ul,ul ol,ul ul{margin:0}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}.toggleButton_gllP,html{-webkit-tap-highlight-color:transparent}*,.loadingRing_RJI3 div{box-sizing:border-box}.authorSocials_rSDt,.authorTitle_nd0D{-webkit-box-orient:vertical;overflow:hidden}.clean-list,.containsTaskList_mC6p,.details_lb9f>summary,.dropdown__menu,.menu__list{list-style:none}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:#0000;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:#0000000d;--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 #0000001a;--ifm-global-shadow-md:0 5px 40px #0003;--ifm-global-shadow-tl:0 12px 28px 0 #0003,0 2px 4px 0 #0000001a;--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:#0000;--ifm-table-stripe-background:#00000008;--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--docusaurus-announcement-bar-height:auto;--docusaurus-collapse-button-bg:#0000;--docusaurus-collapse-button-bg-hover:#0000001a;--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px;--docusaurus-blog-social-icon-size:1rem;--docusaurus-tag-list-border:var(--ifm-color-emphasis-300)}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:#0000}html{background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;-webkit-text-size-adjust:100%;text-size-adjust:100%}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none,.tabItem_LNqP{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_NmtK,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width)}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-top--md,.margin-vert--md{margin-top:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid #0000001a;border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}a code{color:inherit}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:initial;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img{max-width:100%}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul,.tabList__CuJ{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin)}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table{border-collapse:collapse;display:block;margin-bottom:var(--ifm-spacing-vertical)}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary,.wordWrapButtonEnabled_EoeP .wordWrapButtonIcon_Bwma{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.centered-text,.text--center{text-align:center}.text--left{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_Gvgb,.alert__heading,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:#3578e526;--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:#ebedf026;--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:#00a40026;--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:#54c7ec26;--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:#ffba0026;--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:#fa383e26;--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);overflow:hidden;width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after,.searchBarContainer_NW3z.searchIndexLoading_EJ1f .searchBarLoadingRing_YnHq{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:any-link:hover,.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:#0000;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column;overflow:hidden}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{font-size:.8rem;margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.content_knG7 a,.hitFooter_E9YW a,.suggestion_fB_2.cursor_eG29 mark{text-decoration:underline}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.header-discord-link:hover,.header-github-link:hover,.theme-code-block-highlighted-line .codeLineNumber_Tfdd:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;pointer-events:none;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.sidebar_re4s,.tableOfContents_bqdL{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor #0000;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__links{margin-bottom:1rem}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.docItemContainer_Djhp article>:first-child,.docItemContainer_Djhp header+*,.footer__item{margin-top:0}.admonitionContent_BuS1>:last-child,.collapsibleContent_i85q p:last-child,.details_lb9f>summary>p:last-child,.footer__items,.searchResultItem_U687>h2,.tabItem_Ymn6>:last-child{margin-bottom:0}.codeBlockStandalone_MEMb,[type=checkbox]{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__title,.title_f1Hy{font-size:3rem}.hero__subtitle{font-size:1.5rem}.menu__list{margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_lb9f[data-collapsed=false].isBrowser_bmU9>summary:before,.details_lb9f[open]:not(.isBrowser_bmU9)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;width:1.25rem;content:"";filter:var(--ifm-menu-link-sublist-icon-filter)}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0;z-index:var(--ifm-z-index-fixed)}.navbar-sidebar,.navbar-sidebar__backdrop{bottom:0;opacity:0;position:fixed;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;left:0;top:0;visibility:hidden}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;margin-right:1rem;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_xLdY,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center .navbar__brand{margin:0}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}#nprogress,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:#ffffff1a;--ifm-navbar-search-input-placeholder-color:#ffffff80;color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:#ffffff0d;--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:1rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:#0009;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover,.sidebarItemLink_mo7H:hover{text-decoration:none}.pagination-nav{display:grid;grid-gap:var(--ifm-spacing-horizontal);gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;cursor:pointer;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs,:not(.containsTaskList_mC6p>li)>.containsTaskList_mC6p{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid #0000;border-radius:var(--ifm-global-radius);cursor:pointer;display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:#ffffff0d;--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:#ffffff1a;--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:#ffffff12;--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}@font-face{font-family:Mona Sans;font-stretch:75% 125%;font-weight:500 900;src:url(/assets/fonts/Mona-Sans-2f40792e491758879b8530661f90743a.woff2) format("woff2 supports variations"),url(/assets/fonts/Mona-Sans-2f40792e491758879b8530661f90743a.woff2) format("woff2-variations")}@font-face{font-family:Inter;font-stretch:75% 125%;font-weight:200 900;src:url(/assets/fonts/Inter.var-c2fe3cb2b7c746f7966a973d869d21c3.woff2) format("woff2 supports variations"),url(/assets/fonts/Inter.var-c2fe3cb2b7c746f7966a973d869d21c3.woff2) format("woff2-variations")}@font-face{font-family:Monaspace Neon;font-stretch:100% 100%;font-weight:200 900;src:url(/assets/fonts/Monaspace-Neon-d42b5dfd306f7308ea84dbc6980c5140.woff2) format("woff2 supports variations"),url(/assets/fonts/Monaspace-Neon-d42b5dfd306f7308ea84dbc6980c5140.woff2) format("woff2-variations")}h4,h5,h6,html{font-family:Inter,sans-serif}h1,h2,h3{font-family:Mona Sans,sans-serif}code *{font-family:Monaspace Neon,monospace;font-variant-ligatures:discretionary-ligatures}[data-theme=dark],[data-theme=light]{--ifm-color-primary-darkest:oklch(66.47% 0.298 7);--ifm-color-primary-darker:oklch(66.47% 0.298 7);--ifm-color-primary-dark:oklch(66.47% 0.298 7);--ifm-color-primary:oklch(66.47% 0.298 7);--ifm-color-primary-light:oklch(66.47% 0.298 7);--ifm-color-primary-lighter:oklch(66.47% 0.298 7);--ifm-color-primary-lightest:oklch(66.47% 0.298 7)}.header-discord-link{height:24px}.header-discord-link:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 127.14 96.36'%3E%3Cpath fill='%235865F2' d='M107.7 8.07A105.2 105.2 0 0 0 81.47 0a72 72 0 0 0-3.36 6.83 97.7 97.7 0 0 0-29.11 0A72 72 0 0 0 45.64 0a106 106 0 0 0-26.25 8.09C2.79 32.65-1.71 56.6.54 80.21a105.7 105.7 0 0 0 32.17 16.15 77.7 77.7 0 0 0 6.89-11.11 68.4 68.4 0 0 1-10.85-5.18c.91-.66 1.8-1.34 2.66-2a75.57 75.57 0 0 0 64.32 0c.87.71 1.76 1.39 2.66 2a68.7 68.7 0 0 1-10.87 5.19 77 77 0 0 0 6.89 11.1 105.3 105.3 0 0 0 32.19-16.14c2.64-27.38-4.51-51.11-18.9-72.15M42.45 65.69C36.18 65.69 31 60 31 53s5-12.74 11.43-12.74S54 46 53.89 53s-5.05 12.69-11.44 12.69m42.24 0C78.41 65.69 73.25 60 73.25 53s5-12.74 11.44-12.74S96.23 46 96.12 53s-5.04 12.69-11.43 12.69'/%3E%3C/svg%3E") no-repeat;content:"";display:flex;height:24px;right:550px;width:24px}.header-github-link:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E") no-repeat;content:"";display:flex;height:24px;width:24px}html[data-theme=dark] .header-github-link:before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E") no-repeat}.backToTopButton_sjWU{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.backToTopButton_sjWU:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_xfvO{opacity:1;transform:scale(1);visibility:visible}.skipToContent_fXgn{background-color:var(--ifm-background-surface-color);color:var(--ifm-color-emphasis-900);left:100%;padding:calc(var(--ifm-global-spacing)/2) var(--ifm-global-spacing);position:fixed;top:1rem;z-index:calc(var(--ifm-z-index-fixed) + 1)}.skipToContent_fXgn:focus{box-shadow:var(--ifm-global-shadow-md);left:1rem}.closeButton_CVFx{line-height:0;padding:0}.content_knG7{font-size:85%;padding:5px 0;text-align:center}.content_knG7 a{color:inherit}.announcementBar_mb4j{align-items:center;background-color:var(--ifm-color-white);border-bottom:1px solid var(--ifm-color-emphasis-100);color:var(--ifm-color-black);display:flex;height:var(--docusaurus-announcement-bar-height)}#__docusaurus-base-url-issue-banner-container,.docSidebarContainer_YfHR,.hideAction_vcyE>svg,.navbarSearchContainer_Bca1:empty,.sidebarLogo_isFc,.themedComponent_mlkZ,[data-theme=dark] .lightToggleIcon_pyhR,[data-theme=light] .darkToggleIcon_wfgR,html[data-announcement-bar-initially-dismissed=true] .announcementBar_mb4j{display:none}.announcementBarPlaceholder_vyr4{flex:0 0 10px}.announcementBarClose_gvF7{align-self:stretch;flex:0 0 30px}.toggle_vylO{height:2rem;width:2rem}.toggleButton_gllP{align-items:center;border-radius:50%;display:flex;height:100%;justify-content:center;transition:background var(--ifm-transition-fast);width:100%}.toggleButton_gllP:hover{background:var(--ifm-color-emphasis-200)}.toggleButtonDisabled_aARS{cursor:not-allowed}.darkNavbarColorModeToggle_X3D1:hover{background:var(--ifm-color-gray-800)}[data-theme=dark] .themedComponent--dark_xIcU,[data-theme=light] .themedComponent--light_NVdE,html:not([data-theme]) .themedComponent--light_NVdE{display:initial}[data-theme=dark]:root{--docusaurus-collapse-button-bg:#ffffff0d;--docusaurus-collapse-button-bg-hover:#ffffff1a}.collapseSidebarButton_PEFL{display:none;margin:0}.iconExternalLink_nPIU{margin-left:.3rem}.docMainContainer_TBSr,.docRoot_UBD9{display:flex;width:100%}.docsWrapper_hBAB{display:flex;flex:1 0 auto}.dropdownNavbarItemMobile_S0Fm{cursor:pointer}.iconLanguage_nlXk{margin-right:5px;vertical-align:text-bottom}.searchBar_RVTs .dropdownMenu_qbY6{background:var(--search-local-modal-background,#f5f6f7);border-radius:6px;box-shadow:var(--search-local-modal-shadow,inset 1px 1px 0 0 #ffffff80,0 3px 8px 0 #555a64);left:auto!important;margin-top:8px;padding:var(--search-local-spacing,12px);position:relative;right:0!important;width:var(--search-local-modal-width,560px)}html[data-theme=dark] .searchBar_RVTs .dropdownMenu_qbY6{background:var(--search-local-modal-background,var(--ifm-background-color));box-shadow:var(--search-local-modal-shadow,inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309)}.searchBar_RVTs .dropdownMenu_qbY6 .suggestion_fB_2{align-items:center;background:var(--search-local-hit-background,#fff);border-radius:4px;box-shadow:var(--search-local-hit-shadow,0 1px 3px 0 #d4d9e1);color:var(--search-local-hit-color,#444950);cursor:pointer;display:flex;flex-direction:row;height:var(--search-local-hit-height,56px);padding:0 var(--search-local-spacing,12px);width:100%}.hitTree_kk6K,.noResults_l6Q3{align-items:center;display:flex}html[data-theme=dark] .dropdownMenu_qbY6 .suggestion_fB_2{background:var(--search-local-hit-background,var(--ifm-color-emphasis-100));box-shadow:var(--search-local-hit-shadow,none);color:var(--search-local-hit-color,var(--ifm-font-color-base))}.searchBar_RVTs .dropdownMenu_qbY6 .suggestion_fB_2:not(:last-child){margin-bottom:4px}.searchBar_RVTs .dropdownMenu_qbY6 .suggestion_fB_2.cursor_eG29{background-color:var(--search-local-highlight-color,var(--ifm-color-primary))}.hitFooter_E9YW a,.hitIcon_a7Zy,.hitPath_ieM4,.hitTree_kk6K,.noResultsIcon_EBY5{color:var(--search-local-muted-color,#969faf)}html[data-theme=dark] .hitIcon_a7Zy,html[data-theme=dark] .hitPath_ieM4,html[data-theme=dark] .hitTree_kk6K,html[data-theme=dark] .noResultsIcon_EBY5{color:var(--search-local-muted-color,var(--ifm-color-secondary-darkest))}.hitTree_kk6K>svg{height:var(--search-local-hit-height,56px);opacity:.5;width:24px}.hitIcon_a7Zy,.hitTree_kk6K>svg{stroke-width:var(--search-local-icon-stroke-width,1.4)}.hitAction_NqkB,.hitIcon_a7Zy{height:20px;width:20px}.hitWrapper_sAK8{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;margin:0 8px;overflow-x:hidden;width:80%}.hitWrapper_sAK8 mark{background:none;color:var(--search-local-highlight-color,var(--ifm-color-primary))}.hitTitle_vyVt{font-size:.9em}.hitPath_ieM4{font-size:.75em}.hitPath_ieM4,.hitTitle_vyVt{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.noResults_l6Q3{flex-direction:column;justify-content:center;padding:var(--search-local-spacing,12px) 0}.noResultsIcon_EBY5{margin-bottom:var(--search-local-spacing,12px)}.hitFooter_E9YW{font-size:.85em;margin-top:var(--search-local-spacing,12px);text-align:center}.cursor_eG29 .hideAction_vcyE>svg,.tocCollapsibleContent_vkbj a{display:block}.suggestion_fB_2.cursor_eG29,.suggestion_fB_2.cursor_eG29 .hitIcon_a7Zy,.suggestion_fB_2.cursor_eG29 .hitPath_ieM4,.suggestion_fB_2.cursor_eG29 .hitTree_kk6K,.suggestion_fB_2.cursor_eG29 mark{color:var(--search-local-hit-active-color,var(--ifm-color-white))!important}.searchBarContainer_NW3z{margin-left:16px}.searchBarContainer_NW3z .searchBarLoadingRing_YnHq{display:none;left:10px;position:absolute;top:6px}.searchBarContainer_NW3z .searchClearButton_qk4g{background:none;border:none;line-height:1rem;padding:0;position:absolute;right:.8rem;top:50%;transform:translateY(-50%)}.navbar__search{position:relative}.searchIndexLoading_EJ1f .navbar__search-input{background-image:none}.searchHintContainer_Pkmr{align-items:center;display:flex;gap:4px;height:100%;justify-content:center;pointer-events:none;position:absolute;right:10px;top:0}.searchHint_iIMx{background-color:var(--ifm-navbar-search-input-background-color);border:1px solid var(--ifm-color-emphasis-500);box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-500);color:var(--ifm-navbar-search-input-placeholder-color)}.loadingRing_RJI3{display:inline-block;height:20px;opacity:var(--search-local-loading-icon-opacity,.5);position:relative;width:20px}.authorSocialIcon_XYv3,.authorSocialLink_owbf,.authorSocials_rSDt{height:var(--docusaurus-blog-social-icon-size)}.loadingRing_RJI3 div{animation:1.2s cubic-bezier(.5,0,.5,1) infinite a;border:2px solid var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color));border-color:var(--search-load-loading-icon-color,var(--ifm-navbar-search-input-color)) #0000 #0000 #0000;border-radius:50%;display:block;height:16px;margin:2px;position:absolute;width:16px}.loadingRing_RJI3 div:first-child{animation-delay:-.45s}.loadingRing_RJI3 div:nth-child(2){animation-delay:-.3s}.loadingRing_RJI3 div:nth-child(3){animation-delay:-.15s}@keyframes a{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.navbarHideable_m1mJ{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_jGov{transform:translate3d(0,calc(-100% - 2px),0)}.errorBoundaryError_a6uf{color:red;white-space:pre-wrap}.errorBoundaryFallback_VBag{color:red;padding:.55rem}.footerLogoLink_BH7S{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.footerLogoLink_BH7S:hover,.hash-link:focus,:hover>.hash-link{opacity:1}body:not(.navigation-with-keyboard) :not(input):focus{outline:0}.anchorWithStickyNavbar_LWe7{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_WYt5{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;user-select:none}.hash-link:before{content:"#"}.mainWrapper_z2l0{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.sidebar_re4s{overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 2rem)}.sidebarItemTitle_pO2u{font-size:var(--ifm-h3-font-size);font-weight:var(--ifm-font-weight-bold)}.container_mt6G,.sidebarItemList_Yudw{font-size:.9rem}.sidebarItem__DBe{margin-top:.7rem}.sidebarItemLink_mo7H{color:var(--ifm-font-color-base);display:block}.sidebarItemLinkActive_I1ZP{color:var(--ifm-color-primary)!important}.yearGroupHeading_rMGB{margin-bottom:.4rem;margin-top:1.6rem}.yearGroupHeading_QT03{margin:1rem .75rem .5rem}.searchContextInput_mXoe,.searchQueryInput_CFBF{background:var(--ifm-background-color);border:var(--ifm-global-border-width) solid var(--ifm-color-content-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-font-color-base);font-size:var(--ifm-font-size-base);margin-bottom:1rem;padding:.5rem;width:100%}.authorSocialIcon_XYv3,.authorSocialLink_owbf{width:var(--docusaurus-blog-social-icon-size)}.searchResultItem_U687{border-bottom:1px solid #dfe3e8;padding:1rem 0}.searchResultItemPath_uIbk{color:var(--ifm-color-content-secondary);font-size:.8rem;margin:.5rem 0 0}.searchResultItemSummary_oZHr{font-style:italic;margin:.5rem 0 0}[data-theme=dark] .githubSvg_Uu4N,[data-theme=dark] .xSvg_y3PF{fill:var(--light)}[data-theme=light] .githubSvg_Uu4N,[data-theme=light] .xSvg_y3PF{fill:var(--dark)}.authorSocials_rSDt{align-items:center;display:flex;flex-wrap:wrap;line-clamp:1;-webkit-line-clamp:1}.authorSocialLink_owbf,.authorSocials_rSDt{line-height:0}.authorSocialLink_owbf{margin-right:.4rem}.authorImage_XqGP{--ifm-avatar-photo-size:3.6rem}.author-as-h1_n9oJ .authorImage_XqGP{--ifm-avatar-photo-size:7rem}.author-as-h2_gXvM .authorImage_XqGP{--ifm-avatar-photo-size:5.4rem}.authorDetails_lV9A{align-items:flex-start;display:flex;flex-direction:column;justify-content:space-around}.authorName_yefp{display:flex;flex-direction:row;font-size:1.1rem;line-height:1.1rem}.author-as-h1_n9oJ .authorName_yefp{display:inline;font-size:2.4rem;line-height:2.4rem}.author-as-h2_gXvM .authorName_yefp{display:inline;font-size:1.4rem;line-height:1.4rem}.authorTitle_nd0D{display:-webkit-box;font-size:.8rem;line-height:1rem;line-clamp:1;-webkit-line-clamp:1}.author-as-h1_n9oJ .authorTitle_nd0D{font-size:1.2rem;line-height:1.6rem}.author-as-h2_gXvM .authorTitle_nd0D{font-size:1rem;line-height:1.3rem}.authorBlogPostCount_iiJ5{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.8rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.buttonGroup__atx button,.codeBlockContainer_Ckt0{background:var(--prism-background-color);color:var(--prism-color)}.authorCol_Hf19{max-width:inherit!important}.imageOnlyAuthorRow_pa_O{display:flex;flex-flow:row wrap}.imageOnlyAuthorCol_G86a{margin-left:.3rem;margin-right:.3rem}.heroBanner_qdFl{overflow:hidden;padding:4rem 0;position:relative;text-align:center}.buttons_AeoN{align-items:center;display:flex;justify-content:center}.codeBlockContainer_Ckt0{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_biex{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_Ktv7{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_bY9V{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_Ktv7+.codeBlockContent_biex .codeBlock_bY9V{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_e6Vv{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_o6Pm{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup__atx{column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup__atx button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup__atx button:focus-visible,.buttonGroup__atx button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup__atx button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_lJS_{counter-increment:a;display:table-row}.codeLineNumber_Tfdd{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_Tfdd:before{content:counter(a);opacity:.4}.codeLineContent_feaV{padding-right:var(--ifm-pre-padding)}.theme-code-block:hover .copyButtonCopied_obH4{opacity:1!important}.copyButtonIcons_eSgA{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_y97N,.copyButtonSuccessIcon_LjdS{left:0;position:absolute;top:0;fill:currentColor;height:inherit;opacity:inherit;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_LjdS{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_obH4 .copyButtonIcon_y97N{opacity:0;transform:scale(.33)}.copyButtonCopied_obH4 .copyButtonSuccessIcon_LjdS{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.tag_zVej{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_zVej:hover{--docusaurus-tag-list-border:var(--ifm-link-color);text-decoration:none}.tagRegular_sFm0{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_h2kH{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_h2kH:after,.tagWithCount_h2kH:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_h2kH:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_h2kH:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_h2kH span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tag_Nnez{display:inline-block;margin:.5rem .5rem 0 1rem}.wordWrapButtonIcon_Bwma{height:1.2rem;width:1.2rem}.tags_jXut{display:inline}.tag_QGVx{display:inline-block;margin:0 .4rem .5rem 0}.iconEdit_Z9Sw{margin-right:.3em;vertical-align:sub}.details_lb9f{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_lb9f>summary{cursor:pointer;padding-left:1rem;position:relative}.details_lb9f>summary::-webkit-details-marker{display:none}.details_lb9f>summary:before{border-color:#0000 #0000 #0000 var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_i85q{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.lastUpdated_JAkA{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_TO0P{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_TO0P:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_MG3E:after,.tocCollapsibleExpanded_sAul{transform:none}.tocCollapsible_ETCw{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.tocCollapsibleContent_vkbj>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_vkbj ul li{margin:.4rem .8rem}.details_b_Ee{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.img_ev3q{height:auto}.tableOfContents_bqdL{overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.admonition_xJq3{margin-bottom:1em}.admonitionHeading_Gvgb{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family)}.admonitionHeading_Gvgb:not(:last-child){margin-bottom:.3rem}.admonitionHeading_Gvgb code{text-transform:none}.admonitionIcon_Rf37{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_Rf37 svg{display:inline-block;height:1.6em;width:1.6em;fill:var(--ifm-alert-foreground-color)}.breadcrumbHomeIcon_YNFT{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_Z_bl{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}.mdxPageWrapper_j9I6{justify-content:center}@media (min-width:997px){.collapseSidebarButton_PEFL,.expandButton_TmdG{background-color:var(--docusaurus-collapse-button-bg)}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_gvF7,.announcementBarPlaceholder_vyr4{flex-basis:50px}.collapseSidebarButton_PEFL{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_kv0_{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_i1dp,[dir=rtl] .collapseSidebarButtonIcon_kv0_{transform:rotate(0)}.collapseSidebarButton_PEFL:focus,.collapseSidebarButton_PEFL:hover,.expandButton_TmdG:focus,.expandButton_TmdG:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_M9Kj{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_SIkG{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_SIkG{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_GW3s{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_njMd{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_wUlq{padding-top:0}.sidebarHidden_VK0M{opacity:0;visibility:hidden}.sidebarLogo_isFc{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_isFc img{height:2rem;margin-right:.5rem}.expandButton_TmdG{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_i1dp{transform:rotate(180deg)}.docSidebarContainer_YfHR{border-right:1px solid var(--ifm-toc-border-color);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_DPk8{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_aRkj{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_TBSr{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_lQrH{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_JWYK{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}.navbarSearchContainer_Bca1{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.lastUpdated_JAkA{text-align:right}.tocMobile_ITEo{display:none}.docItemCol_VOVn{max-width:75%!important}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_DEke,.footer__link-separator,.navbar__item,.sidebar_re4s,.tableOfContents_bqdL{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block;width:max-content}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.navbarSearchContainer_Bca1{position:absolute;right:var(--ifm-navbar-padding-horizontal)}.docItemContainer_F8PC{padding:0 .3rem}}@media not (max-width:996px){.searchBar_RVTs.searchBarLeft_MXDe .dropdownMenu_qbY6{left:0!important;right:auto!important}}@media only screen and (max-width:996px){.searchQueryColumn_q7nx{max-width:60%!important}.searchContextColumn_oWAF{max-width:40%!important}}@media screen and (max-width:996px){.heroBanner_qdFl{padding:2rem}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}.navbar__search-input:not(:focus){width:2rem}.searchBar_RVTs .dropdownMenu_qbY6{max-width:calc(100vw - var(--ifm-navbar-padding-horizontal)*2);width:var(--search-local-modal-width-sm,340px)}.searchBarContainer_NW3z:not(.focused_OWtg) .searchClearButton_qk4g,.searchHintContainer_Pkmr{display:none}.title_f1Hy{font-size:2rem}}@media screen and (max-width:576px){.searchQueryColumn_q7nx{max-width:100%!important}.searchContextColumn_oWAF{max-width:100%!important;padding-left:var(--ifm-spacing-horizontal)!important}}@media (hover:hover){.backToTopButton_sjWU:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media print{.announcementBar_mb4j,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_ITEo{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_e6Vv{white-space:pre-wrap}} \ No newline at end of file diff --git a/assets/images/comp_showcase-3902fce14e72fc094b637b526525a24e.webp b/assets/images/comp_showcase-3902fce14e72fc094b637b526525a24e.webp new file mode 100644 index 000000000..96564b8fd Binary files /dev/null and b/assets/images/comp_showcase-3902fce14e72fc094b637b526525a24e.webp differ diff --git a/assets/js/0092d9fd.442daa5c.js b/assets/js/0092d9fd.442daa5c.js new file mode 100644 index 000000000..82a788887 --- /dev/null +++ b/assets/js/0092d9fd.442daa5c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9057],{3152:(e,o,n)=>{n.r(o),n.d(o,{assets:()=>c,contentTitle:()=>r,default:()=>u,frontMatter:()=>a,metadata:()=>i,toc:()=>d});const i=JSON.parse('{"id":"audio/FLAC","title":"FLAC","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/audio/FLAC.mdx","sourceDirName":"audio","slug":"/audio/FLAC","permalink":"/docs/audio/FLAC","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/FLAC.mdx","tags":[],"version":"current","sidebarPosition":7,"frontMatter":{"title":"FLAC","sidebar_position":7},"sidebar":"tutorialSidebar","previous":{"title":"ALAC","permalink":"/docs/audio/ALAC"},"next":{"title":"WavPack","permalink":"/docs/audio/WavPack"}}');var t=n(4848),s=n(8453);const a={title:"FLAC",sidebar_position:7},r="FLAC",c={},d=[{value:"Software support",id:"software-support",level:2},{value:"WAV to FLAC using FFmpeg:",id:"wav-to-flac-using-ffmpeg",level:3},{value:"WAV to FLAC using FLAC command-line tool:",id:"wav-to-flac-using-flac-command-line-tool",level:3}];function l(e){const o={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.header,{children:(0,t.jsx)(o.h1,{id:"flac",children:"FLAC"})}),"\n",(0,t.jsx)(o.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(o.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(o.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsx)(o.p,{children:"FLAC (Free Lossless Audio Coding) is an open-source lossless audio codec with widespread support & compatibility released in 2001. It represents the most efficent lossless audio format in common use today."}),"\n",(0,t.jsxs)(o.p,{children:["FLAC is commonly contained in a ogg container with either a ",(0,t.jsx)(o.code,{children:".flac"})," or ",(0,t.jsx)(o.code,{children:".ogg"})," extension. It can less commonly be used within a matroska container (",(0,t.jsx)(o.code,{children:".mkv"})," or ",(0,t.jsx)(o.code,{children:".mka"}),") for mixing with a video stream."]}),"\n",(0,t.jsx)(o.admonition,{type:"caution",children:(0,t.jsx)(o.p,{children:"It is not recommended to transcode a lossily encoded file to FLAC as the file size will grow tremendously while any quality loss from lossy encoding will remain. FLAC is best if you need to preserve existing lossless audio."})}),"\n",(0,t.jsx)(o.h2,{id:"software-support",children:"Software support"}),"\n",(0,t.jsx)(o.p,{children:"FLAC is supported by the majority of web browsers and media players in common use as of 2024."}),"\n",(0,t.jsxs)(o.h3,{id:"wav-to-flac-using-ffmpeg",children:["WAV to FLAC using ",(0,t.jsx)(o.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),":"]}),"\n",(0,t.jsx)(o.pre,{children:(0,t.jsx)(o.code,{className:"language-bash",children:"ffmpeg -i example.wav -c:a flac example.flac\n"})}),"\n",(0,t.jsx)(o.h3,{id:"wav-to-flac-using-flac-command-line-tool",children:"WAV to FLAC using FLAC command-line tool:"}),"\n",(0,t.jsx)(o.p,{children:"You can include an argument of a number 0-8 to specify the compression effort, 0 being fastest and 8 having the highest compression."}),"\n",(0,t.jsx)(o.pre,{children:(0,t.jsx)(o.code,{className:"language-bash",children:"flac example.wav -8 -o example.flac\n"})})]})}function u(e={}){const{wrapper:o}={...(0,s.R)(),...e.components};return o?(0,t.jsx)(o,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,o,n)=>{n.d(o,{R:()=>a,x:()=>r});var i=n(6540);const t={},s=i.createContext(t);function a(e){const o=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function r(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),i.createElement(s.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/0092d9fd.e1425c83.js b/assets/js/0092d9fd.e1425c83.js deleted file mode 100644 index d5e2d9057..000000000 --- a/assets/js/0092d9fd.e1425c83.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9057],{3372:(e,o,i)=>{i.r(o),i.d(o,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>s,metadata:()=>r,toc:()=>d});var n=i(4848),t=i(8453);const s={title:"FLAC",sidebar_position:7},a="FLAC",r={id:"audio/FLAC",title:"FLAC",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/audio/FLAC.mdx",sourceDirName:"audio",slug:"/audio/FLAC",permalink:"/docs/audio/FLAC",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/FLAC.mdx",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"FLAC",sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"ALAC",permalink:"/docs/audio/ALAC"},next:{title:"WavPack",permalink:"/docs/audio/WavPack"}},c={},d=[{value:"Software support",id:"software-support",level:2},{value:"WAV to FLAC using FFmpeg:",id:"wav-to-flac-using-ffmpeg",level:3},{value:"WAV to FLAC using FLAC command-line tool:",id:"wav-to-flac-using-flac-command-line-tool",level:3}];function l(e){const o={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.header,{children:(0,n.jsx)(o.h1,{id:"flac",children:"FLAC"})}),"\n",(0,n.jsx)(o.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(o.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(o.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsx)(o.p,{children:"FLAC (Free Lossless Audio Coding) is an open-source lossless audio codec with widespread support & compatibility released in 2001. It represents the most efficent lossless audio format in common use today."}),"\n",(0,n.jsxs)(o.p,{children:["FLAC is commonly contained in a ogg container with either a ",(0,n.jsx)(o.code,{children:".flac"})," or ",(0,n.jsx)(o.code,{children:".ogg"})," extension. It can less commonly be used within a matroska container (",(0,n.jsx)(o.code,{children:".mkv"})," or ",(0,n.jsx)(o.code,{children:".mka"}),") for mixing with a video stream."]}),"\n",(0,n.jsx)(o.admonition,{type:"caution",children:(0,n.jsx)(o.p,{children:"It is not recommended to transcode a lossily encoded file to FLAC as the file size will grow tremendously while any quality loss from lossy encoding will remain. FLAC is best if you need to preserve existing lossless audio."})}),"\n",(0,n.jsx)(o.h2,{id:"software-support",children:"Software support"}),"\n",(0,n.jsx)(o.p,{children:"FLAC is supported by the majority of web browsers and media players in common use as of 2024."}),"\n",(0,n.jsxs)(o.h3,{id:"wav-to-flac-using-ffmpeg",children:["WAV to FLAC using ",(0,n.jsx)(o.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),":"]}),"\n",(0,n.jsx)(o.pre,{children:(0,n.jsx)(o.code,{className:"language-bash",children:"ffmpeg -i example.wav -c:a flac example.flac\n"})}),"\n",(0,n.jsx)(o.h3,{id:"wav-to-flac-using-flac-command-line-tool",children:"WAV to FLAC using FLAC command-line tool:"}),"\n",(0,n.jsx)(o.p,{children:"You can include an argument of a number 0-8 to specify the compression effort, 0 being fastest and 8 having the highest compression."}),"\n",(0,n.jsx)(o.pre,{children:(0,n.jsx)(o.code,{className:"language-bash",children:"flac example.wav -8 -o example.flac\n"})})]})}function u(e={}){const{wrapper:o}={...(0,t.R)(),...e.components};return o?(0,n.jsx)(o,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,o,i)=>{i.d(o,{R:()=>a,x:()=>r});var n=i(6540);const t={},s=n.createContext(t);function a(e){const o=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function r(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),n.createElement(s.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/015d9d66.c465fc5f.js b/assets/js/015d9d66.c465fc5f.js new file mode 100644 index 000000000..41f97d126 --- /dev/null +++ b/assets/js/015d9d66.c465fc5f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4598],{4893:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>a,contentTitle:()=>c,default:()=>l,frontMatter:()=>r,metadata:()=>n,toc:()=>d});const n=JSON.parse('{"id":"metrics/PSNR","title":"PSNR","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/metrics/PSNR.mdx","sourceDirName":"metrics","slug":"/metrics/PSNR","permalink":"/docs/metrics/PSNR","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/metrics/PSNR.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"PSNR","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"autocompressor","permalink":"/docs/utilities/autocompressor"},"next":{"title":"SSIM","permalink":"/docs/metrics/SSIM"}}');var o=i(4848),s=i(8453);const r={title:"PSNR",sidebar_position:1},c="PSNR",a={},d=[];function u(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"psnr",children:"PSNR"})}),"\n",(0,o.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function l(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(u,{...e})}):u(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>r,x:()=>c});var n=i(6540);const o={},s=n.createContext(o);function r(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/015d9d66.caaa4d35.js b/assets/js/015d9d66.caaa4d35.js deleted file mode 100644 index 566219577..000000000 --- a/assets/js/015d9d66.caaa4d35.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4598],{1854:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>a,contentTitle:()=>s,default:()=>l,frontMatter:()=>r,metadata:()=>c,toc:()=>d});var n=i(4848),o=i(8453);const r={title:"PSNR",sidebar_position:1},s="PSNR",c={id:"metrics/PSNR",title:"PSNR",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/metrics/PSNR.mdx",sourceDirName:"metrics",slug:"/metrics/PSNR",permalink:"/docs/metrics/PSNR",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/metrics/PSNR.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"PSNR",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"autocompressor",permalink:"/docs/utilities/autocompressor"},next:{title:"SSIM",permalink:"/docs/metrics/SSIM"}},a={},d=[];function u(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"psnr",children:"PSNR"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function l(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>c});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/01a85c17.1d323d33.js b/assets/js/01a85c17.1d323d33.js new file mode 100644 index 000000000..74368f05e --- /dev/null +++ b/assets/js/01a85c17.1d323d33.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8209],{4096:(e,t,a)=>{a.d(t,{in:()=>c,OU:()=>P,Ki:()=>A,kJ:()=>b,x:()=>l,e7:()=>m,J_:()=>f,Gx:()=>y});var s=a(6540),n=a(9532),i=a(6803),r=a(4848);function l(){const e=(0,i.A)(),t=e?.data?.blogMetadata;if(!t)throw new Error("useBlogMetadata() can't be called on the current route because the blog metadata could not be found in route context");return t}const o=s.createContext(null);function c(e){let{children:t,content:a,isBlogPostPage:n=!1}=e;const i=function(e){let{content:t,isBlogPostPage:a}=e;return(0,s.useMemo)((()=>({metadata:t.metadata,frontMatter:t.frontMatter,assets:t.assets,toc:t.toc,isBlogPostPage:a})),[t,a])}({content:a,isBlogPostPage:n});return(0,r.jsx)(o.Provider,{value:i,children:t})}function m(){const e=(0,s.useContext)(o);if(null===e)throw new n.dV("BlogPostProvider");return e}var d=a(6025),u=a(4586);const g=e=>new Date(e).toISOString();function h(e){const t=e.map(x);return{author:1===t.length?t[0]:t}}function p(e,t,a){return e?{image:j({imageUrl:t(e,{absolute:!0}),caption:`title image for the blog post: ${a}`})}:{}}function b(e){const{siteConfig:t}=(0,u.A)(),{withBaseUrl:a}=(0,d.hH)(),{metadata:{blogDescription:s,blogTitle:n,permalink:i}}=e,r=`${t.url}${i}`;return{"@context":"https://schema.org","@type":"Blog","@id":r,mainEntityOfPage:r,headline:n,description:s,blogPost:e.items.map((e=>function(e,t,a){const{assets:s,frontMatter:n,metadata:i}=e,{date:r,title:l,description:o,lastUpdatedAt:c}=i,m=s.image??n.image,d=n.keywords??[],u=`${t.url}${i.permalink}`,b=c?g(c):void 0;return{"@type":"BlogPosting","@id":u,mainEntityOfPage:u,url:u,headline:l,name:l,description:o,datePublished:r,...b?{dateModified:b}:{},...h(i.authors),...p(m,a,l),...d?{keywords:d}:{}}}(e.content,t,a)))}}function f(){const e=l(),{assets:t,metadata:a}=m(),{siteConfig:s}=(0,u.A)(),{withBaseUrl:n}=(0,d.hH)(),{date:i,title:r,description:o,frontMatter:c,lastUpdatedAt:b}=a,f=t.image??c.image,x=c.keywords??[],j=b?g(b):void 0,N=`${s.url}${a.permalink}`;return{"@context":"https://schema.org","@type":"BlogPosting","@id":N,mainEntityOfPage:N,url:N,headline:r,name:r,description:o,datePublished:i,...j?{dateModified:j}:{},...h(a.authors),...p(f,n,r),...x?{keywords:x}:{},isPartOf:{"@type":"Blog","@id":`${s.url}${e.blogBasePath}`,name:e.blogTitle}}}function x(e){return{"@type":"Person",...e.name?{name:e.name}:{},...e.title?{description:e.title}:{},...e.url?{url:e.url}:{},...e.email?{email:e.email}:{},...e.imageURL?{image:e.imageURL}:{}}}function j(e){let{imageUrl:t,caption:a}=e;return{"@type":"ImageObject","@id":t,url:t,contentUrl:t,caption:a}}var N=a(6347),v=a(8774),C=a(1682),k=a(9169);function y(e){const{pathname:t}=(0,N.zy)();return(0,s.useMemo)((()=>e.filter((e=>function(e,t){return!(e.unlisted&&!(0,k.ys)(e.permalink,t))}(e,t)))),[e,t])}function A(e){const t=(0,C.$z)(e,(e=>`${new Date(e.date).getFullYear()}`)),a=Object.entries(t);return a.reverse(),a}function P(e){let{items:t,ulClassName:a,liClassName:s,linkClassName:n,linkActiveClassName:i}=e;return(0,r.jsx)("ul",{className:a,children:t.map((e=>(0,r.jsx)("li",{className:s,children:(0,r.jsx)(v.A,{isNavLink:!0,to:e.permalink,className:n,activeClassName:i,children:e.title})},e.permalink)))})}},8027:(e,t,a)=>{a.d(t,{A:()=>O});var s=a(6540),n=a(4164),i=a(7823),r=a(4581),l=a(1312),o=a(4096),c=a(6342),m=a(1107),d=a(4848);function u(e){let{year:t,yearGroupHeadingClassName:a,children:s}=e;return(0,d.jsxs)("div",{role:"group",children:[(0,d.jsx)(m.A,{as:"h3",className:a,children:t}),s]})}function g(e){let{items:t,yearGroupHeadingClassName:a,ListComponent:s}=e;if((0,c.p)().blog.sidebar.groupByYear){const e=(0,o.Ki)(t);return(0,d.jsx)(d.Fragment,{children:e.map((e=>{let[t,n]=e;return(0,d.jsx)(u,{year:t,yearGroupHeadingClassName:a,children:(0,d.jsx)(s,{items:n})},t)}))})}return(0,d.jsx)(s,{items:t})}const h=(0,s.memo)(g),p="sidebar_re4s",b="sidebarItemTitle_pO2u",f="sidebarItemList_Yudw",x="sidebarItem__DBe",j="sidebarItemLink_mo7H",N="sidebarItemLinkActive_I1ZP",v="yearGroupHeading_rMGB",C=e=>{let{items:t}=e;return(0,d.jsx)(o.OU,{items:t,ulClassName:(0,n.A)(f,"clean-list"),liClassName:x,linkClassName:j,linkActiveClassName:N})};function k(e){let{sidebar:t}=e;const a=(0,o.Gx)(t.items);return(0,d.jsx)("aside",{className:"col col--3",children:(0,d.jsxs)("nav",{className:(0,n.A)(p,"thin-scrollbar"),"aria-label":(0,l.T)({id:"theme.blog.sidebar.navAriaLabel",message:"Blog recent posts navigation",description:"The ARIA label for recent posts in the blog sidebar"}),children:[(0,d.jsx)("div",{className:(0,n.A)(b,"margin-bottom--md"),children:t.title}),(0,d.jsx)(h,{items:a,ListComponent:C,yearGroupHeadingClassName:v})]})})}const y=(0,s.memo)(k);var A=a(5600);const P={yearGroupHeading:"yearGroupHeading_QT03"},_=e=>{let{items:t}=e;return(0,d.jsx)(o.OU,{items:t,ulClassName:"menu__list",liClassName:"menu__list-item",linkClassName:"menu__link",linkActiveClassName:"menu__link--active"})};function w(e){let{sidebar:t}=e;const a=(0,o.Gx)(t.items);return(0,d.jsx)(h,{items:a,ListComponent:_,yearGroupHeadingClassName:P.yearGroupHeading})}function B(e){return(0,d.jsx)(A.GX,{component:w,props:e})}const G=(0,s.memo)(B);function H(e){let{sidebar:t}=e;const a=(0,r.l)();return t?.items.length?"mobile"===a?(0,d.jsx)(G,{sidebar:t}):(0,d.jsx)(y,{sidebar:t}):null}function O(e){const{sidebar:t,toc:a,children:s,...r}=e,l=t&&t.items.length>0;return(0,d.jsx)(i.A,{...r,children:(0,d.jsx)("div",{className:"container margin-vert--lg",children:(0,d.jsxs)("div",{className:"row",children:[(0,d.jsx)(H,{sidebar:t}),(0,d.jsx)("main",{className:(0,n.A)("col",{"col--7":l,"col--9 col--offset-1":!l}),children:s}),a&&(0,d.jsx)("div",{className:"col col--2",children:a})]})})})}},9158:(e,t,a)=>{a.r(t),a.d(t,{default:()=>b});a(6540);var s=a(4164),n=a(1312);const i=()=>(0,n.T)({id:"theme.tags.tagsPageTitle",message:"Tags",description:"The title of the tag list page"});var r=a(1213),l=a(7559),o=a(8027),c=a(6133),m=a(1107);const d={tag:"tag_Nnez"};var u=a(4848);function g(e){let{letterEntry:t}=e;return(0,u.jsxs)("article",{children:[(0,u.jsx)(m.A,{as:"h2",id:t.letter,children:t.letter}),(0,u.jsx)("ul",{className:"padding--none",children:t.tags.map((e=>(0,u.jsx)("li",{className:d.tag,children:(0,u.jsx)(c.A,{...e})},e.permalink)))}),(0,u.jsx)("hr",{})]})}function h(e){let{tags:t}=e;const a=function(e){const t={};return Object.values(e).forEach((e=>{const a=function(e){return e[0].toUpperCase()}(e.label);t[a]??=[],t[a].push(e)})),Object.entries(t).sort(((e,t)=>{let[a]=e,[s]=t;return a.localeCompare(s)})).map((e=>{let[t,a]=e;return{letter:t,tags:a.sort(((e,t)=>e.label.localeCompare(t.label)))}}))}(t);return(0,u.jsx)("section",{className:"margin-vert--lg",children:a.map((e=>(0,u.jsx)(g,{letterEntry:e},e.letter)))})}var p=a(1463);function b(e){let{tags:t,sidebar:a}=e;const n=i();return(0,u.jsxs)(r.e3,{className:(0,s.A)(l.G.wrapper.blogPages,l.G.page.blogTagsListPage),children:[(0,u.jsx)(r.be,{title:n}),(0,u.jsx)(p.A,{tag:"blog_tags_list"}),(0,u.jsxs)(o.A,{sidebar:a,children:[(0,u.jsx)(m.A,{as:"h1",children:n}),(0,u.jsx)(h,{tags:t})]})]})}},6133:(e,t,a)=>{a.d(t,{A:()=>l});a(6540);var s=a(4164),n=a(8774);const i={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var r=a(4848);function l(e){let{permalink:t,label:a,count:l,description:o}=e;return(0,r.jsxs)(n.A,{href:t,title:o,className:(0,s.A)(i.tag,l?i.tagWithCount:i.tagRegular),children:[a,l&&(0,r.jsx)("span",{children:l})]})}}}]); \ No newline at end of file diff --git a/assets/js/01a85c17.ee34b9e6.js b/assets/js/01a85c17.ee34b9e6.js deleted file mode 100644 index 9243252a4..000000000 --- a/assets/js/01a85c17.ee34b9e6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8209],{4096:(e,t,a)=>{a.d(t,{in:()=>c,OU:()=>P,Ki:()=>A,kJ:()=>b,x:()=>l,e7:()=>m,J_:()=>f,Gx:()=>y});var s=a(6540),n=a(9532),i=a(6803),r=a(4848);function l(){const e=(0,i.A)(),t=e?.data?.blogMetadata;if(!t)throw new Error("useBlogMetadata() can't be called on the current route because the blog metadata could not be found in route context");return t}const o=s.createContext(null);function c(e){let{children:t,content:a,isBlogPostPage:n=!1}=e;const i=function(e){let{content:t,isBlogPostPage:a}=e;return(0,s.useMemo)((()=>({metadata:t.metadata,frontMatter:t.frontMatter,assets:t.assets,toc:t.toc,isBlogPostPage:a})),[t,a])}({content:a,isBlogPostPage:n});return(0,r.jsx)(o.Provider,{value:i,children:t})}function m(){const e=(0,s.useContext)(o);if(null===e)throw new n.dV("BlogPostProvider");return e}var d=a(6025),u=a(4586);const g=e=>new Date(e).toISOString();function h(e){const t=e.map(x);return{author:1===t.length?t[0]:t}}function p(e,t,a){return e?{image:j({imageUrl:t(e,{absolute:!0}),caption:`title image for the blog post: ${a}`})}:{}}function b(e){const{siteConfig:t}=(0,u.A)(),{withBaseUrl:a}=(0,d.hH)(),{metadata:{blogDescription:s,blogTitle:n,permalink:i}}=e,r=`${t.url}${i}`;return{"@context":"https://schema.org","@type":"Blog","@id":r,mainEntityOfPage:r,headline:n,description:s,blogPost:e.items.map((e=>function(e,t,a){const{assets:s,frontMatter:n,metadata:i}=e,{date:r,title:l,description:o,lastUpdatedAt:c}=i,m=s.image??n.image,d=n.keywords??[],u=`${t.url}${i.permalink}`,b=c?g(c):void 0;return{"@type":"BlogPosting","@id":u,mainEntityOfPage:u,url:u,headline:l,name:l,description:o,datePublished:r,...b?{dateModified:b}:{},...h(i.authors),...p(m,a,l),...d?{keywords:d}:{}}}(e.content,t,a)))}}function f(){const e=l(),{assets:t,metadata:a}=m(),{siteConfig:s}=(0,u.A)(),{withBaseUrl:n}=(0,d.hH)(),{date:i,title:r,description:o,frontMatter:c,lastUpdatedAt:b}=a,f=t.image??c.image,x=c.keywords??[],j=b?g(b):void 0,N=`${s.url}${a.permalink}`;return{"@context":"https://schema.org","@type":"BlogPosting","@id":N,mainEntityOfPage:N,url:N,headline:r,name:r,description:o,datePublished:i,...j?{dateModified:j}:{},...h(a.authors),...p(f,n,r),...x?{keywords:x}:{},isPartOf:{"@type":"Blog","@id":`${s.url}${e.blogBasePath}`,name:e.blogTitle}}}function x(e){return{"@type":"Person",...e.name?{name:e.name}:{},...e.title?{description:e.title}:{},...e.url?{url:e.url}:{},...e.email?{email:e.email}:{},...e.imageURL?{image:e.imageURL}:{}}}function j(e){let{imageUrl:t,caption:a}=e;return{"@type":"ImageObject","@id":t,url:t,contentUrl:t,caption:a}}var N=a(6347),v=a(8774),C=a(1682),k=a(9169);function y(e){const{pathname:t}=(0,N.zy)();return(0,s.useMemo)((()=>e.filter((e=>function(e,t){return!(e.unlisted&&!(0,k.ys)(e.permalink,t))}(e,t)))),[e,t])}function A(e){const t=(0,C.$z)(e,(e=>`${new Date(e.date).getFullYear()}`)),a=Object.entries(t);return a.reverse(),a}function P(e){let{items:t,ulClassName:a,liClassName:s,linkClassName:n,linkActiveClassName:i}=e;return(0,r.jsx)("ul",{className:a,children:t.map((e=>(0,r.jsx)("li",{className:s,children:(0,r.jsx)(v.A,{isNavLink:!0,to:e.permalink,className:n,activeClassName:i,children:e.title})},e.permalink)))})}},8027:(e,t,a)=>{a.d(t,{A:()=>O});var s=a(6540),n=a(4164),i=a(263),r=a(4581),l=a(1312),o=a(4096),c=a(6342),m=a(1107),d=a(4848);function u(e){let{year:t,yearGroupHeadingClassName:a,children:s}=e;return(0,d.jsxs)("div",{role:"group",children:[(0,d.jsx)(m.A,{as:"h3",className:a,children:t}),s]})}function g(e){let{items:t,yearGroupHeadingClassName:a,ListComponent:s}=e;if((0,c.p)().blog.sidebar.groupByYear){const e=(0,o.Ki)(t);return(0,d.jsx)(d.Fragment,{children:e.map((e=>{let[t,n]=e;return(0,d.jsx)(u,{year:t,yearGroupHeadingClassName:a,children:(0,d.jsx)(s,{items:n})},t)}))})}return(0,d.jsx)(s,{items:t})}const h=(0,s.memo)(g),p="sidebar_re4s",b="sidebarItemTitle_pO2u",f="sidebarItemList_Yudw",x="sidebarItem__DBe",j="sidebarItemLink_mo7H",N="sidebarItemLinkActive_I1ZP",v="yearGroupHeading_rMGB",C=e=>{let{items:t}=e;return(0,d.jsx)(o.OU,{items:t,ulClassName:(0,n.A)(f,"clean-list"),liClassName:x,linkClassName:j,linkActiveClassName:N})};function k(e){let{sidebar:t}=e;const a=(0,o.Gx)(t.items);return(0,d.jsx)("aside",{className:"col col--3",children:(0,d.jsxs)("nav",{className:(0,n.A)(p,"thin-scrollbar"),"aria-label":(0,l.T)({id:"theme.blog.sidebar.navAriaLabel",message:"Blog recent posts navigation",description:"The ARIA label for recent posts in the blog sidebar"}),children:[(0,d.jsx)("div",{className:(0,n.A)(b,"margin-bottom--md"),children:t.title}),(0,d.jsx)(h,{items:a,ListComponent:C,yearGroupHeadingClassName:v})]})})}const y=(0,s.memo)(k);var A=a(5600);const P={yearGroupHeading:"yearGroupHeading_QT03"},_=e=>{let{items:t}=e;return(0,d.jsx)(o.OU,{items:t,ulClassName:"menu__list",liClassName:"menu__list-item",linkClassName:"menu__link",linkActiveClassName:"menu__link--active"})};function w(e){let{sidebar:t}=e;const a=(0,o.Gx)(t.items);return(0,d.jsx)(h,{items:a,ListComponent:_,yearGroupHeadingClassName:P.yearGroupHeading})}function B(e){return(0,d.jsx)(A.GX,{component:w,props:e})}const G=(0,s.memo)(B);function H(e){let{sidebar:t}=e;const a=(0,r.l)();return t?.items.length?"mobile"===a?(0,d.jsx)(G,{sidebar:t}):(0,d.jsx)(y,{sidebar:t}):null}function O(e){const{sidebar:t,toc:a,children:s,...r}=e,l=t&&t.items.length>0;return(0,d.jsx)(i.A,{...r,children:(0,d.jsx)("div",{className:"container margin-vert--lg",children:(0,d.jsxs)("div",{className:"row",children:[(0,d.jsx)(H,{sidebar:t}),(0,d.jsx)("main",{className:(0,n.A)("col",{"col--7":l,"col--9 col--offset-1":!l}),children:s}),a&&(0,d.jsx)("div",{className:"col col--2",children:a})]})})})}},9158:(e,t,a)=>{a.r(t),a.d(t,{default:()=>b});a(6540);var s=a(4164),n=a(1312);const i=()=>(0,n.T)({id:"theme.tags.tagsPageTitle",message:"Tags",description:"The title of the tag list page"});var r=a(1213),l=a(7559),o=a(8027),c=a(6133),m=a(1107);const d={tag:"tag_Nnez"};var u=a(4848);function g(e){let{letterEntry:t}=e;return(0,u.jsxs)("article",{children:[(0,u.jsx)(m.A,{as:"h2",id:t.letter,children:t.letter}),(0,u.jsx)("ul",{className:"padding--none",children:t.tags.map((e=>(0,u.jsx)("li",{className:d.tag,children:(0,u.jsx)(c.A,{...e})},e.permalink)))}),(0,u.jsx)("hr",{})]})}function h(e){let{tags:t}=e;const a=function(e){const t={};return Object.values(e).forEach((e=>{const a=function(e){return e[0].toUpperCase()}(e.label);t[a]??=[],t[a].push(e)})),Object.entries(t).sort(((e,t)=>{let[a]=e,[s]=t;return a.localeCompare(s)})).map((e=>{let[t,a]=e;return{letter:t,tags:a.sort(((e,t)=>e.label.localeCompare(t.label)))}}))}(t);return(0,u.jsx)("section",{className:"margin-vert--lg",children:a.map((e=>(0,u.jsx)(g,{letterEntry:e},e.letter)))})}var p=a(1463);function b(e){let{tags:t,sidebar:a}=e;const n=i();return(0,u.jsxs)(r.e3,{className:(0,s.A)(l.G.wrapper.blogPages,l.G.page.blogTagsListPage),children:[(0,u.jsx)(r.be,{title:n}),(0,u.jsx)(p.A,{tag:"blog_tags_list"}),(0,u.jsxs)(o.A,{sidebar:a,children:[(0,u.jsx)(m.A,{as:"h1",children:n}),(0,u.jsx)(h,{tags:t})]})]})}},6133:(e,t,a)=>{a.d(t,{A:()=>l});a(6540);var s=a(4164),n=a(8774);const i={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var r=a(4848);function l(e){let{permalink:t,label:a,count:l,description:o}=e;return(0,r.jsxs)(n.A,{href:t,title:o,className:(0,s.A)(i.tag,l?i.tagWithCount:i.tagRegular),children:[a,l&&(0,r.jsx)("span",{children:l})]})}}}]); \ No newline at end of file diff --git a/assets/js/03af419f.15f9e88f.js b/assets/js/03af419f.15f9e88f.js new file mode 100644 index 000000000..dc93eeccf --- /dev/null +++ b/assets/js/03af419f.15f9e88f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9305],{8619:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>p,frontMatter:()=>o,metadata:()=>a,toc:()=>d});const a=JSON.parse('{"id":"encoders/VVenC","title":"VVenC","description":"{t.d(n,{A:()=>s});t(6540);var a=t(4164);const r={tabItem:"tabItem_Ymn6"};var i=t(4848);function s(e){let{children:n,hidden:t,className:s}=e;return(0,i.jsx)("div",{role:"tabpanel",className:(0,a.A)(r.tabItem,s),hidden:t,children:n})}},1470:(e,n,t)=>{t.d(n,{A:()=>w});var a=t(6540),r=t(4164),i=t(3104),s=t(6347),l=t(205),o=t(7485),c=t(1682),u=t(679);function d(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:t}=e;return(0,a.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:a,default:r}}=e;return{value:n,label:t,attributes:a,default:r}}))}(t);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:t}=e;const r=(0,s.W6)(),i=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,o.aZ)(i),(0,a.useCallback)((e=>{if(!i)return;const n=new URLSearchParams(r.location.search);n.set(i,e),r.replace({...r.location,search:n.toString()})}),[i,r])]}function f(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,i=h(e),[s,o]=(0,a.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const a=t.find((e=>e.default))??t[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:n,tabValues:i}))),[c,d]=m({queryString:t,groupId:r}),[f,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,i]=(0,u.Dv)(t);return[r,(0,a.useCallback)((e=>{t&&i.set(e)}),[t,i])]}({groupId:r}),g=(()=>{const e=c??f;return p({value:e,tabValues:i})?e:null})();(0,l.A)((()=>{g&&o(g)}),[g]);return{selectedValue:s,selectValue:(0,a.useCallback)((e=>{if(!p({value:e,tabValues:i}))throw new Error(`Can't select invalid tab value=${e}`);o(e),d(e),b(e)}),[d,b,i]),tabValues:i}}var b=t(2303);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=t(4848);function x(e){let{className:n,block:t,selectedValue:a,selectValue:s,tabValues:l}=e;const o=[],{blockElementScrollPositionUntilNextRender:c}=(0,i.a_)(),u=e=>{const n=e.currentTarget,t=o.indexOf(n),r=l[t].value;r!==a&&(c(n),s(r))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=o.indexOf(e.currentTarget)+1;n=o[t]??o[0];break}case"ArrowLeft":{const t=o.indexOf(e.currentTarget)-1;n=o[t]??o[o.length-1];break}}n?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:i}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:a===n?0:-1,"aria-selected":a===n,ref:e=>o.push(e),onKeyDown:d,onClick:u,...i,className:(0,r.A)("tabs__item",g.tabItem,i?.className,{"tabs__item--active":a===n}),children:t??n},n)}))})}function V(e){let{lazy:n,children:t,selectedValue:i}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===i));return e?(0,a.cloneElement)(e,{className:(0,r.A)("margin-top--md",e.props.className)}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,a.cloneElement)(e,{key:n,hidden:e.props.value!==i})))})}function j(e){const n=f(e);return(0,v.jsxs)("div",{className:(0,r.A)("tabs-container",g.tabList),children:[(0,v.jsx)(x,{...n,...e}),(0,v.jsx)(V,{...n,...e})]})}function w(e){const n=(0,b.A)();return(0,v.jsx)(j,{...e,children:d(e.children)},String(n))}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>l});var a=t(6540);const r={},i=a.createContext(r);function s(e){const n=a.useContext(i);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),a.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/03af419f.85fed8d0.js b/assets/js/03af419f.85fed8d0.js deleted file mode 100644 index 5cb203293..000000000 --- a/assets/js/03af419f.85fed8d0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9305],{1865:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>u,contentTitle:()=>o,default:()=>p,frontMatter:()=>l,metadata:()=>c,toc:()=>d});var a=t(4848),r=t(8453),i=t(1470),s=t(9365);const l={title:"VVenC",sidebar_position:12},o="VVenC",c={id:"encoders/VVenC",title:"VVenC",description:'{t.d(n,{A:()=>s});t(6540);var a=t(4164);const r={tabItem:"tabItem_Ymn6"};var i=t(4848);function s(e){let{children:n,hidden:t,className:s}=e;return(0,i.jsx)("div",{role:"tabpanel",className:(0,a.A)(r.tabItem,s),hidden:t,children:n})}},1470:(e,n,t)=>{t.d(n,{A:()=>w});var a=t(6540),r=t(4164),i=t(3104),s=t(6347),l=t(205),o=t(7485),c=t(1682),u=t(679);function d(e){return a.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,a.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:t}=e;return(0,a.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:a,default:r}}=e;return{value:n,label:t,attributes:a,default:r}}))}(t);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:t}=e;const r=(0,s.W6)(),i=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,o.aZ)(i),(0,a.useCallback)((e=>{if(!i)return;const n=new URLSearchParams(r.location.search);n.set(i,e),r.replace({...r.location,search:n.toString()})}),[i,r])]}function f(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,i=h(e),[s,o]=(0,a.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const a=t.find((e=>e.default))??t[0];if(!a)throw new Error("Unexpected error: 0 tabValues");return a.value}({defaultValue:n,tabValues:i}))),[c,d]=m({queryString:t,groupId:r}),[f,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,i]=(0,u.Dv)(t);return[r,(0,a.useCallback)((e=>{t&&i.set(e)}),[t,i])]}({groupId:r}),g=(()=>{const e=c??f;return p({value:e,tabValues:i})?e:null})();(0,l.A)((()=>{g&&o(g)}),[g]);return{selectedValue:s,selectValue:(0,a.useCallback)((e=>{if(!p({value:e,tabValues:i}))throw new Error(`Can't select invalid tab value=${e}`);o(e),d(e),b(e)}),[d,b,i]),tabValues:i}}var b=t(2303);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=t(4848);function x(e){let{className:n,block:t,selectedValue:a,selectValue:s,tabValues:l}=e;const o=[],{blockElementScrollPositionUntilNextRender:c}=(0,i.a_)(),u=e=>{const n=e.currentTarget,t=o.indexOf(n),r=l[t].value;r!==a&&(c(n),s(r))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=o.indexOf(e.currentTarget)+1;n=o[t]??o[0];break}case"ArrowLeft":{const t=o.indexOf(e.currentTarget)-1;n=o[t]??o[o.length-1];break}}n?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":t},n),children:l.map((e=>{let{value:n,label:t,attributes:i}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:a===n?0:-1,"aria-selected":a===n,ref:e=>o.push(e),onKeyDown:d,onClick:u,...i,className:(0,r.A)("tabs__item",g.tabItem,i?.className,{"tabs__item--active":a===n}),children:t??n},n)}))})}function V(e){let{lazy:n,children:t,selectedValue:i}=e;const s=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===i));return e?(0,a.cloneElement)(e,{className:(0,r.A)("margin-top--md",e.props.className)}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,a.cloneElement)(e,{key:n,hidden:e.props.value!==i})))})}function j(e){const n=f(e);return(0,v.jsxs)("div",{className:(0,r.A)("tabs-container",g.tabList),children:[(0,v.jsx)(x,{...n,...e}),(0,v.jsx)(V,{...n,...e})]})}function w(e){const n=(0,b.A)();return(0,v.jsx)(j,{...e,children:d(e.children)},String(n))}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>l});var a=t(6540);const r={},i=a.createContext(r);function s(e){const n=a.useContext(i);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),a.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/03e95fdf.2b32f9af.js b/assets/js/03e95fdf.2b32f9af.js new file mode 100644 index 000000000..2f6a4c101 --- /dev/null +++ b/assets/js/03e95fdf.2b32f9af.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3485],{9909:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>a,contentTitle:()=>c,default:()=>u,frontMatter:()=>r,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"video/VP8","title":"VP8","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/video/VP8.mdx","sourceDirName":"video","slug":"/video/VP8","permalink":"/docs/video/VP8","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/VP8.mdx","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"title":"VP8","sidebar_position":4},"sidebar":"tutorialSidebar","previous":{"title":"VVC / H.266","permalink":"/docs/video/VVC"},"next":{"title":"VP9","permalink":"/docs/video/VP9"}}');var n=t(4848),s=t(8453);const r={title:"VP8",sidebar_position:4},c="VP8",a={},d=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"vp8",children:"VP8"})}),"\n",(0,n.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(i.p,{children:["VP8 is a video compression format developed by On2 Technologies released in 2008. It was later released as a royalty free codec in 2010 by Google. Its efficiency is competitive with ",(0,n.jsx)(i.a,{href:"/docs/video/AVC",children:"AVC"}),". VP8 was a significant player in the royalty-free codec space and was used in various applications like web video delivery. It is the precursor to ",(0,n.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"})," & ",(0,n.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"}),", which both further improve video compression efficiency. VP8 has faced criticism for having a messy specification that many considered to be incomplete."]})]})}function u(e={}){const{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>r,x:()=>c});var o=t(6540);const n={},s=o.createContext(n);function r(e){const i=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function c(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),o.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/03e95fdf.a11034af.js b/assets/js/03e95fdf.a11034af.js deleted file mode 100644 index 7809a40b3..000000000 --- a/assets/js/03e95fdf.a11034af.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3485],{1789:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>d,contentTitle:()=>r,default:()=>u,frontMatter:()=>s,metadata:()=>c,toc:()=>a});var o=t(4848),n=t(8453);const s={title:"VP8",sidebar_position:4},r="VP8",c={id:"video/VP8",title:"VP8",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/video/VP8.mdx",sourceDirName:"video",slug:"/video/VP8",permalink:"/docs/video/VP8",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/VP8.mdx",tags:[],version:"current",sidebarPosition:4,frontMatter:{title:"VP8",sidebar_position:4},sidebar:"tutorialSidebar",previous:{title:"VVC / H.266",permalink:"/docs/video/VVC"},next:{title:"VP9",permalink:"/docs/video/VP9"}},d={},a=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.header,{children:(0,o.jsx)(i.h1,{id:"vp8",children:"VP8"})}),"\n",(0,o.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsxs)(i.p,{children:["VP8 is a video compression format developed by On2 Technologies released in 2008. It was later released as a royalty free codec in 2010 by Google. Its efficiency is competitive with ",(0,o.jsx)(i.a,{href:"/docs/video/AVC",children:"AVC"}),". VP8 was a significant player in the royalty-free codec space and was used in various applications like web video delivery. It is the precursor to ",(0,o.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"})," & ",(0,o.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"}),", which both further improve video compression efficiency. VP8 has faced criticism for having a messy specification that many considered to be incomplete."]})]})}function u(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>r,x:()=>c});var o=t(6540);const n={},s=o.createContext(n);function r(e){const i=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function c(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),o.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/04dda763.032833c7.js b/assets/js/04dda763.032833c7.js deleted file mode 100644 index 52023fae2..000000000 --- a/assets/js/04dda763.032833c7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6778],{3763:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>a,contentTitle:()=>o,default:()=>h,frontMatter:()=>r,metadata:()=>l,toc:()=>c});var t=i(4848),s=i(8453);const r={title:"AV1 for Dummies",description:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.",slug:"av1-for-dummies",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4"},{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","compression"],image:"/img/av1_for_dummies_guide.jpg",hide_table_of_contents:!1},o=void 0,l={permalink:"/blog/av1-for-dummies",source:"@site/blog/2024-06-24-av1-for-dummies-2.mdx",title:"AV1 for Dummies",description:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.",date:"2024-06-24T00:00:00.000Z",tags:[{inline:!0,label:"video",permalink:"/blog/tags/video"},{inline:!0,label:"compression",permalink:"/blog/tags/compression"}],readingTime:16.645,hasTruncateMarker:!0,authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4",imageURL:"https://avatars.githubusercontent.com/u/35711760?v=4",key:null,page:null},{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4",key:null,page:null}],frontMatter:{title:"AV1 for Dummies",description:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.",slug:"av1-for-dummies",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4",imageURL:"https://avatars.githubusercontent.com/u/35711760?v=4"},{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","compression"],image:"/img/av1_for_dummies_guide.jpg",hide_table_of_contents:!1},unlisted:!1,prevItem:{title:"Codec Wiki: One Year Later",permalink:"/blog/codec-wiki-one-year-later"},nextItem:{title:"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive",permalink:"/blog/svt-av1-second-deep-dive"}},a={authorsImageUrls:[void 0,void 0]},c=[{value:"Introduction",id:"introduction",level:2},{value:"Why AV1?",id:"why-av1",level:3},{value:"Do's & Don'ts",id:"dos--donts",level:3},{value:"Tools",id:"tools",level:2},{value:"GUI",id:"gui",level:3},{value:"CLI",id:"cli",level:3},{value:"Conclusion",id:"conclusion",level:3},{value:"Encoders",id:"encoders",level:2},{value:"SVT-AV1",id:"svt-av1",level:3},{value:"rav1e",id:"rav1e",level:3},{value:"aomenc (libaom)",id:"aomenc-libaom",level:3},{value:"SVT-AV1-PSY",id:"svt-av1-psy",level:3},{value:"Conclusion",id:"conclusion-1",level:3},{value:"Final Conclusion",id:"final-conclusion",level:2}];function d(e){const n={a:"a",em:"em",h2:"h2",h3:"h3",img:"img",li:"li",ol:"ol",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.p,{children:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered."}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Compare",src:i(8632).A+"",width:"2048",height:"1080"})}),"\n",(0,t.jsx)(n.h2,{id:"introduction",children:"Introduction"}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/video/AV1",children:"AV1"})," is a royalty-free video codec developed by the Alliance for Open Media. It is designed to replace ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/video/VP9",children:"VP9"})," and presently competes with ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/video/VVC",children:"H.266"}),". AV1 is known for its high compression efficiency, which the marketing will have you believe reduces file sizes by up to 50% compared to ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/video/AVC",children:"H.264"})," and up to 30% compared to ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/video/HEVC",children:"H.265"})," across the board. It is supported by several major browsers and is widely used across many streaming services and video platforms."]}),"\n",(0,t.jsx)(n.h3,{id:"why-av1",children:"Why AV1?"}),"\n",(0,t.jsxs)(n.p,{children:["Before we dive in, it is important to understand ",(0,t.jsx)(n.em,{children:"why"})," you may want to use AV1 instead of other codecs. The reality is that AV1 is ",(0,t.jsx)(n.em,{children:"not"})," better than H.264/5 in every single scenario; video encoding is a complicated field, and the best codec for you will depend on your specific needs. AV1 excels in:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Low to medium-high fidelity encoding"}),"\n",(0,t.jsx)(n.li,{children:"Higher resolution encoding"}),"\n",(0,t.jsx)(n.li,{children:"Encoding content with very little grain or noise"}),"\n",(0,t.jsx)(n.li,{children:"Slow, non-realtime contexts (e.g. offline encoding)"}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["The enumeration above still consists of broad strokes, but the point is to understand that AV1 is not a silver bullet. It will not automatically make your videos smaller while preserving your desired quality. To make things more difficult, the ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/x264",children:"x264"})," & ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/x265",children:"x265"})," encoders are very mature, while AV1 encoding efforts designed to meet the extremely complicated needs of the human eye are still in their infancy."]}),"\n",(0,t.jsx)(n.p,{children:"This guide focuses almost entirely on tools great for offline, non-realtime encoding for various kinds of content. Streaming is an altogether different application of AV1, and is only covered sparsely here."}),"\n",(0,t.jsx)(n.h3,{id:"dos--donts",children:"Do's & Don'ts"}),"\n",(0,t.jsx)(n.p,{children:"Due to a lot of misunderstandings about codecs and compression, there are a lot of common misconceptions that are held regarding video encoding. We'll start by outlining some bad practices:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Don't"})," encode the same video multiple times. This is a common mistake made by people new to video encoding. Every time you encode a video, you lose additional quality due to ",(0,t.jsx)(n.em,{children:"generation loss"}),". This is because video codecs are lossy, and every time you encode a video, you lose more information. This is why it is important to keep the original video file if you frequently re-encode it."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Don't"})," blindly copy settings from others without understanding them. What works for one person's content and workflow may not work for yours. Even the default settings on many encoders are not optimal for most content."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Don't"})," assume that higher bitrate equates to better quality. Inefficient encoding can waste bits without improving visual quality, and efficient encoding can make lower bitrate video look drastically better than higher bitrate video using the same codec."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Don't"})," assume all encoders/presets/settings/implementations are created equal. Even given two encoding frameworks that use the same underlying encoder, you may achieve different results given encoder version mismatches or subtly different settings used under the hood."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Don't"})," use unnecessarily slow presets/speeds unless you have a specific need and ample time. While slower presets improve encoding efficiency most of the time, the quality gains reach a point of diminishing returns beyond a certain point. Use the slowest preset you can tolerate, not the slowest preset available."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Don't"})," blindly trust metric scores. It is unfortunate how trusted ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/metrics/VMAF",children:"VMAF"})," is considering how infrequently it correlates with visual fidelity in practice now that it has become so popular. Even the beloved ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/metrics/SSIMULACRA2",children:"SSIMULACRA2"})," is not a perfect one-to-one with the human eye."]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["Now, let's move on to some ",(0,t.jsx)(n.strong,{children:"good"})," practices:"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Experiment with different settings and compare the results."}),"\n",(0,t.jsx)(n.li,{children:"Consider your content type when choosing encoding settings. Film, animation, and sports all have different characteristics that benefit from distinct approaches."}),"\n",(0,t.jsx)(n.li,{children:"Try to use CRF for offline encoding, as opposed to CBR or VBR. While the latter two are effective for precisely targeting a particular bitrate, CRF is more effective at targeting a specific quality level efficiently."}),"\n",(0,t.jsx)(n.li,{children:"Always use 10-bit color, even with an 8-bit source. AV1's internal workings are much more suited to 10-bit color, and you are almost always guaranteed quality improvements with zero compatibility penalty as 10-bit color is part of AV1's baseline profile."}),"\n",(0,t.jsx)(n.li,{children:"Consider using grain synthesis for grainy content, as AV1 can struggle with preserving film grain efficiently."}),"\n",(0,t.jsx)(n.li,{children:"Keep your encoding software up-to-date; the encoding world moves quickly."}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"tools",children:"Tools"}),"\n",(0,t.jsx)(n.p,{children:"Since writing the last guide, there are now several versatile tools available for AV1 encoding. Below, we've assembled some tables of popular encoding tools and their features."}),"\n",(0,t.jsx)(n.h3,{id:"gui",children:"GUI"}),"\n",(0,t.jsx)(n.p,{children:"Here's the key:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Encoder(s)"}),": The AV1 encoder(s) the software uses or is able to use. This is between ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/SVT-AV1",children:"SVT-AV1"}),", ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/aomenc",children:"aomenc"}),", ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/rav1e",children:"rav1e"}),", ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/SVT-AV1-PSY",children:"SVT-AV1-PSY"}),", and various aomenc forks. We'll get into this more later."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Ease of Use"}),": How intuitive the software is, especially for beginners."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Complexity"}),": How flexible the software can be for advanced users."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Efficiency"}),': How "good" the underlying encoder(s) are. This is more subjective, but tools with bad defaults, misleading options, or slow release cycles won\'t score well here.']}),"\n"]}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.th,{children:"Name"}),(0,t.jsx)(n.th,{children:"Platform(s)"}),(0,t.jsx)(n.th,{style:{textAlign:"center"},children:"Encoder(s)"}),(0,t.jsx)(n.th,{style:{textAlign:"center"},children:"Ease of Use"}),(0,t.jsx)(n.th,{style:{textAlign:"center"},children:"Complexity"}),(0,t.jsx)(n.th,{children:"Efficiency"})]})}),(0,t.jsxs)(n.tbody,{children:[(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/Aviator",children:"Aviator"})}),(0,t.jsx)(n.td,{children:"Linux"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"SVT-AV1-PSY"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cb\u25cb\u25cb\u25cb"}),(0,t.jsx)(n.td,{children:"\u25cf\u25cf\u25cf\u25cf\u25cf"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/nmkoder",children:"NMKODER"})}),(0,t.jsx)(n.td,{children:"Windows"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"Any"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cb\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,t.jsx)(n.td,{children:"\u25cf\u25cf\u25cb\u25cb\u25cb"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.a,{href:"https://github.com/Av1ation-Association/Av1ation-Creations/releases/",children:"Av1ation Station"})}),(0,t.jsx)(n.td,{children:"Any"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"Any"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cb\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,t.jsx)(n.td,{children:"\u25cf\u25cf\u25cf\u25cf\u25cb"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.a,{href:"https://github.com/staxrip/staxrip",children:"StaxRip"})}),(0,t.jsx)(n.td,{children:"Windows"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"Any"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cb\u25cb\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,t.jsx)(n.td,{children:"\u25cf\u25cf\u25cf\u25cf\u25cb"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.a,{href:"https://github.com/Alkl58/NotEnoughAV1Encodes",children:"NEAV1E"})}),(0,t.jsx)(n.td,{children:"Windows"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"Any"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cb\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cb\u25cb"}),(0,t.jsx)(n.td,{children:"\u25cf\u25cf\u25cb\u25cb\u25cb"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.a,{href:"https://handbrake.fr/",children:"Handbrake"})}),(0,t.jsx)(n.td,{children:"Any"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"SVT-AV1"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cb\u25cb\u25cb"}),(0,t.jsx)(n.td,{children:"\u25cf\u25cf\u25cb\u25cb\u25cb"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.a,{href:"https://github.com/cdgriffith/FastFlix",children:"FastFlix"})}),(0,t.jsx)(n.td,{children:"Any"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"Any"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cb\u25cb"}),(0,t.jsx)(n.td,{children:"\u25cf\u25cf\u25cb\u25cb\u25cb"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/rav1ator",children:"rAV1ator"})}),(0,t.jsx)(n.td,{children:"Linux"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"rav1e"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cb\u25cb"}),(0,t.jsx)(n.td,{children:"\u25cf\u25cb\u25cb\u25cb\u25cb"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.a,{href:"https://autocompressor.net/",children:"Autocompressor"})}),(0,t.jsx)(n.td,{children:"Web"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"SVT-AV1"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cb\u25cb\u25cb\u25cb"}),(0,t.jsx)(n.td,{children:"\u25cf\u25cf\u25cf\u25cb\u25cb"})]})]})]}),"\n",(0,t.jsx)(n.p,{children:"Our top pics are:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["For beginners: ",(0,t.jsx)(n.strong,{children:"Aviator"}),". If you are on Linux and you want zero hassle whatsoever, Aviator is simple but highly effective. As a Flatpak application, it ships a bundled SVT-AV1-PSY binary that is up-to-date, compiled efficiently, and handled with extensively tested defaults. It is hard to go wrong with Aviator even as an advanced user, despite its simplicity."]}),"\n",(0,t.jsxs)(n.li,{children:["For advanced users: ",(0,t.jsx)(n.strong,{children:"Av1ation Station"}),". Av1ator Station is thoughtfully designed to be your one-stop shop for video encoding. Even though it is brand new, it has proven itself to be a capable and reliable solution for advanced video encoders that have a lot of settings to tweak and encodes to keep track of."]}),"\n",(0,t.jsxs)(n.li,{children:["For Windows users: ",(0,t.jsx)(n.strong,{children:"StaxRip"}),". StaxRip is a long-standing, well-maintained, and highly flexible video encoding tool that supports a plethora of encoders and formats. It comes bundled with SVT-AV1-PSY and is a great choice for Windows users who want a powerful and versatile tool for video encoding."]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"cli",children:"CLI"}),"\n",(0,t.jsx)(n.p,{children:"In the terminal, advanced encoders can explore a much greater degree of complexity than many GUIs allow. That being said, ease of use is still a consideration when managing complex command-line encoding workflows. Let's begin with the key:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"We're omitting the \"Platform(s)\" column here, as this section targets Linux users. As a Windows user, WSL has you covered - as a Mac user, you're likely to experience parity with Linux (most of the time)."}),"\n"]}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.th,{children:"Name"}),(0,t.jsx)(n.th,{children:"Framework(s)"}),(0,t.jsx)(n.th,{style:{textAlign:"center"},children:"Ease of Use"}),(0,t.jsx)(n.th,{style:{textAlign:"center"},children:"Complexity"}),(0,t.jsx)(n.th,{style:{textAlign:"center"},children:"Features"}),(0,t.jsx)(n.th,{style:{textAlign:"center"},children:"Scene Detection"})]})}),(0,t.jsxs)(n.tbody,{children:[(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"SvtAv1EncApp"}),(0,t.jsx)(n.td,{children:"None"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cb\u25cb\u25cb\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cb\u25cb\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cb\u25cb\u25cb\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"No"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/ffmpeg",children:"FFmpeg"})}),(0,t.jsx)(n.td,{children:"Itself"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cb\u25cb\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"No"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/av1an",children:"Av1an"})}),(0,t.jsx)(n.td,{children:"FFmpeg"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cb\u25cb\u25cb\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cb\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"Yes"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"})}),(0,t.jsx)(n.td,{children:"Av1an"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"Yes"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.a,{href:"https://github.com/kingstefan26/alabamaEncoder",children:"alabamaEncoder"})}),(0,t.jsx)(n.td,{children:"FFmpeg"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cb\u25cb\u25cb"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"Yes"})]})]})]}),"\n",(0,t.jsx)(n.p,{children:"Our top picks are:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["For beginners: ",(0,t.jsx)(n.strong,{children:"rAV1ator CLI"}),". rAV1ator CLI essentially walks you through the process of writing Av1an commands. It can install binaries for you, save your previous commands, and detect scenes via Av1an. This makes it a great choice for beginners who want to learn the ropes of AV1 encoding without diving into the deep end headfirst. For advanced users, it makes rapidly writing, testing, & cataloging Av1an encoding commands much simpler."]}),"\n",(0,t.jsxs)(n.li,{children:["For advanced users: ",(0,t.jsx)(n.strong,{children:"alabamaEncoder"}),". alabamaEncoder is a powerful and flexible tool that allows you to encode video with FFmpeg and AV1. It is highly configurable and supports a mind-bending array of powerful features that would be hard to find elsewhere. While the tool is still new, it is already a great choice for advanced users who want to push the boundaries of what is possible to incorporate into an encoding workflow."]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"conclusion",children:"Conclusion"}),"\n",(0,t.jsx)(n.p,{children:"In conclusion, the best AV1 tool for you will depend on your needs and experience level. If you are a beginner, Aviator is a great choice for Linux users, while StaxRip is a good option for Windows users. For advanced users, Av1ation Station is a powerful and versatile tool that can handle numerous encoding tasks. If you prefer the command line, rAV1ator CLI is a great choice for beginners, while alabamaEncoder is a powerful tool for advanced users. No matter which tool you choose, it is hard to go wrong in the modern AV1 encoding landscape when it comes to your utility of choice."}),"\n",(0,t.jsx)(n.h2,{id:"encoders",children:"Encoders"}),"\n",(0,t.jsx)(n.p,{children:"The world of AV1 encoding is diverse and complex, with several open-source encoders available, each bringing its own set of strengths, weaknesses, and unique features to the table. In this section, we'll dive deep into the characteristics of four major AV1 encoders:"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsx)(n.li,{children:"SVT-AV1,"}),"\n",(0,t.jsx)(n.li,{children:"rav1e,"}),"\n",(0,t.jsx)(n.li,{children:"aomenc (libaom), and"}),"\n",(0,t.jsx)(n.li,{children:"SVT-AV1-PSY"}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Understanding these encoders is crucial for making informed decisions about what best suits your specific encoding needs."}),"\n",(0,t.jsx)(n.h3,{id:"svt-av1",children:"SVT-AV1"}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/SVT-AV1",children:"SVT-AV1"})," (Scalable Video Technology for AV1) is an AV1 encoder library and application developed by Intel, Netflix, and others. It has gained significant popularity in the encoding community due to its impressive balance of speed, quality, and scalability."]}),"\n",(0,t.jsx)(n.p,{children:"Links:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Wiki page: ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/SVT-AV1",children:"SVT-AV1"})]}),"\n",(0,t.jsxs)(n.li,{children:["Git repository: ",(0,t.jsx)(n.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1",children:"https://gitlab.com/AOMediaCodec/SVT-AV1"})]}),"\n",(0,t.jsxs)(n.li,{children:["Documentation: ",(0,t.jsx)(n.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/README.md",children:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/README.md"})]}),"\n"]}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Performance & Scalability"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"SVT-AV1 is renowned for its encoding speed, particularly at higher speed presets."}),"\n",(0,t.jsx)(n.li,{children:"It leverages parallel processing, making it exceptionally efficient on multi-core systems. Fun fact: SVT-AV1's parallel processing is lossless, so it doesn't compromise quality for speed."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Quality-to-Speed Ratio"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"SVT-AV1 strikes an impressive balance between encoding speed and output quality."}),"\n",(0,t.jsx)(n.li,{children:"At faster presets, it usually outperforms other encoders in quality per unit of encoding time."}),"\n",(0,t.jsxs)(n.li,{children:["While it may not achieve the absolute highest ",(0,t.jsx)(n.em,{children:"quality per bit"})," possible, its quality is generally considered impressive for its speed."]}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Flexibility"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"SVT-AV1 offers a wide range of encoding options and presets, allowing fine-tuned control over the encoding process."}),"\n",(0,t.jsx)(n.li,{children:"It provides 14 presets (0-13), with 0 being the slowest and highest quality, and 13 being the fastest but lowest quality."}),"\n",(0,t.jsx)(n.li,{children:"Advanced options allow users to adjust parameters like hierarchical levels, intra-refresh type, and tuning modes."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Continuous Development"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"SVT-AV1 receives frequent updates and optimizations, with new releases often coming alongside big changes."}),"\n",(0,t.jsx)(n.li,{children:"The open-source nature of the project encourages community contributions and rapid feature development."}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"SVT-AV1 is an excellent choice for a wide range of encoding scenarios. It's particularly well-suited for:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"High-volume encoding operations where speed is crucial"}),"\n",(0,t.jsx)(n.li,{children:"Live or near-live encoding of high-resolution content"}),"\n",(0,t.jsx)(n.li,{children:"Scenarios where a balance between quality and encoding speed is required"}),"\n",(0,t.jsx)(n.li,{children:"Users with multi-core systems who want to leverage their hardware efficiently"}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Some downsides include:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Higher memory usage compared to other encoders"}),"\n",(0,t.jsx)(n.li,{children:"The developers assess quality via its performance on traditional legacy metrics, which harms its perceptual fidelity ceiling."}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"rav1e",children:"rav1e"}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/rav1e",children:"rav1e"})," is an AV1 encoder written in Rust & Assembly. Developed by the open-source community alongside Xiph, it brings a unique approach to AV1 encoding with its focus on safety and correctness."]}),"\n",(0,t.jsx)(n.p,{children:"Links:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Wiki page: ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/rav1e",children:"rav1e"})]}),"\n",(0,t.jsxs)(n.li,{children:["Git repository: ",(0,t.jsx)(n.a,{href:"https://github.com/xiph/rav1e",children:"https://github.com/xiph/rav1e"})]}),"\n",(0,t.jsxs)(n.li,{children:["Documentation: ",(0,t.jsx)(n.a,{href:"https://github.com/xiph/rav1e/tree/master/doc#readme",children:"https://github.com/xiph/rav1e/tree/master/doc#readme"})]}),"\n"]}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Safety & Reliability"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Being written in Rust, rav1e emphasizes memory safety and thread safety."}),"\n",(0,t.jsx)(n.li,{children:"This focus on safety translates to a more stable and reliable encoding process, with reduced risks of crashes or undefined behavior."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"High Fidelity"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"At high fidelity targets - an area where AV1 usually lacks - rav1e is a strong contender compared to other encoders."}),"\n",(0,t.jsx)(n.li,{children:"It excels in preserving fine details and textures, making it a good choice for high-fidelity encoding."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Quality"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"While not typically matching aomenc or SVT-AV1 in pure compression efficiency, rav1e can produce high-quality output videos."}),"\n",(0,t.jsx)(n.li,{children:"It often achieves a good balance between quality and encoding time, especially at medium-speed settings."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Perceptually Driven"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"rav1e's development is driven by visual fidelity, without relying heavily on metrics."}),"\n",(0,t.jsx)(n.li,{children:"This focus on perceptual quality leads to a stronger foundation for future potential improvements in visual quality, as well as making the encoder very easy to use as it does not require excessive tweaking."}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"rav1e is well-suited for:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Projects where stability is paramount"}),"\n",(0,t.jsx)(n.li,{children:"Users who prioritize a community-driven, open-source development approach"}),"\n",(0,t.jsx)(n.li,{children:"Encoding tasks where a balance between quality and speed is needed, but the absolute fastest speeds are not required"}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Some limitations of rav1e include:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Lagging development compared to other encoders"}),"\n",(0,t.jsx)(n.li,{children:"Slower encoding speeds compared to SVT-AV1 at similar quality & size"}),"\n",(0,t.jsx)(n.li,{children:"Fewer advanced options compared to other encoders"}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"aomenc-libaom",children:"aomenc (libaom)"}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/aomenc",children:"aomenc"}),", based on the libaom library, is the reference encoder for AV1. Developed by the Alliance for Open Media (AOM), it is the benchmark for AV1 encoding quality and compliance."]}),"\n",(0,t.jsx)(n.p,{children:"Links:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Wiki page: ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/aomenc",children:"aomenc"})]}),"\n",(0,t.jsxs)(n.li,{children:["Git repository: ",(0,t.jsx)(n.a,{href:"https://aomedia.googlesource.com/aom/",children:"https://aomedia.googlesource.com/aom/"})]}),"\n"]}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Encoding Quality"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"aomenc is widely regarded as the gold standard for AV1 encoding quality."}),"\n",(0,t.jsx)(n.li,{children:"It often achieves high compression efficiency among AV1 encoders, especially at slower speed settings."}),"\n",(0,t.jsx)(n.li,{children:"The encoder squeezes out nearly every last bit of efficiency from the AV1 codec, making it ideal for archival purposes or when quality per bit is critical."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Encoding Speed"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"aomenc is generally the slowest among major AV1 encoders."}),"\n",(0,t.jsx)(n.li,{children:"It offers 13 CPU speed levels (0-12), but even at its fastest settings, it's typically slower than other encoders at their slower settings."}),"\n",(0,t.jsx)(n.li,{children:"The slow speed is often considered a trade-off for its high compression efficiency."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Extensive Options"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"As the reference implementation, aomenc offers the most comprehensive encoding options."}),"\n",(0,t.jsx)(n.li,{children:"It provides fine-grained control over nearly every aspect of the AV1 encoding process."}),"\n",(0,t.jsx)(n.li,{children:"Advanced users can tweak many parameters to optimize for specific content types or encoding scenarios."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Flexibility"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Being the reference encoder, aomenc produces highly standards-compliant AV1 bitstreams that take advantage of the full arsenal of AV1 features."}),"\n",(0,t.jsx)(n.li,{children:"It supports 4:2:0 and 4:4:4 chroma subsampling, 8- to 12-bit color depth, and various other advanced features that more specialized encoders like SVT-AV1 do not support."}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"aomenc is ideal for:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Scenarios where achieving the highest possible quality is the primary goal"}),"\n",(0,t.jsx)(n.li,{children:"Archival encoding where compression efficiency is crucial"}),"\n",(0,t.jsx)(n.li,{children:"Research and development in video compression"}),"\n",(0,t.jsx)(n.li,{children:"Encoding projects where encoding time is not a significant constraint"}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Some drawbacks of aomenc include:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Unresponsive development driven by legacy metrics, leading to slower adoption of new techniques and ignoring improvements communicated by people outside the Google development team"}),"\n",(0,t.jsx)(n.li,{children:"Cripplingly difficult to use for beginners, with a culture of cargo-culting settings"}),"\n",(0,t.jsx)(n.li,{children:"Slow encoding speeds compared to other AV1 encoders, which has less of an impact on the quality of the output than it used to compared to maturing encoders like SVT-AV1"}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"svt-av1-psy",children:"SVT-AV1-PSY"}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/svt-av1-psy",children:"SVT-AV1-PSY"})," is a community fork of the SVT-AV1 encoder focused on psychovisual optimizations to enhance perceived visual quality. It aims at closing the distance between SVT-AV1's high speeds and the perceptual quality of aomenc's slow brute force approach."]}),"\n",(0,t.jsx)(n.p,{children:"Links:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Wiki page: ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/svt-av1-psy",children:"SVT-AV1-PSY"})]}),"\n",(0,t.jsxs)(n.li,{children:["Git repository: ",(0,t.jsx)(n.a,{href:"https://github.com/gianni-rosato/svt-av1-psy",children:"https://github.com/gianni-rosato/svt-av1-psy"})]}),"\n",(0,t.jsxs)(n.li,{children:["Documentation: ",(0,t.jsx)(n.a,{href:"https://github.com/gianni-rosato/svt-av1-psy/blob/master/Docs/PSY-Development.md",children:"https://github.com/gianni-rosato/svt-av1-psy/blob/master/Docs/PSY-Development.md"})]}),"\n"]}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Perceptual Optimizations"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"SVT-AV1-PSY introduces various psychovisual enhancements to improve the perceived quality of encoded video."}),"\n",(0,t.jsx)(n.li,{children:"These optimizations often result in output that looks better to the human eye, even if it might not always score as well in objective metrics."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Additional Features"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Introduces new options like variance boost, which can help maintain detail in high-contrast scenes."}),"\n",(0,t.jsx)(n.li,{children:"Offers alternative curve options for more nuanced control over the encoding process."}),"\n",(0,t.jsx)(n.li,{children:"Extends the CRF (Constant Rate Factor) range to 70 (from 63 in mainline SVT-AV1), allowing for extremely low-bitrate encodes."}),"\n",(0,t.jsx)(n.li,{children:'Introduces additional tuning options, including a new "SSIM with Subjective Quality Tuning" mode that can improve perceived quality.'}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Visual Fidelity Focus"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Aims to produce more visually pleasing results, sometimes at the expense of metric performance."}),"\n",(0,t.jsx)(n.li,{children:"Includes options like sharpness adjustment and adaptive film grain synthesis which can significantly impact the visual characteristics of the output."}),"\n",(0,t.jsx)(n.li,{children:"Features modified defaults driven by perceptual quality considerations."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Extended HDR Support"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Includes built-in support for Dolby Vision & HDR10+ encoding."}),"\n",(0,t.jsx)(n.li,{children:"This makes it particularly useful for encoding HDR content without requiring additional post-processing steps or external tools."}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Performance"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Based on SVT-AV1, it retains the performance characteristics of its parent encoder."}),"\n",(0,t.jsx)(n.li,{children:"Adds super slow presets (-2 and -3) for research purposes and extremely high-quality encoding. These additional presets can be useful for creating reference encodes or applications where encoding time is not a concern."}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"SVT-AV1-PSY is particularly well-suited for:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Encoding scenarios where subjective visual quality is prioritized over pure metric performance"}),"\n",(0,t.jsx)(n.li,{children:"HDR content encoding in Dolby Vision or HDR10+"}),"\n",(0,t.jsx)(n.li,{children:"Users who want fine-grained control over psychovisual aspects of encoding"}),"\n",(0,t.jsx)(n.li,{children:"Projects that require a balance between the speed of SVT-AV1 and enhanced visual quality"}),"\n",(0,t.jsx)(n.li,{children:"Encoding challenging content with complex textures or high-contrast scenes"}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Some drawbacks are:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Everything that applies to SVT-AV1, including the lack of support for 4:4:4 chroma subsampling and 12-bit color depth that are useful in specific scenarios"}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"conclusion-1",children:"Conclusion"}),"\n",(0,t.jsx)(n.p,{children:"While SVT-AV1 is known for being fast, aomenc is renowned for its high-quality output, and rav1e is recognized for its safety and reliability, each encoder has strengths and weaknesses. The best encoder for you will depend on your specific needs and priorities."}),"\n",(0,t.jsxs)(n.p,{children:["As this guide is focused on offline encoding, ",(0,t.jsx)(n.strong,{children:"SVT-AV1-PSY"})," combines aomenc's traditional perceptual strength with SVT-AV1's speed. Like rav1e, it is easy to use due to strong default settings that prevent cargo culting, and overall it can be considered the best of all three worlds. It is actively developed by a team of responsive community members, and it is a great choice for most users who want a balance between quality per bit, speed, and ease of use."]}),"\n",(0,t.jsx)(n.p,{children:'The "best" encoder often depends on your use case, content type, and target audience. It\'s always worth experimenting with different encoders and settings to find the optimal balance for your needs. Many advanced users even employ multiple encoders in their workflows, choosing the most appropriate tool for each specific task or content type.'}),"\n",(0,t.jsx)(n.h2,{id:"final-conclusion",children:"Final Conclusion"}),"\n",(0,t.jsxs)(n.p,{children:["The AV1 ecosystem has grown to the point where a single comprehensive guide cannot effectively cover the entire extent of the available tools and techniques for AV1 encoding across ",(0,t.jsx)(n.em,{children:"every"})," use case. If you want more detail about a particular tool, where to acquire it, or how to compile an encoder, you can find that information throughout the various wiki entries linked on this page."]}),"\n",(0,t.jsxs)(n.p,{children:["Reading can get you far, but it is natural to have questions. Please don't hesitate to connect with the team behind the Codec Wiki and many of these tools via our ",(0,t.jsx)(n.a,{href:"https://discord.gg/bbQD5MjDr3",children:"AV1 for Dummies Discord server"}),". We're happy to help you with anything you need, and your questions and feedback help the wiki grow and improve. We hope you enjoy your journey into AV1 encoding, and we wish you the best of luck in your encoding endeavors!"]})]})}function h(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},8632:(e,n,i)=>{i.d(n,{A:()=>t});const t=i.p+"assets/images/av1_for_dummies_guide-a83f247bebb2261a1ba671e33ddf1e99.avif"},8453:(e,n,i)=>{i.d(n,{R:()=>o,x:()=>l});var t=i(6540);const s={},r=t.createContext(s);function o(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/04dda763.11381acb.js b/assets/js/04dda763.11381acb.js new file mode 100644 index 000000000..50dfc7e44 --- /dev/null +++ b/assets/js/04dda763.11381acb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6778],{3763:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>a,contentTitle:()=>l,default:()=>h,frontMatter:()=>o,metadata:()=>t,toc:()=>c});var t=i(9543),s=i(4848),r=i(8453);const o={title:"AV1 for Dummies",description:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.",slug:"av1-for-dummies",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4"},{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","compression"],image:"/img/av1_for_dummies_guide.jpg",hide_table_of_contents:!1},l=void 0,a={authorsImageUrls:[void 0,void 0]},c=[{value:"Introduction",id:"introduction",level:2},{value:"Why AV1?",id:"why-av1",level:3},{value:"Do's & Don'ts",id:"dos--donts",level:3},{value:"Tools",id:"tools",level:2},{value:"GUI",id:"gui",level:3},{value:"CLI",id:"cli",level:3},{value:"Conclusion",id:"conclusion",level:3},{value:"Encoders",id:"encoders",level:2},{value:"SVT-AV1",id:"svt-av1",level:3},{value:"rav1e",id:"rav1e",level:3},{value:"aomenc (libaom)",id:"aomenc-libaom",level:3},{value:"SVT-AV1-PSY",id:"svt-av1-psy",level:3},{value:"Conclusion",id:"conclusion-1",level:3},{value:"Final Conclusion",id:"final-conclusion",level:2}];function d(e){const n={a:"a",em:"em",h2:"h2",h3:"h3",img:"img",li:"li",ol:"ol",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.p,{children:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered."}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.img,{alt:"Compare",src:i(1669).A+"",width:"2048",height:"1080"})}),"\n",(0,s.jsx)(n.h2,{id:"introduction",children:"Introduction"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/video/AV1",children:"AV1"})," is a royalty-free video codec developed by the Alliance for Open Media. It is designed to replace ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/video/VP9",children:"VP9"})," and presently competes with ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/video/VVC",children:"H.266"}),". AV1 is known for its high compression efficiency, which the marketing will have you believe reduces file sizes by up to 50% compared to ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/video/AVC",children:"H.264"})," and up to 30% compared to ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/video/HEVC",children:"H.265"})," across the board. It is supported by several major browsers and is widely used across many streaming services and video platforms."]}),"\n",(0,s.jsx)(n.h3,{id:"why-av1",children:"Why AV1?"}),"\n",(0,s.jsxs)(n.p,{children:["Before we dive in, it is important to understand ",(0,s.jsx)(n.em,{children:"why"})," you may want to use AV1 instead of other codecs. The reality is that AV1 is ",(0,s.jsx)(n.em,{children:"not"})," better than H.264/5 in every single scenario; video encoding is a complicated field, and the best codec for you will depend on your specific needs. AV1 excels in:"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Low to medium-high fidelity encoding"}),"\n",(0,s.jsx)(n.li,{children:"Higher resolution encoding"}),"\n",(0,s.jsx)(n.li,{children:"Encoding content with very little grain or noise"}),"\n",(0,s.jsx)(n.li,{children:"Slow, non-realtime contexts (e.g. offline encoding)"}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["The enumeration above still consists of broad strokes, but the point is to understand that AV1 is not a silver bullet. It will not automatically make your videos smaller while preserving your desired quality. To make things more difficult, the ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/x264",children:"x264"})," & ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/x265",children:"x265"})," encoders are very mature, while AV1 encoding efforts designed to meet the extremely complicated needs of the human eye are still in their infancy."]}),"\n",(0,s.jsx)(n.p,{children:"This guide focuses almost entirely on tools great for offline, non-realtime encoding for various kinds of content. Streaming is an altogether different application of AV1, and is only covered sparsely here."}),"\n",(0,s.jsx)(n.h3,{id:"dos--donts",children:"Do's & Don'ts"}),"\n",(0,s.jsx)(n.p,{children:"Due to a lot of misunderstandings about codecs and compression, there are a lot of common misconceptions that are held regarding video encoding. We'll start by outlining some bad practices:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Don't"})," encode the same video multiple times. This is a common mistake made by people new to video encoding. Every time you encode a video, you lose additional quality due to ",(0,s.jsx)(n.em,{children:"generation loss"}),". This is because video codecs are lossy, and every time you encode a video, you lose more information. This is why it is important to keep the original video file if you frequently re-encode it."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Don't"})," blindly copy settings from others without understanding them. What works for one person's content and workflow may not work for yours. Even the default settings on many encoders are not optimal for most content."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Don't"})," assume that higher bitrate equates to better quality. Inefficient encoding can waste bits without improving visual quality, and efficient encoding can make lower bitrate video look drastically better than higher bitrate video using the same codec."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Don't"})," assume all encoders/presets/settings/implementations are created equal. Even given two encoding frameworks that use the same underlying encoder, you may achieve different results given encoder version mismatches or subtly different settings used under the hood."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Don't"})," use unnecessarily slow presets/speeds unless you have a specific need and ample time. While slower presets improve encoding efficiency most of the time, the quality gains reach a point of diminishing returns beyond a certain point. Use the slowest preset you can tolerate, not the slowest preset available."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Don't"})," blindly trust metric scores. It is unfortunate how trusted ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/metrics/VMAF",children:"VMAF"})," is considering how infrequently it correlates with visual fidelity in practice now that it has become so popular. Even the beloved ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/metrics/SSIMULACRA2",children:"SSIMULACRA2"})," is not a perfect one-to-one with the human eye."]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["Now, let's move on to some ",(0,s.jsx)(n.strong,{children:"good"})," practices:"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Experiment with different settings and compare the results."}),"\n",(0,s.jsx)(n.li,{children:"Consider your content type when choosing encoding settings. Film, animation, and sports all have different characteristics that benefit from distinct approaches."}),"\n",(0,s.jsx)(n.li,{children:"Try to use CRF for offline encoding, as opposed to CBR or VBR. While the latter two are effective for precisely targeting a particular bitrate, CRF is more effective at targeting a specific quality level efficiently."}),"\n",(0,s.jsx)(n.li,{children:"Always use 10-bit color, even with an 8-bit source. AV1's internal workings are much more suited to 10-bit color, and you are almost always guaranteed quality improvements with zero compatibility penalty as 10-bit color is part of AV1's baseline profile."}),"\n",(0,s.jsx)(n.li,{children:"Consider using grain synthesis for grainy content, as AV1 can struggle with preserving film grain efficiently."}),"\n",(0,s.jsx)(n.li,{children:"Keep your encoding software up-to-date; the encoding world moves quickly."}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"tools",children:"Tools"}),"\n",(0,s.jsx)(n.p,{children:"Since writing the last guide, there are now several versatile tools available for AV1 encoding. Below, we've assembled some tables of popular encoding tools and their features."}),"\n",(0,s.jsx)(n.h3,{id:"gui",children:"GUI"}),"\n",(0,s.jsx)(n.p,{children:"Here's the key:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Encoder(s)"}),": The AV1 encoder(s) the software uses or is able to use. This is between ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/SVT-AV1",children:"SVT-AV1"}),", ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/aomenc",children:"aomenc"}),", ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/rav1e",children:"rav1e"}),", ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/SVT-AV1-PSY",children:"SVT-AV1-PSY"}),", and various aomenc forks. We'll get into this more later."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Ease of Use"}),": How intuitive the software is, especially for beginners."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Complexity"}),": How flexible the software can be for advanced users."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"Efficiency"}),': How "good" the underlying encoder(s) are. This is more subjective, but tools with bad defaults, misleading options, or slow release cycles won\'t score well here.']}),"\n"]}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Name"}),(0,s.jsx)(n.th,{children:"Platform(s)"}),(0,s.jsx)(n.th,{style:{textAlign:"center"},children:"Encoder(s)"}),(0,s.jsx)(n.th,{style:{textAlign:"center"},children:"Ease of Use"}),(0,s.jsx)(n.th,{style:{textAlign:"center"},children:"Complexity"}),(0,s.jsx)(n.th,{children:"Efficiency"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/Aviator",children:"Aviator"})}),(0,s.jsx)(n.td,{children:"Linux"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"SVT-AV1-PSY"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cb\u25cb\u25cb\u25cb"}),(0,s.jsx)(n.td,{children:"\u25cf\u25cf\u25cf\u25cf\u25cf"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/nmkoder",children:"NMKODER"})}),(0,s.jsx)(n.td,{children:"Windows"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"Any"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cb\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,s.jsx)(n.td,{children:"\u25cf\u25cf\u25cb\u25cb\u25cb"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"https://github.com/Av1ation-Association/Av1ation-Creations/releases/",children:"Av1ation Station"})}),(0,s.jsx)(n.td,{children:"Any"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"Any"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cb\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,s.jsx)(n.td,{children:"\u25cf\u25cf\u25cf\u25cf\u25cb"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"https://github.com/staxrip/staxrip",children:"StaxRip"})}),(0,s.jsx)(n.td,{children:"Windows"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"Any"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cb\u25cb\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,s.jsx)(n.td,{children:"\u25cf\u25cf\u25cf\u25cf\u25cb"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"https://github.com/Alkl58/NotEnoughAV1Encodes",children:"NEAV1E"})}),(0,s.jsx)(n.td,{children:"Windows"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"Any"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cb\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cb\u25cb"}),(0,s.jsx)(n.td,{children:"\u25cf\u25cf\u25cb\u25cb\u25cb"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"https://handbrake.fr/",children:"Handbrake"})}),(0,s.jsx)(n.td,{children:"Any"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"SVT-AV1"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cb\u25cb\u25cb"}),(0,s.jsx)(n.td,{children:"\u25cf\u25cf\u25cb\u25cb\u25cb"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"https://github.com/cdgriffith/FastFlix",children:"FastFlix"})}),(0,s.jsx)(n.td,{children:"Any"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"Any"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cb\u25cb"}),(0,s.jsx)(n.td,{children:"\u25cf\u25cf\u25cb\u25cb\u25cb"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/rav1ator",children:"rAV1ator"})}),(0,s.jsx)(n.td,{children:"Linux"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"rav1e"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cb\u25cb"}),(0,s.jsx)(n.td,{children:"\u25cf\u25cb\u25cb\u25cb\u25cb"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"https://autocompressor.net/",children:"Autocompressor"})}),(0,s.jsx)(n.td,{children:"Web"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"SVT-AV1"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cb\u25cb\u25cb\u25cb"}),(0,s.jsx)(n.td,{children:"\u25cf\u25cf\u25cf\u25cb\u25cb"})]})]})]}),"\n",(0,s.jsx)(n.p,{children:"Our top pics are:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["For beginners: ",(0,s.jsx)(n.strong,{children:"Aviator"}),". If you are on Linux and you want zero hassle whatsoever, Aviator is simple but highly effective. As a Flatpak application, it ships a bundled SVT-AV1-PSY binary that is up-to-date, compiled efficiently, and handled with extensively tested defaults. It is hard to go wrong with Aviator even as an advanced user, despite its simplicity."]}),"\n",(0,s.jsxs)(n.li,{children:["For advanced users: ",(0,s.jsx)(n.strong,{children:"Av1ation Station"}),". Av1ator Station is thoughtfully designed to be your one-stop shop for video encoding. Even though it is brand new, it has proven itself to be a capable and reliable solution for advanced video encoders that have a lot of settings to tweak and encodes to keep track of."]}),"\n",(0,s.jsxs)(n.li,{children:["For Windows users: ",(0,s.jsx)(n.strong,{children:"StaxRip"}),". StaxRip is a long-standing, well-maintained, and highly flexible video encoding tool that supports a plethora of encoders and formats. It comes bundled with SVT-AV1-PSY and is a great choice for Windows users who want a powerful and versatile tool for video encoding."]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"cli",children:"CLI"}),"\n",(0,s.jsx)(n.p,{children:"In the terminal, advanced encoders can explore a much greater degree of complexity than many GUIs allow. That being said, ease of use is still a consideration when managing complex command-line encoding workflows. Let's begin with the key:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"We're omitting the \"Platform(s)\" column here, as this section targets Linux users. As a Windows user, WSL has you covered - as a Mac user, you're likely to experience parity with Linux (most of the time)."}),"\n"]}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Name"}),(0,s.jsx)(n.th,{children:"Framework(s)"}),(0,s.jsx)(n.th,{style:{textAlign:"center"},children:"Ease of Use"}),(0,s.jsx)(n.th,{style:{textAlign:"center"},children:"Complexity"}),(0,s.jsx)(n.th,{style:{textAlign:"center"},children:"Features"}),(0,s.jsx)(n.th,{style:{textAlign:"center"},children:"Scene Detection"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"SvtAv1EncApp"}),(0,s.jsx)(n.td,{children:"None"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cb\u25cb\u25cb\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cb\u25cb\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cb\u25cb\u25cb\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"No"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/ffmpeg",children:"FFmpeg"})}),(0,s.jsx)(n.td,{children:"Itself"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cb\u25cb\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"No"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/av1an",children:"Av1an"})}),(0,s.jsx)(n.td,{children:"FFmpeg"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cb\u25cb\u25cb\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cb\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"Yes"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"})}),(0,s.jsx)(n.td,{children:"Av1an"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"Yes"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.a,{href:"https://github.com/kingstefan26/alabamaEncoder",children:"alabamaEncoder"})}),(0,s.jsx)(n.td,{children:"FFmpeg"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cb\u25cb\u25cb"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"\u25cf\u25cf\u25cf\u25cf\u25cf"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"Yes"})]})]})]}),"\n",(0,s.jsx)(n.p,{children:"Our top picks are:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["For beginners: ",(0,s.jsx)(n.strong,{children:"rAV1ator CLI"}),". rAV1ator CLI essentially walks you through the process of writing Av1an commands. It can install binaries for you, save your previous commands, and detect scenes via Av1an. This makes it a great choice for beginners who want to learn the ropes of AV1 encoding without diving into the deep end headfirst. For advanced users, it makes rapidly writing, testing, & cataloging Av1an encoding commands much simpler."]}),"\n",(0,s.jsxs)(n.li,{children:["For advanced users: ",(0,s.jsx)(n.strong,{children:"alabamaEncoder"}),". alabamaEncoder is a powerful and flexible tool that allows you to encode video with FFmpeg and AV1. It is highly configurable and supports a mind-bending array of powerful features that would be hard to find elsewhere. While the tool is still new, it is already a great choice for advanced users who want to push the boundaries of what is possible to incorporate into an encoding workflow."]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"conclusion",children:"Conclusion"}),"\n",(0,s.jsx)(n.p,{children:"In conclusion, the best AV1 tool for you will depend on your needs and experience level. If you are a beginner, Aviator is a great choice for Linux users, while StaxRip is a good option for Windows users. For advanced users, Av1ation Station is a powerful and versatile tool that can handle numerous encoding tasks. If you prefer the command line, rAV1ator CLI is a great choice for beginners, while alabamaEncoder is a powerful tool for advanced users. No matter which tool you choose, it is hard to go wrong in the modern AV1 encoding landscape when it comes to your utility of choice."}),"\n",(0,s.jsx)(n.h2,{id:"encoders",children:"Encoders"}),"\n",(0,s.jsx)(n.p,{children:"The world of AV1 encoding is diverse and complex, with several open-source encoders available, each bringing its own set of strengths, weaknesses, and unique features to the table. In this section, we'll dive deep into the characteristics of four major AV1 encoders:"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsx)(n.li,{children:"SVT-AV1,"}),"\n",(0,s.jsx)(n.li,{children:"rav1e,"}),"\n",(0,s.jsx)(n.li,{children:"aomenc (libaom), and"}),"\n",(0,s.jsx)(n.li,{children:"SVT-AV1-PSY"}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Understanding these encoders is crucial for making informed decisions about what best suits your specific encoding needs."}),"\n",(0,s.jsx)(n.h3,{id:"svt-av1",children:"SVT-AV1"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/SVT-AV1",children:"SVT-AV1"})," (Scalable Video Technology for AV1) is an AV1 encoder library and application developed by Intel, Netflix, and others. It has gained significant popularity in the encoding community due to its impressive balance of speed, quality, and scalability."]}),"\n",(0,s.jsx)(n.p,{children:"Links:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Wiki page: ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/SVT-AV1",children:"SVT-AV1"})]}),"\n",(0,s.jsxs)(n.li,{children:["Git repository: ",(0,s.jsx)(n.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1",children:"https://gitlab.com/AOMediaCodec/SVT-AV1"})]}),"\n",(0,s.jsxs)(n.li,{children:["Documentation: ",(0,s.jsx)(n.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/README.md",children:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/README.md"})]}),"\n"]}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Performance & Scalability"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"SVT-AV1 is renowned for its encoding speed, particularly at higher speed presets."}),"\n",(0,s.jsx)(n.li,{children:"It leverages parallel processing, making it exceptionally efficient on multi-core systems. Fun fact: SVT-AV1's parallel processing is lossless, so it doesn't compromise quality for speed."}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Quality-to-Speed Ratio"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"SVT-AV1 strikes an impressive balance between encoding speed and output quality."}),"\n",(0,s.jsx)(n.li,{children:"At faster presets, it usually outperforms other encoders in quality per unit of encoding time."}),"\n",(0,s.jsxs)(n.li,{children:["While it may not achieve the absolute highest ",(0,s.jsx)(n.em,{children:"quality per bit"})," possible, its quality is generally considered impressive for its speed."]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Flexibility"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"SVT-AV1 offers a wide range of encoding options and presets, allowing fine-tuned control over the encoding process."}),"\n",(0,s.jsx)(n.li,{children:"It provides 14 presets (0-13), with 0 being the slowest and highest quality, and 13 being the fastest but lowest quality."}),"\n",(0,s.jsx)(n.li,{children:"Advanced options allow users to adjust parameters like hierarchical levels, intra-refresh type, and tuning modes."}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Continuous Development"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"SVT-AV1 receives frequent updates and optimizations, with new releases often coming alongside big changes."}),"\n",(0,s.jsx)(n.li,{children:"The open-source nature of the project encourages community contributions and rapid feature development."}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"SVT-AV1 is an excellent choice for a wide range of encoding scenarios. It's particularly well-suited for:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"High-volume encoding operations where speed is crucial"}),"\n",(0,s.jsx)(n.li,{children:"Live or near-live encoding of high-resolution content"}),"\n",(0,s.jsx)(n.li,{children:"Scenarios where a balance between quality and encoding speed is required"}),"\n",(0,s.jsx)(n.li,{children:"Users with multi-core systems who want to leverage their hardware efficiently"}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Some downsides include:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Higher memory usage compared to other encoders"}),"\n",(0,s.jsx)(n.li,{children:"The developers assess quality via its performance on traditional legacy metrics, which harms its perceptual fidelity ceiling."}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"rav1e",children:"rav1e"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/rav1e",children:"rav1e"})," is an AV1 encoder written in Rust & Assembly. Developed by the open-source community alongside Xiph, it brings a unique approach to AV1 encoding with its focus on safety and correctness."]}),"\n",(0,s.jsx)(n.p,{children:"Links:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Wiki page: ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/rav1e",children:"rav1e"})]}),"\n",(0,s.jsxs)(n.li,{children:["Git repository: ",(0,s.jsx)(n.a,{href:"https://github.com/xiph/rav1e",children:"https://github.com/xiph/rav1e"})]}),"\n",(0,s.jsxs)(n.li,{children:["Documentation: ",(0,s.jsx)(n.a,{href:"https://github.com/xiph/rav1e/tree/master/doc#readme",children:"https://github.com/xiph/rav1e/tree/master/doc#readme"})]}),"\n"]}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Safety & Reliability"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Being written in Rust, rav1e emphasizes memory safety and thread safety."}),"\n",(0,s.jsx)(n.li,{children:"This focus on safety translates to a more stable and reliable encoding process, with reduced risks of crashes or undefined behavior."}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"High Fidelity"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"At high fidelity targets - an area where AV1 usually lacks - rav1e is a strong contender compared to other encoders."}),"\n",(0,s.jsx)(n.li,{children:"It excels in preserving fine details and textures, making it a good choice for high-fidelity encoding."}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Quality"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"While not typically matching aomenc or SVT-AV1 in pure compression efficiency, rav1e can produce high-quality output videos."}),"\n",(0,s.jsx)(n.li,{children:"It often achieves a good balance between quality and encoding time, especially at medium-speed settings."}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Perceptually Driven"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"rav1e's development is driven by visual fidelity, without relying heavily on metrics."}),"\n",(0,s.jsx)(n.li,{children:"This focus on perceptual quality leads to a stronger foundation for future potential improvements in visual quality, as well as making the encoder very easy to use as it does not require excessive tweaking."}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"rav1e is well-suited for:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Projects where stability is paramount"}),"\n",(0,s.jsx)(n.li,{children:"Users who prioritize a community-driven, open-source development approach"}),"\n",(0,s.jsx)(n.li,{children:"Encoding tasks where a balance between quality and speed is needed, but the absolute fastest speeds are not required"}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Some limitations of rav1e include:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Lagging development compared to other encoders"}),"\n",(0,s.jsx)(n.li,{children:"Slower encoding speeds compared to SVT-AV1 at similar quality & size"}),"\n",(0,s.jsx)(n.li,{children:"Fewer advanced options compared to other encoders"}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"aomenc-libaom",children:"aomenc (libaom)"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/aomenc",children:"aomenc"}),", based on the libaom library, is the reference encoder for AV1. Developed by the Alliance for Open Media (AOM), it is the benchmark for AV1 encoding quality and compliance."]}),"\n",(0,s.jsx)(n.p,{children:"Links:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Wiki page: ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/aomenc",children:"aomenc"})]}),"\n",(0,s.jsxs)(n.li,{children:["Git repository: ",(0,s.jsx)(n.a,{href:"https://aomedia.googlesource.com/aom/",children:"https://aomedia.googlesource.com/aom/"})]}),"\n"]}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Encoding Quality"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"aomenc is widely regarded as the gold standard for AV1 encoding quality."}),"\n",(0,s.jsx)(n.li,{children:"It often achieves high compression efficiency among AV1 encoders, especially at slower speed settings."}),"\n",(0,s.jsx)(n.li,{children:"The encoder squeezes out nearly every last bit of efficiency from the AV1 codec, making it ideal for archival purposes or when quality per bit is critical."}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Encoding Speed"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"aomenc is generally the slowest among major AV1 encoders."}),"\n",(0,s.jsx)(n.li,{children:"It offers 13 CPU speed levels (0-12), but even at its fastest settings, it's typically slower than other encoders at their slower settings."}),"\n",(0,s.jsx)(n.li,{children:"The slow speed is often considered a trade-off for its high compression efficiency."}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Extensive Options"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"As the reference implementation, aomenc offers the most comprehensive encoding options."}),"\n",(0,s.jsx)(n.li,{children:"It provides fine-grained control over nearly every aspect of the AV1 encoding process."}),"\n",(0,s.jsx)(n.li,{children:"Advanced users can tweak many parameters to optimize for specific content types or encoding scenarios."}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Flexibility"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Being the reference encoder, aomenc produces highly standards-compliant AV1 bitstreams that take advantage of the full arsenal of AV1 features."}),"\n",(0,s.jsx)(n.li,{children:"It supports 4:2:0 and 4:4:4 chroma subsampling, 8- to 12-bit color depth, and various other advanced features that more specialized encoders like SVT-AV1 do not support."}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"aomenc is ideal for:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Scenarios where achieving the highest possible quality is the primary goal"}),"\n",(0,s.jsx)(n.li,{children:"Archival encoding where compression efficiency is crucial"}),"\n",(0,s.jsx)(n.li,{children:"Research and development in video compression"}),"\n",(0,s.jsx)(n.li,{children:"Encoding projects where encoding time is not a significant constraint"}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Some drawbacks of aomenc include:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Unresponsive development driven by legacy metrics, leading to slower adoption of new techniques and ignoring improvements communicated by people outside the Google development team"}),"\n",(0,s.jsx)(n.li,{children:"Cripplingly difficult to use for beginners, with a culture of cargo-culting settings"}),"\n",(0,s.jsx)(n.li,{children:"Slow encoding speeds compared to other AV1 encoders, which has less of an impact on the quality of the output than it used to compared to maturing encoders like SVT-AV1"}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"svt-av1-psy",children:"SVT-AV1-PSY"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/svt-av1-psy",children:"SVT-AV1-PSY"})," is a community fork of the SVT-AV1 encoder focused on psychovisual optimizations to enhance perceived visual quality. It aims at closing the distance between SVT-AV1's high speeds and the perceptual quality of aomenc's slow brute force approach."]}),"\n",(0,s.jsx)(n.p,{children:"Links:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Wiki page: ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/svt-av1-psy",children:"SVT-AV1-PSY"})]}),"\n",(0,s.jsxs)(n.li,{children:["Git repository: ",(0,s.jsx)(n.a,{href:"https://github.com/gianni-rosato/svt-av1-psy",children:"https://github.com/gianni-rosato/svt-av1-psy"})]}),"\n",(0,s.jsxs)(n.li,{children:["Documentation: ",(0,s.jsx)(n.a,{href:"https://github.com/gianni-rosato/svt-av1-psy/blob/master/Docs/PSY-Development.md",children:"https://github.com/gianni-rosato/svt-av1-psy/blob/master/Docs/PSY-Development.md"})]}),"\n"]}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Perceptual Optimizations"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"SVT-AV1-PSY introduces various psychovisual enhancements to improve the perceived quality of encoded video."}),"\n",(0,s.jsx)(n.li,{children:"These optimizations often result in output that looks better to the human eye, even if it might not always score as well in objective metrics."}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Additional Features"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Introduces new options like variance boost, which can help maintain detail in high-contrast scenes."}),"\n",(0,s.jsx)(n.li,{children:"Offers alternative curve options for more nuanced control over the encoding process."}),"\n",(0,s.jsx)(n.li,{children:"Extends the CRF (Constant Rate Factor) range to 70 (from 63 in mainline SVT-AV1), allowing for extremely low-bitrate encodes."}),"\n",(0,s.jsx)(n.li,{children:'Introduces additional tuning options, including a new "SSIM with Subjective Quality Tuning" mode that can improve perceived quality.'}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Visual Fidelity Focus"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Aims to produce more visually pleasing results, sometimes at the expense of metric performance."}),"\n",(0,s.jsx)(n.li,{children:"Includes options like sharpness adjustment and adaptive film grain synthesis which can significantly impact the visual characteristics of the output."}),"\n",(0,s.jsx)(n.li,{children:"Features modified defaults driven by perceptual quality considerations."}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Extended HDR Support"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Includes built-in support for Dolby Vision & HDR10+ encoding."}),"\n",(0,s.jsx)(n.li,{children:"This makes it particularly useful for encoding HDR content without requiring additional post-processing steps or external tools."}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Performance"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Based on SVT-AV1, it retains the performance characteristics of its parent encoder."}),"\n",(0,s.jsx)(n.li,{children:"Adds super slow presets (-2 and -3) for research purposes and extremely high-quality encoding. These additional presets can be useful for creating reference encodes or applications where encoding time is not a concern."}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"SVT-AV1-PSY is particularly well-suited for:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Encoding scenarios where subjective visual quality is prioritized over pure metric performance"}),"\n",(0,s.jsx)(n.li,{children:"HDR content encoding in Dolby Vision or HDR10+"}),"\n",(0,s.jsx)(n.li,{children:"Users who want fine-grained control over psychovisual aspects of encoding"}),"\n",(0,s.jsx)(n.li,{children:"Projects that require a balance between the speed of SVT-AV1 and enhanced visual quality"}),"\n",(0,s.jsx)(n.li,{children:"Encoding challenging content with complex textures or high-contrast scenes"}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Some drawbacks are:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Everything that applies to SVT-AV1, including the lack of support for 4:4:4 chroma subsampling and 12-bit color depth that are useful in specific scenarios"}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"conclusion-1",children:"Conclusion"}),"\n",(0,s.jsx)(n.p,{children:"While SVT-AV1 is known for being fast, aomenc is renowned for its high-quality output, and rav1e is recognized for its safety and reliability, each encoder has strengths and weaknesses. The best encoder for you will depend on your specific needs and priorities."}),"\n",(0,s.jsxs)(n.p,{children:["As this guide is focused on offline encoding, ",(0,s.jsx)(n.strong,{children:"SVT-AV1-PSY"})," combines aomenc's traditional perceptual strength with SVT-AV1's speed. Like rav1e, it is easy to use due to strong default settings that prevent cargo culting, and overall it can be considered the best of all three worlds. It is actively developed by a team of responsive community members, and it is a great choice for most users who want a balance between quality per bit, speed, and ease of use."]}),"\n",(0,s.jsx)(n.p,{children:'The "best" encoder often depends on your use case, content type, and target audience. It\'s always worth experimenting with different encoders and settings to find the optimal balance for your needs. Many advanced users even employ multiple encoders in their workflows, choosing the most appropriate tool for each specific task or content type.'}),"\n",(0,s.jsx)(n.h2,{id:"final-conclusion",children:"Final Conclusion"}),"\n",(0,s.jsxs)(n.p,{children:["The AV1 ecosystem has grown to the point where a single comprehensive guide cannot effectively cover the entire extent of the available tools and techniques for AV1 encoding across ",(0,s.jsx)(n.em,{children:"every"})," use case. If you want more detail about a particular tool, where to acquire it, or how to compile an encoder, you can find that information throughout the various wiki entries linked on this page."]}),"\n",(0,s.jsxs)(n.p,{children:["Reading can get you far, but it is natural to have questions. Please don't hesitate to connect with the team behind the Codec Wiki and many of these tools via our ",(0,s.jsx)(n.a,{href:"https://discord.gg/bbQD5MjDr3",children:"AV1 for Dummies Discord server"}),". We're happy to help you with anything you need, and your questions and feedback help the wiki grow and improve. We hope you enjoy your journey into AV1 encoding, and we wish you the best of luck in your encoding endeavors!"]})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},1669:(e,n,i)=>{i.d(n,{A:()=>t});const t=i.p+"assets/images/av1_for_dummies_guide-a83f247bebb2261a1ba671e33ddf1e99.avif"},8453:(e,n,i)=>{i.d(n,{R:()=>o,x:()=>l});var t=i(6540);const s={},r=t.createContext(s);function o(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),t.createElement(r.Provider,{value:n},e.children)}},9543:e=>{e.exports=JSON.parse('{"permalink":"/blog/av1-for-dummies","source":"@site/blog/2024-06-24-av1-for-dummies-2.mdx","title":"AV1 for Dummies","description":"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you\'re on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.","date":"2024-06-24T00:00:00.000Z","tags":[{"inline":true,"label":"video","permalink":"/blog/tags/video"},{"inline":true,"label":"compression","permalink":"/blog/tags/compression"}],"readingTime":16.645,"hasTruncateMarker":true,"authors":[{"name":"Gianni Rosato","title":"Maintainer","url":"https://github.com/gianni-rosato","image_url":"https://avatars.githubusercontent.com/u/35711760?v=4","imageURL":"https://avatars.githubusercontent.com/u/35711760?v=4","socials":{},"key":null,"page":null},{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4","socials":{},"key":null,"page":null}],"frontMatter":{"title":"AV1 for Dummies","description":"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you\'re on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.","slug":"av1-for-dummies","authors":[{"name":"Gianni Rosato","title":"Maintainer","url":"https://github.com/gianni-rosato","image_url":"https://avatars.githubusercontent.com/u/35711760?v=4","imageURL":"https://avatars.githubusercontent.com/u/35711760?v=4"},{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4"}],"tags":["video","compression"],"image":"/img/av1_for_dummies_guide.jpg","hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"Codec Wiki: One Year Later","permalink":"/blog/codec-wiki-one-year-later"},"nextItem":{"title":"Observing SVT-AV1 v2.1.0\'s improvements: A New Deep Dive","permalink":"/blog/svt-av1-second-deep-dive"}}')}}]); \ No newline at end of file diff --git a/assets/js/059e36ab.6366493b.js b/assets/js/059e36ab.6366493b.js new file mode 100644 index 000000000..d881c4ed3 --- /dev/null +++ b/assets/js/059e36ab.6366493b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6838],{1021:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>c,contentTitle:()=>r,default:()=>u,frontMatter:()=>d,metadata:()=>t,toc:()=>a});const t=JSON.parse('{"id":"video/utvideo","title":"UT Video","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/video/utvideo.mdx","sourceDirName":"video","slug":"/video/utvideo","permalink":"/docs/video/utvideo","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/utvideo.mdx","tags":[],"version":"current","sidebarPosition":13,"frontMatter":{"title":"UT Video","sidebar_position":13},"sidebar":"tutorialSidebar","previous":{"title":"FFV1","permalink":"/docs/video/FFV1"},"next":{"title":"ProRes","permalink":"/docs/video/prores"}}');var n=o(4848),s=o(8453);const d={title:"UT Video",sidebar_position:13},r="UT Video Codec Suite",c={},a=[];function l(e){const i={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",header:"header",li:"li",p:"p",ul:"ul",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"ut-video-codec-suite",children:"UT Video Codec Suite"})}),"\n",(0,n.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsx)(i.p,{children:"UT Video Codec Suite is a fast, lossless video codec, developed by Takeshi Umezawa (\u6885\u6fa4 \u5a01\u5fd7, Umezawa Takeshi) and released under the free GNU General Public License. The algorithm of UT video is based on the Huffman code."}),"\n",(0,n.jsx)(i.p,{children:"UT Video was developed as an alternative to HuffYUV, in order to achieve better compression. It can handle color spaces such as YUV422 (ULY2), RGB (ULRG), RGBA (ULRA) and, most recently, YUV420 (ULY0)."}),"\n",(0,n.jsx)(i.p,{children:"It has both x86 and x64 builds. Due to its multithreading support, this codec is also capable of encoding HDTV material in real time. The codec requires support for the SSE2 instruction set because it is heavily used for speed optimizations."}),"\n",(0,n.jsxs)(i.p,{children:["There are various predction modes, which can be used via ",(0,n.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),":"]}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsx)(i.li,{children:"no prediction employed"}),"\n",(0,n.jsx)(i.li,{children:"left neighbour prediction (continuous for the whole slice)"}),"\n",(0,n.jsx)(i.li,{children:"gradient prediction"}),"\n",(0,n.jsx)(i.li,{children:"median prediction"}),"\n"]}),"\n",(0,n.jsxs)(i.p,{children:["You can use FFmpeg to encode utvideo as follows:\n",(0,n.jsx)(i.code,{children:"ffmpeg -i [input] -c:v utvideo -pred [0,1,2,3] [output]"})]}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsxs)(i.em,{children:["References: ",(0,n.jsx)(i.a,{href:"https://en.wikipedia.org/wiki/Ut_Video_Codec_Suite",children:"Wikipedia"})]})})]})}function u(e={}){const{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>d,x:()=>r});var t=o(6540);const n={},s=t.createContext(n);function d(e){const i=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:d(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/059e36ab.6cb6d2de.js b/assets/js/059e36ab.6cb6d2de.js deleted file mode 100644 index a54f0f40e..000000000 --- a/assets/js/059e36ab.6cb6d2de.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6838],{6587:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>c,contentTitle:()=>d,default:()=>l,frontMatter:()=>s,metadata:()=>r,toc:()=>a});var t=o(4848),n=o(8453);const s={title:"UT Video",sidebar_position:13},d="UT Video Codec Suite",r={id:"video/utvideo",title:"UT Video",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/video/utvideo.mdx",sourceDirName:"video",slug:"/video/utvideo",permalink:"/docs/video/utvideo",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/utvideo.mdx",tags:[],version:"current",sidebarPosition:13,frontMatter:{title:"UT Video",sidebar_position:13},sidebar:"tutorialSidebar",previous:{title:"FFV1",permalink:"/docs/video/FFV1"},next:{title:"ProRes",permalink:"/docs/video/prores"}},c={},a=[];function u(e){const i={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",header:"header",li:"li",p:"p",ul:"ul",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"ut-video-codec-suite",children:"UT Video Codec Suite"})}),"\n",(0,t.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsx)(i.p,{children:"UT Video Codec Suite is a fast, lossless video codec, developed by Takeshi Umezawa (\u6885\u6fa4 \u5a01\u5fd7, Umezawa Takeshi) and released under the free GNU General Public License. The algorithm of UT video is based on the Huffman code."}),"\n",(0,t.jsx)(i.p,{children:"UT Video was developed as an alternative to HuffYUV, in order to achieve better compression. It can handle color spaces such as YUV422 (ULY2), RGB (ULRG), RGBA (ULRA) and, most recently, YUV420 (ULY0)."}),"\n",(0,t.jsx)(i.p,{children:"It has both x86 and x64 builds. Due to its multithreading support, this codec is also capable of encoding HDTV material in real time. The codec requires support for the SSE2 instruction set because it is heavily used for speed optimizations."}),"\n",(0,t.jsxs)(i.p,{children:["There are various predction modes, which can be used via ",(0,t.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),":"]}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"no prediction employed"}),"\n",(0,t.jsx)(i.li,{children:"left neighbour prediction (continuous for the whole slice)"}),"\n",(0,t.jsx)(i.li,{children:"gradient prediction"}),"\n",(0,t.jsx)(i.li,{children:"median prediction"}),"\n"]}),"\n",(0,t.jsxs)(i.p,{children:["You can use FFmpeg to encode utvideo as follows:\n",(0,t.jsx)(i.code,{children:"ffmpeg -i [input] -c:v utvideo -pred [0,1,2,3] [output]"})]}),"\n",(0,t.jsx)(i.p,{children:(0,t.jsxs)(i.em,{children:["References: ",(0,t.jsx)(i.a,{href:"https://en.wikipedia.org/wiki/Ut_Video_Codec_Suite",children:"Wikipedia"})]})})]})}function l(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>d,x:()=>r});var t=o(6540);const n={},s=t.createContext(n);function d(e){const i=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:d(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/06ed4e86.3d735a2d.js b/assets/js/06ed4e86.3d735a2d.js deleted file mode 100644 index 8dac189f0..000000000 --- a/assets/js/06ed4e86.3d735a2d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8161],{3514:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>d,contentTitle:()=>a,default:()=>u,frontMatter:()=>s,metadata:()=>r,toc:()=>l});var t=o(4848),n=o(8453);const s={title:"Dolby Digital",sidebar_position:3},a="Dolby Digital",r={id:"audio/Dolby",title:"Dolby Digital",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/audio/Dolby.mdx",sourceDirName:"audio",slug:"/audio/Dolby",permalink:"/docs/audio/Dolby",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/Dolby.mdx",tags:[],version:"current",sidebarPosition:3,frontMatter:{title:"Dolby Digital",sidebar_position:3},sidebar:"tutorialSidebar",previous:{title:"Opus",permalink:"/docs/audio/Opus"},next:{title:"MP3",permalink:"/docs/audio/MP3"}},d={},l=[{value:"Format Overview",id:"format-overview",level:2},{value:"AC-3",id:"ac-3",level:3},{value:"Dolby Digital Surround EX",id:"dolby-digital-surround-ex",level:4},{value:"E-AC-3",id:"e-ac-3",level:3},{value:"TrueHD",id:"truehd",level:3},{value:"AC-4",id:"ac-4",level:3},{value:"Atmos",id:"atmos",level:3}];function c(e){const i={admonition:"admonition",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"dolby-digital",children:"Dolby Digital"})}),"\n",(0,t.jsx)(i.admonition,{title:"Under Maintenance",type:"info",children:(0,t.jsx)(i.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,t.jsx)(i.p,{children:"Dolby Digital is a family of both lossless and lossy audio compression algorithms and technologies."}),"\n",(0,t.jsx)(i.h2,{id:"format-overview",children:"Format Overview"}),"\n",(0,t.jsx)(i.h3,{id:"ac-3",children:"AC-3"}),"\n",(0,t.jsx)(i.p,{children:"Originally known as Dolby Digital, AC-3 was first released in 1991 to provide digital 5.1 sound in cinemas from 35mm film reels. AC-3 is notable for being the first audio codec to make use of the \u201cModified Discrete Cosine Transform\u201d algorithm. The codec has seen widespread use an adoption, due to its prevalence in DVDs, TV, and Blu-rays as a surround codec."}),"\n",(0,t.jsx)(i.h4,{id:"dolby-digital-surround-ex",children:"Dolby Digital Surround EX"}),"\n",(0,t.jsx)(i.p,{children:"Like Dolby\u2019s earlier Pro Logic technology, Dolby Digital Surround EX matrixes a sixth, centre back surround channel into the left and right surround channels of a 5.1 stream, allowing for a 6.1 mix to be unfolded when played on a 6.1 or 7.1 system with EX decoding. This technology is fully backwards compatible with existing AC-3 decoders, producing the standard 5.1 stream. Surround EX was first introduced in 1999 with the release of \u201cStar Wars: Episode I \u2013 The Phantom Menace\u201d."}),"\n",(0,t.jsx)(i.h3,{id:"e-ac-3",children:"E-AC-3"}),"\n",(0,t.jsx)(i.p,{children:"Often referred to as \u201cDolby Digital Plus\u201d, E-AC-3 is the successor to Dolby\u2019s earlier AC-3 codec, featuring support for higher bitrates (6,144kbps vs 640kbps), more channels (15 vs 5), and additional coding tools allowing for more efficient encoding. E-AC-3 can be found in the short-lived HD-DVD format, Blu-ray discs, and as the main surround codec for most streaming services, particularly if Dolby Atmos is used. Contrary to popular belief, E-AC-3 is not backwards compatible with AC-3, rather Dolby mandates that all E-AC-3 decoders can also decode standard AC-3 content. As E-AC-3 is an optional codec on Blu-ray, all discs encoded with E-AC-3 encode the first 5.1 channels as AC-3, with the additional rear channels/Atmos content being encoded as E-AC-3."}),"\n",(0,t.jsx)(i.h3,{id:"truehd",children:"TrueHD"}),"\n",(0,t.jsx)(i.p,{children:"Dolby\u2019s TrueHD is a lossless multi-channel audio codec based on Meridian\u2019s Lossless Packing (MLP) codec, although the two aren\u2019t compatible with each other. TrueHD is mainly used on Blu-ray and supports Dolby Atmos\u2019s spatial audio data. The TrueHD specification supports up to 16 audio channels (although the Blu-ray specification limits this to 7.1) with a sample rate of 192KHz and a bit depth of 24 bits. As TrueHD is an optional codec on Blu-ray, each TrueHD steam includes a backup AC-3 stream encoded alongside it for compatibility purposes. Since 2010, Dolby TrueHD has seen a decline in usage in favour of DTS-HD Master Audio on Blu-ray discs, but has seen a slight resurgence as the codec used for Dolby Atmos audio, but DTS-HD MA is still more common on non-Atmos titles."}),"\n",(0,t.jsx)(i.h3,{id:"ac-4",children:"AC-4"}),"\n",(0,t.jsx)(i.p,{children:"To be added."}),"\n",(0,t.jsx)(i.h3,{id:"atmos",children:"Atmos"}),"\n",(0,t.jsx)(i.p,{children:"To be added."})]})}function u(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>a,x:()=>r});var t=o(6540);const n={},s=t.createContext(n);function a(e){const i=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/06ed4e86.ef80a140.js b/assets/js/06ed4e86.ef80a140.js new file mode 100644 index 000000000..c975ab9b6 --- /dev/null +++ b/assets/js/06ed4e86.ef80a140.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8161],{9845:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>l,contentTitle:()=>r,default:()=>u,frontMatter:()=>a,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"audio/Dolby","title":"Dolby Digital","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/audio/Dolby.mdx","sourceDirName":"audio","slug":"/audio/Dolby","permalink":"/docs/audio/Dolby","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/Dolby.mdx","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"title":"Dolby Digital","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"Opus","permalink":"/docs/audio/Opus"},"next":{"title":"MP3","permalink":"/docs/audio/MP3"}}');var n=o(4848),s=o(8453);const a={title:"Dolby Digital",sidebar_position:3},r="Dolby Digital",l={},d=[{value:"Format Overview",id:"format-overview",level:2},{value:"AC-3",id:"ac-3",level:3},{value:"Dolby Digital Surround EX",id:"dolby-digital-surround-ex",level:4},{value:"E-AC-3",id:"e-ac-3",level:3},{value:"TrueHD",id:"truehd",level:3},{value:"AC-4",id:"ac-4",level:3},{value:"Atmos",id:"atmos",level:3}];function c(e){const i={admonition:"admonition",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"dolby-digital",children:"Dolby Digital"})}),"\n",(0,n.jsx)(i.admonition,{title:"Under Maintenance",type:"info",children:(0,n.jsx)(i.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,n.jsx)(i.p,{children:"Dolby Digital is a family of both lossless and lossy audio compression algorithms and technologies."}),"\n",(0,n.jsx)(i.h2,{id:"format-overview",children:"Format Overview"}),"\n",(0,n.jsx)(i.h3,{id:"ac-3",children:"AC-3"}),"\n",(0,n.jsx)(i.p,{children:"Originally known as Dolby Digital, AC-3 was first released in 1991 to provide digital 5.1 sound in cinemas from 35mm film reels. AC-3 is notable for being the first audio codec to make use of the \u201cModified Discrete Cosine Transform\u201d algorithm. The codec has seen widespread use an adoption, due to its prevalence in DVDs, TV, and Blu-rays as a surround codec."}),"\n",(0,n.jsx)(i.h4,{id:"dolby-digital-surround-ex",children:"Dolby Digital Surround EX"}),"\n",(0,n.jsx)(i.p,{children:"Like Dolby\u2019s earlier Pro Logic technology, Dolby Digital Surround EX matrixes a sixth, centre back surround channel into the left and right surround channels of a 5.1 stream, allowing for a 6.1 mix to be unfolded when played on a 6.1 or 7.1 system with EX decoding. This technology is fully backwards compatible with existing AC-3 decoders, producing the standard 5.1 stream. Surround EX was first introduced in 1999 with the release of \u201cStar Wars: Episode I \u2013 The Phantom Menace\u201d."}),"\n",(0,n.jsx)(i.h3,{id:"e-ac-3",children:"E-AC-3"}),"\n",(0,n.jsx)(i.p,{children:"Often referred to as \u201cDolby Digital Plus\u201d, E-AC-3 is the successor to Dolby\u2019s earlier AC-3 codec, featuring support for higher bitrates (6,144kbps vs 640kbps), more channels (15 vs 5), and additional coding tools allowing for more efficient encoding. E-AC-3 can be found in the short-lived HD-DVD format, Blu-ray discs, and as the main surround codec for most streaming services, particularly if Dolby Atmos is used. Contrary to popular belief, E-AC-3 is not backwards compatible with AC-3, rather Dolby mandates that all E-AC-3 decoders can also decode standard AC-3 content. As E-AC-3 is an optional codec on Blu-ray, all discs encoded with E-AC-3 encode the first 5.1 channels as AC-3, with the additional rear channels/Atmos content being encoded as E-AC-3."}),"\n",(0,n.jsx)(i.h3,{id:"truehd",children:"TrueHD"}),"\n",(0,n.jsx)(i.p,{children:"Dolby\u2019s TrueHD is a lossless multi-channel audio codec based on Meridian\u2019s Lossless Packing (MLP) codec, although the two aren\u2019t compatible with each other. TrueHD is mainly used on Blu-ray and supports Dolby Atmos\u2019s spatial audio data. The TrueHD specification supports up to 16 audio channels (although the Blu-ray specification limits this to 7.1) with a sample rate of 192KHz and a bit depth of 24 bits. As TrueHD is an optional codec on Blu-ray, each TrueHD steam includes a backup AC-3 stream encoded alongside it for compatibility purposes. Since 2010, Dolby TrueHD has seen a decline in usage in favour of DTS-HD Master Audio on Blu-ray discs, but has seen a slight resurgence as the codec used for Dolby Atmos audio, but DTS-HD MA is still more common on non-Atmos titles."}),"\n",(0,n.jsx)(i.h3,{id:"ac-4",children:"AC-4"}),"\n",(0,n.jsx)(i.p,{children:"To be added."}),"\n",(0,n.jsx)(i.h3,{id:"atmos",children:"Atmos"}),"\n",(0,n.jsx)(i.p,{children:"To be added."})]})}function u(e={}){const{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(c,{...e})}):c(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>a,x:()=>r});var t=o(6540);const n={},s=t.createContext(n);function a(e){const i=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/09a8bfdb.0ac1b2f1.js b/assets/js/09a8bfdb.0ac1b2f1.js new file mode 100644 index 000000000..6893c163d --- /dev/null +++ b/assets/js/09a8bfdb.0ac1b2f1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5579],{1689:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>d,contentTitle:()=>a,default:()=>c,frontMatter:()=>r,metadata:()=>s,toc:()=>l});var s=t(7558),n=t(4848),o=t(8453);const r={title:"Embedding the Un-Embeddable",description:"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.",slug:"embedding-the-un-embeddable",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","discord"],image:"/img/discord-embed-blog-image.webp",hide_table_of_contents:!1},a=void 0,d={authorsImageUrls:[void 0]},l=[{value:"A Scenario",id:"a-scenario",level:2},{value:"But First, a Quick Disclosure",id:"but-first-a-quick-disclosure",level:2},{value:"How it Works",id:"how-it-works",level:2},{value:"The Website's End",id:"the-websites-end",level:3},{value:"Discord's End",id:"discords-end",level:3},{value:"Strengths & Limitations",id:"strengths--limitations",level:2},{value:"Strengths",id:"strengths",level:4},{value:"Limitations",id:"limitations",level:4},{value:"Differences between Sites",id:"differences-between-sites",level:2},{value:"The Lore",id:"the-lore",level:2},{value:"Dwayne",id:"dwayne",level:3},{value:"Discovery",id:"discovery",level:3},{value:"The Experiments & Interactive Site",id:"the-experiments--interactive-site",level:3},{value:"Virality",id:"virality",level:3},{value:"Closing",id:"closing",level:2}];function h(e){const i={a:"a",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",img:"img",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.img,{alt:"Feature image",src:t(3808).A+"",width:"1920",height:"1080"}),"\n",(0,n.jsx)(i.strong,{children:'A 567.14 MB, 12 min 11 s, 2K (2,048 x 858), VP9 + Opus, 6.51 Mbps average, Blender short film "Cosmos Laundromat"'})]}),"\n",(0,n.jsx)(i.h2,{id:"a-scenario",children:"A Scenario"}),"\n",(0,n.jsx)(i.p,{children:"While chatting in your favorite Discord servers & group chats, you may see a friend send a weird link. You might even consider it suspicious on first glance. It is a video featuring an image of a movie poster with a play button that is almost begging to be clicked. Naturally, you click it."}),"\n",(0,n.jsx)(i.p,{children:"It loads for a second, and to your surprise it is a full-length, 90-minute (sometimes even two hour)-long unauthorized copy of a movie. If you don't know exactly what is going on, you probably sit there dumbfounded as a pixel perfect HD movie plays back. You may have expected a stereotypically muddy, blocky, laggy shitpost, but this has defied your expectations."}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.img,{alt:"stolen.shoes",src:t(7718).A+"",width:"1088",height:"318"})}),"\n",(0,n.jsxs)(i.p,{children:["The truth is, there are ",(0,n.jsx)(i.em,{children:"multiple"})," site that do this. Currently, there are five at the time of writing. Below is a list the ones I am currently familiar with:"]}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsx)(i.li,{children:(0,n.jsx)(i.a,{href:"https://stolen.shoes",children:"https://stolen.shoes"})}),"\n",(0,n.jsx)(i.li,{children:(0,n.jsx)(i.a,{href:"https://discord.nfp.is",children:"https://discord.nfp.is"})}),"\n",(0,n.jsx)(i.li,{children:(0,n.jsx)(i.a,{href:"https://embeds.video",children:"https://embeds.video"})}),"\n",(0,n.jsx)(i.li,{children:(0,n.jsx)(i.a,{href:"https://x266.mov/discord-embed",children:"https://x266.mov/discord-embed"})}),"\n",(0,n.jsx)(i.li,{children:(0,n.jsx)(i.a,{href:"https://autocompressor.net/av1",children:"https://autocompressor.net/av1"})}),"\n"]}),"\n",(0,n.jsxs)(i.p,{children:["The big question is, ",(0,n.jsx)(i.strong,{children:"how do they work?"})," Let's get to dissecting."]}),"\n",(0,n.jsx)(i.h2,{id:"but-first-a-quick-disclosure",children:"But First, a Quick Disclosure"}),"\n",(0,n.jsx)(i.p,{children:"The Codec Wiki unequivocally condemns any form of piracy, including the unauthorized distribution of copyrighted content. This blog post is intended to educate & inform. You may not use the tools discussed to infringe upon the intellectual property rights of content creators without serious legal risk. We encourage our readers to respect copyright laws & use the tools we discuss here appropriately."}),"\n",(0,n.jsx)(i.h2,{id:"how-it-works",children:"How it Works"}),"\n",(0,n.jsx)(i.p,{children:"The entire scheme is actually very simple, as it is all just HTML meta tags (If you are familiar with web development, this is all a walk in the park)."}),"\n",(0,n.jsx)(i.p,{children:"The technology's inner working can be divided into two distinct parts. First, let's see how it works on the website's end."}),"\n",(0,n.jsx)(i.h3,{id:"the-websites-end",children:"The Website's End"}),"\n",(0,n.jsx)(i.p,{children:"If you view each website's source, you will find this specific line in each one but they may have a different order:"}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-html",children:'\n\n\n\n\n'})}),"\n",(0,n.jsxs)(i.p,{children:["These are the ",(0,n.jsx)(i.code,{children:"head"})," parts of HTML, which dictate metadata for the document itself such as what the website title/name is, cosmetic embed, defining the site's icon, etc. They are usually found in between the ",(0,n.jsx)(i.code,{children:""})," and ",(0,n.jsx)(i.code,{children:""})," tags. Here's an example of a static HTML site serving one specific video:"]}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-html",children:'\n\n\n \n \n some embed site\n \n \n \n \n \n\n\n

Hi

\n

Just your friendly neighborhood video embed site

\n \n\n'})}),"\n",(0,n.jsx)(i.p,{children:"< br />\nThese interactive sites usually deploy a live script, like a Javascript framework. Examples are NodeJS, ExpressJS, Svelte, etc. These are used to parse video and thumbnails realtime so they can be embedded on Discord (or potentially other platforms)."}),"\n",(0,n.jsx)(i.h3,{id:"discords-end",children:"Discord's End"}),"\n",(0,n.jsx)(i.p,{children:'Traditionally, Discord\'s media embedder will impose it\'s own video embed size limit (50 MiB) when a user sends a direct video link as usual. But in this case Discord will embed the thumbnail first, not the video. You could say the link "tricks" Discord by showing a "false face" first.'}),"\n",(0,n.jsx)(i.h2,{id:"strengths--limitations",children:"Strengths & Limitations"}),"\n",(0,n.jsx)(i.p,{children:"After a combination of countless hours of observation, rigorous testing throughout the period of a year, and conversations with the sites' creators, the current strengths & limitations of this exploit are enumerated below."}),"\n",(0,n.jsx)(i.h4,{id:"strengths",children:"Strengths"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:["You can embed non-web compatible codecs such as ",(0,n.jsx)(i.a,{href:"https://wiki.x266.mov/docs/video/HEVC",children:"HEVC"})," in ",(0,n.jsx)(i.a,{href:"https://wiki.x266.mov/docs/introduction/terminology#mp4--m4v",children:"MP4/MOV"}),", but the user must be using a compatible browser. ",(0,n.jsx)(i.a,{href:"https://thorium.rocks",children:"Thorium"})," or Safari version 13 or greater will work for HEVC playback."]}),"\n",(0,n.jsx)(i.li,{children:"There is no maximum size. You could embed a video the size of a raw Bluray, although I do not condone this unless you have the necessary legal permissions to do so or you're uploading a Creative Commons licensed movie like Big Buck Bunny while adhering to the restrictions of the applicable Creative Commons license. This also means you can send high bitrate gaming clips to your friends without any restrictions, assuming you already have a place to upload them."}),"\n"]}),"\n",(0,n.jsx)(i.h4,{id:"limitations",children:"Limitations"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:["You can only use ",(0,n.jsx)(i.a,{href:"https://simple.wikipedia.org/wiki/Hotlinking",children:"hotlinks"}),", which means direct linking to the video itself ending in the appropriate file extension such as ",(0,n.jsx)(i.code,{children:".mp4"}),". Cloud services like Google Drive or OneDrive will not work for storage."]}),"\n",(0,n.jsxs)(i.li,{children:["You cannot use Discord's CDN (cdn.discordapp.com) as the video source. I assume this is because of Discord's proxy blocking embeds over 50 MiB, but ",(0,n.jsx)(i.strong,{children:"only discord.nfp.is can do this"}),", as it ",(0,n.jsx)(i.strong,{children:"proxies cdn.discordapp.com"})," itself."]}),"\n",(0,n.jsx)(i.li,{children:"You cannot embed videos in any resolutions higher than 3840 x 2160, Discord imposes a hard limit for this on all video after it was discovered that some videos could play normally but then be maliciously scaled to ridiculous resolutions during playback to crash Discord."}),"\n"]}),"\n",(0,n.jsx)(i.h2,{id:"differences-between-sites",children:"Differences between Sites"}),"\n",(0,n.jsx)(i.p,{children:"As mentioned before, there are five known sites at the time of writing. They all serve the same function, but one may interest you more than another due to slight differences in features & functionality."}),"\n",(0,n.jsx)(i.p,{children:"Here are the sites, each with one noteworthy special benefit:"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.a,{href:"https://stolen.shoes",children:"https://stolen.shoes"})," - Recognition, as it is the OG."]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.a,{href:"https://discord.nfp.is",children:"https://discord.nfp.is"})," - You can use Discord CDN as video source."]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.a,{href:"https://embeds.video",children:"https://embeds.video"})," - Immediately input video source into the URL (",(0,n.jsx)(i.code,{children:"https://embeds.video/https://example.com/v/video.mp4"}),")"]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.a,{href:"https://x266.mov/discord-embed",children:"https://x266.mov/discord-embed"})," - Attractive domain, simple layout."]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.a,{href:"https://autocompressor.net/av1",children:"https://autocompressor.net/av1"})," - Lots of info dump, pretty advanced features."]}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:"That concludes the technical overview! Next, let's cover the history of this exploit."}),"\n",(0,n.jsx)(i.h2,{id:"the-lore",children:"The Lore"}),"\n",(0,n.jsx)(i.h3,{id:"dwayne",children:"Dwayne"}),"\n",(0,n.jsxs)(i.p,{children:["In around April of 2022, a Reddit user going by the name of u/CreativeGamer03 ",(0,n.jsx)(i.a,{href:"https://www.reddit.com/r/discordapp/comments/u96kky/someone_sent_this_in_the_memes_channel_and_bruh",children:"posted a video on r/discordapp"}),' of a link where a GIF of Dwayne "The Rock" Johnson plays caption with "Is this a GIF or is it a video?" When played, a low-quality music video of Rick Astley\'s "Never Gonna Give You Up" plays.']}),"\n",(0,n.jsxs)(i.p,{children:["The link used is now unfortunately ",(0,n.jsx)(i.a,{href:"https://archuser.de/the-rock",children:"removed"}),"."]}),"\n",(0,n.jsx)(i.h3,{id:"discovery",children:"Discovery"}),"\n",(0,n.jsxs)(i.p,{children:["On 23rd June 2022, a Discord user ",(0,n.jsx)(i.em,{children:"Clybius"})," on the AV1 Community server asked people for ",(0,n.jsx)(i.a,{href:"https://wiki.x266.mov/docs/video/VP9",children:"VP9"})," or ",(0,n.jsx)(i.a,{href:"https://wiki.x266.mov/docs/video/AVC",children:"H.264"})," videos that were over 100 MB in size. At the time the current 500 MB nitro tier did not exist. They then decided to use a 59 minute 1080p sample video of nature scenery from around the world with a thumbnail featuring a GIF of a waterfall to test the exploit. It worked."]}),"\n",(0,n.jsxs)(i.p,{children:["He tried shortly afterward with ",(0,n.jsx)(i.a,{href:"https://wiki.x266.mov/docs/video/AV1",children:"AV1"}),". Eureka, it also worked:"]}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.img,{alt:"AV1",src:t(5101).A+"",width:"497",height:"421"})}),"\n",(0,n.jsx)(i.p,{children:"Clybius confirmed that this could be patched if discovered. He cites having had the idea from the Dwayne Johnson example above, but forgetting about it for a couple of months. So, it seems this entire concept stemmed from a silly rickroll."}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.img,{alt:"Dwayne",src:t(8111).A+"",width:"1108",height:"98"})}),"\n",(0,n.jsx)(i.h3,{id:"the-experiments--interactive-site",children:"The Experiments & Interactive Site"}),"\n",(0,n.jsxs)(i.p,{children:["After the discovery of AV1 embedding, experimentation brought about the discovery that ",(0,n.jsx)(i.em,{children:"any"})," video codec will work as long as the user can decode/play the codec and the container/extension is an MP4, MOV, or WebM. These are all traditionally web-compatible containers. If you're interested in learning about containers, please see the ",(0,n.jsx)(i.a,{href:"https://wiki.x266.mov/docs/introduction/terminology#container",children:"Containers"})," section on the ",(0,n.jsx)(i.a,{href:"https://wiki.x266.mov/docs/introduction/terminology",children:"Terminology"})," page."]}),"\n",(0,n.jsxs)(i.p,{children:["This applies to HEVC, ProRes, ",(0,n.jsx)(i.a,{href:"https://wiki.x266.mov/docs/audio/AAC#xhe-aac",children:"xHE-AAC"}),", and other bizarre codecs that are rarely seen on the Web."]}),"\n",(0,n.jsxs)(i.p,{children:["While experimentating, Clybius converted one their idle domains ",(0,n.jsx)(i.code,{children:"stolen.shoes"})," into an interactive embedder that provided a textbox for a video URL, a thumbnail URL, a width value, & a height value for the desired video. This would be the first website for Discord embedding."]}),"\n",(0,n.jsx)(i.h3,{id:"virality",children:"Virality"}),"\n",(0,n.jsxs)(i.p,{children:["It's not long before people outside of the AV1 Community discovered ",(0,n.jsx)(i.code,{children:"stolen.shoes"}),", and its popularity increased rapidly. Its use usually involved the illicit distribution of full-length, unauthorized copies of movies; this sometimes happened very shortly after some movies were released. There were a couple notable instances of this happenening that caused quite the stir online each time."]}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:['The first instance featured the DreamWorks sequel of "Puss in Boots (2011)", "Puss in Boots: The Last Wish (2022)". A 1080p video sourced from a streaming site was the first wake up call that attracted attention to the existence of these embed sites. This example used ',(0,n.jsx)(i.code,{children:"stolen.shoes"}),"."]}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.img,{alt:"puss",src:t(7718).A+"",width:"1088",height:"318"})}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:['The second instance was when highly-anticipated animated film "The Super Mario Bros. Movie (2023)" produced by Illumination, Universal Studios, and Nintendo was spread around Discord. It was first spotted as a Cam (A camera recording by someone in theaters), then as it went out on streaming services a different link appeared but spread faster and with upgraded 1080p quality. Both used ',(0,n.jsx)(i.code,{children:"stolen.shoes"})," as the embed site."]}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.img,{alt:"mario",src:t(6873).A+"",width:"1307",height:"335"})}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:['The third instance is very recent as of the day this was posted. A streaming-service sourced "Five Nights at Freddy\'s (2023)" was spread around since the movie released both in theaters and streaming service (Peacock) day one, and it gained steam extremely fast as most people had not seen it yet. Currently, this illegal novelty is gaining ',(0,n.jsx)(i.a,{href:"https://www.reddit.com/r/discordapp/comments/17hx45y/is_discordnfp_an_ip_grabber/",children:"hundreds of upvotes within the r/discordapp subreddit"}),". The copy seems to be a compressed 720p encode. This example used ",(0,n.jsx)(i.code,{children:"discord.nfp.is"}),"."]}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.img,{alt:"fnaf",src:t(8869).A+"",width:"1044",height:"409"})}),"\n",(0,n.jsx)(i.p,{children:"Note the ones listed here are the ones that I saw become extremely popular. There may be lesser known links that have been spread around privately or just did not cause enough noise for me to notice. Some less popular examples I've noticed, featuring more illicit copyrighted content distribution:"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsx)(i.li,{children:"Top Gun Maverick (2022)"}),"\n",(0,n.jsx)(i.li,{children:"The SpongeBob trilogy (2005/2015/2020)"}),"\n",(0,n.jsx)(i.li,{children:"Spider-Man: Across the Spider-Verse (2023)"}),"\n"]}),"\n",(0,n.jsx)(i.h2,{id:"closing",children:"Closing"}),"\n",(0,n.jsx)(i.p,{children:"The ability to embed unusually large videos on Discord has enabled both positive and negative use cases. On the one hand, it allows high-quality content to be shared easily among friends. However, it has also facilitated mass copyright infringement by empowering virtually anyone with a Discord accound to freely spread pirated movies."}),"\n",(0,n.jsx)(i.p,{children:"While this is fascinating from a technical perspective, embedding techniques like these tread a fine ethical line. As with anything, it is important to be mindful of how our actions affect others, and I should remind everyone that content creators deserve to be compensated for their work. As users, we should support them by accessing their content via legitimate platforms."}),"\n",(0,n.jsx)(i.p,{children:"It is hard to say how long this exploit will continue to be usable. Instead of enabling piracy, which may cause Discord to be more likely to patch this exploit if they see it as a serious threat, let's instead use these capabilities responsibly to share our own creations, gaming highlights, and other media which we can share legally. Given some thoughtfulness, perhaps we can find a fair balance between respecting copyright law and appeasing Discord's sensibilities while allowing some creative flexibility on the platform."}),"\n",(0,n.jsx)(i.p,{children:"Thank you for reading this blog post, I hope you learned something!"})]})}function c(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},5101:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/clybius-av1-28dcfefe8d58784301332b8119d2e926.webp"},8111:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/clybius-dwayne-15341f187cb8e7dbfd5c4ee00451eabd.webp"},3808:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/discord-embed-blog-image-2bcaf4f73f5fa33664328756753f3041.webp"},8869:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/discordnfpis-fnaf-dab5b24a63605605e7c7882d20a992a3.webp"},6873:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/stolenshoes-mario-6de3b4071d4c09064d7323fec40530f4.webp"},7718:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/stolenshoes-puss-842a1f9165b7571d293a74be89da25c2.webp"},8453:(e,i,t)=>{t.d(i,{R:()=>r,x:()=>a});var s=t(6540);const n={},o=s.createContext(n);function r(e){const i=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),s.createElement(o.Provider,{value:i},e.children)}},7558:e=>{e.exports=JSON.parse('{"permalink":"/blog/embedding-the-un-embeddable","source":"@site/blog/2023-10-29-embedding-the-un-embeddable copy.mdx","title":"Embedding the Un-Embeddable","description":"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.","date":"2023-10-29T00:00:00.000Z","tags":[{"inline":true,"label":"video","permalink":"/blog/tags/video"},{"inline":true,"label":"discord","permalink":"/blog/tags/discord"}],"readingTime":8.92,"hasTruncateMarker":true,"authors":[{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4","socials":{},"key":null,"page":null}],"frontMatter":{"title":"Embedding the Un-Embeddable","description":"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.","slug":"embedding-the-un-embeddable","authors":[{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4"}],"tags":["video","discord"],"image":"/img/discord-embed-blog-image.webp","hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"Encoding Animation with SVT-AV1: A Deep Dive","permalink":"/blog/svt-av1-deep-dive"},"nextItem":{"title":"AV1 Encoding for Dummies","permalink":"/blog/av1-encoding-for-dummies"}}')}}]); \ No newline at end of file diff --git a/assets/js/09a8bfdb.8aa625b6.js b/assets/js/09a8bfdb.8aa625b6.js deleted file mode 100644 index c5163b726..000000000 --- a/assets/js/09a8bfdb.8aa625b6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5579],{4070:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>d,contentTitle:()=>r,default:()=>c,frontMatter:()=>o,metadata:()=>a,toc:()=>l});var s=t(4848),n=t(8453);const o={title:"Embedding the Un-Embeddable",description:"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.",slug:"embedding-the-un-embeddable",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","discord"],image:"/img/discord-embed-blog-image.webp",hide_table_of_contents:!1},r=void 0,a={permalink:"/blog/embedding-the-un-embeddable",source:"@site/blog/2023-10-29-embedding-the-un-embeddable copy.mdx",title:"Embedding the Un-Embeddable",description:"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.",date:"2023-10-29T00:00:00.000Z",tags:[{inline:!0,label:"video",permalink:"/blog/tags/video"},{inline:!0,label:"discord",permalink:"/blog/tags/discord"}],readingTime:8.92,hasTruncateMarker:!0,authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4",key:null,page:null}],frontMatter:{title:"Embedding the Un-Embeddable",description:"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.",slug:"embedding-the-un-embeddable",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","discord"],image:"/img/discord-embed-blog-image.webp",hide_table_of_contents:!1},unlisted:!1,prevItem:{title:"Encoding Animation with SVT-AV1: A Deep Dive",permalink:"/blog/svt-av1-deep-dive"},nextItem:{title:"AV1 Encoding for Dummies",permalink:"/blog/av1-encoding-for-dummies"}},d={authorsImageUrls:[void 0]},l=[{value:"A Scenario",id:"a-scenario",level:2},{value:"But First, a Quick Disclosure",id:"but-first-a-quick-disclosure",level:2},{value:"How it Works",id:"how-it-works",level:2},{value:"The Website's End",id:"the-websites-end",level:3},{value:"Discord's End",id:"discords-end",level:3},{value:"Strengths & Limitations",id:"strengths--limitations",level:2},{value:"Strengths",id:"strengths",level:4},{value:"Limitations",id:"limitations",level:4},{value:"Differences between Sites",id:"differences-between-sites",level:2},{value:"The Lore",id:"the-lore",level:2},{value:"Dwayne",id:"dwayne",level:3},{value:"Discovery",id:"discovery",level:3},{value:"The Experiments & Interactive Site",id:"the-experiments--interactive-site",level:3},{value:"Virality",id:"virality",level:3},{value:"Closing",id:"closing",level:2}];function h(e){const i={a:"a",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",img:"img",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,n.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.img,{alt:"Feature image",src:t(9395).A+"",width:"1920",height:"1080"}),"\n",(0,s.jsx)(i.strong,{children:'A 567.14 MB, 12 min 11 s, 2K (2,048 x 858), VP9 + Opus, 6.51 Mbps average, Blender short film "Cosmos Laundromat"'})]}),"\n",(0,s.jsx)(i.h2,{id:"a-scenario",children:"A Scenario"}),"\n",(0,s.jsx)(i.p,{children:"While chatting in your favorite Discord servers & group chats, you may see a friend send a weird link. You might even consider it suspicious on first glance. It is a video featuring an image of a movie poster with a play button that is almost begging to be clicked. Naturally, you click it."}),"\n",(0,s.jsx)(i.p,{children:"It loads for a second, and to your surprise it is a full-length, 90-minute (sometimes even two hour)-long unauthorized copy of a movie. If you don't know exactly what is going on, you probably sit there dumbfounded as a pixel perfect HD movie plays back. You may have expected a stereotypically muddy, blocky, laggy shitpost, but this has defied your expectations."}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"stolen.shoes",src:t(6689).A+"",width:"1088",height:"318"})}),"\n",(0,s.jsxs)(i.p,{children:["The truth is, there are ",(0,s.jsx)(i.em,{children:"multiple"})," site that do this. Currently, there are five at the time of writing. Below is a list the ones I am currently familiar with:"]}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:(0,s.jsx)(i.a,{href:"https://stolen.shoes",children:"https://stolen.shoes"})}),"\n",(0,s.jsx)(i.li,{children:(0,s.jsx)(i.a,{href:"https://discord.nfp.is",children:"https://discord.nfp.is"})}),"\n",(0,s.jsx)(i.li,{children:(0,s.jsx)(i.a,{href:"https://embeds.video",children:"https://embeds.video"})}),"\n",(0,s.jsx)(i.li,{children:(0,s.jsx)(i.a,{href:"https://x266.mov/discord-embed",children:"https://x266.mov/discord-embed"})}),"\n",(0,s.jsx)(i.li,{children:(0,s.jsx)(i.a,{href:"https://autocompressor.net/av1",children:"https://autocompressor.net/av1"})}),"\n"]}),"\n",(0,s.jsxs)(i.p,{children:["The big question is, ",(0,s.jsx)(i.strong,{children:"how do they work?"})," Let's get to dissecting."]}),"\n",(0,s.jsx)(i.h2,{id:"but-first-a-quick-disclosure",children:"But First, a Quick Disclosure"}),"\n",(0,s.jsx)(i.p,{children:"The Codec Wiki unequivocally condemns any form of piracy, including the unauthorized distribution of copyrighted content. This blog post is intended to educate & inform. You may not use the tools discussed to infringe upon the intellectual property rights of content creators without serious legal risk. We encourage our readers to respect copyright laws & use the tools we discuss here appropriately."}),"\n",(0,s.jsx)(i.h2,{id:"how-it-works",children:"How it Works"}),"\n",(0,s.jsx)(i.p,{children:"The entire scheme is actually very simple, as it is all just HTML meta tags (If you are familiar with web development, this is all a walk in the park)."}),"\n",(0,s.jsx)(i.p,{children:"The technology's inner working can be divided into two distinct parts. First, let's see how it works on the website's end."}),"\n",(0,s.jsx)(i.h3,{id:"the-websites-end",children:"The Website's End"}),"\n",(0,s.jsx)(i.p,{children:"If you view each website's source, you will find this specific line in each one but they may have a different order:"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-html",children:'\n\n\n\n\n'})}),"\n",(0,s.jsxs)(i.p,{children:["These are the ",(0,s.jsx)(i.code,{children:"head"})," parts of HTML, which dictate metadata for the document itself such as what the website title/name is, cosmetic embed, defining the site's icon, etc. They are usually found in between the ",(0,s.jsx)(i.code,{children:""})," and ",(0,s.jsx)(i.code,{children:""})," tags. Here's an example of a static HTML site serving one specific video:"]}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-html",children:'\n\n\n \n \n some embed site\n \n \n \n \n \n\n\n

Hi

\n

Just your friendly neighborhood video embed site

\n \n\n'})}),"\n",(0,s.jsx)(i.p,{children:"< br />\nThese interactive sites usually deploy a live script, like a Javascript framework. Examples are NodeJS, ExpressJS, Svelte, etc. These are used to parse video and thumbnails realtime so they can be embedded on Discord (or potentially other platforms)."}),"\n",(0,s.jsx)(i.h3,{id:"discords-end",children:"Discord's End"}),"\n",(0,s.jsx)(i.p,{children:'Traditionally, Discord\'s media embedder will impose it\'s own video embed size limit (50 MiB) when a user sends a direct video link as usual. But in this case Discord will embed the thumbnail first, not the video. You could say the link "tricks" Discord by showing a "false face" first.'}),"\n",(0,s.jsx)(i.h2,{id:"strengths--limitations",children:"Strengths & Limitations"}),"\n",(0,s.jsx)(i.p,{children:"After a combination of countless hours of observation, rigorous testing throughout the period of a year, and conversations with the sites' creators, the current strengths & limitations of this exploit are enumerated below."}),"\n",(0,s.jsx)(i.h4,{id:"strengths",children:"Strengths"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:["You can embed non-web compatible codecs such as ",(0,s.jsx)(i.a,{href:"https://wiki.x266.mov/docs/video/HEVC",children:"HEVC"})," in ",(0,s.jsx)(i.a,{href:"https://wiki.x266.mov/docs/introduction/terminology#mp4--m4v",children:"MP4/MOV"}),", but the user must be using a compatible browser. ",(0,s.jsx)(i.a,{href:"https://thorium.rocks",children:"Thorium"})," or Safari version 13 or greater will work for HEVC playback."]}),"\n",(0,s.jsx)(i.li,{children:"There is no maximum size. You could embed a video the size of a raw Bluray, although I do not condone this unless you have the necessary legal permissions to do so or you're uploading a Creative Commons licensed movie like Big Buck Bunny while adhering to the restrictions of the applicable Creative Commons license. This also means you can send high bitrate gaming clips to your friends without any restrictions, assuming you already have a place to upload them."}),"\n"]}),"\n",(0,s.jsx)(i.h4,{id:"limitations",children:"Limitations"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:["You can only use ",(0,s.jsx)(i.a,{href:"https://simple.wikipedia.org/wiki/Hotlinking",children:"hotlinks"}),", which means direct linking to the video itself ending in the appropriate file extension such as ",(0,s.jsx)(i.code,{children:".mp4"}),". Cloud services like Google Drive or OneDrive will not work for storage."]}),"\n",(0,s.jsxs)(i.li,{children:["You cannot use Discord's CDN (cdn.discordapp.com) as the video source. I assume this is because of Discord's proxy blocking embeds over 50 MiB, but ",(0,s.jsx)(i.strong,{children:"only discord.nfp.is can do this"}),", as it ",(0,s.jsx)(i.strong,{children:"proxies cdn.discordapp.com"})," itself."]}),"\n",(0,s.jsx)(i.li,{children:"You cannot embed videos in any resolutions higher than 3840 x 2160, Discord imposes a hard limit for this on all video after it was discovered that some videos could play normally but then be maliciously scaled to ridiculous resolutions during playback to crash Discord."}),"\n"]}),"\n",(0,s.jsx)(i.h2,{id:"differences-between-sites",children:"Differences between Sites"}),"\n",(0,s.jsx)(i.p,{children:"As mentioned before, there are five known sites at the time of writing. They all serve the same function, but one may interest you more than another due to slight differences in features & functionality."}),"\n",(0,s.jsx)(i.p,{children:"Here are the sites, each with one noteworthy special benefit:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.a,{href:"https://stolen.shoes",children:"https://stolen.shoes"})," - Recognition, as it is the OG."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.a,{href:"https://discord.nfp.is",children:"https://discord.nfp.is"})," - You can use Discord CDN as video source."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.a,{href:"https://embeds.video",children:"https://embeds.video"})," - Immediately input video source into the URL (",(0,s.jsx)(i.code,{children:"https://embeds.video/https://example.com/v/video.mp4"}),")"]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.a,{href:"https://x266.mov/discord-embed",children:"https://x266.mov/discord-embed"})," - Attractive domain, simple layout."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.a,{href:"https://autocompressor.net/av1",children:"https://autocompressor.net/av1"})," - Lots of info dump, pretty advanced features."]}),"\n"]}),"\n",(0,s.jsx)(i.p,{children:"That concludes the technical overview! Next, let's cover the history of this exploit."}),"\n",(0,s.jsx)(i.h2,{id:"the-lore",children:"The Lore"}),"\n",(0,s.jsx)(i.h3,{id:"dwayne",children:"Dwayne"}),"\n",(0,s.jsxs)(i.p,{children:["In around April of 2022, a Reddit user going by the name of u/CreativeGamer03 ",(0,s.jsx)(i.a,{href:"https://www.reddit.com/r/discordapp/comments/u96kky/someone_sent_this_in_the_memes_channel_and_bruh",children:"posted a video on r/discordapp"}),' of a link where a GIF of Dwayne "The Rock" Johnson plays caption with "Is this a GIF or is it a video?" When played, a low-quality music video of Rick Astley\'s "Never Gonna Give You Up" plays.']}),"\n",(0,s.jsxs)(i.p,{children:["The link used is now unfortunately ",(0,s.jsx)(i.a,{href:"https://archuser.de/the-rock",children:"removed"}),"."]}),"\n",(0,s.jsx)(i.h3,{id:"discovery",children:"Discovery"}),"\n",(0,s.jsxs)(i.p,{children:["On 23rd June 2022, a Discord user ",(0,s.jsx)(i.em,{children:"Clybius"})," on the AV1 Community server asked people for ",(0,s.jsx)(i.a,{href:"https://wiki.x266.mov/docs/video/VP9",children:"VP9"})," or ",(0,s.jsx)(i.a,{href:"https://wiki.x266.mov/docs/video/AVC",children:"H.264"})," videos that were over 100 MB in size. At the time the current 500 MB nitro tier did not exist. They then decided to use a 59 minute 1080p sample video of nature scenery from around the world with a thumbnail featuring a GIF of a waterfall to test the exploit. It worked."]}),"\n",(0,s.jsxs)(i.p,{children:["He tried shortly afterward with ",(0,s.jsx)(i.a,{href:"https://wiki.x266.mov/docs/video/AV1",children:"AV1"}),". Eureka, it also worked:"]}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"AV1",src:t(6364).A+"",width:"497",height:"421"})}),"\n",(0,s.jsx)(i.p,{children:"Clybius confirmed that this could be patched if discovered. He cites having had the idea from the Dwayne Johnson example above, but forgetting about it for a couple of months. So, it seems this entire concept stemmed from a silly rickroll."}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"Dwayne",src:t(3312).A+"",width:"1108",height:"98"})}),"\n",(0,s.jsx)(i.h3,{id:"the-experiments--interactive-site",children:"The Experiments & Interactive Site"}),"\n",(0,s.jsxs)(i.p,{children:["After the discovery of AV1 embedding, experimentation brought about the discovery that ",(0,s.jsx)(i.em,{children:"any"})," video codec will work as long as the user can decode/play the codec and the container/extension is an MP4, MOV, or WebM. These are all traditionally web-compatible containers. If you're interested in learning about containers, please see the ",(0,s.jsx)(i.a,{href:"https://wiki.x266.mov/docs/introduction/terminology#container",children:"Containers"})," section on the ",(0,s.jsx)(i.a,{href:"https://wiki.x266.mov/docs/introduction/terminology",children:"Terminology"})," page."]}),"\n",(0,s.jsxs)(i.p,{children:["This applies to HEVC, ProRes, ",(0,s.jsx)(i.a,{href:"https://wiki.x266.mov/docs/audio/AAC#xhe-aac",children:"xHE-AAC"}),", and other bizarre codecs that are rarely seen on the Web."]}),"\n",(0,s.jsxs)(i.p,{children:["While experimentating, Clybius converted one their idle domains ",(0,s.jsx)(i.code,{children:"stolen.shoes"})," into an interactive embedder that provided a textbox for a video URL, a thumbnail URL, a width value, & a height value for the desired video. This would be the first website for Discord embedding."]}),"\n",(0,s.jsx)(i.h3,{id:"virality",children:"Virality"}),"\n",(0,s.jsxs)(i.p,{children:["It's not long before people outside of the AV1 Community discovered ",(0,s.jsx)(i.code,{children:"stolen.shoes"}),", and its popularity increased rapidly. Its use usually involved the illicit distribution of full-length, unauthorized copies of movies; this sometimes happened very shortly after some movies were released. There were a couple notable instances of this happenening that caused quite the stir online each time."]}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:['The first instance featured the DreamWorks sequel of "Puss in Boots (2011)", "Puss in Boots: The Last Wish (2022)". A 1080p video sourced from a streaming site was the first wake up call that attracted attention to the existence of these embed sites. This example used ',(0,s.jsx)(i.code,{children:"stolen.shoes"}),"."]}),"\n"]}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"puss",src:t(6689).A+"",width:"1088",height:"318"})}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:['The second instance was when highly-anticipated animated film "The Super Mario Bros. Movie (2023)" produced by Illumination, Universal Studios, and Nintendo was spread around Discord. It was first spotted as a Cam (A camera recording by someone in theaters), then as it went out on streaming services a different link appeared but spread faster and with upgraded 1080p quality. Both used ',(0,s.jsx)(i.code,{children:"stolen.shoes"})," as the embed site."]}),"\n"]}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"mario",src:t(5716).A+"",width:"1307",height:"335"})}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:['The third instance is very recent as of the day this was posted. A streaming-service sourced "Five Nights at Freddy\'s (2023)" was spread around since the movie released both in theaters and streaming service (Peacock) day one, and it gained steam extremely fast as most people had not seen it yet. Currently, this illegal novelty is gaining ',(0,s.jsx)(i.a,{href:"https://www.reddit.com/r/discordapp/comments/17hx45y/is_discordnfp_an_ip_grabber/",children:"hundreds of upvotes within the r/discordapp subreddit"}),". The copy seems to be a compressed 720p encode. This example used ",(0,s.jsx)(i.code,{children:"discord.nfp.is"}),"."]}),"\n"]}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"fnaf",src:t(3536).A+"",width:"1044",height:"409"})}),"\n",(0,s.jsx)(i.p,{children:"Note the ones listed here are the ones that I saw become extremely popular. There may be lesser known links that have been spread around privately or just did not cause enough noise for me to notice. Some less popular examples I've noticed, featuring more illicit copyrighted content distribution:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Top Gun Maverick (2022)"}),"\n",(0,s.jsx)(i.li,{children:"The SpongeBob trilogy (2005/2015/2020)"}),"\n",(0,s.jsx)(i.li,{children:"Spider-Man: Across the Spider-Verse (2023)"}),"\n"]}),"\n",(0,s.jsx)(i.h2,{id:"closing",children:"Closing"}),"\n",(0,s.jsx)(i.p,{children:"The ability to embed unusually large videos on Discord has enabled both positive and negative use cases. On the one hand, it allows high-quality content to be shared easily among friends. However, it has also facilitated mass copyright infringement by empowering virtually anyone with a Discord accound to freely spread pirated movies."}),"\n",(0,s.jsx)(i.p,{children:"While this is fascinating from a technical perspective, embedding techniques like these tread a fine ethical line. As with anything, it is important to be mindful of how our actions affect others, and I should remind everyone that content creators deserve to be compensated for their work. As users, we should support them by accessing their content via legitimate platforms."}),"\n",(0,s.jsx)(i.p,{children:"It is hard to say how long this exploit will continue to be usable. Instead of enabling piracy, which may cause Discord to be more likely to patch this exploit if they see it as a serious threat, let's instead use these capabilities responsibly to share our own creations, gaming highlights, and other media which we can share legally. Given some thoughtfulness, perhaps we can find a fair balance between respecting copyright law and appeasing Discord's sensibilities while allowing some creative flexibility on the platform."}),"\n",(0,s.jsx)(i.p,{children:"Thank you for reading this blog post, I hope you learned something!"})]})}function c(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},6364:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/clybius-av1-28dcfefe8d58784301332b8119d2e926.webp"},3312:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/clybius-dwayne-15341f187cb8e7dbfd5c4ee00451eabd.webp"},9395:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/discord-embed-blog-image-2bcaf4f73f5fa33664328756753f3041.webp"},3536:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/discordnfpis-fnaf-dab5b24a63605605e7c7882d20a992a3.webp"},5716:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/stolenshoes-mario-6de3b4071d4c09064d7323fec40530f4.webp"},6689:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/stolenshoes-puss-842a1f9165b7571d293a74be89da25c2.webp"},8453:(e,i,t)=>{t.d(i,{R:()=>r,x:()=>a});var s=t(6540);const n={},o=s.createContext(n);function r(e){const i=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),s.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/09bc817a.5dc095ed.js b/assets/js/09bc817a.5dc095ed.js deleted file mode 100644 index 9da6cd808..000000000 --- a/assets/js/09bc817a.5dc095ed.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1554],{5811:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>t,metadata:()=>r,toc:()=>c});var s=i(4848),o=i(8453);const t={title:"Opus",sidebar_position:2},a="Opus",r={id:"audio/Opus",title:"Opus",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/audio/Opus.mdx",sourceDirName:"audio",slug:"/audio/Opus",permalink:"/docs/audio/Opus",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/Opus.mdx",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"Opus",sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"AAC",permalink:"/docs/audio/AAC"},next:{title:"Dolby Digital",permalink:"/docs/audio/Dolby"}},d={},c=[{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"SILK",id:"silk",level:3},{value:"CELT",id:"celt",level:3},{value:"Encoders",id:"encoders",level:2},{value:"Opusenc",id:"opusenc",level:3},{value:"FFopus",id:"ffopus",level:3},{value:"vac-enc",id:"vac-enc",level:3}];function l(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",br:"br",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"opus",children:"Opus"})}),"\n",(0,s.jsx)(n.admonition,{title:"Under Maintenance",type:"info",children:(0,s.jsx)(n.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,s.jsxs)(n.p,{children:["Opus is an open-source audio codec that has largely replaced ",(0,s.jsx)(n.a,{href:"/docs/audio/Vorbis",children:"Vorbis"})," as the standard open audio codec. It is the recommended codec for usage in WebM video containers in tandem with the ",(0,s.jsx)(n.a,{href:"/docs/video/VP9",children:"VP9"})," or ",(0,s.jsx)(n.a,{href:"/docs/video/AV1",children:"AV1"})," video codecs."]}),"\n",(0,s.jsxs)(n.p,{children:["Opus is known for its incredible coding efficiency and unique multi-channel optimizations. Stereo Opus audio reaches ",(0,s.jsx)(n.a,{href:"https://en.wikipedia.org/wiki/Transparency_(data_compression)",children:"transparency"})," (psychoacoustically lossless audio quality) at 128kb/s, compared to ",(0,s.jsx)(n.a,{href:"/docs/audio/AAC",children:"AAC"}),"'s generally agreed upon 256kb/s and ",(0,s.jsx)(n.a,{href:"/docs/audio/MP3",children:"MP3"}),"'s 320kb/s. Transparency varies based on the type of content & the encoding implementation used, especially for codecs other than Opus, and the values provided above may be debated to a degree."]}),"\n",(0,s.jsxs)(n.p,{children:["Opus is described on ",(0,s.jsx)(n.a,{href:"https://opus-codec.org/",children:"opus-codec.org"}),' as a "totally open, royalty-free, highly versatile audio codec. Opus is unmatched for interactive speech and music transmission over the Internet, but is also intended for storage and streaming applications. It is standardized by the Internet Engineering Task Force (IETF) as ',(0,s.jsx)(n.a,{href:"https://datatracker.ietf.org/doc/html/rfc6716",children:"RFC 6716"}),' which incorporated technology from Skype\u2019s SILK codec and Xiph.Org\u2019s CELT codec."']}),"\n",(0,s.jsx)(n.p,{children:"Opus supports the following features:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Bitrates from 6 kb/s to 510 kb/s (with a maximum of around 255 kb/s per channel on non stereo layouts)"}),"\n",(0,s.jsx)(n.li,{children:"Sampling rates from 8 kHz (narrowband) to 48 kHz (fullband)"}),"\n",(0,s.jsx)(n.li,{children:"Frame sizes from 2.5 ms to 60 ms"}),"\n",(0,s.jsx)(n.li,{children:"Support for both constant bitrate (CBR) and variable bitrate (VBR)"}),"\n",(0,s.jsx)(n.li,{children:"Audio bandwidth from narrowband to fullband"}),"\n",(0,s.jsx)(n.li,{children:"Support for speech and music"}),"\n",(0,s.jsx)(n.li,{children:"Support for mono and stereo"}),"\n",(0,s.jsx)(n.li,{children:"Support for up to 255 channels (multistream frames)"}),"\n",(0,s.jsx)(n.li,{children:"Dynamically adjustable bitrate, audio bandwidth, and frame size"}),"\n",(0,s.jsx)(n.li,{children:"Good loss robustness and packet loss concealment (PLC)"}),"\n",(0,s.jsx)(n.li,{children:"Floating point and fixed-point implementation"}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.em,{children:"via opus-codec.org and wiki.hydrogenaud.io"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,s.jsx)(n.p,{children:"Opus is a hybrid audio codec, composed of two codecs as mentioned above. These are Skype's SILK codec for voice & Xiph.Org's CELT codec. Opus's initial name, Harmony, may have been because of the \"harmony\" of these two codecs and the musical connotation of harmony."}),"\n",(0,s.jsx)(n.h3,{id:"silk",children:"SILK"}),"\n",(0,s.jsx)(n.p,{children:"SILK, initially from Skype, was designed to be used for voice calls on Microsoft products like Skype. The first stable release of the codec was in 2009, and since then it has been freely licensed under the BSD 2-Clause license which has allowed for its adoption into Opus. The version of SILK used in Opus is substantially modified from - and not compatible with - the standalone SILK codec previously described here."}),"\n",(0,s.jsx)(n.p,{children:"SILK is optimized for speech, and so has limited sample rates as follows:"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:"Narrowband: 3-4000hz\nMediumband: 3-6000hz\nWideband: 3-8000hz"}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"SILK's latency is 10 to 60ms based on the desired framesize + 5ms lookahead to estimate noise shaping + (potentially) 1.5ms sampling rate conversion overhead if the input audio needs to be resampled."}),"\n",(0,s.jsx)(n.h3,{id:"celt",children:"CELT"}),"\n",(0,s.jsx)(n.p,{children:'Much like SILK, CELT is under the BSD 2-Clause license. The preview release came out in 2011. CELT stands for "Code-Excited Lapped Transform" and was designed to be the true successor to Vorbis, even being dubbed as "Vorbis II" during its initial development as part og Xiph.Org\'s "Ghost" project in 2005.'}),"\n",(0,s.jsxs)(n.p,{children:["CELT was designed to be a full-band general purpose codec without a particular specialization for a certain kind of audio, making it distinctly different from Xiph's ",(0,s.jsx)(n.a,{href:"/docs/audio/Speex",children:"Speex"})," codec & more similar to Vorbis. It is computationally simple relative to competing codec technologies like ",(0,s.jsx)(n.a,{href:"/docs/audio/AAC",children:"AAC"})," & even Vorbis, enabling extremely low latency that is competitive with ",(0,s.jsx)(n.a,{href:"/docs/audio/AAC#aac-ld--aac-eld",children:"AAC-LD"}),"."]}),"\n",(0,s.jsx)(n.p,{children:"CELT can work with the following sample rates:"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:"Narrowband: 3-4000hz\nMediumband: 3-6000hz\nWideband: 3-8000hz\nSuperWideband: 3-12000hz\nFullband: 3-20000hz"}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"encoders",children:"Encoders"}),"\n",(0,s.jsx)(n.h3,{id:"opusenc",children:"Opusenc"}),"\n",(0,s.jsxs)(n.p,{children:["Opus's reference encoder is ",(0,s.jsx)(n.a,{href:"https://github.com/xiph/opus",children:"opusenc"}),", which is known for its fantastic performance and versatility. It is licensed under the BSD 3-clause license as part of the reference libopus library. There are a myriad of options that may be used to encode with opusenc, but the utility is considered to have sane encoding defaults for local storage & playback. The best options will be outlined below."]}),"\n",(0,s.jsxs)(n.p,{children:["Usage: ",(0,s.jsx)(n.code,{children:"opusenc [options] input_file output_file.opus"})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--bitrate #.###"})," Sets the overall target bitrate in kbit/s. Most encoders use ",(0,s.jsx)(n.em,{children:"bits"}),' per second, meaning you have to specify "128K" for 128kbit/s for example. Opus doesn\'t follow this, so you\'d just have to type "128" though keep in mind using efficient VBR encoding means the final bitrate may be different than the target. Opus supports bitrates from 6 kb/s to 510 kb/s.']}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--vbr"})," Tells the encoder to encode using a variable bit rate, allocating more or less bits when necessary to preserve overall fidelity per bit. This is the best option for local storage & playback, and is ",(0,s.jsx)(n.em,{children:"enabled by default."})]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--cvbr"})," Tells the encoder that it is allowed to vary the bitrate like with VBR, but it must constrain the maximum bitrate at any given moment to the value provided."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--hard-cbr"})," Tells the encoder to use a constant bitrate the whole time."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--music"})," & ",(0,s.jsx)(n.code,{children:"--speech"})," Forces the AI content-detector built into opusenc to treat the input as either speech or music. The bitrate range where this is relevant is around 12-40kb/s."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--comp #"})," Sets the encoder complexity to a value from 0 to 10, 0 being the least complex & 10 being the most. ",(0,s.jsx)(n.em,{children:"The default is 10."})]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--framesize #"})," Sets the maximum encoder frame size in milliseconds. Lowering this is useful for improving latency at the expense of audio quality per bit. It is worth noting that 40 & 60ms framesizes are just multiple 20ms frames stitched together via opusenc's default behavior, and are not considered useful as they just lower the encoder's adaptability which can worsen both latency & coding efficiency. ",(0,s.jsx)(n.em,{children:"The default value is 20."})]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--expect-loss #"})," Percentage value for expected packet loss. Not useful for local encoding & playback, but useful for real-time applications. ",(0,s.jsx)(n.em,{children:"Default value is 0."})]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--downmix-mono"})," Downmixes multiple channels into a single channel."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--downmix-stereo"})," Downmixes multiple channels into two channels, left & right, given more than two channels are provided to the encoder."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--no-phase-inv"})," Disables phase inversion. Helpful when downmixing stereo to mono, although this is the default behavior in that scenario since libopus 1.3. Slightly decreases stereo audio quality."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--max-delay #"})," Sets maximum container delay in milliseconds, from 0-1000. ",(0,s.jsx)(n.em,{children:"Default is 1000."})]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Looking at the default values for the encoder flags, opusenc almost always follows the best practices for every default value. This makes it very easy to use, and it is as simple as plugging in a source of some kind and using only the most basic commands to encode with opus."}),"\n",(0,s.jsx)(n.p,{children:"An example opusenc command:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'opusenc "input.wav" "output.opus" --bitrate 96\n'})}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," using libopus:"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'ffmpeg -i "input.flac" -c:a libopus -b:a 128K "output.ogg"\n'})}),"\n",(0,s.jsxs)(n.p,{children:["If you'd like to learn more about opusenc & its recommended default behavior, read this article on ",(0,s.jsx)(n.a,{href:"https://wiki.xiph.org/Opus_Recommended_Settings#Bandwidth_Transition_Thresholds",children:"Opus Recommended Settings"}),"."]}),"\n",(0,s.jsxs)(n.admonition,{title:"Existing bug in ffmpeg",type:"info",children:[(0,s.jsxs)(n.p,{children:["Due to a bug in ffmpeg ",(0,s.jsx)(n.a,{href:"https://trac.ffmpeg.org/ticket/5718",children:"(#5718)"}),", ffmpeg won't automatically remap ",(0,s.jsx)(n.code,{children:"5.1(side)"})," to ",(0,s.jsx)(n.code,{children:"5.1"})," when using libopus.",(0,s.jsx)(n.br,{}),"\n","To remap the channel layout explicitly, try this:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'ffmpeg -i "input.flac" -c:a libopus -af aformat=channel_layouts=5.1 "output.ogg"\n'})}),(0,s.jsxs)(n.admonition,{type:"tip",children:[(0,s.jsx)(n.p,{children:"You can handle arbitrary audio stream mappings with this:"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"-af aformat=channel_layouts=7.1|5.1|stereo -mapping_family 1\n"})})]})]}),"\n",(0,s.jsx)(n.h3,{id:"ffopus",children:"FFopus"}),"\n",(0,s.jsx)(n.p,{children:"FFopus is an experimental native opus encoder from FFmpeg. It is not widely regarded as providing any decent uplift in coding efficiency compared to libopus, and is usually considered worse; its only merit is being able to handle 5.1(side) streams while libopus in FFmpeg cannot. It only implements the CELT part of the Opus codec."}),"\n",(0,s.jsx)(n.p,{children:"FFopus usage:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'ffmpeg -i "input.wma" -c:a opus -b:a 128K -strict -2 "output.opus"\n'})}),"\n",(0,s.jsx)(n.h3,{id:"vac-enc",children:"vac-enc"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"https://github.com/gianni-rosato/vac-enc",children:"VAC"}),", or Value Added Codec, is a libopus encoder that uses SoX to resample inputs & supports output to ",(0,s.jsx)(n.code,{children:".ogg"})," rather than exclusively ",(0,s.jsx)(n.code,{children:".opus"}),". Better resampling theoretically leads to better coding efficiency, but vac-enc hasn't been thoroughly tested."]}),"\n",(0,s.jsxs)(n.p,{children:["Encoding a 16-bit signed little endian ",(0,s.jsx)(n.code,{children:"pcm_s16le"})," WAV to 128kbit/s Opus in an OGG container:"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"vac-enc input.wav output.ogg 128\n"})})]})}function h(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>a,x:()=>r});var s=i(6540);const o={},t=s.createContext(o);function a(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/09bc817a.aa76edbd.js b/assets/js/09bc817a.aa76edbd.js new file mode 100644 index 000000000..b55a00ee1 --- /dev/null +++ b/assets/js/09bc817a.aa76edbd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1554],{3668:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>r,default:()=>h,frontMatter:()=>a,metadata:()=>s,toc:()=>c});const s=JSON.parse('{"id":"audio/Opus","title":"Opus","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/audio/Opus.mdx","sourceDirName":"audio","slug":"/audio/Opus","permalink":"/docs/audio/Opus","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/Opus.mdx","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"Opus","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"AAC","permalink":"/docs/audio/AAC"},"next":{"title":"Dolby Digital","permalink":"/docs/audio/Dolby"}}');var o=i(4848),t=i(8453);const a={title:"Opus",sidebar_position:2},r="Opus",d={},c=[{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"SILK",id:"silk",level:3},{value:"CELT",id:"celt",level:3},{value:"Encoders",id:"encoders",level:2},{value:"Opusenc",id:"opusenc",level:3},{value:"FFopus",id:"ffopus",level:3},{value:"vac-enc",id:"vac-enc",level:3}];function l(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",br:"br",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"opus",children:"Opus"})}),"\n",(0,o.jsx)(n.admonition,{title:"Under Maintenance",type:"info",children:(0,o.jsx)(n.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,o.jsxs)(n.p,{children:["Opus is an open-source audio codec that has largely replaced ",(0,o.jsx)(n.a,{href:"/docs/audio/Vorbis",children:"Vorbis"})," as the standard open audio codec. It is the recommended codec for usage in WebM video containers in tandem with the ",(0,o.jsx)(n.a,{href:"/docs/video/VP9",children:"VP9"})," or ",(0,o.jsx)(n.a,{href:"/docs/video/AV1",children:"AV1"})," video codecs."]}),"\n",(0,o.jsxs)(n.p,{children:["Opus is known for its incredible coding efficiency and unique multi-channel optimizations. Stereo Opus audio reaches ",(0,o.jsx)(n.a,{href:"https://en.wikipedia.org/wiki/Transparency_(data_compression)",children:"transparency"})," (psychoacoustically lossless audio quality) at 128kb/s, compared to ",(0,o.jsx)(n.a,{href:"/docs/audio/AAC",children:"AAC"}),"'s generally agreed upon 256kb/s and ",(0,o.jsx)(n.a,{href:"/docs/audio/MP3",children:"MP3"}),"'s 320kb/s. Transparency varies based on the type of content & the encoding implementation used, especially for codecs other than Opus, and the values provided above may be debated to a degree."]}),"\n",(0,o.jsxs)(n.p,{children:["Opus is described on ",(0,o.jsx)(n.a,{href:"https://opus-codec.org/",children:"opus-codec.org"}),' as a "totally open, royalty-free, highly versatile audio codec. Opus is unmatched for interactive speech and music transmission over the Internet, but is also intended for storage and streaming applications. It is standardized by the Internet Engineering Task Force (IETF) as ',(0,o.jsx)(n.a,{href:"https://datatracker.ietf.org/doc/html/rfc6716",children:"RFC 6716"}),' which incorporated technology from Skype\u2019s SILK codec and Xiph.Org\u2019s CELT codec."']}),"\n",(0,o.jsx)(n.p,{children:"Opus supports the following features:"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:"Bitrates from 6 kb/s to 510 kb/s (with a maximum of around 255 kb/s per channel on non stereo layouts)"}),"\n",(0,o.jsx)(n.li,{children:"Sampling rates from 8 kHz (narrowband) to 48 kHz (fullband)"}),"\n",(0,o.jsx)(n.li,{children:"Frame sizes from 2.5 ms to 60 ms"}),"\n",(0,o.jsx)(n.li,{children:"Support for both constant bitrate (CBR) and variable bitrate (VBR)"}),"\n",(0,o.jsx)(n.li,{children:"Audio bandwidth from narrowband to fullband"}),"\n",(0,o.jsx)(n.li,{children:"Support for speech and music"}),"\n",(0,o.jsx)(n.li,{children:"Support for mono and stereo"}),"\n",(0,o.jsx)(n.li,{children:"Support for up to 255 channels (multistream frames)"}),"\n",(0,o.jsx)(n.li,{children:"Dynamically adjustable bitrate, audio bandwidth, and frame size"}),"\n",(0,o.jsx)(n.li,{children:"Good loss robustness and packet loss concealment (PLC)"}),"\n",(0,o.jsx)(n.li,{children:"Floating point and fixed-point implementation"}),"\n"]}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.em,{children:"via opus-codec.org and wiki.hydrogenaud.io"}),"."]}),"\n",(0,o.jsx)(n.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,o.jsx)(n.p,{children:"Opus is a hybrid audio codec, composed of two codecs as mentioned above. These are Skype's SILK codec for voice & Xiph.Org's CELT codec. Opus's initial name, Harmony, may have been because of the \"harmony\" of these two codecs and the musical connotation of harmony."}),"\n",(0,o.jsx)(n.h3,{id:"silk",children:"SILK"}),"\n",(0,o.jsx)(n.p,{children:"SILK, initially from Skype, was designed to be used for voice calls on Microsoft products like Skype. The first stable release of the codec was in 2009, and since then it has been freely licensed under the BSD 2-Clause license which has allowed for its adoption into Opus. The version of SILK used in Opus is substantially modified from - and not compatible with - the standalone SILK codec previously described here."}),"\n",(0,o.jsx)(n.p,{children:"SILK is optimized for speech, and so has limited sample rates as follows:"}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsx)(n.p,{children:"Narrowband: 3-4000hz\nMediumband: 3-6000hz\nWideband: 3-8000hz"}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:"SILK's latency is 10 to 60ms based on the desired framesize + 5ms lookahead to estimate noise shaping + (potentially) 1.5ms sampling rate conversion overhead if the input audio needs to be resampled."}),"\n",(0,o.jsx)(n.h3,{id:"celt",children:"CELT"}),"\n",(0,o.jsx)(n.p,{children:'Much like SILK, CELT is under the BSD 2-Clause license. The preview release came out in 2011. CELT stands for "Code-Excited Lapped Transform" and was designed to be the true successor to Vorbis, even being dubbed as "Vorbis II" during its initial development as part og Xiph.Org\'s "Ghost" project in 2005.'}),"\n",(0,o.jsxs)(n.p,{children:["CELT was designed to be a full-band general purpose codec without a particular specialization for a certain kind of audio, making it distinctly different from Xiph's ",(0,o.jsx)(n.a,{href:"/docs/audio/Speex",children:"Speex"})," codec & more similar to Vorbis. It is computationally simple relative to competing codec technologies like ",(0,o.jsx)(n.a,{href:"/docs/audio/AAC",children:"AAC"})," & even Vorbis, enabling extremely low latency that is competitive with ",(0,o.jsx)(n.a,{href:"/docs/audio/AAC#aac-ld--aac-eld",children:"AAC-LD"}),"."]}),"\n",(0,o.jsx)(n.p,{children:"CELT can work with the following sample rates:"}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsx)(n.p,{children:"Narrowband: 3-4000hz\nMediumband: 3-6000hz\nWideband: 3-8000hz\nSuperWideband: 3-12000hz\nFullband: 3-20000hz"}),"\n"]}),"\n",(0,o.jsx)(n.h2,{id:"encoders",children:"Encoders"}),"\n",(0,o.jsx)(n.h3,{id:"opusenc",children:"Opusenc"}),"\n",(0,o.jsxs)(n.p,{children:["Opus's reference encoder is ",(0,o.jsx)(n.a,{href:"https://github.com/xiph/opus",children:"opusenc"}),", which is known for its fantastic performance and versatility. It is licensed under the BSD 3-clause license as part of the reference libopus library. There are a myriad of options that may be used to encode with opusenc, but the utility is considered to have sane encoding defaults for local storage & playback. The best options will be outlined below."]}),"\n",(0,o.jsxs)(n.p,{children:["Usage: ",(0,o.jsx)(n.code,{children:"opusenc [options] input_file output_file.opus"})]}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"--bitrate #.###"})," Sets the overall target bitrate in kbit/s. Most encoders use ",(0,o.jsx)(n.em,{children:"bits"}),' per second, meaning you have to specify "128K" for 128kbit/s for example. Opus doesn\'t follow this, so you\'d just have to type "128" though keep in mind using efficient VBR encoding means the final bitrate may be different than the target. Opus supports bitrates from 6 kb/s to 510 kb/s.']}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"--vbr"})," Tells the encoder to encode using a variable bit rate, allocating more or less bits when necessary to preserve overall fidelity per bit. This is the best option for local storage & playback, and is ",(0,o.jsx)(n.em,{children:"enabled by default."})]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"--cvbr"})," Tells the encoder that it is allowed to vary the bitrate like with VBR, but it must constrain the maximum bitrate at any given moment to the value provided."]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"--hard-cbr"})," Tells the encoder to use a constant bitrate the whole time."]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"--music"})," & ",(0,o.jsx)(n.code,{children:"--speech"})," Forces the AI content-detector built into opusenc to treat the input as either speech or music. The bitrate range where this is relevant is around 12-40kb/s."]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"--comp #"})," Sets the encoder complexity to a value from 0 to 10, 0 being the least complex & 10 being the most. ",(0,o.jsx)(n.em,{children:"The default is 10."})]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"--framesize #"})," Sets the maximum encoder frame size in milliseconds. Lowering this is useful for improving latency at the expense of audio quality per bit. It is worth noting that 40 & 60ms framesizes are just multiple 20ms frames stitched together via opusenc's default behavior, and are not considered useful as they just lower the encoder's adaptability which can worsen both latency & coding efficiency. ",(0,o.jsx)(n.em,{children:"The default value is 20."})]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"--expect-loss #"})," Percentage value for expected packet loss. Not useful for local encoding & playback, but useful for real-time applications. ",(0,o.jsx)(n.em,{children:"Default value is 0."})]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"--downmix-mono"})," Downmixes multiple channels into a single channel."]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"--downmix-stereo"})," Downmixes multiple channels into two channels, left & right, given more than two channels are provided to the encoder."]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"--no-phase-inv"})," Disables phase inversion. Helpful when downmixing stereo to mono, although this is the default behavior in that scenario since libopus 1.3. Slightly decreases stereo audio quality."]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"--max-delay #"})," Sets maximum container delay in milliseconds, from 0-1000. ",(0,o.jsx)(n.em,{children:"Default is 1000."})]}),"\n"]}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:"Looking at the default values for the encoder flags, opusenc almost always follows the best practices for every default value. This makes it very easy to use, and it is as simple as plugging in a source of some kind and using only the most basic commands to encode with opus."}),"\n",(0,o.jsx)(n.p,{children:"An example opusenc command:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:'opusenc "input.wav" "output.opus" --bitrate 96\n'})}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," using libopus:"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:'ffmpeg -i "input.flac" -c:a libopus -b:a 128K "output.ogg"\n'})}),"\n",(0,o.jsxs)(n.p,{children:["If you'd like to learn more about opusenc & its recommended default behavior, read this article on ",(0,o.jsx)(n.a,{href:"https://wiki.xiph.org/Opus_Recommended_Settings#Bandwidth_Transition_Thresholds",children:"Opus Recommended Settings"}),"."]}),"\n",(0,o.jsxs)(n.admonition,{title:"Existing bug in ffmpeg",type:"info",children:[(0,o.jsxs)(n.p,{children:["Due to a bug in ffmpeg ",(0,o.jsx)(n.a,{href:"https://trac.ffmpeg.org/ticket/5718",children:"(#5718)"}),", ffmpeg won't automatically remap ",(0,o.jsx)(n.code,{children:"5.1(side)"})," to ",(0,o.jsx)(n.code,{children:"5.1"})," when using libopus.",(0,o.jsx)(n.br,{}),"\n","To remap the channel layout explicitly, try this:"]}),(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:'ffmpeg -i "input.flac" -c:a libopus -af aformat=channel_layouts=5.1 "output.ogg"\n'})}),(0,o.jsxs)(n.admonition,{type:"tip",children:[(0,o.jsx)(n.p,{children:"You can handle arbitrary audio stream mappings with this:"}),(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"-af aformat=channel_layouts=7.1|5.1|stereo -mapping_family 1\n"})})]})]}),"\n",(0,o.jsx)(n.h3,{id:"ffopus",children:"FFopus"}),"\n",(0,o.jsx)(n.p,{children:"FFopus is an experimental native opus encoder from FFmpeg. It is not widely regarded as providing any decent uplift in coding efficiency compared to libopus, and is usually considered worse; its only merit is being able to handle 5.1(side) streams while libopus in FFmpeg cannot. It only implements the CELT part of the Opus codec."}),"\n",(0,o.jsx)(n.p,{children:"FFopus usage:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:'ffmpeg -i "input.wma" -c:a opus -b:a 128K -strict -2 "output.opus"\n'})}),"\n",(0,o.jsx)(n.h3,{id:"vac-enc",children:"vac-enc"}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.a,{href:"https://github.com/gianni-rosato/vac-enc",children:"VAC"}),", or Value Added Codec, is a libopus encoder that uses SoX to resample inputs & supports output to ",(0,o.jsx)(n.code,{children:".ogg"})," rather than exclusively ",(0,o.jsx)(n.code,{children:".opus"}),". Better resampling theoretically leads to better coding efficiency, but vac-enc hasn't been thoroughly tested."]}),"\n",(0,o.jsxs)(n.p,{children:["Encoding a 16-bit signed little endian ",(0,o.jsx)(n.code,{children:"pcm_s16le"})," WAV to 128kbit/s Opus in an OGG container:"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"vac-enc input.wav output.ogg 128\n"})})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>a,x:()=>r});var s=i(6540);const o={},t=s.createContext(o);function a(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/0b185270.32f1c719.js b/assets/js/0b185270.32f1c719.js deleted file mode 100644 index 694d6f53a..000000000 --- a/assets/js/0b185270.32f1c719.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3482],{455:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>d,contentTitle:()=>r,default:()=>h,frontMatter:()=>s,metadata:()=>a,toc:()=>c});var n=i(4848),o=i(8453);const s={title:"FAQ",sidebar_label:"\u2753 FAQ",position:14},r="FAQ",a={id:"FAQ",title:"FAQ",description:"Why are you doing this?",source:"@site/docs/FAQ.mdx",sourceDirName:".",slug:"/FAQ",permalink:"/docs/FAQ",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/FAQ.mdx",tags:[],version:"current",frontMatter:{title:"FAQ",sidebar_label:"\u2753 FAQ",position:14},sidebar:"tutorialSidebar",previous:{title:"\u2712\ufe0f Contribution Guide",permalink:"/docs/contribution-guide"},next:{title:"\ud83d\udd0f Privacy Policy",permalink:"/docs/privacy-policy"}},d={},c=[{value:"Why are you doing this?",id:"why-are-you-doing-this",level:2},{value:"But alternatives exist. Why not contribute there?",id:"but-alternatives-exist-why-not-contribute-there",level:3},{value:"How do I get started as a contributor?",id:"how-do-i-get-started-as-a-contributor",level:3},{value:"Why "Codec Wiki"?",id:"why-codec-wiki",level:3}];function l(e){const t={a:"a",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",ul:"ul",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"faq",children:"FAQ"})}),"\n",(0,n.jsx)(t.h2,{id:"why-are-you-doing-this",children:"Why are you doing this?"}),"\n",(0,n.jsx)(t.p,{children:"Multimedia encoding & the digital compression space is an incredible field that many tech enthusiasts, professionals, & laymen have no easy entry point to. Wikipedia has a vast amount of information on many of the individual topics covered here but doesn't offer a cohesive way to engage with the entire sphere of knowledge as a whole. While this site started as a lighthearted guide (you'll see the remnants of this strewn about the various wiki entries), it has quickly become an endeavor to unite digital compression aficionados to make the knowledge more accessible for all."}),"\n",(0,n.jsx)(t.h3,{id:"but-alternatives-exist-why-not-contribute-there",children:"But alternatives exist. Why not contribute there?"}),"\n",(0,n.jsx)(t.p,{children:"While this is true, this is easier said than done."}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:["\n",(0,n.jsx)(t.p,{children:"Multimedia Wiki is not as active as it used to be, & a new effort makes sense to carry past efforts forward."}),"\n"]}),"\n",(0,n.jsxs)(t.li,{children:["\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.a,{href:"https://guide.encode.moe/",children:"guide.encode.moe"})," is stagnant and mostly focused on fansub, docs & personal experiences that are scattered around the Internet."]}),"\n"]}),"\n",(0,n.jsxs)(t.li,{children:["\n",(0,n.jsx)(t.p,{children:"There are sources littered about that explain pieces of the larger puzzle, but these serve as small drops in a bucket of vast incoherency & don't meaningfully remedy the steep learning curve for understanding multimedia compression without background knowledge."}),"\n"]}),"\n"]}),"\n",(0,n.jsx)(t.h3,{id:"how-do-i-get-started-as-a-contributor",children:"How do I get started as a contributor?"}),"\n",(0,n.jsx)(t.p,{children:"See our Contribution Guide page in the sidebar."}),"\n",(0,n.jsx)(t.h3,{id:"why-codec-wiki",children:'Why "Codec Wiki"?'}),"\n",(0,n.jsx)(t.p,{children:'This wiki is mostly going to be focused on multimedia compression, & the term "Codec" is already widely recognized & understood. While other topics like video filtering & general compression algorithms may be covered, the main focus remains multimedia compression.'})]})}function h(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>r,x:()=>a});var n=i(6540);const o={},s=n.createContext(o);function r(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/0b185270.a6fb6998.js b/assets/js/0b185270.a6fb6998.js new file mode 100644 index 000000000..b50d5d18c --- /dev/null +++ b/assets/js/0b185270.a6fb6998.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3482],{9885:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>r,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"FAQ","title":"FAQ","description":"Why are you doing this?","source":"@site/docs/FAQ.mdx","sourceDirName":".","slug":"/FAQ","permalink":"/docs/FAQ","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/FAQ.mdx","tags":[],"version":"current","frontMatter":{"title":"FAQ","sidebar_label":"\u2753 FAQ","position":14},"sidebar":"tutorialSidebar","previous":{"title":"\u2712\ufe0f Contribution Guide","permalink":"/docs/contribution-guide"},"next":{"title":"\ud83d\udd0f Privacy Policy","permalink":"/docs/privacy-policy"}}');var o=i(4848),s=i(8453);const r={title:"FAQ",sidebar_label:"\u2753 FAQ",position:14},a="FAQ",d={},c=[{value:"Why are you doing this?",id:"why-are-you-doing-this",level:2},{value:"But alternatives exist. Why not contribute there?",id:"but-alternatives-exist-why-not-contribute-there",level:3},{value:"How do I get started as a contributor?",id:"how-do-i-get-started-as-a-contributor",level:3},{value:"Why "Codec Wiki"?",id:"why-codec-wiki",level:3}];function l(e){const t={a:"a",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",ul:"ul",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"faq",children:"FAQ"})}),"\n",(0,o.jsx)(t.h2,{id:"why-are-you-doing-this",children:"Why are you doing this?"}),"\n",(0,o.jsx)(t.p,{children:"Multimedia encoding & the digital compression space is an incredible field that many tech enthusiasts, professionals, & laymen have no easy entry point to. Wikipedia has a vast amount of information on many of the individual topics covered here but doesn't offer a cohesive way to engage with the entire sphere of knowledge as a whole. While this site started as a lighthearted guide (you'll see the remnants of this strewn about the various wiki entries), it has quickly become an endeavor to unite digital compression aficionados to make the knowledge more accessible for all."}),"\n",(0,o.jsx)(t.h3,{id:"but-alternatives-exist-why-not-contribute-there",children:"But alternatives exist. Why not contribute there?"}),"\n",(0,o.jsx)(t.p,{children:"While this is true, this is easier said than done."}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:["\n",(0,o.jsx)(t.p,{children:"Multimedia Wiki is not as active as it used to be, & a new effort makes sense to carry past efforts forward."}),"\n"]}),"\n",(0,o.jsxs)(t.li,{children:["\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.a,{href:"https://guide.encode.moe/",children:"guide.encode.moe"})," is stagnant and mostly focused on fansub, docs & personal experiences that are scattered around the Internet."]}),"\n"]}),"\n",(0,o.jsxs)(t.li,{children:["\n",(0,o.jsx)(t.p,{children:"There are sources littered about that explain pieces of the larger puzzle, but these serve as small drops in a bucket of vast incoherency & don't meaningfully remedy the steep learning curve for understanding multimedia compression without background knowledge."}),"\n"]}),"\n"]}),"\n",(0,o.jsx)(t.h3,{id:"how-do-i-get-started-as-a-contributor",children:"How do I get started as a contributor?"}),"\n",(0,o.jsx)(t.p,{children:"See our Contribution Guide page in the sidebar."}),"\n",(0,o.jsx)(t.h3,{id:"why-codec-wiki",children:'Why "Codec Wiki"?'}),"\n",(0,o.jsx)(t.p,{children:'This wiki is mostly going to be focused on multimedia compression, & the term "Codec" is already widely recognized & understood. While other topics like video filtering & general compression algorithms may be covered, the main focus remains multimedia compression.'})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>r,x:()=>a});var n=i(6540);const o={},s=n.createContext(o);function r(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/0c06159a.64876cab.js b/assets/js/0c06159a.64876cab.js new file mode 100644 index 000000000..13ad67af1 --- /dev/null +++ b/assets/js/0c06159a.64876cab.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8258],{6533:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>s,metadata:()=>r,toc:()=>d});const r=JSON.parse('{"id":"data/tar","title":"tar","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/data/tar.mdx","sourceDirName":"data","slug":"/data/tar","permalink":"/docs/data/tar","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/tar.mdx","tags":[],"version":"current","sidebarPosition":8,"frontMatter":{"title":"tar","sidebar_position":8},"sidebar":"tutorialSidebar","previous":{"title":"zstd","permalink":"/docs/data/zstd"},"next":{"title":"JPEG","permalink":"/docs/images/JPEG"}}');var i=a(4848),n=a(8453);const s={title:"tar",sidebar_position:8},o="tar",c={},d=[{value:"Usage",id:"usage",level:2},{value:"Create a tar archive",id:"create-a-tar-archive",level:3},{value:"Extract a tar archive",id:"extract-a-tar-archive",level:3}];function l(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"tar",children:"tar"})}),"\n",(0,i.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,i.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,i.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.code,{children:"tar"}),', or Tape ARchive, is a archiving format and utility first developed for Version 7 Unix in 1977. It\'s original purpose was to collate files into one that can be stored on tape. Similarly, today it is used to bring many files together into a "tarball", which can be compressed with any general data compression algorithm.']}),"\n",(0,i.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsx)(t.admonition,{type:"note",children:(0,i.jsx)(t.p,{children:"This guide has been written for GNU tar on linux, however it should be applicable to BSD tar, macOS tar, and the tar command in powershell on Windows."})}),"\n",(0,i.jsx)(t.h3,{id:"create-a-tar-archive",children:"Create a tar archive"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"tar -cf {archive name} {files listed here}\n"})}),"\n",(0,i.jsxs)(t.p,{children:["You can use ",(0,i.jsx)(t.code,{children:"tar"})," to compress your archive, for example into a ",(0,i.jsx)(t.code,{children:".tar.gz"})," or ",(0,i.jsx)(t.code,{children:".tar.xz"})," archive. To do this, you either can either use a flag such as ",(0,i.jsx)(t.code,{children:"-z"}),", ",(0,i.jsx)(t.code,{children:"-j"}),", or ",(0,i.jsx)(t.code,{children:"-J"})," (",(0,i.jsx)(t.a,{href:"/docs/data/gzip",children:"gzip"}),", ",(0,i.jsx)(t.a,{href:"/docs/data/bzip2",children:"bzip2"}),", ",(0,i.jsx)(t.a,{href:"/docs/data/xz",children:"xz"}),"), or you can use ",(0,i.jsx)(t.code,{children:"-a"})," ('automatic'), which allows it to intuit what algorithm you want from the file extension, such as ",(0,i.jsx)(t.code,{children:"archive.tar.xz"})," for an xz compressed tarball."]}),"\n",(0,i.jsx)(t.p,{children:"GNU tar can use these compression algorithms"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"gzip (.gz)"}),"\n",(0,i.jsx)(t.li,{children:"bzip2 (.bz)"}),"\n",(0,i.jsx)(t.li,{children:"xz (.xz)"}),"\n",(0,i.jsx)(t.li,{children:"lzip (.lz)"}),"\n",(0,i.jsx)(t.li,{children:"lzma (.lzma)"}),"\n",(0,i.jsx)(t.li,{children:"lzop (.lzo)"}),"\n",(0,i.jsx)(t.li,{children:"zstd (.zstd)"}),"\n"]}),"\n",(0,i.jsx)(t.h3,{id:"extract-a-tar-archive",children:"Extract a tar archive"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"tar -xf {tarball}.tar -C {directory to extract to}\n"})}),"\n",(0,i.jsxs)(t.p,{children:["tar can extract from it's supported compressed formats, such as ",(0,i.jsx)(t.code,{children:"archive.tar.xz"})," automatically, with no extra flags."]})]})}function h(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},8453:(e,t,a)=>{a.d(t,{R:()=>s,x:()=>o});var r=a(6540);const i={},n=r.createContext(i);function s(e){const t=r.useContext(n);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),r.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/0c06159a.b22e0c76.js b/assets/js/0c06159a.b22e0c76.js deleted file mode 100644 index 04cec4921..000000000 --- a/assets/js/0c06159a.b22e0c76.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8258],{1339:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>n,metadata:()=>s,toc:()=>d});var r=a(4848),i=a(8453);const n={title:"tar",sidebar_position:8},o="tar",s={id:"data/tar",title:"tar",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/data/tar.mdx",sourceDirName:"data",slug:"/data/tar",permalink:"/docs/data/tar",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/tar.mdx",tags:[],version:"current",sidebarPosition:8,frontMatter:{title:"tar",sidebar_position:8},sidebar:"tutorialSidebar",previous:{title:"zstd",permalink:"/docs/data/zstd"},next:{title:"JPEG",permalink:"/docs/images/JPEG"}},c={},d=[{value:"Usage",id:"usage",level:2},{value:"Create a tar archive",id:"create-a-tar-archive",level:3},{value:"Extract a tar archive",id:"extract-a-tar-archive",level:3}];function l(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"tar",children:"tar"})}),"\n",(0,r.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,r.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,r.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,r.jsx)(t.p,{children:'tar, or Tape ARchive, is a archiving format and utility first developed for Version 7 Unix in 1977. It\'s original purpose was to collate files into one that can be stored on tape. Similarly, today it is used to bring many files together into a "tarball", which can be compressed with any general data compression algorithm.'}),"\n",(0,r.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,r.jsx)(t.admonition,{type:"note",children:(0,r.jsx)(t.p,{children:"This guide has been written for GNU tar on linux, however it should be applicable to BSD tar, macOS tar, and the tar command in powershell on Windows."})}),"\n",(0,r.jsx)(t.h3,{id:"create-a-tar-archive",children:"Create a tar archive"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:"tar -cf {archive name} {files listed here}\n"})}),"\n",(0,r.jsxs)(t.p,{children:["You can use ",(0,r.jsx)(t.code,{children:"tar"})," to compress your archive, for example into a ",(0,r.jsx)(t.code,{children:".tar.gz"})," or ",(0,r.jsx)(t.code,{children:".tar.xz"})," archive. To do this, you either can either use a flag such as ",(0,r.jsx)(t.code,{children:"-z"}),", ",(0,r.jsx)(t.code,{children:"-j"}),", or ",(0,r.jsx)(t.code,{children:"-J"})," (",(0,r.jsx)(t.a,{href:"/docs/data/gzip",children:"gzip"}),", ",(0,r.jsx)(t.a,{href:"/docs/data/bzip2",children:"bzip2"}),", ",(0,r.jsx)(t.a,{href:"/docs/data/xz",children:"xz"}),"), or you can use ",(0,r.jsx)(t.code,{children:"-a"})," ('automatic'), which allows it to intuit what algorithm you want from the file extension, such as ",(0,r.jsx)(t.code,{children:"archive.tar.xz"})," for an xz compressed tarball."]}),"\n",(0,r.jsx)(t.p,{children:"GNU tar can use these compression algorithms"}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsx)(t.li,{children:"gzip (.gz)"}),"\n",(0,r.jsx)(t.li,{children:"bzip2 (.bz)"}),"\n",(0,r.jsx)(t.li,{children:"xz (.xz)"}),"\n",(0,r.jsx)(t.li,{children:"lzip (.lz)"}),"\n",(0,r.jsx)(t.li,{children:"lzma (.lzma)"}),"\n",(0,r.jsx)(t.li,{children:"lzop (.lzo)"}),"\n",(0,r.jsx)(t.li,{children:"zstd (.zstd)"}),"\n"]}),"\n",(0,r.jsx)(t.h3,{id:"extract-a-tar-archive",children:"Extract a tar archive"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:"tar -xf {tarball}.tar -C {directory to extract to}\n"})}),"\n",(0,r.jsxs)(t.p,{children:["tar can extract from it's supported compressed formats, such as ",(0,r.jsx)(t.code,{children:"archive.tar.xz"})," automatically, with no extra flags."]})]})}function h(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8453:(e,t,a)=>{a.d(t,{R:()=>o,x:()=>s});var r=a(6540);const i={},n=r.createContext(i);function o(e){const t=r.useContext(n);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),r.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/0e7f53a8.b1806df5.js b/assets/js/0e7f53a8.b1806df5.js new file mode 100644 index 000000000..38ab003f6 --- /dev/null +++ b/assets/js/0e7f53a8.b1806df5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9954],{2550:(e,s,i)=>{i.r(s),i.d(s,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>o,metadata:()=>n,toc:()=>d});const n=JSON.parse('{"id":"images/PNG","title":"PNG","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/images/PNG.mdx","sourceDirName":"images","slug":"/images/PNG","permalink":"/docs/images/PNG","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/PNG.mdx","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"PNG","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"JPEG","permalink":"/docs/images/JPEG"},"next":{"title":"GIF","permalink":"/docs/images/GIF"}}');var t=i(4848),r=i(8453);const o={title:"PNG",sidebar_position:2},a="PNG",c={},d=[{value:"Performance Checklist",id:"performance-checklist",level:2}];function l(e){const s={a:"a",admonition:"admonition",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.header,{children:(0,t.jsx)(s.h1,{id:"png",children:"PNG"})}),"\n",(0,t.jsx)(s.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(s.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(s.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsxs)(s.p,{children:["Portable Network Graphics (PNG) is a free lossless image file format released in 1996. It was ceated as an alternative to ",(0,t.jsx)(s.a,{href:"/docs/images/GIF",children:"GIF"}),", which was at the time a proprietary format. It gained animation support similar to GIF with the release of APNG in 2008, which is now supported by all popular web browsers."]}),"\n",(0,t.jsx)(s.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,t.jsxs)(s.p,{children:["Lossless? ",(0,t.jsx)(s.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(s.p,{children:["Lossy? ",(0,t.jsx)(s.em,{children:"No"})]}),"\n",(0,t.jsxs)(s.p,{children:["Supported Bit Depths:\n",(0,t.jsx)(s.em,{children:"8 BPC, 16 BPC"})]}),"\n",(0,t.jsxs)(s.p,{children:["HDR/Wide Gamut? ",(0,t.jsx)(s.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(s.p,{children:["Animation? ",(0,t.jsx)(s.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(s.p,{children:["Transparency? ",(0,t.jsx)(s.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(s.p,{children:["Progressive Decode? ",(0,t.jsx)(s.em,{children:"Kinda"})]}),"\n",(0,t.jsxs)(s.p,{children:["Royalty Free? ",(0,t.jsx)(s.em,{children:"Yes"})]})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,s,i)=>{i.d(s,{R:()=>o,x:()=>a});var n=i(6540);const t={},r=n.createContext(t);function o(e){const s=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),n.createElement(r.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/0e7f53a8.cffc0ef3.js b/assets/js/0e7f53a8.cffc0ef3.js deleted file mode 100644 index 43216ceac..000000000 --- a/assets/js/0e7f53a8.cffc0ef3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9954],{929:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>r,metadata:()=>a,toc:()=>d});var s=n(4848),t=n(8453);const r={title:"PNG",sidebar_position:2},o="PNG",a={id:"images/PNG",title:"PNG",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/images/PNG.mdx",sourceDirName:"images",slug:"/images/PNG",permalink:"/docs/images/PNG",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/PNG.mdx",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"PNG",sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"JPEG",permalink:"/docs/images/JPEG"},next:{title:"GIF",permalink:"/docs/images/GIF"}},c={},d=[{value:"Performance Checklist",id:"performance-checklist",level:2}];function l(e){const i={a:"a",admonition:"admonition",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"png",children:"PNG"})}),"\n",(0,s.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,s.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,s.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,s.jsxs)(i.p,{children:["Portable Network Graphics (PNG) is a free lossless image file format released in 1996. It was ceated as an alternative to ",(0,s.jsx)(i.a,{href:"/docs/images/GIF",children:"GIF"}),", which was at the time a proprietary format. It gained animation support similar to GIF with the release of APNG in 2008, which is now supported by all popular web browsers."]}),"\n",(0,s.jsx)(i.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,s.jsxs)(i.p,{children:["Lossless? ",(0,s.jsx)(i.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(i.p,{children:["Lossy? ",(0,s.jsx)(i.em,{children:"No"})]}),"\n",(0,s.jsxs)(i.p,{children:["Supported Bit Depths:\n",(0,s.jsx)(i.em,{children:"8 BPC, 16 BPC"})]}),"\n",(0,s.jsxs)(i.p,{children:["HDR/Wide Gamut? ",(0,s.jsx)(i.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(i.p,{children:["Animation? ",(0,s.jsx)(i.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(i.p,{children:["Transparency? ",(0,s.jsx)(i.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(i.p,{children:["Progressive Decode? ",(0,s.jsx)(i.em,{children:"Kinda"})]}),"\n",(0,s.jsxs)(i.p,{children:["Royalty Free? ",(0,s.jsx)(i.em,{children:"Yes"})]})]})}function h(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>o,x:()=>a});var s=n(6540);const t={},r=s.createContext(t);function o(e){const i=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),s.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/112763a5.7878550e.js b/assets/js/112763a5.7878550e.js new file mode 100644 index 000000000..f6ada3591 --- /dev/null +++ b/assets/js/112763a5.7878550e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1779],{9127:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>u,frontMatter:()=>r,metadata:()=>i,toc:()=>c});const i=JSON.parse('{"id":"terms-of-use","title":"Terms of Use","description":"These terms & conditions outline the rules & regulations for the use of the Codec Wiki Website as a visitor, contributor, or any other party who falls under the jurisdiction of these terms.","source":"@site/docs/terms-of-use.mdx","sourceDirName":".","slug":"/terms-of-use","permalink":"/docs/terms-of-use","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/terms-of-use.mdx","tags":[],"version":"current","frontMatter":{"title":"Terms of Use","sidebar_label":"\ud83e\udd1d Terms of Use","position":16},"sidebar":"tutorialSidebar","previous":{"title":"\ud83d\udd0f Privacy Policy","permalink":"/docs/privacy-policy"}}');var s=o(4848),n=o(8453);const r={title:"Terms of Use",sidebar_label:"\ud83e\udd1d Terms of Use",position:16},a="Terms of Use",l={},c=[];function h(e){const t={a:"a",blockquote:"blockquote",h1:"h1",header:"header",li:"li",ol:"ol",p:"p",...(0,n.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"terms-of-use",children:"Terms of Use"})}),"\n",(0,s.jsx)(t.p,{children:"These terms & conditions outline the rules & regulations for the use of the Codec Wiki Website as a visitor, contributor, or any other party who falls under the jurisdiction of these terms."}),"\n",(0,s.jsx)(t.p,{children:"By accessing this website we assume you accept these terms & conditions. Do not continue to use the site if you do not agree to all of the terms & conditions stated on this page."}),"\n",(0,s.jsx)(t.p,{children:"The following terminology applies to these Terms & Conditions & all other Agreements: \u201cClient\u201d, \u201cYou\u201d & \u201cYour\u201d refers to you, the person log on this website & compliant to these terms & conditions. \u201cOurselves\u201d, \u201cWe\u201d, \u201cOur\u201d & \u201cUs\u201d, refers to the site's owner. \u201cParty\u201d, \u201cParties\u201d, or \u201cUs\u201d, refers to both the Client & ourselves. Any use of the above terminology or other words in the singular, plural, capitalization and/or they/he/she, are taken as interchangeable & therefore as referring to the same."}),"\n",(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsx)(t.li,{children:"Cookies"}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"We may employ the use of cookies in the future. At the time of writing, we do not. If accessing the site employs the use of cookies, you will be prompted to agree to use cookies in agreement with our Privacy Policy. As of writing, our Privacy Policy does not require users' consent to the use of cookies due to the fact that we do not use cookies."}),"\n",(0,s.jsx)(t.p,{children:"Some interactive websites use cookies to let them retrieve user details for each visit. Cookies may be used by our website to enable the functionality of certain areas to make it easier for people visiting our website."}),"\n",(0,s.jsxs)(t.ol,{start:"2",children:["\n",(0,s.jsx)(t.li,{children:"Licensing"}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:["Unless otherwise stated, the site's contributors and/or its licensors own the intellectual property rights for all material on the Codec Wiki. All intellectual property is distributed under CC BY-SA 4.0 unless it is specified otherwise. You may assess the terms & conditions of this Creative Commons license via this link: ",(0,s.jsx)(t.a,{href:"https://creativecommons.org/licenses/by-sa/4.0/",children:"https://creativecommons.org/licenses/by-sa/4.0/"}),". Using assets and/or intellectual property from the Codec Wiki site is subject to these terms unless otherwise specified."]}),"\n",(0,s.jsx)(t.p,{children:"Under CC BY-SA 4.0, you may:"}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"Share - copy and redistribute the material in any medium or format."}),"\n"]}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"Adapt - remix, transform, and build upon the material for any purpose, even commercially."}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"No party can revoke these freedoms as long as you follow the license terms. The terms are as follows:"}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"Attribution - You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use."}),"\n"]}),"\n",(0,s.jsxs)(t.blockquote,{children:["\n",(0,s.jsx)(t.p,{children:"ShareAlike - If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original."}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"Contributors may not apply legal terms or technological measures that legally restrict others from doing anything the license permits."}),"\n",(0,s.jsx)(t.p,{children:"Parts of this website may offer an opportunity for users to post & exchange opinions & information in certain areas of the site. We do not filter, edit, publish or review Comments prior to their presence on the website. Comments do not reflect the views & opinions of contributors, its agents and/or affiliates. Comments reflect the views & opinions of the person who posts their views & opinions. To the extent permitted by applicable laws, the site's host & wiki contributors shall not be liable for the Comments or any liability, damages or expenses caused and/or suffered as a result of any use of and/or posting of and/or appearance of the Comments on this website."}),"\n",(0,s.jsx)(t.p,{children:"Part of the nature of a community-developed wiki is the ability for members of the community to make contributions to the contents of the site. Contributors are responsible for their own contributions to the site, & we shall not be liable for the contributions or any liability, damages or expenses caused and/or suffered as a result of any use of and/or posting of and/or appearance of the contributions to this website."}),"\n",(0,s.jsx)(t.p,{children:"We reserve the right to monitor all Comments and/or contributions & to remove any Comments and/or contributions which can be considered inappropriate, offensive or causes a breach of these Terms & Conditions."}),"\n",(0,s.jsx)(t.p,{children:"You warrant & represent that:"}),"\n",(0,s.jsx)(t.p,{children:"You are entitled to post the Comments/contributions on our website & have all necessary licenses & consents to do so;\nThe Comments/contributions do not invade any intellectual property right, including without limitation copyright, patent or trademark of any third party;\nThe Comments/contributions do not contain any defamatory, libelous, offensive, indecent or otherwise unlawful material which is an invasion of privacy\nThe Comments/contributions will not be used to promote unlawful activity."}),"\n",(0,s.jsx)(t.p,{children:"You hereby grant the Codec Wiki a non-exclusive license to use, reproduce, edit & authorize others to use, reproduce & edit any of your Comments/contributions in any & all forms, formats or media."}),"\n",(0,s.jsxs)(t.ol,{start:"3",children:["\n",(0,s.jsx)(t.li,{children:"iFrames"}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"You may not create frames around our Webpages that alter in any way the visual presentation or appearance of our Website without proper attribution per CC BY-SA 4.0 where the license applies. Elsewhere, written permission is required if an asset is not under the CC BY-SA 4.0 license."}),"\n",(0,s.jsxs)(t.ol,{start:"4",children:["\n",(0,s.jsx)(t.li,{children:"Content Liability"}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"We shall not be held responsible for any content that appears on your Website. You agree to protect & defend us against all claims that arise on your Website. No link(s) should appear on any Website that may be interpreted as libelous, obscene, or criminal, or which infringes, otherwise violates, or advocates the infringement or other violation of, any third party rights."}),"\n",(0,s.jsxs)(t.ol,{start:"5",children:["\n",(0,s.jsx)(t.li,{children:"Your Privacy"}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"Please read our Privacy Policy."}),"\n",(0,s.jsxs)(t.ol,{start:"6",children:["\n",(0,s.jsx)(t.li,{children:"Reservation of Rights"}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"We reserve the right to request that you remove all links or any particular link to our Website. You approve to immediately remove all links to our Website upon request. We also reserve the right to amend these terms & conditions & its linking policy at any time. By continuously linking to our Website, you agree to be bound to & follow these terms & conditions."}),"\n",(0,s.jsxs)(t.ol,{start:"7",children:["\n",(0,s.jsx)(t.li,{children:"Removal of links from our website"}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"If you find any link on our Website that is offensive for any reason, you are free to contact & inform us at any moment. We will consider requests to remove links but we are not obligated to or so or to respond to you directly. We do not ensure that the information on this website is correct, we do not warrant its completeness or accuracy; nor do we promise to ensure that the website remains available or that the material on the website is kept up-to-date."}),"\n",(0,s.jsxs)(t.ol,{start:"8",children:["\n",(0,s.jsx)(t.li,{children:"Disclaimer"}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"To the maximum extent permitted by applicable law, we exclude all representations, warranties & conditions relating to our website & the use of this website. Nothing in this disclaimer will:"}),"\n",(0,s.jsx)(t.p,{children:"limit or exclude our or your liability for death or personal injury;\nlimit or exclude our or your liability for fraud or fraudulent misrepresentation;\nlimit any of our or your liabilities in any way that is not permitted under applicable law; or\nexclude any of our or your liabilities that may not be excluded under applicable law."}),"\n",(0,s.jsx)(t.p,{children:"The limitations & prohibitions of liability set in this Section & elsewhere in this disclaimer: (a) are subject to the preceding paragraph; & (b) govern all liabilities arising under the disclaimer, including liabilities arising in contract, in tort & for breach of statutory duty."}),"\n",(0,s.jsx)(t.p,{children:"As long as the website & the information on the website are provided free of charge, we will not be liable for any loss or damage of any nature."})]})}function u(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>r,x:()=>a});var i=o(6540);const s={},n=i.createContext(s);function r(e){const t=i.useContext(n);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),i.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/112763a5.ca0b41a6.js b/assets/js/112763a5.ca0b41a6.js deleted file mode 100644 index ea5a36779..000000000 --- a/assets/js/112763a5.ca0b41a6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1779],{5836:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>l,contentTitle:()=>r,default:()=>u,frontMatter:()=>s,metadata:()=>a,toc:()=>c});var i=o(4848),n=o(8453);const s={title:"Terms of Use",sidebar_label:"\ud83e\udd1d Terms of Use",position:16},r="Terms of Use",a={id:"terms-of-use",title:"Terms of Use",description:"These terms & conditions outline the rules & regulations for the use of the Codec Wiki Website as a visitor, contributor, or any other party who falls under the jurisdiction of these terms.",source:"@site/docs/terms-of-use.mdx",sourceDirName:".",slug:"/terms-of-use",permalink:"/docs/terms-of-use",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/terms-of-use.mdx",tags:[],version:"current",frontMatter:{title:"Terms of Use",sidebar_label:"\ud83e\udd1d Terms of Use",position:16},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd0f Privacy Policy",permalink:"/docs/privacy-policy"}},l={},c=[];function h(e){const t={a:"a",blockquote:"blockquote",h1:"h1",header:"header",li:"li",ol:"ol",p:"p",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"terms-of-use",children:"Terms of Use"})}),"\n",(0,i.jsx)(t.p,{children:"These terms & conditions outline the rules & regulations for the use of the Codec Wiki Website as a visitor, contributor, or any other party who falls under the jurisdiction of these terms."}),"\n",(0,i.jsx)(t.p,{children:"By accessing this website we assume you accept these terms & conditions. Do not continue to use the site if you do not agree to all of the terms & conditions stated on this page."}),"\n",(0,i.jsx)(t.p,{children:"The following terminology applies to these Terms & Conditions & all other Agreements: \u201cClient\u201d, \u201cYou\u201d & \u201cYour\u201d refers to you, the person log on this website & compliant to these terms & conditions. \u201cOurselves\u201d, \u201cWe\u201d, \u201cOur\u201d & \u201cUs\u201d, refers to the site's owner. \u201cParty\u201d, \u201cParties\u201d, or \u201cUs\u201d, refers to both the Client & ourselves. Any use of the above terminology or other words in the singular, plural, capitalization and/or they/he/she, are taken as interchangeable & therefore as referring to the same."}),"\n",(0,i.jsxs)(t.ol,{children:["\n",(0,i.jsx)(t.li,{children:"Cookies"}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"We may employ the use of cookies in the future. At the time of writing, we do not. If accessing the site employs the use of cookies, you will be prompted to agree to use cookies in agreement with our Privacy Policy. As of writing, our Privacy Policy does not require users' consent to the use of cookies due to the fact that we do not use cookies."}),"\n",(0,i.jsx)(t.p,{children:"Some interactive websites use cookies to let them retrieve user details for each visit. Cookies may be used by our website to enable the functionality of certain areas to make it easier for people visiting our website."}),"\n",(0,i.jsxs)(t.ol,{start:"2",children:["\n",(0,i.jsx)(t.li,{children:"Licensing"}),"\n"]}),"\n",(0,i.jsxs)(t.p,{children:["Unless otherwise stated, the site's contributors and/or its licensors own the intellectual property rights for all material on the Codec Wiki. All intellectual property is distributed under CC BY-SA 4.0 unless it is specified otherwise. You may assess the terms & conditions of this Creative Commons license via this link: ",(0,i.jsx)(t.a,{href:"https://creativecommons.org/licenses/by-sa/4.0/",children:"https://creativecommons.org/licenses/by-sa/4.0/"}),". Using assets and/or intellectual property from the Codec Wiki site is subject to these terms unless otherwise specified."]}),"\n",(0,i.jsx)(t.p,{children:"Under CC BY-SA 4.0, you may:"}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsx)(t.p,{children:"Share - copy and redistribute the material in any medium or format."}),"\n"]}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsx)(t.p,{children:"Adapt - remix, transform, and build upon the material for any purpose, even commercially."}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"No party can revoke these freedoms as long as you follow the license terms. The terms are as follows:"}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsx)(t.p,{children:"Attribution - You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use."}),"\n"]}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsx)(t.p,{children:"ShareAlike - If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original."}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"Contributors may not apply legal terms or technological measures that legally restrict others from doing anything the license permits."}),"\n",(0,i.jsx)(t.p,{children:"Parts of this website may offer an opportunity for users to post & exchange opinions & information in certain areas of the site. We do not filter, edit, publish or review Comments prior to their presence on the website. Comments do not reflect the views & opinions of contributors, its agents and/or affiliates. Comments reflect the views & opinions of the person who posts their views & opinions. To the extent permitted by applicable laws, the site's host & wiki contributors shall not be liable for the Comments or any liability, damages or expenses caused and/or suffered as a result of any use of and/or posting of and/or appearance of the Comments on this website."}),"\n",(0,i.jsx)(t.p,{children:"Part of the nature of a community-developed wiki is the ability for members of the community to make contributions to the contents of the site. Contributors are responsible for their own contributions to the site, & we shall not be liable for the contributions or any liability, damages or expenses caused and/or suffered as a result of any use of and/or posting of and/or appearance of the contributions to this website."}),"\n",(0,i.jsx)(t.p,{children:"We reserve the right to monitor all Comments and/or contributions & to remove any Comments and/or contributions which can be considered inappropriate, offensive or causes a breach of these Terms & Conditions."}),"\n",(0,i.jsx)(t.p,{children:"You warrant & represent that:"}),"\n",(0,i.jsx)(t.p,{children:"You are entitled to post the Comments/contributions on our website & have all necessary licenses & consents to do so;\nThe Comments/contributions do not invade any intellectual property right, including without limitation copyright, patent or trademark of any third party;\nThe Comments/contributions do not contain any defamatory, libelous, offensive, indecent or otherwise unlawful material which is an invasion of privacy\nThe Comments/contributions will not be used to promote unlawful activity."}),"\n",(0,i.jsx)(t.p,{children:"You hereby grant the Codec Wiki a non-exclusive license to use, reproduce, edit & authorize others to use, reproduce & edit any of your Comments/contributions in any & all forms, formats or media."}),"\n",(0,i.jsxs)(t.ol,{start:"3",children:["\n",(0,i.jsx)(t.li,{children:"iFrames"}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"You may not create frames around our Webpages that alter in any way the visual presentation or appearance of our Website without proper attribution per CC BY-SA 4.0 where the license applies. Elsewhere, written permission is required if an asset is not under the CC BY-SA 4.0 license."}),"\n",(0,i.jsxs)(t.ol,{start:"4",children:["\n",(0,i.jsx)(t.li,{children:"Content Liability"}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"We shall not be held responsible for any content that appears on your Website. You agree to protect & defend us against all claims that arise on your Website. No link(s) should appear on any Website that may be interpreted as libelous, obscene, or criminal, or which infringes, otherwise violates, or advocates the infringement or other violation of, any third party rights."}),"\n",(0,i.jsxs)(t.ol,{start:"5",children:["\n",(0,i.jsx)(t.li,{children:"Your Privacy"}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"Please read our Privacy Policy."}),"\n",(0,i.jsxs)(t.ol,{start:"6",children:["\n",(0,i.jsx)(t.li,{children:"Reservation of Rights"}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"We reserve the right to request that you remove all links or any particular link to our Website. You approve to immediately remove all links to our Website upon request. We also reserve the right to amend these terms & conditions & its linking policy at any time. By continuously linking to our Website, you agree to be bound to & follow these terms & conditions."}),"\n",(0,i.jsxs)(t.ol,{start:"7",children:["\n",(0,i.jsx)(t.li,{children:"Removal of links from our website"}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"If you find any link on our Website that is offensive for any reason, you are free to contact & inform us at any moment. We will consider requests to remove links but we are not obligated to or so or to respond to you directly. We do not ensure that the information on this website is correct, we do not warrant its completeness or accuracy; nor do we promise to ensure that the website remains available or that the material on the website is kept up-to-date."}),"\n",(0,i.jsxs)(t.ol,{start:"8",children:["\n",(0,i.jsx)(t.li,{children:"Disclaimer"}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"To the maximum extent permitted by applicable law, we exclude all representations, warranties & conditions relating to our website & the use of this website. Nothing in this disclaimer will:"}),"\n",(0,i.jsx)(t.p,{children:"limit or exclude our or your liability for death or personal injury;\nlimit or exclude our or your liability for fraud or fraudulent misrepresentation;\nlimit any of our or your liabilities in any way that is not permitted under applicable law; or\nexclude any of our or your liabilities that may not be excluded under applicable law."}),"\n",(0,i.jsx)(t.p,{children:"The limitations & prohibitions of liability set in this Section & elsewhere in this disclaimer: (a) are subject to the preceding paragraph; & (b) govern all liabilities arising under the disclaimer, including liabilities arising in contract, in tort & for breach of statutory duty."}),"\n",(0,i.jsx)(t.p,{children:"As long as the website & the information on the website are provided free of charge, we will not be liable for any loss or damage of any nature."})]})}function u(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>r,x:()=>a});var i=o(6540);const n={},s=i.createContext(n);function r(e){const t=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),i.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/12b076f3.9eb621f4.js b/assets/js/12b076f3.9eb621f4.js deleted file mode 100644 index 15138cc35..000000000 --- a/assets/js/12b076f3.9eb621f4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7222],{9905:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>d,contentTitle:()=>r,default:()=>h,frontMatter:()=>o,metadata:()=>n,toc:()=>l});var i=t(4848),a=t(8453);const o={title:"zstd",sidebar_position:7},r="Zstandard",n={id:"data/zstd",title:"zstd",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/data/zstd.mdx",sourceDirName:"data",slug:"/data/zstd",permalink:"/docs/data/zstd",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/zstd.mdx",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"zstd",sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"zpaq",permalink:"/docs/data/zpaq"},next:{title:"tar",permalink:"/docs/data/tar"}},d={},l=[{value:"Usage",id:"usage",level:2},{value:"Compress a file",id:"compress-a-file",level:2},{value:"Decompress a file",id:"decompress-a-file",level:2}];function c(e){const s={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.header,{children:(0,i.jsx)(s.h1,{id:"zstandard",children:"Zstandard"})}),"\n",(0,i.jsx)(s.admonition,{title:"Help Wanted",type:"danger",children:(0,i.jsxs)(s.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,i.jsx)(s.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,i.jsxs)(s.p,{children:["Zstandard is a compression algorithm developed by Facebook known for its extremely fast decompression speeds. It was released in early 2015 and is used in a variety of different contexts. It was designed to perform similarly to older Deflate-based compression algorithms like ",(0,i.jsx)(s.a,{href:"/docs/data/zip",children:"ZIP"})," or ",(0,i.jsx)(s.a,{href:"/docs/data/gzip",children:"gzip"})," while being faster overall. In practice, it is said to compress similarly to pure LZMA (part of ",(0,i.jsx)(s.a,{href:"/docs/data/xz",children:"XZ"})," & ",(0,i.jsx)(s.a,{href:"/docs/data/7z",children:"7-zip"}),") while being much faster."]}),"\n",(0,i.jsxs)(s.p,{children:["While ",(0,i.jsx)(s.code,{children:".tar.zstd"})," archives aren't as popular as ",(0,i.jsx)(s.code,{children:".tar.xz"})," or ",(0,i.jsx)(s.code,{children:".tar.gz"}),", Zstandard is already a very popular tool for compression in the world of open-source software. It has been integrated into both the FreeBSD kernel & the Linux kernel and is available as a filesystem compression method for the btrfs, squashfs, bcachefs, & OpenZFS filesystems. Filesystem compression refers to a compression scheme that transparently compresses files stored on a filesystem at all times, leading to an overall reduction in storage used across the filesystem."]}),"\n",(0,i.jsxs)(s.p,{children:["The command line ",(0,i.jsx)(s.code,{children:"zstd"})," utility can compress to Zstandard at compression levels 1 through 19 by default. The upper bound is raised to 22 when passing the ",(0,i.jsx)(s.code,{children:"--ultra"})," flag. All Arch Linux packages are compressed at zstd level 20, allowing Arch packages to be decompressed 14 times faster compared to XZ at the cost of an average 0.8% filesize increase across all packages. It is popular in the game emulation scene as well, as many game file formats for emulating console games support zstd compression. The ZIP file format standard actually supports Zstandard in compression level 93 since version 6.3.8, published in 2020. Content encoding using zstd is supported in chromium since Chromium 118 behind an experimental flag, meaning it might compete with ",(0,i.jsx)(s.a,{href:"/docs/data/brotli",children:"Brotli"})," on the web in the future. Apple's LZFSE algorithm is purportedly similar to Zstandard compression level 6."]}),"\n",(0,i.jsxs)(s.p,{children:["Zstandard has the potential to effectively compete with nearly every modern compression method available across most modern use cases. In certain scenarios, if it takes off as a content delivery format, it could replace Brotli if the benefits of super-fast & super-light decode improve the responsiveness of web pages & are worth sacrificing a bit of compression ratio. When using the much higher effort settings, it often outcompetes Brotli for the archive size as well. In the future, ",(0,i.jsx)(s.code,{children:".tar.zst"})," could replace 7-zip, ZIP, or other archiving formats, making speedy decode a reality on systems featuring varying levels of compute horsepower."]}),"\n",(0,i.jsx)(s.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsx)(s.admonition,{type:"note",children:(0,i.jsxs)(s.p,{children:["This guide has been written for the ",(0,i.jsx)(s.code,{children:"zstd"})," command-line utility, however GUI archivers such as peazip and 7zip have growing support for zstd."]})}),"\n",(0,i.jsx)(s.h2,{id:"compress-a-file",children:"Compress a file"}),"\n",(0,i.jsxs)(s.p,{children:["Like many other compressing utilities, in order to compress mutliple files, one should probably archive them with ",(0,i.jsx)(s.a,{href:"/docs/data/tar",children:"tar"}),"."]}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-bash",children:"zstd -# {file} -o {file}.zstd\n"})}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.code,{children:"-#"})," is actually a number that represents the desired compression level, for example ",(0,i.jsx)(s.code,{children:"-3"}),", ",(0,i.jsx)(s.code,{children:"-6"}),". By default you can specify 1-19. By also passing ",(0,i.jsx)(s.code,{children:"-ultra"}),", you can go up to compression level 22."]}),"\n",(0,i.jsx)(s.h2,{id:"decompress-a-file",children:"Decompress a file"}),"\n",(0,i.jsx)(s.pre,{children:(0,i.jsx)(s.code,{className:"language-bash",children:"zstd -d {file}.zstd -o file\n"})})]})}function h(e={}){const{wrapper:s}={...(0,a.R)(),...e.components};return s?(0,i.jsx)(s,{...e,children:(0,i.jsx)(c,{...e})}):c(e)}},8453:(e,s,t)=>{t.d(s,{R:()=>r,x:()=>n});var i=t(6540);const a={},o=i.createContext(a);function r(e){const s=i.useContext(o);return i.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function n(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:r(e.components),i.createElement(o.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/12b076f3.dfbfac79.js b/assets/js/12b076f3.dfbfac79.js new file mode 100644 index 000000000..55e8829aa --- /dev/null +++ b/assets/js/12b076f3.dfbfac79.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7222],{4326:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>d,contentTitle:()=>n,default:()=>h,frontMatter:()=>r,metadata:()=>i,toc:()=>l});const i=JSON.parse('{"id":"data/zstd","title":"zstd","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/data/zstd.mdx","sourceDirName":"data","slug":"/data/zstd","permalink":"/docs/data/zstd","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/zstd.mdx","tags":[],"version":"current","sidebarPosition":7,"frontMatter":{"title":"zstd","sidebar_position":7},"sidebar":"tutorialSidebar","previous":{"title":"zpaq","permalink":"/docs/data/zpaq"},"next":{"title":"tar","permalink":"/docs/data/tar"}}');var a=t(4848),o=t(8453);const r={title:"zstd",sidebar_position:7},n="Zstandard",d={},l=[{value:"Usage",id:"usage",level:2},{value:"Compress a file",id:"compress-a-file",level:2},{value:"Decompress a file",id:"decompress-a-file",level:2}];function c(e){const s={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",...(0,o.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.header,{children:(0,a.jsx)(s.h1,{id:"zstandard",children:"Zstandard"})}),"\n",(0,a.jsx)(s.admonition,{title:"Help Wanted",type:"danger",children:(0,a.jsxs)(s.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,a.jsx)(s.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,a.jsxs)(s.p,{children:["Zstandard is a compression algorithm developed by Facebook known for its extremely fast decompression speeds. It was released in early 2015 and is used in a variety of different contexts. It was designed to perform similarly to older Deflate-based compression algorithms like ",(0,a.jsx)(s.a,{href:"/docs/data/zip",children:"ZIP"})," or ",(0,a.jsx)(s.a,{href:"/docs/data/gzip",children:"gzip"})," while being faster overall. In practice, it is said to compress similarly to pure LZMA (part of ",(0,a.jsx)(s.a,{href:"/docs/data/xz",children:"XZ"})," & ",(0,a.jsx)(s.a,{href:"/docs/data/7z",children:"7-zip"}),") while being much faster."]}),"\n",(0,a.jsxs)(s.p,{children:["While ",(0,a.jsx)(s.code,{children:".tar.zstd"})," archives aren't as popular as ",(0,a.jsx)(s.code,{children:".tar.xz"})," or ",(0,a.jsx)(s.code,{children:".tar.gz"}),", Zstandard is already a very popular tool for compression in the world of open-source software. It has been integrated into both the FreeBSD kernel & the Linux kernel and is available as a filesystem compression method for the btrfs, squashfs, bcachefs, & OpenZFS filesystems. Filesystem compression refers to a compression scheme that transparently compresses files stored on a filesystem at all times, leading to an overall reduction in storage used across the filesystem."]}),"\n",(0,a.jsxs)(s.p,{children:["The command line ",(0,a.jsx)(s.code,{children:"zstd"})," utility can compress to Zstandard at compression levels 1 through 19 by default. The upper bound is raised to 22 when passing the ",(0,a.jsx)(s.code,{children:"--ultra"})," flag. All Arch Linux packages are compressed at zstd level 20, allowing Arch packages to be decompressed 14 times faster compared to XZ at the cost of an average 0.8% filesize increase across all packages. It is popular in the game emulation scene as well, as many game file formats for emulating console games support zstd compression. The ZIP file format standard actually supports Zstandard in compression level 93 since version 6.3.8, published in 2020. Content encoding using zstd is supported in chromium since Chromium 118 behind an experimental flag, meaning it might compete with ",(0,a.jsx)(s.a,{href:"/docs/data/brotli",children:"Brotli"})," on the web in the future. Apple's LZFSE algorithm is purportedly similar to Zstandard compression level 6."]}),"\n",(0,a.jsxs)(s.p,{children:["Zstandard has the potential to effectively compete with nearly every modern compression method available across most modern use cases. In certain scenarios, if it takes off as a content delivery format, it could replace Brotli if the benefits of super-fast & super-light decode improve the responsiveness of web pages & are worth sacrificing a bit of compression ratio. When using the much higher effort settings, it often outcompetes Brotli for the archive size as well. In the future, ",(0,a.jsx)(s.code,{children:".tar.zst"})," could replace 7-zip, ZIP, or other archiving formats, making speedy decode a reality on systems featuring varying levels of compute horsepower."]}),"\n",(0,a.jsx)(s.h2,{id:"usage",children:"Usage"}),"\n",(0,a.jsx)(s.admonition,{type:"note",children:(0,a.jsxs)(s.p,{children:["This guide has been written for the ",(0,a.jsx)(s.code,{children:"zstd"})," command-line utility, however GUI archivers such as peazip and 7zip have growing support for zstd."]})}),"\n",(0,a.jsx)(s.h2,{id:"compress-a-file",children:"Compress a file"}),"\n",(0,a.jsxs)(s.p,{children:["Like many other compressing utilities, in order to compress mutliple files, one should probably archive them with ",(0,a.jsx)(s.a,{href:"/docs/data/tar",children:"tar"}),"."]}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-bash",children:"zstd -# {file} -o {file}.zstd\n"})}),"\n",(0,a.jsxs)(s.p,{children:[(0,a.jsx)(s.code,{children:"-#"})," is actually a number that represents the desired compression level, for example ",(0,a.jsx)(s.code,{children:"-3"}),", ",(0,a.jsx)(s.code,{children:"-6"}),". By default you can specify 1-19. By also passing ",(0,a.jsx)(s.code,{children:"-ultra"}),", you can go up to compression level 22."]}),"\n",(0,a.jsx)(s.h2,{id:"decompress-a-file",children:"Decompress a file"}),"\n",(0,a.jsx)(s.pre,{children:(0,a.jsx)(s.code,{className:"language-bash",children:"zstd -d {file}.zstd -o file\n"})})]})}function h(e={}){const{wrapper:s}={...(0,o.R)(),...e.components};return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(c,{...e})}):c(e)}},8453:(e,s,t)=>{t.d(s,{R:()=>r,x:()=>n});var i=t(6540);const a={},o=i.createContext(a);function r(e){const s=i.useContext(o);return i.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function n(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:r(e.components),i.createElement(o.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/12df3b9e.1600344c.js b/assets/js/12df3b9e.1600344c.js deleted file mode 100644 index cd10da33b..000000000 --- a/assets/js/12df3b9e.1600344c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9993],{1793:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>l,contentTitle:()=>a,default:()=>h,frontMatter:()=>r,metadata:()=>o,toc:()=>d});var i=s(4848),t=s(8453);const r={title:"QOI",sidebar_position:8},a="QOI",o={id:"images/QOI",title:"QOI",description:"QOI (Quite OK Image Format) is an image compression format that aims to provide a simple, fast, and efficient way to compress and decompress images losslessly. It was designed to be easy to implement while offering better compression ratios than the widely used but more complex PNG format while achieving much faster encoding & decoding speeds.",source:"@site/docs/images/QOI.mdx",sourceDirName:"images",slug:"/images/QOI",permalink:"/docs/images/QOI",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/QOI.mdx",tags:[],version:"current",sidebarPosition:8,frontMatter:{title:"QOI",sidebar_position:8},sidebar:"tutorialSidebar",previous:{title:"JPEG XL",permalink:"/docs/images/JXL"},next:{title:"x264",permalink:"/docs/encoders/x264"}},l={},d=[{value:"Performance Checklist",id:"performance-checklist",level:2},{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"Benchmarks",id:"benchmarks",level:3},{value:"Advantages",id:"advantages",level:3},{value:"Limitations",id:"limitations",level:3}];function c(e){const n={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,t.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"qoi",children:"QOI"})}),"\n",(0,i.jsxs)(n.p,{children:["QOI (Quite OK Image Format) is an image compression format that aims to provide a simple, fast, and efficient way to compress and decompress images losslessly. It was designed to be easy to implement while offering better compression ratios than the widely used but more complex ",(0,i.jsx)(n.a,{href:"/docs/images/PNG",children:"PNG"})," format while achieving much faster encoding & decoding speeds."]}),"\n",(0,i.jsx)(n.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,i.jsxs)(n.p,{children:["Lossless? ",(0,i.jsx)(n.em,{children:"Yes"})]}),"\n",(0,i.jsxs)(n.p,{children:["Lossy? ",(0,i.jsx)(n.em,{children:"No"})]}),"\n",(0,i.jsxs)(n.p,{children:["Supported Bit Depths:\n",(0,i.jsx)(n.em,{children:"8 BPC"})]}),"\n",(0,i.jsxs)(n.p,{children:["HDR/Wide Gamut? ",(0,i.jsx)(n.em,{children:"No"})]}),"\n",(0,i.jsxs)(n.p,{children:["Animation? ",(0,i.jsx)(n.em,{children:"No"})]}),"\n",(0,i.jsxs)(n.p,{children:["Transparency? ",(0,i.jsx)(n.em,{children:"Yes"})]}),"\n",(0,i.jsxs)(n.p,{children:["Progressive Decode? ",(0,i.jsx)(n.em,{children:"No"})]}),"\n",(0,i.jsxs)(n.p,{children:["Royalty Free? ",(0,i.jsx)(n.em,{children:"Yes"})]}),"\n",(0,i.jsx)(n.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,i.jsx)(n.p,{children:"QOI compression is based on a simple and fast algorithm that exploits spatial redundancy in images. The algorithm uses a combination of run-length encoding (RLE), a small lookup table, delta encoding, and full-color pixel storage to achieve efficient compression. Depending on the algorithm's decision, a chunk (pixel) can take up one to five bytes."}),"\n",(0,i.jsx)(n.p,{children:"The QOI format supports images with 3 or 4 channels (RGB or RGBA) and 8 bits per channel. The format supports two colorspaces: Linear RGB & sRGB with linear alpha. These do not affect the way pixels are encoded."}),"\n",(0,i.jsx)(n.p,{children:"Here is a breakdown of the various chunk types in QOI:"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.code,{children:"QOI_OP_RGB"})}),": Full RGB pixel value using 8 bits (1 byte) for each of the red, green, and blue channels. The alpha channel is 255 in RGB images, and always remains unchanged."]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.code,{children:"QOI_OP_RGBA"})}),": Full RGBA pixel value using 8 bits for each of the red, green, blue, & alpha channels."]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.code,{children:"QOI_OP_DIFF"})}),": The difference between the current pixel and the previous pixel for the red, green, and blue channels are stored using 2 bits for each channel. The differences are stored with a bias of 2 and wrap (so 1 minus 2 would be 255). The alpha channel remains unchanged."]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.code,{children:"QOI_OP_LUMA"})}),": These pixels encode the green channel difference from the previous pixel using 6 bits, and then encode the red and blue channel differences relative to the green channel difference using 4 bits each. This allows for more efficient encoding of small color changes. The alpha channel remains unchanged."]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.code,{children:"QOI_OP_RUN"})}),": These are the simplest, encoding a run-length of pixels that are identical to the previous pixel. The run length is stored using 6 bits with a bias of -1, allowing for runs of 1 to 62 pixels."]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:(0,i.jsx)(n.code,{children:"QOI_OP_INDEX"})}),": These are stored by referencing a previously seen pixel value from a rolling array of 64 recent pixel values by using a simple hash on each pixel as it is identified. If another pixel matches a previously seen hash value in the array, the index of the referenced pixel is stored."]}),"\n"]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"The QOI format also includes a simple 14-byte header that stores the image dimensions, color space, and channel depth information. The end of file is signaled by an 8-byte end marker."}),"\n",(0,i.jsx)(n.h3,{id:"benchmarks",children:"Benchmarks"}),"\n",(0,i.jsxs)(n.p,{children:["The creator of QOI benchmarked the format against libpng & ",(0,i.jsx)(n.code,{children:"stbi_image_write"})," using the C implementation in QOI via ",(0,i.jsx)(n.a,{href:"https://github.com/phoboslab/qoi/blob/master/qoibench.c",children:(0,i.jsx)(n.code,{children:"qoibench.c"})})," on a collection of 2,879 screenshots, icons, photos, & textures (",(0,i.jsx)(n.a,{href:"https://qoiformat.org/benchmark/qoi_benchmark_suite.tar",children:"source"}),"). The results are as follows:"]}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{children:(0,i.jsx)(n.strong,{children:"Library"})}),(0,i.jsx)(n.th,{children:(0,i.jsx)(n.strong,{children:"Decode (ms)"})}),(0,i.jsx)(n.th,{children:(0,i.jsx)(n.strong,{children:"Encode (ms)"})}),(0,i.jsx)(n.th,{children:(0,i.jsx)(n.strong,{children:"Decode MP/s"})}),(0,i.jsx)(n.th,{children:(0,i.jsx)(n.strong,{children:"Encode MP/s"})}),(0,i.jsx)(n.th,{children:(0,i.jsx)(n.strong,{children:"Size (kb)"})}),(0,i.jsx)(n.th,{style:{textAlign:"right"},children:(0,i.jsx)(n.strong,{children:"Compression Rate"})})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"libpng"})}),(0,i.jsx)(n.td,{children:"7.0"}),(0,i.jsx)(n.td,{children:"83.8"}),(0,i.jsx)(n.td,{children:"66.56"}),(0,i.jsx)(n.td,{children:"5.54"}),(0,i.jsx)(n.td,{children:"398"}),(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"24.2%"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"stbi"})}),(0,i.jsx)(n.td,{children:"7.0"}),(0,i.jsx)(n.td,{children:"60.5"}),(0,i.jsx)(n.td,{children:"66.63"}),(0,i.jsx)(n.td,{children:"7.67"}),(0,i.jsx)(n.td,{children:"561"}),(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"34.2%"})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"qoi"})}),(0,i.jsx)(n.td,{children:"2.1"}),(0,i.jsx)(n.td,{children:"2.9"}),(0,i.jsx)(n.td,{children:"226.03"}),(0,i.jsx)(n.td,{children:"161.99"}),(0,i.jsx)(n.td,{children:"463"}),(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"28.2%"})]})]})]}),"\n",(0,i.jsxs)(n.p,{children:["The results show that QOI is significantly faster than libpng and ",(0,i.jsx)(n.code,{children:"stb_image_write"}),", and it also achieves better compression ratios than libpng on average."]}),"\n",(0,i.jsx)(n.h3,{id:"advantages",children:"Advantages"}),"\n",(0,i.jsx)(n.p,{children:"Some of the key advantages of QOI include:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["Super simple: ",(0,i.jsx)(n.a,{href:"https://qoiformat.org/qoi-specification.pdf",children:"the spec"})," is only one page"]}),"\n",(0,i.jsx)(n.li,{children:"Extremely fast encoding & decoding speeds"}),"\n",(0,i.jsx)(n.li,{children:"Data chunks are byte-aligned, so data can be streamed to a decoder one byte at a time"}),"\n",(0,i.jsx)(n.li,{children:"Better compression ratios compared to PNG for many types of images"}),"\n",(0,i.jsx)(n.li,{children:"Supports transparency"}),"\n",(0,i.jsx)(n.li,{children:"Royalty-free, open-source (CC0), & easy to integrate into any application"}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"limitations",children:"Limitations"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:"Limited to 8 bits per channel (no support for higher bit depths)"}),"\n",(0,i.jsx)(n.li,{children:"Not suitable for images with high-frequency noise or very little spatial redundancy"}),"\n",(0,i.jsx)(n.li,{children:"Lacks advanced features like progressive loading, interlacing, or custom metadata"}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Despite its limitations, QOI provides a compelling alternative to PNG for many use cases where simplicity, speed, and good compression ratios are desired. QOI is not especially well supported at present, but adoption is rapidly growing as developers can easily integrate support into their applications due to the format's simplicity."})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(c,{...e})}):c(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>a,x:()=>o});var i=s(6540);const t={},r=i.createContext(t);function a(e){const n=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),i.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/12df3b9e.e4979bf4.js b/assets/js/12df3b9e.e4979bf4.js new file mode 100644 index 000000000..28d943244 --- /dev/null +++ b/assets/js/12df3b9e.e4979bf4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9993],{9627:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>h,frontMatter:()=>a,metadata:()=>i,toc:()=>d});const i=JSON.parse('{"id":"images/QOI","title":"QOI","description":"QOI (Quite OK Image Format) is an image compression format that aims to provide a simple, fast, and efficient way to compress and decompress images losslessly. It was designed to be easy to implement while offering better compression ratios than the widely used but more complex PNG format while achieving much faster encoding & decoding speeds.","source":"@site/docs/images/QOI.mdx","sourceDirName":"images","slug":"/images/QOI","permalink":"/docs/images/QOI","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/QOI.mdx","tags":[],"version":"current","sidebarPosition":8,"frontMatter":{"title":"QOI","sidebar_position":8},"sidebar":"tutorialSidebar","previous":{"title":"JPEG XL","permalink":"/docs/images/JXL"},"next":{"title":"x264","permalink":"/docs/encoders/x264"}}');var t=s(4848),r=s(8453);const a={title:"QOI",sidebar_position:8},o="QOI",l={},d=[{value:"Performance Checklist",id:"performance-checklist",level:2},{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"Benchmarks",id:"benchmarks",level:3},{value:"Advantages",id:"advantages",level:3},{value:"Limitations",id:"limitations",level:3}];function c(e){const n={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"qoi",children:"QOI"})}),"\n",(0,t.jsxs)(n.p,{children:["QOI (Quite OK Image Format) is an image compression format that aims to provide a simple, fast, and efficient way to compress and decompress images losslessly. It was designed to be easy to implement while offering better compression ratios than the widely used but more complex ",(0,t.jsx)(n.a,{href:"/docs/images/PNG",children:"PNG"})," format while achieving much faster encoding & decoding speeds."]}),"\n",(0,t.jsx)(n.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,t.jsxs)(n.p,{children:["Lossless? ",(0,t.jsx)(n.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(n.p,{children:["Lossy? ",(0,t.jsx)(n.em,{children:"No"})]}),"\n",(0,t.jsxs)(n.p,{children:["Supported Bit Depths:\n",(0,t.jsx)(n.em,{children:"8 BPC"})]}),"\n",(0,t.jsxs)(n.p,{children:["HDR/Wide Gamut? ",(0,t.jsx)(n.em,{children:"No"})]}),"\n",(0,t.jsxs)(n.p,{children:["Animation? ",(0,t.jsx)(n.em,{children:"No"})]}),"\n",(0,t.jsxs)(n.p,{children:["Transparency? ",(0,t.jsx)(n.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(n.p,{children:["Progressive Decode? ",(0,t.jsx)(n.em,{children:"No"})]}),"\n",(0,t.jsxs)(n.p,{children:["Royalty Free? ",(0,t.jsx)(n.em,{children:"Yes"})]}),"\n",(0,t.jsx)(n.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,t.jsx)(n.p,{children:"QOI compression is based on a simple and fast algorithm that exploits spatial redundancy in images. The algorithm uses a combination of run-length encoding (RLE), a small lookup table, delta encoding, and full-color pixel storage to achieve efficient compression. Depending on the algorithm's decision, a chunk (pixel) can take up one to five bytes."}),"\n",(0,t.jsx)(n.p,{children:"The QOI format supports images with 3 or 4 channels (RGB or RGBA) and 8 bits per channel. The format supports two colorspaces: Linear RGB & sRGB with linear alpha. These do not affect the way pixels are encoded."}),"\n",(0,t.jsx)(n.p,{children:"Here is a breakdown of the various chunk types in QOI:"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"QOI_OP_RGB"})}),": Full RGB pixel value using 8 bits (1 byte) for each of the red, green, and blue channels. The alpha channel is 255 in RGB images, and always remains unchanged."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"QOI_OP_RGBA"})}),": Full RGBA pixel value using 8 bits for each of the red, green, blue, & alpha channels."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"QOI_OP_DIFF"})}),": The difference between the current pixel and the previous pixel for the red, green, and blue channels are stored using 2 bits for each channel. The differences are stored with a bias of 2 and wrap (so 1 minus 2 would be 255). The alpha channel remains unchanged."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"QOI_OP_LUMA"})}),": These pixels encode the green channel difference from the previous pixel using 6 bits, and then encode the red and blue channel differences relative to the green channel difference using 4 bits each. This allows for more efficient encoding of small color changes. The alpha channel remains unchanged."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"QOI_OP_RUN"})}),": These are the simplest, encoding a run-length of pixels that are identical to the previous pixel. The run length is stored using 6 bits with a bias of -1, allowing for runs of 1 to 62 pixels."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"QOI_OP_INDEX"})}),": These are stored by referencing a previously seen pixel value from a rolling array of 64 recent pixel values by using a simple hash on each pixel as it is identified. If another pixel matches a previously seen hash value in the array, the index of the referenced pixel is stored."]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"The QOI format also includes a simple 14-byte header that stores the image dimensions, color space, and channel depth information. The end of file is signaled by an 8-byte end marker."}),"\n",(0,t.jsx)(n.h3,{id:"benchmarks",children:"Benchmarks"}),"\n",(0,t.jsxs)(n.p,{children:["The creator of QOI benchmarked the format against libpng & ",(0,t.jsx)(n.code,{children:"stbi_image_write"})," using the C implementation in QOI via ",(0,t.jsx)(n.a,{href:"https://github.com/phoboslab/qoi/blob/master/qoibench.c",children:(0,t.jsx)(n.code,{children:"qoibench.c"})})," on a collection of 2,879 screenshots, icons, photos, & textures (",(0,t.jsx)(n.a,{href:"https://qoiformat.org/benchmark/qoi_benchmark_suite.tar",children:"source"}),"). The results are as follows:"]}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.th,{children:(0,t.jsx)(n.strong,{children:"Library"})}),(0,t.jsx)(n.th,{children:(0,t.jsx)(n.strong,{children:"Decode (ms)"})}),(0,t.jsx)(n.th,{children:(0,t.jsx)(n.strong,{children:"Encode (ms)"})}),(0,t.jsx)(n.th,{children:(0,t.jsx)(n.strong,{children:"Decode MP/s"})}),(0,t.jsx)(n.th,{children:(0,t.jsx)(n.strong,{children:"Encode MP/s"})}),(0,t.jsx)(n.th,{children:(0,t.jsx)(n.strong,{children:"Size (kb)"})}),(0,t.jsx)(n.th,{style:{textAlign:"right"},children:(0,t.jsx)(n.strong,{children:"Compression Rate"})})]})}),(0,t.jsxs)(n.tbody,{children:[(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"libpng"})}),(0,t.jsx)(n.td,{children:"7.0"}),(0,t.jsx)(n.td,{children:"83.8"}),(0,t.jsx)(n.td,{children:"66.56"}),(0,t.jsx)(n.td,{children:"5.54"}),(0,t.jsx)(n.td,{children:"398"}),(0,t.jsx)(n.td,{style:{textAlign:"right"},children:"24.2%"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"stbi"})}),(0,t.jsx)(n.td,{children:"7.0"}),(0,t.jsx)(n.td,{children:"60.5"}),(0,t.jsx)(n.td,{children:"66.63"}),(0,t.jsx)(n.td,{children:"7.67"}),(0,t.jsx)(n.td,{children:"561"}),(0,t.jsx)(n.td,{style:{textAlign:"right"},children:"34.2%"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:(0,t.jsx)(n.code,{children:"qoi"})}),(0,t.jsx)(n.td,{children:"2.1"}),(0,t.jsx)(n.td,{children:"2.9"}),(0,t.jsx)(n.td,{children:"226.03"}),(0,t.jsx)(n.td,{children:"161.99"}),(0,t.jsx)(n.td,{children:"463"}),(0,t.jsx)(n.td,{style:{textAlign:"right"},children:"28.2%"})]})]})]}),"\n",(0,t.jsxs)(n.p,{children:["The results show that QOI is significantly faster than libpng and ",(0,t.jsx)(n.code,{children:"stb_image_write"}),", and it also achieves better compression ratios than libpng on average."]}),"\n",(0,t.jsx)(n.h3,{id:"advantages",children:"Advantages"}),"\n",(0,t.jsx)(n.p,{children:"Some of the key advantages of QOI include:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Super simple: ",(0,t.jsx)(n.a,{href:"https://qoiformat.org/qoi-specification.pdf",children:"the spec"})," is only one page"]}),"\n",(0,t.jsx)(n.li,{children:"Extremely fast encoding & decoding speeds"}),"\n",(0,t.jsx)(n.li,{children:"Data chunks are byte-aligned, so data can be streamed to a decoder one byte at a time"}),"\n",(0,t.jsx)(n.li,{children:"Better compression ratios compared to PNG for many types of images"}),"\n",(0,t.jsx)(n.li,{children:"Supports transparency"}),"\n",(0,t.jsx)(n.li,{children:"Royalty-free, open-source (CC0), & easy to integrate into any application"}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"limitations",children:"Limitations"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Limited to 8 bits per channel (no support for higher bit depths)"}),"\n",(0,t.jsx)(n.li,{children:"Not suitable for images with high-frequency noise or very little spatial redundancy"}),"\n",(0,t.jsx)(n.li,{children:"Lacks advanced features like progressive loading, interlacing, or custom metadata"}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Despite its limitations, QOI provides a compelling alternative to PNG for many use cases where simplicity, speed, and good compression ratios are desired. QOI is not especially well supported at present, but adoption is rapidly growing as developers can easily integrate support into their applications due to the format's simplicity."})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>a,x:()=>o});var i=s(6540);const t={},r=i.createContext(t);function a(e){const n=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),i.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/17896441.bdec4053.js b/assets/js/17896441.bf78c8e6.js similarity index 98% rename from assets/js/17896441.bdec4053.js rename to assets/js/17896441.bf78c8e6.js index c55fce9eb..0221eaf12 100644 --- a/assets/js/17896441.bdec4053.js +++ b/assets/js/17896441.bf78c8e6.js @@ -1 +1 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8401],{2234:(e,t,n)=>{n.d(t,{A:()=>c});n(6540);var s=n(4164),a=n(4084),i=n(7559),l=n(7293),o=n(4848);function r(e){let{className:t}=e;return(0,o.jsx)(l.A,{type:"caution",title:(0,o.jsx)(a.Rc,{}),className:(0,s.A)(t,i.G.common.unlistedBanner),children:(0,o.jsx)(a.Uh,{})})}function c(e){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.AE,{}),(0,o.jsx)(r,{...e})]})}},1689:(e,t,n)=>{n.d(t,{A:()=>d});n(6540);var s=n(4164),a=n(4084),i=n(7559),l=n(7293),o=n(4848);function r(e){let{className:t}=e;return(0,o.jsx)(l.A,{type:"caution",title:(0,o.jsx)(a.Yh,{}),className:(0,s.A)(t,i.G.common.draftBanner),children:(0,o.jsx)(a.TT,{})})}var c=n(2234);function d(e){let{metadata:t}=e;const{unlisted:n,frontMatter:s}=t;return(0,o.jsxs)(o.Fragment,{children:[(n||s.unlisted)&&(0,o.jsx)(c.A,{}),s.draft&&(0,o.jsx)(r,{})]})}},575:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ae});var s=n(6540),a=n(1213),i=n(9532),l=n(4848);const o=s.createContext(null);function r(e){let{children:t,content:n}=e;const a=function(e){return(0,s.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(n);return(0,l.jsx)(o.Provider,{value:a,children:t})}function c(){const e=(0,s.useContext)(o);if(null===e)throw new i.dV("DocProvider");return e}function d(){const{metadata:e,frontMatter:t,assets:n}=c();return(0,l.jsx)(a.be,{title:e.title,description:e.description,keywords:t.keywords,image:n.image??t.image})}var u=n(4164),m=n(4581),h=n(1312),v=n(9022);function b(e){const{previous:t,next:n}=e;return(0,l.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,h.T)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,l.jsx)(v.A,{...t,subLabel:(0,l.jsx)(h.A,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),n&&(0,l.jsx)(v.A,{...n,subLabel:(0,l.jsx)(h.A,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}function x(){const{metadata:e}=c();return(0,l.jsx)(b,{previous:e.previous,next:e.next})}var g=n(4586),f=n(8774),p=n(8295),j=n(7559),A=n(3886),N=n(3025);const L={unreleased:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,l.jsx)(h.A,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:(0,l.jsx)("b",{children:n.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,l.jsx)(h.A,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:(0,l.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function C(e){const t=L[e.versionMetadata.banner];return(0,l.jsx)(t,{...e})}function _(e){let{versionLabel:t,to:n,onClick:s}=e;return(0,l.jsx)(h.A,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,l.jsx)("b",{children:(0,l.jsx)(f.A,{to:n,onClick:s,children:(0,l.jsx)(h.A,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label",children:"latest version"})})})},children:"For up-to-date documentation, see the {latestVersionLink} ({versionLabel})."})}function T(e){let{className:t,versionMetadata:n}=e;const{siteConfig:{title:s}}=(0,g.A)(),{pluginId:a}=(0,p.vT)({failfast:!0}),{savePreferredVersionName:i}=(0,A.g1)(a),{latestDocSuggestion:o,latestVersionSuggestion:r}=(0,p.HW)(a),c=o??(d=r).docs.find((e=>e.id===d.mainDocId));var d;return(0,l.jsxs)("div",{className:(0,u.A)(t,j.G.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,l.jsx)("div",{children:(0,l.jsx)(C,{siteTitle:s,versionMetadata:n})}),(0,l.jsx)("div",{className:"margin-top--md",children:(0,l.jsx)(_,{versionLabel:r.label,to:c.path,onClick:()=>i(r.name)})})]})}function k(e){let{className:t}=e;const n=(0,N.r)();return n.banner?(0,l.jsx)(T,{className:t,versionMetadata:n}):null}function H(e){let{className:t}=e;const n=(0,N.r)();return n.badge?(0,l.jsx)("span",{className:(0,u.A)(t,j.G.docs.docVersionBadge,"badge badge--secondary"),children:(0,l.jsx)(h.A,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}var M=n(2053),y=n(4336);function w(){const{metadata:e}=c(),{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:s,tags:a}=e,i=a.length>0,o=!!(t||n||s);return i||o?(0,l.jsxs)("footer",{className:(0,u.A)(j.G.docs.docFooter,"docusaurus-mt-lg"),children:[i&&(0,l.jsx)("div",{className:(0,u.A)("row margin-top--sm",j.G.docs.docFooterTagsRow),children:(0,l.jsx)("div",{className:"col",children:(0,l.jsx)(M.A,{tags:a})})}),o&&(0,l.jsx)(y.A,{className:(0,u.A)("margin-top--sm",j.G.docs.docFooterEditMetaRow),editUrl:t,lastUpdatedAt:n,lastUpdatedBy:s})]}):null}var B=n(1422),I=n(5195);const E={tocCollapsibleButton:"tocCollapsibleButton_TO0P",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_MG3E"};function V(e){let{collapsed:t,...n}=e;return(0,l.jsx)("button",{type:"button",...n,className:(0,u.A)("clean-btn",E.tocCollapsibleButton,!t&&E.tocCollapsibleButtonExpanded,n.className),children:(0,l.jsx)(h.A,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const O={tocCollapsible:"tocCollapsible_ETCw",tocCollapsibleContent:"tocCollapsibleContent_vkbj",tocCollapsibleExpanded:"tocCollapsibleExpanded_sAul"};function R(e){let{toc:t,className:n,minHeadingLevel:s,maxHeadingLevel:a}=e;const{collapsed:i,toggleCollapsed:o}=(0,B.u)({initialState:!0});return(0,l.jsxs)("div",{className:(0,u.A)(O.tocCollapsible,!i&&O.tocCollapsibleExpanded,n),children:[(0,l.jsx)(V,{collapsed:i,onClick:o}),(0,l.jsx)(B.N,{lazy:!0,className:O.tocCollapsibleContent,collapsed:i,children:(0,l.jsx)(I.A,{toc:t,minHeadingLevel:s,maxHeadingLevel:a})})]})}const G={tocMobile:"tocMobile_ITEo"};function S(){const{toc:e,frontMatter:t}=c();return(0,l.jsx)(R,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,u.A)(j.G.docs.docTocMobile,G.tocMobile)})}var F=n(7763);function P(){const{toc:e,frontMatter:t}=c();return(0,l.jsx)(F.A,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:j.G.docs.docTocDesktop})}var U=n(1107),D=n(8509);function z(e){let{children:t}=e;const n=function(){const{metadata:e,frontMatter:t,contentTitle:n}=c();return t.hide_title||void 0!==n?null:e.title}();return(0,l.jsxs)("div",{className:(0,u.A)(j.G.docs.docMarkdown,"markdown"),children:[n&&(0,l.jsx)("header",{children:(0,l.jsx)(U.A,{as:"h1",children:n})}),(0,l.jsx)(D.A,{children:t})]})}var W=n(6972),q=n(9169),Y=n(6025);function $(e){return(0,l.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,l.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"})})}const Q={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function X(){const e=(0,Y.Ay)("/");return(0,l.jsx)("li",{className:"breadcrumbs__item",children:(0,l.jsx)(f.A,{"aria-label":(0,h.T)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e,children:(0,l.jsx)($,{className:Q.breadcrumbHomeIcon})})})}const Z={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function J(e){let{children:t,href:n,isLast:s}=e;const a="breadcrumbs__link";return s?(0,l.jsx)("span",{className:a,itemProp:"name",children:t}):n?(0,l.jsx)(f.A,{className:a,href:n,itemProp:"item",children:(0,l.jsx)("span",{itemProp:"name",children:t})}):(0,l.jsx)("span",{className:a,children:t})}function K(e){let{children:t,active:n,index:s,addMicrodata:a}=e;return(0,l.jsxs)("li",{...a&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,u.A)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[t,(0,l.jsx)("meta",{itemProp:"position",content:String(s+1)})]})}function ee(){const e=(0,W.OF)(),t=(0,q.Dt)();return e?(0,l.jsx)("nav",{className:(0,u.A)(j.G.docs.docBreadcrumbs,Z.breadcrumbsContainer),"aria-label":(0,h.T)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,l.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,l.jsx)(X,{}),e.map(((t,n)=>{const s=n===e.length-1,a="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,l.jsx)(K,{active:s,index:n,addMicrodata:!!a,children:(0,l.jsx)(J,{href:a,isLast:s,children:t.label})},n)}))]})}):null}var te=n(1689);const ne={docItemContainer:"docItemContainer_Djhp",docItemCol:"docItemCol_VOVn"};function se(e){let{children:t}=e;const n=function(){const{frontMatter:e,toc:t}=c(),n=(0,m.l)(),s=e.hide_table_of_contents,a=!s&&t.length>0;return{hidden:s,mobile:a?(0,l.jsx)(S,{}):void 0,desktop:!a||"desktop"!==n&&"ssr"!==n?void 0:(0,l.jsx)(P,{})}}(),{metadata:s}=c();return(0,l.jsxs)("div",{className:"row",children:[(0,l.jsxs)("div",{className:(0,u.A)("col",!n.hidden&&ne.docItemCol),children:[(0,l.jsx)(te.A,{metadata:s}),(0,l.jsx)(k,{}),(0,l.jsxs)("div",{className:ne.docItemContainer,children:[(0,l.jsxs)("article",{children:[(0,l.jsx)(ee,{}),(0,l.jsx)(H,{}),n.mobile,(0,l.jsx)(z,{children:t}),(0,l.jsx)(w,{})]}),(0,l.jsx)(x,{})]})]}),n.desktop&&(0,l.jsx)("div",{className:"col col--3",children:n.desktop})]})}function ae(e){const t=`docs-doc-id-${e.content.metadata.id}`,n=e.content;return(0,l.jsx)(r,{content:e.content,children:(0,l.jsxs)(a.e3,{className:t,children:[(0,l.jsx)(d,{}),(0,l.jsx)(se,{children:(0,l.jsx)(n,{})})]})})}},9022:(e,t,n)=>{n.d(t,{A:()=>l});n(6540);var s=n(4164),a=n(8774),i=n(4848);function l(e){const{permalink:t,title:n,subLabel:l,isNext:o}=e;return(0,i.jsxs)(a.A,{className:(0,s.A)("pagination-nav__link",o?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[l&&(0,i.jsx)("div",{className:"pagination-nav__sublabel",children:l}),(0,i.jsx)("div",{className:"pagination-nav__label",children:n})]})}},7763:(e,t,n)=>{n.d(t,{A:()=>c});n(6540);var s=n(4164),a=n(5195);const i={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var l=n(4848);const o="table-of-contents__link toc-highlight",r="table-of-contents__link--active";function c(e){let{className:t,...n}=e;return(0,l.jsx)("div",{className:(0,s.A)(i.tableOfContents,"thin-scrollbar",t),children:(0,l.jsx)(a.A,{...n,linkClassName:o,linkActiveClassName:r})})}},5195:(e,t,n)=>{n.d(t,{A:()=>b});var s=n(6540),a=n(6342);function i(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const s=n.slice(2,e.level);e.parentIndex=Math.max(...s),n[e.level]=t}));const s=[];return t.forEach((e=>{const{parentIndex:n,...a}=e;n>=0?t[n].children.push(a):s.push(a)})),s}function l(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:s}=e;return t.flatMap((e=>{const t=l({toc:e.children,minHeadingLevel:n,maxHeadingLevel:s});return function(e){return e.level>=n&&e.level<=s}(e)?[{...e,children:t}]:t}))}function o(e){const t=e.getBoundingClientRect();return t.top===t.bottom?o(e.parentNode):t}function r(e,t){let{anchorTopOffset:n}=t;const s=e.find((e=>o(e).top>=n));if(s){return function(e){return e.top>0&&e.bottom{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function d(e){const t=(0,s.useRef)(void 0),n=c();(0,s.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:s,linkActiveClassName:a,minHeadingLevel:i,maxHeadingLevel:l}=e;function o(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(s),o=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const s=[];for(let a=t;a<=n;a+=1)s.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(s.join()))}({minHeadingLevel:i,maxHeadingLevel:l}),c=r(o,{anchorTopOffset:n.current}),d=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(a),e.classList.add(a),t.current=e):e.classList.remove(a)}(e,e===d)}))}return document.addEventListener("scroll",o),document.addEventListener("resize",o),o(),()=>{document.removeEventListener("scroll",o),document.removeEventListener("resize",o)}}),[e,n])}var u=n(8774),m=n(4848);function h(e){let{toc:t,className:n,linkClassName:s,isChild:a}=e;return t.length?(0,m.jsx)("ul",{className:a?void 0:n,children:t.map((e=>(0,m.jsxs)("li",{children:[(0,m.jsx)(u.A,{to:`#${e.id}`,className:s??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,m.jsx)(h,{isChild:!0,toc:e.children,className:n,linkClassName:s})]},e.id)))}):null}const v=s.memo(h);function b(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:o="table-of-contents__link",linkActiveClassName:r,minHeadingLevel:c,maxHeadingLevel:u,...h}=e;const b=(0,a.p)(),x=c??b.tableOfContents.minHeadingLevel,g=u??b.tableOfContents.maxHeadingLevel,f=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:a}=e;return(0,s.useMemo)((()=>l({toc:i(t),minHeadingLevel:n,maxHeadingLevel:a})),[t,n,a])}({toc:t,minHeadingLevel:x,maxHeadingLevel:g});return d((0,s.useMemo)((()=>{if(o&&r)return{linkClassName:o,linkActiveClassName:r,minHeadingLevel:x,maxHeadingLevel:g}}),[o,r,x,g])),(0,m.jsx)(v,{toc:f,className:n,linkClassName:o,...h})}},6133:(e,t,n)=>{n.d(t,{A:()=>o});n(6540);var s=n(4164),a=n(8774);const i={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var l=n(4848);function o(e){let{permalink:t,label:n,count:o,description:r}=e;return(0,l.jsxs)(a.A,{href:t,title:r,className:(0,s.A)(i.tag,o?i.tagWithCount:i.tagRegular),children:[n,o&&(0,l.jsx)("span",{children:o})]})}},2053:(e,t,n)=>{n.d(t,{A:()=>r});n(6540);var s=n(4164),a=n(1312),i=n(6133);const l={tags:"tags_jXut",tag:"tag_QGVx"};var o=n(4848);function r(e){let{tags:t}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("b",{children:(0,o.jsx)(a.A,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,o.jsx)("ul",{className:(0,s.A)(l.tags,"padding--none","margin-left--sm"),children:t.map((e=>(0,o.jsx)("li",{className:l.tag,children:(0,o.jsx)(i.A,{...e})},e.permalink)))})]})}},4084:(e,t,n)=>{n.d(t,{AE:()=>r,Rc:()=>l,TT:()=>d,Uh:()=>o,Yh:()=>c});n(6540);var s=n(1312),a=n(5260),i=n(4848);function l(){return(0,i.jsx)(s.A,{id:"theme.contentVisibility.unlistedBanner.title",description:"The unlisted content banner title",children:"Unlisted page"})}function o(){return(0,i.jsx)(s.A,{id:"theme.contentVisibility.unlistedBanner.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function r(){return(0,i.jsx)(a.A,{children:(0,i.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function c(){return(0,i.jsx)(s.A,{id:"theme.contentVisibility.draftBanner.title",description:"The draft content banner title",children:"Draft page"})}function d(){return(0,i.jsx)(s.A,{id:"theme.contentVisibility.draftBanner.message",description:"The draft content banner message",children:"This page is a draft. It will only be visible in dev and be excluded from the production build."})}}}]); \ No newline at end of file +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8401],{2234:(e,t,n)=>{n.d(t,{A:()=>c});n(6540);var s=n(4164),a=n(4084),i=n(7559),l=n(7293),o=n(4848);function r(e){let{className:t}=e;return(0,o.jsx)(l.A,{type:"caution",title:(0,o.jsx)(a.Rc,{}),className:(0,s.A)(t,i.G.common.unlistedBanner),children:(0,o.jsx)(a.Uh,{})})}function c(e){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.AE,{}),(0,o.jsx)(r,{...e})]})}},6451:(e,t,n)=>{n.d(t,{A:()=>d});n(6540);var s=n(4164),a=n(4084),i=n(7559),l=n(7293),o=n(4848);function r(e){let{className:t}=e;return(0,o.jsx)(l.A,{type:"caution",title:(0,o.jsx)(a.Yh,{}),className:(0,s.A)(t,i.G.common.draftBanner),children:(0,o.jsx)(a.TT,{})})}var c=n(2234);function d(e){let{metadata:t}=e;const{unlisted:n,frontMatter:s}=t;return(0,o.jsxs)(o.Fragment,{children:[(n||s.unlisted)&&(0,o.jsx)(c.A,{}),s.draft&&(0,o.jsx)(r,{})]})}},575:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ae});var s=n(6540),a=n(1213),i=n(9532),l=n(4848);const o=s.createContext(null);function r(e){let{children:t,content:n}=e;const a=function(e){return(0,s.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(n);return(0,l.jsx)(o.Provider,{value:a,children:t})}function c(){const e=(0,s.useContext)(o);if(null===e)throw new i.dV("DocProvider");return e}function d(){const{metadata:e,frontMatter:t,assets:n}=c();return(0,l.jsx)(a.be,{title:e.title,description:e.description,keywords:t.keywords,image:n.image??t.image})}var u=n(4164),m=n(4581),h=n(1312),v=n(9022);function b(e){const{previous:t,next:n}=e;return(0,l.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,h.T)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,l.jsx)(v.A,{...t,subLabel:(0,l.jsx)(h.A,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),n&&(0,l.jsx)(v.A,{...n,subLabel:(0,l.jsx)(h.A,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}function x(){const{metadata:e}=c();return(0,l.jsx)(b,{previous:e.previous,next:e.next})}var g=n(4586),f=n(8774),p=n(4070),j=n(7559),A=n(3886),N=n(3025);const L={unreleased:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,l.jsx)(h.A,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:(0,l.jsx)("b",{children:n.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,l.jsx)(h.A,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:(0,l.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function C(e){const t=L[e.versionMetadata.banner];return(0,l.jsx)(t,{...e})}function _(e){let{versionLabel:t,to:n,onClick:s}=e;return(0,l.jsx)(h.A,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,l.jsx)("b",{children:(0,l.jsx)(f.A,{to:n,onClick:s,children:(0,l.jsx)(h.A,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label",children:"latest version"})})})},children:"For up-to-date documentation, see the {latestVersionLink} ({versionLabel})."})}function T(e){let{className:t,versionMetadata:n}=e;const{siteConfig:{title:s}}=(0,g.A)(),{pluginId:a}=(0,p.vT)({failfast:!0}),{savePreferredVersionName:i}=(0,A.g1)(a),{latestDocSuggestion:o,latestVersionSuggestion:r}=(0,p.HW)(a),c=o??(d=r).docs.find((e=>e.id===d.mainDocId));var d;return(0,l.jsxs)("div",{className:(0,u.A)(t,j.G.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,l.jsx)("div",{children:(0,l.jsx)(C,{siteTitle:s,versionMetadata:n})}),(0,l.jsx)("div",{className:"margin-top--md",children:(0,l.jsx)(_,{versionLabel:r.label,to:c.path,onClick:()=>i(r.name)})})]})}function k(e){let{className:t}=e;const n=(0,N.r)();return n.banner?(0,l.jsx)(T,{className:t,versionMetadata:n}):null}function H(e){let{className:t}=e;const n=(0,N.r)();return n.badge?(0,l.jsx)("span",{className:(0,u.A)(t,j.G.docs.docVersionBadge,"badge badge--secondary"),children:(0,l.jsx)(h.A,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}var M=n(2053),y=n(4336);function w(){const{metadata:e}=c(),{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:s,tags:a}=e,i=a.length>0,o=!!(t||n||s);return i||o?(0,l.jsxs)("footer",{className:(0,u.A)(j.G.docs.docFooter,"docusaurus-mt-lg"),children:[i&&(0,l.jsx)("div",{className:(0,u.A)("row margin-top--sm",j.G.docs.docFooterTagsRow),children:(0,l.jsx)("div",{className:"col",children:(0,l.jsx)(M.A,{tags:a})})}),o&&(0,l.jsx)(y.A,{className:(0,u.A)("margin-top--sm",j.G.docs.docFooterEditMetaRow),editUrl:t,lastUpdatedAt:n,lastUpdatedBy:s})]}):null}var B=n(1422),I=n(5195);const E={tocCollapsibleButton:"tocCollapsibleButton_TO0P",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_MG3E"};function V(e){let{collapsed:t,...n}=e;return(0,l.jsx)("button",{type:"button",...n,className:(0,u.A)("clean-btn",E.tocCollapsibleButton,!t&&E.tocCollapsibleButtonExpanded,n.className),children:(0,l.jsx)(h.A,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const O={tocCollapsible:"tocCollapsible_ETCw",tocCollapsibleContent:"tocCollapsibleContent_vkbj",tocCollapsibleExpanded:"tocCollapsibleExpanded_sAul"};function R(e){let{toc:t,className:n,minHeadingLevel:s,maxHeadingLevel:a}=e;const{collapsed:i,toggleCollapsed:o}=(0,B.u)({initialState:!0});return(0,l.jsxs)("div",{className:(0,u.A)(O.tocCollapsible,!i&&O.tocCollapsibleExpanded,n),children:[(0,l.jsx)(V,{collapsed:i,onClick:o}),(0,l.jsx)(B.N,{lazy:!0,className:O.tocCollapsibleContent,collapsed:i,children:(0,l.jsx)(I.A,{toc:t,minHeadingLevel:s,maxHeadingLevel:a})})]})}const G={tocMobile:"tocMobile_ITEo"};function S(){const{toc:e,frontMatter:t}=c();return(0,l.jsx)(R,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,u.A)(j.G.docs.docTocMobile,G.tocMobile)})}var F=n(7763);function P(){const{toc:e,frontMatter:t}=c();return(0,l.jsx)(F.A,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:j.G.docs.docTocDesktop})}var U=n(1107),D=n(8509);function z(e){let{children:t}=e;const n=function(){const{metadata:e,frontMatter:t,contentTitle:n}=c();return t.hide_title||void 0!==n?null:e.title}();return(0,l.jsxs)("div",{className:(0,u.A)(j.G.docs.docMarkdown,"markdown"),children:[n&&(0,l.jsx)("header",{children:(0,l.jsx)(U.A,{as:"h1",children:n})}),(0,l.jsx)(D.A,{children:t})]})}var W=n(6972),q=n(9169),Y=n(6025);function $(e){return(0,l.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,l.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"})})}const Q={breadcrumbHomeIcon:"breadcrumbHomeIcon_YNFT"};function X(){const e=(0,Y.Ay)("/");return(0,l.jsx)("li",{className:"breadcrumbs__item",children:(0,l.jsx)(f.A,{"aria-label":(0,h.T)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e,children:(0,l.jsx)($,{className:Q.breadcrumbHomeIcon})})})}const Z={breadcrumbsContainer:"breadcrumbsContainer_Z_bl"};function J(e){let{children:t,href:n,isLast:s}=e;const a="breadcrumbs__link";return s?(0,l.jsx)("span",{className:a,itemProp:"name",children:t}):n?(0,l.jsx)(f.A,{className:a,href:n,itemProp:"item",children:(0,l.jsx)("span",{itemProp:"name",children:t})}):(0,l.jsx)("span",{className:a,children:t})}function K(e){let{children:t,active:n,index:s,addMicrodata:a}=e;return(0,l.jsxs)("li",{...a&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,u.A)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[t,(0,l.jsx)("meta",{itemProp:"position",content:String(s+1)})]})}function ee(){const e=(0,W.OF)(),t=(0,q.Dt)();return e?(0,l.jsx)("nav",{className:(0,u.A)(j.G.docs.docBreadcrumbs,Z.breadcrumbsContainer),"aria-label":(0,h.T)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,l.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,l.jsx)(X,{}),e.map(((t,n)=>{const s=n===e.length-1,a="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,l.jsx)(K,{active:s,index:n,addMicrodata:!!a,children:(0,l.jsx)(J,{href:a,isLast:s,children:t.label})},n)}))]})}):null}var te=n(6451);const ne={docItemContainer:"docItemContainer_Djhp",docItemCol:"docItemCol_VOVn"};function se(e){let{children:t}=e;const n=function(){const{frontMatter:e,toc:t}=c(),n=(0,m.l)(),s=e.hide_table_of_contents,a=!s&&t.length>0;return{hidden:s,mobile:a?(0,l.jsx)(S,{}):void 0,desktop:!a||"desktop"!==n&&"ssr"!==n?void 0:(0,l.jsx)(P,{})}}(),{metadata:s}=c();return(0,l.jsxs)("div",{className:"row",children:[(0,l.jsxs)("div",{className:(0,u.A)("col",!n.hidden&&ne.docItemCol),children:[(0,l.jsx)(te.A,{metadata:s}),(0,l.jsx)(k,{}),(0,l.jsxs)("div",{className:ne.docItemContainer,children:[(0,l.jsxs)("article",{children:[(0,l.jsx)(ee,{}),(0,l.jsx)(H,{}),n.mobile,(0,l.jsx)(z,{children:t}),(0,l.jsx)(w,{})]}),(0,l.jsx)(x,{})]})]}),n.desktop&&(0,l.jsx)("div",{className:"col col--3",children:n.desktop})]})}function ae(e){const t=`docs-doc-id-${e.content.metadata.id}`,n=e.content;return(0,l.jsx)(r,{content:e.content,children:(0,l.jsxs)(a.e3,{className:t,children:[(0,l.jsx)(d,{}),(0,l.jsx)(se,{children:(0,l.jsx)(n,{})})]})})}},9022:(e,t,n)=>{n.d(t,{A:()=>l});n(6540);var s=n(4164),a=n(8774),i=n(4848);function l(e){const{permalink:t,title:n,subLabel:l,isNext:o}=e;return(0,i.jsxs)(a.A,{className:(0,s.A)("pagination-nav__link",o?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[l&&(0,i.jsx)("div",{className:"pagination-nav__sublabel",children:l}),(0,i.jsx)("div",{className:"pagination-nav__label",children:n})]})}},7763:(e,t,n)=>{n.d(t,{A:()=>c});n(6540);var s=n(4164),a=n(5195);const i={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var l=n(4848);const o="table-of-contents__link toc-highlight",r="table-of-contents__link--active";function c(e){let{className:t,...n}=e;return(0,l.jsx)("div",{className:(0,s.A)(i.tableOfContents,"thin-scrollbar",t),children:(0,l.jsx)(a.A,{...n,linkClassName:o,linkActiveClassName:r})})}},5195:(e,t,n)=>{n.d(t,{A:()=>b});var s=n(6540),a=n(6342);function i(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const s=n.slice(2,e.level);e.parentIndex=Math.max(...s),n[e.level]=t}));const s=[];return t.forEach((e=>{const{parentIndex:n,...a}=e;n>=0?t[n].children.push(a):s.push(a)})),s}function l(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:s}=e;return t.flatMap((e=>{const t=l({toc:e.children,minHeadingLevel:n,maxHeadingLevel:s});return function(e){return e.level>=n&&e.level<=s}(e)?[{...e,children:t}]:t}))}function o(e){const t=e.getBoundingClientRect();return t.top===t.bottom?o(e.parentNode):t}function r(e,t){let{anchorTopOffset:n}=t;const s=e.find((e=>o(e).top>=n));if(s){return function(e){return e.top>0&&e.bottom{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function d(e){const t=(0,s.useRef)(void 0),n=c();(0,s.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:s,linkActiveClassName:a,minHeadingLevel:i,maxHeadingLevel:l}=e;function o(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(s),o=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const s=[];for(let a=t;a<=n;a+=1)s.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(s.join()))}({minHeadingLevel:i,maxHeadingLevel:l}),c=r(o,{anchorTopOffset:n.current}),d=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(a),e.classList.add(a),t.current=e):e.classList.remove(a)}(e,e===d)}))}return document.addEventListener("scroll",o),document.addEventListener("resize",o),o(),()=>{document.removeEventListener("scroll",o),document.removeEventListener("resize",o)}}),[e,n])}var u=n(8774),m=n(4848);function h(e){let{toc:t,className:n,linkClassName:s,isChild:a}=e;return t.length?(0,m.jsx)("ul",{className:a?void 0:n,children:t.map((e=>(0,m.jsxs)("li",{children:[(0,m.jsx)(u.A,{to:`#${e.id}`,className:s??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,m.jsx)(h,{isChild:!0,toc:e.children,className:n,linkClassName:s})]},e.id)))}):null}const v=s.memo(h);function b(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:o="table-of-contents__link",linkActiveClassName:r,minHeadingLevel:c,maxHeadingLevel:u,...h}=e;const b=(0,a.p)(),x=c??b.tableOfContents.minHeadingLevel,g=u??b.tableOfContents.maxHeadingLevel,f=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:a}=e;return(0,s.useMemo)((()=>l({toc:i(t),minHeadingLevel:n,maxHeadingLevel:a})),[t,n,a])}({toc:t,minHeadingLevel:x,maxHeadingLevel:g});return d((0,s.useMemo)((()=>{if(o&&r)return{linkClassName:o,linkActiveClassName:r,minHeadingLevel:x,maxHeadingLevel:g}}),[o,r,x,g])),(0,m.jsx)(v,{toc:f,className:n,linkClassName:o,...h})}},6133:(e,t,n)=>{n.d(t,{A:()=>o});n(6540);var s=n(4164),a=n(8774);const i={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var l=n(4848);function o(e){let{permalink:t,label:n,count:o,description:r}=e;return(0,l.jsxs)(a.A,{href:t,title:r,className:(0,s.A)(i.tag,o?i.tagWithCount:i.tagRegular),children:[n,o&&(0,l.jsx)("span",{children:o})]})}},2053:(e,t,n)=>{n.d(t,{A:()=>r});n(6540);var s=n(4164),a=n(1312),i=n(6133);const l={tags:"tags_jXut",tag:"tag_QGVx"};var o=n(4848);function r(e){let{tags:t}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("b",{children:(0,o.jsx)(a.A,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,o.jsx)("ul",{className:(0,s.A)(l.tags,"padding--none","margin-left--sm"),children:t.map((e=>(0,o.jsx)("li",{className:l.tag,children:(0,o.jsx)(i.A,{...e})},e.permalink)))})]})}},4084:(e,t,n)=>{n.d(t,{AE:()=>r,Rc:()=>l,TT:()=>d,Uh:()=>o,Yh:()=>c});n(6540);var s=n(1312),a=n(5260),i=n(4848);function l(){return(0,i.jsx)(s.A,{id:"theme.contentVisibility.unlistedBanner.title",description:"The unlisted content banner title",children:"Unlisted page"})}function o(){return(0,i.jsx)(s.A,{id:"theme.contentVisibility.unlistedBanner.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function r(){return(0,i.jsx)(a.A,{children:(0,i.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function c(){return(0,i.jsx)(s.A,{id:"theme.contentVisibility.draftBanner.title",description:"The draft content banner title",children:"Draft page"})}function d(){return(0,i.jsx)(s.A,{id:"theme.contentVisibility.draftBanner.message",description:"The draft content banner message",children:"This page is a draft. It will only be visible in dev and be excluded from the production build."})}}}]); \ No newline at end of file diff --git a/assets/js/1817a557.1b2310b8.js b/assets/js/1817a557.1b2310b8.js new file mode 100644 index 000000000..0486721bd --- /dev/null +++ b/assets/js/1817a557.1b2310b8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6738],{6442:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>h,frontMatter:()=>r,metadata:()=>s,toc:()=>d});const s=JSON.parse('{"id":"introduction/lossless","title":"Lossless Compression","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/introduction/lossless.mdx","sourceDirName":"introduction","slug":"/introduction/lossless","permalink":"/docs/introduction/lossless","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/lossless.mdx","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"title":"Lossless Compression","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"Terminology","permalink":"/docs/introduction/terminology"},"next":{"title":"Lossy Compression","permalink":"/docs/introduction/lossy"}}');var o=i(4848),t=i(8453);const r={title:"Lossless Compression",sidebar_position:3},l="Lossless Compression",c={},d=[{value:"Redundancy & Entropy",id:"redundancy--entropy",level:3},{value:"Techniques in Lossless Compression",id:"techniques-in-lossless-compression",level:3}];function a(e){const n={admonition:"admonition",code:"code",em:"em",h1:"h1",h3:"h3",header:"header",img:"img",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"lossless-compression",children:"Lossless Compression"})}),"\n",(0,o.jsx)(n.admonition,{title:"Under Maintenance",type:"info",children:(0,o.jsx)(n.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,o.jsx)(n.p,{children:"Lossless compression is a method of data compression that allows the original data to be perfectly reconstructed from the compressed data. This is particularly important in applications where perfectly preserving the original fidelity of a medium is critical, such as in archiving, generic data compression, & professional media editing. To understand how lossless compression works, we will first delve into the concepts of redundancy, entropy, and specific compression techniques oft used in lossless compression."}),"\n",(0,o.jsx)(n.h3,{id:"redundancy--entropy",children:"Redundancy & Entropy"}),"\n",(0,o.jsx)(n.p,{children:"The concepts of redundancy & entropy are important to understand as you continue reading."}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.strong,{children:"Redundancy"})," refers to the repetitive or predictable elements in data. These elements do not add new information and can be efficiently encoded to reduce the overall data size without losing any information."]}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.strong,{children:"Entropy"}),", in the context of information theory, is a measure of the unpredictability or randomness of data. Lower entropy implies higher redundancy, implying that the data is theoretically more compressible."]}),"\n",(0,o.jsx)(n.p,{children:"In lossless compression, the goal is to reduce redundancy and encode data as efficiently as possible based on its entropy."}),"\n",(0,o.jsx)(n.h3,{id:"techniques-in-lossless-compression",children:"Techniques in Lossless Compression"}),"\n",(0,o.jsxs)(n.ol,{children:["\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.strong,{children:"Run-Length Encoding (RLE)"}),":\nRLE is a simple form of lossless compression where sequences of the same data value (runs) are stored as a single data value and a count. This technique is effective for compressing data with long runs of identical samples, such as silence or constant tones. For example, the sequence ",(0,o.jsx)(n.code,{children:"AAAAABBBCC"})," could be encoded as ",(0,o.jsx)(n.code,{children:"5A3B2C"}),"."]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.strong,{children:"Huffman Coding"}),":\nHuffman coding is an entropy encoding algorithm used for lossless data compression that works by separating an input into component symbols and replacing each symbol with a code. The algorithm builds a binary tree, with each leaf node representing a symbol separated from the input data, and the path from the root to the leaf representing the binary code for that symbol."]}),"\n",(0,o.jsxs)(n.p,{children:["Huffman coding is effective when the probability distribution of the input characters is known and can be exploited. Imagine you are storing the state of a traffic light; it is either green, yellow, red, or off for maintenance. As the operator, you have determined that it is green 50% of the time, red 40% of the time, yellow 9% of the time, and disabled 1% of the time. Because there are four options, you can accurately represent all of the possible symbols in our example using two bits. Green could be ",(0,o.jsx)(n.code,{children:"00"}),", red ",(0,o.jsx)(n.code,{children:"01"}),", yellow ",(0,o.jsx)(n.code,{children:"10"}),", and off ",(0,o.jsx)(n.code,{children:"11"}),". While assigning two-bit codes accurately conveys the information, we're storing an average of two bits per symbol; we can reduce the average number of bits per symbol by taking the probabilities into account here. We'll assign green to ",(0,o.jsx)(n.code,{children:"0"})," since it appears the most frequently; this is the first leaf on our binary tree. Next, we have the leaves that stem from the ",(0,o.jsx)(n.code,{children:"1"})," code; red can simply be ",(0,o.jsx)(n.code,{children:"11"}),", while yellow can be ",(0,o.jsx)(n.code,{children:"100"})," and the disabled symbol can be represented by ",(0,o.jsx)(n.code,{children:"101"}),". This gives us the following Huffman codes:"]}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["Green (50%): ",(0,o.jsx)(n.code,{children:"0"})]}),"\n",(0,o.jsxs)(n.li,{children:["Red (40%): ",(0,o.jsx)(n.code,{children:"11"})]}),"\n",(0,o.jsxs)(n.li,{children:["Yellow ( 9%): ",(0,o.jsx)(n.code,{children:"100"})]}),"\n",(0,o.jsxs)(n.li,{children:["Disabled ( 1%): ",(0,o.jsx)(n.code,{children:"101"})]}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:"Represented by the following tree:"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/color-huffman-tree-svg.svg",alt:"Traffic light Huffman tree"})}),"\n",(0,o.jsxs)(n.p,{children:["Now, if we do the math by multiplying the probability by the length of each code and taking the weighted sum:\n(50% \u2022 1) + (40% \u2022 2) + (9% \u2022 3) + (1% \u2022 3) = ",(0,o.jsx)(n.strong,{children:"1.6"})]}),"\n",(0,o.jsxs)(n.p,{children:["We end up with an average of ",(0,o.jsx)(n.strong,{children:"1.6 bits per symbol"}),". Even in our relatively simple example, this shows how Huffman coding can save space quite effectively while still losslessly representing the same information."]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.strong,{children:"Arithmetic Coding"}),"\nArithmetic coding is another entropy encoding technique that represents an entire message as a single number in the interval ",(0,o.jsx)(n.code,{children:"[0, 1)"}),". Unlike Huffman coding, which assigns fixed binary codes to component symbols separated from an input, arithmetic coding represents multiple symbols with a single floating-point number ",(0,o.jsx)(n.em,{children:"q"})," which must be within the range ",(0,o.jsx)(n.code,{children:"0.0 \u2264 q < 1.0"}),". Arithmetic coding is particularly effective when the probability distribution of the symbols is skewed, as it can produce a more compact representation than Huffman coding. It is usually slower than Huffman coding."]}),"\n",(0,o.jsxs)(n.p,{children:["Let's return to our traffic light example. Let's say you aren't satisfied with our previous Huffman coding result, which has produced an average of 1.6 bits per symbol, and you'd like to use arithmetic coding instead. In arithmetic coding, each of our symbols should first be placed on a range within the interval ",(0,o.jsx)(n.code,{children:"[0, 1)"})," based on its probability. Then, we can narrow down this range as we encode more symbols, eventually arriving at a single number that represents the entire sequence. The steps follow below."]}),"\n",(0,o.jsx)(n.p,{children:"Let's use the same probabilities from before:"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:"Green (50%)"}),"\n",(0,o.jsx)(n.li,{children:"Red (40%)"}),"\n",(0,o.jsx)(n.li,{children:"Yellow ( 9%)"}),"\n",(0,o.jsx)(n.li,{children:"Disabled ( 1%)"}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:"We'll assign ranges to each symbol as follows:"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["Green: ",(0,o.jsx)(n.code,{children:"[0.00, 0.50)"})]}),"\n",(0,o.jsxs)(n.li,{children:["Red: ",(0,o.jsx)(n.code,{children:"[0.50, 0.90)"})]}),"\n",(0,o.jsxs)(n.li,{children:["Yellow: ",(0,o.jsx)(n.code,{children:"[0.90, 0.99)"})]}),"\n",(0,o.jsxs)(n.li,{children:["Disabled: ",(0,o.jsx)(n.code,{children:"[0.99, 1.00)"})]}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:'Now, let\'s encode a sequence of traffic light states: "Green, Red, Yellow, Green"'}),"\n",(0,o.jsxs)(n.ol,{children:["\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:["Start with the interval ",(0,o.jsx)(n.code,{children:"[0, 1)"})]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:"First symbol (Green):"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"new_low = low + (high - low) \u2022 cumulative(s) / total"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"new_high = low + (high - low) \u2022 (cumulative(s) + prob(s)) / total"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"new_low = 0 + (0.5 - 0) \u2022 0 / 1.0"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"new_high = 0 + (0.5 - 0) \u2022 (0 + 0.5) / 1.0"})}),"\n",(0,o.jsxs)(n.li,{children:["Narrow range to ",(0,o.jsx)(n.code,{children:"[0.00, 0.50)"})]}),"\n"]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:"Second symbol (Red):"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["From previous range: ",(0,o.jsx)(n.code,{children:"[0.00, 0.50)"})]}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"new_low = 0 + (0.50 - 0) * 0.50 / 1"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"new_high = 0 + (0.50 - 0) * (0.50 + 0.40) / 1"})}),"\n",(0,o.jsxs)(n.li,{children:["Red is in the range ",(0,o.jsx)(n.code,{children:"[0.25, 0.45)"})]}),"\n"]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:"Third symbol (Yellow):"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["From previous range: ",(0,o.jsx)(n.code,{children:"[0.25, 0.45)"})]}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"new_low = 0.25 + (0.45 - 0.25) * (0.50 + 0.40) / 1"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"new_high = 0.25 + (0.45 - 0.25) * (0.50 + 0.40 + 0.09) / 1"})}),"\n",(0,o.jsxs)(n.li,{children:["Yellow is in the range ",(0,o.jsx)(n.code,{children:"[0.43, 0.448)"})]}),"\n"]}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsx)(n.p,{children:"Fourth symbol (Disabled):"}),"\n"]}),"\n"]}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["From previous range: ",(0,o.jsx)(n.code,{children:"[0.43, 0.448)"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"new_low = 0.43 + (0.448 - 0.43) * (0.50 + 0.40 + 0.09) / 1"})}),"\n",(0,o.jsx)(n.li,{children:(0,o.jsx)(n.code,{children:"new_low = 0.43 + (0.448 - 0.43) * (0.50 + 0.40 + 0.09 + 0.01) / 1"})}),"\n",(0,o.jsxs)(n.li,{children:["Green is in the range ",(0,o.jsx)(n.code,{children:"[0.44782, 0.448)"})]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,o.jsxs)(n.p,{children:["The final interval is ",(0,o.jsx)(n.code,{children:"[0.44782, 0.448)"}),'. Any number in this range (we\'ll pick the lower bound, which is inclusive of 0.44782) can represent our entire sequence "Green, Red, Yellow, Disabled".']}),"\n",(0,o.jsx)(n.p,{children:"To decode, we would start with 0.44782 and use our original probability ranges to determine which symbol it corresponds to, then update the value and repeat the process."}),"\n",(0,o.jsxs)(n.p,{children:["In this example, we aren't saving any space by using arithmetic coding because our sample is too short to have any pattern to effectively exploit. With longer sequences, arithmetic coding approaches the theoretical entropy limit of ",(0,o.jsx)(n.strong,{children:"1.408 bits per symbol"}),": ",(0,o.jsx)(n.code,{children:"-(0.50 * log2(0.50) + 0.40 * log2(0.40) + 0.09 * log2(0.09) + 0.01 * log2(0.01)) \u2248 1.408"})]}),"\n",(0,o.jsx)(n.p,{children:"It is important to note that in practice, there often are additional considerations not present in this simplified example with regard to managing precision."}),"\n"]}),"\n",(0,o.jsxs)(n.li,{children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.strong,{children:"Prediction and Residual Encoding"}),":\nPrediction involves using previous data to predict future data. The difference between the predicted and actual data (residual) is encoded instead of the actual data. Linear Predictive Coding (LPC) is a common method where a linear function of previous samples is used to predict the current sample. The residuals typically have lower entropy and can be encoded more efficiently."]}),"\n"]}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(a,{...e})}):a(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>l});var s=i(6540);const o={},t=s.createContext(o);function r(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1817a557.3a6bc166.js b/assets/js/1817a557.3a6bc166.js deleted file mode 100644 index 949507ada..000000000 --- a/assets/js/1817a557.3a6bc166.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6738],{6118:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>t,metadata:()=>l,toc:()=>d});var s=i(4848),o=i(8453);const t={title:"Lossless Compression",sidebar_position:3},r="Lossless Compression",l={id:"introduction/lossless",title:"Lossless Compression",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/introduction/lossless.mdx",sourceDirName:"introduction",slug:"/introduction/lossless",permalink:"/docs/introduction/lossless",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/lossless.mdx",tags:[],version:"current",sidebarPosition:3,frontMatter:{title:"Lossless Compression",sidebar_position:3},sidebar:"tutorialSidebar",previous:{title:"Terminology",permalink:"/docs/introduction/terminology"},next:{title:"Lossy Compression",permalink:"/docs/introduction/lossy"}},c={},d=[{value:"Redundancy & Entropy",id:"redundancy--entropy",level:3},{value:"Techniques in Lossless Compression",id:"techniques-in-lossless-compression",level:3}];function a(e){const n={admonition:"admonition",code:"code",em:"em",h1:"h1",h3:"h3",header:"header",img:"img",li:"li",ol:"ol",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"lossless-compression",children:"Lossless Compression"})}),"\n",(0,s.jsx)(n.admonition,{title:"Under Maintenance",type:"info",children:(0,s.jsx)(n.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,s.jsx)(n.p,{children:"Lossless compression is a method of data compression that allows the original data to be perfectly reconstructed from the compressed data. This is particularly important in applications where perfectly preserving the original fidelity of a medium is critical, such as in archiving, generic data compression, & professional media editing. To understand how lossless compression works, we will first delve into the concepts of redundancy, entropy, and specific compression techniques oft used in lossless compression."}),"\n",(0,s.jsx)(n.h3,{id:"redundancy--entropy",children:"Redundancy & Entropy"}),"\n",(0,s.jsx)(n.p,{children:"The concepts of redundancy & entropy are important to understand as you continue reading."}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Redundancy"})," refers to the repetitive or predictable elements in data. These elements do not add new information and can be efficiently encoded to reduce the overall data size without losing any information."]}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Entropy"}),", in the context of information theory, is a measure of the unpredictability or randomness of data. Lower entropy implies higher redundancy, implying that the data is theoretically more compressible."]}),"\n",(0,s.jsx)(n.p,{children:"In lossless compression, the goal is to reduce redundancy and encode data as efficiently as possible based on its entropy."}),"\n",(0,s.jsx)(n.h3,{id:"techniques-in-lossless-compression",children:"Techniques in Lossless Compression"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Run-Length Encoding (RLE)"}),":\nRLE is a simple form of lossless compression where sequences of the same data value (runs) are stored as a single data value and a count. This technique is effective for compressing data with long runs of identical samples, such as silence or constant tones. For example, the sequence ",(0,s.jsx)(n.code,{children:"AAAAABBBCC"})," could be encoded as ",(0,s.jsx)(n.code,{children:"5A3B2C"}),"."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Huffman Coding"}),":\nHuffman coding is an entropy encoding algorithm used for lossless data compression that works by separating an input into component symbols and replacing each symbol with a code. The algorithm builds a binary tree, with each leaf node representing a symbol separated from the input data, and the path from the root to the leaf representing the binary code for that symbol."]}),"\n",(0,s.jsxs)(n.p,{children:["Huffman coding is effective when the probability distribution of the input characters is known and can be exploited. Imagine you are storing the state of a traffic light; it is either green, yellow, red, or off for maintenance. As the operator, you have determined that it is green 50% of the time, red 40% of the time, yellow 9% of the time, and disabled 1% of the time. Because there are four options, you can accurately represent all of the possible symbols in our example using two bits. Green could be ",(0,s.jsx)(n.code,{children:"00"}),", red ",(0,s.jsx)(n.code,{children:"01"}),", yellow ",(0,s.jsx)(n.code,{children:"10"}),", and off ",(0,s.jsx)(n.code,{children:"11"}),". While assigning two-bit codes accurately conveys the information, we're storing an average of two bits per symbol; we can reduce the average number of bits per symbol by taking the probabilities into account here. We'll assign green to ",(0,s.jsx)(n.code,{children:"0"})," since it appears the most frequently; this is the first leaf on our binary tree. Next, we have the leaves that stem from the ",(0,s.jsx)(n.code,{children:"1"})," code; red can simply be ",(0,s.jsx)(n.code,{children:"11"}),", while yellow can be ",(0,s.jsx)(n.code,{children:"100"})," and the disabled symbol can be represented by ",(0,s.jsx)(n.code,{children:"101"}),". This gives us the following Huffman codes:"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Green (50%): ",(0,s.jsx)(n.code,{children:"0"})]}),"\n",(0,s.jsxs)(n.li,{children:["Red (40%): ",(0,s.jsx)(n.code,{children:"11"})]}),"\n",(0,s.jsxs)(n.li,{children:["Yellow ( 9%): ",(0,s.jsx)(n.code,{children:"100"})]}),"\n",(0,s.jsxs)(n.li,{children:["Disabled ( 1%): ",(0,s.jsx)(n.code,{children:"101"})]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Represented by the following tree:"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/color-huffman-tree-svg.svg",alt:"Traffic light Huffman tree"})}),"\n",(0,s.jsxs)(n.p,{children:["Now, if we do the math by multiplying the probability by the length of each code and taking the weighted sum:\n(50% \u2022 1) + (40% \u2022 2) + (9% \u2022 3) + (1% \u2022 3) = ",(0,s.jsx)(n.strong,{children:"1.6"})]}),"\n",(0,s.jsxs)(n.p,{children:["We end up with an average of ",(0,s.jsx)(n.strong,{children:"1.6 bits per symbol"}),". Even in our relatively simple example, this shows how Huffman coding can save space quite effectively while still losslessly representing the same information."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Arithmetic Coding"}),"\nArithmetic coding is another entropy encoding technique that represents an entire message as a single number in the interval ",(0,s.jsx)(n.code,{children:"[0, 1)"}),". Unlike Huffman coding, which assigns fixed binary codes to component symbols separated from an input, arithmetic coding represents multiple symbols with a single floating-point number ",(0,s.jsx)(n.em,{children:"q"})," which must be within the range ",(0,s.jsx)(n.code,{children:"0.0 \u2264 q < 1.0"}),". Arithmetic coding is particularly effective when the probability distribution of the symbols is skewed, as it can produce a more compact representation than Huffman coding. It is usually slower than Huffman coding."]}),"\n",(0,s.jsxs)(n.p,{children:["Let's return to our traffic light example. Let's say you aren't satisfied with our previous Huffman coding result, which has produced an average of 1.6 bits per symbol, and you'd like to use arithmetic coding instead. In arithmetic coding, each of our symbols should first be placed on a range within the interval ",(0,s.jsx)(n.code,{children:"[0, 1)"})," based on its probability. Then, we can narrow down this range as we encode more symbols, eventually arriving at a single number that represents the entire sequence. The steps follow below."]}),"\n",(0,s.jsx)(n.p,{children:"Let's use the same probabilities from before:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Green (50%)"}),"\n",(0,s.jsx)(n.li,{children:"Red (40%)"}),"\n",(0,s.jsx)(n.li,{children:"Yellow ( 9%)"}),"\n",(0,s.jsx)(n.li,{children:"Disabled ( 1%)"}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"We'll assign ranges to each symbol as follows:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Green: ",(0,s.jsx)(n.code,{children:"[0.00, 0.50)"})]}),"\n",(0,s.jsxs)(n.li,{children:["Red: ",(0,s.jsx)(n.code,{children:"[0.50, 0.90)"})]}),"\n",(0,s.jsxs)(n.li,{children:["Yellow: ",(0,s.jsx)(n.code,{children:"[0.90, 0.99)"})]}),"\n",(0,s.jsxs)(n.li,{children:["Disabled: ",(0,s.jsx)(n.code,{children:"[0.99, 1.00)"})]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:'Now, let\'s encode a sequence of traffic light states: "Green, Red, Yellow, Green"'}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Start with the interval ",(0,s.jsx)(n.code,{children:"[0, 1)"})]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:"First symbol (Green):"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"new_low = low + (high - low) \u2022 cumulative(s) / total"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"new_high = low + (high - low) \u2022 (cumulative(s) + prob(s)) / total"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"new_low = 0 + (0.5 - 0) \u2022 0 / 1.0"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"new_high = 0 + (0.5 - 0) \u2022 (0 + 0.5) / 1.0"})}),"\n",(0,s.jsxs)(n.li,{children:["Narrow range to ",(0,s.jsx)(n.code,{children:"[0.00, 0.50)"})]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:"Second symbol (Red):"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["From previous range: ",(0,s.jsx)(n.code,{children:"[0.00, 0.50)"})]}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"new_low = 0 + (0.50 - 0) * 0.50 / 1"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"new_high = 0 + (0.50 - 0) * (0.50 + 0.40) / 1"})}),"\n",(0,s.jsxs)(n.li,{children:["Red is in the range ",(0,s.jsx)(n.code,{children:"[0.25, 0.45)"})]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:"Third symbol (Yellow):"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["From previous range: ",(0,s.jsx)(n.code,{children:"[0.25, 0.45)"})]}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"new_low = 0.25 + (0.45 - 0.25) * (0.50 + 0.40) / 1"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"new_high = 0.25 + (0.45 - 0.25) * (0.50 + 0.40 + 0.09) / 1"})}),"\n",(0,s.jsxs)(n.li,{children:["Yellow is in the range ",(0,s.jsx)(n.code,{children:"[0.43, 0.448)"})]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:"Fourth symbol (Disabled):"}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["From previous range: ",(0,s.jsx)(n.code,{children:"[0.43, 0.448)"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"new_low = 0.43 + (0.448 - 0.43) * (0.50 + 0.40 + 0.09) / 1"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"new_low = 0.43 + (0.448 - 0.43) * (0.50 + 0.40 + 0.09 + 0.01) / 1"})}),"\n",(0,s.jsxs)(n.li,{children:["Green is in the range ",(0,s.jsx)(n.code,{children:"[0.44782, 0.448)"})]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["The final interval is ",(0,s.jsx)(n.code,{children:"[0.44782, 0.448)"}),'. Any number in this range (we\'ll pick the lower bound, which is inclusive of 0.44782) can represent our entire sequence "Green, Red, Yellow, Disabled".']}),"\n",(0,s.jsx)(n.p,{children:"To decode, we would start with 0.44782 and use our original probability ranges to determine which symbol it corresponds to, then update the value and repeat the process."}),"\n",(0,s.jsxs)(n.p,{children:["In this example, we aren't saving any space by using arithmetic coding because our sample is too short to have any pattern to effectively exploit. With longer sequences, arithmetic coding approaches the theoretical entropy limit of ",(0,s.jsx)(n.strong,{children:"1.408 bits per symbol"}),": ",(0,s.jsx)(n.code,{children:"-(0.50 * log2(0.50) + 0.40 * log2(0.40) + 0.09 * log2(0.09) + 0.01 * log2(0.01)) \u2248 1.408"})]}),"\n",(0,s.jsx)(n.p,{children:"It is important to note that in practice, there often are additional considerations not present in this simplified example with regard to managing precision."}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Prediction and Residual Encoding"}),":\nPrediction involves using previous data to predict future data. The difference between the predicted and actual data (residual) is encoded instead of the actual data. Linear Predictive Coding (LPC) is a common method where a linear function of previous samples is used to predict the current sample. The residuals typically have lower entropy and can be encoded more efficiently."]}),"\n"]}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>l});var s=i(6540);const o={},t=s.createContext(o);function r(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1a4e3797.cda3983d.js b/assets/js/1a4e3797.cda3983d.js deleted file mode 100644 index 8fa04dd93..000000000 --- a/assets/js/1a4e3797.cda3983d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2138],{5846:(e,t,r)=>{r.d(t,{W:()=>u});var s=r(6540),a=r(4586);const n=["zero","one","two","few","many","other"];function c(e){return n.filter((t=>e.includes(t)))}const l={locale:"en",pluralForms:c(["one","other"]),select:e=>1===e?"one":"other"};function o(){const{i18n:{currentLocale:e}}=(0,a.A)();return(0,s.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:c(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),l}}),[e])}function u(){const e=o();return{selectMessage:(t,r)=>function(e,t,r){const s=e.split("|");if(1===s.length)return s[0];s.length>r.pluralForms.length&&console.error(`For locale=${r.locale}, a maximum of ${r.pluralForms.length} plural forms are expected (${r.pluralForms.join(",")}), but the message contains ${s.length}: ${e}`);const a=r.select(t),n=r.pluralForms.indexOf(a);return s[Math.min(n,s.length-1)]}(r,t,e)}}},1283:(e,t,r)=>{r.r(t),r.d(t,{default:()=>P});var s=r(6540),a=r(4586),n=r(263),c=r(5260),l=r(8774),o=r(1312),u=r(5846),h=r(5391),i=r(6347),m=r(2303),d=r(1088);const p=function(){const e=(0,m.A)(),t=(0,i.W6)(),r=(0,i.zy)(),{siteConfig:{baseUrl:s}}=(0,a.A)(),n=e?new URLSearchParams(r.search):null,c=n?.get("q")||"",l=n?.get("ctx")||"",o=n?.get("version")||"",u=e=>{const t=new URLSearchParams(r.search);return e?t.set("q",e):t.delete("q"),t};return{searchValue:c,searchContext:l&&Array.isArray(d.Hg)&&d.Hg.some((e=>"string"==typeof e?e===l:e.path===l))?l:"",searchVersion:o,updateSearchPath:e=>{const r=u(e);t.replace({search:r.toString()})},updateSearchContext:e=>{const s=new URLSearchParams(r.search);s.set("ctx",e),t.replace({search:s.toString()})},generateSearchPageLink:e=>{const t=u(e);return`${s}search?${t.toString()}`}}};var g=r(5891),x=r(2384),f=r(6841),y=r(3810),C=r(7674),S=r(2849),j=r(4471);const w={searchContextInput:"searchContextInput_mXoe",searchQueryInput:"searchQueryInput_CFBF",searchResultItem:"searchResultItem_U687",searchResultItemPath:"searchResultItemPath_uIbk",searchResultItemSummary:"searchResultItemSummary_oZHr",searchQueryColumn:"searchQueryColumn_q7nx",searchContextColumn:"searchContextColumn_oWAF"};var A=r(3385),I=r(4848);function v(){const{siteConfig:{baseUrl:e},i18n:{currentLocale:t}}=(0,a.A)(),{selectMessage:r}=(0,u.W)(),{searchValue:n,searchContext:l,searchVersion:i,updateSearchPath:m,updateSearchContext:f}=p(),[y,C]=(0,s.useState)(n),[j,v]=(0,s.useState)(),[P,_]=(0,s.useState)(),b=`${e}${i}`,F=(0,s.useMemo)((()=>y?(0,o.T)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:y}):(0,o.T)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"})),[y]);(0,s.useEffect)((()=>{m(y),j&&(y?j(y,(e=>{_(e)})):_(void 0))}),[y,j]);const T=(0,s.useCallback)((e=>{C(e.target.value)}),[]);return(0,s.useEffect)((()=>{n&&n!==y&&C(n)}),[n]),(0,s.useEffect)((()=>{!async function(){const{wrappedIndexes:e,zhDictionary:t}=!Array.isArray(d.Hg)||l||d.dz?await(0,g.Z)(b,l):{wrappedIndexes:[],zhDictionary:[]};v((()=>(0,x.m)(e,t,100)))}()}),[l,b]),(0,I.jsxs)(s.Fragment,{children:[(0,I.jsxs)(c.A,{children:[(0,I.jsx)("meta",{property:"robots",content:"noindex, follow"}),(0,I.jsx)("title",{children:F})]}),(0,I.jsxs)("div",{className:"container margin-vert--lg",children:[(0,I.jsx)("h1",{children:F}),(0,I.jsxs)("div",{className:"row",children:[(0,I.jsx)("div",{className:(0,h.A)("col",{[w.searchQueryColumn]:Array.isArray(d.Hg),"col--9":Array.isArray(d.Hg),"col--12":!Array.isArray(d.Hg)}),children:(0,I.jsx)("input",{type:"search",name:"q",className:w.searchQueryInput,"aria-label":"Search",onChange:T,value:y,autoComplete:"off",autoFocus:!0})}),Array.isArray(d.Hg)?(0,I.jsx)("div",{className:(0,h.A)("col","col--3","padding-left--none",w.searchContextColumn),children:(0,I.jsxs)("select",{name:"search-context",className:w.searchContextInput,id:"context-selector",value:l,onChange:e=>f(e.target.value),children:[d.dz&&(0,I.jsx)("option",{value:"",children:(0,o.T)({id:"theme.SearchPage.searchContext.everywhere",message:"everywhere"})}),d.Hg.map((e=>{const{label:r,path:s}=(0,A.p)(e,t);return(0,I.jsx)("option",{value:s,children:r},s)}))]})}):null]}),!j&&y&&(0,I.jsx)("div",{children:(0,I.jsx)(S.A,{})}),P&&(P.length>0?(0,I.jsx)("p",{children:r(P.length,(0,o.T)({id:"theme.SearchPage.documentsFound.plurals",message:"1 document found|{count} documents found",description:'Pluralized label for "{count} documents found". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)'},{count:P.length}))}):(0,I.jsx)("p",{children:(0,o.T)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"})})),(0,I.jsx)("section",{children:P&&P.map((e=>(0,I.jsx)(R,{searchResult:e},e.document.i)))})]})]})}function R(e){let{searchResult:{document:t,type:r,page:s,tokens:a,metadata:n}}=e;const c=0===r,o=2===r,u=(c?t.b:s.b).slice(),h=o?t.s:t.t;c||u.push(s.t);let i="";if(d.CU&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append("_highlight",t);i=`?${e.toString()}`}return(0,I.jsxs)("article",{className:w.searchResultItem,children:[(0,I.jsx)("h2",{children:(0,I.jsx)(l.A,{to:t.u+i+(t.h||""),dangerouslySetInnerHTML:{__html:o?(0,f.Z)(h,a):(0,y.C)(h,(0,C.g)(n,"t"),a,100)}})}),u.length>0&&(0,I.jsx)("p",{className:w.searchResultItemPath,children:(0,j.$)(u)}),o&&(0,I.jsx)("p",{className:w.searchResultItemSummary,dangerouslySetInnerHTML:{__html:(0,y.C)(t.t,(0,C.g)(n,"t"),a,100)}})]})}const P=function(){return(0,I.jsx)(n.A,{children:(0,I.jsx)(v,{})})}}}]); \ No newline at end of file diff --git a/assets/js/1a4e3797.d404ecd5.js b/assets/js/1a4e3797.d404ecd5.js new file mode 100644 index 000000000..01a0d5373 --- /dev/null +++ b/assets/js/1a4e3797.d404ecd5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2138],{5846:(e,t,r)=>{r.d(t,{W:()=>u});var s=r(6540),a=r(4586);const n=["zero","one","two","few","many","other"];function c(e){return n.filter((t=>e.includes(t)))}const l={locale:"en",pluralForms:c(["one","other"]),select:e=>1===e?"one":"other"};function o(){const{i18n:{currentLocale:e}}=(0,a.A)();return(0,s.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:c(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),l}}),[e])}function u(){const e=o();return{selectMessage:(t,r)=>function(e,t,r){const s=e.split("|");if(1===s.length)return s[0];s.length>r.pluralForms.length&&console.error(`For locale=${r.locale}, a maximum of ${r.pluralForms.length} plural forms are expected (${r.pluralForms.join(",")}), but the message contains ${s.length}: ${e}`);const a=r.select(t),n=r.pluralForms.indexOf(a);return s[Math.min(n,s.length-1)]}(r,t,e)}}},1283:(e,t,r)=>{r.r(t),r.d(t,{default:()=>P});var s=r(6540),a=r(4586),n=r(7823),c=r(5260),l=r(8774),o=r(1312),u=r(5846),h=r(5391),i=r(6347),m=r(2303),d=r(1088);const p=function(){const e=(0,m.A)(),t=(0,i.W6)(),r=(0,i.zy)(),{siteConfig:{baseUrl:s}}=(0,a.A)(),n=e?new URLSearchParams(r.search):null,c=n?.get("q")||"",l=n?.get("ctx")||"",o=n?.get("version")||"",u=e=>{const t=new URLSearchParams(r.search);return e?t.set("q",e):t.delete("q"),t};return{searchValue:c,searchContext:l&&Array.isArray(d.Hg)&&d.Hg.some((e=>"string"==typeof e?e===l:e.path===l))?l:"",searchVersion:o,updateSearchPath:e=>{const r=u(e);t.replace({search:r.toString()})},updateSearchContext:e=>{const s=new URLSearchParams(r.search);s.set("ctx",e),t.replace({search:s.toString()})},generateSearchPageLink:e=>{const t=u(e);return`${s}search?${t.toString()}`}}};var g=r(5891),x=r(2384),f=r(6841),y=r(3810),C=r(7674),S=r(2849),j=r(4471);const w={searchContextInput:"searchContextInput_mXoe",searchQueryInput:"searchQueryInput_CFBF",searchResultItem:"searchResultItem_U687",searchResultItemPath:"searchResultItemPath_uIbk",searchResultItemSummary:"searchResultItemSummary_oZHr",searchQueryColumn:"searchQueryColumn_q7nx",searchContextColumn:"searchContextColumn_oWAF"};var A=r(3385),I=r(4848);function v(){const{siteConfig:{baseUrl:e},i18n:{currentLocale:t}}=(0,a.A)(),{selectMessage:r}=(0,u.W)(),{searchValue:n,searchContext:l,searchVersion:i,updateSearchPath:m,updateSearchContext:f}=p(),[y,C]=(0,s.useState)(n),[j,v]=(0,s.useState)(),[P,_]=(0,s.useState)(),b=`${e}${i}`,F=(0,s.useMemo)((()=>y?(0,o.T)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:y}):(0,o.T)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"})),[y]);(0,s.useEffect)((()=>{m(y),j&&(y?j(y,(e=>{_(e)})):_(void 0))}),[y,j]);const T=(0,s.useCallback)((e=>{C(e.target.value)}),[]);return(0,s.useEffect)((()=>{n&&n!==y&&C(n)}),[n]),(0,s.useEffect)((()=>{!async function(){const{wrappedIndexes:e,zhDictionary:t}=!Array.isArray(d.Hg)||l||d.dz?await(0,g.Z)(b,l):{wrappedIndexes:[],zhDictionary:[]};v((()=>(0,x.m)(e,t,100)))}()}),[l,b]),(0,I.jsxs)(s.Fragment,{children:[(0,I.jsxs)(c.A,{children:[(0,I.jsx)("meta",{property:"robots",content:"noindex, follow"}),(0,I.jsx)("title",{children:F})]}),(0,I.jsxs)("div",{className:"container margin-vert--lg",children:[(0,I.jsx)("h1",{children:F}),(0,I.jsxs)("div",{className:"row",children:[(0,I.jsx)("div",{className:(0,h.A)("col",{[w.searchQueryColumn]:Array.isArray(d.Hg),"col--9":Array.isArray(d.Hg),"col--12":!Array.isArray(d.Hg)}),children:(0,I.jsx)("input",{type:"search",name:"q",className:w.searchQueryInput,"aria-label":"Search",onChange:T,value:y,autoComplete:"off",autoFocus:!0})}),Array.isArray(d.Hg)?(0,I.jsx)("div",{className:(0,h.A)("col","col--3","padding-left--none",w.searchContextColumn),children:(0,I.jsxs)("select",{name:"search-context",className:w.searchContextInput,id:"context-selector",value:l,onChange:e=>f(e.target.value),children:[d.dz&&(0,I.jsx)("option",{value:"",children:(0,o.T)({id:"theme.SearchPage.searchContext.everywhere",message:"everywhere"})}),d.Hg.map((e=>{const{label:r,path:s}=(0,A.p)(e,t);return(0,I.jsx)("option",{value:s,children:r},s)}))]})}):null]}),!j&&y&&(0,I.jsx)("div",{children:(0,I.jsx)(S.A,{})}),P&&(P.length>0?(0,I.jsx)("p",{children:r(P.length,(0,o.T)({id:"theme.SearchPage.documentsFound.plurals",message:"1 document found|{count} documents found",description:'Pluralized label for "{count} documents found". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)'},{count:P.length}))}):(0,I.jsx)("p",{children:(0,o.T)({id:"theme.SearchPage.noResultsText",message:"No documents were found",description:"The paragraph for empty search result"})})),(0,I.jsx)("section",{children:P&&P.map((e=>(0,I.jsx)(R,{searchResult:e},e.document.i)))})]})]})}function R(e){let{searchResult:{document:t,type:r,page:s,tokens:a,metadata:n}}=e;const c=0===r,o=2===r,u=(c?t.b:s.b).slice(),h=o?t.s:t.t;c||u.push(s.t);let i="";if(d.CU&&a.length>0){const e=new URLSearchParams;for(const t of a)e.append("_highlight",t);i=`?${e.toString()}`}return(0,I.jsxs)("article",{className:w.searchResultItem,children:[(0,I.jsx)("h2",{children:(0,I.jsx)(l.A,{to:t.u+i+(t.h||""),dangerouslySetInnerHTML:{__html:o?(0,f.Z)(h,a):(0,y.C)(h,(0,C.g)(n,"t"),a,100)}})}),u.length>0&&(0,I.jsx)("p",{className:w.searchResultItemPath,children:(0,j.$)(u)}),o&&(0,I.jsx)("p",{className:w.searchResultItemSummary,dangerouslySetInnerHTML:{__html:(0,y.C)(t.t,(0,C.g)(n,"t"),a,100)}})]})}const P=function(){return(0,I.jsx)(n.A,{children:(0,I.jsx)(v,{})})}}}]); \ No newline at end of file diff --git a/assets/js/1b67d0f3.0ca1c00b.js b/assets/js/1b67d0f3.0ca1c00b.js deleted file mode 100644 index 845d7ac58..000000000 --- a/assets/js/1b67d0f3.0ca1c00b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[842],{4476:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>o,metadata:()=>a,toc:()=>d});var t=s(4848),n=s(8453);const o={title:"gzip",sidebar_position:2},r="gzip",a={id:"data/gzip",title:"gzip",description:"Gzip is a DEFLATE implementation for use with individual files. It is popular on Unix-like systems such as Linux & macOS, and is often seen paired with tar to create .tar.gz archives. Formats like ZIP & PNG also use Deflate to different effects.",source:"@site/docs/data/gzip.mdx",sourceDirName:"data",slug:"/data/gzip",permalink:"/docs/data/gzip",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/gzip.mdx",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"gzip",sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"ZIP",permalink:"/docs/data/zip"},next:{title:"bzip2",permalink:"/docs/data/bzip2"}},c={},d=[{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"History",id:"history",level:2},{value:"Encoding",id:"encoding",level:2},{value:"Linux & macOS",id:"linux--macos",level:3},{value:"Windows",id:"windows",level:3}];function l(e){const i={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"gzip",children:"gzip"})}),"\n",(0,t.jsxs)(i.p,{children:["Gzip is a DEFLATE implementation for use with individual files. It is popular on Unix-like systems such as Linux & macOS, and is often seen paired with ",(0,t.jsx)(i.code,{children:"tar"})," to create ",(0,t.jsx)(i.code,{children:".tar.gz"})," archives. Formats like ",(0,t.jsx)(i.a,{href:"/docs/data/zip",children:"ZIP"})," & ",(0,t.jsx)(i.a,{href:"/docs/images/PNG",children:"PNG"})," also use Deflate to different effects."]}),"\n",(0,t.jsx)(i.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,t.jsx)(i.p,{children:"While ZIP is a multi-file format that can compress multiple files into a single compressed file, Gzip is a single-file format that compresses a single file into a single compressed file. Both use DEFLATE for compression. ZIP supports encryption, while Gzip does not. ZIP also stores more extensive header information."}),"\n",(0,t.jsx)(i.h2,{id:"history",children:"History"}),"\n",(0,t.jsx)(i.p,{children:"In order to properly understand the gzip format, we must first talk about ZIP. A lot of similar or identical information is covered in our ZIP entry."}),"\n",(0,t.jsx)(i.p,{children:"The ZIP format was developed by Phil Katz as an open format with an open specification, where his implementation PKZIP was shareware."}),"\n",(0,t.jsxs)(i.p,{children:["A ",(0,t.jsx)(i.a,{href:"http://www.digitalpreservation.gov/formats/fdd/fdd000361.shtml",children:"restricted ZIP format"})," exists and is used in other filetypes such as Java .jar archives, a slew of Microsoft Office file formats, Office Document Format files (.odt, .ods, .odp), and EPUB files for e-readers."]}),"\n",(0,t.jsxs)(i.p,{children:['In around 1990, Info-ZIP came onto the scene. "Info-ZIP\'s purpose is to provide free, portable, high-quality versions of the Zip and UnZip compressor-archiver utilities that are compatible with the DOS-based PKZIP by PKWARE, Inc." (',(0,t.jsx)(i.a,{href:"https://infozip.sourceforge.net/",children:"https://infozip.sourceforge.net/"}),"). They did this successfully, leading to increased adoption of the ZIP format."]}),"\n",(0,t.jsxs)(i.p,{children:["In the early 1990s the ",(0,t.jsx)(i.a,{href:"/docs/data/gzip",children:"gzip"})," format was developed, derived from the Deflate code in the Info-ZIP utilities. It was designed to replace the Unix ",(0,t.jsx)(i.code,{children:"compress"})," utility, which used the (at the time) patented LZW compression algorithm which threatened its free use. Though some specific implementations of Deflate were patented by Phil Katz, the format was not, so a Deflate implementation that did not infringe on any patents was written."]}),"\n",(0,t.jsxs)(i.p,{children:["As a ",(0,t.jsx)(i.code,{children:"compress"})," replacement, the Unix gzip utility can decompress data that was compressed using ",(0,t.jsx)(i.code,{children:"compress"}),". Gzip compresses quite a bit better than Unix compress due to its use of DEFLATE, and it has very fast decompression. It also adds a CRC-32 checksum as an integrity check for the archived data. The header format permits the storage of more information than the compress format allowed, such as the original file name & the file modification time."]}),"\n",(0,t.jsxs)(i.p,{children:["The popular ",(0,t.jsx)(i.code,{children:"tar"})," utility, which creates an archive of files, has an option to compress directly to the ",(0,t.jsx)(i.code,{children:".tar.gz"})," format and is a very popular use caze for gzip. Since the compression of a ",(0,t.jsx)(i.code,{children:".tar"})," can take advantage of redundancy across files, ZIP often compresses less effectively than the marriage of tar & gz. ",(0,t.jsx)(i.code,{children:".tar.gz"})," is the most common archive format in use on Unix due to its very high portability, but there are better compression methods available. Some of these include ",(0,t.jsx)(i.a,{href:"/docs/data/xz",children:"XZ"}),", ",(0,t.jsx)(i.a,{href:"/docs/data/bzip2",children:"bzip2"}),", ",(0,t.jsx)(i.a,{href:"/docs/data/brotli",children:"brotli"}),", ",(0,t.jsx)(i.a,{href:"/docs/data/7z",children:"7-zip"}),", & ",(0,t.jsx)(i.a,{href:"/docs/data/zstd",children:"Zstandard"}),"."]}),"\n",(0,t.jsx)(i.h2,{id:"encoding",children:"Encoding"}),"\n",(0,t.jsx)(i.h3,{id:"linux--macos",children:"Linux & macOS"}),"\n",(0,t.jsxs)(i.p,{children:["Chances are, you have gzip already available on your system. You can encode gzip archives using the ",(0,t.jsx)(i.code,{children:"gzip"})," command."]}),"\n",(0,t.jsxs)(i.ol,{children:["\n",(0,t.jsxs)(i.li,{children:["\n",(0,t.jsx)(i.p,{children:"Open a terminal window."}),"\n"]}),"\n",(0,t.jsxs)(i.li,{children:["\n",(0,t.jsx)(i.p,{children:"Navigate to the directory where you want to create the gzip archive."}),"\n"]}),"\n",(0,t.jsxs)(i.li,{children:["\n",(0,t.jsxs)(i.p,{children:["Use the ",(0,t.jsx)(i.code,{children:"gzip"})," command followed by the name of the file you want to compress. For example:"]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",children:"gzip -7 myfile.txt\n"})}),"\n",(0,t.jsxs)(i.p,{children:["This will create a compressed file called ",(0,t.jsx)(i.code,{children:"myfile.txt.gz"})," in the current directory using compression level 7. Compression levels span from 1 through 9 (",(0,t.jsx)(i.code,{children:"-1 .. -9"}),"; shortcuts are ",(0,t.jsx)(i.code,{children:"--fast"})," for ",(0,t.jsx)(i.code,{children:"-1"}),", ",(0,t.jsx)(i.code,{children:"--best"})," for ",(0,t.jsx)(i.code,{children:"-9"}),")."]}),"\n",(0,t.jsxs)(i.ol,{start:"4",children:["\n",(0,t.jsxs)(i.li,{children:["If you want to compress multiple files at once, you can use the ",(0,t.jsx)(i.code,{children:"-a"})," option followed by the names of the files you want to compress. For example:"]}),"\n"]}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",children:"gzip -a myfile1.txt myfile2.txt\n"})}),"\n",(0,t.jsxs)(i.p,{children:["This will create compressed files called ",(0,t.jsx)(i.code,{children:"myfile1.txt.gz"})," & ",(0,t.jsx)(i.code,{children:"myfile2.txt.gz"})," in the current directory."]}),"\n",(0,t.jsxs)(i.ol,{start:"5",children:["\n",(0,t.jsxs)(i.li,{children:["If you want to compress a directory and all its contents, you can use the ",(0,t.jsx)(i.code,{children:"-r"})," option followed by the name of the directory. For example:"]}),"\n"]}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",children:"gzip -r mydirectory/\n"})}),"\n",(0,t.jsx)(i.p,{children:"This will create compressed versions of each file in the specified directory."}),"\n",(0,t.jsxs)(i.ol,{start:"6",children:["\n",(0,t.jsxs)(i.li,{children:["If you want to encode the gzip archive with a different extension, you can use the ",(0,t.jsx)(i.code,{children:"-S"})," option followed by the suffix ",(0,t.jsx)(i.code,{children:".suf"}),". For example:"]}),"\n"]}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",children:"gzip -S .suf myfile.txt\n"})}),"\n",(0,t.jsxs)(i.p,{children:["This will create a gzip-compressed file called ",(0,t.jsx)(i.code,{children:"myfile.txt.suf"})," in the current directory."]}),"\n",(0,t.jsxs)(i.p,{children:["Also, you can use other options like ",(0,t.jsx)(i.code,{children:"-v"})," for verbose mode, ",(0,t.jsx)(i.code,{children:"-f"})," to force overwriting & compress links, ",(0,t.jsx)(i.code,{children:"-l"})," for listing the files and ",(0,t.jsx)(i.code,{children:"-d"})," for decompressing the files."]}),"\n",(0,t.jsxs)(i.p,{children:["You can find more information about the ",(0,t.jsx)(i.code,{children:"gzip"})," command & its options by running ",(0,t.jsx)(i.code,{children:"man gzip"})," in a terminal."]}),"\n",(0,t.jsx)(i.h3,{id:"windows",children:"Windows"}),"\n",(0,t.jsx)(i.p,{children:"To be filled."}),"\n",(0,t.jsx)(i.p,{children:(0,t.jsxs)(i.em,{children:["References: Mark Adler is an American software engineer best known for his work in the field of data compression as the author of the Adler-32 checksum function, and a co-author of the zlib compression library and gzip. He has contributed to Info-ZIP, and has participated in developing the Portable Network Graphics (PNG) image format. Much of this post is based on his writing in ",(0,t.jsx)(i.a,{href:"https://stackoverflow.com/questions/20762094/how-are-zlib-gzip-and-zip-related-what-do-they-have-in-common-and-how-are-they",children:"this StackOverflow answer"})]})})]})}function h(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,i,s)=>{s.d(i,{R:()=>r,x:()=>a});var t=s(6540);const n={},o=t.createContext(n);function r(e){const i=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),t.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1b67d0f3.e7a07eba.js b/assets/js/1b67d0f3.e7a07eba.js new file mode 100644 index 000000000..969301c1d --- /dev/null +++ b/assets/js/1b67d0f3.e7a07eba.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[842],{9720:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>r,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"data/gzip","title":"gzip","description":"Gzip is a DEFLATE implementation for use with individual files. It is popular on Unix-like systems such as Linux & macOS, and is often seen paired with tar to create .tar.gz archives. Formats like ZIP & PNG also use Deflate to different effects.","source":"@site/docs/data/gzip.mdx","sourceDirName":"data","slug":"/data/gzip","permalink":"/docs/data/gzip","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/gzip.mdx","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"gzip","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"ZIP","permalink":"/docs/data/zip"},"next":{"title":"bzip2","permalink":"/docs/data/bzip2"}}');var n=s(4848),o=s(8453);const r={title:"gzip",sidebar_position:2},a="gzip",c={},d=[{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"History",id:"history",level:2},{value:"Encoding",id:"encoding",level:2},{value:"Linux & macOS",id:"linux--macos",level:3},{value:"Windows",id:"windows",level:3}];function l(e){const i={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"gzip",children:"gzip"})}),"\n",(0,n.jsxs)(i.p,{children:["Gzip is a DEFLATE implementation for use with individual files. It is popular on Unix-like systems such as Linux & macOS, and is often seen paired with ",(0,n.jsx)(i.a,{href:"/docs/data/tar",children:(0,n.jsx)(i.code,{children:"tar"})})," to create ",(0,n.jsx)(i.code,{children:".tar.gz"})," archives. Formats like ",(0,n.jsx)(i.a,{href:"/docs/data/zip",children:"ZIP"})," & ",(0,n.jsx)(i.a,{href:"/docs/images/PNG",children:"PNG"})," also use Deflate to different effects."]}),"\n",(0,n.jsx)(i.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,n.jsx)(i.p,{children:"While ZIP is a multi-file archiving format that can compress multiple files into a single compressed file, Gzip is a single-file format that compresses a single file into a single compressed file. Both use DEFLATE for compression. ZIP supports encryption, while Gzip does not. ZIP also stores more extensive header information."}),"\n",(0,n.jsx)(i.h2,{id:"history",children:"History"}),"\n",(0,n.jsx)(i.p,{children:"In order to properly understand the gzip format, we must first talk about ZIP. A lot of similar or identical information is covered in our ZIP entry."}),"\n",(0,n.jsx)(i.p,{children:"The ZIP format was developed by Phil Katz as an open format with an open specification, where his implementation PKZIP was shareware."}),"\n",(0,n.jsxs)(i.p,{children:["A ",(0,n.jsx)(i.a,{href:"http://www.digitalpreservation.gov/formats/fdd/fdd000361.shtml",children:"restricted ZIP format"})," exists and is used in other filetypes such as Java .jar archives, a slew of Microsoft Office file formats, Office Document Format files (.odt, .ods, .odp), and EPUB files for e-readers."]}),"\n",(0,n.jsxs)(i.p,{children:['In around 1990, Info-ZIP came onto the scene. "Info-ZIP\'s purpose is to provide free, portable, high-quality versions of the Zip and UnZip compressor-archiver utilities that are compatible with the DOS-based PKZIP by PKWARE, Inc." (',(0,n.jsx)(i.a,{href:"https://infozip.sourceforge.net/",children:"https://infozip.sourceforge.net/"}),"). They did this successfully, leading to increased adoption of the ZIP format."]}),"\n",(0,n.jsxs)(i.p,{children:["In the early 1990s the ",(0,n.jsx)(i.a,{href:"/docs/data/gzip",children:"gzip"})," format was developed, derived from the Deflate code in the Info-ZIP utilities. It was designed to replace the Unix ",(0,n.jsx)(i.code,{children:"compress"})," utility, which used the (at the time) patented LZW compression algorithm which threatened its free use. Though some specific implementations of Deflate were patented by Phil Katz, the format was not, so a Deflate implementation that did not infringe on any patents was written."]}),"\n",(0,n.jsxs)(i.p,{children:["As a ",(0,n.jsx)(i.code,{children:"compress"})," replacement, the Unix gzip utility can decompress data that was compressed using ",(0,n.jsx)(i.code,{children:"compress"}),". Gzip compresses quite a bit better than Unix compress due to its use of DEFLATE, and it has very fast decompression. It also adds a CRC-32 checksum as an integrity check for the archived data. The header format permits the storage of more information than the compress format allowed, such as the original file name & the file modification time."]}),"\n",(0,n.jsxs)(i.p,{children:["The popular ",(0,n.jsx)(i.a,{href:"/docs/data/tar",children:(0,n.jsx)(i.code,{children:"tar"})})," utility, which creates an archive of files, has an option to compress directly to the ",(0,n.jsx)(i.code,{children:".tar.gz"})," format and is a very popular use caze for gzip. Since the compression of a ",(0,n.jsx)(i.code,{children:".tar"})," can take advantage of redundancy across files, ZIP often compresses less effectively than the marriage of tar & gz. ",(0,n.jsx)(i.code,{children:".tar.gz"})," is the most common archive format in use on Unix due to its very high portability, but there are better compression methods available. Some of these include ",(0,n.jsx)(i.a,{href:"/docs/data/xz",children:"XZ"}),", ",(0,n.jsx)(i.a,{href:"/docs/data/bzip2",children:"bzip2"}),", ",(0,n.jsx)(i.a,{href:"/docs/data/brotli",children:"brotli"}),", ",(0,n.jsx)(i.a,{href:"/docs/data/7z",children:"7-zip"}),", & ",(0,n.jsx)(i.a,{href:"/docs/data/zstd",children:"Zstandard"}),"."]}),"\n",(0,n.jsx)(i.h2,{id:"encoding",children:"Encoding"}),"\n",(0,n.jsx)(i.h3,{id:"linux--macos",children:"Linux & macOS"}),"\n",(0,n.jsxs)(i.p,{children:["Chances are, you have gzip already available on your system. You can encode gzip archives using the ",(0,n.jsx)(i.code,{children:"gzip"})," command."]}),"\n",(0,n.jsxs)(i.ol,{children:["\n",(0,n.jsxs)(i.li,{children:["\n",(0,n.jsx)(i.p,{children:"Open a terminal window."}),"\n"]}),"\n",(0,n.jsxs)(i.li,{children:["\n",(0,n.jsx)(i.p,{children:"Navigate to the directory where you want to create the gzip archive."}),"\n"]}),"\n",(0,n.jsxs)(i.li,{children:["\n",(0,n.jsxs)(i.p,{children:["Use the ",(0,n.jsx)(i.code,{children:"gzip"})," command followed by the name of the file you want to compress. For example:"]}),"\n"]}),"\n"]}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",children:"gzip -7 myfile.txt\n"})}),"\n",(0,n.jsxs)(i.p,{children:["This will create a compressed file called ",(0,n.jsx)(i.code,{children:"myfile.txt.gz"})," in the current directory using compression level 7. Compression levels span from 1 through 9 (",(0,n.jsx)(i.code,{children:"-1 .. -9"}),"; shortcuts are ",(0,n.jsx)(i.code,{children:"--fast"})," for ",(0,n.jsx)(i.code,{children:"-1"}),", ",(0,n.jsx)(i.code,{children:"--best"})," for ",(0,n.jsx)(i.code,{children:"-9"}),")."]}),"\n",(0,n.jsxs)(i.ol,{start:"4",children:["\n",(0,n.jsxs)(i.li,{children:["If you want to compress multiple files at once, you can use the ",(0,n.jsx)(i.code,{children:"-a"})," option followed by the names of the files you want to compress. For example:"]}),"\n"]}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",children:"gzip -a myfile1.txt myfile2.txt\n"})}),"\n",(0,n.jsxs)(i.p,{children:["This will create compressed files called ",(0,n.jsx)(i.code,{children:"myfile1.txt.gz"})," & ",(0,n.jsx)(i.code,{children:"myfile2.txt.gz"})," in the current directory."]}),"\n",(0,n.jsxs)(i.ol,{start:"5",children:["\n",(0,n.jsxs)(i.li,{children:["If you want to compress a directory and all its contents, you can use the ",(0,n.jsx)(i.code,{children:"-r"})," option followed by the name of the directory. For example:"]}),"\n"]}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",children:"gzip -r mydirectory/\n"})}),"\n",(0,n.jsx)(i.p,{children:"This will create compressed versions of each file in the specified directory."}),"\n",(0,n.jsxs)(i.ol,{start:"6",children:["\n",(0,n.jsxs)(i.li,{children:["If you want to encode the gzip archive with a different extension, you can use the ",(0,n.jsx)(i.code,{children:"-S"})," option followed by the suffix ",(0,n.jsx)(i.code,{children:".suf"}),". For example:"]}),"\n"]}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",children:"gzip -S .suf myfile.txt\n"})}),"\n",(0,n.jsxs)(i.p,{children:["This will create a gzip-compressed file called ",(0,n.jsx)(i.code,{children:"myfile.txt.suf"})," in the current directory."]}),"\n",(0,n.jsxs)(i.p,{children:["Also, you can use other options like ",(0,n.jsx)(i.code,{children:"-v"})," for verbose mode, ",(0,n.jsx)(i.code,{children:"-f"})," to force overwriting & compress links, ",(0,n.jsx)(i.code,{children:"-l"})," for listing the files and ",(0,n.jsx)(i.code,{children:"-d"})," for decompressing the files."]}),"\n",(0,n.jsxs)(i.p,{children:["You can find more information about the ",(0,n.jsx)(i.code,{children:"gzip"})," command & its options by running ",(0,n.jsx)(i.code,{children:"man gzip"})," in a terminal."]}),"\n",(0,n.jsx)(i.h3,{id:"windows",children:"Windows"}),"\n",(0,n.jsx)(i.p,{children:"To be filled."}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsxs)(i.em,{children:["References: Mark Adler is an American software engineer best known for his work in the field of data compression as the author of the Adler-32 checksum function, and a co-author of the zlib compression library and gzip. He has contributed to Info-ZIP, and has participated in developing the Portable Network Graphics (PNG) image format. Much of this post is based on his writing in ",(0,n.jsx)(i.a,{href:"https://stackoverflow.com/questions/20762094/how-are-zlib-gzip-and-zip-related-what-do-they-have-in-common-and-how-are-they",children:"this StackOverflow answer"})]})})]})}function h(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,i,s)=>{s.d(i,{R:()=>r,x:()=>a});var t=s(6540);const n={},o=t.createContext(n);function r(e){const i=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),t.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1ca2b1db.4791e151.js b/assets/js/1ca2b1db.4791e151.js new file mode 100644 index 000000000..37c850ed8 --- /dev/null +++ b/assets/js/1ca2b1db.4791e151.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7855],{3145:(e,o,d)=>{d.r(o),d.d(o,{assets:()=>c,contentTitle:()=>a,default:()=>m,frontMatter:()=>r,metadata:()=>i,toc:()=>s});const i=JSON.parse('{"id":"encoders_hw/mediacodec","title":"Mediacodec","description":"The Android\'s MediaCodec framework is a part of Android\'s multimedia framework that provides access to low-level media encoder & decoder components. It is similar to VideoToolbox on Apple devices. Hardware acceleration with MediaCodec is used for processing audio, video, and compressed data.","source":"@site/docs/encoders_hw/mediacodec.mdx","sourceDirName":"encoders_hw","slug":"/encoders_hw/mediacodec","permalink":"/docs/encoders_hw/mediacodec","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders_hw/mediacodec.mdx","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"title":"Mediacodec","sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"VideoToolbox","permalink":"/docs/encoders_hw/videotoolbox"},"next":{"title":"SRT","permalink":"/docs/subtitles/SRT"}}');var n=d(4848),t=d(8453);const r={title:"Mediacodec",sidebar_position:5},a="Mediacodec",c={},s=[{value:"Usage",id:"usage",level:2},{value:"FFmpeg",id:"ffmpeg",level:3}];function l(e){const o={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.header,{children:(0,n.jsx)(o.h1,{id:"mediacodec",children:"Mediacodec"})}),"\n",(0,n.jsxs)(o.p,{children:["The Android's MediaCodec framework is a part of Android's multimedia framework that provides access to low-level media encoder & decoder components. It is similar to ",(0,n.jsx)(o.a,{href:"/docs/encoders_hw/videotoolbox",children:"VideoToolbox"})," on Apple devices. Hardware acceleration with MediaCodec is used for processing audio, video, and compressed data."]}),"\n",(0,n.jsxs)(o.p,{children:["One of the key features of the MediaCodec framework is its support for automatic media transcoding within the operating system. Introduced in Android 12, media transcoding features of the operating system allow devices to use more modern, storage-efficient media formats for video capture while maintaining compatibility with apps. For devices with compatible media transcoding enabled, Android can automatically convert videos recorded in formats such as ",(0,n.jsx)(o.a,{href:"/docs/video/HEVC",children:"H.265"})," when the videos are opened by an app that doesn't support the format. This allows apps to function even when videos are captured in newer formats on the device."]}),"\n",(0,n.jsx)(o.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsxs)(o.p,{children:["In order to view your device's supported hardware and software encoders exposed by the MediaCodec framework, it is advised to download the open source ",(0,n.jsx)(o.a,{href:"https://play.google.com/store/apps/details?id=com.parseus.codecinfo",children:"Codec Info"})," application."]}),"\n",(0,n.jsxs)(o.p,{children:["Once you know how to properly interact with your device's hardware encoders, ",(0,n.jsx)(o.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," will help you transcode videos easily from the command line."]}),"\n",(0,n.jsx)(o.h3,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,n.jsxs)(o.p,{children:["Testing for this piece was done on the Google Pixel 8, which featurs the Tensor G3 SoC. It is Exynos-based, so ",(0,n.jsx)(o.a,{href:"/docs/video/AVC",children:"H.264"}),", H.265 (HEVC), and ",(0,n.jsx)(o.a,{href:"/docs/video/VP9",children:"VP9"})," hardware acceleration for encoding are provided by the Exynos media block. AV1 encoding and decoding are available on the Tensor G3 provided by a custom Google multimedia block."]}),"\n",(0,n.jsx)(o.p,{children:"The Exynos's hardware implementation for encoding H.264 and H.265 does not support CQ (Constant Quality) encoding, so a target bitrate must be provided for either CBR (Constant Bitrate) or VBR (Variable Bitrate) encoding. Google's AV1 implementation is in the same situation."}),"\n",(0,n.jsx)(o.p,{children:"Some example MediaCodec encoding commands with FFmpeg:"}),"\n",(0,n.jsx)(o.pre,{children:(0,n.jsx)(o.code,{className:"language-bash",metastring:'title="H.264 encoding (VBR, target bitrate 4000K, 250-frame GOP size)"',children:"ffmpeg -i input.mkv -c:v h264_mediacodec -codec_name c2.exynos.h264.encoder -bitrate_mode 1 -b:v 4000K -g 250 output.mp4\n"})}),"\n",(0,n.jsx)(o.pre,{children:(0,n.jsx)(o.code,{className:"language-bash",metastring:'title="H.265 encoding (VBR, target bitrate 4000K, 250-frame GOP size)"',children:"ffmpeg -i input.mkv -c:v hevc_mediacodec -codec_name c2.exynos.hevc.encoder -bitrate_mode 1 -b:v 4000K -g 250 output.mp4\n"})}),"\n",(0,n.jsx)(o.p,{children:"VP9 encoding produces video that is severely distorted relative to the bitrate, and AV1 encoding produces broken files without metadata."}),"\n",(0,n.jsx)(o.pre,{children:(0,n.jsx)(o.code,{className:"language-bash",metastring:'title="VP9 encoding (VBR, target bitrate 9000K, 250-frame GOP size)"',children:"ffmpeg -i input.mkv -c:v vp9_mediacodec -codec_name c2.exynos.vp9.encoder -bitrate_mode 1 -b:v 9000K -g 250 output.mkv\n"})}),"\n",(0,n.jsx)(o.pre,{children:(0,n.jsx)(o.code,{className:"language-bash",metastring:'title="AV1 encoding (VBR, target bitrate 8000K, 250-frame GOP size)"',children:"ffmpeg -i input.mkv -c:v av1_mediacodec -codec_name c2.google.av1.encoder -bitrate_mode 1 -b:v 8000K -g 250 output.mp4\n"})}),"\n",(0,n.jsxs)(o.p,{children:["Just run ",(0,n.jsx)(o.code,{children:"ffmpeg -help encoder=hevc_mediacodec"})," or ",(0,n.jsx)(o.code,{children:"ffmpeg -help encoder=h264_mediacodec"})," for more info on how to use your MediaCodec encoders. You can choose a value for ",(0,n.jsx)(o.code,{children:"-codec_name"})," based on what is shown in the Codec Info app."]}),"\n",(0,n.jsxs)(o.p,{children:[(0,n.jsx)(o.em,{children:"Sources"}),"\n(1) MediaCodec | Android Developers. ",(0,n.jsx)(o.a,{href:"https://developer.android.com/reference/android/media/MediaCodec",children:"https://developer.android.com/reference/android/media/MediaCodec"}),".\n(2) Media | Android Open Source Project. ",(0,n.jsx)(o.a,{href:"https://source.android.com/docs/core/media",children:"https://source.android.com/docs/core/media"}),"."]})]})}function m(e={}){const{wrapper:o}={...(0,t.R)(),...e.components};return o?(0,n.jsx)(o,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,o,d)=>{d.d(o,{R:()=>r,x:()=>a});var i=d(6540);const n={},t=i.createContext(n);function r(e){const o=i.useContext(t);return i.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function a(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),i.createElement(t.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1ca2b1db.db972dc4.js b/assets/js/1ca2b1db.db972dc4.js deleted file mode 100644 index a11b5b958..000000000 --- a/assets/js/1ca2b1db.db972dc4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7855],{9073:(e,o,d)=>{d.r(o),d.d(o,{assets:()=>c,contentTitle:()=>r,default:()=>m,frontMatter:()=>t,metadata:()=>a,toc:()=>s});var i=d(4848),n=d(8453);const t={title:"Mediacodec",sidebar_position:5},r="Mediacodec",a={id:"encoders_hw/mediacodec",title:"Mediacodec",description:"The Android's MediaCodec framework is a part of Android's multimedia framework that provides access to low-level media encoder & decoder components. It is similar to VideoToolbox on Apple devices. Hardware acceleration with MediaCodec is used for processing audio, video, and compressed data.",source:"@site/docs/encoders_hw/mediacodec.mdx",sourceDirName:"encoders_hw",slug:"/encoders_hw/mediacodec",permalink:"/docs/encoders_hw/mediacodec",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders_hw/mediacodec.mdx",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"Mediacodec",sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"VideoToolbox",permalink:"/docs/encoders_hw/videotoolbox"},next:{title:"SRT",permalink:"/docs/subtitles/SRT"}},c={},s=[{value:"Usage",id:"usage",level:2},{value:"FFmpeg",id:"ffmpeg",level:3}];function l(e){const o={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.header,{children:(0,i.jsx)(o.h1,{id:"mediacodec",children:"Mediacodec"})}),"\n",(0,i.jsxs)(o.p,{children:["The Android's MediaCodec framework is a part of Android's multimedia framework that provides access to low-level media encoder & decoder components. It is similar to ",(0,i.jsx)(o.a,{href:"/docs/encoders_hw/videotoolbox",children:"VideoToolbox"})," on Apple devices. Hardware acceleration with MediaCodec is used for processing audio, video, and compressed data."]}),"\n",(0,i.jsxs)(o.p,{children:["One of the key features of the MediaCodec framework is its support for automatic media transcoding within the operating system. Introduced in Android 12, media transcoding features of the operating system allow devices to use more modern, storage-efficient media formats for video capture while maintaining compatibility with apps. For devices with compatible media transcoding enabled, Android can automatically convert videos recorded in formats such as ",(0,i.jsx)(o.a,{href:"/docs/video/HEVC",children:"H.265"})," when the videos are opened by an app that doesn't support the format. This allows apps to function even when videos are captured in newer formats on the device."]}),"\n",(0,i.jsx)(o.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsxs)(o.p,{children:["In order to view your device's supported hardware and software encoders exposed by the MediaCodec framework, it is advised to download the open source ",(0,i.jsx)(o.a,{href:"https://play.google.com/store/apps/details?id=com.parseus.codecinfo",children:"Codec Info"})," application."]}),"\n",(0,i.jsxs)(o.p,{children:["Once you know how to properly interact with your device's hardware encoders, ",(0,i.jsx)(o.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," will help you transcode videos easily from the command line."]}),"\n",(0,i.jsx)(o.h3,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,i.jsxs)(o.p,{children:["Testing for this piece was done on the Google Pixel 8, which featurs the Tensor G3 SoC. It is Exynos-based, so ",(0,i.jsx)(o.a,{href:"/docs/video/AVC",children:"H.264"}),", H.265 (HEVC), and ",(0,i.jsx)(o.a,{href:"/docs/video/VP9",children:"VP9"})," hardware acceleration for encoding are provided by the Exynos media block. AV1 encoding and decoding are available on the Tensor G3 provided by a custom Google multimedia block."]}),"\n",(0,i.jsx)(o.p,{children:"The Exynos's hardware implementation for encoding H.264 and H.265 does not support CQ (Constant Quality) encoding, so a target bitrate must be provided for either CBR (Constant Bitrate) or VBR (Variable Bitrate) encoding. Google's AV1 implementation is in the same situation."}),"\n",(0,i.jsx)(o.p,{children:"Some example MediaCodec encoding commands with FFmpeg:"}),"\n",(0,i.jsx)(o.pre,{children:(0,i.jsx)(o.code,{className:"language-bash",metastring:'title="H.264 encoding (VBR, target bitrate 4000K, 250-frame GOP size)"',children:"ffmpeg -i input.mkv -c:v h264_mediacodec -codec_name c2.exynos.h264.encoder -bitrate_mode 1 -b:v 4000K -g 250 output.mp4\n"})}),"\n",(0,i.jsx)(o.pre,{children:(0,i.jsx)(o.code,{className:"language-bash",metastring:'title="H.265 encoding (VBR, target bitrate 4000K, 250-frame GOP size)"',children:"ffmpeg -i input.mkv -c:v hevc_mediacodec -codec_name c2.exynos.hevc.encoder -bitrate_mode 1 -b:v 4000K -g 250 output.mp4\n"})}),"\n",(0,i.jsx)(o.p,{children:"VP9 encoding produces video that is severely distorted relative to the bitrate, and AV1 encoding produces broken files without metadata."}),"\n",(0,i.jsx)(o.pre,{children:(0,i.jsx)(o.code,{className:"language-bash",metastring:'title="VP9 encoding (VBR, target bitrate 9000K, 250-frame GOP size)"',children:"ffmpeg -i input.mkv -c:v vp9_mediacodec -codec_name c2.exynos.vp9.encoder -bitrate_mode 1 -b:v 9000K -g 250 output.mkv\n"})}),"\n",(0,i.jsx)(o.pre,{children:(0,i.jsx)(o.code,{className:"language-bash",metastring:'title="AV1 encoding (VBR, target bitrate 8000K, 250-frame GOP size)"',children:"ffmpeg -i input.mkv -c:v av1_mediacodec -codec_name c2.google.av1.encoder -bitrate_mode 1 -b:v 8000K -g 250 output.mp4\n"})}),"\n",(0,i.jsxs)(o.p,{children:["Just run ",(0,i.jsx)(o.code,{children:"ffmpeg -help encoder=hevc_mediacodec"})," or ",(0,i.jsx)(o.code,{children:"ffmpeg -help encoder=h264_mediacodec"})," for more info on how to use your MediaCodec encoders. You can choose a value for ",(0,i.jsx)(o.code,{children:"-codec_name"})," based on what is shown in the Codec Info app."]}),"\n",(0,i.jsxs)(o.p,{children:[(0,i.jsx)(o.em,{children:"Sources"}),"\n(1) MediaCodec | Android Developers. ",(0,i.jsx)(o.a,{href:"https://developer.android.com/reference/android/media/MediaCodec",children:"https://developer.android.com/reference/android/media/MediaCodec"}),".\n(2) Media | Android Open Source Project. ",(0,i.jsx)(o.a,{href:"https://source.android.com/docs/core/media",children:"https://source.android.com/docs/core/media"}),"."]})]})}function m(e={}){const{wrapper:o}={...(0,n.R)(),...e.components};return o?(0,i.jsx)(o,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},8453:(e,o,d)=>{d.d(o,{R:()=>r,x:()=>a});var i=d(6540);const n={},t=i.createContext(n);function r(e){const o=i.useContext(t);return i.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function a(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),i.createElement(t.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1e5c3f00.2a7a8f17.js b/assets/js/1e5c3f00.2a7a8f17.js new file mode 100644 index 000000000..e543437af --- /dev/null +++ b/assets/js/1e5c3f00.2a7a8f17.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9486],{3585:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>u,frontMatter:()=>s,metadata:()=>i,toc:()=>c});var i=n(1229),o=n(4848),r=n(8453);const s={title:"Codec Wiki: One Year Later",description:"Codec's Wiki turbulent one-year journey since it's inception to everyone's go-to site for encoding documentation.",slug:"codec-wiki-one-year-later",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["anniversary","history"],hide_table_of_contents:!1},a=void 0,l={authorsImageUrls:[void 0]},c=[{value:"Stats",id:"stats",level:2},{value:"Plausible",id:"plausible",level:3},{value:"Google Search Console",id:"google-search-console",level:3},{value:"A Brief History",id:"a-brief-history",level:2},{value:"Bumps in the Road",id:"bumps-in-the-road",level:2},{value:"Closing Statement",id:"closing-statement",level:2}];function h(e){const t={a:"a",blockquote:"blockquote",em:"em",h2:"h2",h3:"h3",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.p,{children:"Around a month ago, Codec Wiki celebrates it's very first anniversary as it officially hits one year old (Wow, that's a very long time!)."}),"\n",(0,o.jsxs)(t.p,{children:["First and foremost, I apologize for this delayed celebration post, I have been very busy for the past month, y'know, real life things. Second of all, I would like to say ",(0,o.jsx)(t.strong,{children:"THANK YOU"})," for everyone who helped build this wiki from the ground up and writing down the entries, you know who you are!"]}),"\n",(0,o.jsx)(t.h2,{id:"stats",children:"Stats"}),"\n",(0,o.jsx)(t.p,{children:"Thanks to everyone's efforts, over the course of 12 months Codec Wiki has grown into the (almost) go-to documentation and guide for newcomers just starting out in the quirky and wild world of multimedia encoding. So here are some pretty graphs to look at our progress so far!"}),"\n",(0,o.jsx)(t.h3,{id:"plausible",children:"Plausible"}),"\n",(0,o.jsxs)(t.p,{children:["As you may know, we run our own Plausible Analytics instance. Which is a self-hosted, open source, and privacy-respecting analytics. Currently hosted in Singapore and available for everyone to view ",(0,o.jsx)(t.a,{href:"https://analytics.x266.mov/wiki.x266.mov",children:"here"}),"."]}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/plausible.avif",type:"image/avif"}),(0,o.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/plausible.webp",alt:"Plausible Analytics"})]}),"\n",(0,o.jsx)(t.p,{children:"7.7K unique total visitors for a whole year may not be much but it's a great start!"}),"\n",(0,o.jsx)(t.p,{children:"Let's not forget those who use uBlock Origin or similar to block the analytics script. So the visitor count could be two or three times more!"}),"\n",(0,o.jsx)(t.h3,{id:"google-search-console",children:"Google Search Console"}),"\n",(0,o.jsx)(t.p,{children:"For those who are unfamiliar, Google Search Console is used for viewing well.. Google search data for your website. This data is unfortunately private and only the owner and those invited can see the data, no setting available for public view. Probably for the better."}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/console.avif",type:"image/avif"}),(0,o.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/console.webp",alt:"Google Search Console"})]}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)(t.p,{children:"And for our top 10 search queries in the last 28 days:"}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/insights.avif",type:"image/avif"}),(0,o.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/insights.webp",alt:"Search Queries page 1"})]}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/insights2.avif",type:"image/avif"}),(0,o.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/insights2.webp",alt:"Search Queries page 2"})]}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)(t.p,{children:"With pretty much zero competition in this niche of a market, it skyrocketed Codec Wiki to the top of search results for everything multimedia related \ud83d\ude05."}),"\n",(0,o.jsx)(t.h2,{id:"a-brief-history",children:"A Brief History"}),"\n",(0,o.jsx)(t.p,{children:'Around a year ago, I started work on an unofficial "wiki" for all things encoding, it initially started as a half-serious joke because I was annoyed there were no good documentation available\r\nanywhere on the internet on the real application and usage of encoders such as "Should I use tune SSIM in x encoder?". With the search results you\'ll be presented with being one or more of these:'}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Doesn't exist."}),"\n",(0,o.jsx)(t.li,{children:"Mentioned in the FFmpeg mailing list but nothing else."}),"\n",(0,o.jsx)(t.li,{children:"PDF research papers on IEEE and similar."}),"\n",(0,o.jsx)(t.li,{children:"Outdated information on Doom9 or Multimedia Wiki."}),"\n",(0,o.jsx)(t.li,{children:'"The documentation are in the code blocks".'}),"\n",(0,o.jsx)(t.li,{children:"Link rot."}),"\n",(0,o.jsx)(t.li,{children:"Abandoned, or mostly focused on other topics."}),"\n",(0,o.jsx)(t.li,{children:"Focused on a specific type of storytelling medium."}),"\n",(0,o.jsx)(t.li,{children:"Actual good explanation in an old forgotten site (rare)."}),"\n"]}),"\n",(0,o.jsx)(t.p,{children:"Some or maybe even most of these results still appear up to this day."}),"\n",(0,o.jsx)(t.p,{children:"Frustrated with how scarce information is available on the open internet and combined with the fact that most, if not all of them only exist in non-search-engine-reachable private chat communities such as Discord where you'll have to join and scroll around older conversations."}),"\n",(0,o.jsx)(t.p,{children:'Prone to data erasure as Discord can nuke these servers for whatever reason they please and years of "documentation" is lost in an instant. It is simply not a good platform for a plethora of valuable information.'}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.strong,{children:"That's why I took initiative."})}),"\n",(0,o.jsx)(t.h2,{id:"bumps-in-the-road",children:"Bumps in the Road"}),"\n",(0,o.jsx)(t.p,{children:"There were also generally a lot of distrust and pushbacks when this project first began, particularly from those who are more experienced with encoding. Which is understandable because everyone who attempted before burned out and never finished it."}),"\n",(0,o.jsx)(t.p,{children:"But Codec Wiki stood the test of time with constant updates through active collaboration of everyone involved, nowadays those voices have mostly subsided or even joined the project themselves. And I am grateful for that."}),"\n",(0,o.jsx)(t.h2,{id:"closing-statement",children:"Closing Statement"}),"\n",(0,o.jsxs)(t.p,{children:["Once again, ",(0,o.jsx)(t.strong,{children:"THANK YOU VERY MUCH"})," for those who are involved in this project and making the once pipe dream of a one-stop-shop user-friendly documentation for encoding into something that's possible."]}),"\n",(0,o.jsx)(t.p,{children:"Let's continue documenting the most crucial yet invisible driving force of internet traffic, pages by pages."}),"\n",(0,o.jsx)(t.p,{children:"Together we are strong, divided we burn out."}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:['"There are times when a critic truly risks something, and that is the discovery and defense of the ',(0,o.jsx)(t.em,{children:"new"}),". ",(0,o.jsx)(t.strong,{children:"The world is often unkind to new talent, new creations. The new needs friends"}),'."']}),"\n",(0,o.jsx)(t.p,{children:"\u2014 Anton Ego"}),"\n"]})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>s,x:()=>a});var i=n(6540);const o={},r=i.createContext(o);function s(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),i.createElement(r.Provider,{value:t},e.children)}},1229:e=>{e.exports=JSON.parse('{"permalink":"/blog/codec-wiki-one-year-later","source":"@site/blog/2024-07-20-codec-wiki-one-year-later.mdx","title":"Codec Wiki: One Year Later","description":"Codec\'s Wiki turbulent one-year journey since it\'s inception to everyone\'s go-to site for encoding documentation.","date":"2024-07-20T00:00:00.000Z","tags":[{"inline":true,"label":"anniversary","permalink":"/blog/tags/anniversary"},{"inline":true,"label":"history","permalink":"/blog/tags/history"}],"readingTime":3.785,"hasTruncateMarker":true,"authors":[{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4","socials":{},"key":null,"page":null}],"frontMatter":{"title":"Codec Wiki: One Year Later","description":"Codec\'s Wiki turbulent one-year journey since it\'s inception to everyone\'s go-to site for encoding documentation.","slug":"codec-wiki-one-year-later","authors":[{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4"}],"tags":["anniversary","history"],"hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"Better late than never: SVT-AV1 v2.2.x Deep Dive","permalink":"/blog/svt-av1-third-deep-dive"},"nextItem":{"title":"AV1 for Dummies","permalink":"/blog/av1-for-dummies"}}')}}]); \ No newline at end of file diff --git a/assets/js/1e5c3f00.e810230c.js b/assets/js/1e5c3f00.e810230c.js deleted file mode 100644 index b92a842cc..000000000 --- a/assets/js/1e5c3f00.e810230c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9486],{3585:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>r,default:()=>u,frontMatter:()=>s,metadata:()=>a,toc:()=>c});var o=n(4848),i=n(8453);const s={title:"Codec Wiki: One Year Later",description:"Codec's Wiki turbulent one-year journey since it's inception to everyone's go-to site for encoding documentation.",slug:"codec-wiki-one-year-later",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["anniversary","history"],hide_table_of_contents:!1},r=void 0,a={permalink:"/blog/codec-wiki-one-year-later",source:"@site/blog/2024-07-20-codec-wiki-one-year-later.mdx",title:"Codec Wiki: One Year Later",description:"Codec's Wiki turbulent one-year journey since it's inception to everyone's go-to site for encoding documentation.",date:"2024-07-20T00:00:00.000Z",tags:[{inline:!0,label:"anniversary",permalink:"/blog/tags/anniversary"},{inline:!0,label:"history",permalink:"/blog/tags/history"}],readingTime:3.785,hasTruncateMarker:!0,authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4",key:null,page:null}],frontMatter:{title:"Codec Wiki: One Year Later",description:"Codec's Wiki turbulent one-year journey since it's inception to everyone's go-to site for encoding documentation.",slug:"codec-wiki-one-year-later",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["anniversary","history"],hide_table_of_contents:!1},unlisted:!1,nextItem:{title:"AV1 for Dummies",permalink:"/blog/av1-for-dummies"}},l={authorsImageUrls:[void 0]},c=[{value:"Stats",id:"stats",level:2},{value:"Plausible",id:"plausible",level:3},{value:"Google Search Console",id:"google-search-console",level:3},{value:"A Brief History",id:"a-brief-history",level:2},{value:"Bumps in the Road",id:"bumps-in-the-road",level:2},{value:"Closing Statement",id:"closing-statement",level:2}];function h(e){const t={a:"a",blockquote:"blockquote",em:"em",h2:"h2",h3:"h3",li:"li",p:"p",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.p,{children:"Around a month ago, Codec Wiki celebrates it's very first anniversary as it officially hits one year old (Wow, that's a very long time!)."}),"\n",(0,o.jsxs)(t.p,{children:["First and foremost, I apologize for this delayed celebration post, I have been very busy for the past month, y'know, real life things. Second of all, I would like to say ",(0,o.jsx)(t.strong,{children:"THANK YOU"})," for everyone who helped build this wiki from the ground up and writing down the entries, you know who you are!"]}),"\n",(0,o.jsx)(t.h2,{id:"stats",children:"Stats"}),"\n",(0,o.jsx)(t.p,{children:"Thanks to everyone's efforts, over the course of 12 months Codec Wiki has grown into the (almost) go-to documentation and guide for newcomers just starting out in the quirky and wild world of multimedia encoding. So here are some pretty graphs to look at our progress so far!"}),"\n",(0,o.jsx)(t.h3,{id:"plausible",children:"Plausible"}),"\n",(0,o.jsxs)(t.p,{children:["As you may know, we run our own Plausible Analytics instance. Which is a self-hosted, open source, and privacy-respecting analytics. Currently hosted in Singapore and available for everyone to view ",(0,o.jsx)(t.a,{href:"https://analytics.x266.mov/wiki.x266.mov",children:"here"}),"."]}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/plausible.avif",type:"image/avif"}),(0,o.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/plausible.webp",alt:"Plausible Analytics"})]}),"\n",(0,o.jsx)(t.p,{children:"7.7K unique total visitors for a whole year may not be much but it's a great start!"}),"\n",(0,o.jsx)(t.p,{children:"Let's not forget those who use uBlock Origin or similar to block the analytics script. So the visitor count could be two or three times more!"}),"\n",(0,o.jsx)(t.h3,{id:"google-search-console",children:"Google Search Console"}),"\n",(0,o.jsx)(t.p,{children:"For those who are unfamiliar, Google Search Console is used for viewing well.. Google search data for your website. This data is unfortunately private and only the owner and those invited can see the data, no setting available for public view. Probably for the better."}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/console.avif",type:"image/avif"}),(0,o.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/console.webp",alt:"Google Search Console"})]}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)(t.p,{children:"And for our top 10 search queries in the last 28 days:"}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/insights.avif",type:"image/avif"}),(0,o.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/insights.webp",alt:"Search Queries page 1"})]}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/insights2.avif",type:"image/avif"}),(0,o.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/one-year-anniv-blog/insights2.webp",alt:"Search Queries page 2"})]}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)(t.p,{children:"With pretty much zero competition in this niche of a market, it skyrocketed Codec Wiki to the top of search results for everything multimedia related \ud83d\ude05."}),"\n",(0,o.jsx)(t.h2,{id:"a-brief-history",children:"A Brief History"}),"\n",(0,o.jsx)(t.p,{children:'Around a year ago, I started work on an unofficial "wiki" for all things encoding, it initially started as a half-serious joke because I was annoyed there were no good documentation available\r\nanywhere on the internet on the real application and usage of encoders such as "Should I use tune SSIM in x encoder?". With the search results you\'ll be presented with being one or more of these:'}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Doesn't exist."}),"\n",(0,o.jsx)(t.li,{children:"Mentioned in the FFmpeg mailing list but nothing else."}),"\n",(0,o.jsx)(t.li,{children:"PDF research papers on IEEE and similar."}),"\n",(0,o.jsx)(t.li,{children:"Outdated information on Doom9 or Multimedia Wiki."}),"\n",(0,o.jsx)(t.li,{children:'"The documentation are in the code blocks".'}),"\n",(0,o.jsx)(t.li,{children:"Link rot."}),"\n",(0,o.jsx)(t.li,{children:"Abandoned, or mostly focused on other topics."}),"\n",(0,o.jsx)(t.li,{children:"Focused on a specific type of storytelling medium."}),"\n",(0,o.jsx)(t.li,{children:"Actual good explanation in an old forgotten site (rare)."}),"\n"]}),"\n",(0,o.jsx)(t.p,{children:"Some or maybe even most of these results still appear up to this day."}),"\n",(0,o.jsx)(t.p,{children:"Frustrated with how scarce information is available on the open internet and combined with the fact that most, if not all of them only exist in non-search-engine-reachable private chat communities such as Discord where you'll have to join and scroll around older conversations."}),"\n",(0,o.jsx)(t.p,{children:'Prone to data erasure as Discord can nuke these servers for whatever reason they please and years of "documentation" is lost in an instant. It is simply not a good platform for a plethora of valuable information.'}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.strong,{children:"That's why I took initiative."})}),"\n",(0,o.jsx)(t.h2,{id:"bumps-in-the-road",children:"Bumps in the Road"}),"\n",(0,o.jsx)(t.p,{children:"There were also generally a lot of distrust and pushbacks when this project first began, particularly from those who are more experienced with encoding. Which is understandable because everyone who attempted before burned out and never finished it."}),"\n",(0,o.jsx)(t.p,{children:"But Codec Wiki stood the test of time with constant updates through active collaboration of everyone involved, nowadays those voices have mostly subsided or even joined the project themselves. And I am grateful for that."}),"\n",(0,o.jsx)(t.h2,{id:"closing-statement",children:"Closing Statement"}),"\n",(0,o.jsxs)(t.p,{children:["Once again, ",(0,o.jsx)(t.strong,{children:"THANK YOU VERY MUCH"})," for those who are involved in this project and making the once pipe dream of a one-stop-shop user-friendly documentation for encoding into something that's possible."]}),"\n",(0,o.jsx)(t.p,{children:"Let's continue documenting the most crucial yet invisible driving force of internet traffic, pages by pages."}),"\n",(0,o.jsx)(t.p,{children:"Together we are strong, divided we burn out."}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:['"There are times when a critic truly risks something, and that is the discovery and defense of the ',(0,o.jsx)(t.em,{children:"new"}),". ",(0,o.jsx)(t.strong,{children:"The world is often unkind to new talent, new creations. The new needs friends"}),'."']}),"\n",(0,o.jsx)(t.p,{children:"\u2014 Anton Ego"}),"\n"]})]})}function u(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>r,x:()=>a});var o=n(6540);const i={},s=o.createContext(i);function r(e){const t=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),o.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1ec3ce74.4bbbc046.js b/assets/js/1ec3ce74.4bbbc046.js new file mode 100644 index 000000000..fd86b6392 --- /dev/null +++ b/assets/js/1ec3ce74.4bbbc046.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2142],{615:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>o,metadata:()=>n,toc:()=>u});const n=JSON.parse('{"id":"encoders/rav1e","title":"rav1e","description":"rav1e is an open source command line application for encoding AV1 written in Assembly & Rust, co-developed by Xiph.org and Mozilla and licensed under BSD-2 Clause.","source":"@site/docs/encoders/rav1e.mdx","sourceDirName":"encoders","slug":"/encoders/rav1e","permalink":"/docs/encoders/rav1e","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/rav1e.mdx","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"title":"rav1e","keywords":["AV1","encoding","video encoding"],"sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"SVT-AV1","permalink":"/docs/encoders/SVT-AV1"},"next":{"title":"Aurora1 AV1","permalink":"/docs/encoders/Aurora1"}}');var i=r(4848),s=r(8453),a=r(1470),l=r(9365);const o={title:"rav1e",keywords:["AV1","encoding","video encoding"],sidebar_position:5},c="rav1e",d={},u=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installation",id:"installation",level:2},{value:"Patched Installation with HDR10+ support",id:"patched-installation-with-hdr10-support",level:3},{value:"Usage",id:"usage",level:2},{value:"Tips & Tricks",id:"tips--tricks",level:2}];function h(e){const t={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"rav1e",children:"rav1e"})}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.a,{href:"https://github.com/xiph/rav1e",children:"rav1e"})," is an open source command line application for encoding AV1 written in Assembly & Rust, co-developed by Xiph.org and Mozilla and licensed under BSD-2 Clause."]}),"\n",(0,i.jsx)(t.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,i.jsxs)(t.p,{children:["rav1e is available in FFmpeg via ",(0,i.jsx)(t.code,{children:"librav1e"}),", to check if you have it, run ",(0,i.jsx)(t.code,{children:"ffmpeg -h encoder=librav1e"}),". You can input non-FFmpeg standard rav1e parameters via ",(0,i.jsx)(t.code,{children:"-rav1e-params"}),"."]}),"\n",(0,i.jsx)(t.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,i.jsx)(t.p,{children:"rav1e supports the following color spaces:"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Format"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,i.jsx)(t.th,{children:"Supported Bit Depth(s)"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV420P"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,i.jsx)(t.td,{children:"8-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUVJ420P"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,i.jsx)(t.td,{children:"8-bit (Full range)"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV422P"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,i.jsx)(t.td,{children:"8-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUVJ422P"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,i.jsx)(t.td,{children:"8-bit (Full range)"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV444P"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,i.jsx)(t.td,{children:"8-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUVJ444P"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,i.jsx)(t.td,{children:"8-bit (Full range)"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV420P10LE"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,i.jsx)(t.td,{children:"10-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV422P10LE"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,i.jsx)(t.td,{children:"10-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV444P10LE"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,i.jsx)(t.td,{children:"10-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV420P12LE"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,i.jsx)(t.td,{children:"12-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV422P12LE"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,i.jsx)(t.td,{children:"12-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV444P12LE"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,i.jsx)(t.td,{children:"12-bit"})]})]})]}),"\n",(0,i.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,i.jsxs)(a.A,{children:[(0,i.jsxs)(l.A,{value:"unixlike",label:"Linux & macOS",children:[(0,i.jsxs)(t.p,{children:["Official pre-built rav1e binaries can be found on the ",(0,i.jsx)(t.a,{href:"https://github.com/xiph/rav1e/releases",children:"releases page"})," in rav1e's Github repository. Unofficially, the ",(0,i.jsx)(t.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"})," command line tool can automatically download and install rav1e to ",(0,i.jsx)(t.code,{children:"/usr/local/bin"}),". rav1e can also be installed with Cargo by running ",(0,i.jsx)(t.code,{children:"cargo install rav1e"}),"."]}),(0,i.jsx)(t.admonition,{title:"Stable Release",type:"info",children:(0,i.jsxs)(t.p,{children:["For stability & a proper version number, please reset the source to the correct release commit. In the releases page, click the icon to the right of the release tag & copy the commit in the url bar. Then, in the cloned rav1e directory, ",(0,i.jsx)(t.code,{children:"git reset --hard [commit hash]"})]})}),(0,i.jsxs)(t.p,{children:["Here are instructions for resetting to release 0.7.1 (latest as of 19 Feb 2024) and building. Omit the ",(0,i.jsx)(t.code,{children:"git reset"})," command to use the latest git, if you have a ",(0,i.jsx)(t.em,{children:"specific"})," reason to use the latest git instead of an official tagged release."]}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:'git clone https://github.com/xiph/rav1e.git\ncd rav1e\ngit reset --hard a8d05d0c43826a465b60dbadd0ab7f1327d75371\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})}),(0,i.jsxs)(t.p,{children:["When done, the binary can be found in ",(0,i.jsx)(t.code,{children:"/target/release"}),". You can then copy the binary wherever you desire it to go, like by doing ",(0,i.jsx)(t.code,{children:"cp /target/release/rav1e /usr/local/bin"})," ."]}),(0,i.jsx)(t.h3,{id:"patched-installation-with-hdr10-support",children:"Patched Installation with HDR10+ support"}),(0,i.jsxs)(t.p,{children:["rav1e currently has an ",(0,i.jsx)(t.a,{href:"https://github.com/xiph/rav1e/pull/3000",children:"unmerged pull request"})," by quietvoid, the person behind ",(0,i.jsx)(t.a,{href:"/docs/utilities/hdr10plus_tool",children:"hdr10plus_tool"})," and ",(0,i.jsx)(t.a,{href:"/docs/utilities/dovi_tool",children:"dovi_tool"}),". The PR adds a new parameter called ",(0,i.jsx)(t.code,{children:"--hdr10plus-json"})," for HDR10+ JSON dynamic metadata input. To merge it locally, do the following:"]}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"git clone https://github.com/xiph/rav1e.git\ncd rav1e\ngit reset --hard [release commit]\ngit fetch origin pull/3000/head:HDR10+\n"})}),(0,i.jsx)(t.p,{children:"Now the patch should be applied, and you may build as usual."})]}),(0,i.jsxs)(l.A,{value:"windows",label:"Windows",children:[(0,i.jsxs)(t.p,{children:["If you would not like to build from source, official pre-built rav1e binaries can be found on the ",(0,i.jsx)(t.a,{href:"https://github.com/xiph/rav1e/releases",children:"releases page"})," in rav1e's Github repository."]}),(0,i.jsx)(t.admonition,{title:"Stable Release",type:"info",children:(0,i.jsxs)(t.p,{children:["For stability & a proper version number, please reset the source to the correct release commit. In the releases page, click the icon to the right of the release tag & copy the commit in the url bar. Then, in the cloned rav1e directory, ",(0,i.jsx)(t.code,{children:"git reset --hard [commit hash]"})]})}),(0,i.jsxs)(t.p,{children:["Here are instructions for resetting to release 0.7.1 (latest as of 19 Feb 2024) and building. Omit the ",(0,i.jsx)(t.code,{children:"git reset"})," command to use the latest git, if you have a ",(0,i.jsx)(t.em,{children:"specific"})," reason to use the latest git instead of an official tagged release."]}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-powershell",children:"git clone https://github.com/xiph/rav1e.git\ncd rav1e\ngit reset --hard a8d05d0c43826a465b60dbadd0ab7f1327d75371\nset RUSTFLAGS=-C target-cpu=native\ncargo build --release\n"})}),(0,i.jsxs)(t.p,{children:["When done, the binary can be found in ",(0,i.jsx)(t.code,{children:"target/release"})]})]})]}),"\n",(0,i.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsx)(t.p,{children:"For AV1 encoding, rav1e has very sane defaults. It is very hard to go wrong with parameters if you modify as few as possible."}),"\n",(0,i.jsx)(t.admonition,{type:"tip",children:(0,i.jsxs)(t.p,{children:["To convert ",(0,i.jsx)(t.code,{children:"cq-level"})," in aomenc and ",(0,i.jsx)(t.code,{children:"crf"})," in SVT-AV1 to rav1e's quantizer values, multiply by 4. For example, ",(0,i.jsx)(t.code,{children:"--cq-level 20"})," equals to ",(0,i.jsx)(t.code,{children:"--quantizer 80"}),"."]})}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",metastring:'title="Basic usage"',children:"rav1e -i input.y4m -o output.ivf --quantizer 60 --photon-noise 8\n"})}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",metastring:'title="Basic usage with FFmpeg piping, 10bit input"',children:"ffmpeg -i input.mkv -pix_fmt yuv420p10le -strict -2 -f yuv4mpegpipe - | rav1e - -o output.ivf --quantizer 80 --photon-noise 8\n"})}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",metastring:'title="Basic usage with FFmpeg piping, 10bit input and assuming 4K"',children:"ffmpeg -i input.mkv -pix_fmt yuv420p10le -strict -2 -f yuv4mpegpipe - | rav1e - -o output.ivf --quantizer 68 --tile-columns 2 --tile-rows 1 --photon-noise 8\n"})}),"\n",(0,i.jsx)(t.h2,{id:"tips--tricks",children:"Tips & Tricks"}),"\n",(0,i.jsxs)(t.ol,{children:["\n",(0,i.jsxs)(t.li,{children:["Use 2x1 tiles or ",(0,i.jsx)(t.code,{children:"tile-columns 2"})," and ",(0,i.jsx)(t.code,{children:"tile-rows 1"})," for 4K (2160p) encoding, this will help with both encoding and decoding speeds."]}),"\n"]})]})}function p(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},9365:(e,t,r)=>{r.d(t,{A:()=>a});r(6540);var n=r(4164);const i={tabItem:"tabItem_Ymn6"};var s=r(4848);function a(e){let{children:t,hidden:r,className:a}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,n.A)(i.tabItem,a),hidden:r,children:t})}},1470:(e,t,r)=>{r.d(t,{A:()=>w});var n=r(6540),i=r(4164),s=r(3104),a=r(6347),l=r(205),o=r(7485),c=r(1682),d=r(679);function u(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:t,children:r}=e;return(0,n.useMemo)((()=>{const e=t??function(e){return u(e).map((e=>{let{props:{value:t,label:r,attributes:n,default:i}}=e;return{value:t,label:r,attributes:n,default:i}}))}(r);return function(e){const t=(0,c.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,r])}function p(e){let{value:t,tabValues:r}=e;return r.some((e=>e.value===t))}function x(e){let{queryString:t=!1,groupId:r}=e;const i=(0,a.W6)(),s=function(e){let{queryString:t=!1,groupId:r}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!r)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:t,groupId:r});return[(0,o.aZ)(s),(0,n.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(i.location.search);t.set(s,e),i.replace({...i.location,search:t.toString()})}),[s,i])]}function m(e){const{defaultValue:t,queryString:r=!1,groupId:i}=e,s=h(e),[a,o]=(0,n.useState)((()=>function(e){let{defaultValue:t,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!p({value:t,tabValues:r}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=r.find((e=>e.default))??r[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:s}))),[c,u]=x({queryString:r,groupId:i}),[m,g]=function(e){let{groupId:t}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(t),[i,s]=(0,d.Dv)(r);return[i,(0,n.useCallback)((e=>{r&&s.set(e)}),[r,s])]}({groupId:i}),b=(()=>{const e=c??m;return p({value:e,tabValues:s})?e:null})();(0,l.A)((()=>{b&&o(b)}),[b]);return{selectedValue:a,selectValue:(0,n.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);o(e),u(e),g(e)}),[u,g,s]),tabValues:s}}var g=r(2303);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=r(4848);function v(e){let{className:t,block:r,selectedValue:n,selectValue:a,tabValues:l}=e;const o=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.a_)(),d=e=>{const t=e.currentTarget,r=o.indexOf(t),i=l[r].value;i!==n&&(c(t),a(i))},u=e=>{let t=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const r=o.indexOf(e.currentTarget)+1;t=o[r]??o[0];break}case"ArrowLeft":{const r=o.indexOf(e.currentTarget)-1;t=o[r]??o[o.length-1];break}}t?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,i.A)("tabs",{"tabs--block":r},t),children:l.map((e=>{let{value:t,label:r,attributes:s}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:n===t?0:-1,"aria-selected":n===t,ref:e=>o.push(e),onKeyDown:u,onClick:d,...s,className:(0,i.A)("tabs__item",b.tabItem,s?.className,{"tabs__item--active":n===t}),children:r??t},t)}))})}function j(e){let{lazy:t,children:r,selectedValue:s}=e;const a=(Array.isArray(r)?r:[r]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===s));return e?(0,n.cloneElement)(e,{className:(0,i.A)("margin-top--md",e.props.className)}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,n.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function y(e){const t=m(e);return(0,f.jsxs)("div",{className:(0,i.A)("tabs-container",b.tabList),children:[(0,f.jsx)(v,{...t,...e}),(0,f.jsx)(j,{...t,...e})]})}function w(e){const t=(0,g.A)();return(0,f.jsx)(y,{...e,children:u(e.children)},String(t))}},8453:(e,t,r)=>{r.d(t,{R:()=>a,x:()=>l});var n=r(6540);const i={},s=n.createContext(i);function a(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1ec3ce74.4c398aa5.js b/assets/js/1ec3ce74.4c398aa5.js deleted file mode 100644 index fcbda791d..000000000 --- a/assets/js/1ec3ce74.4c398aa5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2142],{5780:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>o,default:()=>p,frontMatter:()=>l,metadata:()=>c,toc:()=>u});var n=r(4848),i=r(8453),s=r(1470),a=r(9365);const l={title:"rav1e",keywords:["AV1","encoding","video encoding"],sidebar_position:5},o="rav1e",c={id:"encoders/rav1e",title:"rav1e",description:"rav1e is an open source command line application for encoding AV1 written in Assembly & Rust, co-developed by Xiph.org and Mozilla and licensed under BSD-2 Clause.",source:"@site/docs/encoders/rav1e.mdx",sourceDirName:"encoders",slug:"/encoders/rav1e",permalink:"/docs/encoders/rav1e",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/rav1e.mdx",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"rav1e",keywords:["AV1","encoding","video encoding"],sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"SVT-AV1",permalink:"/docs/encoders/SVT-AV1"},next:{title:"Aurora1 AV1",permalink:"/docs/encoders/Aurora1"}},d={},u=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installation",id:"installation",level:2},{value:"Patched Installation with HDR10+ support",id:"patched-installation-with-hdr10-support",level:3},{value:"Usage",id:"usage",level:2},{value:"Tips & Tricks",id:"tips--tricks",level:2}];function h(e){const t={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"rav1e",children:"rav1e"})}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.a,{href:"https://github.com/xiph/rav1e",children:"rav1e"})," is an open source command line application for encoding AV1 written in Assembly & Rust, co-developed by Xiph.org and Mozilla and licensed under BSD-2 Clause."]}),"\n",(0,n.jsx)(t.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,n.jsxs)(t.p,{children:["rav1e is available in FFmpeg via ",(0,n.jsx)(t.code,{children:"librav1e"}),", to check if you have it, run ",(0,n.jsx)(t.code,{children:"ffmpeg -h encoder=librav1e"}),". You can input non-FFmpeg standard rav1e parameters via ",(0,n.jsx)(t.code,{children:"-rav1e-params"}),"."]}),"\n",(0,n.jsx)(t.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,n.jsx)(t.p,{children:"rav1e supports the following color spaces:"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Format"}),(0,n.jsx)(t.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,n.jsx)(t.th,{children:"Supported Bit Depth(s)"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV420P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(t.td,{children:"8-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUVJ420P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(t.td,{children:"8-bit (Full range)"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV422P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,n.jsx)(t.td,{children:"8-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUVJ422P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,n.jsx)(t.td,{children:"8-bit (Full range)"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV444P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,n.jsx)(t.td,{children:"8-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUVJ444P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,n.jsx)(t.td,{children:"8-bit (Full range)"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV420P10LE"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(t.td,{children:"10-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV422P10LE"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,n.jsx)(t.td,{children:"10-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV444P10LE"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,n.jsx)(t.td,{children:"10-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV420P12LE"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(t.td,{children:"12-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV422P12LE"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,n.jsx)(t.td,{children:"12-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV444P12LE"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,n.jsx)(t.td,{children:"12-bit"})]})]})]}),"\n",(0,n.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,n.jsxs)(s.A,{children:[(0,n.jsxs)(a.A,{value:"unixlike",label:"Linux & macOS",children:[(0,n.jsxs)(t.p,{children:["Official pre-built rav1e binaries can be found on the ",(0,n.jsx)(t.a,{href:"https://github.com/xiph/rav1e/releases",children:"releases page"})," in rav1e's Github repository. Unofficially, the ",(0,n.jsx)(t.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"})," command line tool can automatically download and install rav1e to ",(0,n.jsx)(t.code,{children:"/usr/local/bin"}),". rav1e can also be installed with Cargo by running ",(0,n.jsx)(t.code,{children:"cargo install rav1e"}),"."]}),(0,n.jsx)(t.admonition,{title:"Stable Release",type:"info",children:(0,n.jsxs)(t.p,{children:["For stability & a proper version number, please reset the source to the correct release commit. In the releases page, click the icon to the right of the release tag & copy the commit in the url bar. Then, in the cloned rav1e directory, ",(0,n.jsx)(t.code,{children:"git reset --hard [commit hash]"})]})}),(0,n.jsxs)(t.p,{children:["Here are instructions for resetting to release 0.7.1 (latest as of 19 Feb 2024) and building. Omit the ",(0,n.jsx)(t.code,{children:"git reset"})," command to use the latest git, if you have a ",(0,n.jsx)(t.em,{children:"specific"})," reason to use the latest git instead of an official tagged release."]}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:'git clone https://github.com/xiph/rav1e.git\ncd rav1e\ngit reset --hard a8d05d0c43826a465b60dbadd0ab7f1327d75371\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})}),(0,n.jsxs)(t.p,{children:["When done, the binary can be found in ",(0,n.jsx)(t.code,{children:"/target/release"}),". You can then copy the binary wherever you desire it to go, like by doing ",(0,n.jsx)(t.code,{children:"cp /target/release/rav1e /usr/local/bin"})," ."]}),(0,n.jsx)(t.h3,{id:"patched-installation-with-hdr10-support",children:"Patched Installation with HDR10+ support"}),(0,n.jsxs)(t.p,{children:["rav1e currently has an ",(0,n.jsx)(t.a,{href:"https://github.com/xiph/rav1e/pull/3000",children:"unmerged pull request"})," by quietvoid, the person behind ",(0,n.jsx)(t.a,{href:"/docs/utilities/hdr10plus_tool",children:"hdr10plus_tool"})," and ",(0,n.jsx)(t.a,{href:"/docs/utilities/dovi_tool",children:"dovi_tool"}),". The PR adds a new parameter called ",(0,n.jsx)(t.code,{children:"--hdr10plus-json"})," for HDR10+ JSON dynamic metadata input. To merge it locally, do the following:"]}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"git clone https://github.com/xiph/rav1e.git\ncd rav1e\ngit reset --hard [release commit]\ngit fetch origin pull/3000/head:HDR10+\n"})}),(0,n.jsx)(t.p,{children:"Now the patch should be applied, and you may build as usual."})]}),(0,n.jsxs)(a.A,{value:"windows",label:"Windows",children:[(0,n.jsxs)(t.p,{children:["If you would not like to build from source, official pre-built rav1e binaries can be found on the ",(0,n.jsx)(t.a,{href:"https://github.com/xiph/rav1e/releases",children:"releases page"})," in rav1e's Github repository."]}),(0,n.jsx)(t.admonition,{title:"Stable Release",type:"info",children:(0,n.jsxs)(t.p,{children:["For stability & a proper version number, please reset the source to the correct release commit. In the releases page, click the icon to the right of the release tag & copy the commit in the url bar. Then, in the cloned rav1e directory, ",(0,n.jsx)(t.code,{children:"git reset --hard [commit hash]"})]})}),(0,n.jsxs)(t.p,{children:["Here are instructions for resetting to release 0.7.1 (latest as of 19 Feb 2024) and building. Omit the ",(0,n.jsx)(t.code,{children:"git reset"})," command to use the latest git, if you have a ",(0,n.jsx)(t.em,{children:"specific"})," reason to use the latest git instead of an official tagged release."]}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-powershell",children:"git clone https://github.com/xiph/rav1e.git\ncd rav1e\ngit reset --hard a8d05d0c43826a465b60dbadd0ab7f1327d75371\nset RUSTFLAGS=-C target-cpu=native\ncargo build --release\n"})}),(0,n.jsxs)(t.p,{children:["When done, the binary can be found in ",(0,n.jsx)(t.code,{children:"target/release"})]})]})]}),"\n",(0,n.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsx)(t.p,{children:"For AV1 encoding, rav1e has very sane defaults. It is very hard to go wrong with parameters if you modify as few as possible."}),"\n",(0,n.jsx)(t.admonition,{type:"tip",children:(0,n.jsxs)(t.p,{children:["To convert ",(0,n.jsx)(t.code,{children:"cq-level"})," in aomenc and ",(0,n.jsx)(t.code,{children:"crf"})," in SVT-AV1 to rav1e's quantizer values, multiply by 4. For example, ",(0,n.jsx)(t.code,{children:"--cq-level 20"})," equals to ",(0,n.jsx)(t.code,{children:"--quantizer 80"}),"."]})}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Basic usage"',children:"rav1e -i input.y4m -o output.ivf --quantizer 60 --photon-noise 8\n"})}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Basic usage with FFmpeg piping, 10bit input"',children:"ffmpeg -i input.mkv -pix_fmt yuv420p10le -strict -2 -f yuv4mpegpipe - | rav1e - -o output.ivf --quantizer 80 --photon-noise 8\n"})}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Basic usage with FFmpeg piping, 10bit input and assuming 4K"',children:"ffmpeg -i input.mkv -pix_fmt yuv420p10le -strict -2 -f yuv4mpegpipe - | rav1e - -o output.ivf --quantizer 68 --tile-columns 2 --tile-rows 1 --photon-noise 8\n"})}),"\n",(0,n.jsx)(t.h2,{id:"tips--tricks",children:"Tips & Tricks"}),"\n",(0,n.jsxs)(t.ol,{children:["\n",(0,n.jsxs)(t.li,{children:["Use 2x1 tiles or ",(0,n.jsx)(t.code,{children:"tile-columns 2"})," and ",(0,n.jsx)(t.code,{children:"tile-rows 1"})," for 4K (2160p) encoding, this will help with both encoding and decoding speeds."]}),"\n"]})]})}function p(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},9365:(e,t,r)=>{r.d(t,{A:()=>a});r(6540);var n=r(4164);const i={tabItem:"tabItem_Ymn6"};var s=r(4848);function a(e){let{children:t,hidden:r,className:a}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,n.A)(i.tabItem,a),hidden:r,children:t})}},1470:(e,t,r)=>{r.d(t,{A:()=>w});var n=r(6540),i=r(4164),s=r(3104),a=r(6347),l=r(205),o=r(7485),c=r(1682),d=r(679);function u(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:t,children:r}=e;return(0,n.useMemo)((()=>{const e=t??function(e){return u(e).map((e=>{let{props:{value:t,label:r,attributes:n,default:i}}=e;return{value:t,label:r,attributes:n,default:i}}))}(r);return function(e){const t=(0,c.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,r])}function p(e){let{value:t,tabValues:r}=e;return r.some((e=>e.value===t))}function x(e){let{queryString:t=!1,groupId:r}=e;const i=(0,a.W6)(),s=function(e){let{queryString:t=!1,groupId:r}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!r)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:t,groupId:r});return[(0,o.aZ)(s),(0,n.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(i.location.search);t.set(s,e),i.replace({...i.location,search:t.toString()})}),[s,i])]}function m(e){const{defaultValue:t,queryString:r=!1,groupId:i}=e,s=h(e),[a,o]=(0,n.useState)((()=>function(e){let{defaultValue:t,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!p({value:t,tabValues:r}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=r.find((e=>e.default))??r[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:s}))),[c,u]=x({queryString:r,groupId:i}),[m,g]=function(e){let{groupId:t}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(t),[i,s]=(0,d.Dv)(r);return[i,(0,n.useCallback)((e=>{r&&s.set(e)}),[r,s])]}({groupId:i}),b=(()=>{const e=c??m;return p({value:e,tabValues:s})?e:null})();(0,l.A)((()=>{b&&o(b)}),[b]);return{selectedValue:a,selectValue:(0,n.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);o(e),u(e),g(e)}),[u,g,s]),tabValues:s}}var g=r(2303);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var v=r(4848);function f(e){let{className:t,block:r,selectedValue:n,selectValue:a,tabValues:l}=e;const o=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.a_)(),d=e=>{const t=e.currentTarget,r=o.indexOf(t),i=l[r].value;i!==n&&(c(t),a(i))},u=e=>{let t=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const r=o.indexOf(e.currentTarget)+1;t=o[r]??o[0];break}case"ArrowLeft":{const r=o.indexOf(e.currentTarget)-1;t=o[r]??o[o.length-1];break}}t?.focus()};return(0,v.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,i.A)("tabs",{"tabs--block":r},t),children:l.map((e=>{let{value:t,label:r,attributes:s}=e;return(0,v.jsx)("li",{role:"tab",tabIndex:n===t?0:-1,"aria-selected":n===t,ref:e=>o.push(e),onKeyDown:u,onClick:d,...s,className:(0,i.A)("tabs__item",b.tabItem,s?.className,{"tabs__item--active":n===t}),children:r??t},t)}))})}function j(e){let{lazy:t,children:r,selectedValue:s}=e;const a=(Array.isArray(r)?r:[r]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===s));return e?(0,n.cloneElement)(e,{className:(0,i.A)("margin-top--md",e.props.className)}):null}return(0,v.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,n.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function y(e){const t=m(e);return(0,v.jsxs)("div",{className:(0,i.A)("tabs-container",b.tabList),children:[(0,v.jsx)(f,{...t,...e}),(0,v.jsx)(j,{...t,...e})]})}function w(e){const t=(0,g.A)();return(0,v.jsx)(y,{...e,children:u(e.children)},String(t))}},8453:(e,t,r)=>{r.d(t,{R:()=>a,x:()=>l});var n=r(6540);const i={},s=n.createContext(i);function a(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1f391b9e.62f4d628.js b/assets/js/1f391b9e.62f4d628.js new file mode 100644 index 000000000..1ca1e26c9 --- /dev/null +++ b/assets/js/1f391b9e.62f4d628.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6061],{2234:(e,n,t)=>{t.d(n,{A:()=>o});t(6540);var i=t(4164),a=t(4084),s=t(7559),l=t(7293),r=t(4848);function c(e){let{className:n}=e;return(0,r.jsx)(l.A,{type:"caution",title:(0,r.jsx)(a.Rc,{}),className:(0,i.A)(n,s.G.common.unlistedBanner),children:(0,r.jsx)(a.Uh,{})})}function o(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.AE,{}),(0,r.jsx)(c,{...e})]})}},6451:(e,n,t)=>{t.d(n,{A:()=>d});t(6540);var i=t(4164),a=t(4084),s=t(7559),l=t(7293),r=t(4848);function c(e){let{className:n}=e;return(0,r.jsx)(l.A,{type:"caution",title:(0,r.jsx)(a.Yh,{}),className:(0,i.A)(n,s.G.common.draftBanner),children:(0,r.jsx)(a.TT,{})})}var o=t(2234);function d(e){let{metadata:n}=e;const{unlisted:t,frontMatter:i}=n;return(0,r.jsxs)(r.Fragment,{children:[(t||i.unlisted)&&(0,r.jsx)(o.A,{}),i.draft&&(0,r.jsx)(c,{})]})}},7973:(e,n,t)=>{t.r(n),t.d(n,{default:()=>f});t(6540);var i=t(4164),a=t(1213),s=t(7559),l=t(7823),r=t(8509),c=t(7763),o=t(6451),d=t(4336);const m={mdxPageWrapper:"mdxPageWrapper_j9I6"};var u=t(4848);function f(e){const{content:n}=e,{metadata:t,assets:f}=n,{title:h,editUrl:v,description:x,frontMatter:g,lastUpdatedBy:p,lastUpdatedAt:j}=t,{keywords:A,wrapperClassName:b,hide_table_of_contents:L}=g,N=f.image??g.image,C=!!(v||j||p);return(0,u.jsx)(a.e3,{className:(0,i.A)(b??s.G.wrapper.mdxPages,s.G.page.mdxPage),children:(0,u.jsxs)(l.A,{children:[(0,u.jsx)(a.be,{title:h,description:x,keywords:A,image:N}),(0,u.jsx)("main",{className:"container container--fluid margin-vert--lg",children:(0,u.jsxs)("div",{className:(0,i.A)("row",m.mdxPageWrapper),children:[(0,u.jsxs)("div",{className:(0,i.A)("col",!L&&"col--8"),children:[(0,u.jsx)(o.A,{metadata:t}),(0,u.jsx)("article",{children:(0,u.jsx)(r.A,{children:(0,u.jsx)(n,{})})}),C&&(0,u.jsx)(d.A,{className:(0,i.A)("margin-top--sm",s.G.pages.pageFooterEditMetaRow),editUrl:v,lastUpdatedAt:j,lastUpdatedBy:p})]}),!L&&n.toc.length>0&&(0,u.jsx)("div",{className:"col col--2",children:(0,u.jsx)(c.A,{toc:n.toc,minHeadingLevel:g.toc_min_heading_level,maxHeadingLevel:g.toc_max_heading_level})})]})})]})})}},7763:(e,n,t)=>{t.d(n,{A:()=>o});t(6540);var i=t(4164),a=t(5195);const s={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var l=t(4848);const r="table-of-contents__link toc-highlight",c="table-of-contents__link--active";function o(e){let{className:n,...t}=e;return(0,l.jsx)("div",{className:(0,i.A)(s.tableOfContents,"thin-scrollbar",n),children:(0,l.jsx)(a.A,{...t,linkClassName:r,linkActiveClassName:c})})}},5195:(e,n,t)=>{t.d(n,{A:()=>v});var i=t(6540),a=t(6342);function s(e){const n=e.map((e=>({...e,parentIndex:-1,children:[]}))),t=Array(7).fill(-1);n.forEach(((e,n)=>{const i=t.slice(2,e.level);e.parentIndex=Math.max(...i),t[e.level]=n}));const i=[];return n.forEach((e=>{const{parentIndex:t,...a}=e;t>=0?n[t].children.push(a):i.push(a)})),i}function l(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:i}=e;return n.flatMap((e=>{const n=l({toc:e.children,minHeadingLevel:t,maxHeadingLevel:i});return function(e){return e.level>=t&&e.level<=i}(e)?[{...e,children:n}]:n}))}function r(e){const n=e.getBoundingClientRect();return n.top===n.bottom?r(e.parentNode):n}function c(e,n){let{anchorTopOffset:t}=n;const i=e.find((e=>r(e).top>=t));if(i){return function(e){return e.top>0&&e.bottom{e.current=n?0:document.querySelector(".navbar").clientHeight}),[n]),e}function d(e){const n=(0,i.useRef)(void 0),t=o();(0,i.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:i,linkActiveClassName:a,minHeadingLevel:s,maxHeadingLevel:l}=e;function r(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(i),r=function(e){let{minHeadingLevel:n,maxHeadingLevel:t}=e;const i=[];for(let a=n;a<=t;a+=1)i.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(i.join()))}({minHeadingLevel:s,maxHeadingLevel:l}),o=c(r,{anchorTopOffset:t.current}),d=e.find((e=>o&&o.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,t){t?(n.current&&n.current!==e&&n.current.classList.remove(a),e.classList.add(a),n.current=e):e.classList.remove(a)}(e,e===d)}))}return document.addEventListener("scroll",r),document.addEventListener("resize",r),r(),()=>{document.removeEventListener("scroll",r),document.removeEventListener("resize",r)}}),[e,t])}var m=t(8774),u=t(4848);function f(e){let{toc:n,className:t,linkClassName:i,isChild:a}=e;return n.length?(0,u.jsx)("ul",{className:a?void 0:t,children:n.map((e=>(0,u.jsxs)("li",{children:[(0,u.jsx)(m.A,{to:`#${e.id}`,className:i??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,u.jsx)(f,{isChild:!0,toc:e.children,className:t,linkClassName:i})]},e.id)))}):null}const h=i.memo(f);function v(e){let{toc:n,className:t="table-of-contents table-of-contents__left-border",linkClassName:r="table-of-contents__link",linkActiveClassName:c,minHeadingLevel:o,maxHeadingLevel:m,...f}=e;const v=(0,a.p)(),x=o??v.tableOfContents.minHeadingLevel,g=m??v.tableOfContents.maxHeadingLevel,p=function(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:a}=e;return(0,i.useMemo)((()=>l({toc:s(n),minHeadingLevel:t,maxHeadingLevel:a})),[n,t,a])}({toc:n,minHeadingLevel:x,maxHeadingLevel:g});return d((0,i.useMemo)((()=>{if(r&&c)return{linkClassName:r,linkActiveClassName:c,minHeadingLevel:x,maxHeadingLevel:g}}),[r,c,x,g])),(0,u.jsx)(h,{toc:p,className:t,linkClassName:r,...f})}},4084:(e,n,t)=>{t.d(n,{AE:()=>c,Rc:()=>l,TT:()=>d,Uh:()=>r,Yh:()=>o});t(6540);var i=t(1312),a=t(5260),s=t(4848);function l(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.unlistedBanner.title",description:"The unlisted content banner title",children:"Unlisted page"})}function r(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.unlistedBanner.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function c(){return(0,s.jsx)(a.A,{children:(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function o(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.draftBanner.title",description:"The draft content banner title",children:"Draft page"})}function d(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.draftBanner.message",description:"The draft content banner message",children:"This page is a draft. It will only be visible in dev and be excluded from the production build."})}}}]); \ No newline at end of file diff --git a/assets/js/1f391b9e.6ff12782.js b/assets/js/1f391b9e.6ff12782.js deleted file mode 100644 index e52998f96..000000000 --- a/assets/js/1f391b9e.6ff12782.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6061],{2234:(e,n,t)=>{t.d(n,{A:()=>o});t(6540);var i=t(4164),a=t(4084),s=t(7559),l=t(7293),r=t(4848);function c(e){let{className:n}=e;return(0,r.jsx)(l.A,{type:"caution",title:(0,r.jsx)(a.Rc,{}),className:(0,i.A)(n,s.G.common.unlistedBanner),children:(0,r.jsx)(a.Uh,{})})}function o(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.AE,{}),(0,r.jsx)(c,{...e})]})}},1689:(e,n,t)=>{t.d(n,{A:()=>d});t(6540);var i=t(4164),a=t(4084),s=t(7559),l=t(7293),r=t(4848);function c(e){let{className:n}=e;return(0,r.jsx)(l.A,{type:"caution",title:(0,r.jsx)(a.Yh,{}),className:(0,i.A)(n,s.G.common.draftBanner),children:(0,r.jsx)(a.TT,{})})}var o=t(2234);function d(e){let{metadata:n}=e;const{unlisted:t,frontMatter:i}=n;return(0,r.jsxs)(r.Fragment,{children:[(t||i.unlisted)&&(0,r.jsx)(o.A,{}),i.draft&&(0,r.jsx)(c,{})]})}},7973:(e,n,t)=>{t.r(n),t.d(n,{default:()=>f});t(6540);var i=t(4164),a=t(1213),s=t(7559),l=t(263),r=t(8509),c=t(7763),o=t(1689),d=t(4336);const m={mdxPageWrapper:"mdxPageWrapper_j9I6"};var u=t(4848);function f(e){const{content:n}=e,{metadata:t,assets:f}=n,{title:h,editUrl:v,description:x,frontMatter:g,lastUpdatedBy:p,lastUpdatedAt:j}=t,{keywords:A,wrapperClassName:b,hide_table_of_contents:L}=g,N=f.image??g.image,C=!!(v||j||p);return(0,u.jsx)(a.e3,{className:(0,i.A)(b??s.G.wrapper.mdxPages,s.G.page.mdxPage),children:(0,u.jsxs)(l.A,{children:[(0,u.jsx)(a.be,{title:h,description:x,keywords:A,image:N}),(0,u.jsx)("main",{className:"container container--fluid margin-vert--lg",children:(0,u.jsxs)("div",{className:(0,i.A)("row",m.mdxPageWrapper),children:[(0,u.jsxs)("div",{className:(0,i.A)("col",!L&&"col--8"),children:[(0,u.jsx)(o.A,{metadata:t}),(0,u.jsx)("article",{children:(0,u.jsx)(r.A,{children:(0,u.jsx)(n,{})})}),C&&(0,u.jsx)(d.A,{className:(0,i.A)("margin-top--sm",s.G.pages.pageFooterEditMetaRow),editUrl:v,lastUpdatedAt:j,lastUpdatedBy:p})]}),!L&&n.toc.length>0&&(0,u.jsx)("div",{className:"col col--2",children:(0,u.jsx)(c.A,{toc:n.toc,minHeadingLevel:g.toc_min_heading_level,maxHeadingLevel:g.toc_max_heading_level})})]})})]})})}},7763:(e,n,t)=>{t.d(n,{A:()=>o});t(6540);var i=t(4164),a=t(5195);const s={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var l=t(4848);const r="table-of-contents__link toc-highlight",c="table-of-contents__link--active";function o(e){let{className:n,...t}=e;return(0,l.jsx)("div",{className:(0,i.A)(s.tableOfContents,"thin-scrollbar",n),children:(0,l.jsx)(a.A,{...t,linkClassName:r,linkActiveClassName:c})})}},5195:(e,n,t)=>{t.d(n,{A:()=>v});var i=t(6540),a=t(6342);function s(e){const n=e.map((e=>({...e,parentIndex:-1,children:[]}))),t=Array(7).fill(-1);n.forEach(((e,n)=>{const i=t.slice(2,e.level);e.parentIndex=Math.max(...i),t[e.level]=n}));const i=[];return n.forEach((e=>{const{parentIndex:t,...a}=e;t>=0?n[t].children.push(a):i.push(a)})),i}function l(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:i}=e;return n.flatMap((e=>{const n=l({toc:e.children,minHeadingLevel:t,maxHeadingLevel:i});return function(e){return e.level>=t&&e.level<=i}(e)?[{...e,children:n}]:n}))}function r(e){const n=e.getBoundingClientRect();return n.top===n.bottom?r(e.parentNode):n}function c(e,n){let{anchorTopOffset:t}=n;const i=e.find((e=>r(e).top>=t));if(i){return function(e){return e.top>0&&e.bottom{e.current=n?0:document.querySelector(".navbar").clientHeight}),[n]),e}function d(e){const n=(0,i.useRef)(void 0),t=o();(0,i.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:i,linkActiveClassName:a,minHeadingLevel:s,maxHeadingLevel:l}=e;function r(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(i),r=function(e){let{minHeadingLevel:n,maxHeadingLevel:t}=e;const i=[];for(let a=n;a<=t;a+=1)i.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(i.join()))}({minHeadingLevel:s,maxHeadingLevel:l}),o=c(r,{anchorTopOffset:t.current}),d=e.find((e=>o&&o.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,t){t?(n.current&&n.current!==e&&n.current.classList.remove(a),e.classList.add(a),n.current=e):e.classList.remove(a)}(e,e===d)}))}return document.addEventListener("scroll",r),document.addEventListener("resize",r),r(),()=>{document.removeEventListener("scroll",r),document.removeEventListener("resize",r)}}),[e,t])}var m=t(8774),u=t(4848);function f(e){let{toc:n,className:t,linkClassName:i,isChild:a}=e;return n.length?(0,u.jsx)("ul",{className:a?void 0:t,children:n.map((e=>(0,u.jsxs)("li",{children:[(0,u.jsx)(m.A,{to:`#${e.id}`,className:i??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,u.jsx)(f,{isChild:!0,toc:e.children,className:t,linkClassName:i})]},e.id)))}):null}const h=i.memo(f);function v(e){let{toc:n,className:t="table-of-contents table-of-contents__left-border",linkClassName:r="table-of-contents__link",linkActiveClassName:c,minHeadingLevel:o,maxHeadingLevel:m,...f}=e;const v=(0,a.p)(),x=o??v.tableOfContents.minHeadingLevel,g=m??v.tableOfContents.maxHeadingLevel,p=function(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:a}=e;return(0,i.useMemo)((()=>l({toc:s(n),minHeadingLevel:t,maxHeadingLevel:a})),[n,t,a])}({toc:n,minHeadingLevel:x,maxHeadingLevel:g});return d((0,i.useMemo)((()=>{if(r&&c)return{linkClassName:r,linkActiveClassName:c,minHeadingLevel:x,maxHeadingLevel:g}}),[r,c,x,g])),(0,u.jsx)(h,{toc:p,className:t,linkClassName:r,...f})}},4084:(e,n,t)=>{t.d(n,{AE:()=>c,Rc:()=>l,TT:()=>d,Uh:()=>r,Yh:()=>o});t(6540);var i=t(1312),a=t(5260),s=t(4848);function l(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.unlistedBanner.title",description:"The unlisted content banner title",children:"Unlisted page"})}function r(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.unlistedBanner.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function c(){return(0,s.jsx)(a.A,{children:(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function o(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.draftBanner.title",description:"The draft content banner title",children:"Draft page"})}function d(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.draftBanner.message",description:"The draft content banner message",children:"This page is a draft. It will only be visible in dev and be excluded from the production build."})}}}]); \ No newline at end of file diff --git a/assets/js/1fabe0bd.354553d0.js b/assets/js/1fabe0bd.354553d0.js new file mode 100644 index 000000000..9efa4df33 --- /dev/null +++ b/assets/js/1fabe0bd.354553d0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5562],{2988:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>s,metadata:()=>n,toc:()=>d});const n=JSON.parse('{"id":"colorimetry/intro","title":"Intro","description":"There are many aspects which determine how the color information","source":"@site/docs/colorimetry/intro.mdx","sourceDirName":"colorimetry","slug":"/colorimetry/intro","permalink":"/docs/colorimetry/intro","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/colorimetry/intro.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"Intro","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"Graining","permalink":"/docs/filtering/graining"},"next":{"title":"Color Formats","permalink":"/docs/colorimetry/format"}}');var r=o(4848),i=o(8453);const s={title:"Intro",sidebar_position:1},a="Intro",c={},d=[];function l(e){const t={h1:"h1",header:"header",p:"p",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"intro",children:"Intro"})}),"\n",(0,r.jsx)(t.p,{children:"There are many aspects which determine how the color information\nfor a video is stored and how it is rendered. As technology has improved,\nnew standards developed, and with new techologies such as HDR,\nnew standards continue to develop. However, the result is that\nit can be confusing to know which color settings to use for\na given video."}),"\n",(0,r.jsx)(t.p,{children:"Some properties such as the color format must be set.\nHowever, properties such as color range, primaries, matrix coefficients,\nand transfer function are optional. It is always best practice to set these\nwhen you are encoding a video, because if they are not set, the player\nmust make a guess as to what the correct settings are. If it guesses\nincorrectly, this can lead to the colors of the video being different\nfrom what was intended."})]})}function h(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>s,x:()=>a});var n=o(6540);const r={},i=n.createContext(r);function s(e){const t=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),n.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1fabe0bd.70077be9.js b/assets/js/1fabe0bd.70077be9.js deleted file mode 100644 index 74de4fbf3..000000000 --- a/assets/js/1fabe0bd.70077be9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5562],{3315:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>a,contentTitle:()=>s,default:()=>h,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=o(4848),r=o(8453);const i={title:"Intro",sidebar_position:1},s="Intro",c={id:"colorimetry/intro",title:"Intro",description:"There are many aspects which determine how the color information",source:"@site/docs/colorimetry/intro.mdx",sourceDirName:"colorimetry",slug:"/colorimetry/intro",permalink:"/docs/colorimetry/intro",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/colorimetry/intro.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"Intro",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"Graining",permalink:"/docs/filtering/graining"},next:{title:"Color Formats",permalink:"/docs/colorimetry/format"}},a={},d=[];function l(e){const t={h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"intro",children:"Intro"})}),"\n",(0,n.jsx)(t.p,{children:"There are many aspects which determine how the color information\nfor a video is stored and how it is rendered. As technology has improved,\nnew standards developed, and with new techologies such as HDR,\nnew standards continue to develop. However, the result is that\nit can be confusing to know which color settings to use for\na given video."}),"\n",(0,n.jsx)(t.p,{children:"Some properties such as the color format must be set.\nHowever, properties such as color range, primaries, matrix coefficients,\nand transfer function are optional. It is always best practice to set these\nwhen you are encoding a video, because if they are not set, the player\nmust make a guess as to what the correct settings are. If it guesses\nincorrectly, this can lead to the colors of the video being different\nfrom what was intended."})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>s,x:()=>c});var n=o(6540);const r={},i=n.createContext(r);function s(e){const t=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),n.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/20d769d8.6b62af69.js b/assets/js/20d769d8.6b62af69.js new file mode 100644 index 000000000..a90f0e1e0 --- /dev/null +++ b/assets/js/20d769d8.6b62af69.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3121],{7114:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>d,contentTitle:()=>r,default:()=>m,frontMatter:()=>a,metadata:()=>n,toc:()=>l});var n=i(7558),o=i(4848),s=i(8453);const a={title:"Embedding the Un-Embeddable",description:"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.",slug:"embedding-the-un-embeddable",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","discord"],image:"/img/discord-embed-blog-image.webp",hide_table_of_contents:!1},r=void 0,d={authorsImageUrls:[void 0]},l=[{value:"A Scenario",id:"a-scenario",level:2}];function c(e){const t={h2:"h2",img:"img",p:"p",strong:"strong",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.img,{alt:"Feature image",src:i(3808).A+"",width:"1920",height:"1080"}),"\n",(0,o.jsx)(t.strong,{children:'A 567.14 MB, 12 min 11 s, 2K (2,048 x 858), VP9 + Opus, 6.51 Mbps average, Blender short film "Cosmos Laundromat"'})]}),"\n",(0,o.jsx)(t.h2,{id:"a-scenario",children:"A Scenario"}),"\n",(0,o.jsx)(t.p,{children:"While chatting in your favorite Discord servers & group chats, you may see a friend send a weird link. You might even consider it suspicious on first glance. It is a video featuring an image of a movie poster with a play button that is almost begging to be clicked. Naturally, you click it."})]})}function m(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(c,{...e})}):c(e)}},3808:(e,t,i)=>{i.d(t,{A:()=>n});const n=i.p+"assets/images/discord-embed-blog-image-2bcaf4f73f5fa33664328756753f3041.webp"},8453:(e,t,i)=>{i.d(t,{R:()=>a,x:()=>r});var n=i(6540);const o={},s=n.createContext(o);function a(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),n.createElement(s.Provider,{value:t},e.children)}},7558:e=>{e.exports=JSON.parse('{"permalink":"/blog/embedding-the-un-embeddable","source":"@site/blog/2023-10-29-embedding-the-un-embeddable copy.mdx","title":"Embedding the Un-Embeddable","description":"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.","date":"2023-10-29T00:00:00.000Z","tags":[{"inline":true,"label":"video","permalink":"/blog/tags/video"},{"inline":true,"label":"discord","permalink":"/blog/tags/discord"}],"readingTime":8.92,"hasTruncateMarker":true,"authors":[{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4","socials":{},"key":null,"page":null}],"frontMatter":{"title":"Embedding the Un-Embeddable","description":"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.","slug":"embedding-the-un-embeddable","authors":[{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4"}],"tags":["video","discord"],"image":"/img/discord-embed-blog-image.webp","hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"Encoding Animation with SVT-AV1: A Deep Dive","permalink":"/blog/svt-av1-deep-dive"},"nextItem":{"title":"AV1 Encoding for Dummies","permalink":"/blog/av1-encoding-for-dummies"}}')}}]); \ No newline at end of file diff --git a/assets/js/20d769d8.fc1bbd1d.js b/assets/js/20d769d8.fc1bbd1d.js deleted file mode 100644 index c71725407..000000000 --- a/assets/js/20d769d8.fc1bbd1d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3121],{7114:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>d,contentTitle:()=>a,default:()=>m,frontMatter:()=>s,metadata:()=>r,toc:()=>l});var n=i(4848),o=i(8453);const s={title:"Embedding the Un-Embeddable",description:"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.",slug:"embedding-the-un-embeddable",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","discord"],image:"/img/discord-embed-blog-image.webp",hide_table_of_contents:!1},a=void 0,r={permalink:"/blog/embedding-the-un-embeddable",source:"@site/blog/2023-10-29-embedding-the-un-embeddable copy.mdx",title:"Embedding the Un-Embeddable",description:"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.",date:"2023-10-29T00:00:00.000Z",tags:[{inline:!0,label:"video",permalink:"/blog/tags/video"},{inline:!0,label:"discord",permalink:"/blog/tags/discord"}],readingTime:8.92,hasTruncateMarker:!0,authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4",key:null,page:null}],frontMatter:{title:"Embedding the Un-Embeddable",description:"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.",slug:"embedding-the-un-embeddable",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","discord"],image:"/img/discord-embed-blog-image.webp",hide_table_of_contents:!1},unlisted:!1,prevItem:{title:"Encoding Animation with SVT-AV1: A Deep Dive",permalink:"/blog/svt-av1-deep-dive"},nextItem:{title:"AV1 Encoding for Dummies",permalink:"/blog/av1-encoding-for-dummies"}},d={authorsImageUrls:[void 0]},l=[{value:"A Scenario",id:"a-scenario",level:2}];function c(e){const t={h2:"h2",img:"img",p:"p",strong:"strong",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.img,{alt:"Feature image",src:i(9395).A+"",width:"1920",height:"1080"}),"\n",(0,n.jsx)(t.strong,{children:'A 567.14 MB, 12 min 11 s, 2K (2,048 x 858), VP9 + Opus, 6.51 Mbps average, Blender short film "Cosmos Laundromat"'})]}),"\n",(0,n.jsx)(t.h2,{id:"a-scenario",children:"A Scenario"}),"\n",(0,n.jsx)(t.p,{children:"While chatting in your favorite Discord servers & group chats, you may see a friend send a weird link. You might even consider it suspicious on first glance. It is a video featuring an image of a movie poster with a play button that is almost begging to be clicked. Naturally, you click it."})]})}function m(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(c,{...e})}):c(e)}},9395:(e,t,i)=>{i.d(t,{A:()=>n});const n=i.p+"assets/images/discord-embed-blog-image-2bcaf4f73f5fa33664328756753f3041.webp"},8453:(e,t,i)=>{i.d(t,{R:()=>a,x:()=>r});var n=i(6540);const o={},s=n.createContext(o);function a(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2237.71567272.js b/assets/js/2237.b2c1d41b.js similarity index 79% rename from assets/js/2237.71567272.js rename to assets/js/2237.b2c1d41b.js index 6e8e4c91f..da5882585 100644 --- a/assets/js/2237.71567272.js +++ b/assets/js/2237.b2c1d41b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2237],{3363:(e,t,i)=>{i.d(t,{A:()=>a});i(6540);var n=i(4164),o=i(1312),s=i(1107),r=i(4848);function a(e){let{className:t}=e;return(0,r.jsx)("main",{className:(0,n.A)("container margin-vert--xl",t),children:(0,r.jsx)("div",{className:"row",children:(0,r.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,r.jsx)(s.A,{as:"h1",className:"hero__title",children:(0,r.jsx)(o.A,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,r.jsx)("p",{children:(0,r.jsx)(o.A,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,r.jsx)("p",{children:(0,r.jsx)(o.A,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}},2237:(e,t,i)=>{i.r(t),i.d(t,{default:()=>c});i(6540);var n=i(1312),o=i(1213),s=i(263),r=i(3363),a=i(4848);function c(){const e=(0,n.T)({id:"theme.NotFound.title",message:"Page Not Found"});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.be,{title:e}),(0,a.jsx)(s.A,{children:(0,a.jsx)(r.A,{})})]})}}}]); \ No newline at end of file +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2237],{3363:(e,t,i)=>{i.d(t,{A:()=>a});i(6540);var n=i(4164),o=i(1312),s=i(1107),r=i(4848);function a(e){let{className:t}=e;return(0,r.jsx)("main",{className:(0,n.A)("container margin-vert--xl",t),children:(0,r.jsx)("div",{className:"row",children:(0,r.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,r.jsx)(s.A,{as:"h1",className:"hero__title",children:(0,r.jsx)(o.A,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,r.jsx)("p",{children:(0,r.jsx)(o.A,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,r.jsx)("p",{children:(0,r.jsx)(o.A,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}},2237:(e,t,i)=>{i.r(t),i.d(t,{default:()=>c});i(6540);var n=i(1312),o=i(1213),s=i(7823),r=i(3363),a=i(4848);function c(){const e=(0,n.T)({id:"theme.NotFound.title",message:"Page Not Found"});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.be,{title:e}),(0,a.jsx)(s.A,{children:(0,a.jsx)(r.A,{})})]})}}}]); \ No newline at end of file diff --git a/assets/js/229f7513.1144a374.js b/assets/js/229f7513.1144a374.js new file mode 100644 index 000000000..c3c85763f --- /dev/null +++ b/assets/js/229f7513.1144a374.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7146],{6138:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>l,default:()=>h,frontMatter:()=>o,metadata:()=>s,toc:()=>c});const s=JSON.parse('{"id":"subtitles/webvtt","title":"WebVTT","description":"WebVTT, or Web Video Text Tracks, is the format for subtitles on the web. It is used with the HTML \\\\ element, or embedded into a webm container.","source":"@site/docs/subtitles/webvtt.mdx","sourceDirName":"subtitles","slug":"/subtitles/webvtt","permalink":"/docs/subtitles/webvtt","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/subtitles/webvtt.mdx","tags":[],"version":"current","frontMatter":{"title":"WebVTT"},"sidebar":"tutorialSidebar","previous":{"title":"SubStation Alpha","permalink":"/docs/subtitles/SSA"},"next":{"title":"Vapoursynth","permalink":"/docs/filtering/vapoursynth"}}');var i=n(4848),r=n(8453);const o={title:"WebVTT"},l="WebVTT",a={},c=[{value:"Structure",id:"structure",level:2},{value:"Cue",id:"cue",level:3},{value:"Example",id:"example",level:2}];function d(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"webvtt",children:"WebVTT"})}),"\n",(0,i.jsxs)(t.p,{children:["WebVTT, or Web Video Text Tracks, is the format for subtitles on the web. It is used with the ",(0,i.jsx)(t.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track",children:"HTML element"}),", or embedded into a webm container."]}),"\n",(0,i.jsx)(t.h2,{id:"structure",children:"Structure"}),"\n",(0,i.jsxs)(t.p,{children:["WebVTT is a simple, text-based format, based on ",(0,i.jsx)(t.a,{href:"/docs/subtitles/SRT",children:"SRT"}),". All files start with the string\n",(0,i.jsx)(t.code,{children:"WEBVTT"}),", optionally, some text, then two new lines. That's where the\ndata we're interested in starts."]}),"\n",(0,i.jsx)(t.h3,{id:"cue",children:"Cue"}),"\n",(0,i.jsxs)(t.p,{children:["A WebVTT file is basically a bunch of cues. They can have a line with\nan ID, then they have to have a line specifying from where to where\nthe cue should be displayed like this: ",(0,i.jsx)(t.code,{children:"STARTTIME -> ENDTIME [optional settings go here]"}),", then all the text to be displayed goes after\nit. That text can have some HTML-like formatting in it. To learn about\nthem, see ",(0,i.jsx)(t.a,{href:"https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API#webvtt_cues",children:"the documentation"}),"."]}),"\n",(0,i.jsx)(t.h2,{id:"example",children:"Example"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{children:"WEBVTT\n\n00:01.000 --\x3e 00:04.000\n- Never drink liquid nitrogen.\n\n00:05.000 --\x3e 00:09.000\n- It will perforate your stomach.\n- You could die.\n"})})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>o,x:()=>l});var s=n(6540);const i={},r=s.createContext(i);function o(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/229f7513.a0a2f53f.js b/assets/js/229f7513.a0a2f53f.js deleted file mode 100644 index c1c1cc9f6..000000000 --- a/assets/js/229f7513.a0a2f53f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7146],{4153:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>o,default:()=>h,frontMatter:()=>r,metadata:()=>l,toc:()=>c});var i=n(4848),s=n(8453);const r={title:"WebVTT"},o="WebVTT",l={id:"subtitles/webvtt",title:"WebVTT",description:"WebVTT, or Web Video Text Tracks, is the format for subtitles on the web. It is used with the HTML \\ element, or embedded into a webm container.",source:"@site/docs/subtitles/webvtt.mdx",sourceDirName:"subtitles",slug:"/subtitles/webvtt",permalink:"/docs/subtitles/webvtt",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/subtitles/webvtt.mdx",tags:[],version:"current",frontMatter:{title:"WebVTT"},sidebar:"tutorialSidebar",previous:{title:"SubStation Alpha",permalink:"/docs/subtitles/SSA"},next:{title:"Vapoursynth",permalink:"/docs/filtering/vapoursynth"}},a={},c=[{value:"Structure",id:"structure",level:2},{value:"Cue",id:"cue",level:3},{value:"Example",id:"example",level:2}];function d(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"webvtt",children:"WebVTT"})}),"\n",(0,i.jsxs)(t.p,{children:["WebVTT, or Web Video Text Tracks, is the format for subtitles on the web. It is used with the ",(0,i.jsx)(t.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track",children:"HTML element"}),", or embedded into a webm container."]}),"\n",(0,i.jsx)(t.h2,{id:"structure",children:"Structure"}),"\n",(0,i.jsxs)(t.p,{children:["WebVTT is a simple, text-based format, based on ",(0,i.jsx)(t.a,{href:"/docs/subtitles/SRT",children:"SRT"}),". All files start with the string\n",(0,i.jsx)(t.code,{children:"WEBVTT"}),", optionally, some text, then two new lines. That's where the\ndata we're interested in starts."]}),"\n",(0,i.jsx)(t.h3,{id:"cue",children:"Cue"}),"\n",(0,i.jsxs)(t.p,{children:["A WebVTT file is basically a bunch of cues. They can have a line with\nan ID, then they have to have a line specifying from where to where\nthe cue should be displayed like this: ",(0,i.jsx)(t.code,{children:"STARTTIME -> ENDTIME [optional settings go here]"}),", then all the text to be displayed goes after\nit. That text can have some HTML-like formatting in it. To learn about\nthem, see ",(0,i.jsx)(t.a,{href:"https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API#webvtt_cues",children:"the documentation"}),"."]}),"\n",(0,i.jsx)(t.h2,{id:"example",children:"Example"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{children:"WEBVTT\n\n00:01.000 --\x3e 00:04.000\n- Never drink liquid nitrogen.\n\n00:05.000 --\x3e 00:09.000\n- It will perforate your stomach.\n- You could die.\n"})})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>o,x:()=>l});var i=n(6540);const s={},r=i.createContext(s);function o(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/28bd9d7a.26846548.js b/assets/js/28bd9d7a.26846548.js deleted file mode 100644 index 8366368a7..000000000 --- a/assets/js/28bd9d7a.26846548.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[888],{1849:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>n,default:()=>u,frontMatter:()=>r,metadata:()=>a,toc:()=>l});var o=i(4848),s=i(8453);const r={title:"FFMetrics",sidebar_position:8},n="FFMetrics",a={id:"utilities/FFMetrics",title:"FFMetrics",description:"FFMetrics is a proprietary Windows-only graphical user interface (GUI) for FFmpeg that allows you to calculate and visualize video quality metric results with graphs. PSNR, SSIM, and VMAF are the only options.",source:"@site/docs/utilities/FFMetrics.mdx",sourceDirName:"utilities",slug:"/utilities/FFMetrics",permalink:"/docs/utilities/FFMetrics",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/FFMetrics.mdx",tags:[],version:"current",sidebarPosition:8,frontMatter:{title:"FFMetrics",sidebar_position:8},sidebar:"tutorialSidebar",previous:{title:"NMKODER",permalink:"/docs/utilities/nmkoder"},next:{title:"dovi_tool",permalink:"/docs/utilities/dovi_tool"}},c={},l=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2}];function d(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"ffmetrics",children:"FFMetrics"})}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"/img/ffmetrics.avif",type:"image/avif"}),(0,o.jsx)("img",{src:"/img/ffmetrics.webp",alt:"FFmetrics Window"})]}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)(t.p,{children:"FFMetrics is a proprietary Windows-only graphical user interface (GUI) for FFmpeg that allows you to calculate and visualize video quality metric results with graphs. PSNR, SSIM, and VMAF are the only options."}),"\n",(0,o.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,o.jsx)(t.admonition,{type:"caution",children:(0,o.jsxs)(t.p,{children:["You need to have FFmpeg in your system PATH in order to use this. and ",(0,o.jsx)(t.code,{children:"--enable-libvmaf"})," is required for VMAF calculation support."]})}),"\n",(0,o.jsxs)(t.p,{children:["Download the program from their GitHub homepage ",(0,o.jsx)(t.a,{href:"https://github.com/fifonik/FFMetrics/releases",children:"releases"}),", pick whichever version you'd like to download and extract to your preferred folder.\nRun the exe file to launch."]}),"\n",(0,o.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,o.jsx)(t.p,{children:'Use the "Browse" button to insert your reference (source) video and "Add files" to add your distorted (encoded) video(s). Tick the checkboxes to choose the metric calculations you\'d like to run.\nCustom VMAF models can be chosen via "VMAF options" and once you\'re done just click "Start", the program will automatically generate graphs live for each score.'}),"\n",(0,o.jsx)(t.p,{children:"Depending on your CPU. This process might take a while."})]})}function u(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>n,x:()=>a});var o=i(6540);const s={},r=o.createContext(s);function n(e){const t=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:n(e.components),o.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/28bd9d7a.e2593808.js b/assets/js/28bd9d7a.e2593808.js new file mode 100644 index 000000000..9b87878d7 --- /dev/null +++ b/assets/js/28bd9d7a.e2593808.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[888],{6945:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>n,metadata:()=>o,toc:()=>l});const o=JSON.parse('{"id":"utilities/FFMetrics","title":"FFMetrics","description":"FFMetrics is a proprietary Windows-only graphical user interface (GUI) for FFmpeg that allows you to calculate and visualize video quality metric results with graphs. PSNR, SSIM, and VMAF are the only options.","source":"@site/docs/utilities/FFMetrics.mdx","sourceDirName":"utilities","slug":"/utilities/FFMetrics","permalink":"/docs/utilities/FFMetrics","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/FFMetrics.mdx","tags":[],"version":"current","sidebarPosition":8,"frontMatter":{"title":"FFMetrics","sidebar_position":8},"sidebar":"tutorialSidebar","previous":{"title":"NMKODER","permalink":"/docs/utilities/nmkoder"},"next":{"title":"dovi_tool","permalink":"/docs/utilities/dovi_tool"}}');var s=i(4848),r=i(8453);const n={title:"FFMetrics",sidebar_position:8},a="FFMetrics",c={},l=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2}];function d(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"ffmetrics",children:"FFMetrics"})}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"/img/ffmetrics.avif",type:"image/avif"}),(0,s.jsx)("img",{src:"/img/ffmetrics.webp",alt:"FFmetrics Window"})]}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsx)(t.p,{children:"FFMetrics is a proprietary Windows-only graphical user interface (GUI) for FFmpeg that allows you to calculate and visualize video quality metric results with graphs. PSNR, SSIM, and VMAF are the only options."}),"\n",(0,s.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsx)(t.admonition,{type:"caution",children:(0,s.jsxs)(t.p,{children:["You need to have FFmpeg in your system PATH in order to use this. and ",(0,s.jsx)(t.code,{children:"--enable-libvmaf"})," is required for VMAF calculation support."]})}),"\n",(0,s.jsxs)(t.p,{children:["Download the program from their GitHub homepage ",(0,s.jsx)(t.a,{href:"https://github.com/fifonik/FFMetrics/releases",children:"releases"}),", pick whichever version you'd like to download and extract to your preferred folder.\nRun the exe file to launch."]}),"\n",(0,s.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(t.p,{children:'Use the "Browse" button to insert your reference (source) video and "Add files" to add your distorted (encoded) video(s). Tick the checkboxes to choose the metric calculations you\'d like to run.\nCustom VMAF models can be chosen via "VMAF options" and once you\'re done just click "Start", the program will automatically generate graphs live for each score.'}),"\n",(0,s.jsx)(t.p,{children:"Depending on your CPU. This process might take a while."})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>n,x:()=>a});var o=i(6540);const s={},r=o.createContext(s);function n(e){const t=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:n(e.components),o.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/299beccc.bd5fb890.js b/assets/js/299beccc.bd5fb890.js new file mode 100644 index 000000000..3f71a111d --- /dev/null +++ b/assets/js/299beccc.bd5fb890.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5479],{9511:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>p,frontMatter:()=>r,metadata:()=>s,toc:()=>d});const s=JSON.parse('{"id":"data/7z","title":"7z","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/data/7z.mdx","sourceDirName":"data","slug":"/data/7z","permalink":"/docs/data/7z","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/7z.mdx","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"title":"7z","sidebar_position":4},"sidebar":"tutorialSidebar","previous":{"title":"bzip2","permalink":"/docs/data/bzip2"},"next":{"title":"xz","permalink":"/docs/data/xz"}}');var o=i(4848),n=i(8453);const r={title:"7z",sidebar_position:4},a="7-zip (7z)",c={},d=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",li:"li",p:"p",ul:"ul",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"7-zip-7z",children:"7-zip (7z)"})}),"\n",(0,o.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsxs)(t.p,{children:["7-zip (7z) is a file format that supports several different data compression, encryption, & pre-processing algorithms. It was introduced by the 7-Zip archiver, which is free and open-source software for dealing with various data compression formats including formats similar to 7z like ",(0,o.jsx)(t.a,{href:"/docs/data/xz",children:"XZ"}),"."]}),"\n",(0,o.jsxs)(t.p,{children:["The 7-zip format has some noteworthy advantages over the popular ",(0,o.jsx)(t.a,{href:"/docs/data/zip",children:"ZIP"})," format."]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:'The 7-zip utility can compress files to the 7z format "30-70% better" than to ZIP format despite having a highly efficient ZIP encoder. It mainly uses the LZMA & LZMA2 algorithms, which are more modern than DEFLATE and usually compress better.'}),"\n",(0,o.jsx)(t.li,{children:"7-zip can encrypt files with AES-256 using a user provided password. AES-256 is more secure than the ZipCrypto encryption often used by ZIP."}),"\n",(0,o.jsx)(t.li,{children:"7-zip can support files up to 16 exabytes in size, while traditional ZIP has a 4 GB limit (ZIP64, which is commonly used, does not suffer from this 4 GB limitation so this is less relevant now). 7-zip also supports various pre-processing filters, which can improve compression for certain types of data like executables and binaries."}),"\n"]}),"\n",(0,o.jsx)(t.p,{children:"However, 7-zip also has some drawbacks and limitations."}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"7-zip is not as widely supported as ZIP by other software and platforms. Some users may need to install additional programs or plugins to open or extract 7z files."}),"\n",(0,o.jsx)(t.li,{children:"Slower speed: 7-zip archives may take longer to compress or decompress compared to ZIP. This is somewhat mitigated by the 7-zip utility's effective parallelization when decoding, but this only affects real time as opposed to user time meaning it is still likely going to be more expensive to decompress than ZIP."}),"\n",(0,o.jsx)(t.li,{children:"7-zip does not have any built-in mechanism to repair corrupted or damaged archives. Users may need to use third-party tools or backup copies to recover their data1"}),"\n"]}),"\n",(0,o.jsx)(t.p,{children:"7z archives are supported natively by macOS & many Linux distributions."})]})}function p(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>r,x:()=>a});var s=i(6540);const o={},n=s.createContext(o);function r(e){const t=s.useContext(n);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),s.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/299beccc.de7d8920.js b/assets/js/299beccc.de7d8920.js deleted file mode 100644 index 3c6343530..000000000 --- a/assets/js/299beccc.de7d8920.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5479],{1531:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>r,default:()=>p,frontMatter:()=>n,metadata:()=>a,toc:()=>d});var s=i(4848),o=i(8453);const n={title:"7z",sidebar_position:4},r="7-zip (7z)",a={id:"data/7z",title:"7z",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/data/7z.mdx",sourceDirName:"data",slug:"/data/7z",permalink:"/docs/data/7z",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/7z.mdx",tags:[],version:"current",sidebarPosition:4,frontMatter:{title:"7z",sidebar_position:4},sidebar:"tutorialSidebar",previous:{title:"bzip2",permalink:"/docs/data/bzip2"},next:{title:"xz",permalink:"/docs/data/xz"}},c={},d=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",li:"li",p:"p",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"7-zip-7z",children:"7-zip (7z)"})}),"\n",(0,s.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,s.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,s.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,s.jsxs)(t.p,{children:["7-zip (7z) is a file format that supports several different data compression, encryption, & pre-processing algorithms. It was created by the 7-Zip archiver, which is free and open-source software for dealing with various data compression formats including formats similar to 7z like ",(0,s.jsx)(t.a,{href:"/docs/data/xz",children:"XZ"}),"."]}),"\n",(0,s.jsxs)(t.p,{children:["The 7-zip format has some noteworthy advantages over the popular ",(0,s.jsx)(t.a,{href:"/docs/data/zip",children:"ZIP"})," format."]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:'The 7-zip utility can compress files to the 7z format "30-70% better" than to ZIP format despite having a highly efficient ZIP encoder. It mainly uses the LZMA & LZMA2 algorithms, which are more modern than DEFLATE and usually compress better.'}),"\n",(0,s.jsx)(t.li,{children:"7-zip can encrypt files with AES-256 using a user provided password. AES-256 is more secure than the ZipCrypto encryption often used by ZIP."}),"\n",(0,s.jsx)(t.li,{children:"7-zip can support files up to 16 exabytes in size, while traditional ZIP has a 4 GB limit (ZIP64, which is commonly used, does not suffer from this 4 GB limitation so this is less relevant now). 7-zip also supports various pre-processing filters, which can improve compression for certain types of data like executables and binaries."}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"However, 7-zip also has some drawbacks and limitations."}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:"7-zip is not as widely supported as ZIP by other software and platforms. Some users may need to install additional programs or plugins to open or extract 7z files."}),"\n",(0,s.jsx)(t.li,{children:"Slower speed: 7-zip archives may take longer to compress or decompress compared to ZIP. This is somewhat mitigated by the 7-zip utility's effective parallelization when decoding, but this only affects real time as opposed to user time meaning it is still likely going to be more expensive to decompress than ZIP."}),"\n",(0,s.jsx)(t.li,{children:"7-zip does not have any built-in mechanism to repair corrupted or damaged archives. Users may need to use third-party tools or backup copies to recover their data1"}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"7z archives are supported natively by macOS & many Linux distributions."})]})}function p(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>r,x:()=>a});var s=i(6540);const o={},n=s.createContext(o);function r(e){const t=s.useContext(n);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),s.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2d25ac87.12cde25d.js b/assets/js/2d25ac87.12cde25d.js deleted file mode 100644 index 6eb409b4e..000000000 --- a/assets/js/2d25ac87.12cde25d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5949],{822:(e,o,t)=>{t.r(o),t.d(o,{assets:()=>c,contentTitle:()=>n,default:()=>l,frontMatter:()=>r,metadata:()=>a,toc:()=>u});var s=t(4848),i=t(8453);const r={title:"autocompressor",sidebar_position:15},n="Autocompressor",a={id:"utilities/autocompressor",title:"autocompressor",description:"Autocompressor is a free online media compression tool by Auto-Rez Media Technologies that compresses videos, images, audio, and GIFs to a target file size. Depending on the file type you upload, it will be handled differently such that the result serves a similar function to what you uploaded. For example, videos are transcoded to videos, audio files to audio files, images to images, and animations to animations.",source:"@site/docs/utilities/autocompressor.mdx",sourceDirName:"utilities",slug:"/utilities/autocompressor",permalink:"/docs/utilities/autocompressor",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/autocompressor.mdx",tags:[],version:"current",sidebarPosition:15,frontMatter:{title:"autocompressor",sidebar_position:15},sidebar:"tutorialSidebar",previous:{title:"av1an-command-gen",permalink:"/docs/utilities/av1an-command-gen"},next:{title:"PSNR",permalink:"/docs/metrics/PSNR"}},c={},u=[];function d(e){const o={a:"a",blockquote:"blockquote",h1:"h1",header:"header",p:"p",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.header,{children:(0,s.jsx)(o.h1,{id:"autocompressor",children:"Autocompressor"})}),"\n",(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.a,{href:"https://autocompressor.net/",children:"Autocompressor"})," is a free online media compression tool by Auto-Rez Media Technologies that compresses videos, images, audio, and GIFs to a target file size. Depending on the file type you upload, it will be handled differently such that the result serves a similar function to what you uploaded. For example, videos are transcoded to videos, audio files to audio files, images to images, and animations to animations."]}),"\n",(0,s.jsx)(o.p,{children:"From their site:"}),"\n",(0,s.jsxs)(o.blockquote,{children:["\n",(0,s.jsx)(o.p,{children:"Reduce the file size of your video, image, audio, or GIF quickly and easily with our free online compression tool. Whether you need to shrink your file to 25MB or any other specific size, our tool offers a simple and intuitive solution. We'll also create perfectly compressed emotes and stickers for Discord. Using the link mode, you can instantly compress YouTube videos and other sites to 25MB. Our advanced AUTO-REZ\u2122 technology achieves higher quality at a given filesize than any other website. Autocompressor will automatically choose the output format based on the input format and the compatibility category you select."}),"\n"]}),"\n",(0,s.jsx)(o.p,{children:"Autocompressor also plans to offer a premium service in the future where the cost is determined by the CPU minutes used during the operation as well as the compression effort tier. For instance, encoding a typical 4-minute YouTube video to 8MB with MP4-Normal will cost about 5 CPU minutes."}),"\n",(0,s.jsx)(o.p,{children:"Users can create an account to get 1800 CPU minutes free. The site ensures high security for user data by using BCrypt hashes to store passwords."}),"\n",(0,s.jsxs)(o.p,{children:["You can read more on their ",(0,s.jsx)(o.a,{href:"https://autocompressor.net/about",children:"About page"}),"."]})]})}function l(e={}){const{wrapper:o}={...(0,i.R)(),...e.components};return o?(0,s.jsx)(o,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},8453:(e,o,t)=>{t.d(o,{R:()=>n,x:()=>a});var s=t(6540);const i={},r=s.createContext(i);function n(e){const o=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function a(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:n(e.components),s.createElement(r.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2d25ac87.ad88e0da.js b/assets/js/2d25ac87.ad88e0da.js new file mode 100644 index 000000000..b99ddd3c7 --- /dev/null +++ b/assets/js/2d25ac87.ad88e0da.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5949],{7765:(e,o,t)=>{t.r(o),t.d(o,{assets:()=>c,contentTitle:()=>a,default:()=>d,frontMatter:()=>n,metadata:()=>s,toc:()=>u});const s=JSON.parse('{"id":"utilities/autocompressor","title":"autocompressor","description":"Autocompressor is a free online media compression tool by Auto-Rez Media Technologies that compresses videos, images, audio, and GIFs to a target file size. Depending on the file type you upload, it will be handled differently such that the result serves a similar function to what you uploaded. For example, videos are transcoded to videos, audio files to audio files, images to images, and animations to animations.","source":"@site/docs/utilities/autocompressor.mdx","sourceDirName":"utilities","slug":"/utilities/autocompressor","permalink":"/docs/utilities/autocompressor","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/autocompressor.mdx","tags":[],"version":"current","sidebarPosition":15,"frontMatter":{"title":"autocompressor","sidebar_position":15},"sidebar":"tutorialSidebar","previous":{"title":"av1an-command-gen","permalink":"/docs/utilities/av1an-command-gen"},"next":{"title":"PSNR","permalink":"/docs/metrics/PSNR"}}');var i=t(4848),r=t(8453);const n={title:"autocompressor",sidebar_position:15},a="Autocompressor",c={},u=[];function l(e){const o={a:"a",blockquote:"blockquote",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.header,{children:(0,i.jsx)(o.h1,{id:"autocompressor",children:"Autocompressor"})}),"\n",(0,i.jsxs)(o.p,{children:[(0,i.jsx)(o.a,{href:"https://autocompressor.net/",children:"Autocompressor"})," is a free online media compression tool by Auto-Rez Media Technologies that compresses videos, images, audio, and GIFs to a target file size. Depending on the file type you upload, it will be handled differently such that the result serves a similar function to what you uploaded. For example, videos are transcoded to videos, audio files to audio files, images to images, and animations to animations."]}),"\n",(0,i.jsx)(o.p,{children:"From their site:"}),"\n",(0,i.jsxs)(o.blockquote,{children:["\n",(0,i.jsx)(o.p,{children:"Reduce the file size of your video, image, audio, or GIF quickly and easily with our free online compression tool. Whether you need to shrink your file to 25MB or any other specific size, our tool offers a simple and intuitive solution. We'll also create perfectly compressed emotes and stickers for Discord. Using the link mode, you can instantly compress YouTube videos and other sites to 25MB. Our advanced AUTO-REZ\u2122 technology achieves higher quality at a given filesize than any other website. Autocompressor will automatically choose the output format based on the input format and the compatibility category you select."}),"\n"]}),"\n",(0,i.jsx)(o.p,{children:"Autocompressor also plans to offer a premium service in the future where the cost is determined by the CPU minutes used during the operation as well as the compression effort tier. For instance, encoding a typical 4-minute YouTube video to 8MB with MP4-Normal will cost about 5 CPU minutes."}),"\n",(0,i.jsx)(o.p,{children:"Users can create an account to get 1800 CPU minutes free. The site ensures high security for user data by using BCrypt hashes to store passwords."}),"\n",(0,i.jsxs)(o.p,{children:["You can read more on their ",(0,i.jsx)(o.a,{href:"https://autocompressor.net/about",children:"About page"}),"."]})]})}function d(e={}){const{wrapper:o}={...(0,r.R)(),...e.components};return o?(0,i.jsx)(o,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},8453:(e,o,t)=>{t.d(o,{R:()=>n,x:()=>a});var s=t(6540);const i={},r=s.createContext(i);function n(e){const o=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function a(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:n(e.components),s.createElement(r.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2e23a845.60b30d51.js b/assets/js/2e23a845.60b30d51.js new file mode 100644 index 000000000..de29041f8 --- /dev/null +++ b/assets/js/2e23a845.60b30d51.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5147],{7126:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>m,frontMatter:()=>o,metadata:()=>t,toc:()=>h});const t=JSON.parse('{"id":"encoders/SVT-AV1-PSY","title":"SVT-AV1-PSY","description":"This entry is about a fork of SVT-AV1 called SVT-AV1-PSY. If you\'d like to learn about the mainline SVT-AV1 encoder before reading, visit our SVT-AV1 wiki entry.","source":"@site/docs/encoders/SVT-AV1-PSY.mdx","sourceDirName":"encoders","slug":"/encoders/SVT-AV1-PSY","permalink":"/docs/encoders/SVT-AV1-PSY","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/SVT-AV1-PSY.mdx","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"title":"SVT-AV1-PSY","sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"aomenc","permalink":"/docs/encoders/aomenc"},"next":{"title":"SVT-AV1","permalink":"/docs/encoders/SVT-AV1"}}');var r=i(4848),a=i(8453),s=i(1470),l=i(9365);const o={title:"SVT-AV1-PSY",sidebar_position:5},c="SVT-AV1-PSY",d={},h=[{value:"Micro-Release Framework",id:"micro-release-framework",level:2},{value:"Feature Additions",id:"feature-additions",level:2},{value:"Modified Defaults",id:"modified-defaults",level:2},{value:"Other Changes",id:"other-changes",level:3},{value:"Installation",id:"installation",level:2},{value:"Projects Featuring SVT-AV1-PSY",id:"projects-featuring-svt-av1-psy",level:2},{value:"License",id:"license",level:2}];function u(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,a.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"svt-av1-psy",children:"SVT-AV1-PSY"})}),"\n",(0,r.jsx)(n.admonition,{title:"Community Fork",type:"info",children:(0,r.jsxs)(n.p,{children:["This entry is about a fork of SVT-AV1 called SVT-AV1-PSY. If you'd like to learn about the mainline SVT-AV1 encoder before reading, visit our ",(0,r.jsx)(n.a,{href:"/docs/encoders/SVT-AV1",children:"SVT-AV1 wiki entry"}),"."]})}),"\n",(0,r.jsx)(n.p,{children:"SVT-AV1-PSY is a project that aims to enhance the Scalable Video Technology for AV1 Encoder with perceptual enhancements for psychovisually optimal AV1 encoding. The ultimate goal is to create the best encoding implementation for perceptual quality with AV1. The development of this project involves a collaborative effort from a team of dedicated developers and contributors who are committed to improving the perceptual quality of AV1 encoding."}),"\n",(0,r.jsxs)(n.p,{children:["The SVT-AV1-PSY project is maintained by ",(0,r.jsx)(n.a,{href:"https://github.com/gianni-rosato",children:"Gianni Rosato"}),", ",(0,r.jsx)(n.a,{href:"https://github.com/juliobbv",children:"Julio Barba"}),", & ",(0,r.jsx)(n.a,{href:"https://github.com/Clybius",children:"Clybius"}),", as well as a number of community contributors including ",(0,r.jsx)(n.a,{href:"https://github.com/BlueSwordM",children:"BlueSwordM"}),", the maintainer of the ",(0,r.jsx)(n.a,{href:"https://aur.archlinux.org/packages/svt-av1-psy-git",children:"SVT-AV1-PSY AUR package"})," & the original author of ",(0,r.jsx)(n.a,{href:"https://github.com/BlueSwordM/aom-av1-psy",children:"aom-av1-psy"}),"."]}),"\n",(0,r.jsxs)(n.p,{children:["The development process involves community testing and optimization to ensure that the encoder and decoder deliver optimal performance. The team uses a variety of tools and methodologies to analyze and improve the performance of the encoder and decoder, including subjective analyses. ",(0,r.jsx)(n.a,{href:"/docs/metrics/SSIMULACRA2",children:"SSIMULACRA2"})," and ",(0,r.jsx)(n.a,{href:"/docs/metrics/XPSNR",children:"XPSNR"})," are used extensively for metrics testing, and the team is committed to improving the overall quality and performance of the encoder using these two metrics as general guidelines and benchmarks. However, the stated goal is not to improve metric scores but to improve the overall perceptual quality of the encoder; naturally, changes are often made to SVT-AV1-PSY that end up degrading metric performance in favor of perceptual fidelity per bit."]}),"\n",(0,r.jsx)(n.p,{children:"SVT-AV1-PSY is a superset of SVT-AV1, meaning any valid SVT-AV1 command will work with SVT-AV1-PSY given the modified defaults do not conflict with the settings provided."}),"\n",(0,r.jsxs)(n.p,{children:["SVT-AV1-PSY is used by default in ",(0,r.jsx)(n.a,{href:"/docs/utilities/Aviator",children:"Aviator"})," and can be used in ",(0,r.jsx)(n.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"})," by using the pre-compiled binaries available with the tool or by building a binary yourself."]}),"\n",(0,r.jsx)(n.p,{children:"SVT-AV1-PSY contributors are not in any way affiliated with the Alliance for Open Media or any upstream SVT-AV1 project contributors who have not also contributed to the SVT-AV1-PSY project."}),"\n",(0,r.jsx)(n.h2,{id:"micro-release-framework",children:"Micro-Release Framework"}),"\n",(0,r.jsx)(n.p,{children:"SVT-AV1-PSY features additions outside of mainline SVT-AV1 that are often considered to be significant, but don't line up with a major mainline release. Therefore, the SVT-AV1-PSY release framework is different, and the encoder is currently being developed around micro-releases to make this clear."}),"\n",(0,r.jsxs)(n.p,{children:["Micro-releases are tagged with letters starting at ",(0,r.jsx)(n.code,{children:"A"})," to indicate that they contain significant new features and aren't equivalent to mainline releases; for example, ",(0,r.jsx)(n.code,{children:"v2.0.0-A"})," was a micro-release with significant new features exclusive to SVT-AV1-PSY that followed the prior ",(0,r.jsx)(n.code,{children:"v2.0.0"})," release (which came out with PSY + mainline features in tandem with mainline ",(0,r.jsx)(n.code,{children:"v2.0.0"}),"). Releases without letters are in-line with mainline SVT-AV1 releases, and may contain significant PSY feature additions as well."]}),"\n",(0,r.jsx)(n.h2,{id:"feature-additions",children:"Feature Additions"}),"\n",(0,r.jsx)(n.p,{children:"SVT-AV1-PSY includes a number of new features that are not present in mainline SVT-AV1. These features are designed to improve the visual quality of AV1 encodes, and offer more flexibility when configuring the encoder for a wide range of encoding scenarios. Many of these changes are being integrated into mainline SVT-AV1 as the project matures."}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"--variance-boost-strength"})," ",(0,r.jsx)(n.em,{children:"1 to 4"})," (",(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/merge_requests/2195",children:"Merged to Mainline"})}),")"]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Provides control over our augmented AQ Modes 0 and 2 which can utilize variance information in each frame for more consistent quality under high/low contrast scenes. Four curve options are provided, and the default is curve 2. 1: mild, 2: gentle, 3: medium, 4: aggressive"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"--variance-octile"})," ",(0,r.jsx)(n.em,{children:"1 to 8"})," (",(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/merge_requests/2195",children:"Merged to Mainline"})}),")"]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:['Controls how "selective" the algorithm is when boosting superblocks, based on their low/high 8x8 variance ratio. A value of 1 is the least selective, and will readily boost a superblock if only 1/8th of the superblock is low variance. Conversely, a value of 8 will only boost if the ',(0,r.jsx)(n.em,{children:"entire"})," superblock is low variance. Lower values increase bitrate. The default value is 6."]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"--enable-alt-curve"})," ",(0,r.jsx)(n.em,{children:"0 and 1"})]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Enable an alternative variance boost curve, with different bit allocation and visual characteristics. The default is 0."}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"Presets -2 & -3"})}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Terrifically slow encoding modes for research purposes."}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"Tune 3"})}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"A new tune based on Tune 2 (SSIM) called SSIM with Subjective Quality Tuning. Generally harms metric performance in exchange for better visual fidelity."}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"--sharpness"})," ",(0,r.jsx)(n.em,{children:"-7 to 7"})]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"A parameter for modifying loopfilter deblock sharpness and rate distortion to improve visual fidelity. The default is 0 (no sharpness)."}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"--dolby-vision-rpu"})," ",(0,r.jsx)(n.em,{children:"path to file"})]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["Set the path to a Dolby Vision RPU for encoding Dolby Vision video. SVT-AV1-PSY needs to be built with the ",(0,r.jsx)(n.code,{children:"enable-libdovi"})," flag enabled in build.sh (see ",(0,r.jsx)(n.code,{children:"./Build/linux/build.sh --help"})," for more info) (Thank you @quietvoid !)"]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"Progress 3"})}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"A new progress mode that provides more detailed information about the encoding process."}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"--fgs-table"})," ",(0,r.jsx)(n.em,{children:"path to file"})," (",(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/ae7ce1abc5f3f7913624f728ae123f8b8c1e30de",children:"Merged to Mainline"})}),")"]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Argument for providing a film grain table for synthetic film grain (similar to aomenc's '--film-grain-table=' argument)."}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"Extended CRF"})}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Provides a more versatile and granular way to set CRF. Range has been expanded to 70 (from 63) to help with ultra-low bitrate encodes, and can now be set in quarter-step (0.25) increments."}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"--qp-scale-compress-strength"})," ",(0,r.jsx)(n.em,{children:"0 to 3"})]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Increases video quality temporal consistency, especially with clips that contain film grain and/or contain fast-moving objects."}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"--enable-dlf 2"})}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Enables a more accurate loop filter that prevents blocking, for a modest increase in compute time (most noticeable at presets 7 to 9)"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"Higher-quality presets for 8K"})}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Lowers the minimum available preset from 8 to 2 for higher-quality 8K encoding (64 GB of RAM recommended per encoding instance)"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"--frame-luma-bias"})," ",(0,r.jsx)(n.em,{children:"0 to 100"})]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Enables frame-level luma bias to improve quality in dark scenes by adjusting frame-level QP based on average luminance across each frame"}),"\n",(0,r.jsx)(n.h2,{id:"modified-defaults",children:"Modified Defaults"}),"\n",(0,r.jsx)(n.p,{children:"SVT-AV1-PSY has different defaults than mainline SVT-AV1 in order to provide better visual fidelity out of the box. They include:"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"Default 10-bit color depth when given a 10-bit input."}),"\n",(0,r.jsxs)(n.li,{children:["Disable film grain denoising by default, as it often harms visual fidelity. (",(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/8b39b41df9e07bbcdbd19ea618762c5db3353c03",children:"Merged to Mainline"})}),")"]}),"\n",(0,r.jsx)(n.li,{children:"Default to Tune 2 instead of Tune 1, as it reliably outperforms Tune 1 perceptually."}),"\n",(0,r.jsx)(n.li,{children:"Enable quantization matrices by default."}),"\n",(0,r.jsx)(n.li,{children:"Set minimum QM level to 0 by default."}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"--enable-variance-boost"})," enabled by default."]}),"\n"]}),"\n",(0,r.jsx)(n.h3,{id:"other-changes",children:"Other Changes"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"--color-help"})}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Prints the information found in Appendix A.2 of the user guide in order to help users more easily understand the Color Description Options in SvtAv1EncApp."}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.code,{children:"Micro-Releases"})}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["In order to make SVT-AV1-PSY feature additions more clear, micro-release tags indicate when significant new feature additions have been made. Micro-release tags are letters starting with ",(0,r.jsx)(n.code,{children:"A"}),", so new releases will be tagged as ",(0,r.jsx)(n.code,{children:"v#.#.#-A"}),", ",(0,r.jsx)(n.code,{children:"v#.#.#-B"}),", etc. This is discussed earlier in this entry."]}),"\n",(0,r.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,r.jsx)(n.p,{children:"Building & installing SVT-AV1-PSY is the same as building & installing mainline SVT-AV1."}),"\n",(0,r.jsxs)(s.A,{children:[(0,r.jsxs)(l.A,{value:"unixlike",label:"Linux & macOS",children:[(0,r.jsx)(n.p,{children:(0,r.jsxs)(n.em,{children:["A precompiled AVX2-optimized binary of SVT-AV1-PSY can be installed for x86_64 Linux via ",(0,r.jsx)(n.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"}),". However, it is always recommended to build from source."]})}),(0,r.jsx)(n.p,{children:"To build SVT-AV1 from source, first clone the desired SVT-AV1 repository & enter the build directory."}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Clone SVT-AV1-PSY"',children:"git clone https://github.com/gianni-rosato/svt-av1-psy\ncd svt-av1-psy/Build/linux\n"})}),(0,r.jsxs)(n.p,{children:["In the directory, simply run ",(0,r.jsx)(n.code,{children:"./build.sh [flags]"})," to build. Be aware that building requires CMake version 3.16 or higher and either GCC or Clang. It is recommended to use Clang."]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Build release"',children:"./build.sh release\n"})}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Statically build just the encoder with clang and enable link-time optimization"',children:"./build.sh jobs=8 all cc=clang cxx=clang++ no-dec enable-lto static native\n"})}),(0,r.jsxs)(n.p,{children:["The compiled binaries will be in the ",(0,r.jsx)(n.code,{children:"Bin/Release"})," directory, including SvtAv1EncApp. If you just want the encoder, adding the ",(0,r.jsx)(n.code,{children:"no-dec"})," flag will skip building SvtAv1DecApp and save on compilation time."]}),(0,r.jsxs)(n.p,{children:["If you'd like to build from the latest release (2.1.0 at the time of writing - last updated 23 May 2024) please run ",(0,r.jsx)(n.code,{children:"git reset --hard 5471bd78311d70ab4691af1ae54fd80e25f214f5"})," in the cloned directory. It is recommended that you do this, as new changes to git aren't always stable right away & a release will guarantee more stability."]}),(0,r.jsxs)(n.p,{children:["If you want extra performance, it is possible to build SVT-AV1 using PGO (Profile-guided Optimization). ",(0,r.jsxs)(n.strong,{children:["Be aware that this particular script infers that you have a .y4m file (or multiple) in ",(0,r.jsx)(n.code,{children:"/dev/shm"})," for transcoding"]}),". You can compile statically linked SVT-AV1 with PGO (and LTO, or link-time optimization) by following this script:"]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Bulding SVT-AV1 with profile guided optimization"',children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ncd SVT-AV1/Build/linux\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-videos=/dev/shm release\n"})}),(0,r.jsx)(n.p,{children:"If you wish to store videos elsewhere or provide custom parameters to the SvtAv1EncApp binary, try this script:"}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ncd SVT-AV1/Build/linux\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-compile-gen release\n../../Bin/Release/SvtAv1EncApp # Run this binary as many times as you'd like with arguments of your choice to collect data\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-compile-use release\n"})})]}),(0,r.jsxs)(l.A,{value:"windows",label:"Windows",children:[(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"MSYS2"})," is the best option for building in Windows, as it provides a Unix-like environment for building SVT-AV1-PSY. This makes the compilation procedure the same as described for Linux & macOS. The full build process is detailed here."]}),(0,r.jsxs)(n.ol,{start:"0",children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["Make sure you have downloaded & installed MSYS2 from ",(0,r.jsx)(n.a,{href:"https://www.msys2.org/",children:"the MSYS2 website"})," before beginning the build process."]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Start the UCRT64 console & install the required dependencies:"}),"\n"]}),"\n"]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"pacman -Syu --needed git mingw-w64-ucrt-x86_64-toolchain mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-ninja mingw-w64-ucrt-x86_64-yasm\n"})}),(0,r.jsxs)(n.ol,{start:"2",children:["\n",(0,r.jsx)(n.li,{children:"[Optional] Clang is the recommended compiler for SVT-AV1 & SVT-AV1-PSY, so you may wish to download it with the following command:"}),"\n"]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"pacman -Syu --needed mingw-w64-ucrt-x86_64-clang\n"})}),(0,r.jsxs)(n.ol,{start:"3",children:["\n",(0,r.jsxs)(n.li,{children:["Now, we may follow the steps for Linux & macOS to complete building. Please note that CMake may require you to include ",(0,r.jsx)(n.code,{children:'-G "Ninja"'})," in any CMake commands."]}),"\n"]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Clone SVT-AV1-PSY"',children:"git clone https://github.com/gianni-rosato/svt-av1-psy\ncd SVT-AV1/Build/linux\n"})}),(0,r.jsxs)(n.p,{children:["In the directory, simply run ",(0,r.jsx)(n.code,{children:"./build.sh [flags]"})," to build. Be aware that building requires CMake version 3.16 or higher and either GCC or Clang. It is recommended to use Clang, and ideally it will be installed as per Step 2."]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Build release"',children:"./build.sh release\n"})}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Statically build just the encoder with clang and enable link-time optimization"',children:"./build.sh jobs=8 all cc=clang cxx=clang++ no-dec enable-lto static native\n"})}),(0,r.jsxs)(n.p,{children:["The compiled binaries will be in the ",(0,r.jsx)(n.code,{children:"Bin/Release"})," directory, including SvtAv1EncApp. If you just want the encoder, adding the ",(0,r.jsx)(n.code,{children:"no-dec"})," flag will skip building SvtAv1DecApp and save on compilation time."]}),(0,r.jsxs)(n.p,{children:["If you'd like to build from the latest release (2.1.0 at the time of writing - last updated 23 May 2024) please run ",(0,r.jsx)(n.code,{children:"git reset --hard 5471bd78311d70ab4691af1ae54fd80e25f214f5"})," in the cloned directory."]})]})]}),"\n",(0,r.jsx)(n.h2,{id:"projects-featuring-svt-av1-psy",children:"Projects Featuring SVT-AV1-PSY"}),"\n",(0,r.jsx)(n.p,{children:"Some projects that feature SVT-AV1-PSY include:"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/utilities/Aviator",children:"Aviator"})," ~ an AV1 encoding GUI by @gianni-rosato"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"})," ~ a TUI for video encoding with Av1an by @gianni-rosato"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://aur.archlinux.org/packages/svt-av1-psy-git",children:"SVT-AV1-PSY on the AUR"})," ~ by @BlueSwordM"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/CachyOS/CachyOS-PKGBUILDS/pull/144",children:"SVT-AV1-PSY in CachyOS"})," ~ by @BlueSwordM"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/vincejv/docker-handbrake",children:"Custom Handbrake Builds"})," ~ by @vincejv"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/staxrip/staxrip",children:"Staxrip"})," ~ a video & audio encoding GUI for Windows by @Dendraspis"]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"license",children:"License"}),"\n",(0,r.jsx)(n.p,{children:"Up to v0.8.7, SVT-AV1 is licensed under the BSD-2-clause license and the\nAlliance for Open Media Patent License 1.0. Starting from v0.9, SVT-AV1 is licensed\nunder the BSD-3-clause clear license and the Alliance for Open Media Patent\nLicense 1.0."}),"\n",(0,r.jsx)(n.p,{children:"SVT-AV1-PSY does not feature license modifications from mainline SVT-AV1."})]})}function m(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},9365:(e,n,i)=>{i.d(n,{A:()=>s});i(6540);var t=i(4164);const r={tabItem:"tabItem_Ymn6"};var a=i(4848);function s(e){let{children:n,hidden:i,className:s}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,t.A)(r.tabItem,s),hidden:i,children:n})}},1470:(e,n,i)=>{i.d(n,{A:()=>S});var t=i(6540),r=i(4164),a=i(3104),s=i(6347),l=i(205),o=i(7485),c=i(1682),d=i(679);function h(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:n,children:i}=e;return(0,t.useMemo)((()=>{const e=n??function(e){return h(e).map((e=>{let{props:{value:n,label:i,attributes:t,default:r}}=e;return{value:n,label:i,attributes:t,default:r}}))}(i);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,i])}function m(e){let{value:n,tabValues:i}=e;return i.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:i}=e;const r=(0,s.W6)(),a=function(e){let{queryString:n=!1,groupId:i}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:n,groupId:i});return[(0,o.aZ)(a),(0,t.useCallback)((e=>{if(!a)return;const n=new URLSearchParams(r.location.search);n.set(a,e),r.replace({...r.location,search:n.toString()})}),[a,r])]}function f(e){const{defaultValue:n,queryString:i=!1,groupId:r}=e,a=u(e),[s,o]=(0,t.useState)((()=>function(e){let{defaultValue:n,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const t=i.find((e=>e.default))??i[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:n,tabValues:a}))),[c,h]=p({queryString:i,groupId:r}),[f,g]=function(e){let{groupId:n}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,a]=(0,d.Dv)(i);return[r,(0,t.useCallback)((e=>{i&&a.set(e)}),[i,a])]}({groupId:r}),b=(()=>{const e=c??f;return m({value:e,tabValues:a})?e:null})();(0,l.A)((()=>{b&&o(b)}),[b]);return{selectedValue:s,selectValue:(0,t.useCallback)((e=>{if(!m({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);o(e),h(e),g(e)}),[h,g,a]),tabValues:a}}var g=i(2303);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=i(4848);function j(e){let{className:n,block:i,selectedValue:t,selectValue:s,tabValues:l}=e;const o=[],{blockElementScrollPositionUntilNextRender:c}=(0,a.a_)(),d=e=>{const n=e.currentTarget,i=o.indexOf(n),r=l[i].value;r!==t&&(c(n),s(r))},h=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=o.indexOf(e.currentTarget)+1;n=o[i]??o[0];break}case"ArrowLeft":{const i=o.indexOf(e.currentTarget)-1;n=o[i]??o[o.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":i},n),children:l.map((e=>{let{value:n,label:i,attributes:a}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:t===n?0:-1,"aria-selected":t===n,ref:e=>o.push(e),onKeyDown:h,onClick:d,...a,className:(0,r.A)("tabs__item",b.tabItem,a?.className,{"tabs__item--active":t===n}),children:i??n},n)}))})}function v(e){let{lazy:n,children:i,selectedValue:a}=e;const s=(Array.isArray(i)?i:[i]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,t.cloneElement)(e,{className:(0,r.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function V(e){const n=f(e);return(0,x.jsxs)("div",{className:(0,r.A)("tabs-container",b.tabList),children:[(0,x.jsx)(j,{...n,...e}),(0,x.jsx)(v,{...n,...e})]})}function S(e){const n=(0,g.A)();return(0,x.jsx)(V,{...e,children:h(e.children)},String(n))}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>l});var t=i(6540);const r={},a=t.createContext(r);function s(e){const n=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),t.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2e23a845.996efb55.js b/assets/js/2e23a845.996efb55.js deleted file mode 100644 index 8833091b5..000000000 --- a/assets/js/2e23a845.996efb55.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5147],{2914:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>m,frontMatter:()=>l,metadata:()=>c,toc:()=>h});var t=i(4848),r=i(8453),a=i(1470),s=i(9365);const l={title:"SVT-AV1-PSY",sidebar_position:5},o="SVT-AV1-PSY",c={id:"encoders/SVT-AV1-PSY",title:"SVT-AV1-PSY",description:"This entry is about a fork of SVT-AV1 called SVT-AV1-PSY. If you'd like to learn about the mainline SVT-AV1 encoder before reading, visit our SVT-AV1 wiki entry.",source:"@site/docs/encoders/SVT-AV1-PSY.mdx",sourceDirName:"encoders",slug:"/encoders/SVT-AV1-PSY",permalink:"/docs/encoders/SVT-AV1-PSY",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/SVT-AV1-PSY.mdx",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"SVT-AV1-PSY",sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"aomenc",permalink:"/docs/encoders/aomenc"},next:{title:"SVT-AV1",permalink:"/docs/encoders/SVT-AV1"}},d={},h=[{value:"Micro-Release Framework",id:"micro-release-framework",level:2},{value:"Feature Additions",id:"feature-additions",level:2},{value:"Modified Defaults",id:"modified-defaults",level:2},{value:"Other Changes",id:"other-changes",level:3},{value:"Installation",id:"installation",level:2},{value:"Projects Featuring SVT-AV1-PSY",id:"projects-featuring-svt-av1-psy",level:2},{value:"License",id:"license",level:2}];function u(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"svt-av1-psy",children:"SVT-AV1-PSY"})}),"\n",(0,t.jsx)(n.admonition,{title:"Community Fork",type:"info",children:(0,t.jsxs)(n.p,{children:["This entry is about a fork of SVT-AV1 called SVT-AV1-PSY. If you'd like to learn about the mainline SVT-AV1 encoder before reading, visit our ",(0,t.jsx)(n.a,{href:"/docs/encoders/SVT-AV1",children:"SVT-AV1 wiki entry"}),"."]})}),"\n",(0,t.jsx)(n.p,{children:"SVT-AV1-PSY is a project that aims to enhance the Scalable Video Technology for AV1 Encoder with perceptual enhancements for psychovisually optimal AV1 encoding. The ultimate goal is to create the best encoding implementation for perceptual quality with AV1. The development of this project involves a collaborative effort from a team of dedicated developers and contributors who are committed to improving the perceptual quality of AV1 encoding."}),"\n",(0,t.jsxs)(n.p,{children:["The SVT-AV1-PSY project is maintained by ",(0,t.jsx)(n.a,{href:"https://github.com/gianni-rosato",children:"Gianni Rosato"}),", ",(0,t.jsx)(n.a,{href:"https://github.com/juliobbv",children:"Julio Barba"}),", & ",(0,t.jsx)(n.a,{href:"https://github.com/Clybius",children:"Clybius"}),", as well as a number of community contributors including ",(0,t.jsx)(n.a,{href:"https://github.com/BlueSwordM",children:"BlueSwordM"}),", the maintainer of the ",(0,t.jsx)(n.a,{href:"https://aur.archlinux.org/packages/svt-av1-psy-git",children:"SVT-AV1-PSY AUR package"})," & the original author of ",(0,t.jsx)(n.a,{href:"https://github.com/BlueSwordM/aom-av1-psy",children:"aom-av1-psy"}),"."]}),"\n",(0,t.jsxs)(n.p,{children:["The development process involves community testing and optimization to ensure that the encoder and decoder deliver optimal performance. The team uses a variety of tools and methodologies to analyze and improve the performance of the encoder and decoder, including subjective analyses. ",(0,t.jsx)(n.a,{href:"/docs/metrics/SSIMULACRA2",children:"SSIMULACRA2"})," and ",(0,t.jsx)(n.a,{href:"/docs/metrics/XPSNR",children:"XPSNR"})," are used extensively for metrics testing, and the team is committed to improving the overall quality and performance of the encoder using these two metrics as general guidelines and benchmarks. However, the stated goal is not to improve metric scores but to improve the overall perceptual quality of the encoder; naturally, changes are often made to SVT-AV1-PSY that end up degrading metric performance in favor of perceptual fidelity per bit."]}),"\n",(0,t.jsx)(n.p,{children:"SVT-AV1-PSY is a superset of SVT-AV1, meaning any valid SVT-AV1 command will work with SVT-AV1-PSY given the modified defaults do not conflict with the settings provided."}),"\n",(0,t.jsxs)(n.p,{children:["SVT-AV1-PSY is used by default in ",(0,t.jsx)(n.a,{href:"/docs/utilities/Aviator",children:"Aviator"})," and can be used in ",(0,t.jsx)(n.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"})," by using the pre-compiled binaries available with the tool or by building a binary yourself."]}),"\n",(0,t.jsx)(n.p,{children:"SVT-AV1-PSY contributors are not in any way affiliated with the Alliance for Open Media or any upstream SVT-AV1 project contributors who have not also contributed to the SVT-AV1-PSY project."}),"\n",(0,t.jsx)(n.h2,{id:"micro-release-framework",children:"Micro-Release Framework"}),"\n",(0,t.jsx)(n.p,{children:"SVT-AV1-PSY features additions outside of mainline SVT-AV1 that are often considered to be significant, but don't line up with a major mainline release. Therefore, the SVT-AV1-PSY release framework is different, and the encoder is currently being developed around micro-releases to make this clear."}),"\n",(0,t.jsxs)(n.p,{children:["Micro-releases are tagged with letters starting at ",(0,t.jsx)(n.code,{children:"A"})," to indicate that they contain significant new features and aren't equivalent to mainline releases; for example, ",(0,t.jsx)(n.code,{children:"v2.0.0-A"})," was a micro-release with significant new features exclusive to SVT-AV1-PSY that followed the prior ",(0,t.jsx)(n.code,{children:"v2.0.0"})," release (which came out with PSY + mainline features in tandem with mainline ",(0,t.jsx)(n.code,{children:"v2.0.0"}),"). Releases without letters are in-line with mainline SVT-AV1 releases, and may contain significant PSY feature additions as well."]}),"\n",(0,t.jsx)(n.h2,{id:"feature-additions",children:"Feature Additions"}),"\n",(0,t.jsx)(n.p,{children:"SVT-AV1-PSY includes a number of new features that are not present in mainline SVT-AV1. These features are designed to improve the visual quality of AV1 encodes, and offer more flexibility when configuring the encoder for a wide range of encoding scenarios. Many of these changes are being integrated into mainline SVT-AV1 as the project matures."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"--variance-boost-strength"})," ",(0,t.jsx)(n.em,{children:"1 to 4"})," (",(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/merge_requests/2195",children:"Merged to Mainline"})}),")"]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Provides control over our augmented AQ Modes 0 and 2 which can utilize variance information in each frame for more consistent quality under high/low contrast scenes. Four curve options are provided, and the default is curve 2. 1: mild, 2: gentle, 3: medium, 4: aggressive"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"--variance-octile"})," ",(0,t.jsx)(n.em,{children:"1 to 8"})," (",(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/merge_requests/2195",children:"Merged to Mainline"})}),")"]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:['Controls how "selective" the algorithm is when boosting superblocks, based on their low/high 8x8 variance ratio. A value of 1 is the least selective, and will readily boost a superblock if only 1/8th of the superblock is low variance. Conversely, a value of 8 will only boost if the ',(0,t.jsx)(n.em,{children:"entire"})," superblock is low variance. Lower values increase bitrate. The default value is 6."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"--enable-alt-curve"})," ",(0,t.jsx)(n.em,{children:"0 and 1"})]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Enable an alternative variance boost curve, with different bit allocation and visual characteristics. The default is 0."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"Presets -2 & -3"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Terrifically slow encoding modes for research purposes."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"Tune 3"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"A new tune based on Tune 2 (SSIM) called SSIM with Subjective Quality Tuning. Generally harms metric performance in exchange for better visual fidelity."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"--sharpness"})," ",(0,t.jsx)(n.em,{children:"-7 to 7"})]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"A parameter for modifying loopfilter deblock sharpness and rate distortion to improve visual fidelity. The default is 0 (no sharpness)."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"--dolby-vision-rpu"})," ",(0,t.jsx)(n.em,{children:"path to file"})]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["Set the path to a Dolby Vision RPU for encoding Dolby Vision video. SVT-AV1-PSY needs to be built with the ",(0,t.jsx)(n.code,{children:"enable-libdovi"})," flag enabled in build.sh (see ",(0,t.jsx)(n.code,{children:"./Build/linux/build.sh --help"})," for more info) (Thank you @quietvoid !)"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"Progress 3"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"A new progress mode that provides more detailed information about the encoding process."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"--fgs-table"})," ",(0,t.jsx)(n.em,{children:"path to file"})," (",(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/ae7ce1abc5f3f7913624f728ae123f8b8c1e30de",children:"Merged to Mainline"})}),")"]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Argument for providing a film grain table for synthetic film grain (similar to aomenc's '--film-grain-table=' argument)."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"Extended CRF"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Provides a more versatile and granular way to set CRF. Range has been expanded to 70 (from 63) to help with ultra-low bitrate encodes, and can now be set in quarter-step (0.25) increments."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"--qp-scale-compress-strength"})," ",(0,t.jsx)(n.em,{children:"0 to 3"})]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Increases video quality temporal consistency, especially with clips that contain film grain and/or contain fast-moving objects."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--enable-dlf 2"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Enables a more accurate loop filter that prevents blocking, for a modest increase in compute time (most noticeable at presets 7 to 9)"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"Higher-quality presets for 8K"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Lowers the minimum available preset from 8 to 2 for higher-quality 8K encoding (64 GB of RAM recommended per encoding instance)"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"--frame-luma-bias"})," ",(0,t.jsx)(n.em,{children:"0 to 100"})]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Enables frame-level luma bias to improve quality in dark scenes by adjusting frame-level QP based on average luminance across each frame"}),"\n",(0,t.jsx)(n.h2,{id:"modified-defaults",children:"Modified Defaults"}),"\n",(0,t.jsx)(n.p,{children:"SVT-AV1-PSY has different defaults than mainline SVT-AV1 in order to provide better visual fidelity out of the box. They include:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Default 10-bit color depth when given a 10-bit input."}),"\n",(0,t.jsxs)(n.li,{children:["Disable film grain denoising by default, as it often harms visual fidelity. (",(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/8b39b41df9e07bbcdbd19ea618762c5db3353c03",children:"Merged to Mainline"})}),")"]}),"\n",(0,t.jsx)(n.li,{children:"Default to Tune 2 instead of Tune 1, as it reliably outperforms Tune 1 perceptually."}),"\n",(0,t.jsx)(n.li,{children:"Enable quantization matrices by default."}),"\n",(0,t.jsx)(n.li,{children:"Set minimum QM level to 0 by default."}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"--enable-variance-boost"})," enabled by default."]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"other-changes",children:"Other Changes"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--color-help"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Prints the information found in Appendix A.2 of the user guide in order to help users more easily understand the Color Description Options in SvtAv1EncApp."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"Micro-Releases"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["In order to make SVT-AV1-PSY feature additions more clear, micro-release tags indicate when significant new feature additions have been made. Micro-release tags are letters starting with ",(0,t.jsx)(n.code,{children:"A"}),", so new releases will be tagged as ",(0,t.jsx)(n.code,{children:"v#.#.#-A"}),", ",(0,t.jsx)(n.code,{children:"v#.#.#-B"}),", etc. This is discussed earlier in this entry."]}),"\n",(0,t.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(n.p,{children:"Building & installing SVT-AV1-PSY is the same as building & installing mainline SVT-AV1."}),"\n",(0,t.jsxs)(a.A,{children:[(0,t.jsxs)(s.A,{value:"unixlike",label:"Linux & macOS",children:[(0,t.jsx)(n.p,{children:(0,t.jsxs)(n.em,{children:["A precompiled AVX2-optimized binary of SVT-AV1-PSY can be installed for x86_64 Linux via ",(0,t.jsx)(n.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"}),". However, it is always recommended to build from source."]})}),(0,t.jsx)(n.p,{children:"To build SVT-AV1 from source, first clone the desired SVT-AV1 repository & enter the build directory."}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Clone SVT-AV1-PSY"',children:"git clone https://github.com/gianni-rosato/svt-av1-psy\ncd svt-av1-psy/Build/linux\n"})}),(0,t.jsxs)(n.p,{children:["In the directory, simply run ",(0,t.jsx)(n.code,{children:"./build.sh [flags]"})," to build. Be aware that building requires CMake version 3.16 or higher and either GCC or Clang. It is recommended to use Clang."]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Build release"',children:"./build.sh release\n"})}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Statically build just the encoder with clang and enable link-time optimization"',children:"./build.sh jobs=8 all cc=clang cxx=clang++ no-dec enable-lto static native\n"})}),(0,t.jsxs)(n.p,{children:["The compiled binaries will be in the ",(0,t.jsx)(n.code,{children:"Bin/Release"})," directory, including SvtAv1EncApp. If you just want the encoder, adding the ",(0,t.jsx)(n.code,{children:"no-dec"})," flag will skip building SvtAv1DecApp and save on compilation time."]}),(0,t.jsxs)(n.p,{children:["If you'd like to build from the latest release (2.1.0 at the time of writing - last updated 23 May 2024) please run ",(0,t.jsx)(n.code,{children:"git reset --hard 5471bd78311d70ab4691af1ae54fd80e25f214f5"})," in the cloned directory. It is recommended that you do this, as new changes to git aren't always stable right away & a release will guarantee more stability."]}),(0,t.jsxs)(n.p,{children:["If you want extra performance, it is possible to build SVT-AV1 using PGO (Profile-guided Optimization). ",(0,t.jsxs)(n.strong,{children:["Be aware that this particular script infers that you have a .y4m file (or multiple) in ",(0,t.jsx)(n.code,{children:"/dev/shm"})," for transcoding"]}),". You can compile statically linked SVT-AV1 with PGO (and LTO, or link-time optimization) by following this script:"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Bulding SVT-AV1 with profile guided optimization"',children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ncd SVT-AV1/Build/linux\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-videos=/dev/shm release\n"})}),(0,t.jsx)(n.p,{children:"If you wish to store videos elsewhere or provide custom parameters to the SvtAv1EncApp binary, try this script:"}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ncd SVT-AV1/Build/linux\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-compile-gen release\n../../Bin/Release/SvtAv1EncApp # Run this binary as many times as you'd like with arguments of your choice to collect data\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-compile-use release\n"})})]}),(0,t.jsxs)(s.A,{value:"windows",label:"Windows",children:[(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"MSYS2"})," is the best option for building in Windows, as it provides a Unix-like environment for building SVT-AV1-PSY. This makes the compilation procedure the same as described for Linux & macOS. The full build process is detailed here."]}),(0,t.jsxs)(n.ol,{start:"0",children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Make sure you have downloaded & installed MSYS2 from ",(0,t.jsx)(n.a,{href:"https://www.msys2.org/",children:"the MSYS2 website"})," before beginning the build process."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:"Start the UCRT64 console & install the required dependencies:"}),"\n"]}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"pacman -Syu --needed git mingw-w64-ucrt-x86_64-toolchain mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-ninja mingw-w64-ucrt-x86_64-yasm\n"})}),(0,t.jsxs)(n.ol,{start:"2",children:["\n",(0,t.jsx)(n.li,{children:"[Optional] Clang is the recommended compiler for SVT-AV1 & SVT-AV1-PSY, so you may wish to download it with the following command:"}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"pacman -Syu --needed mingw-w64-ucrt-x86_64-clang\n"})}),(0,t.jsxs)(n.ol,{start:"3",children:["\n",(0,t.jsxs)(n.li,{children:["Now, we may follow the steps for Linux & macOS to complete building. Please note that CMake may require you to include ",(0,t.jsx)(n.code,{children:'-G "Ninja"'})," in any CMake commands."]}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Clone SVT-AV1-PSY"',children:"git clone https://github.com/gianni-rosato/svt-av1-psy\ncd SVT-AV1/Build/linux\n"})}),(0,t.jsxs)(n.p,{children:["In the directory, simply run ",(0,t.jsx)(n.code,{children:"./build.sh [flags]"})," to build. Be aware that building requires CMake version 3.16 or higher and either GCC or Clang. It is recommended to use Clang, and ideally it will be installed as per Step 2."]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Build release"',children:"./build.sh release\n"})}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Statically build just the encoder with clang and enable link-time optimization"',children:"./build.sh jobs=8 all cc=clang cxx=clang++ no-dec enable-lto static native\n"})}),(0,t.jsxs)(n.p,{children:["The compiled binaries will be in the ",(0,t.jsx)(n.code,{children:"Bin/Release"})," directory, including SvtAv1EncApp. If you just want the encoder, adding the ",(0,t.jsx)(n.code,{children:"no-dec"})," flag will skip building SvtAv1DecApp and save on compilation time."]}),(0,t.jsxs)(n.p,{children:["If you'd like to build from the latest release (2.1.0 at the time of writing - last updated 23 May 2024) please run ",(0,t.jsx)(n.code,{children:"git reset --hard 5471bd78311d70ab4691af1ae54fd80e25f214f5"})," in the cloned directory."]})]})]}),"\n",(0,t.jsx)(n.h2,{id:"projects-featuring-svt-av1-psy",children:"Projects Featuring SVT-AV1-PSY"}),"\n",(0,t.jsx)(n.p,{children:"Some projects that feature SVT-AV1-PSY include:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.a,{href:"/docs/utilities/Aviator",children:"Aviator"})," ~ an AV1 encoding GUI by @gianni-rosato"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"})," ~ a TUI for video encoding with Av1an by @gianni-rosato"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.a,{href:"https://aur.archlinux.org/packages/svt-av1-psy-git",children:"SVT-AV1-PSY on the AUR"})," ~ by @BlueSwordM"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.a,{href:"https://github.com/CachyOS/CachyOS-PKGBUILDS/pull/144",children:"SVT-AV1-PSY in CachyOS"})," ~ by @BlueSwordM"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.a,{href:"https://github.com/vincejv/docker-handbrake",children:"Custom Handbrake Builds"})," ~ by @vincejv"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.a,{href:"https://github.com/staxrip/staxrip",children:"Staxrip"})," ~ a video & audio encoding GUI for Windows by @Dendraspis"]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"license",children:"License"}),"\n",(0,t.jsx)(n.p,{children:"Up to v0.8.7, SVT-AV1 is licensed under the BSD-2-clause license and the\nAlliance for Open Media Patent License 1.0. Starting from v0.9, SVT-AV1 is licensed\nunder the BSD-3-clause clear license and the Alliance for Open Media Patent\nLicense 1.0."}),"\n",(0,t.jsx)(n.p,{children:"SVT-AV1-PSY does not feature license modifications from mainline SVT-AV1."})]})}function m(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},9365:(e,n,i)=>{i.d(n,{A:()=>s});i(6540);var t=i(4164);const r={tabItem:"tabItem_Ymn6"};var a=i(4848);function s(e){let{children:n,hidden:i,className:s}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,t.A)(r.tabItem,s),hidden:i,children:n})}},1470:(e,n,i)=>{i.d(n,{A:()=>S});var t=i(6540),r=i(4164),a=i(3104),s=i(6347),l=i(205),o=i(7485),c=i(1682),d=i(679);function h(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:n,children:i}=e;return(0,t.useMemo)((()=>{const e=n??function(e){return h(e).map((e=>{let{props:{value:n,label:i,attributes:t,default:r}}=e;return{value:n,label:i,attributes:t,default:r}}))}(i);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,i])}function m(e){let{value:n,tabValues:i}=e;return i.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:i}=e;const r=(0,s.W6)(),a=function(e){let{queryString:n=!1,groupId:i}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:n,groupId:i});return[(0,o.aZ)(a),(0,t.useCallback)((e=>{if(!a)return;const n=new URLSearchParams(r.location.search);n.set(a,e),r.replace({...r.location,search:n.toString()})}),[a,r])]}function f(e){const{defaultValue:n,queryString:i=!1,groupId:r}=e,a=u(e),[s,o]=(0,t.useState)((()=>function(e){let{defaultValue:n,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const t=i.find((e=>e.default))??i[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:n,tabValues:a}))),[c,h]=p({queryString:i,groupId:r}),[f,g]=function(e){let{groupId:n}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,a]=(0,d.Dv)(i);return[r,(0,t.useCallback)((e=>{i&&a.set(e)}),[i,a])]}({groupId:r}),b=(()=>{const e=c??f;return m({value:e,tabValues:a})?e:null})();(0,l.A)((()=>{b&&o(b)}),[b]);return{selectedValue:s,selectValue:(0,t.useCallback)((e=>{if(!m({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);o(e),h(e),g(e)}),[h,g,a]),tabValues:a}}var g=i(2303);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=i(4848);function j(e){let{className:n,block:i,selectedValue:t,selectValue:s,tabValues:l}=e;const o=[],{blockElementScrollPositionUntilNextRender:c}=(0,a.a_)(),d=e=>{const n=e.currentTarget,i=o.indexOf(n),r=l[i].value;r!==t&&(c(n),s(r))},h=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=o.indexOf(e.currentTarget)+1;n=o[i]??o[0];break}case"ArrowLeft":{const i=o.indexOf(e.currentTarget)-1;n=o[i]??o[o.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":i},n),children:l.map((e=>{let{value:n,label:i,attributes:a}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:t===n?0:-1,"aria-selected":t===n,ref:e=>o.push(e),onKeyDown:h,onClick:d,...a,className:(0,r.A)("tabs__item",b.tabItem,a?.className,{"tabs__item--active":t===n}),children:i??n},n)}))})}function v(e){let{lazy:n,children:i,selectedValue:a}=e;const s=(Array.isArray(i)?i:[i]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===a));return e?(0,t.cloneElement)(e,{className:(0,r.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function V(e){const n=f(e);return(0,x.jsxs)("div",{className:(0,r.A)("tabs-container",b.tabList),children:[(0,x.jsx)(j,{...n,...e}),(0,x.jsx)(v,{...n,...e})]})}function S(e){const n=(0,g.A)();return(0,x.jsx)(V,{...e,children:h(e.children)},String(n))}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>l});var t=i(6540);const r={},a=t.createContext(r);function s(e){const n=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),t.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2f08935f.fb7954df.js b/assets/js/2f08935f.fb7954df.js new file mode 100644 index 000000000..0f829f2ad --- /dev/null +++ b/assets/js/2f08935f.fb7954df.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2210],{1165:(t,s,e)=>{e.d(s,{Ck:()=>u,kS:()=>h});var a=e(4848),i=e(8453),r=e(6540),n=e(4016),o=e(3517),c=e(3343),p=e(3864),m=e(8633),l=e(363);const u=({imageData:t,pixelsAbove:s,pixelsBelow:e})=>{const r={div:"div",...(0,i.R)()},p=({currentSlide:t,direction:s,slideCount:e,...i})=>"left"===s?(0,a.jsx)(m.A,{...i,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,left:10}}):(0,a.jsx)(l.A,{...i,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,right:10}});return(!s||s<0)&&(s=0),(!e||e<0)&&(e=0),(0,a.jsxs)(n.A,{justify:"space-between",vertical:!0,children:[(0,a.jsx)(r.div,{style:{height:`${s}px`}}),(0,a.jsx)(o.A,{arrows:!0,prevArrow:(0,a.jsx)(p,{direction:"left"}),nextArrow:(0,a.jsx)(p,{direction:"right"}),children:t.map((t=>(0,a.jsx)(c.A,{src:t.src},t.src)))}),(0,a.jsx)(r.div,{style:{height:`${e}px`}})]})},h=({tabMap:t,pixelsAbove:s,pixelsBelow:e})=>{const o={div:"div",...(0,i.R)()},[c,m]=(0,r.useState)(Object.keys(t)[0]);return(!s||s<0)&&(s=0),(!e||e<0)&&(e=0),(0,a.jsxs)(n.A,{justify:"space-between",vertical:!0,children:[(0,a.jsx)(o.div,{style:{height:`${s}px`}}),(0,a.jsx)(p.A,{tabList:Object.entries(t).map((([t,s])=>({key:t,label:s.label}))),activeTabKey:c,onTabChange:t=>{m(t)},children:t[c].component}),(0,a.jsx)(o.div,{style:{height:`${e}px`}})]})}},1716:(t,s,e)=>{e.r(s),e.d(s,{assets:()=>p,contentTitle:()=>c,default:()=>u,frontMatter:()=>o,metadata:()=>a,toc:()=>m});var a=e(3788),i=e(4848),r=e(8453),n=e(1165);const o={title:"Better late than never: SVT-AV1 v2.2.x Deep Dive",description:"How does SVT-AV1 2.2.x stack up against the encoder previous version?",slug:"svt-av1-third-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-2.2.x-testing-blog-image.webp",hide_table_of_contents:!1},c="Introduction",p={authorsImageUrls:[void 0]},m=[{value:"Feedback",id:"feedback",level:2},{value:"Methodology",id:"methodology",level:2},{value:"Samples & Encoding Settings",id:"samples--encoding-settings",level:2},{value:"Visual comparisons",id:"visual-comparisons",level:2},{value:"Presets comparisons (-1 -> 12)",id:"presets-comparisons--1---12",level:2},{value:"Efficiency",id:"efficiency",level:3},{value:"Speed",id:"speed",level:3},{value:"Interpretation",id:"interpretation",level:3},{value:"TLDR",id:"tldr",level:3},{value:"SVT-AV1 v2.1.x vs v2.2.x presets comparisons:",id:"svt-av1-v21x-vs-v22x-presets-comparisons",level:2},{value:"preset -1: v2.1.x vs v2.2.x",id:"preset--1-v21x-vs-v22x",level:3},{value:"preset 0: v2.1.x vs v2.2.x",id:"preset-0-v21x-vs-v22x",level:3},{value:"preset 1: v2.1.x vs v2.2.x",id:"preset-1-v21x-vs-v22x",level:3},{value:"preset 2: v2.1.x vs v2.2.x",id:"preset-2-v21x-vs-v22x",level:3},{value:"preset 3: v2.1.x vs v2.2.x",id:"preset-3-v21x-vs-v22x",level:3},{value:"preset 4: v2.1.x vs v2.2.x",id:"preset-4-v21x-vs-v22x",level:3},{value:"preset 5: v2.1.x vs v2.2.x",id:"preset-5-v21x-vs-v22x",level:3},{value:"preset 6: v2.1.x vs v2.2.x",id:"preset-6-v21x-vs-v22x",level:3},{value:"preset 7: v2.1.x vs v2.2.x",id:"preset-7-v21x-vs-v22x",level:3},{value:"preset 8: v2.1.x vs v2.2.x",id:"preset-8-v21x-vs-v22x",level:3},{value:"preset 9: v2.1.x vs v2.2.x",id:"preset-9-v21x-vs-v22x",level:3},{value:"preset 10: v2.1.x vs v2.2.x",id:"preset-10-v21x-vs-v22x",level:3},{value:"preset 11: v2.1.x vs v2.2.x",id:"preset-11-v21x-vs-v22x",level:3},{value:"preset 12: v2.1.x vs v2.2.x",id:"preset-12-v21x-vs-v22x",level:3},{value:"preset 13: v2.1.x vs v2.2.x",id:"preset-13-v21x-vs-v22x",level:3},{value:"TLDR",id:"tldr-1",level:3},{value:"Conclusion",id:"conclusion",level:2},{value:"Future",id:"future",level:2}];function l(t){const s={a:"a",blockquote:"blockquote",code:"code",del:"del",em:"em",h2:"h2",h3:"h3",img:"img",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.R)(),...t.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.p,{children:"SVT-AV1 v2.2.0 was released in late August and a minor version v2.2.1 followed suit to adress some bugs. This blog post will focus on comparing this new encoder version to the last, on the basis of benchmarks and visual comparisons. We will quantify the new trade-offs between compression efficiency and encoding speed, so you can choose the right balance for your projects. Our metrics of choice today will be SSIMULACRA2 and XPSNR, used in conjonction with a revised methodology."}),"\n",(0,i.jsx)(s.h2,{id:"feedback",children:"Feedback"}),"\n",(0,i.jsxs)(s.p,{children:["The biggest missed opportunity of the previous SVT-AV1 deep dives was the absence of visual comparisons. Indeed, metrics may be convenient for easily quantifying differences between encoder versions or encoding parameters, but they fail to give the information of how much these differences matter for your eyes. However, making properly useful visual comparisons isn't an easy task. Comparing two encodes of varying bitrates will bias the result against one or the other, which is not desirable. Figuring out the best way to present these comparisons and making the appropriate scripts took me weeks. Gathering all the necessary data, crafting the comparisons and proceeding to a double-checking pass took me another few weeks. These reasons explain why this blog post took so long to release, but I hope it will have been worth the wait! On that note though, I have been uploading thousands of png screenshots to ",(0,i.jsx)(s.em,{children:"slow.pics"})," and I ended up rate-limited. This has prevented me from uploading the visual comparisons for preset 11, 12 and some of 10. I'm actively trying to fix this situation, so please understand."]}),"\n",(0,i.jsx)(s.p,{children:"Another reason for this taking so long was my decision to increase the amount of video samples while increasing the amount of CRF values tested. A grand total of 3682 encodes were done for this blog post alone, in the span of around two weeks, where my PC would be exclusively encoding 24/7. Send help."}),"\n",(0,i.jsx)(s.p,{children:"Also, the graphs will now be using the harmonic mean instead of the arithmetic mean. Indeed, arithmetic mean scores fail to account for deviations and outliers. Using the harmonic mean implies low-scoring frames have more weight towards the final score, which adds a consistency component to the picture. That's not it though! Consistency is capital in an enjoyable watching experience. As such, each graph now possesses a SSIMULACRA2 (Harmonic) version, a XPSNR (Harmonic) version and a SSIMULACRA2 (Standard Deviation) version, in order to closely monitor variations in consistency between presets."}),"\n",(0,i.jsx)(s.p,{children:"Lastly, the biggest complaint I have received is me exclusively using anime clips. The reason for that is pretty simple: I mostly encode anime content on my free time and am myself very little interested in other types of media. However, these blog posts have grown in exposure and I understand a majority of people is more concerned about the performance of encoders on live action content or gaming clips. Thus, this new blog post is comprised of 3 live action clips, 2 gaming clips and 2 anime clips! See the sacrifices I'm making for y'all?"}),"\n",(0,i.jsx)(s.h2,{id:"methodology",children:"Methodology"}),"\n",(0,i.jsx)(s.p,{children:"The resources provided will include both graphs and image comparisons. Graphs offer a straightforward, objective look at efficiency across encoder parameters, using metrics as benchmarks for performance. In contrast, image comparisons display actual samples from encoded files, allowing you to assess quality firsthand. This adds a subjective dimension to the comparisons, giving you a more nuanced understanding of each preset's impact on visual quality."}),"\n",(0,i.jsxs)(s.p,{children:["The testing methodology involves using relatively short video samples with a wide range of content types, uncompressed to the y4m file format for ease of use. These lossless files are ",(0,i.jsx)(s.em,{children:"directly"})," fed to SvtAv1EncApp, implying the performance of a single encoder instance is what's being measured here. A more serious AV1 encoding pipeline should probably be leveraging a chunked encoding approach, especially on higher core count systems. Once an encode is done, SSIMULACRA2 scores are calculated using the ",(0,i.jsx)(s.a,{href:"https://github.com/dnjulek/vapoursynth-ssimulacra2",children:"Zig implementation"}),", XPSNR scores on the other hand are calculated using a ",(0,i.jsx)(s.a,{href:"https://github.com/fraunhoferhhi/xpsnr",children:"ffmpeg filter"}),", and the data is then aggregated into a final Harmonic or Standard Deviation score to create the graphs for this benchmark. The Constant Rate Factor (CRF) is plotted against encoding time, and the metrics scores against encode size (bitrate). The former may represent the efficiency as defined by the speed achieved at a certain quality target. For the latter, Bits Per Pixel scores (BPP) are calculated so that the ",(0,i.jsx)(s.code,{children:"Metric / BPP"})," graphs may represent the compression efficiency, normalized by resolution."]}),"\n",(0,i.jsx)(s.p,{children:"How to read the graphs? For the compression efficiency ones, the closer to the top left the better. For the encoding speed ones, the closer to the left the faster. For the standard deviation ones, the closer to the bottom left the better."}),"\n",(0,i.jsx)(s.p,{children:"The clips used in this test were acquired legally. The Codec Wiki and its contributors do not endorse media piracy."}),"\n",(0,i.jsxs)(s.p,{children:["SvtAv1EncApp was compiled directly from the ",(0,i.jsx)(s.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/",children:"v2.1.2 and v2.2.1 source code"})," using Clang 18.1.8 and the provided ",(0,i.jsx)(s.code,{children:"Build/linux/build.sh"})," script with the following command: ",(0,i.jsx)(s.code,{children:"build.sh cc=clang cxx=clang++ jobs=$(nproc) enable-lto static native release"}),". The testing machine is comprised of an i3 12100 in its stock configuration, with 2x8GB of 3200MHz CL14 DDR4 RAM, in Arch Linux with kernel 6.9.12 and the performance governor enabled. All encodes have been made in the same session without rebooting."]}),"\n",(0,i.jsx)(s.p,{children:"I want to give a disclaimer concerning encoding speeds. Contrary to the efficiency results which should be reproducible independantly of the machine, measuring speed is a pretty difficult endeavor, with increased risks for errors. The performance numbers I mention may differ for you depending on the hardware configuration at hand."}),"\n",(0,i.jsxs)(s.p,{children:["This testing was conducted within the ",(0,i.jsx)(s.a,{href:"https://discord.gg/83dRFDFDp7",children:"AV1 Weeb Edition"})," Discord server, which is focused on encoding animated content in AV1."]}),"\n",(0,i.jsx)(s.h2,{id:"samples--encoding-settings",children:"Samples & Encoding Settings"}),"\n",(0,i.jsx)(s.p,{children:"The samples are as follows:"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:["17s ",(0,i.jsx)(s.code,{children:"Avatar The Way Of Water (trailer 3)"})," clip sourced from ",(0,i.jsx)(s.a,{href:"https://thedigitaltheater.com/category/movie-trailers/lossless-movie-trailers/",children:"thedigitaltheater.com"})," (1916x804p, 23.976fps)."]}),"\n",(0,i.jsxs)(s.li,{children:["6s ",(0,i.jsx)(s.code,{children:"Ducks Take Off"})," clip sourced from ",(0,i.jsx)(s.a,{href:"https://media.xiph.org/video/derf/",children:"xiph.org"})," (1280x720p, 50fps)."]}),"\n",(0,i.jsxs)(s.li,{children:["3s ",(0,i.jsx)(s.code,{children:"Fallout 4"})," clip sourced from another encoder fellow (1920x1080p, 60fps)."]}),"\n",(0,i.jsxs)(s.li,{children:["8s ",(0,i.jsx)(s.code,{children:"Minecraft"})," clip sourced from ",(0,i.jsx)(s.a,{href:"https://media.xiph.org/video/derf/",children:"xiph.org"})," (1920x1080p, 60fps)."]}),"\n",(0,i.jsxs)(s.li,{children:["8s ",(0,i.jsx)(s.code,{children:"Sol Levante"})," HDR clip sourced from ",(0,i.jsx)(s.a,{href:"http://download.opencontent.netflix.com/?prefix=SolLevante/",children:"opencontent.netflix.com"})," (3840x2160p, 24fps). This one is pretty educative as SVT-AV1's behavior isn't influenced by the existence (or lack thereof) of HDR metadata in a source."]}),"\n",(0,i.jsxs)(s.li,{children:["21s ",(0,i.jsx)(s.code,{children:"Suzume (trailer 2)"})," clip sourced from ",(0,i.jsx)(s.a,{href:"https://thedigitaltheater.com/category/movie-trailers/lossless-movie-trailers/",children:"thedigitaltheater.com"})," (1920x808p, 23.976fps)."]}),"\n",(0,i.jsxs)(s.li,{children:["13s ",(0,i.jsx)(s.code,{children:"The Mandalorian (trailer 2)"})," clip sourced from ",(0,i.jsx)(s.a,{href:"https://thedigitaltheater.com/category/movie-trailers/lossless-movie-trailers/",children:"thedigitaltheater.com"})," (1920x800p, 23.976fps)."]}),"\n"]}),"\n",(0,i.jsxs)(s.blockquote,{children:["\n",(0,i.jsx)(s.p,{children:(0,i.jsxs)(s.strong,{children:["All clips have been encoded in a wide quality range, from ",(0,i.jsx)(s.code,{children:"--crf 10"})," to ",(0,i.jsx)(s.code,{children:"--crf 50"}),", by increments of 2, with the exception of preset -1 that uses increments of 4."]})}),"\n"]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.code,{children:"--preset X --hierarchical-levels 4"})," are the only parameter used here, in conjunction with the CRF values. I have been asked to use ",(0,i.jsx)(s.code,{children:"--hierarchical-levels 4"})," by fellow SVT-AV1-PSY developers to force smaller mini GOPs, more appropriate for testing."]}),"\n",(0,i.jsx)(s.p,{children:"Else, the SVT-AV1 defaults were used. The ones worth mentioning are:"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.code,{children:"--tune 1"}),": tune PSNR"]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.code,{children:"--aq-mode 2"}),": variance deltaq"]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.code,{children:"--enable-qm 0"}),": quantisation matrices disabled"]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.code,{children:"--irefresh-type 2"}),": closed GOP"]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.code,{children:"--enable-tf 1"}),": temporal filtering enabled\nAnd more, like CDEF and restoration enabled, overlays and film-grain disabled..."]}),"\n"]}),"\n",(0,i.jsx)(s.h2,{id:"visual-comparisons",children:"Visual comparisons"}),"\n",(0,i.jsx)(s.p,{children:(0,i.jsx)(s.img,{alt:"comp_showcase",src:e(9332).A+"",width:"1735",height:"784"})}),"\n",(0,i.jsxs)(s.p,{children:["Throughout this blog post, you\u2019ll find ",(0,i.jsx)(s.em,{children:"slow.pics"})," links that provide various visual comparisons between presets."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"The \u201cfull\u201d links offer comparisons across the entire quality range for each source."}),"\n",(0,i.jsx)(s.li,{children:"The HQ (High Quality), MQ (Medium Quality), and LQ (Low Quality) links showcase more targeted comparisons. These have been carefully handcrafted to be as size-normalized as possible, given the available encodes. We want to be focusing on encodes with minimal bitrate deviation for a fair comparison."}),"\n"]}),"\n",(0,i.jsx)(s.p,{children:"Feel free to double-check the bitrate of each frame or scene to make a more informed observation, keeping the size difference in mind when comparing the encodes."}),"\n",(0,i.jsx)(s.p,{children:'Use the arrow keys and numpad to navigate between screenshots. Alternatively, you can click on "Slider comparison" and select two sources if you prefer comparing this way.'}),"\n",(0,i.jsx)(s.p,{children:"Without further ado, let's start with the first comparisons!"}),"\n",(0,i.jsx)(s.h2,{id:"presets-comparisons--1---12",children:"Presets comparisons (-1 -> 12)"}),"\n",(0,i.jsx)(s.p,{children:(0,i.jsxs)(s.strong,{children:["In the following graphs, you may find comparisons between all SVT-AV1 presets, ranging from the slowest ",(0,i.jsx)(s.code,{children:"--preset -1"})," to the fastest ",(0,i.jsx)(s.code,{children:"--preset 12"}),"."]})}),"\n",(0,i.jsxs)(s.blockquote,{children:["\n",(0,i.jsxs)(s.p,{children:["Just like in ",(0,i.jsx)(s.strong,{children:"v2.1.x"}),", preset 6 and 13 do not exist in ",(0,i.jsx)(s.strong,{children:"v2.2.x"})," and are instead mapped to preset 7 and 12 respectively."]}),"\n"]}),"\n",(0,i.jsx)(s.h3,{id:"efficiency",children:"Efficiency"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"First of all, the complete efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_xpsnr.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/full/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"You may notice something odd going on with the Avatar results using XPSNR. I have tried to understand the cause, without success. For the remainder of this blog post, the Avatar XPSNR results will be omitted. I will continue investigating and aim to have a workaround in place for next time."}),"\n",(0,i.jsx)(s.p,{children:"Anyway, this graph may be impressive, but difficult to read. So let's analyse different quality targets."}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:'The same graphs but focusing on the "high quality" range (CRF10 -> 22):'}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/hq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:'Same, but now focusing on the "medium quality" range (CRF24 -> 36):'}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/mq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:'And lastly, focusing on the "low quality" range (CRF38 -> 50):'}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/lq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:["If we now focus on ",(0,i.jsx)(s.strong,{children:"presets 4"}),' and below, where it\'s more difficult to discern the differences between presets, we get this at "high quality":']}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/hq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:'This at "medium quality":'}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/mq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:'And the following at "low quality":'}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/mrto4/lq/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.h3,{id:"speed",children:"Speed"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.strong,{children:"Let's now compare the speed of all presets:"})}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/speed/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_speed.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/speed/v2-2-1_SVT-1_ducks_take_off_720p50_speed.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/speed/v2-2-1_SVT-1_fallout_4_1080p60_speed.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/speed/v2-2-1_SVT-1_minecraft_1080p60_speed.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/speed/v2-2-1_SVT-1_SolLevante_2160p24_speed.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/speed/v2-2-1_SVT-1_Suzume_trailer2_808p24_speed.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/speed/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_speed.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"Unusable, right?"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Then, here is what it looks like with a logarithmic scale:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/speedlog/v2-2-1_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_speed_log.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/speedlog/v2-2-1_SVT-1_ducks_take_off_720p50_speed_log.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/speedlog/v2-2-1_SVT-1_fallout_4_1080p60_speed_log.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/speedlog/v2-2-1_SVT-1_minecraft_1080p60_speed_log.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/speedlog/v2-2-1_SVT-1_SolLevante_2160p24_speed_log.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/speedlog/v2-2-1_SVT-1_Suzume_trailer2_808p24_speed_log.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.2.x-only/allpresets/speedlog/v2-2-1_SVT-1_TheMandalorian_trailer2_800p24_speed_log.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.h3,{id:"interpretation",children:"Interpretation"}),"\n",(0,i.jsxs)(s.p,{children:["It appears as if once again ",(0,i.jsx)(s.strong,{children:"preset 2"})," through ",(0,i.jsx)(s.strong,{children:"preset 4"})," remain the most balanced presets all-around in an efficient encoding scenario, with ",(0,i.jsx)(s.strong,{children:"preset 3"})," not offering much improvements over ",(0,i.jsx)(s.strong,{children:"preset 4"})," in average scores but nicely improving on consistency instead, and ",(0,i.jsx)(s.strong,{children:"preset 2"})," offering a nice efficiency and consistency uplift on top."]}),"\n",(0,i.jsxs)(s.p,{children:["In this release again, the quality gap between ",(0,i.jsx)(s.strong,{children:"preset 2"})," and ",(0,i.jsx)(s.strong,{children:"preset 1"})," is pretty narrow, and the speed penalty from ",(0,i.jsx)(s.strong,{children:"preset 1"})," onward continuously increases, ending up close to ~2x. In comparison, the penalty of going from ",(0,i.jsx)(s.strong,{children:"preset 3"})," to ",(0,i.jsx)(s.strong,{children:"preset 2"})," is closer to ~1.5x. As such, using ",(0,i.jsx)(s.strong,{children:"preset 1"})," is entering placebo territory and it is usually not recommended to waste precious encoding resources on ",(0,i.jsx)(s.strong,{children:"preset 0"})," and ",(0,i.jsx)(s.strong,{children:"preset -1"}),". This especially applies at medium to high quality, though at extremely low quality targets, like the CRF40-50 range, we can still see appreciable gains from these placebo presets in some clips."]}),"\n",(0,i.jsxs)(s.p,{children:["As for the faster presets, ",(0,i.jsx)(s.strong,{children:"presets 5 to 10"})," are usually grouped on the graphs focusing on average scores and the ones focusing on consistency. They tend to stand apart from their slower counterparts by just a bit. Though ",(0,i.jsx)(s.strong,{children:"preset 10"})," can be worryingly close to ",(0,i.jsx)(s.strong,{children:"preset 11"})," on some occasions. They are all viable for your real-time needs. The rule is the same as usual: ",(0,i.jsx)(s.strong,{children:"go the slowest you can bear that still achieves your goal!"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Presets 11 and 12"})," are especially inefficient and inconsistent, and to be avoided at all costs. If possible, forget they even exist, as it's probably better to use a comparably fast (or faster) competing codec. They could still be of use in a convex-hull scenario, but in the case of realtime transcoding, you will be better off with some hardware solution like the ones found in RTX 4000 or Arc GPUs."]}),"\n",(0,i.jsx)(s.h3,{id:"tldr",children:"TLDR"}),"\n",(0,i.jsxs)(s.p,{children:["The same conclusions as the previous blog posts can be made:\n",(0,i.jsxs)(s.strong,{children:["clear quality gains can be observed as we decrease presets, until ",(0,i.jsx)(s.strong,{children:"preset 2"}),", however the effectiveness of dropping presets is noticeably less and less important as quality is increased."]})]}),"\n",(0,i.jsx)(s.h2,{id:"svt-av1-v21x-vs-v22x-presets-comparisons",children:"SVT-AV1 v2.1.x vs v2.2.x presets comparisons:"}),"\n",(0,i.jsx)(s.p,{children:"In this section, we\u2019ll examine the efficiency and speed differences across presets when upgrading from SVT-AV1 2.1.x to 2.2.x. This comparison should bring a new level of nuance to our results, highlighting both incremental improvements and any notable shifts in performance."}),"\n",(0,i.jsxs)(s.p,{children:["SVT-AV1 ",(0,i.jsx)(s.strong,{children:"v2.1.x"})," brought some nice improvements over ",(0,i.jsx)(s.strong,{children:"v2.0.0"}),", but does ",(0,i.jsx)(s.strong,{children:"v2.2.x"})," bring appreciable improvements in the presets trade-offs this time around as well? Let's find out!"]}),"\n",(0,i.jsxs)(s.h3,{id:"preset--1-v21x-vs-v22x",children:[(0,i.jsx)(s.code,{children:"preset -1"}),": v2.1.x vs v2.2.x"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.strong,{children:'Let\'s start things off with the battle of the placebos, with the Compression efficiency & consistency at "high to medium-ish quality" (CRF10 -> 30):'})}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT-1_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:'Along with the Compression efficiency & consistency at "medium-ish to low quality" (CRF34 -> 50):'}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT-1_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"Basically no changes at all, except a slight regression on Minecraft."}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"What about their speeds though?:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT-1_AvatarTheWayOfWater_Trailer3_804p24_speed.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT-1_ducks_take_off_720p50_speed.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT-1_fallout_4_1080p60_speed.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT-1_minecraft_1080p60_speed.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT-1_SolLevante_2160p24_speed.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT-1_Suzume_trailer2_808p24_speed.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT-1_TheMandalorian_trailer2_800p24_speed.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Well ",(0,i.jsx)(s.strong,{children:"preset -1"})," basically became 15 to 25% faster, not bad at all!"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Preset -1 visual comparisons:"}),"\n"]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/LdIsYSua",children:"Avatar (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/19Oi8pWw",children:"Avatar (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/4Ir6SG5S",children:"Avatar (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/BpxD7oZd",children:"Ducks (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/qBdzKUFm",children:"Ducks (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/XFaep0lc",children:"Ducks (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/EOIoOoAQ",children:"Fallout (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/lPg9yLv9",children:"Fallout (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/FquLoNSq",children:"Fallout (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/XRHmsQOw",children:"Minecraft (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/ZCzJfBUC",children:"Minecraft (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/P0VLDoMT",children:"Minecraft (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/AQC1xzLS",children:"Sol Levante (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/BCVbL7w2",children:"Sol Levante (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/UwSQfopm",children:"Sol Levante (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/Ab6bkcpS",children:"Suzume (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/W9KlRAts",children:"Suzume (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/6yHhAeM5",children:"Suzume (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/BAF89tjA",children:"The Mandalorian (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/DkkK3GYV",children:"The Mandalorian (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/xmZmIEar",children:"The Mandalorian (LQ)"})]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-0-v21x-vs-v22x",children:[(0,i.jsx)(s.code,{children:"preset 0"}),": v2.1.x vs v2.2.x"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, high quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT0_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, medium quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT0_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, low quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT0_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Efficiency wise, this new ",(0,i.jsx)(s.strong,{children:"preset 0"})," is close to unchanged from the old ",(0,i.jsx)(s.strong,{children:"preset 0"}),", but its consistency improved slightly in a few clips at high quality and decreased in one clip at low quality."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT0_AvatarTheWayOfWater_Trailer3_804p24_speed.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT0_ducks_take_off_720p50_speed.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT0_fallout_4_1080p60_speed.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT0_minecraft_1080p60_speed.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT0_SolLevante_2160p24_speed.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT0_Suzume_trailer2_808p24_speed.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT0_TheMandalorian_trailer2_800p24_speed.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Preset 0"}),"'s speed sees an improvement of about 20% at best. Overall, ",(0,i.jsx)(s.strong,{children:"preset 0"})," got a proper upgrade!"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Preset 0 visual comparisons:"}),"\n"]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/7n5bAB2d",children:"Avatar (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/AHmNT8Pw",children:"Avatar (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/VC6lZr6D",children:"Avatar (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/97SAuLaO",children:"Avatar (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/m9iPnqqW",children:"Ducks (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/gBXawmpH",children:"Ducks (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/7dRVJzXD",children:"Ducks (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/qshRSgnZ",children:"Ducks (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/aq9eTZf5",children:"Fallout (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/xu99HM0j",children:"Fallout (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/eC0gzO7y",children:"Fallout (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/pB9Ps3a6",children:"Fallout (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/aWbIxmgr",children:"Minecraft (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/3jVGagWZ",children:"Minecraft (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/MlYl7i4e",children:"Minecraft (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/7MImyYc0",children:"Minecraft (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/SmDGEAPx",children:"Sol Levante (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/ZiCgjlxE",children:"Sol Levante (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/4GbaSzv6",children:"Sol Levante (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/EPTFWHQI",children:"Sol Levante (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/oVZqCWsl",children:"Suzume (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/LqadqVGG",children:"Suzume (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/TnD6CAyF",children:"Suzume (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/CDuu3SOK",children:"Suzume (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/x8Sot0wg",children:"The Mandalorian (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/idbPz3uh",children:"The Mandalorian (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/OpFzXtjr",children:"The Mandalorian (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/3d8gpuoo",children:"The Mandalorian (LQ)"})]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-1-v21x-vs-v22x",children:[(0,i.jsx)(s.code,{children:"preset 1"}),": v2.1.x vs v2.2.x"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, high quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT1_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, medium quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT1_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, low quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT1_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Preset 1"})," is mostly unchanged but sees another slight regression in Minecraft at high quality."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT1_AvatarTheWayOfWater_Trailer3_804p24_speed.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT1_ducks_take_off_720p50_speed.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT1_fallout_4_1080p60_speed.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT1_minecraft_1080p60_speed.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT1_SolLevante_2160p24_speed.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT1_Suzume_trailer2_808p24_speed.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT1_TheMandalorian_trailer2_800p24_speed.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Depending on the clip, speed is mostly unchanged or ever so slighty improved. ",(0,i.jsx)(s.strong,{children:"Preset 1"})," is a bit stagnant this release."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Preset 1 visual comparisons:"}),"\n"]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/BnOX37oJ",children:"Avatar (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/bWjBtTyR",children:"Avatar (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/6UQKyNac",children:"Avatar (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/NpyxU3uF",children:"Avatar (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/KVX4piAj",children:"Ducks (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/EsEpbKVY",children:"Ducks (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/8AxTTvKw",children:"Ducks (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/ZgW8715d",children:"Ducks (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/xQprIMbB",children:"Fallout (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/qRvBez7k",children:"Fallout (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/taXnNGUx",children:"Fallout (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/s6fbIqvr",children:"Fallout (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/cE86n2Gb",children:"Minecraft (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/eOyUxHhq",children:"Minecraft (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/tKPYsd9K",children:"Minecraft (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/evfzJDjc",children:"Minecraft (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/BSzecR9N",children:"Sol Levante (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/mWIoU45b",children:"Sol Levante (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/geYXLoIY",children:"Sol Levante (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/QzSjaYXF",children:"Sol Levante (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/pBVidgiB",children:"Suzume (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/5KtTXd3q",children:"Suzume (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/lb0yMDhZ",children:"Suzume (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/TipcRRJr",children:"Suzume (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/4ouGFV9s",children:"The Mandalorian (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/oxPNsHdU",children:"The Mandalorian (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/EPju5ULC",children:"The Mandalorian (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/e58LmgFm",children:"The Mandalorian (LQ)"})]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-2-v21x-vs-v22x",children:[(0,i.jsx)(s.code,{children:"preset 2"}),": v2.1.x vs v2.2.x"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, high quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT2_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, medium quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT2_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, low quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT2_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Preset 2"}),"'s efficiency has regressed at high quality on some clips, improved in some and stayed the same in others. Except in one clip, consistency seems to have improved all around. At low to medium quality targets, efficiency is mostly unchanged, same for consistency. Not exactly noteworthy."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT2_AvatarTheWayOfWater_Trailer3_804p24_speed.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT2_ducks_take_off_720p50_speed.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT2_fallout_4_1080p60_speed.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT2_minecraft_1080p60_speed.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT2_SolLevante_2160p24_speed.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT2_Suzume_trailer2_808p24_speed.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT2_TheMandalorian_trailer2_800p24_speed.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"Speed was improved by about 10-20%. Not a bad showcase, for sure."}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Preset 2 visual comparisons:"}),"\n"]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/CJg3dsFg",children:"Avatar (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/71wpH5eB",children:"Avatar (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/AN0syhNv",children:"Avatar (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/NRocyEay",children:"Avatar (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/NyGfMRpQ",children:"Ducks (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/OAqs5b8k",children:"Ducks (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/tQSF50Ro",children:"Ducks (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/gJjm3BGl",children:"Ducks (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/snQuTi1f",children:"Fallout (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/0rLG3TUT",children:"Fallout (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/MMX6DgNz",children:"Fallout (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/lwoIkLfm",children:"Fallout (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/5OYsrhGY",children:"Minecraft (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/kCwbA7Ir",children:"Minecraft (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/1nnyrvjD",children:"Minecraft (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/F1RTfQf7",children:"Minecraft (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/xduJGoTU",children:"Sol Levante (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/8SdKLegQ",children:"Sol Levante (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/uHNR7DNz",children:"Sol Levante (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/wgZgH7w6",children:"Sol Levante (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/zC4AEMLt",children:"Suzume (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/kGip9wuY",children:"Suzume (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/aoQ0m9ms",children:"Suzume (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/7ZMT3inc",children:"Suzume (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/8BKkJ4du",children:"The Mandalorian (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/XQeD7vfY",children:"The Mandalorian (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/6rQMASQR",children:"The Mandalorian (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/Jl2Fh5wE",children:"The Mandalorian (LQ)"})]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-3-v21x-vs-v22x",children:[(0,i.jsx)(s.code,{children:"preset 3"}),": v2.1.x vs v2.2.x"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, high quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT3_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, medium quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT3_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, low quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT3_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"Practically, it's a wash."}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT3_AvatarTheWayOfWater_Trailer3_804p24_speed.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT3_ducks_take_off_720p50_speed.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT3_fallout_4_1080p60_speed.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT3_minecraft_1080p60_speed.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT3_SolLevante_2160p24_speed.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT3_Suzume_trailer2_808p24_speed.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT3_TheMandalorian_trailer2_800p24_speed.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Still, ",(0,i.jsx)(s.strong,{children:"preset 3"})," got slightly faster, I'm happy to report this is a speedup!"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Preset 3 visual comparisons:"}),"\n"]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/Vql4MJWQ",children:"Avatar (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/Iuqp0Zbz",children:"Avatar (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/MuTOEHE9",children:"Avatar (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/poiDDJRQ",children:"Avatar (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/mqWOgsYF",children:"Ducks (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/16L6HyaH",children:"Ducks (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/KaoPy7ae",children:"Ducks (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/0L84OWnI",children:"Ducks (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/JuXAjSY6",children:"Fallout (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/mR5rJfsU",children:"Fallout (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/Zpy7Hzds",children:"Fallout (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/GeQrpfhp",children:"Fallout (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/rBCbaJkx",children:"Minecraft (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/AJHQ4KNL",children:"Minecraft (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/MYLA8KPH",children:"Minecraft (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/aEMnRk7D",children:"Minecraft (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/F7rmPiaW",children:"Sol Levante (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/PYO4K4sy",children:"Sol Levante (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/viWYsgX7",children:"Sol Levante (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/4NBaUoEX",children:"Sol Levante (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/d15XbowQ",children:"Suzume (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/eS6EQKng",children:"Suzume (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/IJtLW35Z",children:"Suzume (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/zf352iox",children:"Suzume (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/UrAekqg6",children:"The Mandalorian (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/WWgygRS4",children:"The Mandalorian (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/ry5sPqmB",children:"The Mandalorian (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/6wI4wexZ",children:"The Mandalorian (LQ)"})]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-4-v21x-vs-v22x",children:[(0,i.jsx)(s.code,{children:"preset 4"}),": v2.1.x vs v2.2.x"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, high quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT4_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, medium quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT4_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, low quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT4_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Preset 4"})," sees a consistent though small improvement in average scores and standard deviation accross the entire quality range on basically all clips."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT4_AvatarTheWayOfWater_Trailer3_804p24_speed.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT4_ducks_take_off_720p50_speed.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT4_fallout_4_1080p60_speed.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT4_minecraft_1080p60_speed.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT4_SolLevante_2160p24_speed.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT4_Suzume_trailer2_808p24_speed.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT4_TheMandalorian_trailer2_800p24_speed.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Unfortunately, it got slower as a result. If you remember, ",(0,i.jsx)(s.strong,{children:"v2.1.0"})," did the exact contrary over ",(0,i.jsx)(s.strong,{children:"v2.0.0"}),", I wonder if ",(0,i.jsx)(s.strong,{children:"preset 4"})," simply took back the place it previously had..."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Preset 4 visual comparisons:"}),"\n"]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/ArdO4K7R",children:"Avatar (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/88ikqaZn",children:"Avatar (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/rM6LRBg0",children:"Avatar (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/ofmHWCkv",children:"Avatar (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/HVkqo5G3",children:"Ducks (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/w44DNiqe",children:"Ducks (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/GlRLCaBt",children:"Ducks (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/Lkzi1VBU",children:"Ducks (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/44jtBEqw",children:"Fallout (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/G9YPifBb",children:"Fallout (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/86m4exaw",children:"Fallout (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/m4KHBihZ",children:"Fallout (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/n9OP2sht",children:"Minecraft (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/JohJ3MzJ",children:"Minecraft (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/e6b8R24h",children:"Minecraft (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/xNwNlmAG",children:"Minecraft (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/vB7ndGZI",children:"Sol Levante (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/R5uENbD5",children:"Sol Levante (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/i7eV72sl",children:"Sol Levante (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/zUMYarNf",children:"Sol Levante (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/rgmuB5xB",children:"Suzume (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/y9rxWVre",children:"Suzume (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/4GhRL8gZ",children:"Suzume (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/F3Hq8V9z",children:"Suzume (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/3BAR5P80",children:"The Mandalorian (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/s2xzApJd",children:"The Mandalorian (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/Ihjks1JO",children:"The Mandalorian (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/JjGKUO1r",children:"The Mandalorian (LQ)"})]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-5-v21x-vs-v22x",children:[(0,i.jsx)(s.code,{children:"preset 5"}),": v2.1.x vs v2.2.x"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, high quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT5_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, medium quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT5_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, low quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT5_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Both metrics say ",(0,i.jsx)(s.strong,{children:"preset 5"})," regressed slightly to moderately, though surprisingly its consistency is basically unchanged."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT5_AvatarTheWayOfWater_Trailer3_804p24_speed.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT5_ducks_take_off_720p50_speed.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT5_fallout_4_1080p60_speed.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT5_minecraft_1080p60_speed.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT5_SolLevante_2160p24_speed.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT5_Suzume_trailer2_808p24_speed.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT5_TheMandalorian_trailer2_800p24_speed.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"The result of this regression is an impressive speedup of up to 25%."}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Preset 5 visual comparisons:"}),"\n"]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/Lc8HjJBK",children:"Avatar (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/r3gJkCv3",children:"Avatar (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/k2TwNLHN",children:"Avatar (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/cMlNo17a",children:"Avatar (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/X4EZFJcM",children:"Ducks (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/zKLphp19",children:"Ducks (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/dYs1snV3",children:"Ducks (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/JFtne5WV",children:"Ducks (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/9ye1q9Rm",children:"Fallout (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/zhEuOjRc",children:"Fallout (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/YmZ3aRLO",children:"Fallout (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/9ye1q9Rm",children:"Fallout (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/kyjcJWxt",children:"Minecraft (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/UTWgYc3P",children:"Minecraft (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/FtOxX3RH",children:"Minecraft (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/jNyqLPgP",children:"Minecraft (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/ipyfREjA",children:"Sol Levante (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/73V8CGKk",children:"Sol Levante (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/z8P9UokS",children:"Sol Levante (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/OPwerF86",children:"Sol Levante (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/xfsYGM5C",children:"Suzume (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/dL2J923D",children:"Suzume (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/OhZNMzjx",children:"Suzume (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/XFCnEebJ",children:"Suzume (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/xrO227rQ",children:"The Mandalorian (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/m7Yky6EK",children:"The Mandalorian (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/pN0cH6Yn",children:"The Mandalorian (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/vB9zK9iz",children:"The Mandalorian (LQ)"})]}),"\n",(0,i.jsx)(s.h3,{id:"preset-6-v21x-vs-v22x",children:(0,i.jsxs)(s.del,{children:[(0,i.jsx)(s.code,{children:"preset 6"}),": v2.1.x vs v2.2.x"]})}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Preset 6"})," is mapped to ",(0,i.jsx)(s.strong,{children:"preset 7"})," in ",(0,i.jsx)(s.strong,{children:"v2.2.x"}),"."]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-7-v21x-vs-v22x",children:[(0,i.jsx)(s.code,{children:"preset 7"}),": v2.1.x vs v2.2.x"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, high quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT7_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, medium quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT7_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, low quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT7_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Preset 7"})," is close to unchanged in ",(0,i.jsx)(s.strong,{children:"v2.2.x"}),"."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT7_AvatarTheWayOfWater_Trailer3_804p24_speed.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT7_ducks_take_off_720p50_speed.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT7_fallout_4_1080p60_speed.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT7_minecraft_1080p60_speed.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT7_SolLevante_2160p24_speed.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT7_Suzume_trailer2_808p24_speed.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT7_TheMandalorian_trailer2_800p24_speed.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"It still got some slight to moderate speedups though, which can be appreciated."}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Preset 7 visual comparisons:"}),"\n"]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/YtvMG9X6",children:"Avatar (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/P0gF7nbQ",children:"Avatar (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/syT6uiVt",children:"Avatar (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/zkkv1ePp",children:"Avatar (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/pyVQmAWj",children:"Ducks (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/eXSNnqV7",children:"Ducks (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/ja7d0sFU",children:"Ducks (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/JCTFfcMu",children:"Ducks (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/S6SbCW8x",children:"Fallout (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/bWCLQWwV",children:"Fallout (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/hvauusst",children:"Fallout (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/04LVSbGD",children:"Fallout (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/mh8VUfrO",children:"Minecraft (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/P0pIx6XP",children:"Minecraft (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/vnrXVajs",children:"Minecraft (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/8WKQdw2N",children:"Minecraft (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/kH9LcEzG",children:"Sol Levante (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/1DWCNq2B",children:"Sol Levante (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/clxjB7Uw",children:"Sol Levante (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/52wLF7NR",children:"Sol Levante (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/3VlVk3O9",children:"Suzume (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/FKel5bhI",children:"Suzume (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/XXiyyCNN",children:"Suzume (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/rrBoua68",children:"Suzume (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/unxuKHEK",children:"The Mandalorian (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/GMXnxSdA",children:"The Mandalorian (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/v8wSN90W",children:"The Mandalorian (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/fswh5kCT",children:"The Mandalorian (LQ)"})]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-8-v21x-vs-v22x",children:[(0,i.jsx)(s.code,{children:"preset 8"}),": v2.1.x vs v2.2.x"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, high quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT8_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, medium quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT8_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, low quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT8_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["The efficiency and consistency of ",(0,i.jsx)(s.strong,{children:"preset 8"})," has improved at high quality."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT8_AvatarTheWayOfWater_Trailer3_804p24_speed.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT8_ducks_take_off_720p50_speed.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT8_fallout_4_1080p60_speed.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT8_minecraft_1080p60_speed.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT8_SolLevante_2160p24_speed.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT8_Suzume_trailer2_808p24_speed.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT8_TheMandalorian_trailer2_800p24_speed.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"And we can observe a speed increase of around 10%. Some crazy speed deviations can be noticed in Sol Levante."}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Preset 8 visual comparisons:"}),"\n"]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/8tKOAvGN",children:"Avatar (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/YLWgqmxU",children:"Avatar (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/pDg4gLry",children:"Avatar (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/ADFSsXmP",children:"Avatar (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/ug0TVcoF",children:"Ducks (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/WiDmtcVZ",children:"Ducks (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/ERVfuYHH",children:"Ducks (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/I0N97rQw",children:"Ducks (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/MqVzmFIi",children:"Fallout (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/jUoB0PGo",children:"Fallout (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/hXGIfwVj",children:"Fallout (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/QUy3iX2H",children:"Fallout (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/frkuJR97",children:"Minecraft (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/GayEkyrn",children:"Minecraft (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/S36Ha8LP",children:"Minecraft (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/lxoYsv8k",children:"Minecraft (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/YupMFGeu",children:"Sol Levante (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/evfWqxZ9",children:"Sol Levante (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/Juh027Eq",children:"Sol Levante (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/ETPf9ppU",children:"Sol Levante (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/oeFUWMHd",children:"Suzume (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/01vzYfnq",children:"Suzume (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/BIL4g7zk",children:"Suzume (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/boxyyeZN",children:"Suzume (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/57M6RHM0",children:"The Mandalorian (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/8WJcnZfU",children:"The Mandalorian (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/M7q5PYz8",children:"The Mandalorian (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/ctoke6p1",children:"The Mandalorian (LQ)"})]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-9-v21x-vs-v22x",children:[(0,i.jsx)(s.code,{children:"preset 9"}),": v2.1.x vs v2.2.x"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, high quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT9_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, medium quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT9_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, low quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT9_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"Efficiency and consistency stayed mostly the same."}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT9_AvatarTheWayOfWater_Trailer3_804p24_speed.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT9_ducks_take_off_720p50_speed.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT9_fallout_4_1080p60_speed.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT9_minecraft_1080p60_speed.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT9_SolLevante_2160p24_speed.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT9_Suzume_trailer2_808p24_speed.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT9_TheMandalorian_trailer2_800p24_speed.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Speed improved by a few percents at most. ",(0,i.jsx)(s.strong,{children:"Preset 9"})," has stagnated over ",(0,i.jsx)(s.strong,{children:"v2.1.x"}),"."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Preset 9 visual comparisons:"}),"\n"]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/P3zZKVF0",children:"Avatar (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/sL4HPZLa",children:"Avatar (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/QOxyI9h0",children:"Avatar (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/RfLKIRjj",children:"Avatar (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/aj6SVcIZ",children:"Ducks (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/UpnejngN",children:"Ducks (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/KJRzl3FY",children:"Ducks (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/4mMq9sz3",children:"Ducks (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/vHqlIJBK",children:"Fallout (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/XHoe9Udp",children:"Fallout (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/tukibDud",children:"Fallout (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/cV57jRF9",children:"Fallout (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/XRT1OYnX",children:"Minecraft (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/HqtoRlvV",children:"Minecraft (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/Ml2rLjvO",children:"Minecraft (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/EGCsqcSl",children:"Minecraft (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/8URvlnba",children:"Sol Levante (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/jPFT5hMG",children:"Sol Levante (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/92EZO3U3",children:"Sol Levante (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/bWgcvUtj",children:"Sol Levante (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/yA2y0v92",children:"Suzume (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/pAPBbl7r",children:"Suzume (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/7hTvbMy1",children:"Suzume (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/arrDGAd9",children:"Suzume (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/KQHqkAVZ",children:"The Mandalorian (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/UzdN0rSC",children:"The Mandalorian (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/dxKpfcvs",children:"The Mandalorian (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/FPJAf74J",children:"The Mandalorian (LQ)"})]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-10-v21x-vs-v22x",children:[(0,i.jsx)(s.code,{children:"preset 10"}),": v2.1.x vs v2.2.x"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, high quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT10_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, medium quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT10_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, low quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT10_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Preset 10"})," received the most efficiency and consistency improvements out of all presets in this release. What will be the cost of such drastic change though?"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT10_AvatarTheWayOfWater_Trailer3_804p24_speed.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT10_ducks_take_off_720p50_speed.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT10_fallout_4_1080p60_speed.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT10_minecraft_1080p60_speed.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT10_SolLevante_2160p24_speed.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT10_Suzume_trailer2_808p24_speed.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT10_TheMandalorian_trailer2_800p24_speed.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Well, not that much all things considered! ",(0,i.jsx)(s.strong,{children:"Preset 10"}),"'s speed did decrease from barely anything to 20% in the most extreme situation, but its improvements well outshine its speed regression. Overall, ",(0,i.jsx)(s.strong,{children:"preset 11"})," went from borderline unusable to becoming an interesting new fast real-time preset. This is pretty huge in my opinion, as it offers a new kind of trade-off no other AV1 encoder or prior SVT-AV1 versions did."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Preset 10 visual comparisons:"}),"\n"]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/8GjtQQAm",children:"Avatar (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/FriwG6rw",children:"Avatar (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/vqau9jk1",children:"Avatar (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/WQTbcWvH",children:"Avatar (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/xYotraaP",children:"Ducks (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/HHlwCvwc",children:"Ducks (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/bgV6MoQz",children:"Ducks (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/bOAyMVUk",children:"Ducks (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/MrYTMHoQ",children:"Fallout (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/qL9xmCfI",children:"Fallout (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/dwdE0pWt",children:"Fallout (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/uo7Ztb5f",children:"Fallout (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/fICToF3E",children:"Minecraft (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/cGBhBsaS",children:"Minecraft (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/w1P4LAu5",children:"Minecraft (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/rNqRWd61",children:"Minecraft (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/UyMpDhx0",children:"Sol Levante (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/b0B7ndsZ",children:"Sol Levante (HQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/3H4ewpMI",children:"Sol Levante (MQ)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/wpCnz72u",children:"Sol Levante (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/ZYoFdtdS",children:"Suzume (full)"}),", ",(0,i.jsx)(s.a,{href:"https://slow.pics/c/L2z8yEd5",children:"Suzume (HQ)"}),", ",(0,i.jsx)(s.del,{children:"Suzume (MQ)"}),", ",(0,i.jsx)(s.del,{children:"Suzume (LQ)"})]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.a,{href:"https://slow.pics/c/NhYFWBzc",children:"The Mandalorian (full)"}),", ",(0,i.jsx)(s.del,{children:"The Mandalorian (HQ)"}),", ",(0,i.jsx)(s.del,{children:"The Mandalorian (MQ)"}),", ",(0,i.jsx)(s.del,{children:"The Mandalorian (LQ)"})]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-11-v21x-vs-v22x",children:[(0,i.jsx)(s.code,{children:"preset 11"}),": v2.1.x vs v2.2.x"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, high quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT11_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, medium quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT11_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, low quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT11_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["The new ",(0,i.jsx)(s.strong,{children:"preset 11"})," places itself between the old ",(0,i.jsx)(s.strong,{children:"preset 11"})," and the old ",(0,i.jsx)(s.strong,{children:"preset 12"})," efficiency and consistency wise."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT11_AvatarTheWayOfWater_Trailer3_804p24_speed.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT11_ducks_take_off_720p50_speed.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT11_fallout_4_1080p60_speed.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT11_minecraft_1080p60_speed.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT11_SolLevante_2160p24_speed.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT11_Suzume_trailer2_808p24_speed.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT11_TheMandalorian_trailer2_800p24_speed.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Unsurprisingly, its speed is also in-between the old ",(0,i.jsx)(s.strong,{children:"preset 11"})," and the old ",(0,i.jsx)(s.strong,{children:"preset 12"}),". I'm unsure this new trade-off helps in anything."]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-12-v21x-vs-v22x",children:[(0,i.jsx)(s.code,{children:"preset 12"}),": v2.1.x vs v2.2.x"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, high quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/hq/v2-1-2_SVT12_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, medium quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/mq/v2-1-2_SVT12_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Compression efficiency & consistency graphs, low quality range:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_AvatarTheWayOfWater_Trailer3_804p24_ssimu2.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_ducks_take_off_720p50_ssimu2.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_fallout_4_1080p60_ssimu2.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_minecraft_1080p60_ssimu2.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_SolLevante_2160p24_ssimu2.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_Suzume_trailer2_808p24_ssimu2.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_TheMandalorian_trailer2_800p24_ssimu2.webp",alt:"The Mandalorian Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_ducks_take_off_720p50_xpsnr.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_fallout_4_1080p60_xpsnr.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_minecraft_1080p60_xpsnr.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_SolLevante_2160p24_xpsnr.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_Suzume_trailer2_808p24_xpsnr.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_TheMandalorian_trailer2_800p24_xpsnr.webp",alt:"The Mandalorian Efficiency Graph"}]})},stddev:{label:"STD DEV",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_AvatarTheWayOfWater_Trailer3_804p24_ssimu2_std.webp",alt:"Avatar The Way Of Water Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_ducks_take_off_720p50_ssimu2_std.webp",alt:"Ducks Take Off Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_fallout_4_1080p60_ssimu2_std.webp",alt:"Fallout 4 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_minecraft_1080p60_ssimu2_std.webp",alt:"Minecraft Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_SolLevante_2160p24_ssimu2_std.webp",alt:"Sol Levante Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_Suzume_trailer2_808p24_ssimu2_std.webp",alt:"Suzume Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/lq/v2-1-2_SVT12_TheMandalorian_trailer2_800p24_ssimu2_std.webp",alt:"The Mandalorian Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Preset 12"})," is almost unchanged from the previous release."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT12_AvatarTheWayOfWater_Trailer3_804p24_speed.webp",alt:"Avatar The Way Of Water Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT12_ducks_take_off_720p50_speed.webp",alt:"Ducks Take Off Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT12_fallout_4_1080p60_speed.webp",alt:"Fallout 4 Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT12_minecraft_1080p60_speed.webp",alt:"Minecraft Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT12_SolLevante_2160p24_speed.webp",alt:"Sol Levante Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT12_Suzume_trailer2_808p24_speed.webp",alt:"Suzume Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.2.x-blogpost/2.1.xvs2.2.x/speed/v2-1-2_SVT12_TheMandalorian_trailer2_800p24_speed.webp",alt:"The Mandalorian Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Same speed wise. So, no improvements at all for the two fastest presets. They remain all around very bad performers. In hindsight, it doesn't matter that I couldn't upload the ",(0,i.jsx)(s.strong,{children:"preset 11 & 12"})," visual comparisons, because there is literally nothing to see."]}),"\n",(0,i.jsx)(s.h3,{id:"preset-13-v21x-vs-v22x",children:(0,i.jsxs)(s.del,{children:[(0,i.jsx)(s.code,{children:"preset 13"}),": v2.1.x vs v2.2.x"]})}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Preset 13"})," is mapped to ",(0,i.jsx)(s.strong,{children:"preset 12"})," in ",(0,i.jsx)(s.strong,{children:"v2.2.x"}),"."]}),"\n",(0,i.jsx)(s.h3,{id:"tldr-1",children:"TLDR"}),"\n",(0,i.jsxs)(s.p,{children:["With ",(0,i.jsx)(s.strong,{children:"v2.2.x"}),", we observed new efficiency/speed trade-offs for a good amount of presets.\nSome presets, like ",(0,i.jsx)(s.strong,{children:"-1"})," and ",(0,i.jsx)(s.strong,{children:"0"}),", received significant speed improvements at no efficiency cost. ",(0,i.jsx)(s.strong,{children:"Presets 3 and 7"})," received more reasonable speedups. ",(0,i.jsx)(s.strong,{children:"Presets 2, 8 and 11"})," have seen new trade-offs that are mostly beneficial. ",(0,i.jsx)(s.strong,{children:"Preset 10"})," was deeply revamped and replaces ",(0,i.jsx)(s.strong,{children:"preset 9"})," in my book as the fastest, still viable, real-time preset. ",(0,i.jsx)(s.strong,{children:"Preset 4"})," seems to have returned to the state it was in ",(0,i.jsx)(s.strong,{children:"v2.0.0"}),". On the other hand, ",(0,i.jsx)(s.strong,{children:"preset 5"})," seemed to have regressed slightly, and ",(0,i.jsx)(s.strong,{children:"presets 1, 9 and 12"})," are basically unchanged from ",(0,i.jsx)(s.strong,{children:"v2.1.x"}),"."]}),"\n",(0,i.jsx)(s.h2,{id:"conclusion",children:"Conclusion"}),"\n",(0,i.jsxs)(s.p,{children:["The release of SVT-AV1 ",(0,i.jsx)(s.strong,{children:"v2.2.x"})," brings some welcome speed improvements. ",(0,i.jsx)(s.strong,{children:"Presets 2 through 4"})," continue to lead in efficiency for AV1 encoding, delivering top-tier quality and compression. Meanwhile, ",(0,i.jsx)(s.strong,{children:"presets 5 through 10"})," offer solid alternatives for those who find ",(0,i.jsx)(s.strong,{children:"presets 2 through 4"})," too slow, balancing quality with noticeably faster encoding times."]}),"\n",(0,i.jsxs)(s.p,{children:["Hopefully, this comprehensive third deep dive has given you a helpful starting point for choosing settings when encoding with ",(0,i.jsx)(s.del,{children:"the latest"})," SVT-AV1(-PSY) v2.2.x."]}),"\n",(0,i.jsx)(s.h2,{id:"future",children:"Future"}),"\n",(0,i.jsxs)(s.p,{children:["Once more, this testing focused on establishing the new presets dynamics, however I haven't revisited the different SVT-AV1 parameters since ",(0,i.jsx)(s.strong,{children:"v1.8.0"}),". A few meaningful features have been added since, like variance boost, and with this overhauled methodology, the conclusion made in that blog post may be different now. I think it will be worth to revisit this in the future, maybe in the next blog post for ",(0,i.jsx)(s.strong,{children:"v2.3.0"}),"?\nYes, I'm fully aware I'm late because ",(0,i.jsx)(s.strong,{children:"v2.3.0"})," has already been out for two whole weeks. Even if the frontend of this blog post doesn't seem to have radically changed, my entire workflow has tremendously evolved since last time. It may have taken me since mid-August to manage to complete this blog post, but my efforts should allow me to produce a follow-up faster."]}),"\n",(0,i.jsxs)(s.p,{children:["I am conscious of this blog post's limitations. First of all, I observed some odd behaviors from XPSNR on certain clips which I haven't been able to pinpoint yet. It would also give me nonsensical standard deviation results, which is the reason why only the standard deviation in SSIMU2 scores was given. Second of all, SVT-AV1's own behavior starts to get messy when you approach the SSIMULACRA2 0 score, rendering all the data in that region pretty much useless. Plus, aggregating these metrics scores take forever, so I'm looking into ways to accelerate the process, for instance by offloading the work to my GPU using ",(0,i.jsx)(s.a,{href:"https://github.com/Gui-Yom/turbo-metrics",children:"turbo-metrics"}),". Also, I'm stuck between wanting to increase the amount of data points in each graphs to get more detailed results and having to keep everything readable. This time around I had to seperate each graph into three quality levels, but that's already too much for my liking. I will look into improving myself on the data presentation front. I feel like I have to streamline this formula to make it more digestible for everyone."]}),"\n",(0,i.jsxs)(s.p,{children:["Please, I'm open to ",(0,i.jsx)(s.strong,{children:"your"})," remarks and suggestions to improve on this blog post formula."]}),"\n",(0,i.jsx)(s.p,{children:"That said, here are my plans for future blog posts:"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:["a follow-up v2.3.0 article that also revisits the useful SVT-AV1 parameters. ",(0,i.jsx)(s.em,{children:(0,i.jsx)(s.strong,{children:"I'm planning for this to release before 2025."})})]}),"\n",(0,i.jsxs)(s.li,{children:["an article focused on giving you encoding tips and explaining common AV1 encoding knowlegde is still planned for ",(0,i.jsx)(s.em,{children:"someday"}),"."]}),"\n",(0,i.jsxs)(s.li,{children:["a ",(0,i.jsx)(s.em,{children:"future"})," article focused on observing the evolution of all software AV1 encoders since the beginning of their development, as well as comparisons with vpxenc, AVM (development ground for AV2) and VVenC."]}),"\n",(0,i.jsx)(s.li,{children:"and many more..."}),"\n"]}),"\n",(0,i.jsx)(s.p,{children:"Thanks for reading!"}),"\n",(0,i.jsx)(s.p,{children:(0,i.jsxs)(s.em,{children:["Support me by making a donation on ",(0,i.jsx)(s.a,{href:"https://ko-fi.com/nekotrix",children:"my Ko-Fi page"}),", as a reward for my efforts and to compensate for the electricity bills of two whole weeks of non-stop encoding."]})}),"\n"]})}function u(t={}){const{wrapper:s}={...(0,r.R)(),...t.components};return s?(0,i.jsx)(s,{...t,children:(0,i.jsx)(l,{...t})}):l(t)}},9332:(t,s,e)=>{e.d(s,{A:()=>a});const a=e.p+"assets/images/comp_showcase-3902fce14e72fc094b637b526525a24e.webp"},3788:t=>{t.exports=JSON.parse('{"permalink":"/blog/svt-av1-third-deep-dive","source":"@site/blog/2024-11-14-svt-av1-deep-dive3-v2-2-x.mdx","title":"Better late than never: SVT-AV1 v2.2.x Deep Dive","description":"How does SVT-AV1 2.2.x stack up against the encoder previous version?","date":"2024-11-14T00:00:00.000Z","tags":[{"inline":true,"label":"video","permalink":"/blog/tags/video"},{"inline":true,"label":"compression","permalink":"/blog/tags/compression"},{"inline":true,"label":"benchmarks","permalink":"/blog/tags/benchmarks"}],"readingTime":77.835,"hasTruncateMarker":true,"authors":[{"name":"Trix","title":"Encoder","url":"https://github.com/trixoniisama/","image_url":"https://avatars.githubusercontent.com/u/93526043","imageURL":"https://avatars.githubusercontent.com/u/93526043","socials":{},"key":null,"page":null}],"frontMatter":{"title":"Better late than never: SVT-AV1 v2.2.x Deep Dive","description":"How does SVT-AV1 2.2.x stack up against the encoder previous version?","slug":"svt-av1-third-deep-dive","authors":[{"name":"Trix","title":"Encoder","url":"https://github.com/trixoniisama/","image_url":"https://avatars.githubusercontent.com/u/93526043","imageURL":"https://avatars.githubusercontent.com/u/93526043"}],"tags":["video","compression","benchmarks"],"image":"/img/svt-2.2.x-testing-blog-image.webp","hide_table_of_contents":false},"unlisted":false,"nextItem":{"title":"Codec Wiki: One Year Later","permalink":"/blog/codec-wiki-one-year-later"}}')}}]); \ No newline at end of file diff --git a/assets/js/2fcb10cd.4dab5d96.js b/assets/js/2fcb10cd.4dab5d96.js new file mode 100644 index 000000000..e91ac6a36 --- /dev/null +++ b/assets/js/2fcb10cd.4dab5d96.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8158],{3034:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>d,contentTitle:()=>r,default:()=>u,frontMatter:()=>a,metadata:()=>o,toc:()=>c});const o=JSON.parse('{"id":"audio/intro","title":"Intro","description":"What is lossless audio? What is lossy audio? What is an audio codec? This entry serves as an intro to digital audio processing.","source":"@site/docs/audio/intro.mdx","sourceDirName":"audio","slug":"/audio/intro","permalink":"/docs/audio/intro","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/intro.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"Intro","description":"What is lossless audio? What is lossy audio? What is an audio codec? This entry serves as an intro to digital audio processing.","keywords":["audio codec","audio","codec","audio encoding","audio decoding","audio compression","audio quality","audio formats","audio file formats","audio file","audio file type","audio file extension","audio file format","audio file types","audio file formats"],"sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"High Dynamic Range","permalink":"/docs/introduction/high-dynamic-range"},"next":{"title":"AAC","permalink":"/docs/audio/AAC"}}');var n=s(4848),t=s(8453);const a={title:"Intro",description:"What is lossless audio? What is lossy audio? What is an audio codec? This entry serves as an intro to digital audio processing.",keywords:["audio codec","audio","codec","audio encoding","audio decoding","audio compression","audio quality","audio formats","audio file formats","audio file","audio file type","audio file extension","audio file format","audio file types","audio file formats"],sidebar_position:1},r="Introduction to Lossy & Lossless Audio Compression",d={},c=[{value:"Sampling & the Nyquist Frequency",id:"sampling--the-nyquist-frequency",level:2},{value:"Lossless Audio Compression",id:"lossless-audio-compression",level:2},{value:"Lossy Audio Compression",id:"lossy-audio-compression",level:2},{value:"Conclusion",id:"conclusion",level:2}];function l(e){const i={a:"a",admonition:"admonition",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"introduction-to-lossy--lossless-audio-compression",children:"Introduction to Lossy & Lossless Audio Compression"})}),"\n",(0,n.jsx)(i.admonition,{title:"Under Maintenance",type:"info",children:(0,n.jsx)(i.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,n.jsxs)(i.p,{children:["Digital audio is the representation of sound recorded in, or converted into, digital form. To understand digital audio, it's crucial to grasp some fundamental concepts, including ",(0,n.jsx)(i.strong,{children:"sampling"}),", ",(0,n.jsx)(i.strong,{children:"Nyquist Frequency"}),", and the ",(0,n.jsx)(i.strong,{children:"Nyquist-Shannon Sampling Theorem"}),"."]}),"\n",(0,n.jsx)(i.h2,{id:"sampling--the-nyquist-frequency",children:"Sampling & the Nyquist Frequency"}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"Sampling"})," is the process of converting a continuous, analog audio signal into a discrete digital signal by measuring the amplitude of the audio signal at uniform intervals. The frequency of this measurement is known as the ",(0,n.jsx)(i.em,{children:"sampling rate"}),", typically measured in samples per second, or Hertz (Hz). For example, audio CDs use a sampling rate of 44,100 Hz, which means the audio signal is sampled 44,100 times every second."]}),"\n",(0,n.jsxs)(i.p,{children:["To accurately represent a wave, you need at least two measurements per cycle; one to capture the peak of the wave, and one to capture the trough. If you sample less than twice per cycle, you can't distinguish between different frequencies; this is where the ",(0,n.jsx)(i.strong,{children:"Nyquist frequency"})," comes from. Named after Harry Nyquist, the ",(0,n.jsx)(i.strong,{children:"Nyquist frequency"})," is ",(0,n.jsx)(i.em,{children:"half of the sampling rate of a discrete signal processing system"}),". For a given sampling rate, the Nyquist frequency represents the highest frequency that can be accurately sampled without introducing errors such as aliasing. For example, with a sampling rate of 48,000 Hz, the Nyquist frequency is 24,000 Hz. Capturing frequencies above the Nyquist frequency for a given system can bring about ",(0,n.jsx)(i.strong,{children:"aliasing"})," artifacts. Aliasing occurs where high-frequency components appear as lower frequencies in the sampled signal, distorting the information."]}),"\n",(0,n.jsxs)(i.p,{children:["The ",(0,n.jsx)(i.strong,{children:"Nyquist-Shannon sampling theorem"})," states that to avoid aliasing, the sampling rate must be at least twice the highest frequency present in the signal. This theorem is crucial for ensuring that the digital representation of the audio signal retains all the information from the original analog signal without distortion."]}),"\n",(0,n.jsx)(i.h2,{id:"lossless-audio-compression",children:"Lossless Audio Compression"}),"\n",(0,n.jsx)(i.p,{children:"The main benefit of lossless compression is the preservation of audio quality, making it ideal for professional audio production, archiving, and situations where high fidelity is required. However, lossless files are significantly larger than their lossy counterparts, which can be a drawback for storage and (especially) streaming."}),"\n",(0,n.jsx)(i.admonition,{title:"Lossless Compression",type:"note",children:(0,n.jsxs)(i.p,{children:["If you would like to dive more deeply into the topic of lossless compression, you can check out the ",(0,n.jsx)(i.a,{href:"/docs/introduction/lossless",children:"Lossless Compression"})," entry in the Introduction section of the wiki."]})}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.a,{href:"/docs/audio/FLAC",children:"FLAC"}),", ",(0,n.jsx)(i.a,{href:"/docs/audio/WavPack",children:"WavPack"}),", & ",(0,n.jsx)(i.a,{href:"/docs/audio/ALAC",children:"ALAC"})," are examples of popular lossless audio codecs that you are likely to encounter in the wild."]}),"\n",(0,n.jsx)(i.h2,{id:"lossy-audio-compression",children:"Lossy Audio Compression"}),"\n",(0,n.jsx)(i.p,{children:"The primary advantage of lossy compression is the significant reduction in file size, making it ideal for streaming, portable devices, and situations where storage space is limited. However, the trade-off is a potential loss in audio quality, which may be noticeable in critical listening environments."}),"\n",(0,n.jsx)(i.admonition,{title:"Lossy Compression",type:"note",children:(0,n.jsxs)(i.p,{children:["If you would like to dive more deeply into the topic of lossy compression, you can check out the ",(0,n.jsx)(i.a,{href:"/docs/introduction/lossy",children:"Lossy Compression"})," entry in the Introduction section of the wiki."]})}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.a,{href:"/docs/audio/MP3",children:"MP3"}),", ",(0,n.jsx)(i.a,{href:"/docs/audio/AAC",children:"AAC"}),", ",(0,n.jsx)(i.a,{href:"/docs/audio/Vorbis",children:"Vorbis"}),", & ",(0,n.jsx)(i.a,{href:"/docs/audio/Opus",children:"Opus"})," are some examples of popular lossy audio codecs that you are likely to encounter in the wild."]}),"\n",(0,n.jsx)(i.h2,{id:"conclusion",children:"Conclusion"}),"\n",(0,n.jsx)(i.p,{children:"Understanding these baseline principles of digital audio processing is essential for informed reading when it comes to the rest of the Audio section of this wiki. We hope this page helped you grasp some of the fundamental concepts that underpin digital audio processing."})]})}function u(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,i,s)=>{s.d(i,{R:()=>a,x:()=>r});var o=s(6540);const n={},t=o.createContext(n);function a(e){const i=o.useContext(t);return o.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),o.createElement(t.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2fcb10cd.5be239c1.js b/assets/js/2fcb10cd.5be239c1.js deleted file mode 100644 index 7073a548f..000000000 --- a/assets/js/2fcb10cd.5be239c1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8158],{1162:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>d,contentTitle:()=>a,default:()=>u,frontMatter:()=>t,metadata:()=>r,toc:()=>c});var o=s(4848),n=s(8453);const t={title:"Intro",description:"What is lossless audio? What is lossy audio? What is an audio codec? This entry serves as an intro to digital audio processing.",keywords:["audio codec","audio","codec","audio encoding","audio decoding","audio compression","audio quality","audio formats","audio file formats","audio file","audio file type","audio file extension","audio file format","audio file types","audio file formats"],sidebar_position:1},a="Introduction to Lossy & Lossless Audio Compression",r={id:"audio/intro",title:"Intro",description:"What is lossless audio? What is lossy audio? What is an audio codec? This entry serves as an intro to digital audio processing.",source:"@site/docs/audio/intro.mdx",sourceDirName:"audio",slug:"/audio/intro",permalink:"/docs/audio/intro",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/intro.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"Intro",description:"What is lossless audio? What is lossy audio? What is an audio codec? This entry serves as an intro to digital audio processing.",keywords:["audio codec","audio","codec","audio encoding","audio decoding","audio compression","audio quality","audio formats","audio file formats","audio file","audio file type","audio file extension","audio file format","audio file types","audio file formats"],sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"High Dynamic Range",permalink:"/docs/introduction/high-dynamic-range"},next:{title:"AAC",permalink:"/docs/audio/AAC"}},d={},c=[{value:"Sampling & the Nyquist Frequency",id:"sampling--the-nyquist-frequency",level:2},{value:"Lossless Audio Compression",id:"lossless-audio-compression",level:2},{value:"Lossy Audio Compression",id:"lossy-audio-compression",level:2},{value:"Conclusion",id:"conclusion",level:2}];function l(e){const i={a:"a",admonition:"admonition",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.header,{children:(0,o.jsx)(i.h1,{id:"introduction-to-lossy--lossless-audio-compression",children:"Introduction to Lossy & Lossless Audio Compression"})}),"\n",(0,o.jsx)(i.admonition,{title:"Under Maintenance",type:"info",children:(0,o.jsx)(i.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,o.jsxs)(i.p,{children:["Digital audio is the representation of sound recorded in, or converted into, digital form. To understand digital audio, it's crucial to grasp some fundamental concepts, including ",(0,o.jsx)(i.strong,{children:"sampling"}),", ",(0,o.jsx)(i.strong,{children:"Nyquist Frequency"}),", and the ",(0,o.jsx)(i.strong,{children:"Nyquist-Shannon Sampling Theorem"}),"."]}),"\n",(0,o.jsx)(i.h2,{id:"sampling--the-nyquist-frequency",children:"Sampling & the Nyquist Frequency"}),"\n",(0,o.jsxs)(i.p,{children:[(0,o.jsx)(i.strong,{children:"Sampling"})," is the process of converting a continuous, analog audio signal into a discrete digital signal by measuring the amplitude of the audio signal at uniform intervals. The frequency of this measurement is known as the ",(0,o.jsx)(i.em,{children:"sampling rate"}),", typically measured in samples per second, or Hertz (Hz). For example, audio CDs use a sampling rate of 44,100 Hz, which means the audio signal is sampled 44,100 times every second."]}),"\n",(0,o.jsxs)(i.p,{children:["To accurately represent a wave, you need at least two measurements per cycle; one to capture the peak of the wave, and one to capture the trough. If you sample less than twice per cycle, you can't distinguish between different frequencies; this is where the ",(0,o.jsx)(i.strong,{children:"Nyquist frequency"})," comes from. Named after Harry Nyquist, the ",(0,o.jsx)(i.strong,{children:"Nyquist frequency"})," is ",(0,o.jsx)(i.em,{children:"half of the sampling rate of a discrete signal processing system"}),". For a given sampling rate, the Nyquist frequency represents the highest frequency that can be accurately sampled without introducing errors such as aliasing. For example, with a sampling rate of 48,000 Hz, the Nyquist frequency is 24,000 Hz. Capturing frequencies above the Nyquist frequency for a given system can bring about ",(0,o.jsx)(i.strong,{children:"aliasing"})," artifacts. Aliasing occurs where high-frequency components appear as lower frequencies in the sampled signal, distorting the information."]}),"\n",(0,o.jsxs)(i.p,{children:["The ",(0,o.jsx)(i.strong,{children:"Nyquist-Shannon sampling theorem"})," states that to avoid aliasing, the sampling rate must be at least twice the highest frequency present in the signal. This theorem is crucial for ensuring that the digital representation of the audio signal retains all the information from the original analog signal without distortion."]}),"\n",(0,o.jsx)(i.h2,{id:"lossless-audio-compression",children:"Lossless Audio Compression"}),"\n",(0,o.jsx)(i.p,{children:"The main benefit of lossless compression is the preservation of audio quality, making it ideal for professional audio production, archiving, and situations where high fidelity is required. However, lossless files are significantly larger than their lossy counterparts, which can be a drawback for storage and (especially) streaming."}),"\n",(0,o.jsx)(i.admonition,{title:"Lossless Compression",type:"note",children:(0,o.jsxs)(i.p,{children:["If you would like to dive more deeply into the topic of lossless compression, you can check out the ",(0,o.jsx)(i.a,{href:"/docs/introduction/lossless",children:"Lossless Compression"})," entry in the Introduction section of the wiki."]})}),"\n",(0,o.jsxs)(i.p,{children:[(0,o.jsx)(i.a,{href:"/docs/audio/FLAC",children:"FLAC"}),", ",(0,o.jsx)(i.a,{href:"/docs/audio/WavPack",children:"WavPack"}),", & ",(0,o.jsx)(i.a,{href:"/docs/audio/ALAC",children:"ALAC"})," are examples of popular lossless audio codecs that you are likely to encounter in the wild."]}),"\n",(0,o.jsx)(i.h2,{id:"lossy-audio-compression",children:"Lossy Audio Compression"}),"\n",(0,o.jsx)(i.p,{children:"The primary advantage of lossy compression is the significant reduction in file size, making it ideal for streaming, portable devices, and situations where storage space is limited. However, the trade-off is a potential loss in audio quality, which may be noticeable in critical listening environments."}),"\n",(0,o.jsx)(i.admonition,{title:"Lossy Compression",type:"note",children:(0,o.jsxs)(i.p,{children:["If you would like to dive more deeply into the topic of lossy compression, you can check out the ",(0,o.jsx)(i.a,{href:"/docs/introduction/lossy",children:"Lossy Compression"})," entry in the Introduction section of the wiki."]})}),"\n",(0,o.jsxs)(i.p,{children:[(0,o.jsx)(i.a,{href:"/docs/audio/MP3",children:"MP3"}),", ",(0,o.jsx)(i.a,{href:"/docs/audio/AAC",children:"AAC"}),", ",(0,o.jsx)(i.a,{href:"/docs/audio/Vorbis",children:"Vorbis"}),", & ",(0,o.jsx)(i.a,{href:"/docs/audio/Opus",children:"Opus"})," are some examples of popular lossy audio codecs that you are likely to encounter in the wild."]}),"\n",(0,o.jsx)(i.h2,{id:"conclusion",children:"Conclusion"}),"\n",(0,o.jsx)(i.p,{children:"Understanding these baseline principles of digital audio processing is essential for informed reading when it comes to the rest of the Audio section of this wiki. We hope this page helped you grasp some of the fundamental concepts that underpin digital audio processing."})]})}function u(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,i,s)=>{s.d(i,{R:()=>a,x:()=>r});var o=s(6540);const n={},t=o.createContext(n);function a(e){const i=o.useContext(t);return o.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),o.createElement(t.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/318608aa.25b04195.js b/assets/js/318608aa.25b04195.js deleted file mode 100644 index b09b2d3f1..000000000 --- a/assets/js/318608aa.25b04195.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6003],{3187:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>o,contentTitle:()=>l,default:()=>h,frontMatter:()=>r,metadata:()=>c,toc:()=>a});var t=i(4848),s=i(8453);i(1470),i(9365);const r={title:"vpxenc",sidebar_position:8},l="vpxenc",c={id:"encoders/vpxenc",title:"vpxenc",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/encoders/vpxenc.mdx",sourceDirName:"encoders",slug:"/encoders/vpxenc",permalink:"/docs/encoders/vpxenc",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/vpxenc.mdx",tags:[],version:"current",sidebarPosition:8,frontMatter:{title:"vpxenc",sidebar_position:8},sidebar:"tutorialSidebar",previous:{title:"Aurora1 AV1",permalink:"/docs/encoders/Aurora1"},next:{title:"SVT-VP9",permalink:"/docs/encoders/SVT-VP9"}},o={},a=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installing (Binary)",id:"installing-binary",level:2},{value:"Compiling (Windows/MacOS/Linux)",id:"compiling-windowsmacoslinux",level:2},{value:"Cloning",id:"cloning",level:3},{value:"./configure file",id:"configure-file",level:3},{value:"Other ./configure options",id:"other-configure-options",level:3},{value:"Running GNU make",id:"running-gnu-make",level:3},{value:"VP8",id:"vp8",level:2},{value:"VP9",id:"vp9",level:2},{value:"Encoding",id:"encoding",level:3}];function d(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"vpxenc",children:"vpxenc"})}),"\n",(0,t.jsx)(n.admonition,{title:"Under Maintenance",type:"info",children:(0,t.jsx)(n.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,t.jsxs)(n.p,{children:["vpxenc is part of the libvpx library for working with the ",(0,t.jsx)(n.a,{href:"/docs/video/VP9",children:"VP9"})," & ",(0,t.jsx)(n.a,{href:"/docs/video/VP8",children:"VP8"})," video codecs. It is capable of encoding & decoding both formats, where vpxenc is the multipurpose encoder. VP9 competes with ",(0,t.jsx)(n.a,{href:"/docs/video/HEVC",children:"HEVC"})," (h265) & ",(0,t.jsx)(n.a,{href:"/docs/video/AVC",children:"AVC"})," (h264) in coding efficiency, and has been superseded by ",(0,t.jsx)(n.a,{href:"/docs/video/AV1",children:"AV1"}),". VP8 competes with AVC."]}),"\n",(0,t.jsxs)(n.p,{children:["By default, vpxenc isn't as competitive as it could be, but even when used properly, most tests show that h265 offers slightly better quality per bit with efficient encoders like ",(0,t.jsx)(n.a,{href:"/docs/encoders/x265",children:"x265"}),"."]}),"\n",(0,t.jsx)(n.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,t.jsxs)(n.p,{children:["vpxenc is available in FFmpeg via ",(0,t.jsx)(n.code,{children:"libvpx"})," for ",(0,t.jsx)(n.strong,{children:"VP8"})," and ",(0,t.jsx)(n.code,{children:"libvpx-vp9"})," for ",(0,t.jsx)(n.strong,{children:"VP9"}),", to check if you have it, run ",(0,t.jsx)(n.code,{children:"ffmpeg -h encoder=libvpx"})," or ",(0,t.jsx)(n.code,{children:"ffmpeg -h encoder=libvpx-vp9"}),".\nNon-FFmpeg standard VP8/VP9 parameters are ",(0,t.jsx)(n.strong,{children:"not"})," supported."]}),"\n",(0,t.jsx)(n.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,t.jsx)(n.p,{children:"vpxenc supports the following color spaces:"}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.th,{children:"Format"}),(0,t.jsx)(n.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,t.jsx)(n.th,{children:"Supported Bit Depth(s)"})]})}),(0,t.jsxs)(n.tbody,{children:[(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV420P"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,t.jsx)(n.td,{children:"8-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUVA420P"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,t.jsx)(n.td,{children:"8-bit (Alpha Channel)"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV422P"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,t.jsx)(n.td,{children:"8-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV440P"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:0"}),(0,t.jsx)(n.td,{children:"8-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV444P"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,t.jsx)(n.td,{children:"8-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"GBRP"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,t.jsx)(n.td,{children:"8-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV420P10LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,t.jsx)(n.td,{children:"10-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV422P10LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,t.jsx)(n.td,{children:"10-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV440P10LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:0"}),(0,t.jsx)(n.td,{children:"10-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV444P10LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,t.jsx)(n.td,{children:"10-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"GBRP10LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,t.jsx)(n.td,{children:"10-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV420P12LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,t.jsx)(n.td,{children:"12-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV422P12LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,t.jsx)(n.td,{children:"12-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV440P12LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:0"}),(0,t.jsx)(n.td,{children:"12-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV444P12LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,t.jsx)(n.td,{children:"12-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"GBRP12LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,t.jsx)(n.td,{children:"12-bit"})]})]})]}),"\n",(0,t.jsx)(n.h2,{id:"installing-binary",children:"Installing (Binary)"}),"\n",(0,t.jsxs)(n.p,{children:["Windows builds are available on Lastrosade's ",(0,t.jsx)(n.a,{href:"https://jeremylee.sh/bins/",children:"website"})," and can be downloaded ",(0,t.jsx)(n.a,{href:"https://jeremylee.sh/bins/vpx.7z",children:"here"}),"."]}),"\n",(0,t.jsx)(n.p,{children:'For Linux and MacOS, it may be be available when searching "vpxenc" or "libvpx" in their respective package managers.'}),"\n",(0,t.jsx)(n.h2,{id:"compiling-windowsmacoslinux",children:"Compiling (Windows/MacOS/Linux)"}),"\n",(0,t.jsxs)(n.p,{children:["Windows users are recommended to compile via MinGW-W64 which comes with ",(0,t.jsx)(n.a,{href:"https://msys2.org/",children:"MSYS2"}),"."]}),"\n",(0,t.jsx)(n.p,{children:"nasm/yasm, and the GNU build tools (make, configure) are required for this operation."}),"\n",(0,t.jsx)(n.h3,{id:"cloning",children:"Cloning"}),"\n",(0,t.jsx)(n.p,{children:"First, cloning"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone https://chromium.googlesource.com/webm/libvpx\ncd libvpx\nmkdir libvpx_build && cd libvpx_build\n"})}),"\n",(0,t.jsx)(n.h3,{id:"configure-file",children:"./configure file"}),"\n",(0,t.jsx)(n.p,{children:"Now here comes the annoying part, the configure file have really bad defaults. So you will need to adjust them, here are some recommended options you should use:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'../configure --cpu=native --extra-cxxflags="-flto" --extra-cflags="-flto" --as=auto --enable-vp9-highbitdepth --enable-libyuv --enable-webm-io --enable-vp9 --enable-runtime-cpu-detect --enable-internal-stats --enable-postproc --enable-vp9-postproc --enable-static --disable-shared --enable-vp9-temporal-denoising --disable-unit-tests --disable-docs --enable-multithread\n'})}),"\n",(0,t.jsx)(n.p,{children:"Now let's break down what each of them do."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--cpu=native"}),"\nNative CPU optimizations."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:'--extra-cxxflags="-flto" --extra-cflags="-flto"'}),"\nMore CPU optimizations for faster encoding."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--as=auto"}),"\nSet the assembler to auto, so it can choose between ",(0,t.jsx)(n.code,{children:"yasm"})," and ",(0,t.jsx)(n.code,{children:"nasm"}),"."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-vp9-highbitdepth"}),"\nEnables high bit depth (>=10 bits) when encoding VP9."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-libyuv"}),"\nEnables YUV4MPEG input support (IMPORTANT), otherwise it will only accept RAW."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-webm-io"}),"\nEnables input and output support for WebM container."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-vp9"}),"\nEnables VP9 encoding support."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-runtime-cpu-detect"}),"\nEnables runtime CPU detection."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-internal-stats"}),"\nEnables internal statistics for the encoder for debug purposes."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-postproc"}),"\nEnables postprocessing stuff for better video quality."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-vp9-postproc"}),"\nEnables VP9-specific postprocessing stuff for better video quality."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-static"}),"\nEnables static builds."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--disable-shared"}),"\nDisables shared builds."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-vp9-temporal-denoising"}),"\nDisables spatial denoising for VP9 and enables temporal instead."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--disable-unit-tests"}),"\nDisables unit tests, unless you want to test the encoder as a developer. This should be disabled."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--disable-docs"}),"\nDisables documentation, as enabling this also requires doxygen."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-multithread"}),"\nEnables the usage of multiple CPU threads for encoding and decoding."]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"other-configure-options",children:"Other ./configure options"}),"\n",(0,t.jsx)(n.p,{children:"There are other options you may want use to either speed up compiliation or drop unwanted features."}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--disable-vp8 --disable-vp9-decoder --disable-vp8-decoder"}),"\nDisables VP8 encoding and ",(0,t.jsx)(n.code,{children:"vpxdec"})," (decoder) to be compiled."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-small"}),"\nPrioritizes smaller encoder binary size over encoding speed."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--target="}),"\nEnables target compilation for a specific operating system or CPU architecture. There's a lot of them. Here's an exhaustive list of all of them based on the configure file:"]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"arm64-android-gcc\narm64-darwin-gcc\narm64-darwin20-gcc\narm64-darwin21-gcc\narm64-darwin22-gcc\narm64-darwin23-gcc\narm64-linux-gcc\narm64-win64-gcc\narm64-win64-vs15\narm64-win64-vs16\narm64-win64-vs16-clangcl\narm64-win64-vs17\narm64-win64-vs17-clangcl\narmv7-android-gcc\narmv7-darwin-gcc\narmv7-linux-rvct\narmv7-linux-gcc\narmv7-none-rvct\narmv7-win32-gcc\narmv7-win32-vs14\narmv7-win32-vs15\narmv7-win32-vs16\narmv7-win32-vs17\narmv7s-darwin-gcc\narmv8-linux-gcc\nloongarch32-linux-gcc\nloongarch64-linux-gcc\nmips32-linux-gcc\nmips64-linux-gcc\nppc64le-linux-gcc\nsparc-solaris-gcc\nx86-android-gcc\nx86-darwin8-gcc\nx86-darwin8-icc\nx86-darwin9-gcc\nx86-darwin9-icc\nx86-darwin10-gcc\nx86-darwin11-gcc\nx86-darwin12-gcc\nx86-darwin13-gcc\nx86-darwin14-gcc\nx86-darwin15-gcc\nx86-darwin16-gcc\nx86-darwin17-gcc\nx86-iphonesimulator-gcc\nx86-linux-gcc\nx86-linux-icc\nx86-os2-gcc\nx86-solaris-gcc\nx86-win32-gcc\nx86-win32-vs14\nx86-win32-vs15\nx86-win32-vs16\nx86-win32-vs17\nx86_64-android-gcc\nx86_64-darwin9-gcc\nx86_64-darwin10-gcc\nx86_64-darwin11-gcc\nx86_64-darwin12-gcc\nx86_64-darwin13-gcc\nx86_64-darwin14-gcc\nx86_64-darwin15-gcc\nx86_64-darwin16-gcc\nx86_64-darwin17-gcc\nx86_64-darwin18-gcc\nx86_64-darwin19-gcc\nx86_64-darwin20-gcc\nx86_64-darwin21-gcc\nx86_64-darwin22-gcc\nx86_64-darwin23-gcc\nx86_64-iphonesimulator-gcc\nx86_64-linux-gcc\nx86_64-linux-icc\nx86_64-solaris-gcc\nx86_64-win64-gcc\nx86_64-win64-vs14\nx86_64-win64-vs15\nx86_64-win64-vs16\nx86_64-win64-vs17\ngeneric-gnu\n"})}),"\n",(0,t.jsxs)(n.p,{children:["For ",(0,t.jsx)(n.strong,{children:"Windows"})," compilation with MinGW you may need to use ",(0,t.jsx)(n.code,{children:"--target=x86_64-win64-gcc"})," and ",(0,t.jsx)(n.code,{children:"--target=arm64-darwin22-gcc"})," for ",(0,t.jsx)(n.strong,{children:"MacOS"}),"."]}),"\n",(0,t.jsx)(n.h3,{id:"running-gnu-make",children:"Running GNU make"}),"\n",(0,t.jsxs)(n.p,{children:["After successfully running the configure command above, run ",(0,t.jsx)(n.code,{children:"make -j $(nproc)"})," to start compiling with your CPU count. The resulting binary will be called ",(0,t.jsx)(n.code,{children:"vpxenc"})," and you can copy it wherever you like."]}),"\n",(0,t.jsx)(n.h2,{id:"vp8",children:"VP8"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.em,{children:"Incomplete"})}),"\n",(0,t.jsx)(n.h2,{id:"vp9",children:"VP9"}),"\n",(0,t.jsxs)(n.p,{children:["For encoding VP9, vpxenc's default parameters are not considered optimal. There are a lot of options that are either disabled without reason or are simply misconfigured, hurting coding efficiency at little cost otherwise. As of mid-2021, some parameters (the TPL-model, lag-in-frames and auto-alt-ref frames) were changed (since libvpx 1.9.0 and libvpx 1.10.0) which means that there's not much use of setting these three parameters unless you're in ",(0,t.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),". This section covers the most important options libvpx-vp9 has to offer, recommended settings, & what they do."]}),"\n",(0,t.jsx)(n.p,{children:"It is important to note that the vpxenc parameters provided below are considered optimal because they are efficient, but VP9 Profile 2 isn't compatible with many hardware-accelerated VP9 decoding implementations."}),"\n",(0,t.jsx)(n.h3,{id:"encoding",children:"Encoding"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--codec=vp9"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Self-explanatory."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--passes=2"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["vpxenc's 2-pass mode is quite fast compared to 2-pass in ",(0,t.jsx)(n.a,{href:"/docs/encoders/x264",children:"x264"})," and x265. Only use 1-pass mode for real-time applications, which won't be covered here yet. It is the default in the standalone vpxenc libvpx-vp9 encoder."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--webm"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["Enables WebM output for the encoder, and passes the encoder flags set. It is not necessary to enable it, but since it passes the encoder flags, I would use it. Can be changed to ",(0,t.jsx)(n.code,{children:"--ivf"})," for an ivf video stream."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--good"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["This is a sort of quality deadline, the minimum speed the encoder is allowed to go to. It isn't recommended to use ",(0,t.jsx)(n.code,{children:"--best"})," as it is slow for the quality uplift you get. Do not use RT for anything but real-time encoding."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--threads=8"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Dictates the number of threads the encoder should spawn. It doesn\u2019t mean it\u2019ll scale all that well over those 8 threads. On a 16 thread CPU with a single encoder instance, I would use 8 threads. With multiple encoder instance encoding(with qencoder/av1an/neav1e), I would set it to 2 threads."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--profile=2"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"VP9 profile 2 is obligatory if you want 10-bit & 12-bit support for HDR, and improved quality from 8-bit."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--lag-in-frames=25"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Lag-in-frames is the libvpx equivalent of lookahead in x264. The higher the number, the slower the encoder will be, but at the upside of making it more efficient. Going above \u2013lag-in-frames=12 also activates another setting called alternate reference frames. 25 is the maximum you can get in libvpx-vp9. It is the default in the standalone vpxenc libvpx-vp9 encoder."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--end-usage=q"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Q mode is the closest equivalent to CRF that libvpx-vp9 offers, so use it if maximum quality is desired."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--cq-level=25"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"For 1080p30 8-bit content, it is recommended to go with a Q of 25; you can go lower if you value higher quality over pure efficiency. For 1080p60 8-bit content, I would recommend going with a higher Q value with a delta of around 15. So, a Q of 30 to 40 is usually recommended. Depending on the content, you may have to tune this value, so this advice is only useful in choosing a starting point."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--kf-max-dist=[input FPS * 10]"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["This tells the encoder to have a maximum number of frames between keyframes. It will usually place a lower number of keyframes in content like movies, TV shows, or animated shows, so you can set it to a very high number or not set it at all if you want maximum efficiency for this kind of content. Otherwise, I would go with the 10-second rule: ",(0,t.jsx)(n.code,{children:"--kf-max-dist=240"})," for 24FPS content, 300 for 30FPS content, 600 for 60FPS content, and so on."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--cpu-used=3"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["This is where the biggest balance of quality to speed is with libvpx-vp9. This is similar to presets in x264 and x265, except the lower the number, the slower the encoder takes. Using ",(0,t.jsx)(n.code,{children:"--cpu-used=3"})," & below enables RDO, which increases quality at the expense of speed."]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--cpu-used=5"})," and above are ",(0,t.jsx)(n.em,{children:"slower"})," in the 1st pass, so it isn't recommended to use them anyway."]})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--auto-alt-ref=6"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:'Activates alternate reference frames. Alternate reference frames are "invisible" frames which are used as references when creating the final display frames.'}),"\n",(0,t.jsx)(n.p,{children:"More alternate reference frames is typically more efficient. Setting this greater than 1 activates overlay frames and isn't compatible with the 8-bit color profiles."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--arnr-maxframes=7"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"This is the maximum number of alternate reference frames the encoder is allowed to use. For most content, 7 is usually a good bet, and it is the default. With animated content, going with a value of 12 or to the max is a good bet, as animated content benefits from more additional alt-ref frames than other content. Be aware that increasing this value will impact encode speed."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--arnr-strength=4"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"This setting dictates how much denoising will occur in the alt-ref frames. Lowering it to 2 or 3 is usually a good bet for noisier/grainy content to try and retain more detail, but 4 is a sane starting place. The default setting is 5, which is fine for most content, but it can be beneficial going a bit lower. For animation, keeping the default of 5 is likely a better option."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--aq-mode=0"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["Adaptive quantization is the way for an encoder to spend more bits in certain areas to improve ",(0,t.jsx)(n.a,{href:"/docs/introduction/psychovisual",children:"psychovisual fidelity"}),". ",(0,t.jsx)(n.code,{children:"--aq-mode=0"})," works well on clean content (animation, video games, screen content). ",(0,t.jsx)(n.code,{children:"--aq-mode=2"})," is recommended when you want to give more detail to more complex parts of a video."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--frame-boost=1"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["This flag lets the encoder periodically boost the bitrate of a scene/frame if it needs it. Leaving it at the default ",(0,t.jsx)(n.code,{children:"--frame-boost=0"})," is usually a good bet, & this isn't a particularly salient change."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--tune-content=default"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["This determines how the encoder is tuned. In libvpx-vp9, there are three options: ",(0,t.jsx)(n.code,{children:"default"}),", ",(0,t.jsx)(n.code,{children:"screen"}),", and ",(0,t.jsx)(n.code,{children:"film"}),". Default is for most scenarios, screen is for screen content(video games, live-streaming content like web pages & your screen), and film is for heavily dithered/grainy video. Leaving it at the default for about everything but screen content as described above is probably the best option. ",(0,t.jsx)(n.code,{children:"--tune-content=screen"})," with ",(0,t.jsx)(n.code,{children:"--aq-mode=2"})," is not recommended, as it creates some odd artifacts. It is advised to use ",(0,t.jsx)(n.code,{children:"--aq-mode=0"})," if ",(0,t.jsx)(n.code,{children:"--tune-content=screen"})," is activated, or if you want better perceptual quality, ",(0,t.jsx)(n.code,{children:"--aq-mode=1"}),"."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--row-mt=1"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["Enables row multi-threading in libvpx-vp9. ",(0,t.jsx)(n.em,{children:"Always"})," enable it no matter what, as it does not hurt efficiency, but boosts speed considerably. This feature is disabled by default."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--bit-depth=10"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["Always use 10-bit for maximum efficiency & minimal banding, even with an 8-bit source. Make sure to enable ",(0,t.jsx)(n.code,{children:"--profile=2"})," as mentioned above."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--tile-columns=1"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["This setting divides the video into tile columns for easier parallelization when encoding & decoding. Setting ",(0,t.jsx)(n.code,{children:"--tile-columns=1"}),", you will get 2\xb9 tile columns. Setting it higher is a trade-off between parallelization & coding efficiency, as more tiles means less information your encoder can work with, and this will result in decreased efficiency. Do note there is an upper threshold in regards to the number of tile columns you can get due to the fixed minimum tile width of 256 pixels. So, this means 4 tile columns (2\xb2) for 720p and 1080p, 8 tile columns (2\u2074) for 1440p/4k, and so on. If you set a tile column number that is too high, it will drop down to the lowest supported number of tile columns at the input resolution."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--tile-rows=0"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["This setting divides the video into tile rows. This option is different from columns because although it also makes decoding performance higher, it does not scale as well as tile columns & doesn\u2019t increase encoder threading nearly as much. Always use more tile-columns than rows, or leave the number of tile rows at default (0). Leaving the encoder defaults at ",(0,t.jsx)(n.code,{children:"--tile-rows=0"})," & ",(0,t.jsx)(n.code,{children:"--tile-columns=0"})," will result in the highest overall coding efficiency possible with these options."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"--enable-tpl=1"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"This option enables a temporal layer model, which helps with coding efficiency. It is the default in the standalone vpxenc libvpx-vp9 encoder."}),"\n",(0,t.jsx)(n.p,{children:"All of these options are only available for the standalone vpxenc program. Here is a sample FFmpeg command line interpretation of the commands above, with some options missing:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"ffmpeg -i input.mkv -c:v libvpx-vp9 -pix_fmt yuv420p10le -pass 1 -quality good -threads 4 -profile:v 2 -lag-in-frames 25 -crf 25 -b:v 0 -g 240 -cpu-used 3 -auto-alt-ref 6 -arnr-maxframes 7 -arnr-strength 4 -aq-mode 0 -tune-content default -tile-rows 0 -tile-columns 1 -enable-tpl 1 -row-mt 1 -f null -\nffmpeg -i input.mkv -c:v libvpx-vp9 -pix_fmt yuv420p10le -pass 2 -quality good -threads 4 -profile:v 2 -lag-in-frames 25 -crf 25 -b:v 0 -g 240 -cpu-used 3 -auto-alt-ref 6 -arnr-maxframes 7 -arnr-strength 4 -aq-mode 0 -tune-content default -tile-rows 0 -tile-columns 1 -enable-tpl 1 -row-mt 1 output.mkv\n"})}),"\n",(0,t.jsx)(n.p,{children:"Alternatively, you can pass a raw .y4m stream to standalone vpxenc & encode that way."}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.em,{children:"VP9 section written based on work by BlueSwordM, who has granted written permission for this wiki page to exist in its current fashion"})})]})}function h(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},9365:(e,n,i)=>{i.d(n,{A:()=>l});i(6540);var t=i(4164);const s={tabItem:"tabItem_Ymn6"};var r=i(4848);function l(e){let{children:n,hidden:i,className:l}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,t.A)(s.tabItem,l),hidden:i,children:n})}},1470:(e,n,i)=>{i.d(n,{A:()=>y});var t=i(6540),s=i(4164),r=i(3104),l=i(6347),c=i(205),o=i(7485),a=i(1682),d=i(679);function h(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:n,children:i}=e;return(0,t.useMemo)((()=>{const e=n??function(e){return h(e).map((e=>{let{props:{value:n,label:i,attributes:t,default:s}}=e;return{value:n,label:i,attributes:t,default:s}}))}(i);return function(e){const n=(0,a.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,i])}function x(e){let{value:n,tabValues:i}=e;return i.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:i}=e;const s=(0,l.W6)(),r=function(e){let{queryString:n=!1,groupId:i}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:n,groupId:i});return[(0,o.aZ)(r),(0,t.useCallback)((e=>{if(!r)return;const n=new URLSearchParams(s.location.search);n.set(r,e),s.replace({...s.location,search:n.toString()})}),[r,s])]}function m(e){const{defaultValue:n,queryString:i=!1,groupId:s}=e,r=u(e),[l,o]=(0,t.useState)((()=>function(e){let{defaultValue:n,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!x({value:n,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const t=i.find((e=>e.default))??i[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:n,tabValues:r}))),[a,h]=p({queryString:i,groupId:s}),[m,f]=function(e){let{groupId:n}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(n),[s,r]=(0,d.Dv)(i);return[s,(0,t.useCallback)((e=>{i&&r.set(e)}),[i,r])]}({groupId:s}),j=(()=>{const e=a??m;return x({value:e,tabValues:r})?e:null})();(0,c.A)((()=>{j&&o(j)}),[j]);return{selectedValue:l,selectValue:(0,t.useCallback)((e=>{if(!x({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);o(e),h(e),f(e)}),[h,f,r]),tabValues:r}}var f=i(2303);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=i(4848);function b(e){let{className:n,block:i,selectedValue:t,selectValue:l,tabValues:c}=e;const o=[],{blockElementScrollPositionUntilNextRender:a}=(0,r.a_)(),d=e=>{const n=e.currentTarget,i=o.indexOf(n),s=c[i].value;s!==t&&(a(n),l(s))},h=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=o.indexOf(e.currentTarget)+1;n=o[i]??o[0];break}case"ArrowLeft":{const i=o.indexOf(e.currentTarget)-1;n=o[i]??o[o.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.A)("tabs",{"tabs--block":i},n),children:c.map((e=>{let{value:n,label:i,attributes:r}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:t===n?0:-1,"aria-selected":t===n,ref:e=>o.push(e),onKeyDown:h,onClick:d,...r,className:(0,s.A)("tabs__item",j.tabItem,r?.className,{"tabs__item--active":t===n}),children:i??n},n)}))})}function v(e){let{lazy:n,children:i,selectedValue:r}=e;const l=(Array.isArray(i)?i:[i]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===r));return e?(0,t.cloneElement)(e,{className:(0,s.A)("margin-top--md",e.props.className)}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function w(e){const n=m(e);return(0,g.jsxs)("div",{className:(0,s.A)("tabs-container",j.tabList),children:[(0,g.jsx)(b,{...n,...e}),(0,g.jsx)(v,{...n,...e})]})}function y(e){const n=(0,f.A)();return(0,g.jsx)(w,{...e,children:h(e.children)},String(n))}},8453:(e,n,i)=>{i.d(n,{R:()=>l,x:()=>c});var t=i(6540);const s={},r=t.createContext(s);function l(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/318608aa.d1f8abdb.js b/assets/js/318608aa.d1f8abdb.js new file mode 100644 index 000000000..0beb1b1dc --- /dev/null +++ b/assets/js/318608aa.d1f8abdb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6003],{3239:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>o,contentTitle:()=>c,default:()=>h,frontMatter:()=>l,metadata:()=>t,toc:()=>a});const t=JSON.parse('{"id":"encoders/vpxenc","title":"vpxenc","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/encoders/vpxenc.mdx","sourceDirName":"encoders","slug":"/encoders/vpxenc","permalink":"/docs/encoders/vpxenc","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/vpxenc.mdx","tags":[],"version":"current","sidebarPosition":8,"frontMatter":{"title":"vpxenc","sidebar_position":8},"sidebar":"tutorialSidebar","previous":{"title":"Aurora1 AV1","permalink":"/docs/encoders/Aurora1"},"next":{"title":"SVT-VP9","permalink":"/docs/encoders/SVT-VP9"}}');var s=i(4848),r=i(8453);i(1470),i(9365);const l={title:"vpxenc",sidebar_position:8},c="vpxenc",o={},a=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installing (Binary)",id:"installing-binary",level:2},{value:"Compiling (Windows/MacOS/Linux)",id:"compiling-windowsmacoslinux",level:2},{value:"Cloning",id:"cloning",level:3},{value:"./configure file",id:"configure-file",level:3},{value:"Other ./configure options",id:"other-configure-options",level:3},{value:"Running GNU make",id:"running-gnu-make",level:3},{value:"VP8",id:"vp8",level:2},{value:"VP9",id:"vp9",level:2},{value:"Encoding",id:"encoding",level:3}];function d(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"vpxenc",children:"vpxenc"})}),"\n",(0,s.jsx)(n.admonition,{title:"Under Maintenance",type:"info",children:(0,s.jsx)(n.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,s.jsxs)(n.p,{children:["vpxenc is part of the libvpx library for working with the ",(0,s.jsx)(n.a,{href:"/docs/video/VP9",children:"VP9"})," & ",(0,s.jsx)(n.a,{href:"/docs/video/VP8",children:"VP8"})," video codecs. It is capable of encoding & decoding both formats, where vpxenc is the multipurpose encoder. VP9 competes with ",(0,s.jsx)(n.a,{href:"/docs/video/HEVC",children:"HEVC"})," (h265) & ",(0,s.jsx)(n.a,{href:"/docs/video/AVC",children:"AVC"})," (h264) in coding efficiency, and has been superseded by ",(0,s.jsx)(n.a,{href:"/docs/video/AV1",children:"AV1"}),". VP8 competes with AVC."]}),"\n",(0,s.jsxs)(n.p,{children:["By default, vpxenc isn't as competitive as it could be, but even when used properly, most tests show that h265 offers slightly better quality per bit with efficient encoders like ",(0,s.jsx)(n.a,{href:"/docs/encoders/x265",children:"x265"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,s.jsxs)(n.p,{children:["vpxenc is available in FFmpeg via ",(0,s.jsx)(n.code,{children:"libvpx"})," for ",(0,s.jsx)(n.strong,{children:"VP8"})," and ",(0,s.jsx)(n.code,{children:"libvpx-vp9"})," for ",(0,s.jsx)(n.strong,{children:"VP9"}),", to check if you have it, run ",(0,s.jsx)(n.code,{children:"ffmpeg -h encoder=libvpx"})," or ",(0,s.jsx)(n.code,{children:"ffmpeg -h encoder=libvpx-vp9"}),".\nNon-FFmpeg standard VP8/VP9 parameters are ",(0,s.jsx)(n.strong,{children:"not"})," supported."]}),"\n",(0,s.jsx)(n.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,s.jsx)(n.p,{children:"vpxenc supports the following color spaces:"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Format"}),(0,s.jsx)(n.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,s.jsx)(n.th,{children:"Supported Bit Depth(s)"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV420P"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,s.jsx)(n.td,{children:"8-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUVA420P"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,s.jsx)(n.td,{children:"8-bit (Alpha Channel)"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV422P"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,s.jsx)(n.td,{children:"8-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV440P"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:0"}),(0,s.jsx)(n.td,{children:"8-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV444P"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,s.jsx)(n.td,{children:"8-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"GBRP"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,s.jsx)(n.td,{children:"8-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV420P10LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,s.jsx)(n.td,{children:"10-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV422P10LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,s.jsx)(n.td,{children:"10-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV440P10LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:0"}),(0,s.jsx)(n.td,{children:"10-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV444P10LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,s.jsx)(n.td,{children:"10-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"GBRP10LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,s.jsx)(n.td,{children:"10-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV420P12LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,s.jsx)(n.td,{children:"12-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV422P12LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,s.jsx)(n.td,{children:"12-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV440P12LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:0"}),(0,s.jsx)(n.td,{children:"12-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV444P12LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,s.jsx)(n.td,{children:"12-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"GBRP12LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,s.jsx)(n.td,{children:"12-bit"})]})]})]}),"\n",(0,s.jsx)(n.h2,{id:"installing-binary",children:"Installing (Binary)"}),"\n",(0,s.jsxs)(n.p,{children:["Windows builds are available on Lastrosade's ",(0,s.jsx)(n.a,{href:"https://jeremylee.sh/bins/",children:"website"})," and can be downloaded ",(0,s.jsx)(n.a,{href:"https://jeremylee.sh/bins/vpx.7z",children:"here"}),"."]}),"\n",(0,s.jsx)(n.p,{children:'For Linux and MacOS, it may be be available when searching "vpxenc" or "libvpx" in their respective package managers.'}),"\n",(0,s.jsx)(n.h2,{id:"compiling-windowsmacoslinux",children:"Compiling (Windows/MacOS/Linux)"}),"\n",(0,s.jsxs)(n.p,{children:["Windows users are recommended to compile via MinGW-W64 which comes with ",(0,s.jsx)(n.a,{href:"https://msys2.org/",children:"MSYS2"}),"."]}),"\n",(0,s.jsx)(n.p,{children:"nasm/yasm, and the GNU build tools (make, configure) are required for this operation."}),"\n",(0,s.jsx)(n.h3,{id:"cloning",children:"Cloning"}),"\n",(0,s.jsx)(n.p,{children:"First, cloning"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"git clone https://chromium.googlesource.com/webm/libvpx\ncd libvpx\nmkdir libvpx_build && cd libvpx_build\n"})}),"\n",(0,s.jsx)(n.h3,{id:"configure-file",children:"./configure file"}),"\n",(0,s.jsx)(n.p,{children:"Now here comes the annoying part, the configure file have really bad defaults. So you will need to adjust them, here are some recommended options you should use:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'../configure --cpu=native --extra-cxxflags="-ffat-lto-objects -flto" --extra-cflags="-ffat-lto-objects -flto" --as=auto --enable-vp9-highbitdepth --enable-libyuv --enable-webm-io --enable-vp9 --enable-runtime-cpu-detect --enable-internal-stats --enable-postproc --enable-vp9-postproc --enable-static --disable-shared --enable-vp9-temporal-denoising --disable-unit-tests --disable-docs --enable-multithread\n'})}),"\n",(0,s.jsx)(n.p,{children:"Now let's break down what each of them do."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--cpu=native"}),"\nNative CPU optimizations."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:'--extra-cxxflags="-ffat-lto-objects -flto" --extra-cflags="-ffat-lto-objects -flto"'}),"\nMore CPU optimizations for faster encoding."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--as=auto"}),"\nSet the assembler to auto, so it can choose between ",(0,s.jsx)(n.code,{children:"yasm"})," and ",(0,s.jsx)(n.code,{children:"nasm"}),"."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-vp9-highbitdepth"}),"\nEnables high bit depth (>=10 bits) when encoding VP9."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-libyuv"}),"\nEnables YUV4MPEG input support (IMPORTANT), otherwise it will only accept RAW."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-webm-io"}),"\nEnables input and output support for WebM container."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-vp9"}),"\nEnables VP9 encoding support."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-runtime-cpu-detect"}),"\nEnables runtime CPU detection."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-internal-stats"}),"\nEnables internal statistics for the encoder for debug purposes."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-postproc"}),"\nEnables postprocessing stuff for better video quality."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-vp9-postproc"}),"\nEnables VP9-specific postprocessing stuff for better video quality."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-static"}),"\nEnables static builds."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--disable-shared"}),"\nDisables shared builds."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-vp9-temporal-denoising"}),"\nDisables spatial denoising for VP9 and enables temporal instead."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--disable-unit-tests"}),"\nDisables unit tests, unless you want to test the encoder as a developer. This should be disabled."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--disable-docs"}),"\nDisables documentation, as enabling this also requires doxygen."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-multithread"}),"\nEnables the usage of multiple CPU threads for encoding and decoding."]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"other-configure-options",children:"Other ./configure options"}),"\n",(0,s.jsx)(n.p,{children:"There are other options you may want use to either speed up compiliation or drop unwanted features."}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--disable-vp8 --disable-vp9-decoder --disable-vp8-decoder"}),"\nDisables VP8 encoding and ",(0,s.jsx)(n.code,{children:"vpxdec"})," (decoder) to be compiled."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-small"}),"\nPrioritizes smaller encoder binary size over encoding speed."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--target="}),"\nEnables target compilation for a specific operating system or CPU architecture. There's a lot of them. Here's an exhaustive list of all of them based on the configure file:"]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"arm64-android-gcc\narm64-darwin-gcc\narm64-darwin20-gcc\narm64-darwin21-gcc\narm64-darwin22-gcc\narm64-darwin23-gcc\narm64-linux-gcc\narm64-win64-gcc\narm64-win64-vs15\narm64-win64-vs16\narm64-win64-vs16-clangcl\narm64-win64-vs17\narm64-win64-vs17-clangcl\narmv7-android-gcc\narmv7-darwin-gcc\narmv7-linux-rvct\narmv7-linux-gcc\narmv7-none-rvct\narmv7-win32-gcc\narmv7-win32-vs14\narmv7-win32-vs15\narmv7-win32-vs16\narmv7-win32-vs17\narmv7s-darwin-gcc\narmv8-linux-gcc\nloongarch32-linux-gcc\nloongarch64-linux-gcc\nmips32-linux-gcc\nmips64-linux-gcc\nppc64le-linux-gcc\nsparc-solaris-gcc\nx86-android-gcc\nx86-darwin8-gcc\nx86-darwin8-icc\nx86-darwin9-gcc\nx86-darwin9-icc\nx86-darwin10-gcc\nx86-darwin11-gcc\nx86-darwin12-gcc\nx86-darwin13-gcc\nx86-darwin14-gcc\nx86-darwin15-gcc\nx86-darwin16-gcc\nx86-darwin17-gcc\nx86-iphonesimulator-gcc\nx86-linux-gcc\nx86-linux-icc\nx86-os2-gcc\nx86-solaris-gcc\nx86-win32-gcc\nx86-win32-vs14\nx86-win32-vs15\nx86-win32-vs16\nx86-win32-vs17\nx86_64-android-gcc\nx86_64-darwin9-gcc\nx86_64-darwin10-gcc\nx86_64-darwin11-gcc\nx86_64-darwin12-gcc\nx86_64-darwin13-gcc\nx86_64-darwin14-gcc\nx86_64-darwin15-gcc\nx86_64-darwin16-gcc\nx86_64-darwin17-gcc\nx86_64-darwin18-gcc\nx86_64-darwin19-gcc\nx86_64-darwin20-gcc\nx86_64-darwin21-gcc\nx86_64-darwin22-gcc\nx86_64-darwin23-gcc\nx86_64-iphonesimulator-gcc\nx86_64-linux-gcc\nx86_64-linux-icc\nx86_64-solaris-gcc\nx86_64-win64-gcc\nx86_64-win64-vs14\nx86_64-win64-vs15\nx86_64-win64-vs16\nx86_64-win64-vs17\ngeneric-gnu\n"})}),"\n",(0,s.jsxs)(n.p,{children:["For ",(0,s.jsx)(n.strong,{children:"Windows"})," compilation with MinGW you may need to use ",(0,s.jsx)(n.code,{children:"--target=x86_64-win64-gcc"})," and ",(0,s.jsx)(n.code,{children:"--target=arm64-darwin22-gcc"})," for ",(0,s.jsx)(n.strong,{children:"MacOS"}),"."]}),"\n",(0,s.jsx)(n.h3,{id:"running-gnu-make",children:"Running GNU make"}),"\n",(0,s.jsxs)(n.p,{children:["After successfully running the configure command above, run ",(0,s.jsx)(n.code,{children:"make -j $(nproc)"})," to start compiling with your CPU count. The resulting binary will be called ",(0,s.jsx)(n.code,{children:"vpxenc"})," and you can copy it wherever you like."]}),"\n",(0,s.jsx)(n.h2,{id:"vp8",children:"VP8"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.em,{children:"Incomplete"})}),"\n",(0,s.jsx)(n.h2,{id:"vp9",children:"VP9"}),"\n",(0,s.jsxs)(n.p,{children:["For encoding VP9, vpxenc's default parameters are not considered optimal. There are a lot of options that are either disabled without reason or are simply misconfigured, hurting coding efficiency at little cost otherwise. As of mid-2021, some parameters (the TPL-model, lag-in-frames and auto-alt-ref frames) were changed (since libvpx 1.9.0 and libvpx 1.10.0) which means that there's not much use of setting these three parameters unless you're in ",(0,s.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),". This section covers the most important options libvpx-vp9 has to offer, recommended settings, & what they do."]}),"\n",(0,s.jsx)(n.p,{children:"It is important to note that the vpxenc parameters provided below are considered optimal because they are efficient, but VP9 Profile 2 isn't compatible with many hardware-accelerated VP9 decoding implementations."}),"\n",(0,s.jsx)(n.h3,{id:"encoding",children:"Encoding"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--codec=vp9"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Self-explanatory."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--passes=2"})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["vpxenc's 2-pass mode is quite fast compared to 2-pass in ",(0,s.jsx)(n.a,{href:"/docs/encoders/x264",children:"x264"})," and x265. Only use 1-pass mode for real-time applications, which won't be covered here yet. It is the default in the standalone vpxenc libvpx-vp9 encoder."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--webm"})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["Enables WebM output for the encoder, and passes the encoder flags set. It is not necessary to enable it, but since it passes the encoder flags, I would use it. Can be changed to ",(0,s.jsx)(n.code,{children:"--ivf"})," for an ivf video stream."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--good"})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["This is a sort of quality deadline, the minimum speed the encoder is allowed to go to. It isn't recommended to use ",(0,s.jsx)(n.code,{children:"--best"})," as it is slow for the quality uplift you get. Do not use RT for anything but real-time encoding."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--threads=8"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Dictates the number of threads the encoder should spawn. It doesn\u2019t mean it\u2019ll scale all that well over those 8 threads. On a 16 thread CPU with a single encoder instance, I would use 8 threads. With multiple encoder instance encoding(with qencoder/av1an/neav1e), I would set it to 2 threads."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--profile=2"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"VP9 profile 2 is obligatory if you want 10-bit & 12-bit support for HDR, and improved quality from 8-bit."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--lag-in-frames=25"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Lag-in-frames is the libvpx equivalent of lookahead in x264. The higher the number, the slower the encoder will be, but at the upside of making it more efficient. Going above \u2013lag-in-frames=12 also activates another setting called alternate reference frames. 25 is the maximum you can get in libvpx-vp9. It is the default in the standalone vpxenc libvpx-vp9 encoder."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--end-usage=q"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Q mode is the closest equivalent to CRF that libvpx-vp9 offers, so use it if maximum quality is desired."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--cq-level=25"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"For 1080p30 8-bit content, it is recommended to go with a Q of 25; you can go lower if you value higher quality over pure efficiency. For 1080p60 8-bit content, I would recommend going with a higher Q value with a delta of around 15. So, a Q of 30 to 40 is usually recommended. Depending on the content, you may have to tune this value, so this advice is only useful in choosing a starting point."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--kf-max-dist=[input FPS * 10]"})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["This tells the encoder to have a maximum number of frames between keyframes. It will usually place a lower number of keyframes in content like movies, TV shows, or animated shows, so you can set it to a very high number or not set it at all if you want maximum efficiency for this kind of content. Otherwise, I would go with the 10-second rule: ",(0,s.jsx)(n.code,{children:"--kf-max-dist=240"})," for 24FPS content, 300 for 30FPS content, 600 for 60FPS content, and so on."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--cpu-used=3"})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["This is where the biggest balance of quality to speed is with libvpx-vp9. This is similar to presets in x264 and x265, except the lower the number, the slower the encoder takes. Using ",(0,s.jsx)(n.code,{children:"--cpu-used=3"})," & below enables RDO, which increases quality at the expense of speed."]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--cpu-used=5"})," and above are ",(0,s.jsx)(n.em,{children:"slower"})," in the 1st pass, so it isn't recommended to use them anyway."]})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--auto-alt-ref=6"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:'Activates alternate reference frames. Alternate reference frames are "invisible" frames which are used as references when creating the final display frames.'}),"\n",(0,s.jsx)(n.p,{children:"More alternate reference frames is typically more efficient. Setting this greater than 1 activates overlay frames and isn't compatible with the 8-bit color profiles."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--arnr-maxframes=7"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"This is the maximum number of alternate reference frames the encoder is allowed to use. For most content, 7 is usually a good bet, and it is the default. With animated content, going with a value of 12 or to the max is a good bet, as animated content benefits from more additional alt-ref frames than other content. Be aware that increasing this value will impact encode speed."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--arnr-strength=4"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"This setting dictates how much denoising will occur in the alt-ref frames. Lowering it to 2 or 3 is usually a good bet for noisier/grainy content to try and retain more detail, but 4 is a sane starting place. The default setting is 5, which is fine for most content, but it can be beneficial going a bit lower. For animation, keeping the default of 5 is likely a better option."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--aq-mode=0"})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["Adaptive quantization is the way for an encoder to spend more bits in certain areas to improve ",(0,s.jsx)(n.a,{href:"/docs/introduction/psychovisual",children:"psychovisual fidelity"}),". ",(0,s.jsx)(n.code,{children:"--aq-mode=0"})," works well on clean content (animation, video games, screen content). ",(0,s.jsx)(n.code,{children:"--aq-mode=2"})," is recommended when you want to give more detail to more complex parts of a video."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--frame-boost=1"})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["This flag lets the encoder periodically boost the bitrate of a scene/frame if it needs it. Leaving it at the default ",(0,s.jsx)(n.code,{children:"--frame-boost=0"})," is usually a good bet, & this isn't a particularly salient change."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--tune-content=default"})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["This determines how the encoder is tuned. In libvpx-vp9, there are three options: ",(0,s.jsx)(n.code,{children:"default"}),", ",(0,s.jsx)(n.code,{children:"screen"}),", and ",(0,s.jsx)(n.code,{children:"film"}),". Default is for most scenarios, screen is for screen content(video games, live-streaming content like web pages & your screen), and film is for heavily dithered/grainy video. Leaving it at the default for about everything but screen content as described above is probably the best option. ",(0,s.jsx)(n.code,{children:"--tune-content=screen"})," with ",(0,s.jsx)(n.code,{children:"--aq-mode=2"})," is not recommended, as it creates some odd artifacts. It is advised to use ",(0,s.jsx)(n.code,{children:"--aq-mode=0"})," if ",(0,s.jsx)(n.code,{children:"--tune-content=screen"})," is activated, or if you want better perceptual quality, ",(0,s.jsx)(n.code,{children:"--aq-mode=1"}),"."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--row-mt=1"})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["Enables row multi-threading in libvpx-vp9. ",(0,s.jsx)(n.em,{children:"Always"})," enable it no matter what, as it does not hurt efficiency, but boosts speed considerably. This feature is disabled by default."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--bit-depth=10"})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["Always use 10-bit for maximum efficiency & minimal banding, even with an 8-bit source. Make sure to enable ",(0,s.jsx)(n.code,{children:"--profile=2"})," as mentioned above."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--tile-columns=1"})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["This setting divides the video into tile columns for easier parallelization when encoding & decoding. Setting ",(0,s.jsx)(n.code,{children:"--tile-columns=1"}),", you will get 2\xb9 tile columns. Setting it higher is a trade-off between parallelization & coding efficiency, as more tiles means less information your encoder can work with, and this will result in decreased efficiency. Do note there is an upper threshold in regards to the number of tile columns you can get due to the fixed minimum tile width of 256 pixels. So, this means 4 tile columns (2\xb2) for 720p and 1080p, 8 tile columns (2\u2074) for 1440p/4k, and so on. If you set a tile column number that is too high, it will drop down to the lowest supported number of tile columns at the input resolution."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--tile-rows=0"})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["This setting divides the video into tile rows. This option is different from columns because although it also makes decoding performance higher, it does not scale as well as tile columns & doesn\u2019t increase encoder threading nearly as much. Always use more tile-columns than rows, or leave the number of tile rows at default (0). Leaving the encoder defaults at ",(0,s.jsx)(n.code,{children:"--tile-rows=0"})," & ",(0,s.jsx)(n.code,{children:"--tile-columns=0"})," will result in the highest overall coding efficiency possible with these options."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"--enable-tpl=1"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"This option enables a temporal layer model, which helps with coding efficiency. It is the default in the standalone vpxenc libvpx-vp9 encoder."}),"\n",(0,s.jsx)(n.p,{children:"All of these options are only available for the standalone vpxenc program. Here is a sample FFmpeg command line interpretation of the commands above, with some options missing:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"ffmpeg -i input.mkv -c:v libvpx-vp9 -pix_fmt yuv420p10le -pass 1 -quality good -threads 4 -profile:v 2 -lag-in-frames 25 -crf 25 -b:v 0 -g 240 -cpu-used 3 -auto-alt-ref 6 -arnr-maxframes 7 -arnr-strength 4 -aq-mode 0 -tune-content default -tile-rows 0 -tile-columns 1 -enable-tpl 1 -row-mt 1 -f null -\nffmpeg -i input.mkv -c:v libvpx-vp9 -pix_fmt yuv420p10le -pass 2 -quality good -threads 4 -profile:v 2 -lag-in-frames 25 -crf 25 -b:v 0 -g 240 -cpu-used 3 -auto-alt-ref 6 -arnr-maxframes 7 -arnr-strength 4 -aq-mode 0 -tune-content default -tile-rows 0 -tile-columns 1 -enable-tpl 1 -row-mt 1 output.mkv\n"})}),"\n",(0,s.jsx)(n.p,{children:"Alternatively, you can pass a raw .y4m stream to standalone vpxenc & encode that way."}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.em,{children:"VP9 section written based on work by BlueSwordM, who has granted written permission for this wiki page to exist in its current fashion"})})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},9365:(e,n,i)=>{i.d(n,{A:()=>l});i(6540);var t=i(4164);const s={tabItem:"tabItem_Ymn6"};var r=i(4848);function l(e){let{children:n,hidden:i,className:l}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,t.A)(s.tabItem,l),hidden:i,children:n})}},1470:(e,n,i)=>{i.d(n,{A:()=>y});var t=i(6540),s=i(4164),r=i(3104),l=i(6347),c=i(205),o=i(7485),a=i(1682),d=i(679);function h(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:n,children:i}=e;return(0,t.useMemo)((()=>{const e=n??function(e){return h(e).map((e=>{let{props:{value:n,label:i,attributes:t,default:s}}=e;return{value:n,label:i,attributes:t,default:s}}))}(i);return function(e){const n=(0,a.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,i])}function x(e){let{value:n,tabValues:i}=e;return i.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:i}=e;const s=(0,l.W6)(),r=function(e){let{queryString:n=!1,groupId:i}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:n,groupId:i});return[(0,o.aZ)(r),(0,t.useCallback)((e=>{if(!r)return;const n=new URLSearchParams(s.location.search);n.set(r,e),s.replace({...s.location,search:n.toString()})}),[r,s])]}function m(e){const{defaultValue:n,queryString:i=!1,groupId:s}=e,r=u(e),[l,o]=(0,t.useState)((()=>function(e){let{defaultValue:n,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!x({value:n,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const t=i.find((e=>e.default))??i[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:n,tabValues:r}))),[a,h]=p({queryString:i,groupId:s}),[m,f]=function(e){let{groupId:n}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(n),[s,r]=(0,d.Dv)(i);return[s,(0,t.useCallback)((e=>{i&&r.set(e)}),[i,r])]}({groupId:s}),j=(()=>{const e=a??m;return x({value:e,tabValues:r})?e:null})();(0,c.A)((()=>{j&&o(j)}),[j]);return{selectedValue:l,selectValue:(0,t.useCallback)((e=>{if(!x({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);o(e),h(e),f(e)}),[h,f,r]),tabValues:r}}var f=i(2303);const j={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=i(4848);function b(e){let{className:n,block:i,selectedValue:t,selectValue:l,tabValues:c}=e;const o=[],{blockElementScrollPositionUntilNextRender:a}=(0,r.a_)(),d=e=>{const n=e.currentTarget,i=o.indexOf(n),s=c[i].value;s!==t&&(a(n),l(s))},h=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=o.indexOf(e.currentTarget)+1;n=o[i]??o[0];break}case"ArrowLeft":{const i=o.indexOf(e.currentTarget)-1;n=o[i]??o[o.length-1];break}}n?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.A)("tabs",{"tabs--block":i},n),children:c.map((e=>{let{value:n,label:i,attributes:r}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:t===n?0:-1,"aria-selected":t===n,ref:e=>o.push(e),onKeyDown:h,onClick:d,...r,className:(0,s.A)("tabs__item",j.tabItem,r?.className,{"tabs__item--active":t===n}),children:i??n},n)}))})}function v(e){let{lazy:n,children:i,selectedValue:r}=e;const l=(Array.isArray(i)?i:[i]).filter(Boolean);if(n){const e=l.find((e=>e.props.value===r));return e?(0,t.cloneElement)(e,{className:(0,s.A)("margin-top--md",e.props.className)}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:l.map(((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==r})))})}function w(e){const n=m(e);return(0,g.jsxs)("div",{className:(0,s.A)("tabs-container",j.tabList),children:[(0,g.jsx)(b,{...n,...e}),(0,g.jsx)(v,{...n,...e})]})}function y(e){const n=(0,f.A)();return(0,g.jsx)(w,{...e,children:h(e.children)},String(n))}},8453:(e,n,i)=>{i.d(n,{R:()=>l,x:()=>c});var t=i(6540);const s={},r=t.createContext(s);function l(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/32987299.8275d921.js b/assets/js/32987299.8275d921.js new file mode 100644 index 000000000..8b1661761 --- /dev/null +++ b/assets/js/32987299.8275d921.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7754],{8860:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>l,contentTitle:()=>a,default:()=>u,frontMatter:()=>o,metadata:()=>t,toc:()=>c});const t=JSON.parse('{"id":"filtering/vapoursynth","title":"Vapoursynth","description":"VapourSynth is an application for video manipulation. Or a plugin. Or a library. It\u2019s hard to tell because it has a core library written in C++ and a Python module to allow video scripts to be created.","source":"@site/docs/filtering/vapoursynth.mdx","sourceDirName":"filtering","slug":"/filtering/vapoursynth","permalink":"/docs/filtering/vapoursynth","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/vapoursynth.mdx","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"Vapoursynth","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"WebVTT","permalink":"/docs/subtitles/webvtt"},"next":{"title":"Basics of Filtering","permalink":"/docs/filtering/basics"}}');var s=n(4848),r=n(8453);const o={title:"Vapoursynth",sidebar_position:2},a="Vapoursynth",l={},c=[{value:"Installation",id:"installation",level:2},{value:"Microsoft Windows",id:"microsoft-windows",level:3},{value:"Arch Linux",id:"arch-linux",level:3},{value:"Other Linux",id:"other-linux",level:3},{value:"Previewing",id:"previewing",level:2},{value:"Output",id:"output",level:2},{value:"Source Filters",id:"source-filters",level:2},{value:"LSmashSource",id:"lsmashsource",level:3},{value:"ffms2",id:"ffms2",level:3},{value:"BestSource",id:"bestsource",level:3}];function h(e){const i={a:"a",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"vapoursynth",children:"Vapoursynth"})}),"\n",(0,s.jsxs)(i.blockquote,{children:["\n",(0,s.jsx)(i.p,{children:"VapourSynth is an application for video manipulation. Or a plugin. Or a library. It\u2019s hard to tell because it has a core library written in C++ and a Python module to allow video scripts to be created."}),"\n"]}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.em,{children:"Fredrik Mellbin, creator of VapourSynth"})}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/vs_edit_script.avif?token=GHSAT0AAAAAACEZPDXJ6SHSUQIMUOGQXQTEZHY7K4A",type:"image/avif"}),(0,s.jsx)("img",{src:"https://autumn.revolt.chat/attachments/g7DucEq3aRGWVH0MHQe-A21GkyDVln9IHzRlfjEYEh/vs_edit_script.png",alt:"Vapoursynth script",width:"520",height:"632"})]}),"\n"," ","\n",(0,s.jsx)(i.h1,{id:"introduction",children:"Introduction"}),"\n",(0,s.jsx)(i.p,{children:"In the realm of video processing, one will frequently encounter media with various quality issues. These can range from minor imperfections to significant degradation, including:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Excessive film grain or noise that significantly increases bitrate due to its unpredictable nature"}),"\n",(0,s.jsx)(i.li,{children:"Visible banding artifacts"}),"\n",(0,s.jsx)(i.li,{children:"Unwanted halos around objects"}),"\n",(0,s.jsx)(i.li,{children:"Interlacing issues in older, unrestored footage"}),"\n",(0,s.jsx)(i.li,{children:"Telecine artifacts from improper film-to-video conversion"}),"\n",(0,s.jsxs)(i.li,{children:["And more, on our ",(0,s.jsx)(i.a,{href:"/docs/introduction/video-artifacts",children:"video artifacts"})," page."]}),"\n"]}),"\n",(0,s.jsx)(i.p,{children:"To address these challenges, video filtering techniques are employed. Currently, there are three primary software frameworks used for video filtering:"}),"\n",(0,s.jsxs)(i.ol,{children:["\n",(0,s.jsx)(i.li,{children:(0,s.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})}),"\n",(0,s.jsx)(i.li,{children:(0,s.jsx)(i.a,{href:"https://vapoursynth.com",children:"VapourSynth"})}),"\n",(0,s.jsx)(i.li,{children:(0,s.jsx)(i.a,{href:"http://avisynth.nl/index.php/Main_Page",children:"AviSynth"})}),"\n"]}),"\n",(0,s.jsx)(i.p,{children:"VapourSynth is designed as a 21st-century upgrade and rewrite of AviSynth, which was originally created by Ben Rudiak-Gould, Edwin van Eggelen, Klaus Post, Richard Berg, and Ian Brabham in May 2000. One of the most attractive features of this complete rewrite is its improved multithreading capability, an area where AviSynth struggled due to its aging infrastructure."}),"\n",(0,s.jsxs)(i.p,{children:["Some longtime AviSynth users are reluctant to switch to VapourSynth, preferring to stick with a familiar workflow. There is nothing wrong with this preference, as both tools have their merits in video processing; that being said, the Codec Wiki's ",(0,s.jsx)(i.em,{children:"Filtering"})," section focuses primarily on VapourSynth (and occaisonally FFmpeg). It is important to note that working with VapourSynth requires a basic understanding of Python, as the filtering process involves scripting."]}),"\n",(0,s.jsx)(i.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsx)(i.h3,{id:"microsoft-windows",children:"Microsoft Windows"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:["At the time of writing, Python 3.12 is required. This will change in the future so consult from ",(0,s.jsx)(i.a,{href:"http://www.vapoursynth.com/doc/installation.html",children:"their website"})]}),"\n",(0,s.jsxs)(i.li,{children:["Download the installer (",(0,s.jsx)(i.code,{children:".exe"}),") unless you require portability"]}),"\n",(0,s.jsx)(i.li,{children:"Install it"}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"arch-linux",children:"Arch Linux"}),"\n",(0,s.jsxs)(i.p,{children:["Currently, Arch is the best Linux distribution for working with Vapoursynth due to the fact that\nthe vast majority of filters and plugins are available in the AUR. This makes installing and updating filters easy.\nIf you are not already, we recommend using an AUR helper such as\n",(0,s.jsx)(i.a,{href:"https://github.com/Morganamilo/paru",children:"paru"})," or ",(0,s.jsx)(i.a,{href:"https://github.com/Jguer/yay",children:"yay"}),"."]}),"\n",(0,s.jsxs)(i.p,{children:["To install vapoursynth, simply install the ",(0,s.jsx)(i.code,{children:"vapoursynth"})," package from the official repositories using pacman or your preferred AUR helper."]}),"\n",(0,s.jsxs)(i.p,{children:["Plugins are all prefixed with ",(0,s.jsx)(i.code,{children:"vapoursynth-plugin-"}),", such as ",(0,s.jsx)(i.code,{children:"vapoursynth-plugin-lsmashsource-git"}),", and as such can be discovered easily."]}),"\n",(0,s.jsx)(i.h3,{id:"other-linux",children:"Other Linux"}),"\n",(0,s.jsx)(i.p,{children:"Vapoursynth is supported on all Linux distributions. Installation methods may vary by distribution."}),"\n",(0,s.jsx)(i.p,{children:"Contributions would be helpful to provide instructions for more distributions."}),"\n",(0,s.jsx)(i.h2,{id:"previewing",children:"Previewing"}),"\n",(0,s.jsx)(i.p,{children:"There are currently two leading previewers for Vapoursynth. If you want to preview your scripts with capabilities such as seeking,\nyou will need to use one of these applications."}),"\n",(0,s.jsxs)(i.p,{children:["The first is YomkioR's ",(0,s.jsx)(i.a,{href:"https://github.com/YomikoR/VapourSynth-Editor/",children:"Vapoursynth Editor"}),", which includes a built-in code editor alongside a video previewer.\nThis makes it extremely easy to set up for users who are new to Vapoursynth."]}),"\n",(0,s.jsxs)(i.p,{children:["The second is JET's fork of ",(0,s.jsx)(i.a,{href:"https://github.com/Jaded-Encoding-Thaumaturgy/vs-preview",children:"vs-preview"}),", which is a standalone previewer with utilities for\ntasks such as cropping, screenshotting, and uploading comparisons. This tool is more advanced than Vapoursynth Editor, but does not include an editor,\nso you will need to pair it with an editor such as Visual Studio Code. The Github for vs-preview includes instructions for setting this up."]}),"\n",(0,s.jsx)(i.h2,{id:"output",children:"Output"}),"\n",(0,s.jsxs)(i.p,{children:["Vapoursynth provides a command-line utility called ",(0,s.jsx)(i.code,{children:"vspipe"})," for outputting filtered video. Using this utility to pipe y4m video\nis the most common way to use Vapoursynth with an encoder."]}),"\n",(0,s.jsx)(i.p,{children:"For example, the following command would pipe the output from a Vapoursynth script into x264:"}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.code,{children:"vspipe -c y4m input.vpy - | x264 --demuxer y4m -o output.mkv -"})}),"\n",(0,s.jsx)(i.h2,{id:"source-filters",children:"Source Filters"}),"\n",(0,s.jsx)(i.p,{children:"For Vapoursynth to produce output, it has to load a video in some way. This way is with source filters."}),"\n",(0,s.jsxs)(i.p,{children:["The most basic method is using ",(0,s.jsx)(i.code,{children:"BlankClip"})," to create a clip of a certain resolution and frame rate. For example, the following\nscript would give us a blank clip at 640x480:"]}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:"import vapoursynth as vs\n\ncore = vs.core\n\nclip = core.std.BlankClip(width=640, height=480)\n\nclip.set_output(0)\n"})}),"\n",(0,s.jsx)(i.p,{children:"But a plain black video isn't very useful, is it? We want to load real videos so we can do filtering on them.\nFor this, there are a few different source filters we can look at."}),"\n",(0,s.jsx)(i.h3,{id:"lsmashsource",children:"LSmashSource"}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.a,{href:"https://github.com/HomeOfAviSynthPlusEvolution/L-SMASH-Works",children:"LSmashSource"})," is a source filter using lsmash as the underlying source library.\nIt is the most commonly used source filter, and is generally reliable for most source formats, though may have frame accuracy issues\nwhen seeking with certain input formats, such as VC-1. If this is a concern, it can be recommended to encode to lossless first before\nusing any encoding methods that require seeking, such as av1an."]}),"\n",(0,s.jsx)(i.p,{children:"Here is an example of loading a video file using LSmashSource:"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:'import vapoursynth as vs\n\ncore = vs.core\n\nclip = core.lsmas.LWLibavSource(source="input.mkv")\n\nclip.set_output(0)\n'})}),"\n",(0,s.jsx)(i.h3,{id:"ffms2",children:"ffms2"}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.a,{href:"https://github.com/FFMS/ffms2",children:"ffms2"})," is a source filter based on ffmpeg. It generally should give the same results as LSmashSource,\nespecially when using the git version which has fixed support for newer formats such as AV1. If having issues with a source file with LSmashSource,\nffms2 can be a good fallback to try."]}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:'import vapoursynth as vs\n\ncore = vs.core\n\nclip = core.ffms2.Source(source="input.mkv")\n\nclip.set_output(0)\n'})}),"\n",(0,s.jsx)(i.h3,{id:"bestsource",children:"BestSource"}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.a,{href:"https://github.com/vapoursynth/bestsource/",children:"BestSource"})," is also based on ffmpeg, but uses additional techniques\nto ensure frame accuracy in all scenarios with all input formats. The downside is that it must decode the entire video\nduring indexing, which means the first load of a given video will take longer. Subsequent loads will be quick, because\nBestSource caches the index in a file."]}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:'import vapoursynth as vs\n\ncore = vs.core\n\nclip = core.bs.VideoSource(\n source="input.mkv",\n cachepath="/"\n)\n\nclip.set_output(0)\n'})}),"\n",(0,s.jsxs)(i.p,{children:["We add the ",(0,s.jsx)(i.code,{children:'cachepath="/"'})," setting to emulate the behavior of the other source filters, which is to place the index file next to the source video.\nThis helps with portability and cleaning up after ourselves. The default behavior is to place the index file in a temporary directory local to the machine."]})]})}function u(e={}){const{wrapper:i}={...(0,r.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>o,x:()=>a});var t=n(6540);const s={},r=t.createContext(s);function o(e){const i=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),t.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/32987299.bfa90a0c.js b/assets/js/32987299.bfa90a0c.js deleted file mode 100644 index 321fefe7d..000000000 --- a/assets/js/32987299.bfa90a0c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7754],{5029:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>l,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>a,toc:()=>c});var t=n(4848),s=n(8453);const r={title:"Vapoursynth",sidebar_position:2},o="Vapoursynth",a={id:"filtering/vapoursynth",title:"Vapoursynth",description:"VapourSynth is an application for video manipulation. Or a plugin. Or a library. It\u2019s hard to tell because it has a core library written in C++ and a Python module to allow video scripts to be created.",source:"@site/docs/filtering/vapoursynth.mdx",sourceDirName:"filtering",slug:"/filtering/vapoursynth",permalink:"/docs/filtering/vapoursynth",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/vapoursynth.mdx",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"Vapoursynth",sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"WebVTT",permalink:"/docs/subtitles/webvtt"},next:{title:"Basics of Filtering",permalink:"/docs/filtering/basics"}},l={},c=[{value:"Installation",id:"installation",level:2},{value:"Microsoft Windows",id:"microsoft-windows",level:3},{value:"Arch Linux",id:"arch-linux",level:3},{value:"Other Linux",id:"other-linux",level:3},{value:"Previewing",id:"previewing",level:2},{value:"Output",id:"output",level:2},{value:"Source Filters",id:"source-filters",level:2},{value:"LSmashSource",id:"lsmashsource",level:3},{value:"ffms2",id:"ffms2",level:3},{value:"BestSource",id:"bestsource",level:3}];function h(e){const i={a:"a",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",ul:"ul",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"vapoursynth",children:"Vapoursynth"})}),"\n",(0,t.jsxs)(i.blockquote,{children:["\n",(0,t.jsx)(i.p,{children:"VapourSynth is an application for video manipulation. Or a plugin. Or a library. It\u2019s hard to tell because it has a core library written in C++ and a Python module to allow video scripts to be created."}),"\n"]}),"\n",(0,t.jsx)(i.p,{children:(0,t.jsx)(i.em,{children:"Fredrik Mellbin, creator of VapourSynth"})}),"\n",(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/vs_edit_script.avif?token=GHSAT0AAAAAACEZPDXJ6SHSUQIMUOGQXQTEZHY7K4A",type:"image/avif"}),(0,t.jsx)("img",{src:"https://autumn.revolt.chat/attachments/g7DucEq3aRGWVH0MHQe-A21GkyDVln9IHzRlfjEYEh/vs_edit_script.png",alt:"Vapoursynth script",width:"520",height:"632"})]}),"\n"," ","\n",(0,t.jsx)(i.h1,{id:"introduction",children:"Introduction"}),"\n",(0,t.jsx)(i.p,{children:"In the realm of video processing, one will frequently encounter media with various quality issues. These can range from minor imperfections to significant degradation, including:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Excessive film grain or noise that significantly increases bitrate due to its unpredictable nature"}),"\n",(0,t.jsx)(i.li,{children:"Visible banding artifacts"}),"\n",(0,t.jsx)(i.li,{children:"Unwanted halos around objects"}),"\n",(0,t.jsx)(i.li,{children:"Interlacing issues in older, unrestored footage"}),"\n",(0,t.jsx)(i.li,{children:"Telecine artifacts from improper film-to-video conversion"}),"\n",(0,t.jsxs)(i.li,{children:["And more, on our ",(0,t.jsx)(i.a,{href:"/docs/introduction/video-artifacts",children:"video artifacts"})," page."]}),"\n"]}),"\n",(0,t.jsx)(i.p,{children:"To address these challenges, video filtering techniques are employed. Currently, there are three primary software frameworks used for video filtering:"}),"\n",(0,t.jsxs)(i.ol,{children:["\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})}),"\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"https://vapoursynth.com",children:"VapourSynth"})}),"\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"http://avisynth.nl/index.php/Main_Page",children:"AviSynth"})}),"\n"]}),"\n",(0,t.jsx)(i.p,{children:"VapourSynth is designed as a 21st-century upgrade and rewrite of AviSynth, which was originally created by Ben Rudiak-Gould, Edwin van Eggelen, Klaus Post, Richard Berg, and Ian Brabham in May 2000. One of the most attractive features of this complete rewrite is its improved multithreading capability, an area where AviSynth struggled due to its aging infrastructure."}),"\n",(0,t.jsxs)(i.p,{children:["Some longtime AviSynth users are reluctant to switch to VapourSynth, preferring to stick with a familiar workflow. There is nothing wrong with this preference, as both tools have their merits in video processing; that being said, the Codec Wiki's ",(0,t.jsx)(i.em,{children:"Filtering"})," section focuses primarily on VapourSynth (and occaisonally FFmpeg). It is important to note that working with VapourSynth requires a basic understanding of Python, as the filtering process involves scripting."]}),"\n",(0,t.jsx)(i.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(i.h3,{id:"microsoft-windows",children:"Microsoft Windows"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsxs)(i.li,{children:["At the time of writing, Python 3.12 is required. This will change in the future so consult from ",(0,t.jsx)(i.a,{href:"http://www.vapoursynth.com/doc/installation.html",children:"their website"})]}),"\n",(0,t.jsxs)(i.li,{children:["Download the installer (",(0,t.jsx)(i.code,{children:".exe"}),") unless you require portability"]}),"\n",(0,t.jsx)(i.li,{children:"Install it"}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"arch-linux",children:"Arch Linux"}),"\n",(0,t.jsxs)(i.p,{children:["Currently, Arch is the best Linux distribution for working with Vapoursynth due to the fact that\nthe vast majority of filters and plugins are available in the AUR. This makes installing and updating filters easy.\nIf you are not already, we recommend using an AUR helper such as\n",(0,t.jsx)(i.a,{href:"https://github.com/Morganamilo/paru",children:"paru"})," or ",(0,t.jsx)(i.a,{href:"https://github.com/Jguer/yay",children:"yay"}),"."]}),"\n",(0,t.jsxs)(i.p,{children:["To install vapoursynth, simply install the ",(0,t.jsx)(i.code,{children:"vapoursynth"})," package from the official repositories using pacman or your preferred AUR helper."]}),"\n",(0,t.jsxs)(i.p,{children:["Plugins are all prefixed with ",(0,t.jsx)(i.code,{children:"vapoursynth-plugin-"}),", such as ",(0,t.jsx)(i.code,{children:"vapoursynth-plugin-lsmashsource-git"}),", and as such can be discovered easily."]}),"\n",(0,t.jsx)(i.h3,{id:"other-linux",children:"Other Linux"}),"\n",(0,t.jsx)(i.p,{children:"Vapoursynth is supported on all Linux distributions. Installation methods may vary by distribution."}),"\n",(0,t.jsx)(i.p,{children:"Contributions would be helpful to provide instructions for more distributions."}),"\n",(0,t.jsx)(i.h2,{id:"previewing",children:"Previewing"}),"\n",(0,t.jsx)(i.p,{children:"There are currently two leading previewers for Vapoursynth. If you want to preview your scripts with capabilities such as seeking,\nyou will need to use one of these applications."}),"\n",(0,t.jsxs)(i.p,{children:["The first is YomkioR's ",(0,t.jsx)(i.a,{href:"https://github.com/YomikoR/VapourSynth-Editor/",children:"Vapoursynth Editor"}),", which includes a built-in code editor alongside a video previewer.\nThis makes it extremely easy to set up for users who are new to Vapoursynth."]}),"\n",(0,t.jsxs)(i.p,{children:["The second is JET's fork of ",(0,t.jsx)(i.a,{href:"https://github.com/Jaded-Encoding-Thaumaturgy/vs-preview",children:"vs-preview"}),", which is a standalone previewer with utilities for\ntasks such as cropping, screenshotting, and uploading comparisons. This tool is more advanced than Vapoursynth Editor, but does not include an editor,\nso you will need to pair it with an editor such as Visual Studio Code. The Github for vs-preview includes instructions for setting this up."]}),"\n",(0,t.jsx)(i.h2,{id:"output",children:"Output"}),"\n",(0,t.jsxs)(i.p,{children:["Vapoursynth provides a command-line utility called ",(0,t.jsx)(i.code,{children:"vspipe"})," for outputting filtered video. Using this utility to pipe y4m video\nis the most common way to use Vapoursynth with an encoder."]}),"\n",(0,t.jsx)(i.p,{children:"For example, the following command would pipe the output from a Vapoursynth script into x264:"}),"\n",(0,t.jsx)(i.p,{children:(0,t.jsx)(i.code,{children:"vspipe -c y4m input.vpy - | x264 --demuxer y4m -o output.mkv -"})}),"\n",(0,t.jsx)(i.h2,{id:"source-filters",children:"Source Filters"}),"\n",(0,t.jsx)(i.p,{children:"For Vapoursynth to produce output, it has to load a video in some way. This way is with source filters."}),"\n",(0,t.jsxs)(i.p,{children:["The most basic method is using ",(0,t.jsx)(i.code,{children:"BlankClip"})," to create a clip of a certain resolution and frame rate. For example, the following\nscript would give us a blank clip at 640x480:"]}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-python",children:"import vapoursynth as vs\n\ncore = vs.core\n\nclip = core.std.BlankClip(width=640, height=480)\n\nclip.set_output(0)\n"})}),"\n",(0,t.jsx)(i.p,{children:"But a plain black video isn't very useful, is it? We want to load real videos so we can do filtering on them.\nFor this, there are a few different source filters we can look at."}),"\n",(0,t.jsx)(i.h3,{id:"lsmashsource",children:"LSmashSource"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.a,{href:"https://github.com/HomeOfAviSynthPlusEvolution/L-SMASH-Works",children:"LSmashSource"})," is a source filter using lsmash as the underlying source library.\nIt is the most commonly used source filter, and is generally reliable for most source formats, though may have frame accuracy issues\nwhen seeking with certain input formats, such as VC-1. If this is a concern, it can be recommended to encode to lossless first before\nusing any encoding methods that require seeking, such as av1an."]}),"\n",(0,t.jsx)(i.p,{children:"Here is an example of loading a video file using LSmashSource:"}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-python",children:'import vapoursynth as vs\n\ncore = vs.core\n\nclip = core.lsmas.LWLibavSource(source="input.mkv")\n\nclip.set_output(0)\n'})}),"\n",(0,t.jsx)(i.h3,{id:"ffms2",children:"ffms2"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.a,{href:"https://github.com/FFMS/ffms2",children:"ffms2"})," is a source filter based on ffmpeg. It generally should give the same results as LSmashSource,\nespecially when using the git version which has fixed support for newer formats such as AV1. If having issues with a source file with LSmashSource,\nffms2 can be a good fallback to try."]}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-python",children:'import vapoursynth as vs\n\ncore = vs.core\n\nclip = core.ffms2.Source(source="input.mkv")\n\nclip.set_output(0)\n'})}),"\n",(0,t.jsx)(i.h3,{id:"bestsource",children:"BestSource"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.a,{href:"https://github.com/vapoursynth/bestsource/",children:"BestSource"})," is also based on ffmpeg, but uses additional techniques\nto ensure frame accuracy in all scenarios with all input formats. The downside is that it must decode the entire video\nduring indexing, which means the first load of a given video will take longer. Subsequent loads will be quick, because\nBestSource caches the index in a file."]}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-python",children:'import vapoursynth as vs\n\ncore = vs.core\n\nclip = core.bs.VideoSource(\n source="input.mkv",\n cachepath="/"\n)\n\nclip.set_output(0)\n'})}),"\n",(0,t.jsxs)(i.p,{children:["We add the ",(0,t.jsx)(i.code,{children:'cachepath="/"'})," setting to emulate the behavior of the other source filters, which is to place the index file next to the source video.\nThis helps with portability and cleaning up after ourselves. The default behavior is to place the index file in a temporary directory local to the machine."]})]})}function u(e={}){const{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>o,x:()=>a});var t=n(6540);const s={},r=t.createContext(s);function o(e){const i=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),t.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/345ef4f9.8c99b56f.js b/assets/js/345ef4f9.8c99b56f.js deleted file mode 100644 index 1dbebbda4..000000000 --- a/assets/js/345ef4f9.8c99b56f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6509],{5389:(t,e,i)=>{i.r(e),i.d(e,{assets:()=>a,contentTitle:()=>r,default:()=>u,frontMatter:()=>s,metadata:()=>l,toc:()=>d});var o=i(4848),n=i(8453);const s={title:"MKVToolNix",sidebar_position:4},r="MKVToolNix",l={id:"utilities/MKVToolNix",title:"MKVToolNix",description:"MKVToolNix is free and open source GUI frontend to a set of tools (mkvmerge, mkvinfo, mkvpropedit, mkvextract) to create, alter and inspect Matroska files under Linux, other \\*NIXes and Windows.",source:"@site/docs/utilities/MKVToolNix.mdx",sourceDirName:"utilities",slug:"/utilities/MKVToolNix",permalink:"/docs/utilities/MKVToolNix",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/MKVToolNix.mdx",tags:[],version:"current",sidebarPosition:4,frontMatter:{title:"MKVToolNix",sidebar_position:4},sidebar:"tutorialSidebar",previous:{title:"ffmpeg",permalink:"/docs/utilities/ffmpeg"},next:{title:"rAV1ator",permalink:"/docs/utilities/rAV1ator"}},a={},d=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Tips and tricks",id:"tips-and-tricks",level:2}];function c(t){const e={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",ol:"ol",p:"p",ul:"ul",...(0,n.R)(),...t.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.header,{children:(0,o.jsx)(e.h1,{id:"mkvtoolnix",children:"MKVToolNix"})}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/mkvtoolnix-gui-workload.avif",type:"image/avif"}),(0,o.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/mkvtoolnix-gui-workload.webp",alt:"MKVToolNix Workload"})]}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)(e.p,{children:"MKVToolNix is free and open source GUI frontend to a set of tools (mkvmerge, mkvinfo, mkvpropedit, mkvextract) to create, alter and inspect Matroska files under Linux, other *NIXes and Windows."}),"\n",(0,o.jsx)(e.p,{children:"MKVToolNix is built with Qt and written in C++."}),"\n",(0,o.jsx)(e.h2,{id:"installation",children:"Installation"}),"\n",(0,o.jsx)(e.p,{children:"Fortunately, Moritz Bunkus (Creator) is sane enough to provide downloads for pretty much all popular desktop operating systems."}),"\n",(0,o.jsxs)(e.ul,{children:["\n",(0,o.jsxs)(e.li,{children:["Windows & Mac: ",(0,o.jsx)(e.a,{href:"https://mkvtoolnix.download/downloads.html",children:"MKVToolNix site"}),"."]}),"\n",(0,o.jsxs)(e.li,{children:["Linux: ",(0,o.jsx)(e.a,{href:"https://flathub.org/apps/org.bunkus.mkvtoolnix-gui",children:"Install as a Flatpak"})," or check your package manager."]}),"\n"]}),"\n",(0,o.jsx)(e.h2,{id:"usage",children:"Usage"}),"\n",(0,o.jsx)(e.p,{children:'Drag and drop media files (or use "Add source files") to the application and modify, remux, demux, add streams, drop streams, anything and when done set your output destination and click "Start multiplexing" to start writing the output.'}),"\n",(0,o.jsx)(e.h2,{id:"tips-and-tricks",children:"Tips and tricks"}),"\n",(0,o.jsxs)(e.ol,{children:["\n",(0,o.jsxs)(e.li,{children:["You can import unencrypted BDMV (",(0,o.jsx)(e.code,{children:"index.bdmv"}),") or Blu-ray playlist files into MKVToolNix and it will prompt you to select which stream you would want to import."]}),"\n",(0,o.jsx)(e.li,{children:'You can set a WebM output in Output > Miscellaneous > "Create WebM compliant file"'}),"\n",(0,o.jsx)(e.li,{children:"You can split videos in multiple ways in Output > Splitting. Best of all? No freeze frames unlike in FFmpeg and no re-encoding required."}),"\n",(0,o.jsx)(e.li,{children:'You can edit metadata without remuxing (Albeit rather limited) in the "Header Editor".'}),"\n"]})]})}function u(t={}){const{wrapper:e}={...(0,n.R)(),...t.components};return e?(0,o.jsx)(e,{...t,children:(0,o.jsx)(c,{...t})}):c(t)}},8453:(t,e,i)=>{i.d(e,{R:()=>r,x:()=>l});var o=i(6540);const n={},s=o.createContext(n);function r(t){const e=o.useContext(s);return o.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function l(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(n):t.components||n:r(t.components),o.createElement(s.Provider,{value:e},t.children)}}}]); \ No newline at end of file diff --git a/assets/js/345ef4f9.9192bd69.js b/assets/js/345ef4f9.9192bd69.js new file mode 100644 index 000000000..4ef7038d7 --- /dev/null +++ b/assets/js/345ef4f9.9192bd69.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6509],{1183:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>a,contentTitle:()=>l,default:()=>u,frontMatter:()=>r,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"utilities/MKVToolNix","title":"MKVToolNix","description":"MKVToolNix is free and open source GUI frontend to a set of tools (mkvmerge, mkvinfo, mkvpropedit, mkvextract) to create, alter and inspect Matroska files under Linux, other \\\\*NIXes and Windows.","source":"@site/docs/utilities/MKVToolNix.mdx","sourceDirName":"utilities","slug":"/utilities/MKVToolNix","permalink":"/docs/utilities/MKVToolNix","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/MKVToolNix.mdx","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"title":"MKVToolNix","sidebar_position":4},"sidebar":"tutorialSidebar","previous":{"title":"ffmpeg","permalink":"/docs/utilities/ffmpeg"},"next":{"title":"rAV1ator","permalink":"/docs/utilities/rAV1ator"}}');var n=i(4848),s=i(8453);const r={title:"MKVToolNix",sidebar_position:4},l="MKVToolNix",a={},d=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Tips and tricks",id:"tips-and-tricks",level:2}];function c(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",ol:"ol",p:"p",ul:"ul",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"mkvtoolnix",children:"MKVToolNix"})}),"\n",(0,n.jsxs)("picture",{children:[(0,n.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/mkvtoolnix-gui-workload.avif",type:"image/avif"}),(0,n.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/mkvtoolnix-gui-workload.webp",alt:"MKVToolNix Workload"})]}),"\n",(0,n.jsx)("br",{}),"\n",(0,n.jsx)("br",{}),"\n",(0,n.jsx)(t.p,{children:"MKVToolNix is free and open source GUI frontend to a set of tools (mkvmerge, mkvinfo, mkvpropedit, mkvextract) to create, alter and inspect Matroska files under Linux, other *NIXes and Windows."}),"\n",(0,n.jsx)(t.p,{children:"MKVToolNix is built with Qt and written in C++."}),"\n",(0,n.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,n.jsx)(t.p,{children:"Fortunately, Moritz Bunkus (Creator) is sane enough to provide downloads for pretty much all popular desktop operating systems."}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:["Windows & Mac: ",(0,n.jsx)(t.a,{href:"https://mkvtoolnix.download/downloads.html",children:"MKVToolNix site"}),"."]}),"\n",(0,n.jsxs)(t.li,{children:["Linux: ",(0,n.jsx)(t.a,{href:"https://flathub.org/apps/org.bunkus.mkvtoolnix-gui",children:"Install as a Flatpak"})," or check your package manager."]}),"\n"]}),"\n",(0,n.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsx)(t.p,{children:'Drag and drop media files (or use "Add source files") to the application and modify, remux, demux, add streams, drop streams, anything and when done set your output destination and click "Start multiplexing" to start writing the output.'}),"\n",(0,n.jsx)(t.h2,{id:"tips-and-tricks",children:"Tips and tricks"}),"\n",(0,n.jsxs)(t.ol,{children:["\n",(0,n.jsxs)(t.li,{children:["You can import unencrypted BDMV (",(0,n.jsx)(t.code,{children:"index.bdmv"}),") or Blu-ray playlist files into MKVToolNix and it will prompt you to select which stream you would want to import."]}),"\n",(0,n.jsx)(t.li,{children:'You can set a WebM output in Output > Miscellaneous > "Create WebM compliant file"'}),"\n",(0,n.jsx)(t.li,{children:"You can split videos in multiple ways in Output > Splitting. Best of all? No freeze frames unlike in FFmpeg and no re-encoding required."}),"\n",(0,n.jsx)(t.li,{children:'You can edit metadata without remuxing (Albeit rather limited) in the "Header Editor".'}),"\n"]})]})}function u(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(c,{...e})}):c(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>r,x:()=>l});var o=i(6540);const n={},s=o.createContext(n);function r(e){const t=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),o.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/37c719d6.704969fd.js b/assets/js/37c719d6.704969fd.js deleted file mode 100644 index 919b726df..000000000 --- a/assets/js/37c719d6.704969fd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1227],{1165:(e,s,t)=>{t.d(s,{Ck:()=>u,kS:()=>h});var i=t(4848),n=t(8453),o=t(6540),r=t(4016),a=t(3517),c=t(3343),m=t(3864),l=t(8633),p=t(363);const u=({imageData:e,pixelsAbove:s,pixelsBelow:t})=>{const o={div:"div",...(0,n.R)()},m=({currentSlide:e,direction:s,slideCount:t,...n})=>"left"===s?(0,i.jsx)(l.A,{...n,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,left:10}}):(0,i.jsx)(p.A,{...n,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,right:10}});return(!s||s<0)&&(s=0),(!t||t<0)&&(t=0),(0,i.jsxs)(r.A,{justify:"space-between",vertical:!0,children:[(0,i.jsx)(o.div,{style:{height:`${s}px`}}),(0,i.jsx)(a.A,{arrows:!0,prevArrow:(0,i.jsx)(m,{direction:"left"}),nextArrow:(0,i.jsx)(m,{direction:"right"}),children:e.map((e=>(0,i.jsx)(c.A,{src:e.src},e.src)))}),(0,i.jsx)(o.div,{style:{height:`${t}px`}})]})},h=({tabMap:e,pixelsAbove:s,pixelsBelow:t})=>{const a={div:"div",...(0,n.R)()},[c,l]=(0,o.useState)(Object.keys(e)[0]);return(!s||s<0)&&(s=0),(!t||t<0)&&(t=0),(0,i.jsxs)(r.A,{justify:"space-between",vertical:!0,children:[(0,i.jsx)(a.div,{style:{height:`${s}px`}}),(0,i.jsx)(m.A,{tabList:Object.entries(e).map((([e,s])=>({key:e,label:s.label}))),activeTabKey:c,onTabChange:e=>{l(e)},children:e[c].component}),(0,i.jsx)(a.div,{style:{height:`${t}px`}})]})}},1800:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>m,contentTitle:()=>a,default:()=>u,frontMatter:()=>r,metadata:()=>c,toc:()=>l});var i=t(4848),n=t(8453),o=t(1165);const r={title:"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive",description:"SVT-AV1 2.1.0 just released, how does it compare to the previous version?",slug:"svt-av1-second-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-2.1.0-testing-blog-image.webp",hide_table_of_contents:!1},a="Introduction",c={permalink:"/blog/svt-av1-second-deep-dive",source:"@site/blog/2024-05-19-svt-av1-deep-dive2-v2-1-0.mdx",title:"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive",description:"SVT-AV1 2.1.0 just released, how does it compare to the previous version?",date:"2024-05-19T00:00:00.000Z",tags:[{inline:!0,label:"video",permalink:"/blog/tags/video"},{inline:!0,label:"compression",permalink:"/blog/tags/compression"},{inline:!0,label:"benchmarks",permalink:"/blog/tags/benchmarks"}],readingTime:35.215,hasTruncateMarker:!0,authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043",imageURL:"https://avatars.githubusercontent.com/u/93526043",key:null,page:null}],frontMatter:{title:"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive",description:"SVT-AV1 2.1.0 just released, how does it compare to the previous version?",slug:"svt-av1-second-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043",imageURL:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-2.1.0-testing-blog-image.webp",hide_table_of_contents:!1},unlisted:!1,prevItem:{title:"AV1 for Dummies",permalink:"/blog/av1-for-dummies"},nextItem:{title:"Encoding Animation with SVT-AV1: A Deep Dive",permalink:"/blog/svt-av1-deep-dive"}},m={authorsImageUrls:[void 0]},l=[{value:"Feedback",id:"feedback",level:2},{value:"Methodology",id:"methodology",level:2},{value:"Samples",id:"samples",level:2},{value:"Presets comparisons (-1 -> 13 12)",id:"presets-comparisons--1---13-12",level:2},{value:"Efficiency",id:"efficiency",level:3},{value:"Speed",id:"speed",level:3},{value:"Interpretation",id:"interpretation",level:3},{value:"TLDR",id:"tldr",level:3},{value:"SVT-AV1 v2.0.0 vs v2.1.0 presets comparisons:",id:"svt-av1-v200-vs-v210-presets-comparisons",level:2},{value:"preset -1: v2.0.0 vs v2.1.0",id:"preset--1-v200-vs-v210",level:3},{value:"preset 0: v2.0.0 vs v2.1.0",id:"preset-0-v200-vs-v210",level:3},{value:"preset 1: v2.0.0 vs v2.1.0",id:"preset-1-v200-vs-v210",level:3},{value:"preset 2: v2.0.0 vs v2.1.0",id:"preset-2-v200-vs-v210",level:3},{value:"preset 3: v2.0.0 vs v2.1.0",id:"preset-3-v200-vs-v210",level:3},{value:"preset 4: v2.0.0 vs v2.1.0",id:"preset-4-v200-vs-v210",level:3},{value:"preset 5: v2.0.0 vs v2.1.0",id:"preset-5-v200-vs-v210",level:3},{value:"preset 6: v2.0.0 vs v2.1.0",id:"preset-6-v200-vs-v210",level:3},{value:"preset 7: v2.0.0 vs v2.1.0",id:"preset-7-v200-vs-v210",level:3},{value:"preset 8: v2.0.0 vs v2.1.0",id:"preset-8-v200-vs-v210",level:3},{value:"preset 9: v2.0.0 vs v2.1.0",id:"preset-9-v200-vs-v210",level:3},{value:"preset 10: v2.0.0 vs v2.1.0",id:"preset-10-v200-vs-v210",level:3},{value:"preset 11: v2.0.0 vs v2.1.0",id:"preset-11-v200-vs-v210",level:3},{value:"preset 12: v2.0.0 vs v2.1.0",id:"preset-12-v200-vs-v210",level:3},{value:"TLDR",id:"tldr-1",level:3},{value:"Conclusion",id:"conclusion",level:2},{value:"Future",id:"future",level:2}];function p(e){const s={a:"a",blockquote:"blockquote",code:"code",del:"del",em:"em",h2:"h2",h3:"h3",img:"img",li:"li",p:"p",strong:"strong",ul:"ul",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.p,{children:"SVT-AV1, the most scalable AV1 encoder, has received a new update and one may wonder if the old presets recommendation still holds today. We will delve into that in this blog post, based on a series of speed and visual quality benchmarks with SSIMULACRA2 and XPSNR of SVT-AV1 2.1.0 on a corpus of varied animated clips."}),"\n",(0,i.jsx)(s.h2,{id:"feedback",children:"Feedback"}),"\n",(0,i.jsx)(s.p,{children:"I unfortunately never got to update the previous blog post with the image comparisons, and some people expressed concerns that this testing may not be representative of live action content. For the former, I will have to ask for your patience again, because this blog post won't initially contain image comparisons either, but this time they are being actively worked on, along with a magnificent comparisons component and this page will get updated once that is done. As for the latter, please be reassured that this testing in its entirety is perfectly representative of any modern content people typically encode: the diversity of japanese animation is rich and the content specifically chosen for this benchmark is relatively complex. From 3DCG to extremely noisy clips, we are far from the easy-to-compress static scenes of some slice-of-life show."}),"\n",(0,i.jsx)(s.p,{children:"I have also decided to complement this benchmark of another psychovisually-driven metric (XPSNR) so that double-checking is made easier. Thus, each graph possesses a SSIMULACRA2 version and a XPSNR version. Don't hesitate to switch between one another!"}),"\n",(0,i.jsx)(s.h2,{id:"methodology",children:"Methodology"}),"\n",(0,i.jsxs)(s.p,{children:["The resources available will range from ",(0,i.jsx)(s.em,{children:(0,i.jsx)(s.strong,{children:"graphs"})})," to ",(0,i.jsx)(s.del,{children:(0,i.jsx)(s.strong,{children:"image comparisons"})})," (WIP, for real this time). The ",(0,i.jsx)(s.em,{children:(0,i.jsx)(s.strong,{children:"former"})})," has the advantage of being easily understandable, showcasing pure efficiency comparisons between encoder parameters using metrics as the reference, while the ",(0,i.jsx)(s.strong,{children:"latter"})," are image samples from the files encoded during the tests that enable you to check quality for yourself, adding another layer of subjective interpretation to these comparisons."]}),"\n",(0,i.jsxs)(s.p,{children:["The testing methodology involves using relatively short video samples from a wide range of modern anime genre, which have been either losslessly encoded with ",(0,i.jsx)(s.code,{children:"x264 --qp 0"})," for ease of use or losslessly cut from their source. These lossless files are then pipped into SvtAv1EncApp ",(0,i.jsx)(s.em,{children:"directly"}),", meaning we are measuring the performance of a single encoder instance and not leveraging chunked encoding like any actual final AV1 encoding pipeline should. Once an encode is done, SSIMULACRA2 scores are calculated using the ",(0,i.jsx)(s.a,{href:"https://github.com/dnjulek/vapoursynth-ssimulacra2",children:"Zig implementation"}),", XPSNR scores on the other hand are calculated using a ",(0,i.jsx)(s.a,{href:"https://github.com/fraunhoferhhi/xpsnr",children:"ffmpeg filter"}),", and lots of useful data are aggregated to make the graphs for this benchmark, including encoding time, encode size (bitrate), and metrics scores. Bits per pixel scores (BPP) are calculated so that the ",(0,i.jsx)(s.code,{children:"Metric / BPP"})," graphs may represent the closest we have to real efficiency."]}),"\n",(0,i.jsx)(s.p,{children:"The clips used in this test were acquired legally. The Codec Wiki and its contributors do not endorse media piracy."}),"\n",(0,i.jsxs)(s.p,{children:["SvtAv1EncApp was compiled directly from the ",(0,i.jsx)(s.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/",children:"v2.0.0 and v2.1.0 source code"})," using the provided ",(0,i.jsx)(s.code,{children:"Build/linux/build.sh"})," script, Clang 16.0.6, and Profile-Guided Optimization (PGO). The testing machine is comprised of an i3 12100 with 16GB of 3200MHz CL14 DDR4 RAM in Arch Linux with kernel 6.7.7 and the performance governor enabled. All encodes have been made in the same session without rebooting."]}),"\n",(0,i.jsxs)(s.p,{children:["This testing was conducted within the ",(0,i.jsx)(s.a,{href:"https://discord.gg/83dRFDFDp7",children:"AV1 Weeb Edition"})," Discord server, which is focused on encoding animated content in AV1."]}),"\n",(0,i.jsx)(s.h2,{id:"samples",children:"Samples"}),"\n",(0,i.jsx)(s.p,{children:"The samples are as follows:"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:["11s ",(0,i.jsx)(s.code,{children:"Blame!"})," clip which sports 3DCG action with lots of grain, effects and high-contrast elements."]}),"\n",(0,i.jsxs)(s.li,{children:["13s ",(0,i.jsx)(s.code,{children:"Blue Lock"})," clip which sports rapid camera movements, complex geometry and high-contrast elements."]}),"\n",(0,i.jsxs)(s.li,{children:["5s ",(0,i.jsx)(s.code,{children:"Spy x Family"})," first ending sequence with an extremely high amount of dynamic noise. New most complex source of this set."]}),"\n",(0,i.jsxs)(s.li,{children:["12s ",(0,i.jsx)(s.code,{children:"Jigokuraku (Hell's Paradise)"})," flashback clip with huge static grain in a very dark scenery and some action."]}),"\n",(0,i.jsxs)(s.li,{children:["5s ",(0,i.jsx)(s.code,{children:"The Garden of Sinners"})," clean but fast-paced 3DCG scene with explosions."]}),"\n"]}),"\n",(0,i.jsx)(s.p,{children:"The resolution of every clip is 1080p, except for the first one which is 1920x804."}),"\n",(0,i.jsxs)(s.blockquote,{children:["\n",(0,i.jsx)(s.p,{children:(0,i.jsxs)(s.strong,{children:["All clips have been encoded in a wide quality range, from ",(0,i.jsx)(s.code,{children:"--crf 6"})," to ",(0,i.jsx)(s.code,{children:"--crf 46"}),", by increments of 4."]})}),"\n"]}),"\n",(0,i.jsx)(s.p,{children:"Without further ado, let's start with the first comparisons!"}),"\n",(0,i.jsxs)(s.h2,{id:"presets-comparisons--1---13-12",children:["Presets comparisons (-1 -> ",(0,i.jsx)(s.del,{children:"13"})," 12)"]}),"\n",(0,i.jsx)(s.p,{children:(0,i.jsxs)(s.strong,{children:["In the following graphs, you may find comparisons between all SVT-AV1 presets, ranging from the slowest ",(0,i.jsx)(s.code,{children:"--preset -1"})," to the fastest ",(0,i.jsx)(s.code,{children:"--preset 12"}),"."]})}),"\n",(0,i.jsxs)(s.blockquote,{children:["\n",(0,i.jsxs)(s.p,{children:["Yes, you heard that right. Preset 7 and 13 are no more in ",(0,i.jsx)(s.strong,{children:"v2.1.0"}),". This new update, like the previous one, mostly consisted of optimizing the presets trade-offs. The devs have made the choice to map ",(0,i.jsx)(s.code,{children:"preset 7"})," to ",(0,i.jsx)(s.code,{children:"preset 6"})," and ",(0,i.jsx)(s.code,{children:"preset 13"})," to ",(0,i.jsx)(s.code,{children:"preset 12"})," due to the lack of spacing between the new presets. We will discuss the implications of this further ahead."]}),"\n"]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.code,{children:"--preset X"})," is the only parameter used here, in conjunction with the CRF values. That means everything else is default. The defaults worth mentioning are:"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.code,{children:"--tune 1"}),": tune PSNR"]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.code,{children:"--aq-mode 2"}),": variance deltaq"]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.code,{children:"--enable-qm 0"}),": quantisation matrices disabled"]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.code,{children:"--irefresh-type 2"}),": closed GOP"]}),"\n",(0,i.jsxs)(s.li,{children:[(0,i.jsx)(s.code,{children:"--enable-tf 1"}),": temporal filtering enabled"]}),"\n"]}),"\n",(0,i.jsx)(s.p,{children:"And more, like CDEF and restoration enabled, overlays and film-grain disabled..."}),"\n",(0,i.jsx)(s.h3,{id:"efficiency",children:"Efficiency"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"First of all, here are the full efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"This is all very cool, but visually bloated."}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:'Now the same graphs but focusing on the "high quality" range (CRF6 -> 22):'}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:'Same, but now focusing on the "low quality" range (CRF26 -> 46):'}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:["If we now focus on ",(0,i.jsx)(s.strong,{children:"presets 4"}),' and below, where it\'s more difficult to discern the differences between presets, we get this at "high quality":']}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:'And the following at "low quality":'}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.h3,{id:"speed",children:"Speed"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.strong,{children:"Let's now see speed comparisons between all presets:"})}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speed/SVT-1_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speed/SVT-1_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speed/SVT-1_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speed/SVT-1_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speed/SVT-1_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Once is not custom, ",(0,i.jsx)(s.strong,{children:"preset -1"})," is so abysmally slow it makes the graph unusable."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsxs)(s.li,{children:["Same, but without the placebo ",(0,i.jsx)(s.strong,{children:"preset -1"}),":"]}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speednomr/SVT0_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speednomr/SVT0_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speednomr/SVT0_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speednomr/SVT0_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speednomr/SVT0_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Lastly, here is what it looks like with a logarithmic scale:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speedlog/SVT-1_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speedlog/SVT-1_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speedlog/SVT-1_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speedlog/SVT-1_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speedlog/SVT-1_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.h3,{id:"interpretation",children:"Interpretation"}),"\n",(0,i.jsxs)(s.p,{children:["As for interpreting the results, it would seem like ",(0,i.jsx)(s.strong,{children:"preset 2"})," and ",(0,i.jsx)(s.strong,{children:"preset 4"})," remain all-around very balanced presets, with ",(0,i.jsx)(s.strong,{children:"preset 3"})," being in a nice in-between spot, an improvement over v2.0.0's ",(0,i.jsx)(s.strong,{children:"preset 3"})," in a way. We will better understand the reasons for this when we'll compare the new version to the last, a bit after."]}),"\n",(0,i.jsxs)(s.p,{children:["The quality gap between ",(0,i.jsx)(s.strong,{children:"preset 2"})," and ",(0,i.jsx)(s.strong,{children:"preset 1"})," is usually pretty narrow, however the speed penalty from going to ",(0,i.jsx)(s.strong,{children:"preset 1"})," is ~2x, when the penalty of going from ",(0,i.jsx)(s.strong,{children:"preset 3"})," to ",(0,i.jsx)(s.strong,{children:"preset 2"})," is closer to ~1.5x. As such, ",(0,i.jsx)(s.strong,{children:"preset 1"})," enters placebo territory, and considering the very little benefits of going any lower than it, compared to the huge performance loss of even lower presets, I advise you not to waste encoding resources on ",(0,i.jsx)(s.strong,{children:"preset 0"})," and ",(0,i.jsx)(s.strong,{children:"preset -1"}),". This applies especially at medium to high quality, however at extremely low quality like the CRF40 range, we can still see some small gains from these placebo presets."]}),"\n",(0,i.jsxs)(s.p,{children:["When we start talking about faster presets though, things are pretty different from previous versions: ",(0,i.jsx)(s.strong,{children:"presets 5 to 9"})," behave similarly on the graphs and seem to stand apart from their slower counterparts by just a bit. If you can bear the speed of ",(0,i.jsx)(s.strong,{children:"preset 4"}),", you should definitely be going for it, however if fast encoding is a necessity, for example in the case of realtime transcoding or streaming, ",(0,i.jsx)(s.strong,{children:"presets 5 through 9"})," will serve you right with great efficiency/speed trade-offs between one another. No preset in that range particularly stands out from the others, so simply pick one depending on your performance needs."]}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Presets 10 to 12"})," are pretty inefficient, and to be avoided if possible. They can still be of use in a convex-hull scenario, but in the case of realtime transcoding, you may be better off with a hardware encoder like the ones found in RTX 4000 or Arc GPUs, especially since SVT-AV1's target bitrate mode is even less efficient than CRF mode."]}),"\n",(0,i.jsx)(s.h3,{id:"tldr",children:"TLDR"}),"\n",(0,i.jsxs)(s.p,{children:["The same conclusions as the previous blog post can be made:\n",(0,i.jsxs)(s.strong,{children:["clear quality gains can be observed as we decrease presets, until ",(0,i.jsx)(s.strong,{children:"preset 2"}),", however the effectiveness of dropping presets is noticeably less and less important as quality is increased."]})]}),"\n",(0,i.jsx)(s.p,{children:"In the next part, we will evaluate the differences in efficiency and speed of every presets when updating from SVT-AV1 2.0.0 to 2.1.0, which should enable an increase of nuance from the previous results alone."}),"\n",(0,i.jsx)(s.h2,{id:"svt-av1-v200-vs-v210-presets-comparisons",children:"SVT-AV1 v2.0.0 vs v2.1.0 presets comparisons:"}),"\n",(0,i.jsxs)(s.p,{children:["Two months ago, I conducted a similar test to this one to compare the presets evolution between versions ",(0,i.jsx)(s.strong,{children:"1.8.0"})," and ",(0,i.jsx)(s.strong,{children:"2.0.0"}),". The results were pretty unsatisfying: I noticed that ",(0,i.jsx)(s.strong,{children:"presets -1 to 8"})," in ",(0,i.jsx)(s.strong,{children:"v2.0.0"})," performed like the old ",(0,i.jsx)(s.strong,{children:"presets 0 to 9"})," did in ",(0,i.jsx)(s.strong,{children:"v1.8.0"}),". We basically saw an efficiency regression at a given preset, and speedups did not follow suit as well as we would have anticipated. All in all, it wasn't all that bad, it suffice to say you could simply drop a preset from before and you were good to go again. What was more concerning however is that the release note claimed important speedups that did not impact efficiency and my testing proved otherwise. My theory is that due to the dev team testing methodology, which consist of mostly pretty low resolution clips and non-psychovisual metrics like PSNR, SSIM or bad psychovisual metrics like VMAF, it's very well possible they were tricked into thinking they introduced improvements as they tweaked the presets when in reality the metrics simply didn't notice the quality degradation. Such issue is an additional reason why the industry should adopt more competent metrics, ones that better correlate with the human vision, to improve encoders in more impactful ways and better avoid pointless regressions."]}),"\n",(0,i.jsx)(s.p,{children:"So the question for today's testing is: have the SVT-AV1 devs redeemed themselves and actually improved the presets trade-offs this time around? Let's find out!"}),"\n",(0,i.jsxs)(s.h3,{id:"preset--1-v200-vs-v210",children:[(0,i.jsx)(s.code,{children:"preset -1"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:(0,i.jsx)(s.strong,{children:'Let\'s start off with a battle of the placebos, with the efficiency at "high quality":'})}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:'And the efficiency at "low quality":'}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"Yes, this is a bit underwhelming, but you can't just improve the best an encoder has to offer with just tweaking right?"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Now, let's compare their respective speeds:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT-1_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT-1_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT-1_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT-1_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT-1_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"Let's be grateful it became ever so slightly faster, I guess."}),"\n",(0,i.jsxs)(s.h3,{id:"preset-0-v200-vs-v210",children:[(0,i.jsx)(s.code,{children:"preset 0"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Overall, efficiency wise, this new ",(0,i.jsx)(s.strong,{children:"preset 0"})," places itself in-between old ",(0,i.jsx)(s.strong,{children:"preset -1"})," and ",(0,i.jsx)(s.strong,{children:"0"})]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT0_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT0_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT0_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT0_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT0_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Interestingly enough, its speed is much closer to the old ",(0,i.jsx)(s.strong,{children:"preset 0"})," than to the old ",(0,i.jsx)(s.strong,{children:"preset -1"}),". This means ",(0,i.jsx)(s.strong,{children:"preset 0"})," was genuinely improved over v2.0.0!"]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-1-v200-vs-v210",children:[(0,i.jsx)(s.code,{children:"preset 1"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["In efficiency, this new ",(0,i.jsx)(s.strong,{children:"preset 1"})," is often equal to old ",(0,i.jsx)(s.strong,{children:"preset 0"}),", else in-between old ",(0,i.jsx)(s.strong,{children:"preset 0 and 1"}),"."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT1_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT1_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT1_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT1_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT1_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["We observe that the new preset is a bit closer to old ",(0,i.jsx)(s.strong,{children:"preset 1"})," speeds than it is to old ",(0,i.jsx)(s.strong,{children:"preset 0"})," speeds. Good news!"]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-2-v200-vs-v210",children:[(0,i.jsx)(s.code,{children:"preset 2"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"Oh well, that's awkward."}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT2_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT2_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT2_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT2_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT2_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Speed was left untouched too, meaning ",(0,i.jsx)(s.strong,{children:"preset 2"})," is unchanged in v2.1.0."]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-3-v200-vs-v210",children:[(0,i.jsx)(s.code,{children:"preset 3"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["The new ",(0,i.jsx)(s.strong,{children:"preset 3"}),"'s efficiency is the same as the old one."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT3_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT3_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT3_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT3_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT3_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"However, the preset got slightly faster, so this is a speedup!"}),"\n",(0,i.jsxs)(s.h3,{id:"preset-4-v200-vs-v210",children:[(0,i.jsx)(s.code,{children:"preset 4"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["We can observe that ",(0,i.jsx)(s.strong,{children:"preset 4"})," got slightly to moderately worse efficiency wise."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT4_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT4_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT4_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT4_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT4_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"Fortunately, the consequence of that slight efficiency decrease is a big performance improvement!"}),"\n",(0,i.jsxs)(s.h3,{id:"preset-5-v200-vs-v210",children:[(0,i.jsx)(s.code,{children:"preset 5"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Preset 5"})," seems to have gotten ever so slightly worse efficiency wise."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT5_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT5_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT5_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT5_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT5_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"Yet it became slightly faster, this is overall a good trade-off."}),"\n",(0,i.jsxs)(s.h3,{id:"preset-6-v200-vs-v210",children:[(0,i.jsx)(s.code,{children:"preset 6"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["The new ",(0,i.jsx)(s.strong,{children:"preset 6"})," has a huge responsibility: being able to compensate in the absence of its ",(0,i.jsx)(s.strong,{children:"preset 7"})," sibling. It seems to performs in-between old ",(0,i.jsx)(s.strong,{children:"preset 6 and 7"}),", usually closer to old ",(0,i.jsx)(s.strong,{children:"7"}),"."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT6_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT6_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT6_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT6_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT6_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Preset 6"})," is now ever so slightly slower to old ",(0,i.jsx)(s.strong,{children:"7"}),", this is an interesting trade-off, overall a win over old ",(0,i.jsx)(s.strong,{children:"7"}),"."]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-7-v200-vs-v210",children:[(0,i.jsx)(s.code,{children:"preset 7"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,i.jsxs)(s.p,{children:["Again, there is no preset 7. Actually, it's preset 6 that disappeared but I'm not remaking the graphs just for fun. If you select preset 6, you will be granted the following message: ",(0,i.jsx)(s.code,{children:"Svt[warn]: Preset M6 is mapped to M7."})]}),"\n",(0,i.jsx)(s.p,{children:(0,i.jsx)(s.img,{alt:"always_has_been",src:t(9502).A+"",width:"833",height:"466"})}),"\n",(0,i.jsxs)(s.h3,{id:"preset-8-v200-vs-v210",children:[(0,i.jsx)(s.code,{children:"preset 8"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["In efficiency, this new ",(0,i.jsx)(s.strong,{children:"preset 8"})," is sometimes equal or slightly worse to the old ",(0,i.jsx)(s.strong,{children:"8"}),", and sometimes equal or slightly worse than old ",(0,i.jsx)(s.strong,{children:"7"}),"..."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT8_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT8_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT8_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT8_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT8_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Overall, the speed is pretty much unchanged from old ",(0,i.jsx)(s.strong,{children:"8"}),". It looks like a slight regression, that's pretty disappointing."]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-9-v200-vs-v210",children:[(0,i.jsx)(s.code,{children:"preset 9"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["The new ",(0,i.jsx)(s.strong,{children:"preset 9"})," is the same as ever, ever so slightly better in some scenario but nothing groundbreaking."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT9_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT9_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT9_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT9_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT9_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"Its speed remains the same, sometimes ever so slightly slower. Basically the preset is pretty much unchanged, which may as well be a relief, as the last usable preset of the encoder."}),"\n",(0,i.jsxs)(s.h3,{id:"preset-10-v200-vs-v210",children:[(0,i.jsx)(s.code,{children:"preset 10"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Preset 10"})," is slightly to moderately worse efficiency wise."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT10_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT10_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT10_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT10_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT10_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"Its speed is mostly the same, sometimes ever so slightly faster. It's a wash, avoid this preset at all costs!"}),"\n",(0,i.jsxs)(s.h3,{id:"preset-11-v200-vs-v210",children:[(0,i.jsx)(s.code,{children:"preset 11"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Preset 11"}),"'s efficiency is untouched."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT11_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT11_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT11_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT11_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT11_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:[(0,i.jsx)(s.strong,{children:"Preset 11"}),"'s speed is unchanged as well."]}),"\n",(0,i.jsxs)(s.h3,{id:"preset-12-v200-vs-v210",children:[(0,i.jsx)(s.code,{children:"preset 12"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(s.p,{children:["Just as ",(0,i.jsx)(s.strong,{children:"preset 6"}),", ",(0,i.jsx)(s.strong,{children:"preset 12"})," is now mapped to ",(0,i.jsx)(s.strong,{children:"13"}),", and unsurprisingly, its efficiency is equal to old ",(0,i.jsx)(s.strong,{children:"13"}),"."]}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(o.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,i.jsx)(o.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT13_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT13_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT13_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT13_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT13_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(s.p,{children:"The speeds seem to be in-between old 12 and 13, so potentially a slight speedup. Still, nothing to get excited at."}),"\n",(0,i.jsx)(s.h3,{id:"tldr-1",children:"TLDR"}),"\n",(0,i.jsxs)(s.p,{children:["From these extensive comparisons, it appears that some presets have received genuine improvements in their respective efficiency/speed trade-off.\nSome presets, like ",(0,i.jsx)(s.strong,{children:"-1"}),", ",(0,i.jsx)(s.strong,{children:"0"}),", ",(0,i.jsx)(s.strong,{children:"1"})," and ",(0,i.jsx)(s.strong,{children:"3"}),", received the most significant improvements, followed by ",(0,i.jsx)(s.strong,{children:"4"}),", ",(0,i.jsx)(s.strong,{children:"5"})," and ",(0,i.jsx)(s.strong,{children:"6"})," with overall beneficial new trade-offs. ",(0,i.jsx)(s.strong,{children:"Preset 12"})," got slightly faster too. On the other hand, ",(0,i.jsx)(s.strong,{children:"presets 8 and 10"})," seemed to have regressed slightly, and ",(0,i.jsx)(s.strong,{children:"presets 2 and 9"})," are perfectly unchanged from v2.0.0."]}),"\n",(0,i.jsx)(s.h2,{id:"conclusion",children:"Conclusion"}),"\n",(0,i.jsxs)(s.p,{children:["SVT-AV1 2.1.0 introduced some welcomed improvements. ",(0,i.jsx)(s.strong,{children:"Presets 2 through 4"})," remain the king of optimal AV1 encoding, while ",(0,i.jsx)(s.strong,{children:"presets 5 through 9"})," stand as good options for the people that find ",(0,i.jsx)(s.strong,{children:"2-4"})," to be too slow for their liking."]}),"\n",(0,i.jsx)(s.p,{children:"Let's be honest a second, not much as changed in SVT-AV1 since the first blog post. There was no need to redo all the parameter testing for the simple reason that their behavior remained the same, as did the conclusions drawn from them. I hope this article wasn't disappointing in a sense... Still, be reassured, this was just an appetizer, there will be more in the near future!"}),"\n",(0,i.jsxs)(s.p,{children:["By the way, did you know that the ",(0,i.jsx)(s.strong,{children:(0,i.jsx)(s.a,{href:"https://github.com/gianni-rosato/svt-av1-psy/",children:"SVT-AV1-PSY project"})})," was initiated a few months ago? Its defaults were tailored according to the testing done in the last blog post, allowing a free efficiency boost for anyone not keen to tweak their encoders. Furthermore, SVT-AV1-PSY introduced a sharpness parameter to control distortion, a quarter-step quantizer for more CRF precision, a new subjective SSIM tune, Dolby Vision support, frame luma bias, and some other knobs to improve the appeal and consistency of your encodes. It is actively maintained by a group of talented people, including the main dev of the aom-av1-lavish fork of aomenc. Some of the changes are being backported to mainline SVT-AV1 due to the increased interest of the mainline devs. Please check it out!"]}),"\n",(0,i.jsx)(s.p,{children:"Hopefully, this comprehensive second deep dive should give you a helpful new starting point for choosing settings when encoding with the latest SVT-AV1(-PSY) 2.1.0."}),"\n",(0,i.jsx)(s.h2,{id:"future",children:"Future"}),"\n",(0,i.jsx)(s.p,{children:"My plans for the future regarding the blog post include:"}),"\n",(0,i.jsxs)(s.ul,{children:["\n",(0,i.jsx)(s.li,{children:"polishing this blog post and aggrementing it of image comparisons."}),"\n",(0,i.jsx)(s.li,{children:"a follow-up article in the relatively near future about giving you encoding tips and explaining common AV1 encoding knowlegde, for instance showcasing why film grain synthesis is a game-changer or why chunked encoding can prove beneficial to your encoding pipeline."}),"\n",(0,i.jsx)(s.li,{children:"an article focused on observing the evolution of SVT-AV1 since the beginning of its development, as well as comparisons with current aomenc, rav1e and SVT-AV1-PSY, including a quick look at the current state of AVM (development ground for AV2) in comparison to VVC's state."}),"\n"]}),"\n",(0,i.jsx)(s.p,{children:"Thanks for reading!"}),"\n"]})}function u(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,i.jsx)(s,{...e,children:(0,i.jsx)(p,{...e})}):p(e)}},9502:(e,s,t)=>{t.d(s,{A:()=>i});const i=t.p+"assets/images/preset_7_meme-db92f83a118086187f0de0dea1362caf.webp"}}]); \ No newline at end of file diff --git a/assets/js/37c719d6.da20abad.js b/assets/js/37c719d6.da20abad.js new file mode 100644 index 000000000..774b5471a --- /dev/null +++ b/assets/js/37c719d6.da20abad.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1227],{1165:(e,s,t)=>{t.d(s,{Ck:()=>u,kS:()=>h});var i=t(4848),n=t(8453),o=t(6540),r=t(4016),a=t(3517),c=t(3343),m=t(3864),l=t(8633),p=t(363);const u=({imageData:e,pixelsAbove:s,pixelsBelow:t})=>{const o={div:"div",...(0,n.R)()},m=({currentSlide:e,direction:s,slideCount:t,...n})=>"left"===s?(0,i.jsx)(l.A,{...n,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,left:10}}):(0,i.jsx)(p.A,{...n,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,right:10}});return(!s||s<0)&&(s=0),(!t||t<0)&&(t=0),(0,i.jsxs)(r.A,{justify:"space-between",vertical:!0,children:[(0,i.jsx)(o.div,{style:{height:`${s}px`}}),(0,i.jsx)(a.A,{arrows:!0,prevArrow:(0,i.jsx)(m,{direction:"left"}),nextArrow:(0,i.jsx)(m,{direction:"right"}),children:e.map((e=>(0,i.jsx)(c.A,{src:e.src},e.src)))}),(0,i.jsx)(o.div,{style:{height:`${t}px`}})]})},h=({tabMap:e,pixelsAbove:s,pixelsBelow:t})=>{const a={div:"div",...(0,n.R)()},[c,l]=(0,o.useState)(Object.keys(e)[0]);return(!s||s<0)&&(s=0),(!t||t<0)&&(t=0),(0,i.jsxs)(r.A,{justify:"space-between",vertical:!0,children:[(0,i.jsx)(a.div,{style:{height:`${s}px`}}),(0,i.jsx)(m.A,{tabList:Object.entries(e).map((([e,s])=>({key:e,label:s.label}))),activeTabKey:c,onTabChange:e=>{l(e)},children:e[c].component}),(0,i.jsx)(a.div,{style:{height:`${t}px`}})]})}},1800:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>m,contentTitle:()=>c,default:()=>u,frontMatter:()=>a,metadata:()=>i,toc:()=>l});var i=t(3165),n=t(4848),o=t(8453),r=t(1165);const a={title:"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive",description:"SVT-AV1 2.1.0 just released, how does it compare to the previous version?",slug:"svt-av1-second-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-2.1.0-testing-blog-image.webp",hide_table_of_contents:!1},c="Introduction",m={authorsImageUrls:[void 0]},l=[{value:"Feedback",id:"feedback",level:2},{value:"Methodology",id:"methodology",level:2},{value:"Samples",id:"samples",level:2},{value:"Presets comparisons (-1 -> 13 12)",id:"presets-comparisons--1---13-12",level:2},{value:"Efficiency",id:"efficiency",level:3},{value:"Speed",id:"speed",level:3},{value:"Interpretation",id:"interpretation",level:3},{value:"TLDR",id:"tldr",level:3},{value:"SVT-AV1 v2.0.0 vs v2.1.0 presets comparisons:",id:"svt-av1-v200-vs-v210-presets-comparisons",level:2},{value:"preset -1: v2.0.0 vs v2.1.0",id:"preset--1-v200-vs-v210",level:3},{value:"preset 0: v2.0.0 vs v2.1.0",id:"preset-0-v200-vs-v210",level:3},{value:"preset 1: v2.0.0 vs v2.1.0",id:"preset-1-v200-vs-v210",level:3},{value:"preset 2: v2.0.0 vs v2.1.0",id:"preset-2-v200-vs-v210",level:3},{value:"preset 3: v2.0.0 vs v2.1.0",id:"preset-3-v200-vs-v210",level:3},{value:"preset 4: v2.0.0 vs v2.1.0",id:"preset-4-v200-vs-v210",level:3},{value:"preset 5: v2.0.0 vs v2.1.0",id:"preset-5-v200-vs-v210",level:3},{value:"preset 6: v2.0.0 vs v2.1.0",id:"preset-6-v200-vs-v210",level:3},{value:"preset 7: v2.0.0 vs v2.1.0",id:"preset-7-v200-vs-v210",level:3},{value:"preset 8: v2.0.0 vs v2.1.0",id:"preset-8-v200-vs-v210",level:3},{value:"preset 9: v2.0.0 vs v2.1.0",id:"preset-9-v200-vs-v210",level:3},{value:"preset 10: v2.0.0 vs v2.1.0",id:"preset-10-v200-vs-v210",level:3},{value:"preset 11: v2.0.0 vs v2.1.0",id:"preset-11-v200-vs-v210",level:3},{value:"preset 12: v2.0.0 vs v2.1.0",id:"preset-12-v200-vs-v210",level:3},{value:"TLDR",id:"tldr-1",level:3},{value:"Conclusion",id:"conclusion",level:2},{value:"Future",id:"future",level:2}];function p(e){const s={a:"a",blockquote:"blockquote",code:"code",del:"del",em:"em",h2:"h2",h3:"h3",img:"img",li:"li",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.p,{children:"SVT-AV1, the most scalable AV1 encoder, has received a new update and one may wonder if the old presets recommendation still holds today. We will delve into that in this blog post, based on a series of speed and visual quality benchmarks with SSIMULACRA2 and XPSNR of SVT-AV1 2.1.0 on a corpus of varied animated clips."}),"\n",(0,n.jsx)(s.h2,{id:"feedback",children:"Feedback"}),"\n",(0,n.jsx)(s.p,{children:"I unfortunately never got to update the previous blog post with the image comparisons, and some people expressed concerns that this testing may not be representative of live action content. For the former, I will have to ask for your patience again, because this blog post won't initially contain image comparisons either, but this time they are being actively worked on, along with a magnificent comparisons component and this page will get updated once that is done. As for the latter, please be reassured that this testing in its entirety is perfectly representative of any modern content people typically encode: the diversity of japanese animation is rich and the content specifically chosen for this benchmark is relatively complex. From 3DCG to extremely noisy clips, we are far from the easy-to-compress static scenes of some slice-of-life show."}),"\n",(0,n.jsx)(s.p,{children:"I have also decided to complement this benchmark of another psychovisually-driven metric (XPSNR) so that double-checking is made easier. Thus, each graph possesses a SSIMULACRA2 version and a XPSNR version. Don't hesitate to switch between one another!"}),"\n",(0,n.jsx)(s.h2,{id:"methodology",children:"Methodology"}),"\n",(0,n.jsxs)(s.p,{children:["The resources available will range from ",(0,n.jsx)(s.em,{children:(0,n.jsx)(s.strong,{children:"graphs"})})," to ",(0,n.jsx)(s.del,{children:(0,n.jsx)(s.strong,{children:"image comparisons"})})," (WIP, for real this time). The ",(0,n.jsx)(s.em,{children:(0,n.jsx)(s.strong,{children:"former"})})," has the advantage of being easily understandable, showcasing pure efficiency comparisons between encoder parameters using metrics as the reference, while the ",(0,n.jsx)(s.strong,{children:"latter"})," are image samples from the files encoded during the tests that enable you to check quality for yourself, adding another layer of subjective interpretation to these comparisons."]}),"\n",(0,n.jsxs)(s.p,{children:["The testing methodology involves using relatively short video samples from a wide range of modern anime genre, which have been either losslessly encoded with ",(0,n.jsx)(s.code,{children:"x264 --qp 0"})," for ease of use or losslessly cut from their source. These lossless files are then pipped into SvtAv1EncApp ",(0,n.jsx)(s.em,{children:"directly"}),", meaning we are measuring the performance of a single encoder instance and not leveraging chunked encoding like any actual final AV1 encoding pipeline should. Once an encode is done, SSIMULACRA2 scores are calculated using the ",(0,n.jsx)(s.a,{href:"https://github.com/dnjulek/vapoursynth-ssimulacra2",children:"Zig implementation"}),", XPSNR scores on the other hand are calculated using a ",(0,n.jsx)(s.a,{href:"https://github.com/fraunhoferhhi/xpsnr",children:"ffmpeg filter"}),", and lots of useful data are aggregated to make the graphs for this benchmark, including encoding time, encode size (bitrate), and metrics scores. Bits per pixel scores (BPP) are calculated so that the ",(0,n.jsx)(s.code,{children:"Metric / BPP"})," graphs may represent the closest we have to real efficiency."]}),"\n",(0,n.jsx)(s.p,{children:"The clips used in this test were acquired legally. The Codec Wiki and its contributors do not endorse media piracy."}),"\n",(0,n.jsxs)(s.p,{children:["SvtAv1EncApp was compiled directly from the ",(0,n.jsx)(s.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/",children:"v2.0.0 and v2.1.0 source code"})," using the provided ",(0,n.jsx)(s.code,{children:"Build/linux/build.sh"})," script, Clang 16.0.6, and Profile-Guided Optimization (PGO). The testing machine is comprised of an i3 12100 with 16GB of 3200MHz CL14 DDR4 RAM in Arch Linux with kernel 6.7.7 and the performance governor enabled. All encodes have been made in the same session without rebooting."]}),"\n",(0,n.jsxs)(s.p,{children:["This testing was conducted within the ",(0,n.jsx)(s.a,{href:"https://discord.gg/83dRFDFDp7",children:"AV1 Weeb Edition"})," Discord server, which is focused on encoding animated content in AV1."]}),"\n",(0,n.jsx)(s.h2,{id:"samples",children:"Samples"}),"\n",(0,n.jsx)(s.p,{children:"The samples are as follows:"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:["11s ",(0,n.jsx)(s.code,{children:"Blame!"})," clip which sports 3DCG action with lots of grain, effects and high-contrast elements."]}),"\n",(0,n.jsxs)(s.li,{children:["13s ",(0,n.jsx)(s.code,{children:"Blue Lock"})," clip which sports rapid camera movements, complex geometry and high-contrast elements."]}),"\n",(0,n.jsxs)(s.li,{children:["5s ",(0,n.jsx)(s.code,{children:"Spy x Family"})," first ending sequence with an extremely high amount of dynamic noise. New most complex source of this set."]}),"\n",(0,n.jsxs)(s.li,{children:["12s ",(0,n.jsx)(s.code,{children:"Jigokuraku (Hell's Paradise)"})," flashback clip with huge static grain in a very dark scenery and some action."]}),"\n",(0,n.jsxs)(s.li,{children:["5s ",(0,n.jsx)(s.code,{children:"The Garden of Sinners"})," clean but fast-paced 3DCG scene with explosions."]}),"\n"]}),"\n",(0,n.jsx)(s.p,{children:"The resolution of every clip is 1080p, except for the first one which is 1920x804."}),"\n",(0,n.jsxs)(s.blockquote,{children:["\n",(0,n.jsx)(s.p,{children:(0,n.jsxs)(s.strong,{children:["All clips have been encoded in a wide quality range, from ",(0,n.jsx)(s.code,{children:"--crf 6"})," to ",(0,n.jsx)(s.code,{children:"--crf 46"}),", by increments of 4."]})}),"\n"]}),"\n",(0,n.jsx)(s.p,{children:"Without further ado, let's start with the first comparisons!"}),"\n",(0,n.jsxs)(s.h2,{id:"presets-comparisons--1---13-12",children:["Presets comparisons (-1 -> ",(0,n.jsx)(s.del,{children:"13"})," 12)"]}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsxs)(s.strong,{children:["In the following graphs, you may find comparisons between all SVT-AV1 presets, ranging from the slowest ",(0,n.jsx)(s.code,{children:"--preset -1"})," to the fastest ",(0,n.jsx)(s.code,{children:"--preset 12"}),"."]})}),"\n",(0,n.jsxs)(s.blockquote,{children:["\n",(0,n.jsxs)(s.p,{children:["Yes, you heard that right. Preset 7 and 13 are no more in ",(0,n.jsx)(s.strong,{children:"v2.1.0"}),". This new update, like the previous one, mostly consisted of optimizing the presets trade-offs. The devs have made the choice to map ",(0,n.jsx)(s.code,{children:"preset 7"})," to ",(0,n.jsx)(s.code,{children:"preset 6"})," and ",(0,n.jsx)(s.code,{children:"preset 13"})," to ",(0,n.jsx)(s.code,{children:"preset 12"})," due to the lack of spacing between the new presets. We will discuss the implications of this further ahead."]}),"\n"]}),"\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"--preset X"})," is the only parameter used here, in conjunction with the CRF values. That means everything else is default. The defaults worth mentioning are:"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"--tune 1"}),": tune PSNR"]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"--aq-mode 2"}),": variance deltaq"]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"--enable-qm 0"}),": quantisation matrices disabled"]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"--irefresh-type 2"}),": closed GOP"]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.code,{children:"--enable-tf 1"}),": temporal filtering enabled"]}),"\n"]}),"\n",(0,n.jsx)(s.p,{children:"And more, like CDEF and restoration enabled, overlays and film-grain disabled..."}),"\n",(0,n.jsx)(s.h3,{id:"efficiency",children:"Efficiency"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"First of all, here are the full efficiency graphs:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/full/SVT-1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsx)(s.p,{children:"This is all very cool, but visually bloated."}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:'Now the same graphs but focusing on the "high quality" range (CRF6 -> 22):'}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/hq/SVT-1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:'Same, but now focusing on the "low quality" range (CRF26 -> 46):'}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/lq/SVT-1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:["If we now focus on ",(0,n.jsx)(s.strong,{children:"presets 4"}),' and below, where it\'s more difficult to discern the differences between presets, we get this at "high quality":']}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/hq/SVT-1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:'And the following at "low quality":'}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/mrto4/lq/SVT-1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsx)(s.h3,{id:"speed",children:"Speed"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.strong,{children:"Let's now see speed comparisons between all presets:"})}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speed/SVT-1_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speed/SVT-1_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speed/SVT-1_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speed/SVT-1_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speed/SVT-1_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:["Once is not custom, ",(0,n.jsx)(s.strong,{children:"preset -1"})," is so abysmally slow it makes the graph unusable."]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:["Same, but without the placebo ",(0,n.jsx)(s.strong,{children:"preset -1"}),":"]}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speednomr/SVT0_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speednomr/SVT0_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speednomr/SVT0_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speednomr/SVT0_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speednomr/SVT0_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Lastly, here is what it looks like with a logarithmic scale:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speedlog/SVT-1_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speedlog/SVT-1_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speedlog/SVT-1_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speedlog/SVT-1_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.1.0-only/allpresets/speedlog/SVT-1_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsx)(s.h3,{id:"interpretation",children:"Interpretation"}),"\n",(0,n.jsxs)(s.p,{children:["As for interpreting the results, it would seem like ",(0,n.jsx)(s.strong,{children:"preset 2"})," and ",(0,n.jsx)(s.strong,{children:"preset 4"})," remain all-around very balanced presets, with ",(0,n.jsx)(s.strong,{children:"preset 3"})," being in a nice in-between spot, an improvement over v2.0.0's ",(0,n.jsx)(s.strong,{children:"preset 3"})," in a way. We will better understand the reasons for this when we'll compare the new version to the last, a bit after."]}),"\n",(0,n.jsxs)(s.p,{children:["The quality gap between ",(0,n.jsx)(s.strong,{children:"preset 2"})," and ",(0,n.jsx)(s.strong,{children:"preset 1"})," is usually pretty narrow, however the speed penalty from going to ",(0,n.jsx)(s.strong,{children:"preset 1"})," is ~2x, when the penalty of going from ",(0,n.jsx)(s.strong,{children:"preset 3"})," to ",(0,n.jsx)(s.strong,{children:"preset 2"})," is closer to ~1.5x. As such, ",(0,n.jsx)(s.strong,{children:"preset 1"})," enters placebo territory, and considering the very little benefits of going any lower than it, compared to the huge performance loss of even lower presets, I advise you not to waste encoding resources on ",(0,n.jsx)(s.strong,{children:"preset 0"})," and ",(0,n.jsx)(s.strong,{children:"preset -1"}),". This applies especially at medium to high quality, however at extremely low quality like the CRF40 range, we can still see some small gains from these placebo presets."]}),"\n",(0,n.jsxs)(s.p,{children:["When we start talking about faster presets though, things are pretty different from previous versions: ",(0,n.jsx)(s.strong,{children:"presets 5 to 9"})," behave similarly on the graphs and seem to stand apart from their slower counterparts by just a bit. If you can bear the speed of ",(0,n.jsx)(s.strong,{children:"preset 4"}),", you should definitely be going for it, however if fast encoding is a necessity, for example in the case of realtime transcoding or streaming, ",(0,n.jsx)(s.strong,{children:"presets 5 through 9"})," will serve you right with great efficiency/speed trade-offs between one another. No preset in that range particularly stands out from the others, so simply pick one depending on your performance needs."]}),"\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.strong,{children:"Presets 10 to 12"})," are pretty inefficient, and to be avoided if possible. They can still be of use in a convex-hull scenario, but in the case of realtime transcoding, you may be better off with a hardware encoder like the ones found in RTX 4000 or Arc GPUs, especially since SVT-AV1's target bitrate mode is even less efficient than CRF mode."]}),"\n",(0,n.jsx)(s.h3,{id:"tldr",children:"TLDR"}),"\n",(0,n.jsxs)(s.p,{children:["The same conclusions as the previous blog post can be made:\n",(0,n.jsxs)(s.strong,{children:["clear quality gains can be observed as we decrease presets, until ",(0,n.jsx)(s.strong,{children:"preset 2"}),", however the effectiveness of dropping presets is noticeably less and less important as quality is increased."]})]}),"\n",(0,n.jsx)(s.p,{children:"In the next part, we will evaluate the differences in efficiency and speed of every presets when updating from SVT-AV1 2.0.0 to 2.1.0, which should enable an increase of nuance from the previous results alone."}),"\n",(0,n.jsx)(s.h2,{id:"svt-av1-v200-vs-v210-presets-comparisons",children:"SVT-AV1 v2.0.0 vs v2.1.0 presets comparisons:"}),"\n",(0,n.jsxs)(s.p,{children:["Two months ago, I conducted a similar test to this one to compare the presets evolution between versions ",(0,n.jsx)(s.strong,{children:"1.8.0"})," and ",(0,n.jsx)(s.strong,{children:"2.0.0"}),". The results were pretty unsatisfying: I noticed that ",(0,n.jsx)(s.strong,{children:"presets -1 to 8"})," in ",(0,n.jsx)(s.strong,{children:"v2.0.0"})," performed like the old ",(0,n.jsx)(s.strong,{children:"presets 0 to 9"})," did in ",(0,n.jsx)(s.strong,{children:"v1.8.0"}),". We basically saw an efficiency regression at a given preset, and speedups did not follow suit as well as we would have anticipated. All in all, it wasn't all that bad, it suffice to say you could simply drop a preset from before and you were good to go again. What was more concerning however is that the release note claimed important speedups that did not impact efficiency and my testing proved otherwise. My theory is that due to the dev team testing methodology, which consist of mostly pretty low resolution clips and non-psychovisual metrics like PSNR, SSIM or bad psychovisual metrics like VMAF, it's very well possible they were tricked into thinking they introduced improvements as they tweaked the presets when in reality the metrics simply didn't notice the quality degradation. Such issue is an additional reason why the industry should adopt more competent metrics, ones that better correlate with the human vision, to improve encoders in more impactful ways and better avoid pointless regressions."]}),"\n",(0,n.jsx)(s.p,{children:"So the question for today's testing is: have the SVT-AV1 devs redeemed themselves and actually improved the presets trade-offs this time around? Let's find out!"}),"\n",(0,n.jsxs)(s.h3,{id:"preset--1-v200-vs-v210",children:[(0,n.jsx)(s.code,{children:"preset -1"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.strong,{children:'Let\'s start off with a battle of the placebos, with the efficiency at "high quality":'})}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT-1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:'And the efficiency at "low quality":'}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT-1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsx)(s.p,{children:"Yes, this is a bit underwhelming, but you can't just improve the best an encoder has to offer with just tweaking right?"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Now, let's compare their respective speeds:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT-1_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT-1_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT-1_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT-1_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT-1_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsx)(s.p,{children:"Let's be grateful it became ever so slightly faster, I guess."}),"\n",(0,n.jsxs)(s.h3,{id:"preset-0-v200-vs-v210",children:[(0,n.jsx)(s.code,{children:"preset 0"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT0_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT0_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:["Overall, efficiency wise, this new ",(0,n.jsx)(s.strong,{children:"preset 0"})," places itself in-between old ",(0,n.jsx)(s.strong,{children:"preset -1"})," and ",(0,n.jsx)(s.strong,{children:"0"})]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT0_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT0_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT0_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT0_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT0_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:["Interestingly enough, its speed is much closer to the old ",(0,n.jsx)(s.strong,{children:"preset 0"})," than to the old ",(0,n.jsx)(s.strong,{children:"preset -1"}),". This means ",(0,n.jsx)(s.strong,{children:"preset 0"})," was genuinely improved over v2.0.0!"]}),"\n",(0,n.jsxs)(s.h3,{id:"preset-1-v200-vs-v210",children:[(0,n.jsx)(s.code,{children:"preset 1"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT1_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:["In efficiency, this new ",(0,n.jsx)(s.strong,{children:"preset 1"})," is often equal to old ",(0,n.jsx)(s.strong,{children:"preset 0"}),", else in-between old ",(0,n.jsx)(s.strong,{children:"preset 0 and 1"}),"."]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT1_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT1_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT1_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT1_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT1_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:["We observe that the new preset is a bit closer to old ",(0,n.jsx)(s.strong,{children:"preset 1"})," speeds than it is to old ",(0,n.jsx)(s.strong,{children:"preset 0"})," speeds. Good news!"]}),"\n",(0,n.jsxs)(s.h3,{id:"preset-2-v200-vs-v210",children:[(0,n.jsx)(s.code,{children:"preset 2"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT2_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT2_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsx)(s.p,{children:"Oh well, that's awkward."}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT2_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT2_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT2_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT2_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT2_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:["Speed was left untouched too, meaning ",(0,n.jsx)(s.strong,{children:"preset 2"})," is unchanged in v2.1.0."]}),"\n",(0,n.jsxs)(s.h3,{id:"preset-3-v200-vs-v210",children:[(0,n.jsx)(s.code,{children:"preset 3"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT3_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT3_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:["The new ",(0,n.jsx)(s.strong,{children:"preset 3"}),"'s efficiency is the same as the old one."]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT3_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT3_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT3_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT3_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT3_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsx)(s.p,{children:"However, the preset got slightly faster, so this is a speedup!"}),"\n",(0,n.jsxs)(s.h3,{id:"preset-4-v200-vs-v210",children:[(0,n.jsx)(s.code,{children:"preset 4"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT4_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT4_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:["We can observe that ",(0,n.jsx)(s.strong,{children:"preset 4"})," got slightly to moderately worse efficiency wise."]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT4_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT4_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT4_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT4_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT4_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsx)(s.p,{children:"Fortunately, the consequence of that slight efficiency decrease is a big performance improvement!"}),"\n",(0,n.jsxs)(s.h3,{id:"preset-5-v200-vs-v210",children:[(0,n.jsx)(s.code,{children:"preset 5"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT5_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT5_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.strong,{children:"Preset 5"})," seems to have gotten ever so slightly worse efficiency wise."]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT5_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT5_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT5_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT5_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT5_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsx)(s.p,{children:"Yet it became slightly faster, this is overall a good trade-off."}),"\n",(0,n.jsxs)(s.h3,{id:"preset-6-v200-vs-v210",children:[(0,n.jsx)(s.code,{children:"preset 6"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT6_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT6_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:["The new ",(0,n.jsx)(s.strong,{children:"preset 6"})," has a huge responsibility: being able to compensate in the absence of its ",(0,n.jsx)(s.strong,{children:"preset 7"})," sibling. It seems to performs in-between old ",(0,n.jsx)(s.strong,{children:"preset 6 and 7"}),", usually closer to old ",(0,n.jsx)(s.strong,{children:"7"}),"."]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT6_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT6_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT6_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT6_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT6_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.strong,{children:"Preset 6"})," is now ever so slightly slower to old ",(0,n.jsx)(s.strong,{children:"7"}),", this is an interesting trade-off, overall a win over old ",(0,n.jsx)(s.strong,{children:"7"}),"."]}),"\n",(0,n.jsxs)(s.h3,{id:"preset-7-v200-vs-v210",children:[(0,n.jsx)(s.code,{children:"preset 7"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,n.jsxs)(s.p,{children:["Again, there is no preset 7. Actually, it's preset 6 that disappeared but I'm not remaking the graphs just for fun. If you select preset 6, you will be granted the following message: ",(0,n.jsx)(s.code,{children:"Svt[warn]: Preset M6 is mapped to M7."})]}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.img,{alt:"always_has_been",src:t(1759).A+"",width:"833",height:"466"})}),"\n",(0,n.jsxs)(s.h3,{id:"preset-8-v200-vs-v210",children:[(0,n.jsx)(s.code,{children:"preset 8"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT8_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT8_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:["In efficiency, this new ",(0,n.jsx)(s.strong,{children:"preset 8"})," is sometimes equal or slightly worse to the old ",(0,n.jsx)(s.strong,{children:"8"}),", and sometimes equal or slightly worse than old ",(0,n.jsx)(s.strong,{children:"7"}),"..."]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT8_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT8_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT8_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT8_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT8_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:["Overall, the speed is pretty much unchanged from old ",(0,n.jsx)(s.strong,{children:"8"}),". It looks like a slight regression, that's pretty disappointing."]}),"\n",(0,n.jsxs)(s.h3,{id:"preset-9-v200-vs-v210",children:[(0,n.jsx)(s.code,{children:"preset 9"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT9_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT9_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:["The new ",(0,n.jsx)(s.strong,{children:"preset 9"})," is the same as ever, ever so slightly better in some scenario but nothing groundbreaking."]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT9_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT9_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT9_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT9_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT9_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsx)(s.p,{children:"Its speed remains the same, sometimes ever so slightly slower. Basically the preset is pretty much unchanged, which may as well be a relief, as the last usable preset of the encoder."}),"\n",(0,n.jsxs)(s.h3,{id:"preset-10-v200-vs-v210",children:[(0,n.jsx)(s.code,{children:"preset 10"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT10_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT10_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.strong,{children:"Preset 10"})," is slightly to moderately worse efficiency wise."]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT10_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT10_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT10_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT10_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT10_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsx)(s.p,{children:"Its speed is mostly the same, sometimes ever so slightly faster. It's a wash, avoid this preset at all costs!"}),"\n",(0,n.jsxs)(s.h3,{id:"preset-11-v200-vs-v210",children:[(0,n.jsx)(s.code,{children:"preset 11"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT11_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT11_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.strong,{children:"Preset 11"}),"'s efficiency is untouched."]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT11_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT11_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT11_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT11_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT11_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.strong,{children:"Preset 11"}),"'s speed is unchanged as well."]}),"\n",(0,n.jsxs)(s.h3,{id:"preset-12-v200-vs-v210",children:[(0,n.jsx)(s.code,{children:"preset 12"}),": v2.0.0 vs v2.1.0"]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, high quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/hq/SVT13_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Efficiency graphs, low quality:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"SSIMU2",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_blame!_ssimu2.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_bluelock_ssimu2.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_jigokuraku-001_ssimu2.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_sxfed1_ssimu2.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_THE_GARDEN_OF_SINNERS_9_ssimu2.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})},xpsnr:{label:"XPSNR",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_blame!_xpsnr.webp",alt:"Blame!.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_bluelock_xpsnr.webp",alt:"BlueLock.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_jigokuraku-001_xpsnr.webp",alt:"Jigokuraku.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_sxfed1_xpsnr.webp",alt:"SpyxFamily.mkv Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/lq/SVT13_THE_GARDEN_OF_SINNERS_9_xpsnr.webp",alt:"TheGardenOfSinners.mkv Efficiency Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsxs)(s.p,{children:["Just as ",(0,n.jsx)(s.strong,{children:"preset 6"}),", ",(0,n.jsx)(s.strong,{children:"preset 12"})," is now mapped to ",(0,n.jsx)(s.strong,{children:"13"}),", and unsurprisingly, its efficiency is equal to old ",(0,n.jsx)(s.strong,{children:"13"}),"."]}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,n.jsx)(r.kS,{tabMap:{ssimu2:{label:"Speed",component:(0,n.jsx)(r.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT13_blame!_speed.webp",alt:"Blame!.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT13_bluelock_speed.webp",alt:"BlueLock.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT13_jigokuraku-001_speed.webp",alt:"Jigokuraku.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT13_sxfed1_speed.webp",alt:"SpyxFamily.mkv Speed Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-2.1.0-blogpost/2.0.0vs2.1.0/speed/SVT13_THE_GARDEN_OF_SINNERS_9_speed.webp",alt:"TheGardenOfSinners.mkv Speed Graph"}]})}},pixelsAbove:0,pixelsBelow:24}),"\n",(0,n.jsx)(s.p,{children:"The speeds seem to be in-between old 12 and 13, so potentially a slight speedup. Still, nothing to get excited at."}),"\n",(0,n.jsx)(s.h3,{id:"tldr-1",children:"TLDR"}),"\n",(0,n.jsxs)(s.p,{children:["From these extensive comparisons, it appears that some presets have received genuine improvements in their respective efficiency/speed trade-off.\nSome presets, like ",(0,n.jsx)(s.strong,{children:"-1"}),", ",(0,n.jsx)(s.strong,{children:"0"}),", ",(0,n.jsx)(s.strong,{children:"1"})," and ",(0,n.jsx)(s.strong,{children:"3"}),", received the most significant improvements, followed by ",(0,n.jsx)(s.strong,{children:"4"}),", ",(0,n.jsx)(s.strong,{children:"5"})," and ",(0,n.jsx)(s.strong,{children:"6"})," with overall beneficial new trade-offs. ",(0,n.jsx)(s.strong,{children:"Preset 12"})," got slightly faster too. On the other hand, ",(0,n.jsx)(s.strong,{children:"presets 8 and 10"})," seemed to have regressed slightly, and ",(0,n.jsx)(s.strong,{children:"presets 2 and 9"})," are perfectly unchanged from v2.0.0."]}),"\n",(0,n.jsx)(s.h2,{id:"conclusion",children:"Conclusion"}),"\n",(0,n.jsxs)(s.p,{children:["SVT-AV1 2.1.0 introduced some welcomed improvements. ",(0,n.jsx)(s.strong,{children:"Presets 2 through 4"})," remain the king of optimal AV1 encoding, while ",(0,n.jsx)(s.strong,{children:"presets 5 through 9"})," stand as good options for the people that find ",(0,n.jsx)(s.strong,{children:"2-4"})," to be too slow for their liking."]}),"\n",(0,n.jsx)(s.p,{children:"Let's be honest a second, not much as changed in SVT-AV1 since the first blog post. There was no need to redo all the parameter testing for the simple reason that their behavior remained the same, as did the conclusions drawn from them. I hope this article wasn't disappointing in a sense... Still, be reassured, this was just an appetizer, there will be more in the near future!"}),"\n",(0,n.jsxs)(s.p,{children:["By the way, did you know that the ",(0,n.jsx)(s.strong,{children:(0,n.jsx)(s.a,{href:"https://github.com/gianni-rosato/svt-av1-psy/",children:"SVT-AV1-PSY project"})})," was initiated a few months ago? Its defaults were tailored according to the testing done in the last blog post, allowing a free efficiency boost for anyone not keen to tweak their encoders. Furthermore, SVT-AV1-PSY introduced a sharpness parameter to control distortion, a quarter-step quantizer for more CRF precision, a new subjective SSIM tune, Dolby Vision support, frame luma bias, and some other knobs to improve the appeal and consistency of your encodes. It is actively maintained by a group of talented people, including the main dev of the aom-av1-lavish fork of aomenc. Some of the changes are being backported to mainline SVT-AV1 due to the increased interest of the mainline devs. Please check it out!"]}),"\n",(0,n.jsx)(s.p,{children:"Hopefully, this comprehensive second deep dive should give you a helpful new starting point for choosing settings when encoding with the latest SVT-AV1(-PSY) 2.1.0."}),"\n",(0,n.jsx)(s.h2,{id:"future",children:"Future"}),"\n",(0,n.jsx)(s.p,{children:"My plans for the future regarding the blog post include:"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:"polishing this blog post and aggrementing it of image comparisons."}),"\n",(0,n.jsx)(s.li,{children:"a follow-up article in the relatively near future about giving you encoding tips and explaining common AV1 encoding knowlegde, for instance showcasing why film grain synthesis is a game-changer or why chunked encoding can prove beneficial to your encoding pipeline."}),"\n",(0,n.jsx)(s.li,{children:"an article focused on observing the evolution of SVT-AV1 since the beginning of its development, as well as comparisons with current aomenc, rav1e and SVT-AV1-PSY, including a quick look at the current state of AVM (development ground for AV2) in comparison to VVC's state."}),"\n"]}),"\n",(0,n.jsx)(s.p,{children:"Thanks for reading!"}),"\n"]})}function u(e={}){const{wrapper:s}={...(0,o.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},1759:(e,s,t)=>{t.d(s,{A:()=>i});const i=t.p+"assets/images/preset_7_meme-db92f83a118086187f0de0dea1362caf.webp"},3165:e=>{e.exports=JSON.parse('{"permalink":"/blog/svt-av1-second-deep-dive","source":"@site/blog/2024-05-19-svt-av1-deep-dive2-v2-1-0.mdx","title":"Observing SVT-AV1 v2.1.0\'s improvements: A New Deep Dive","description":"SVT-AV1 2.1.0 just released, how does it compare to the previous version?","date":"2024-05-19T00:00:00.000Z","tags":[{"inline":true,"label":"video","permalink":"/blog/tags/video"},{"inline":true,"label":"compression","permalink":"/blog/tags/compression"},{"inline":true,"label":"benchmarks","permalink":"/blog/tags/benchmarks"}],"readingTime":35.215,"hasTruncateMarker":true,"authors":[{"name":"Trix","title":"Encoder","url":"https://github.com/trixoniisama/","image_url":"https://avatars.githubusercontent.com/u/93526043","imageURL":"https://avatars.githubusercontent.com/u/93526043","socials":{},"key":null,"page":null}],"frontMatter":{"title":"Observing SVT-AV1 v2.1.0\'s improvements: A New Deep Dive","description":"SVT-AV1 2.1.0 just released, how does it compare to the previous version?","slug":"svt-av1-second-deep-dive","authors":[{"name":"Trix","title":"Encoder","url":"https://github.com/trixoniisama/","image_url":"https://avatars.githubusercontent.com/u/93526043","imageURL":"https://avatars.githubusercontent.com/u/93526043"}],"tags":["video","compression","benchmarks"],"image":"/img/svt-2.1.0-testing-blog-image.webp","hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"AV1 for Dummies","permalink":"/blog/av1-for-dummies"},"nextItem":{"title":"Encoding Animation with SVT-AV1: A Deep Dive","permalink":"/blog/svt-av1-deep-dive"}}')}}]); \ No newline at end of file diff --git a/assets/js/3a2db09e.17e906d8.js b/assets/js/3a2db09e.17e906d8.js new file mode 100644 index 000000000..ef1e8fd0e --- /dev/null +++ b/assets/js/3a2db09e.17e906d8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8121],{8070:e=>{e.exports=JSON.parse('{"tags":[{"label":"video","permalink":"/blog/tags/video","count":6},{"label":"compression","permalink":"/blog/tags/compression","count":6},{"label":"benchmarks","permalink":"/blog/tags/benchmarks","count":3},{"label":"anniversary","permalink":"/blog/tags/anniversary","count":1},{"label":"history","permalink":"/blog/tags/history","count":1},{"label":"discord","permalink":"/blog/tags/discord","count":1},{"label":"image","permalink":"/blog/tags/image","count":1},{"label":"web","permalink":"/blog/tags/web","count":1}]}')}}]); \ No newline at end of file diff --git a/assets/js/3a2db09e.1d6d5d92.js b/assets/js/3a2db09e.1d6d5d92.js deleted file mode 100644 index 7eab3df5f..000000000 --- a/assets/js/3a2db09e.1d6d5d92.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8121],{8070:e=>{e.exports=JSON.parse('{"tags":[{"label":"anniversary","permalink":"/blog/tags/anniversary","count":1},{"label":"history","permalink":"/blog/tags/history","count":1},{"label":"video","permalink":"/blog/tags/video","count":5},{"label":"compression","permalink":"/blog/tags/compression","count":5},{"label":"benchmarks","permalink":"/blog/tags/benchmarks","count":2},{"label":"discord","permalink":"/blog/tags/discord","count":1},{"label":"image","permalink":"/blog/tags/image","count":1},{"label":"web","permalink":"/blog/tags/web","count":1}]}')}}]); \ No newline at end of file diff --git a/assets/js/3d6cf458.13b149a4.js b/assets/js/3d6cf458.13b149a4.js new file mode 100644 index 000000000..c579b51ae --- /dev/null +++ b/assets/js/3d6cf458.13b149a4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2614],{8284:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>r,contentTitle:()=>c,default:()=>u,frontMatter:()=>s,metadata:()=>o,toc:()=>a});const o=JSON.parse('{"id":"video/VC-1","title":"VC-1","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/video/VC-1.mdx","sourceDirName":"video","slug":"/video/VC-1","permalink":"/docs/video/VC-1","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/VC-1.mdx","tags":[],"version":"current","sidebarPosition":8,"frontMatter":{"title":"VC-1","sidebar_position":8},"sidebar":"tutorialSidebar","previous":{"title":"AVS3","permalink":"/docs/video/AVS3"},"next":{"title":"Theora","permalink":"/docs/video/Theora"}}');var t=i(4848),d=i(8453);const s={title:"VC-1",sidebar_position:8},c="VC-1",r={},a=[{value:"Encoding",id:"encoding",level:2},{value:"Decoding",id:"decoding",level:2}];function l(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",...(0,d.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"vc-1",children:"VC-1"})}),"\n",(0,t.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsxs)(n.p,{children:["VC-1 is video codec created by Microsoft and released in 2006. It largely aimed to compete with ",(0,t.jsx)(n.a,{href:"/docs/video/AVC",children:"AVC"}),"."]}),"\n",(0,t.jsx)(n.h2,{id:"encoding",children:"Encoding"}),"\n",(0,t.jsxs)(n.p,{children:["VC-1 can be contained in ",(0,t.jsx)(n.code,{children:".mp4"}),", ",(0,t.jsx)(n.code,{children:".mkv"}),", and ",(0,t.jsx)(n.code,{children:".avi"})," containers.\nTo be filled"]}),"\n",(0,t.jsx)(n.h2,{id:"decoding",children:"Decoding"}),"\n",(0,t.jsxs)(n.p,{children:["VC-1 can be decoded by ",(0,t.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),", ",(0,t.jsx)(n.a,{href:"/docs/video-players",children:"VLC"}),", ",(0,t.jsx)(n.a,{href:"/docs/video-players",children:"MPV"}),", and any device that supports blu-ray."]})]})}function u(e={}){const{wrapper:n}={...(0,d.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>c});var o=i(6540);const t={},d=o.createContext(t);function s(e){const n=o.useContext(d);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:s(e.components),o.createElement(d.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/3d6cf458.ade3502e.js b/assets/js/3d6cf458.ade3502e.js deleted file mode 100644 index b1924e7bb..000000000 --- a/assets/js/3d6cf458.ade3502e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2614],{6396:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>s,contentTitle:()=>c,default:()=>u,frontMatter:()=>d,metadata:()=>r,toc:()=>a});var o=n(4848),t=n(8453);const d={title:"VC-1",sidebar_position:8},c="VC-1",r={id:"video/VC-1",title:"VC-1",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/video/VC-1.mdx",sourceDirName:"video",slug:"/video/VC-1",permalink:"/docs/video/VC-1",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/VC-1.mdx",tags:[],version:"current",sidebarPosition:8,frontMatter:{title:"VC-1",sidebar_position:8},sidebar:"tutorialSidebar",previous:{title:"AVS3",permalink:"/docs/video/AVS3"},next:{title:"Theora",permalink:"/docs/video/Theora"}},s={},a=[{value:"Encoding",id:"encoding",level:2},{value:"Decoding",id:"decoding",level:2}];function l(e){const i={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.header,{children:(0,o.jsx)(i.h1,{id:"vc-1",children:"VC-1"})}),"\n",(0,o.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsxs)(i.p,{children:["VC-1 is video codec created by Microsoft and released in 2006. It largely aimed to compete with ",(0,o.jsx)(i.a,{href:"/docs/video/AVC",children:"AVC"}),"."]}),"\n",(0,o.jsx)(i.h2,{id:"encoding",children:"Encoding"}),"\n",(0,o.jsxs)(i.p,{children:["VC-1 can be contained in ",(0,o.jsx)(i.code,{children:".mp4"}),", ",(0,o.jsx)(i.code,{children:".mkv"}),", and ",(0,o.jsx)(i.code,{children:".avi"})," containers.\nTo be filled"]}),"\n",(0,o.jsx)(i.h2,{id:"decoding",children:"Decoding"}),"\n",(0,o.jsxs)(i.p,{children:["VC-1 can be decoded by ",(0,o.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),", ",(0,o.jsx)(i.a,{href:"/docs/video-players",children:"VLC"}),", ",(0,o.jsx)(i.a,{href:"/docs/video-players",children:"MPV"}),", and any device that supports blu-ray."]})]})}function u(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>c,x:()=>r});var o=n(6540);const t={},d=o.createContext(t);function c(e){const i=o.useContext(d);return o.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:c(e.components),o.createElement(d.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/43624f55.62b1a6b4.js b/assets/js/43624f55.62b1a6b4.js new file mode 100644 index 000000000..c285cef41 --- /dev/null +++ b/assets/js/43624f55.62b1a6b4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7844],{697:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>a,contentTitle:()=>c,default:()=>u,frontMatter:()=>s,metadata:()=>n,toc:()=>l});const n=JSON.parse('{"id":"filtering/ivtc","title":"Inverse Telecine","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/filtering/ivtc.mdx","sourceDirName":"filtering","slug":"/filtering/ivtc","permalink":"/docs/filtering/ivtc","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/ivtc.mdx","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"title":"Inverse Telecine","sidebar_position":4},"sidebar":"tutorialSidebar","previous":{"title":"Basics of Filtering","permalink":"/docs/filtering/basics"},"next":{"title":"Deinterlace","permalink":"/docs/filtering/deinterlace"}}');var o=i(4848),r=i(8453);const s={title:"Inverse Telecine",sidebar_position:4},c="Inverse Telecine",a={},l=[];function d(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"inverse-telecine",children:"Inverse Telecine"})}),"\n",(0,o.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>c});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/43624f55.f9414b4d.js b/assets/js/43624f55.f9414b4d.js deleted file mode 100644 index 327701287..000000000 --- a/assets/js/43624f55.f9414b4d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7844],{3676:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>a,contentTitle:()=>s,default:()=>u,frontMatter:()=>r,metadata:()=>c,toc:()=>l});var n=i(4848),o=i(8453);const r={title:"Inverse Telecine",sidebar_position:4},s="Inverse Telecine",c={id:"filtering/ivtc",title:"Inverse Telecine",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/filtering/ivtc.mdx",sourceDirName:"filtering",slug:"/filtering/ivtc",permalink:"/docs/filtering/ivtc",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/ivtc.mdx",tags:[],version:"current",sidebarPosition:4,frontMatter:{title:"Inverse Telecine",sidebar_position:4},sidebar:"tutorialSidebar",previous:{title:"Basics of Filtering",permalink:"/docs/filtering/basics"},next:{title:"Deinterlace",permalink:"/docs/filtering/deinterlace"}},a={},l=[];function d(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"inverse-telecine",children:"Inverse Telecine"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>c});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/44e37655.804c7bd9.js b/assets/js/44e37655.804c7bd9.js deleted file mode 100644 index 16a82f6fe..000000000 --- a/assets/js/44e37655.804c7bd9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5958],{6147:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>l,default:()=>m,frontMatter:()=>o,metadata:()=>c,toc:()=>d});var r=n(4848),i=n(8453),s=n(1470),a=n(9365);const o={title:"SSIMULACRA2",sidebar_position:1},l="SSIMULACRA2",c={id:"metrics/SSIMULACRA2",title:"SSIMULACRA2",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/metrics/SSIMULACRA2.mdx",sourceDirName:"metrics",slug:"/metrics/SSIMULACRA2",permalink:"/docs/metrics/SSIMULACRA2",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/metrics/SSIMULACRA2.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"SSIMULACRA2",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"SSIM",permalink:"/docs/metrics/SSIM"},next:{title:"VMAF",permalink:"/docs/metrics/VMAF"}},u={},d=[{value:"Installing",id:"installing",level:2},{value:"Running",id:"running",level:2},{value:"On Images",id:"on-images",level:3},{value:"On Videos",id:"on-videos",level:3},{value:"Multithreading",id:"multithreading",level:4},{value:"Frame skipping",id:"frame-skipping",level:4},{value:"Scoring",id:"scoring",level:2}];function h(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"ssimulacra2",children:"SSIMULACRA2"})}),"\n",(0,r.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,r.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,r.jsxs)(t.p,{children:["SSIMULACRA 2 is a visual fidelity metric based on the concept of the multi-scale structural similarity index measure (MS-SSIM), computed in a perceptually relevant color space, adding two other (asymmetric) error maps, and aggregating using two different norms. It is currently the most reputable visual quality metric according to its correlation with subjective results, and is considered a very robust means of comparing encoders. It is debatable whether ",(0,r.jsx)(t.a,{href:"/docs/metrics/butteraugli",children:"Butteraugli"})," is better for very high fidelity, but SSIMULACRA 2 is considered the best for medium/low fidelity comparisons. Although it does not feature any inter-frame temporal awareness, it is still considered a very strong metric for video fidelity comparison nonetheless."]}),"\n",(0,r.jsxs)(t.p,{children:["While a ",(0,r.jsx)(t.a,{href:"https://github.com/cloudinary/ssimulacra2",children:"reference implementation by Cloudinary"})," exists,\nmost people will want to use ",(0,r.jsxs)(t.a,{href:"https://github.com/rust-av/ssimulacra2",children:["the rust implementation ",(0,r.jsx)(t.code,{children:"ssimulacra2_rs"})]}),"."]}),"\n",(0,r.jsx)(t.h2,{id:"installing",children:"Installing"}),"\n",(0,r.jsxs)(s.A,{children:[(0,r.jsxs)(a.A,{value:"cargo",label:"Cargo",default:!0,children:[(0,r.jsx)(t.p,{children:"To install ssimulacra2_rs using cargo, run this:"}),(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:"cargo install ssimulacra2_rs\n"})})]}),(0,r.jsxs)(a.A,{value:"archlinux",label:"Archlinux AUR",children:[(0,r.jsxs)(t.p,{children:["On archlinux, you may use the ",(0,r.jsx)(t.a,{href:"https://wiki.archlinux.org/title/Arch_User_Repository",children:"AUR"})," to install.\nSimply use your favorite AUR helper to install ",(0,r.jsx)(t.code,{children:"ssimulacra2_bin-git"})]}),(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:"paru -S ssimulacra2_bin-git\n"})})]})]}),"\n",(0,r.jsx)(t.h2,{id:"running",children:"Running"}),"\n",(0,r.jsx)(t.h3,{id:"on-images",children:"On Images"}),"\n",(0,r.jsx)(t.p,{children:"Comparing images is simple, run this:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:"ssimulacra2_rs image source.png distorted.png\n"})}),"\n",(0,r.jsx)(t.h3,{id:"on-videos",children:"On Videos"}),"\n",(0,r.jsx)(t.p,{children:"If you want to compare videos, run this:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:"ssimulacra2_rs video source.mkv distorted.mkv\n"})}),"\n",(0,r.jsxs)(t.admonition,{title:"Graphical visualization",type:"tip",children:[(0,r.jsxs)(t.p,{children:["You can optionally output a graph using the ",(0,r.jsx)(t.code,{children:"-g"})," parameter:"]}),(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:"ssimulacra2_rs video source.mkv distorted.mkv -g\n"})})]}),"\n",(0,r.jsx)(t.h4,{id:"multithreading",children:"Multithreading"}),"\n",(0,r.jsx)(t.p,{children:"Multithreading with ssimulacra2_rs works, but it scales badly.\nThis is likely due to memory bandwidth limitations.\nHowever, the speedup is worth it."}),"\n",(0,r.jsxs)(t.p,{children:["To run multithreaded, use the ",(0,r.jsx)(t.code,{children:"--frame-threads"})," or ",(0,r.jsx)(t.code,{children:"-f"})," parameters.\nFor example, to run with 16 threads:"]}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:"ssimulacra2_rs video source.mkv distorted.mkv -f 16\n"})}),"\n",(0,r.jsx)(t.admonition,{title:"Thread amount",type:"info",children:(0,r.jsx)(t.p,{children:"You should set the amount of threads to half of your actual thread count, as going any higher won't make a difference."})}),"\n",(0,r.jsx)(t.admonition,{title:"Memory limitation",type:"warning",children:(0,r.jsx)(t.p,{children:"If you have a small amount of system memory, you may encounter out of memory errors while running with multi-threading.\nIf that's the case, you need to lower the amount of threads."})}),"\n",(0,r.jsx)(t.h4,{id:"frame-skipping",children:"Frame skipping"}),"\n",(0,r.jsx)(t.p,{children:"SSIMULACRA 2 is, at its core, an image quality assessment metric, not a video quality one.\nThis means that it does not use any temporal information when applied to videos; just the independent scores of each individual frame.\nConsequently, it can be applied to a subset of a video's frames, instead of to all of them, to obtain a meaningful estimate of the score in a reduced time."}),"\n",(0,r.jsxs)(t.p,{children:["To run ssimulacra2_rs with frame skip enabled, use the ",(0,r.jsx)(t.code,{children:"--increment"})," or ",(0,r.jsx)(t.code,{children:"-i"})," parameters.\nFor example, to compute the score for every 3rd frame:"]}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:"ssimulacra2_rs video source.mkv distorted.mkv -i 3\n"})}),"\n",(0,r.jsxs)(t.admonition,{title:"Frame skip amount",type:"info",children:[(0,r.jsx)(t.p,{children:"To avoid biased score estimates, it is recommended to sample frames using an odd value as increment.\nPrime numbers further reduce the likelihood of sampling bias.\nThus increments of 3, 5, 7, 11 or 13 frames are good options to compute score estimates with little deviation to the true score."}),(0,r.jsx)(t.p,{children:"In any case, powers of two (2, 4, 8, 16...) should be avoided as increment, due to the way video encoders deal with temporal layers."})]}),"\n",(0,r.jsx)(t.h2,{id:"scoring",children:"Scoring"}),"\n",(0,r.jsx)(t.p,{children:"The score that SSIMULACRA 2 outputs is simple: a number in range -inf..100. According to the developers of the metric, for image quality assessment, SSIMULACRA 2 scores correlate to subjective visual quality as follows:"}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:["Very high quality: ",(0,r.jsx)(t.code,{children:"90"})," and above"]}),"\n",(0,r.jsxs)(t.li,{children:["High quality: ",(0,r.jsx)(t.code,{children:"70"})," to ",(0,r.jsx)(t.code,{children:"90"})]}),"\n",(0,r.jsxs)(t.li,{children:["Medium quality: ",(0,r.jsx)(t.code,{children:"50"})," to ",(0,r.jsx)(t.code,{children:"70"})]}),"\n",(0,r.jsxs)(t.li,{children:["Low quality: Below ",(0,r.jsx)(t.code,{children:"50"})]}),"\n"]}),"\n",(0,r.jsxs)(t.p,{children:["For video quality assessment, however, the scores need not be as high for similar subjective visual quality correlation.\nFor example, it is believed that an average score of around ",(0,r.jsx)(t.code,{children:"80"}),' corresponds to a "visually lossless" video.\nNevertheless, this has not been thoroughly verified.']})]})}function m(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},9365:(e,t,n)=>{n.d(t,{A:()=>a});n(6540);var r=n(4164);const i={tabItem:"tabItem_Ymn6"};var s=n(4848);function a(e){let{children:t,hidden:n,className:a}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.A)(i.tabItem,a),hidden:n,children:t})}},1470:(e,t,n)=>{n.d(t,{A:()=>w});var r=n(6540),i=n(4164),s=n(3104),a=n(6347),o=n(205),l=n(7485),c=n(1682),u=n(679);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:i}}=e;return{value:t,label:n,attributes:r,default:i}}))}(n);return function(e){const t=(0,c.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function p(e){let{queryString:t=!1,groupId:n}=e;const i=(0,a.W6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,l.aZ)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(i.location.search);t.set(s,e),i.replace({...i.location,search:t.toString()})}),[s,i])]}function f(e){const{defaultValue:t,queryString:n=!1,groupId:i}=e,s=h(e),[a,l]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[c,d]=p({queryString:n,groupId:i}),[f,g]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[i,s]=(0,u.Dv)(n);return[i,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:i}),v=(()=>{const e=c??f;return m({value:e,tabValues:s})?e:null})();(0,o.A)((()=>{v&&l(v)}),[v]);return{selectedValue:a,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),g(e)}),[d,g,s]),tabValues:s}}var g=n(2303);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var b=n(4848);function x(e){let{className:t,block:n,selectedValue:r,selectValue:a,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.a_)(),u=e=>{const t=e.currentTarget,n=l.indexOf(t),i=o[n].value;i!==r&&(c(t),a(i))},d=e=>{let t=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const n=l.indexOf(e.currentTarget)+1;t=l[n]??l[0];break}case"ArrowLeft":{const n=l.indexOf(e.currentTarget)-1;t=l[n]??l[l.length-1];break}}t?.focus()};return(0,b.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,i.A)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,b.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>l.push(e),onKeyDown:d,onClick:u,...s,className:(0,i.A)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function j(e){let{lazy:t,children:n,selectedValue:s}=e;const a=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:(0,i.A)("margin-top--md",e.props.className)}):null}return(0,b.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function y(e){const t=f(e);return(0,b.jsxs)("div",{className:(0,i.A)("tabs-container",v.tabList),children:[(0,b.jsx)(x,{...t,...e}),(0,b.jsx)(j,{...t,...e})]})}function w(e){const t=(0,g.A)();return(0,b.jsx)(y,{...e,children:d(e.children)},String(t))}},8453:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>o});var r=n(6540);const i={},s=r.createContext(i);function a(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/44e37655.8123b1c7.js b/assets/js/44e37655.8123b1c7.js new file mode 100644 index 000000000..057f0dfec --- /dev/null +++ b/assets/js/44e37655.8123b1c7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5958],{3453:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>c,default:()=>m,frontMatter:()=>l,metadata:()=>r,toc:()=>d});const r=JSON.parse('{"id":"metrics/SSIMULACRA2","title":"SSIMULACRA2","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/metrics/SSIMULACRA2.mdx","sourceDirName":"metrics","slug":"/metrics/SSIMULACRA2","permalink":"/docs/metrics/SSIMULACRA2","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/metrics/SSIMULACRA2.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"SSIMULACRA2","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"SSIM","permalink":"/docs/metrics/SSIM"},"next":{"title":"VMAF","permalink":"/docs/metrics/VMAF"}}');var i=n(4848),s=n(8453),a=n(1470),o=n(9365);const l={title:"SSIMULACRA2",sidebar_position:1},c="SSIMULACRA2",u={},d=[{value:"Installing",id:"installing",level:2},{value:"Running",id:"running",level:2},{value:"On Images",id:"on-images",level:3},{value:"On Videos",id:"on-videos",level:3},{value:"Multithreading",id:"multithreading",level:4},{value:"Frame skipping",id:"frame-skipping",level:4},{value:"Scoring",id:"scoring",level:2}];function h(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"ssimulacra2",children:"SSIMULACRA2"})}),"\n",(0,i.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,i.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,i.jsxs)(t.p,{children:["SSIMULACRA 2 is a visual fidelity metric based on the concept of the multi-scale structural similarity index measure (MS-SSIM), computed in a perceptually relevant color space, adding two other (asymmetric) error maps, and aggregating using two different norms. It is currently the most reputable visual quality metric according to its correlation with subjective results, and is considered a very robust means of comparing encoders. It is debatable whether ",(0,i.jsx)(t.a,{href:"/docs/metrics/butteraugli",children:"Butteraugli"})," is better for very high fidelity, but SSIMULACRA 2 is considered the best for medium/low fidelity comparisons. Although it does not feature any inter-frame temporal awareness, it is still considered a very strong metric for video fidelity comparison nonetheless."]}),"\n",(0,i.jsxs)(t.p,{children:["While a ",(0,i.jsx)(t.a,{href:"https://github.com/cloudinary/ssimulacra2",children:"reference implementation by Cloudinary"})," exists,\nmost people will want to use ",(0,i.jsxs)(t.a,{href:"https://github.com/rust-av/ssimulacra2",children:["the rust implementation ",(0,i.jsx)(t.code,{children:"ssimulacra2_rs"})]}),"."]}),"\n",(0,i.jsx)(t.h2,{id:"installing",children:"Installing"}),"\n",(0,i.jsxs)(a.A,{children:[(0,i.jsxs)(o.A,{value:"cargo",label:"Cargo",default:!0,children:[(0,i.jsx)(t.p,{children:"To install ssimulacra2_rs using cargo, run this:"}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"cargo install ssimulacra2_rs\n"})})]}),(0,i.jsxs)(o.A,{value:"archlinux",label:"Archlinux AUR",children:[(0,i.jsxs)(t.p,{children:["On archlinux, you may use the ",(0,i.jsx)(t.a,{href:"https://wiki.archlinux.org/title/Arch_User_Repository",children:"AUR"})," to install.\nSimply use your favorite AUR helper to install ",(0,i.jsx)(t.code,{children:"ssimulacra2_bin-git"})]}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"paru -S ssimulacra2_bin-git\n"})})]})]}),"\n",(0,i.jsx)(t.h2,{id:"running",children:"Running"}),"\n",(0,i.jsx)(t.h3,{id:"on-images",children:"On Images"}),"\n",(0,i.jsx)(t.p,{children:"Comparing images is simple, run this:"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"ssimulacra2_rs image source.png distorted.png\n"})}),"\n",(0,i.jsx)(t.h3,{id:"on-videos",children:"On Videos"}),"\n",(0,i.jsx)(t.p,{children:"If you want to compare videos, run this:"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"ssimulacra2_rs video source.mkv distorted.mkv\n"})}),"\n",(0,i.jsxs)(t.admonition,{title:"Graphical visualization",type:"tip",children:[(0,i.jsxs)(t.p,{children:["You can optionally output a graph using the ",(0,i.jsx)(t.code,{children:"-g"})," parameter:"]}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"ssimulacra2_rs video source.mkv distorted.mkv -g\n"})})]}),"\n",(0,i.jsx)(t.h4,{id:"multithreading",children:"Multithreading"}),"\n",(0,i.jsx)(t.p,{children:"Multithreading with ssimulacra2_rs works, but it scales badly.\nThis is likely due to memory bandwidth limitations.\nHowever, the speedup is worth it."}),"\n",(0,i.jsxs)(t.p,{children:["To run multithreaded, use the ",(0,i.jsx)(t.code,{children:"--frame-threads"})," or ",(0,i.jsx)(t.code,{children:"-f"})," parameters.\nFor example, to run with 16 threads:"]}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"ssimulacra2_rs video source.mkv distorted.mkv -f 16\n"})}),"\n",(0,i.jsx)(t.admonition,{title:"Thread amount",type:"info",children:(0,i.jsx)(t.p,{children:"You should set the amount of threads to half of your actual thread count, as going any higher won't make a difference."})}),"\n",(0,i.jsx)(t.admonition,{title:"Memory limitation",type:"warning",children:(0,i.jsx)(t.p,{children:"If you have a small amount of system memory, you may encounter out of memory errors while running with multi-threading.\nIf that's the case, you need to lower the amount of threads."})}),"\n",(0,i.jsx)(t.h4,{id:"frame-skipping",children:"Frame skipping"}),"\n",(0,i.jsx)(t.p,{children:"SSIMULACRA 2 is, at its core, an image quality assessment metric, not a video quality one.\nThis means that it does not use any temporal information when applied to videos; just the independent scores of each individual frame.\nConsequently, it can be applied to a subset of a video's frames, instead of to all of them, to obtain a meaningful estimate of the score in a reduced time."}),"\n",(0,i.jsxs)(t.p,{children:["To run ssimulacra2_rs with frame skip enabled, use the ",(0,i.jsx)(t.code,{children:"--increment"})," or ",(0,i.jsx)(t.code,{children:"-i"})," parameters.\nFor example, to compute the score for every 3rd frame:"]}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"ssimulacra2_rs video source.mkv distorted.mkv -i 3\n"})}),"\n",(0,i.jsxs)(t.admonition,{title:"Frame skip amount",type:"info",children:[(0,i.jsx)(t.p,{children:"To avoid biased score estimates, it is recommended to sample frames using an odd value as increment.\nPrime numbers further reduce the likelihood of sampling bias.\nThus increments of 3, 5, 7, 11 or 13 frames are good options to compute score estimates with little deviation to the true score."}),(0,i.jsx)(t.p,{children:"In any case, powers of two (2, 4, 8, 16...) should be avoided as increment, due to the way video encoders deal with temporal layers."})]}),"\n",(0,i.jsx)(t.h2,{id:"scoring",children:"Scoring"}),"\n",(0,i.jsx)(t.p,{children:"The score that SSIMULACRA 2 outputs is simple: a number in range -inf..100. According to the developers of the metric, for image quality assessment, SSIMULACRA 2 scores correlate to subjective visual quality as follows:"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:["Very high quality: ",(0,i.jsx)(t.code,{children:"90"})," and above"]}),"\n",(0,i.jsxs)(t.li,{children:["High quality: ",(0,i.jsx)(t.code,{children:"70"})," to ",(0,i.jsx)(t.code,{children:"90"})]}),"\n",(0,i.jsxs)(t.li,{children:["Medium quality: ",(0,i.jsx)(t.code,{children:"50"})," to ",(0,i.jsx)(t.code,{children:"70"})]}),"\n",(0,i.jsxs)(t.li,{children:["Low quality: Below ",(0,i.jsx)(t.code,{children:"50"})]}),"\n"]}),"\n",(0,i.jsxs)(t.p,{children:["For video quality assessment, however, the scores need not be as high for similar subjective visual quality correlation.\nFor example, it is believed that an average score of around ",(0,i.jsx)(t.code,{children:"80"}),' corresponds to a "visually lossless" video.\nNevertheless, this has not been thoroughly verified.']})]})}function m(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},9365:(e,t,n)=>{n.d(t,{A:()=>a});n(6540);var r=n(4164);const i={tabItem:"tabItem_Ymn6"};var s=n(4848);function a(e){let{children:t,hidden:n,className:a}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.A)(i.tabItem,a),hidden:n,children:t})}},1470:(e,t,n)=>{n.d(t,{A:()=>w});var r=n(6540),i=n(4164),s=n(3104),a=n(6347),o=n(205),l=n(7485),c=n(1682),u=n(679);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:i}}=e;return{value:t,label:n,attributes:r,default:i}}))}(n);return function(e){const t=(0,c.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function p(e){let{queryString:t=!1,groupId:n}=e;const i=(0,a.W6)(),s=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,l.aZ)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(i.location.search);t.set(s,e),i.replace({...i.location,search:t.toString()})}),[s,i])]}function f(e){const{defaultValue:t,queryString:n=!1,groupId:i}=e,s=h(e),[a,l]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[c,d]=p({queryString:n,groupId:i}),[f,g]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[i,s]=(0,u.Dv)(n);return[i,(0,r.useCallback)((e=>{n&&s.set(e)}),[n,s])]}({groupId:i}),v=(()=>{const e=c??f;return m({value:e,tabValues:s})?e:null})();(0,o.A)((()=>{v&&l(v)}),[v]);return{selectedValue:a,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),g(e)}),[d,g,s]),tabValues:s}}var g=n(2303);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var b=n(4848);function x(e){let{className:t,block:n,selectedValue:r,selectValue:a,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.a_)(),u=e=>{const t=e.currentTarget,n=l.indexOf(t),i=o[n].value;i!==r&&(c(t),a(i))},d=e=>{let t=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const n=l.indexOf(e.currentTarget)+1;t=l[n]??l[0];break}case"ArrowLeft":{const n=l.indexOf(e.currentTarget)-1;t=l[n]??l[l.length-1];break}}t?.focus()};return(0,b.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,i.A)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:s}=e;return(0,b.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>l.push(e),onKeyDown:d,onClick:u,...s,className:(0,i.A)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function j(e){let{lazy:t,children:n,selectedValue:s}=e;const a=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:(0,i.A)("margin-top--md",e.props.className)}):null}return(0,b.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function y(e){const t=f(e);return(0,b.jsxs)("div",{className:(0,i.A)("tabs-container",v.tabList),children:[(0,b.jsx)(x,{...t,...e}),(0,b.jsx)(j,{...t,...e})]})}function w(e){const t=(0,g.A)();return(0,b.jsx)(y,{...e,children:d(e.children)},String(t))}},8453:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>o});var r=n(6540);const i={},s=r.createContext(i);function a(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/45f4020c.350d0fe8.js b/assets/js/45f4020c.350d0fe8.js new file mode 100644 index 000000000..023907a78 --- /dev/null +++ b/assets/js/45f4020c.350d0fe8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4897],{2962:(e,o,i)=>{i.r(o),i.d(o,{assets:()=>c,contentTitle:()=>r,default:()=>p,frontMatter:()=>d,metadata:()=>n,toc:()=>a});const n=JSON.parse('{"id":"encoders_hw/videotoolbox","title":"VideoToolbox","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/encoders_hw/videotoolbox.mdx","sourceDirName":"encoders_hw","slug":"/encoders_hw/videotoolbox","permalink":"/docs/encoders_hw/videotoolbox","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders_hw/videotoolbox.mdx","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"title":"VideoToolbox","sidebar_position":4},"sidebar":"tutorialSidebar","previous":{"title":"AMF","permalink":"/docs/encoders_hw/amf"},"next":{"title":"Mediacodec","permalink":"/docs/encoders_hw/mediacodec"}}');var s=i(4848),t=i(8453);const d={title:"VideoToolbox",sidebar_position:4},r="VideoToolbox",c={},a=[{value:"Usage",id:"usage",level:2},{value:"FFmpeg",id:"ffmpeg",level:3},{value:"Handbrake",id:"handbrake",level:3}];function l(e){const o={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.header,{children:(0,s.jsx)(o.h1,{id:"videotoolbox",children:"VideoToolbox"})}),"\n",(0,s.jsx)(o.admonition,{title:"Under Maintenance",type:"info",children:(0,s.jsx)(o.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,s.jsx)(o.p,{children:"Apple's VideoToolbox is a low-level framework that provides direct access to hardware encoders and decoders. It offers services for video compression and decompression, as well as conversion between raster image formats stored in CoreVideo pixel buffers. The VideoToolbox encoder works by compressing video data for various applications such as low-latency conferencing, live streaming, and offline transcoding. It supports hardware encoding on most Macs from 2011 and later, and uses Apple's Media Engine on devices with Apple T2 chips or Apple Silicon."}),"\n",(0,s.jsxs)(o.p,{children:["The encoder can be configured to optimize encoding for specific applications, and it supports various video codecs including ",(0,s.jsx)(o.a,{href:"/docs/video/AVC",children:"H.264"}),", ",(0,s.jsx)(o.a,{href:"/docs/video/HEVC",children:"H.265"}),", with support for H.265 8-bit and 10-bit encoding. It is worth noting that the VideoToolbox encoder is designed for applications that require direct access to hardware encoders and decoders."]}),"\n",(0,s.jsxs)(o.p,{children:["Apple's VideoToolbox framework also supports hardware accelerated video decoding for a number of video codecs. As of the Apple M3, these include ",(0,s.jsx)(o.a,{href:"/docs/video/AVC",children:"H.264"}),", ",(0,s.jsx)(o.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,s.jsx)(o.a,{href:"/docs/video/prores",children:"ProRes"}),", ProRes RAW, and ",(0,s.jsx)(o.a,{href:"/docs/video/AV1",children:"AV1"}),"."]}),"\n",(0,s.jsx)(o.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsxs)(o.p,{children:["Encoding with Videotoolbox on macOS is possible via ",(0,s.jsx)(o.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),", a versatile command line utility, or Handbrake, a GUI for video encoding."]}),"\n",(0,s.jsx)(o.h3,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,s.jsxs)(o.p,{children:["To use H.264 or H.265 (HEVC) hardware encoding in macOS via VideoToolbox, just use the encoder ",(0,s.jsx)(o.code,{children:"-c:v h264_videotoolbox"})," or ",(0,s.jsx)(o.code,{children:"-c:v hevc_videotoolbox"})," for H.264 or HEVC respectively."]}),"\n",(0,s.jsx)(o.p,{children:"Here are some example commands for encoding with VideoToolbox on Apple Silicon via FFmpeg:"}),"\n",(0,s.jsx)(o.pre,{children:(0,s.jsx)(o.code,{className:"language-bash",metastring:'title="H.264 encoding (high profile)"',children:"ffmpeg -i input.mkv -c:v h264_videotoolbox -profile 100 -q:v [0-100] output.mp4\n"})}),"\n",(0,s.jsx)(o.pre,{children:(0,s.jsx)(o.code,{className:"language-bash",metastring:'title="8-bit HEVC encoding (main profile)"',children:"ffmpeg -i input.mkv -c:v hevc_videotoolbox -profile 1 -q:v [0-100] -tag:v hvc1 output.mp4\n"})}),"\n",(0,s.jsx)(o.pre,{children:(0,s.jsx)(o.code,{className:"language-bash",metastring:'title="10-bit HEVC encoding (main10 profile)"',children:"ffmpeg -i input.mkv -c:v hevc_videotoolbox -profile 2 -q:v [0-100] -tag:v hvc1 output.mp4\n"})}),"\n",(0,s.jsxs)(o.p,{children:["Just run ",(0,s.jsx)(o.code,{children:"ffmpeg -help encoder=hevc_videotoolbox"})," or ",(0,s.jsx)(o.code,{children:"ffmpeg -help encoder=h264_videotoolbox"})," for more info."]}),"\n",(0,s.jsx)(o.h3,{id:"handbrake",children:"Handbrake"}),"\n",(0,s.jsx)(o.p,{children:"To be filled."}),"\n",(0,s.jsxs)(o.p,{children:[(0,s.jsx)(o.em,{children:"Sources"}),"\n(1) Video Toolbox | Apple Developer Documentation. ",(0,s.jsx)(o.a,{href:"https://developer.apple.com/documentation/videotoolbox",children:"https://developer.apple.com/documentation/videotoolbox"}),".\n(2) HandBrake Documentation \u2014 Apple VideoToolbox. ",(0,s.jsx)(o.a,{href:"https://handbrake.fr/docs/en/latest/technical/video-videotoolbox.html",children:"https://handbrake.fr/docs/en/latest/technical/video-videotoolbox.html"}),".\n(3) Apple's T2 chip makes a giant difference in video encoding for most .... ",(0,s.jsx)(o.a,{href:"https://appleinsider.com/articles/19/04/09/apples-t2-chip-makes-a-giant-difference-in-video-encoding-for-most-users",children:"https://appleinsider.com/articles/19/04/09/apples-t2-chip-makes-a-giant-difference-in-video-encoding-for-most-users"}),"."]})]})}function p(e={}){const{wrapper:o}={...(0,t.R)(),...e.components};return o?(0,s.jsx)(o,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8453:(e,o,i)=>{i.d(o,{R:()=>d,x:()=>r});var n=i(6540);const s={},t=n.createContext(s);function d(e){const o=n.useContext(t);return n.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function r(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:d(e.components),n.createElement(t.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/45f4020c.7ec68f38.js b/assets/js/45f4020c.7ec68f38.js deleted file mode 100644 index 3569b4586..000000000 --- a/assets/js/45f4020c.7ec68f38.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4897],{9493:(e,o,i)=>{i.r(o),i.d(o,{assets:()=>c,contentTitle:()=>r,default:()=>p,frontMatter:()=>t,metadata:()=>s,toc:()=>a});var n=i(4848),d=i(8453);const t={title:"VideoToolbox",sidebar_position:4},r="VideoToolbox",s={id:"encoders_hw/videotoolbox",title:"VideoToolbox",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/encoders_hw/videotoolbox.mdx",sourceDirName:"encoders_hw",slug:"/encoders_hw/videotoolbox",permalink:"/docs/encoders_hw/videotoolbox",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders_hw/videotoolbox.mdx",tags:[],version:"current",sidebarPosition:4,frontMatter:{title:"VideoToolbox",sidebar_position:4},sidebar:"tutorialSidebar",previous:{title:"AMF",permalink:"/docs/encoders_hw/amf"},next:{title:"Mediacodec",permalink:"/docs/encoders_hw/mediacodec"}},c={},a=[{value:"Usage",id:"usage",level:2},{value:"FFmpeg",id:"ffmpeg",level:3},{value:"Handbrake",id:"handbrake",level:3}];function l(e){const o={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,d.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.header,{children:(0,n.jsx)(o.h1,{id:"videotoolbox",children:"VideoToolbox"})}),"\n",(0,n.jsx)(o.admonition,{title:"Under Maintenance",type:"info",children:(0,n.jsx)(o.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,n.jsx)(o.p,{children:"Apple's VideoToolbox is a low-level framework that provides direct access to hardware encoders and decoders. It offers services for video compression and decompression, as well as conversion between raster image formats stored in CoreVideo pixel buffers. The VideoToolbox encoder works by compressing video data for various applications such as low-latency conferencing, live streaming, and offline transcoding. It supports hardware encoding on most Macs from 2011 and later, and uses Apple's Media Engine on devices with Apple T2 chips or Apple Silicon."}),"\n",(0,n.jsxs)(o.p,{children:["The encoder can be configured to optimize encoding for specific applications, and it supports various video codecs including ",(0,n.jsx)(o.a,{href:"/docs/video/AVC",children:"H.264"}),", ",(0,n.jsx)(o.a,{href:"/docs/video/HEVC",children:"H.265"}),", with support for H.265 8-bit and 10-bit encoding. It is worth noting that the VideoToolbox encoder is designed for applications that require direct access to hardware encoders and decoders."]}),"\n",(0,n.jsxs)(o.p,{children:["Apple's VideoToolbox framework also supports hardware accelerated video decoding for a number of video codecs. As of the Apple M3, these include ",(0,n.jsx)(o.a,{href:"/docs/video/AVC",children:"H.264"}),", ",(0,n.jsx)(o.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,n.jsx)(o.a,{href:"/docs/video/prores",children:"ProRes"}),", ProRes RAW, and ",(0,n.jsx)(o.a,{href:"/docs/video/AV1",children:"AV1"}),"."]}),"\n",(0,n.jsx)(o.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsxs)(o.p,{children:["Encoding with Videotoolbox on macOS is possible via ",(0,n.jsx)(o.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),", a versatile command line utility, or Handbrake, a GUI for video encoding."]}),"\n",(0,n.jsx)(o.h3,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,n.jsxs)(o.p,{children:["To use H.264 or H.265 (HEVC) hardware encoding in macOS via VideoToolbox, just use the encoder ",(0,n.jsx)(o.code,{children:"-c:v h264_videotoolbox"})," or ",(0,n.jsx)(o.code,{children:"-c:v hevc_videotoolbox"})," for H.264 or HEVC respectively."]}),"\n",(0,n.jsx)(o.p,{children:"Here are some example commands for encoding with VideoToolbox on Apple Silicon via FFmpeg:"}),"\n",(0,n.jsx)(o.pre,{children:(0,n.jsx)(o.code,{className:"language-bash",metastring:'title="H.264 encoding (high profile)"',children:"ffmpeg -i input.mkv -c:v h264_videotoolbox -profile 100 -q:v [0-100] output.mp4\n"})}),"\n",(0,n.jsx)(o.pre,{children:(0,n.jsx)(o.code,{className:"language-bash",metastring:'title="8-bit HEVC encoding (main profile)"',children:"ffmpeg -i input.mkv -c:v hevc_videotoolbox -profile 1 -q:v [0-100] -tag:v hvc1 output.mp4\n"})}),"\n",(0,n.jsx)(o.pre,{children:(0,n.jsx)(o.code,{className:"language-bash",metastring:'title="10-bit HEVC encoding (main10 profile)"',children:"ffmpeg -i input.mkv -c:v hevc_videotoolbox -profile 2 -q:v [0-100] -tag:v hvc1 output.mp4\n"})}),"\n",(0,n.jsxs)(o.p,{children:["Just run ",(0,n.jsx)(o.code,{children:"ffmpeg -help encoder=hevc_videotoolbox"})," or ",(0,n.jsx)(o.code,{children:"ffmpeg -help encoder=h264_videotoolbox"})," for more info."]}),"\n",(0,n.jsx)(o.h3,{id:"handbrake",children:"Handbrake"}),"\n",(0,n.jsx)(o.p,{children:"To be filled."}),"\n",(0,n.jsxs)(o.p,{children:[(0,n.jsx)(o.em,{children:"Sources"}),"\n(1) Video Toolbox | Apple Developer Documentation. ",(0,n.jsx)(o.a,{href:"https://developer.apple.com/documentation/videotoolbox",children:"https://developer.apple.com/documentation/videotoolbox"}),".\n(2) HandBrake Documentation \u2014 Apple VideoToolbox. ",(0,n.jsx)(o.a,{href:"https://handbrake.fr/docs/en/latest/technical/video-videotoolbox.html",children:"https://handbrake.fr/docs/en/latest/technical/video-videotoolbox.html"}),".\n(3) Apple's T2 chip makes a giant difference in video encoding for most .... ",(0,n.jsx)(o.a,{href:"https://appleinsider.com/articles/19/04/09/apples-t2-chip-makes-a-giant-difference-in-video-encoding-for-most-users",children:"https://appleinsider.com/articles/19/04/09/apples-t2-chip-makes-a-giant-difference-in-video-encoding-for-most-users"}),"."]})]})}function p(e={}){const{wrapper:o}={...(0,d.R)(),...e.components};return o?(0,n.jsx)(o,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,o,i)=>{i.d(o,{R:()=>r,x:()=>s});var n=i(6540);const d={},t=n.createContext(d);function r(e){const o=n.useContext(t);return n.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function s(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:r(e.components),n.createElement(t.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/467a109f.87b8ee9a.js b/assets/js/467a109f.53fb113a.js similarity index 68% rename from assets/js/467a109f.87b8ee9a.js rename to assets/js/467a109f.53fb113a.js index 67d196830..a5b9b2beb 100644 --- a/assets/js/467a109f.87b8ee9a.js +++ b/assets/js/467a109f.53fb113a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7431],{891:a=>{a.exports=JSON.parse('{"tag":{"label":"benchmarks","permalink":"/blog/tags/benchmarks","allTagsPath":"/blog/tags","count":2,"unlisted":false},"listMetadata":{"permalink":"/blog/tags/benchmarks","page":1,"postsPerPage":10,"totalPages":1,"totalCount":2,"blogDescription":"Blog","blogTitle":"Blog"}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7431],{891:a=>{a.exports=JSON.parse('{"tag":{"label":"benchmarks","permalink":"/blog/tags/benchmarks","allTagsPath":"/blog/tags","count":3,"unlisted":false},"listMetadata":{"permalink":"/blog/tags/benchmarks","page":1,"postsPerPage":10,"totalPages":1,"totalCount":3,"blogDescription":"Blog","blogTitle":"Blog"}}')}}]); \ No newline at end of file diff --git a/assets/js/489.ac3cadbd.js b/assets/js/489.ac3cadbd.js deleted file mode 100644 index 6ad47144f..000000000 --- a/assets/js/489.ac3cadbd.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 489.ac3cadbd.js.LICENSE.txt */ -(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[489],{489:(t,e,n)=>{"use strict";t.exports=n(810)},2542:(t,e,n)=>{"use strict";var i=n(6573),s={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",noPrefix:!1,dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"},appendTo:{wrapper:{position:"absolute",zIndex:"100",display:"none"},input:{},inputWithNoHint:{},dropdown:{display:"block"}}};i.isMsie()&&i.mixin(s.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),i.isMsie()&&i.isMsie()<=7&&i.mixin(s.input,{marginTop:"-1px"}),t.exports=s},897:(t,e,n)=>{"use strict";var i="aaDataset",s="aaValue",r="aaDatum",o=n(6573),a=n(1348),u=n(9272),c=n(2542),l=n(4436);function h(t){var e;(t=t||{}).templates=t.templates||{},t.source||o.error("missing source"),t.name&&(e=t.name,!/^[_a-zA-Z0-9-]+$/.test(e))&&o.error("invalid dataset name: "+t.name),this.query=null,this._isEmpty=!0,this.highlight=!!t.highlight,this.name=void 0===t.name||null===t.name?o.getUniqueId():t.name,this.source=t.source,this.displayFn=function(t){return t=t||"value",o.isFunction(t)?t:e;function e(e){return e[t]}}(t.display||t.displayKey),this.debounce=t.debounce,this.cache=!1!==t.cache,this.templates=function(t,e){return{empty:t.empty&&o.templatify(t.empty),header:t.header&&o.templatify(t.header),footer:t.footer&&o.templatify(t.footer),suggestion:t.suggestion||n};function n(t){return"

"+e(t)+"

"}}(t.templates,this.displayFn),this.css=o.mixin({},c,t.appendTo?c.appendTo:{}),this.cssClasses=t.cssClasses=o.mixin({},c.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||o.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var n=o.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=t.$menu&&t.$menu.find(n+"-"+this.name).length>0?a.element(t.$menu.find(n+"-"+this.name)[0]):a.element(u.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=t.$menu,this.clearCachedSuggestions()}h.extractDatasetName=function(t){return a.element(t).data(i)},h.extractValue=function(t){return a.element(t).data(s)},h.extractDatum=function(t){var e=a.element(t).data(r);return"string"==typeof e&&(e=JSON.parse(e)),e},o.mixin(h.prototype,l,{_render:function(t,e){if(this.$el){var n,c=this,l=[].slice.call(arguments,2);if(this.$el.empty(),n=e&&e.length,this._isEmpty=!n,!n&&this.templates.empty)this.$el.html(function(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!0}].concat(e),c.templates.empty.apply(this,e)}.apply(this,l)).prepend(c.templates.header?h.apply(this,l):null).append(c.templates.footer?p.apply(this,l):null);else if(n)this.$el.html(function(){var t,n,l=[].slice.call(arguments,0),h=this,p=u.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return t=a.element(p).css(this.css.suggestions),n=o.map(e,f),t.append.apply(t,n),t;function f(t){var e,n=u.suggestion.replace("%PREFIX%",h.cssClasses.prefix).replace("%SUGGESTION%",h.cssClasses.suggestion);return(e=a.element(n).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(c.templates.suggestion.apply(this,[t].concat(l)))).data(i,c.name),e.data(s,c.displayFn(t)||void 0),e.data(r,JSON.stringify(t)),e.children().each((function(){a.element(this).css(h.css.suggestionChild)})),e}}.apply(this,l)).prepend(c.templates.header?h.apply(this,l):null).append(c.templates.footer?p.apply(this,l):null);else if(e&&!Array.isArray(e))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(n?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(n?"without":"with")+"-"+this.name),this.trigger("rendered",t)}function h(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!n}].concat(e),c.templates.header.apply(this,e)}function p(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!n}].concat(e),c.templates.footer.apply(this,e)}},getRoot:function(){return this.$el},update:function(t){function e(e){if(!this.canceled&&t===this.query){var n=[].slice.call(arguments,1);this.cacheSuggestions(t,e,n),this._render.apply(this,[t,e].concat(n))}}if(this.query=t,this.canceled=!1,this.shouldFetchFromCache(t))e.apply(this,[this.cachedSuggestions].concat(this.cachedRenderExtraArgs));else{var n=this,i=function(){n.canceled||n.source(t,e.bind(n))};if(this.debounce){clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout((function(){n.debounceTimeout=null,i()}),this.debounce)}else i()}},cacheSuggestions:function(t,e,n){this.cachedQuery=t,this.cachedSuggestions=e,this.cachedRenderExtraArgs=n},shouldFetchFromCache:function(t){return this.cache&&this.cachedQuery===t&&this.cachedSuggestions&&this.cachedSuggestions.length},clearCachedSuggestions:function(){delete this.cachedQuery,delete this.cachedSuggestions,delete this.cachedRenderExtraArgs},cancel:function(){this.canceled=!0},clear:function(){this.$el&&(this.cancel(),this.$el.empty(),this.trigger("rendered",""))},isEmpty:function(){return this._isEmpty},destroy:function(){this.clearCachedSuggestions(),this.$el=null}}),t.exports=h},1540:(t,e,n)=>{"use strict";var i=n(6573),s=n(1348),r=n(4436),o=n(897),a=n(2542);function u(t){var e,n,r,o=this;(t=t||{}).menu||i.error("menu is required"),i.isArray(t.datasets)||i.isObject(t.datasets)||i.error("1 or more datasets required"),t.datasets||i.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=t.minLength||0,this.templates={},this.appendTo=t.appendTo||!1,this.css=i.mixin({},a,t.appendTo?a.appendTo:{}),this.cssClasses=t.cssClasses=i.mixin({},a.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||i.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),e=i.bind(this._onSuggestionClick,this),n=i.bind(this._onSuggestionMouseEnter,this),r=i.bind(this._onSuggestionMouseLeave,this);var c=i.className(this.cssClasses.prefix,this.cssClasses.suggestion);this.$menu=s.element(t.menu).on("mouseenter.aa",c,n).on("mouseleave.aa",c,r).on("click.aa",c,e),this.$container=t.appendTo?t.wrapper:this.$menu,t.templates&&t.templates.header&&(this.templates.header=i.templatify(t.templates.header),this.$menu.prepend(this.templates.header())),t.templates&&t.templates.empty&&(this.templates.empty=i.templatify(t.templates.empty),this.$empty=s.element('
'),this.$menu.append(this.$empty),this.$empty.hide()),this.datasets=i.map(t.datasets,(function(e){return function(t,e,n){return new u.Dataset(i.mixin({$menu:t,cssClasses:n},e))}(o.$menu,e,t.cssClasses)})),i.each(this.datasets,(function(t){var e=t.getRoot();e&&0===e.parent().length&&o.$menu.append(e),t.onSync("rendered",o._onRendered,o)})),t.templates&&t.templates.footer&&(this.templates.footer=i.templatify(t.templates.footer),this.$menu.append(this.templates.footer()));var l=this;s.element(window).resize((function(){l._redraw()}))}i.mixin(u.prototype,r,{_onSuggestionClick:function(t){this.trigger("suggestionClicked",s.element(t.currentTarget))},_onSuggestionMouseEnter:function(t){var e=s.element(t.currentTarget);if(!e.hasClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))){this._removeCursor();var n=this;setTimeout((function(){n._setCursor(e,!1)}),0)}},_onSuggestionMouseLeave:function(t){if(t.relatedTarget&&s.element(t.relatedTarget).closest("."+i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length>0)return;this._removeCursor(),this.trigger("cursorRemoved")},_onRendered:function(t,e){if(this.isEmpty=i.every(this.datasets,(function(t){return t.isEmpty()})),this.isEmpty)if(e.length>=this.minLength&&this.trigger("empty"),this.$empty)if(e.length=this.minLength?this._show():this._hide());this.trigger("datasetRendered")},_hide:function(){this.$container.hide()},_show:function(){this.$container.css("display","block"),this._redraw(),this.trigger("shown")},_redraw:function(){this.isOpen&&this.appendTo&&this.trigger("redrawn")},_getSuggestions:function(){return this.$menu.find(i.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(i.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(t,e){t.first().addClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).attr("aria-selected","true"),this.trigger("cursorMoved",e)},_removeCursor:function(){this._getCursor().removeClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).removeAttr("aria-selected")},_moveCursor:function(t){var e,n,i,s;this.isOpen&&(n=this._getCursor(),e=this._getSuggestions(),this._removeCursor(),-1!==(i=((i=e.index(n)+t)+1)%(e.length+1)-1)?(i<-1&&(i=e.length-1),this._setCursor(s=e.eq(i),!0),this._ensureVisible(s)):this.trigger("cursorRemoved"))},_ensureVisible:function(t){var e,n,i,s;n=(e=t.position().top)+t.height()+parseInt(t.css("margin-top"),10)+parseInt(t.css("margin-bottom"),10),i=this.$menu.scrollTop(),s=this.$menu.height()+parseInt(this.$menu.css("padding-top"),10)+parseInt(this.$menu.css("padding-bottom"),10),e<0?this.$menu.scrollTop(i+e):s{"use strict";var i=n(6573),s=n(1348);function r(t){t&&t.el||i.error("EventBus initialized without el"),this.$el=s.element(t.el)}i.mixin(r.prototype,{trigger:function(t,e,n,s){var r=i.Event("autocomplete:"+t);return this.$el.trigger(r,[e,n,s]),r}}),t.exports=r},4436:(t,e,n)=>{"use strict";var i=n(874),s=/\s+/;function r(t,e,n,i){var r;if(!n)return this;for(e=e.split(s),n=i?function(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}(n,i):n,this._callbacks=this._callbacks||{};r=e.shift();)this._callbacks[r]=this._callbacks[r]||{sync:[],async:[]},this._callbacks[r][t].push(n);return this}function o(t,e,n){return function(){for(var i,s=0,r=t.length;!i&&s{"use strict";t.exports={wrapper:'',dropdown:'',dataset:'
',suggestions:'',suggestion:'
'}},9629:(t,e,n)=>{"use strict";var i;i={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var s=n(6573),r=n(1348),o=n(4436);function a(t){var e,n,o,a,u,c=this;(t=t||{}).input||s.error("input is missing"),e=s.bind(this._onBlur,this),n=s.bind(this._onFocus,this),o=s.bind(this._onKeydown,this),a=s.bind(this._onInput,this),this.$hint=r.element(t.hint),this.$input=r.element(t.input).on("blur.aa",e).on("focus.aa",n).on("keydown.aa",o),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=s.noop),s.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",(function(t){i[t.which||t.keyCode]||s.defer(s.bind(c._onInput,c,t))})):this.$input.on("input.aa",a),this.query=this.$input.val(),this.$overflowHelper=(u=this.$input,r.element('').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:u.css("font-family"),fontSize:u.css("font-size"),fontStyle:u.css("font-style"),fontVariant:u.css("font-variant"),fontWeight:u.css("font-weight"),wordSpacing:u.css("word-spacing"),letterSpacing:u.css("letter-spacing"),textIndent:u.css("text-indent"),textRendering:u.css("text-rendering"),textTransform:u.css("text-transform")}).insertAfter(u))}function u(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}a.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},s.mixin(a.prototype,o,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(t){var e=i[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(t,e){var n,i,s;switch(t){case"tab":i=this.getHint(),s=this.getInputValue(),n=i&&i!==s&&!u(e);break;case"up":case"down":n=!u(e);break;default:n=!1}n&&e.preventDefault()},_shouldTrigger:function(t,e){var n;if("tab"===t)n=!u(e);else n=!0;return n},_checkInputValue:function(){var t,e,n,i,s;t=this.getInputValue(),i=t,s=this.query,n=!(!(e=a.normalizeQuery(i)===a.normalizeQuery(s))||!this.query)&&this.query.length!==t.length,this.query=t,e?n&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(t){this.query=t},getInputValue:function(){return this.$input.val()},setInputValue:function(t,e){void 0===t&&(t=this.query),this.$input.val(t),e?this.clearHint():this._checkInputValue()},expand:function(){this.$input.attr("aria-expanded","true")},collapse:function(){this.$input.attr("aria-expanded","false")},setActiveDescendant:function(t){this.$input.attr("aria-activedescendant",t)},removeActiveDescendant:function(){this.$input.removeAttr("aria-activedescendant")},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,n;n=(t=this.getInputValue())!==(e=this.getHint())&&0===e.indexOf(t),""!==t&&n&&!this.hasOverflow()||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t,e,n;return t=this.$input.val().length,e=this.$input[0].selectionStart,s.isNumber(e)?e===t:!document.selection||((n=document.selection.createRange()).moveStart("character",-t),t===n.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),t.exports=a},7360:(t,e,n)=>{"use strict";var i="aaAttrs",s=n(6573),r=n(1348),o=n(2324),a=n(9629),u=n(1540),c=n(9272),l=n(2542);function h(t){var e,n;if((t=t||{}).input||s.error("missing input"),this.isActivated=!1,this.debug=!!t.debug,this.autoselect=!!t.autoselect,this.autoselectOnBlur=!!t.autoselectOnBlur,this.openOnFocus=!!t.openOnFocus,this.minLength=s.isNumber(t.minLength)?t.minLength:1,this.autoWidth=void 0===t.autoWidth||!!t.autoWidth,this.clearOnSelected=!!t.clearOnSelected,this.tabAutocomplete=void 0===t.tabAutocomplete||!!t.tabAutocomplete,t.hint=!!t.hint,t.hint&&t.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=t.css=s.mixin({},l,t.appendTo?l.appendTo:{}),this.cssClasses=t.cssClasses=s.mixin({},l.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix=s.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=t.listboxId=[this.cssClasses.root,"listbox",s.getUniqueId()].join("-");var a=function(t){var e,n,o,a;e=r.element(t.input),n=r.element(c.wrapper.replace("%ROOT%",t.cssClasses.root)).css(t.css.wrapper),t.appendTo||"block"!==e.css("display")||"table"!==e.parent().css("display")||n.css("display","table-cell");var u=c.dropdown.replace("%PREFIX%",t.cssClasses.prefix).replace("%DROPDOWN_MENU%",t.cssClasses.dropdownMenu);o=r.element(u).css(t.css.dropdown).attr({role:"listbox",id:t.listboxId}),t.templates&&t.templates.dropdownMenu&&o.html(s.templatify(t.templates.dropdownMenu)());a=e.clone().css(t.css.hint).css(function(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}(e)),a.val("").addClass(s.className(t.cssClasses.prefix,t.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({"aria-hidden":"true",autocomplete:"off",spellcheck:"false",tabindex:-1}),a.removeData&&a.removeData();e.data(i,{"aria-autocomplete":e.attr("aria-autocomplete"),"aria-expanded":e.attr("aria-expanded"),"aria-owns":e.attr("aria-owns"),autocomplete:e.attr("autocomplete"),dir:e.attr("dir"),role:e.attr("role"),spellcheck:e.attr("spellcheck"),style:e.attr("style"),type:e.attr("type")}),e.addClass(s.className(t.cssClasses.prefix,t.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":t.datasets&&t.datasets[0]&&t.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":t.ariaLabel,"aria-owns":t.listboxId}).css(t.hint?t.css.input:t.css.inputWithNoHint);try{e.attr("dir")||e.attr("dir","auto")}catch(l){}return n=t.appendTo?n.appendTo(r.element(t.appendTo).eq(0)).eq(0):e.wrap(n).parent(),n.prepend(t.hint?a:null).append(o),{wrapper:n,input:e,hint:a,menu:o}}(t);this.$node=a.wrapper;var u=this.$input=a.input;e=a.menu,n=a.hint,t.dropdownMenuContainer&&r.element(t.dropdownMenuContainer).css("position","relative").append(e.css("top","0")),u.on("blur.aa",(function(t){var n=document.activeElement;s.isMsie()&&(e[0]===n||e[0].contains(n))&&(t.preventDefault(),t.stopImmediatePropagation(),s.defer((function(){u.focus()})))})),e.on("mousedown.aa",(function(t){t.preventDefault()})),this.eventBus=t.eventBus||new o({el:u}),this.dropdown=new h.Dropdown({appendTo:t.appendTo,wrapper:this.$node,menu:e,datasets:t.datasets,templates:t.templates,cssClasses:t.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onSync("redrawn",this._onRedrawn,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new h.Input({input:u,hint:n}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(t),this._setLanguageDirection()}s.mixin(h.prototype,{_bindKeyboardShortcuts:function(t){if(t.keyboardShortcuts){var e=this.$input,n=[];s.each(t.keyboardShortcuts,(function(t){"string"==typeof t&&(t=t.toUpperCase().charCodeAt(0)),n.push(t)})),r.element(document).keydown((function(t){var i=t.target||t.srcElement,s=i.tagName;if(!i.isContentEditable&&"INPUT"!==s&&"SELECT"!==s&&"TEXTAREA"!==s){var r=t.which||t.keyCode;-1!==n.indexOf(r)&&(e.focus(),t.stopPropagation(),t.preventDefault())}}))}},_onSuggestionClicked:function(t,e){var n;(n=this.dropdown.getDatumForSuggestion(e))&&this._select(n,{selectionMethod:"click"})},_onCursorMoved:function(t,e){var n=this.dropdown.getDatumForCursor(),i=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(i),n&&(e&&this.input.setInputValue(n.value,!0),this.eventBus.trigger("cursorchanged",n.raw,n.datasetName))},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint(),this.eventBus.trigger("cursorremoved")},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.input.expand(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onRedrawn:function(){this.$node.css("top","0px"),this.$node.css("left","0px");var t=this.$input[0].getBoundingClientRect();this.autoWidth&&this.$node.css("width",t.width+"px");var e=this.$node[0].getBoundingClientRect(),n=t.bottom-e.top;this.$node.css("top",n+"px");var i=t.left-e.left;this.$node.css("left",i+"px"),this.eventBus.trigger("redrawn")},_onShown:function(){this.eventBus.trigger("shown"),this.autoselect&&this.dropdown.cursorTopSuggestion()},_onClosed:function(){this.input.clearHint(),this.input.removeActiveDescendant(),this.input.collapse(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var t=this.input.getQuery();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){var t,e;t=this.dropdown.getDatumForCursor(),e=this.dropdown.getDatumForTopSuggestion();var n={selectionMethod:"blur"};this.debug||(this.autoselectOnBlur&&t?this._select(t,n):this.autoselectOnBlur&&e?this._select(e,n):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(t,e){var n,i;n=this.dropdown.getDatumForCursor(),i=this.dropdown.getDatumForTopSuggestion();var s={selectionMethod:"enterKey"};n?(this._select(n,s),e.preventDefault()):this.autoselect&&i&&(this._select(i,s),e.preventDefault())},_onTabKeyed:function(t,e){if(this.tabAutocomplete){var n;(n=this.dropdown.getDatumForCursor())?(this._select(n,{selectionMethod:"tabKey"}),e.preventDefault()):this._autocomplete(!0)}else this.dropdown.close()},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(t,e){this.input.clearHintIfInvalid(),e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var t=this.input.getLanguageDirection();this.dir!==t&&(this.dir=t,this.$node.css("direction",t),this.dropdown.setLanguageDirection(t))},_updateHint:function(){var t,e,n,i,r;(t=this.dropdown.getDatumForTopSuggestion())&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(e=this.input.getInputValue(),n=a.normalizeQuery(e),i=s.escapeRegExChars(n),(r=new RegExp("^(?:"+i+")(.+$)","i").exec(t.value))?this.input.setHint(e+r[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(t){var e,n,i,s;e=this.input.getHint(),n=this.input.getQuery(),i=t||this.input.isCursorAtEnd(),e&&n!==e&&i&&((s=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(s.value),this.eventBus.trigger("autocompleted",s.raw,s.datasetName))},_select:function(t,e){void 0!==t.value&&this.input.setQuery(t.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(t.value,!0),this._setLanguageDirection(),!1===this.eventBus.trigger("selected",t.raw,t.datasetName,e).isDefaultPrevented()&&(this.dropdown.close(),s.defer(s.bind(this.dropdown.empty,this.dropdown)))},open:function(){if(!this.isActivated){var t=this.input.getInputValue();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(t){t=s.toStr(t),this.isActivated?this.input.setInputValue(t):(this.input.setQuery(t),this.input.setInputValue(t,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy(),function(t,e){var n=t.find(s.className(e.prefix,e.input));s.each(n.data(i),(function(t,e){void 0===t?n.removeAttr(e):n.attr(e,t)})),n.detach().removeClass(s.className(e.prefix,e.input,!0)).insertAfter(t),n.removeData&&n.removeData(i);t.remove()}(this.$node,this.cssClasses),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),h.Dropdown=u,h.Input=a,h.sources=n(6353),t.exports=h},1348:t=>{"use strict";t.exports={element:null}},9715:t=>{"use strict";t.exports=function(t){var e=t.match(/Algolia for JavaScript \((\d+\.)(\d+\.)(\d+)\)/)||t.match(/Algolia for vanilla JavaScript (\d+\.)(\d+\.)(\d+)/);if(e)return[e[1],e[2],e[3]]}},6573:(t,e,n)=>{"use strict";var i,s=n(8937),r=n(1348);function o(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}t.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(t){if(void 0===t&&(t=navigator.userAgent),/(msie|trident)/i.test(t)){var e=t.match(/(msie |rv:)(\d+(.\d+)?)/i);if(e)return e[2]}return!1},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(t){return"number"==typeof t},toStr:function(t){return null==t?"":t+""},cloneDeep:function(t){var e=this.mixin({},t),n=this;return this.each(e,(function(t,i){t&&(n.isArray(t)?e[i]=[].concat(t):n.isObject(t)&&(e[i]=n.cloneDeep(t)))})),e},error:function(t){throw new Error(t)},every:function(t,e){var n=!0;return t?(this.each(t,(function(i,s){n&&(n=e.call(null,i,s,t)&&n)})),!!n):n},any:function(t,e){var n=!1;return t?(this.each(t,(function(i,s){if(e.call(null,i,s,t))return n=!0,!1})),n):n},getUniqueId:(i=0,function(){return i++}),templatify:function(t){if(this.isFunction(t))return t;var e=r.element(t);return"SCRIPT"===e.prop("tagName")?function(){return e.text()}:function(){return String(t)}},defer:function(t){setTimeout(t,0)},noop:function(){},formatPrefix:function(t,e){return e?"":t+"-"},className:function(t,e,n){return n?t+e:"."+s(t+e,{isIdentifier:!0})},escapeHighlightedString:function(t,e,n){e=e||"";var i=document.createElement("div");i.appendChild(document.createTextNode(e)),n=n||"";var s=document.createElement("div");s.appendChild(document.createTextNode(n));var r=document.createElement("div");return r.appendChild(document.createTextNode(t)),r.innerHTML.replace(RegExp(o(i.innerHTML),"g"),e).replace(RegExp(o(s.innerHTML),"g"),n)}}},6903:(t,e,n)=>{"use strict";var i=n(6573),s=n(2281),r=n(9715);var o,a,u=(o=[],a=window.Promise.resolve(),function(t,e){return function(n,s){(function(t,e){return window.Promise.resolve().then((function(){return o.length&&(a=t.search(o),o=[]),a})).then((function(t){if(t)return t.results[e]}))})(t.as,o.push({indexName:t.indexName,query:n,params:e})-1).then((function(t){t&&s(t.hits,t)})).catch((function(t){i.error(t.message)}))}});t.exports=function(t,e){var n=r(t.as._ua);if(n&&n[0]>=3&&n[1]>20){var i="autocomplete.js "+s;-1===t.as._ua.indexOf(i)&&(t.as._ua+="; "+i)}return u(t,e)}},6353:(t,e,n)=>{"use strict";t.exports={hits:n(6903),popularIn:n(6839)}},6839:(t,e,n)=>{"use strict";var i=n(6573),s=n(2281),r=n(9715);t.exports=function(t,e,n,o){var a=r(t.as._ua);if(a&&a[0]>=3&&a[1]>20&&((e=e||{}).additionalUA="autocomplete.js "+s),!n.source)return i.error("Missing 'source' key");var u=i.isFunction(n.source)?n.source:function(t){return t[n.source]};if(!n.index)return i.error("Missing 'index' key");var c=n.index;return o=o||{},function(a,l){t.search(a,e,(function(t,a){if(t)i.error(t.message);else{if(a.hits.length>0){var h=a.hits[0],p=i.mixin({hitsPerPage:0},n);delete p.source,delete p.index;var f=r(c.as._ua);return f&&f[0]>=3&&f[1]>20&&(e.additionalUA="autocomplete.js "+s),void c.search(u(h),p,(function(t,e){if(t)i.error(t.message);else{var n=[];if(o.includeAll){var s=o.allTitle||"All departments";n.push(i.mixin({facet:{value:s,count:e.nbHits}},i.cloneDeep(h)))}i.each(e.facets,(function(t,e){i.each(t,(function(t,s){n.push(i.mixin({facet:{facet:e,value:s,count:t}},i.cloneDeep(h)))}))}));for(var r=1;r{"use strict";var i=n(9539);n(1348).element=i;var s=n(6573);s.isArray=i.isArray,s.isFunction=i.isFunction,s.isObject=i.isPlainObject,s.bind=i.proxy,s.each=function(t,e){i.each(t,(function(t,n){return e(n,t)}))},s.map=i.map,s.mixin=i.extend,s.Event=i.Event;var r="aaAutocomplete",o=n(7360),a=n(2324);function u(t,e,n,u){n=s.isArray(n)?n:[].slice.call(arguments,2);var c=i(t).each((function(t,s){var c=i(s),l=new a({el:c}),h=u||new o({input:c,eventBus:l,dropdownMenuContainer:e.dropdownMenuContainer,hint:void 0===e.hint||!!e.hint,minLength:e.minLength,autoselect:e.autoselect,autoselectOnBlur:e.autoselectOnBlur,tabAutocomplete:e.tabAutocomplete,openOnFocus:e.openOnFocus,templates:e.templates,debug:e.debug,clearOnSelected:e.clearOnSelected,cssClasses:e.cssClasses,datasets:n,keyboardShortcuts:e.keyboardShortcuts,appendTo:e.appendTo,autoWidth:e.autoWidth,ariaLabel:e.ariaLabel||s.getAttribute("aria-label")});c.data(r,h)}));return c.autocomplete={},s.each(["open","close","getVal","setVal","destroy","getWrapper"],(function(t){c.autocomplete[t]=function(){var e,n=arguments;return c.each((function(s,o){var a=i(o).data(r);e=a[t].apply(a,n)})),e}})),c}u.sources=o.sources,u.escapeHighlightedString=s.escapeHighlightedString;var c="autocomplete"in window,l=window.autocomplete;u.noConflict=function(){return c?window.autocomplete=l:delete window.autocomplete,u},t.exports=u},2281:t=>{t.exports="0.38.1"},9539:t=>{var e;e=window,t.exports=function(t){var e,n,i=function(){var e,n,i,s,r,o,a=[],u=a.concat,c=a.filter,l=a.slice,h=t.document,p={},f={},d={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},g=/^\s*<(\w+|!)[^>]*>/,m=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,y=/^(?:body|html)$/i,w=/([A-Z])/g,b=["val","css","html","text","data","width","height","offset"],C=["after","prepend","before","append"],x=h.createElement("table"),_=h.createElement("tr"),S={tr:h.createElement("tbody"),tbody:x,thead:x,tfoot:x,td:_,th:_,"*":h.createElement("div")},E=/complete|loaded|interactive/,A=/^[\w-]*$/,$={},T=$.toString,O={},D=h.createElement("div"),N={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},k=Array.isArray||function(t){return t instanceof Array};function I(t){return null==t?String(t):$[T.call(t)]||"object"}function P(t){return"function"==I(t)}function L(t){return null!=t&&t==t.window}function M(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function F(t){return"object"==I(t)}function R(t){return F(t)&&!L(t)&&Object.getPrototypeOf(t)==Object.prototype}function q(t){var e=!!t&&"length"in t&&t.length,n=i.type(t);return"function"!=n&&!L(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function V(t){return c.call(t,(function(t){return null!=t}))}function H(t){return t.length>0?i.fn.concat.apply([],t):t}function B(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function K(t){return t in f?f[t]:f[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function j(t,e){return"number"!=typeof e||d[B(t)]?e:e+"px"}function z(t){var e,n;return p[t]||(e=h.createElement(t),h.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),p[t]=n),p[t]}function U(t){return"children"in t?l.call(t.children):i.map(t.childNodes,(function(t){if(1==t.nodeType)return t}))}function Q(t,e){var n,i=t?t.length:0;for(n=0;n")),n===e&&(n=g.test(t)&&RegExp.$1),n in S||(n="*"),(a=S[n]).innerHTML=""+t,r=i.each(l.call(a.childNodes),(function(){a.removeChild(this)}))),R(s)&&(o=i(r),i.each(s,(function(t,e){b.indexOf(t)>-1?o[t](e):o.attr(t,e)}))),r},O.Z=function(t,e){return new Q(t,e)},O.isZ=function(t){return t instanceof O.Z},O.init=function(t,n){var s;if(!t)return O.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&g.test(t))s=O.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);s=O.qsa(h,t)}else{if(P(t))return i(h).ready(t);if(O.isZ(t))return t;if(k(t))s=V(t);else if(F(t))s=[t],t=null;else if(g.test(t))s=O.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);s=O.qsa(h,t)}}return O.Z(s,t)},(i=function(t,e){return O.init(t,e)}).extend=function(t){var e,n=l.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach((function(n){W(t,n,e)})),t},O.qsa=function(t,e){var n,i="#"==e[0],s=!i&&"."==e[0],r=i||s?e.slice(1):e,o=A.test(r);return t.getElementById&&o&&i?(n=t.getElementById(r))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:l.call(o&&!i&&t.getElementsByClassName?s?t.getElementsByClassName(r):t.getElementsByTagName(e):t.querySelectorAll(e))},i.contains=h.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},i.type=I,i.isFunction=P,i.isWindow=L,i.isArray=k,i.isPlainObject=R,i.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},i.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},i.inArray=function(t,e,n){return a.indexOf.call(e,t,n)},i.camelCase=r,i.trim=function(t){return null==t?"":String.prototype.trim.call(t)},i.uuid=0,i.support={},i.expr={},i.noop=function(){},i.map=function(t,e){var n,i,s,r=[];if(q(t))for(i=0;i=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(t){return a.every.call(this,(function(e,n){return!1!==t.call(e,n,e)})),this},filter:function(t){return P(t)?this.not(this.not(t)):i(c.call(this,(function(e){return O.matches(e,t)})))},add:function(t,e){return i(o(this.concat(i(t,e))))},is:function(t){return this.length>0&&O.matches(this[0],t)},not:function(t){var n=[];if(P(t)&&t.call!==e)this.each((function(e){t.call(this,e)||n.push(this)}));else{var s="string"==typeof t?this.filter(t):q(t)&&P(t.item)?l.call(t):i(t);this.forEach((function(t){s.indexOf(t)<0&&n.push(t)}))}return i(n)},has:function(t){return this.filter((function(){return F(t)?i.contains(this,t):i(this).find(t).size()}))},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!F(t)?t:i(t)},last:function(){var t=this[this.length-1];return t&&!F(t)?t:i(t)},find:function(t){var e=this;return t?"object"==typeof t?i(t).filter((function(){var t=this;return a.some.call(e,(function(e){return i.contains(e,t)}))})):1==this.length?i(O.qsa(this[0],t)):this.map((function(){return O.qsa(this,t)})):i()},closest:function(t,e){var n=[],s="object"==typeof t&&i(t);return this.each((function(i,r){for(;r&&!(s?s.indexOf(r)>=0:O.matches(r,t));)r=r!==e&&!M(r)&&r.parentNode;r&&n.indexOf(r)<0&&n.push(r)})),i(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=i.map(n,(function(t){if((t=t.parentNode)&&!M(t)&&e.indexOf(t)<0)return e.push(t),t}));return Z(e,t)},parent:function(t){return Z(o(this.pluck("parentNode")),t)},children:function(t){return Z(this.map((function(){return U(this)})),t)},contents:function(){return this.map((function(){return this.contentDocument||l.call(this.childNodes)}))},siblings:function(t){return Z(this.map((function(t,e){return c.call(U(e.parentNode),(function(t){return t!==e}))})),t)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(t){return i.map(this,(function(e){return e[t]}))},show:function(){return this.each((function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=z(this.nodeName))}))},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=P(t);if(this[0]&&!e)var n=i(t).get(0),s=n.parentNode||this.length>1;return this.each((function(r){i(this).wrapAll(e?t.call(this,r):s?n.cloneNode(!0):n)}))},wrapAll:function(t){if(this[0]){var e;for(i(this[0]).before(t=i(t));(e=t.children()).length;)t=e.first();i(t).append(this)}return this},wrapInner:function(t){var e=P(t);return this.each((function(n){var s=i(this),r=s.contents(),o=e?t.call(this,n):t;r.length?r.wrapAll(o):s.append(o)}))},unwrap:function(){return this.parent().each((function(){i(this).replaceWith(i(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(t){return this.each((function(){var n=i(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()}))},prev:function(t){return i(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return i(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each((function(e){var n=this.innerHTML;i(this).empty().append(X(this,t,e,n))})):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each((function(e){var n=X(this,t,e,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(t,i){var s;return"string"!=typeof t||1 in arguments?this.each((function(e){if(1===this.nodeType)if(F(t))for(n in t)G(this,n,t[n]);else G(this,t,X(this,i,e,this.getAttribute(t)))})):0 in this&&1==this[0].nodeType&&null!=(s=this[0].getAttribute(t))?s:e},removeAttr:function(t){return this.each((function(){1===this.nodeType&&t.split(" ").forEach((function(t){G(this,t)}),this)}))},prop:function(t,e){return t=N[t]||t,1 in arguments?this.each((function(n){this[t]=X(this,e,n,this[t])})):this[0]&&this[0][t]},removeProp:function(t){return t=N[t]||t,this.each((function(){delete this[t]}))},data:function(t,n){var i="data-"+t.replace(w,"-$1").toLowerCase(),s=1 in arguments?this.attr(i,n):this.attr(i);return null!==s?Y(s):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each((function(e){this.value=X(this,t,e,this.value)}))):this[0]&&(this[0].multiple?i(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each((function(t){var n=i(this),s=X(this,e,t,n.offset()),r=n.offsetParent().offset(),o={top:s.top-r.top,left:s.left-r.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)}));if(!this.length)return null;if(h.documentElement!==this[0]&&!i.contains(h.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var s=this[0];if("string"==typeof t){if(!s)return;return s.style[r(t)]||getComputedStyle(s,"").getPropertyValue(t)}if(k(t)){if(!s)return;var o={},a=getComputedStyle(s,"");return i.each(t,(function(t,e){o[e]=s.style[r(e)]||a.getPropertyValue(e)})),o}}var u="";if("string"==I(t))e||0===e?u=B(t)+":"+j(t,e):this.each((function(){this.style.removeProperty(B(t))}));else for(n in t)t[n]||0===t[n]?u+=B(n)+":"+j(n,t[n])+";":this.each((function(){this.style.removeProperty(B(n))}));return this.each((function(){this.style.cssText+=";"+u}))},index:function(t){return t?this.indexOf(i(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&a.some.call(this,(function(t){return this.test(J(t))}),K(t))},addClass:function(t){return t?this.each((function(e){if("className"in this){s=[];var n=J(this);X(this,t,e,n).split(/\s+/g).forEach((function(t){i(this).hasClass(t)||s.push(t)}),this),s.length&&J(this,n+(n?" ":"")+s.join(" "))}})):this},removeClass:function(t){return this.each((function(n){if("className"in this){if(t===e)return J(this,"");s=J(this),X(this,t,n,s).split(/\s+/g).forEach((function(t){s=s.replace(K(t)," ")})),J(this,s.trim())}}))},toggleClass:function(t,n){return t?this.each((function(s){var r=i(this);X(this,t,s,J(this)).split(/\s+/g).forEach((function(t){(n===e?!r.hasClass(t):n)?r.addClass(t):r.removeClass(t)}))})):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),s=y.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(i(t).css("margin-top"))||0,n.left-=parseFloat(i(t).css("margin-left"))||0,s.top+=parseFloat(i(e[0]).css("border-top-width"))||0,s.left+=parseFloat(i(e[0]).css("border-left-width"))||0,{top:n.top-s.top,left:n.left-s.left}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||h.body;t&&!y.test(t.nodeName)&&"static"==i(t).css("position");)t=t.offsetParent;return t}))}},i.fn.detach=i.fn.remove,["width","height"].forEach((function(t){var n=t.replace(/./,(function(t){return t[0].toUpperCase()}));i.fn[t]=function(s){var r,o=this[0];return s===e?L(o)?o["inner"+n]:M(o)?o.documentElement["scroll"+n]:(r=this.offset())&&r[t]:this.each((function(e){(o=i(this)).css(t,X(this,s,e,o[t]()))}))}})),C.forEach((function(n,s){var r=s%2;i.fn[n]=function(){var n,o,a=i.map(arguments,(function(t){var s=[];return"array"==(n=I(t))?(t.forEach((function(t){return t.nodeType!==e?s.push(t):i.zepto.isZ(t)?s=s.concat(t.get()):void(s=s.concat(O.fragment(t)))})),s):"object"==n||null==t?t:O.fragment(t)})),u=this.length>1;return a.length<1?this:this.each((function(e,n){o=r?n:n.parentNode,n=0==s?n.nextSibling:1==s?n.firstChild:2==s?n:null;var c=i.contains(h.documentElement,o);a.forEach((function(e){if(u)e=e.cloneNode(!0);else if(!o)return i(e).remove();o.insertBefore(e,n),c&&tt(e,(function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}}))}))}))},i.fn[r?n+"To":"insert"+(s?"Before":"After")]=function(t){return i(t)[n](this),this}})),O.Z.prototype=Q.prototype=i.fn,O.uniq=o,O.deserializeValue=Y,i.zepto=O,i}();return function(e){var n,i=1,s=Array.prototype.slice,r=e.isFunction,o=function(t){return"string"==typeof t},a={},u={},c="onfocusin"in t,l={focus:"focusin",blur:"focusout"},h={mouseenter:"mouseover",mouseleave:"mouseout"};function p(t){return t._zid||(t._zid=i++)}function f(t,e,n,i){if((e=d(e)).ns)var s=g(e.ns);return(a[p(t)]||[]).filter((function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||s.test(t.ns))&&(!n||p(t.fn)===p(n))&&(!i||t.sel==i)}))}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function g(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function m(t,e){return t.del&&!c&&t.e in l||!!e}function v(t){return h[t]||c&&l[t]||t}function y(t,i,s,r,o,u,c){var l=p(t),f=a[l]||(a[l]=[]);i.split(/\s/).forEach((function(i){if("ready"==i)return e(document).ready(s);var a=d(i);a.fn=s,a.sel=o,a.e in h&&(s=function(t){var n=t.relatedTarget;if(!n||n!==this&&!e.contains(this,n))return a.fn.apply(this,arguments)}),a.del=u;var l=u||s;a.proxy=function(e){if(!(e=S(e)).isImmediatePropagationStopped()){try{var i=Object.getOwnPropertyDescriptor(e,"data");i&&!i.writable||(e.data=r)}catch(e){}var s=l.apply(t,e._args==n?[e]:[e].concat(e._args));return!1===s&&(e.preventDefault(),e.stopPropagation()),s}},a.i=f.length,f.push(a),"addEventListener"in t&&t.addEventListener(v(a.e),a.proxy,m(a,c))}))}function w(t,e,n,i,s){var r=p(t);(e||"").split(/\s/).forEach((function(e){f(t,e,n,i).forEach((function(e){delete a[r][e.i],"removeEventListener"in t&&t.removeEventListener(v(e.e),e.proxy,m(e,s))}))}))}u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",e.event={add:y,remove:w},e.proxy=function(t,n){var i=2 in arguments&&s.call(arguments,2);if(r(t)){var a=function(){return t.apply(n,i?i.concat(s.call(arguments)):arguments)};return a._zid=p(t),a}if(o(n))return i?(i.unshift(t[n],t),e.proxy.apply(null,i)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var b=function(){return!0},C=function(){return!1},x=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,_={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function S(t,i){if(i||!t.isDefaultPrevented){i||(i=t),e.each(_,(function(e,n){var s=i[e];t[e]=function(){return this[n]=b,s&&s.apply(i,arguments)},t[n]=C}));try{t.timeStamp||(t.timeStamp=Date.now())}catch(s){}(i.defaultPrevented!==n?i.defaultPrevented:"returnValue"in i?!1===i.returnValue:i.getPreventDefault&&i.getPreventDefault())&&(t.isDefaultPrevented=b)}return t}function E(t){var e,i={originalEvent:t};for(e in t)x.test(e)||t[e]===n||(i[e]=t[e]);return S(i,t)}e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,i,a,u,c){var l,h,p=this;return t&&!o(t)?(e.each(t,(function(t,e){p.on(t,i,a,e,c)})),p):(o(i)||r(u)||!1===u||(u=a,a=i,i=n),u!==n&&!1!==a||(u=a,a=n),!1===u&&(u=C),p.each((function(n,r){c&&(l=function(t){return w(r,t.type,u),u.apply(this,arguments)}),i&&(h=function(t){var n,o=e(t.target).closest(i,r).get(0);if(o&&o!==r)return n=e.extend(E(t),{currentTarget:o,liveFired:r}),(l||u).apply(o,[n].concat(s.call(arguments,1)))}),y(r,t,u,a,i,h||l)})))},e.fn.off=function(t,i,s){var a=this;return t&&!o(t)?(e.each(t,(function(t,e){a.off(t,i,e)})),a):(o(i)||r(s)||!1===s||(s=i,i=n),!1===s&&(s=C),a.each((function(){w(this,t,s,i)})))},e.fn.trigger=function(t,n){return(t=o(t)||e.isPlainObject(t)?e.Event(t):S(t))._args=n,this.each((function(){t.type in l&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)}))},e.fn.triggerHandler=function(t,n){var i,s;return this.each((function(r,a){(i=E(o(t)?e.Event(t):t))._args=n,i.target=a,e.each(f(a,t.type||t),(function(t,e){if(s=e.proxy(i),i.isImmediatePropagationStopped())return!1}))})),s},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach((function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}})),e.Event=function(t,e){o(t)||(t=(e=t).type);var n=document.createEvent(u[t]||"Events"),i=!0;if(e)for(var s in e)"bubbles"==s?i=!!e[s]:n[s]=e[s];return n.initEvent(t,i,!0),S(n)}}(i),n=[],i.fn.remove=function(){return this.each((function(){this.parentNode&&("IMG"===this.tagName&&(n.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",e&&clearTimeout(e),e=setTimeout((function(){n=[]}),6e4)),this.parentNode.removeChild(this))}))},function(t){var e={},n=t.fn.data,i=t.camelCase,s=t.expando="Zepto"+ +new Date,r=[];function o(r,o){var u=r[s],c=u&&e[u];if(void 0===o)return c||a(r);if(c){if(o in c)return c[o];var l=i(o);if(l in c)return c[l]}return n.call(t(r),o)}function a(n,r,o){var a=n[s]||(n[s]=++t.uuid),c=e[a]||(e[a]=u(n));return void 0!==r&&(c[i(r)]=o),c}function u(e){var n={};return t.each(e.attributes||r,(function(e,s){0==s.name.indexOf("data-")&&(n[i(s.name.replace("data-",""))]=t.zepto.deserializeValue(s.value))})),n}t.fn.data=function(e,n){return void 0===n?t.isPlainObject(e)?this.each((function(n,i){t.each(e,(function(t,e){a(i,t,e)}))})):0 in this?o(this[0],e):void 0:this.each((function(){a(this,e,n)}))},t.data=function(e,n,i){return t(e).data(n,i)},t.hasData=function(n){var i=n[s],r=i&&e[i];return!!r&&!t.isEmptyObject(r)},t.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each((function(){var r=this[s],o=r&&e[r];o&&t.each(n||o,(function(t){delete o[n?i(this):t]}))}))},["remove","empty"].forEach((function(e){var n=t.fn[e];t.fn[e]=function(){var t=this.find("*");return"remove"===e&&(t=t.add(this)),t.removeData(),n.call(this)}}))}(i),i}(e)},8937:t=>{"use strict";var e={}.hasOwnProperty,n=/[ -,\.\/:-@\[-\^`\{-~]/,i=/[ -,\.\/:-@\[\]\^`\{-~]/,s=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,r=function t(r,o){"single"!=(o=function(t,n){if(!t)return n;var i={};for(var s in n)i[s]=e.call(t,s)?t[s]:n[s];return i}(o,t.options)).quotes&&"double"!=o.quotes&&(o.quotes="single");for(var a="double"==o.quotes?'"':"'",u=o.isIdentifier,c=r.charAt(0),l="",h=0,p=r.length;h126){if(d>=55296&&d<=56319&&h{"use strict";var i,s,r,o=[n(5741),n(1856),n(1015),n(6486),n(5723),n(6345)],a=-1,u=[],c=!1;function l(){i&&s&&(i=!1,s.length?u=s.concat(u):a=-1,u.length&&h())}function h(){if(!i){c=!1,i=!0;for(var t=u.length,e=setTimeout(l);t;){for(s=u,u=[];s&&++a1)for(var n=1;n{"use strict";e.test=function(){return!n.g.setImmediate&&void 0!==n.g.MessageChannel},e.install=function(t){var e=new n.g.MessageChannel;return e.port1.onmessage=t,function(){e.port2.postMessage(0)}}},1015:(t,e,n)=>{"use strict";var i=n.g.MutationObserver||n.g.WebKitMutationObserver;e.test=function(){return i},e.install=function(t){var e=0,s=new i(t),r=n.g.document.createTextNode("");return s.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}},1856:(t,e,n)=>{"use strict";e.test=function(){return"function"==typeof n.g.queueMicrotask},e.install=function(t){return function(){n.g.queueMicrotask(t)}}},5723:(t,e,n)=>{"use strict";e.test=function(){return"document"in n.g&&"onreadystatechange"in n.g.document.createElement("script")},e.install=function(t){return function(){var e=n.g.document.createElement("script");return e.onreadystatechange=function(){t(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},n.g.document.documentElement.appendChild(e),t}}},6345:(t,e)=>{"use strict";e.test=function(){return!0},e.install=function(t){return function(){setTimeout(t,0)}}}}]); \ No newline at end of file diff --git a/assets/js/489.d07863ea.js b/assets/js/489.d07863ea.js new file mode 100644 index 000000000..bc7cca159 --- /dev/null +++ b/assets/js/489.d07863ea.js @@ -0,0 +1,2 @@ +/*! For license information please see 489.d07863ea.js.LICENSE.txt */ +(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[489],{2870:(t,e,n)=>{"use strict";t.exports=n(810)},2542:(t,e,n)=>{"use strict";var i=n(6573),s={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",noPrefix:!1,dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"},appendTo:{wrapper:{position:"absolute",zIndex:"100",display:"none"},input:{},inputWithNoHint:{},dropdown:{display:"block"}}};i.isMsie()&&i.mixin(s.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),i.isMsie()&&i.isMsie()<=7&&i.mixin(s.input,{marginTop:"-1px"}),t.exports=s},897:(t,e,n)=>{"use strict";var i="aaDataset",s="aaValue",r="aaDatum",o=n(6573),a=n(1348),u=n(9272),c=n(2542),l=n(4436);function h(t){var e;(t=t||{}).templates=t.templates||{},t.source||o.error("missing source"),t.name&&(e=t.name,!/^[_a-zA-Z0-9-]+$/.test(e))&&o.error("invalid dataset name: "+t.name),this.query=null,this._isEmpty=!0,this.highlight=!!t.highlight,this.name=void 0===t.name||null===t.name?o.getUniqueId():t.name,this.source=t.source,this.displayFn=function(t){return t=t||"value",o.isFunction(t)?t:e;function e(e){return e[t]}}(t.display||t.displayKey),this.debounce=t.debounce,this.cache=!1!==t.cache,this.templates=function(t,e){return{empty:t.empty&&o.templatify(t.empty),header:t.header&&o.templatify(t.header),footer:t.footer&&o.templatify(t.footer),suggestion:t.suggestion||n};function n(t){return"

"+e(t)+"

"}}(t.templates,this.displayFn),this.css=o.mixin({},c,t.appendTo?c.appendTo:{}),this.cssClasses=t.cssClasses=o.mixin({},c.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||o.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var n=o.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=t.$menu&&t.$menu.find(n+"-"+this.name).length>0?a.element(t.$menu.find(n+"-"+this.name)[0]):a.element(u.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=t.$menu,this.clearCachedSuggestions()}h.extractDatasetName=function(t){return a.element(t).data(i)},h.extractValue=function(t){return a.element(t).data(s)},h.extractDatum=function(t){var e=a.element(t).data(r);return"string"==typeof e&&(e=JSON.parse(e)),e},o.mixin(h.prototype,l,{_render:function(t,e){if(this.$el){var n,c=this,l=[].slice.call(arguments,2);if(this.$el.empty(),n=e&&e.length,this._isEmpty=!n,!n&&this.templates.empty)this.$el.html(function(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!0}].concat(e),c.templates.empty.apply(this,e)}.apply(this,l)).prepend(c.templates.header?h.apply(this,l):null).append(c.templates.footer?p.apply(this,l):null);else if(n)this.$el.html(function(){var t,n,l=[].slice.call(arguments,0),h=this,p=u.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return t=a.element(p).css(this.css.suggestions),n=o.map(e,f),t.append.apply(t,n),t;function f(t){var e,n=u.suggestion.replace("%PREFIX%",h.cssClasses.prefix).replace("%SUGGESTION%",h.cssClasses.suggestion);return(e=a.element(n).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(c.templates.suggestion.apply(this,[t].concat(l)))).data(i,c.name),e.data(s,c.displayFn(t)||void 0),e.data(r,JSON.stringify(t)),e.children().each((function(){a.element(this).css(h.css.suggestionChild)})),e}}.apply(this,l)).prepend(c.templates.header?h.apply(this,l):null).append(c.templates.footer?p.apply(this,l):null);else if(e&&!Array.isArray(e))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(n?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(n?"without":"with")+"-"+this.name),this.trigger("rendered",t)}function h(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!n}].concat(e),c.templates.header.apply(this,e)}function p(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!n}].concat(e),c.templates.footer.apply(this,e)}},getRoot:function(){return this.$el},update:function(t){function e(e){if(!this.canceled&&t===this.query){var n=[].slice.call(arguments,1);this.cacheSuggestions(t,e,n),this._render.apply(this,[t,e].concat(n))}}if(this.query=t,this.canceled=!1,this.shouldFetchFromCache(t))e.apply(this,[this.cachedSuggestions].concat(this.cachedRenderExtraArgs));else{var n=this,i=function(){n.canceled||n.source(t,e.bind(n))};if(this.debounce){clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout((function(){n.debounceTimeout=null,i()}),this.debounce)}else i()}},cacheSuggestions:function(t,e,n){this.cachedQuery=t,this.cachedSuggestions=e,this.cachedRenderExtraArgs=n},shouldFetchFromCache:function(t){return this.cache&&this.cachedQuery===t&&this.cachedSuggestions&&this.cachedSuggestions.length},clearCachedSuggestions:function(){delete this.cachedQuery,delete this.cachedSuggestions,delete this.cachedRenderExtraArgs},cancel:function(){this.canceled=!0},clear:function(){this.$el&&(this.cancel(),this.$el.empty(),this.trigger("rendered",""))},isEmpty:function(){return this._isEmpty},destroy:function(){this.clearCachedSuggestions(),this.$el=null}}),t.exports=h},1540:(t,e,n)=>{"use strict";var i=n(6573),s=n(1348),r=n(4436),o=n(897),a=n(2542);function u(t){var e,n,r,o=this;(t=t||{}).menu||i.error("menu is required"),i.isArray(t.datasets)||i.isObject(t.datasets)||i.error("1 or more datasets required"),t.datasets||i.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=t.minLength||0,this.templates={},this.appendTo=t.appendTo||!1,this.css=i.mixin({},a,t.appendTo?a.appendTo:{}),this.cssClasses=t.cssClasses=i.mixin({},a.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||i.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),e=i.bind(this._onSuggestionClick,this),n=i.bind(this._onSuggestionMouseEnter,this),r=i.bind(this._onSuggestionMouseLeave,this);var c=i.className(this.cssClasses.prefix,this.cssClasses.suggestion);this.$menu=s.element(t.menu).on("mouseenter.aa",c,n).on("mouseleave.aa",c,r).on("click.aa",c,e),this.$container=t.appendTo?t.wrapper:this.$menu,t.templates&&t.templates.header&&(this.templates.header=i.templatify(t.templates.header),this.$menu.prepend(this.templates.header())),t.templates&&t.templates.empty&&(this.templates.empty=i.templatify(t.templates.empty),this.$empty=s.element('
'),this.$menu.append(this.$empty),this.$empty.hide()),this.datasets=i.map(t.datasets,(function(e){return function(t,e,n){return new u.Dataset(i.mixin({$menu:t,cssClasses:n},e))}(o.$menu,e,t.cssClasses)})),i.each(this.datasets,(function(t){var e=t.getRoot();e&&0===e.parent().length&&o.$menu.append(e),t.onSync("rendered",o._onRendered,o)})),t.templates&&t.templates.footer&&(this.templates.footer=i.templatify(t.templates.footer),this.$menu.append(this.templates.footer()));var l=this;s.element(window).resize((function(){l._redraw()}))}i.mixin(u.prototype,r,{_onSuggestionClick:function(t){this.trigger("suggestionClicked",s.element(t.currentTarget))},_onSuggestionMouseEnter:function(t){var e=s.element(t.currentTarget);if(!e.hasClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))){this._removeCursor();var n=this;setTimeout((function(){n._setCursor(e,!1)}),0)}},_onSuggestionMouseLeave:function(t){if(t.relatedTarget&&s.element(t.relatedTarget).closest("."+i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length>0)return;this._removeCursor(),this.trigger("cursorRemoved")},_onRendered:function(t,e){if(this.isEmpty=i.every(this.datasets,(function(t){return t.isEmpty()})),this.isEmpty)if(e.length>=this.minLength&&this.trigger("empty"),this.$empty)if(e.length=this.minLength?this._show():this._hide());this.trigger("datasetRendered")},_hide:function(){this.$container.hide()},_show:function(){this.$container.css("display","block"),this._redraw(),this.trigger("shown")},_redraw:function(){this.isOpen&&this.appendTo&&this.trigger("redrawn")},_getSuggestions:function(){return this.$menu.find(i.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(i.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(t,e){t.first().addClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).attr("aria-selected","true"),this.trigger("cursorMoved",e)},_removeCursor:function(){this._getCursor().removeClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).removeAttr("aria-selected")},_moveCursor:function(t){var e,n,i,s;this.isOpen&&(n=this._getCursor(),e=this._getSuggestions(),this._removeCursor(),-1!==(i=((i=e.index(n)+t)+1)%(e.length+1)-1)?(i<-1&&(i=e.length-1),this._setCursor(s=e.eq(i),!0),this._ensureVisible(s)):this.trigger("cursorRemoved"))},_ensureVisible:function(t){var e,n,i,s;n=(e=t.position().top)+t.height()+parseInt(t.css("margin-top"),10)+parseInt(t.css("margin-bottom"),10),i=this.$menu.scrollTop(),s=this.$menu.height()+parseInt(this.$menu.css("padding-top"),10)+parseInt(this.$menu.css("padding-bottom"),10),e<0?this.$menu.scrollTop(i+e):s{"use strict";var i=n(6573),s=n(1348);function r(t){t&&t.el||i.error("EventBus initialized without el"),this.$el=s.element(t.el)}i.mixin(r.prototype,{trigger:function(t,e,n,s){var r=i.Event("autocomplete:"+t);return this.$el.trigger(r,[e,n,s]),r}}),t.exports=r},4436:(t,e,n)=>{"use strict";var i=n(874),s=/\s+/;function r(t,e,n,i){var r;if(!n)return this;for(e=e.split(s),n=i?function(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}(n,i):n,this._callbacks=this._callbacks||{};r=e.shift();)this._callbacks[r]=this._callbacks[r]||{sync:[],async:[]},this._callbacks[r][t].push(n);return this}function o(t,e,n){return function(){for(var i,s=0,r=t.length;!i&&s{"use strict";t.exports={wrapper:'',dropdown:'',dataset:'
',suggestions:'',suggestion:'
'}},9629:(t,e,n)=>{"use strict";var i;i={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var s=n(6573),r=n(1348),o=n(4436);function a(t){var e,n,o,a,u,c=this;(t=t||{}).input||s.error("input is missing"),e=s.bind(this._onBlur,this),n=s.bind(this._onFocus,this),o=s.bind(this._onKeydown,this),a=s.bind(this._onInput,this),this.$hint=r.element(t.hint),this.$input=r.element(t.input).on("blur.aa",e).on("focus.aa",n).on("keydown.aa",o),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=s.noop),s.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",(function(t){i[t.which||t.keyCode]||s.defer(s.bind(c._onInput,c,t))})):this.$input.on("input.aa",a),this.query=this.$input.val(),this.$overflowHelper=(u=this.$input,r.element('').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:u.css("font-family"),fontSize:u.css("font-size"),fontStyle:u.css("font-style"),fontVariant:u.css("font-variant"),fontWeight:u.css("font-weight"),wordSpacing:u.css("word-spacing"),letterSpacing:u.css("letter-spacing"),textIndent:u.css("text-indent"),textRendering:u.css("text-rendering"),textTransform:u.css("text-transform")}).insertAfter(u))}function u(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}a.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},s.mixin(a.prototype,o,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(t){var e=i[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(t,e){var n,i,s;switch(t){case"tab":i=this.getHint(),s=this.getInputValue(),n=i&&i!==s&&!u(e);break;case"up":case"down":n=!u(e);break;default:n=!1}n&&e.preventDefault()},_shouldTrigger:function(t,e){var n;if("tab"===t)n=!u(e);else n=!0;return n},_checkInputValue:function(){var t,e,n,i,s;t=this.getInputValue(),i=t,s=this.query,n=!(!(e=a.normalizeQuery(i)===a.normalizeQuery(s))||!this.query)&&this.query.length!==t.length,this.query=t,e?n&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(t){this.query=t},getInputValue:function(){return this.$input.val()},setInputValue:function(t,e){void 0===t&&(t=this.query),this.$input.val(t),e?this.clearHint():this._checkInputValue()},expand:function(){this.$input.attr("aria-expanded","true")},collapse:function(){this.$input.attr("aria-expanded","false")},setActiveDescendant:function(t){this.$input.attr("aria-activedescendant",t)},removeActiveDescendant:function(){this.$input.removeAttr("aria-activedescendant")},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,n;n=(t=this.getInputValue())!==(e=this.getHint())&&0===e.indexOf(t),""!==t&&n&&!this.hasOverflow()||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t,e,n;return t=this.$input.val().length,e=this.$input[0].selectionStart,s.isNumber(e)?e===t:!document.selection||((n=document.selection.createRange()).moveStart("character",-t),t===n.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),t.exports=a},7360:(t,e,n)=>{"use strict";var i="aaAttrs",s=n(6573),r=n(1348),o=n(2324),a=n(9629),u=n(1540),c=n(9272),l=n(2542);function h(t){var e,n;if((t=t||{}).input||s.error("missing input"),this.isActivated=!1,this.debug=!!t.debug,this.autoselect=!!t.autoselect,this.autoselectOnBlur=!!t.autoselectOnBlur,this.openOnFocus=!!t.openOnFocus,this.minLength=s.isNumber(t.minLength)?t.minLength:1,this.autoWidth=void 0===t.autoWidth||!!t.autoWidth,this.clearOnSelected=!!t.clearOnSelected,this.tabAutocomplete=void 0===t.tabAutocomplete||!!t.tabAutocomplete,t.hint=!!t.hint,t.hint&&t.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=t.css=s.mixin({},l,t.appendTo?l.appendTo:{}),this.cssClasses=t.cssClasses=s.mixin({},l.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix=s.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=t.listboxId=[this.cssClasses.root,"listbox",s.getUniqueId()].join("-");var a=function(t){var e,n,o,a;e=r.element(t.input),n=r.element(c.wrapper.replace("%ROOT%",t.cssClasses.root)).css(t.css.wrapper),t.appendTo||"block"!==e.css("display")||"table"!==e.parent().css("display")||n.css("display","table-cell");var u=c.dropdown.replace("%PREFIX%",t.cssClasses.prefix).replace("%DROPDOWN_MENU%",t.cssClasses.dropdownMenu);o=r.element(u).css(t.css.dropdown).attr({role:"listbox",id:t.listboxId}),t.templates&&t.templates.dropdownMenu&&o.html(s.templatify(t.templates.dropdownMenu)());a=e.clone().css(t.css.hint).css(function(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}(e)),a.val("").addClass(s.className(t.cssClasses.prefix,t.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({"aria-hidden":"true",autocomplete:"off",spellcheck:"false",tabindex:-1}),a.removeData&&a.removeData();e.data(i,{"aria-autocomplete":e.attr("aria-autocomplete"),"aria-expanded":e.attr("aria-expanded"),"aria-owns":e.attr("aria-owns"),autocomplete:e.attr("autocomplete"),dir:e.attr("dir"),role:e.attr("role"),spellcheck:e.attr("spellcheck"),style:e.attr("style"),type:e.attr("type")}),e.addClass(s.className(t.cssClasses.prefix,t.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":t.datasets&&t.datasets[0]&&t.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":t.ariaLabel,"aria-owns":t.listboxId}).css(t.hint?t.css.input:t.css.inputWithNoHint);try{e.attr("dir")||e.attr("dir","auto")}catch(l){}return n=t.appendTo?n.appendTo(r.element(t.appendTo).eq(0)).eq(0):e.wrap(n).parent(),n.prepend(t.hint?a:null).append(o),{wrapper:n,input:e,hint:a,menu:o}}(t);this.$node=a.wrapper;var u=this.$input=a.input;e=a.menu,n=a.hint,t.dropdownMenuContainer&&r.element(t.dropdownMenuContainer).css("position","relative").append(e.css("top","0")),u.on("blur.aa",(function(t){var n=document.activeElement;s.isMsie()&&(e[0]===n||e[0].contains(n))&&(t.preventDefault(),t.stopImmediatePropagation(),s.defer((function(){u.focus()})))})),e.on("mousedown.aa",(function(t){t.preventDefault()})),this.eventBus=t.eventBus||new o({el:u}),this.dropdown=new h.Dropdown({appendTo:t.appendTo,wrapper:this.$node,menu:e,datasets:t.datasets,templates:t.templates,cssClasses:t.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onSync("redrawn",this._onRedrawn,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new h.Input({input:u,hint:n}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(t),this._setLanguageDirection()}s.mixin(h.prototype,{_bindKeyboardShortcuts:function(t){if(t.keyboardShortcuts){var e=this.$input,n=[];s.each(t.keyboardShortcuts,(function(t){"string"==typeof t&&(t=t.toUpperCase().charCodeAt(0)),n.push(t)})),r.element(document).keydown((function(t){var i=t.target||t.srcElement,s=i.tagName;if(!i.isContentEditable&&"INPUT"!==s&&"SELECT"!==s&&"TEXTAREA"!==s){var r=t.which||t.keyCode;-1!==n.indexOf(r)&&(e.focus(),t.stopPropagation(),t.preventDefault())}}))}},_onSuggestionClicked:function(t,e){var n;(n=this.dropdown.getDatumForSuggestion(e))&&this._select(n,{selectionMethod:"click"})},_onCursorMoved:function(t,e){var n=this.dropdown.getDatumForCursor(),i=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(i),n&&(e&&this.input.setInputValue(n.value,!0),this.eventBus.trigger("cursorchanged",n.raw,n.datasetName))},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint(),this.eventBus.trigger("cursorremoved")},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.input.expand(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onRedrawn:function(){this.$node.css("top","0px"),this.$node.css("left","0px");var t=this.$input[0].getBoundingClientRect();this.autoWidth&&this.$node.css("width",t.width+"px");var e=this.$node[0].getBoundingClientRect(),n=t.bottom-e.top;this.$node.css("top",n+"px");var i=t.left-e.left;this.$node.css("left",i+"px"),this.eventBus.trigger("redrawn")},_onShown:function(){this.eventBus.trigger("shown"),this.autoselect&&this.dropdown.cursorTopSuggestion()},_onClosed:function(){this.input.clearHint(),this.input.removeActiveDescendant(),this.input.collapse(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var t=this.input.getQuery();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){var t,e;t=this.dropdown.getDatumForCursor(),e=this.dropdown.getDatumForTopSuggestion();var n={selectionMethod:"blur"};this.debug||(this.autoselectOnBlur&&t?this._select(t,n):this.autoselectOnBlur&&e?this._select(e,n):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(t,e){var n,i;n=this.dropdown.getDatumForCursor(),i=this.dropdown.getDatumForTopSuggestion();var s={selectionMethod:"enterKey"};n?(this._select(n,s),e.preventDefault()):this.autoselect&&i&&(this._select(i,s),e.preventDefault())},_onTabKeyed:function(t,e){if(this.tabAutocomplete){var n;(n=this.dropdown.getDatumForCursor())?(this._select(n,{selectionMethod:"tabKey"}),e.preventDefault()):this._autocomplete(!0)}else this.dropdown.close()},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(t,e){this.input.clearHintIfInvalid(),e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var t=this.input.getLanguageDirection();this.dir!==t&&(this.dir=t,this.$node.css("direction",t),this.dropdown.setLanguageDirection(t))},_updateHint:function(){var t,e,n,i,r;(t=this.dropdown.getDatumForTopSuggestion())&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(e=this.input.getInputValue(),n=a.normalizeQuery(e),i=s.escapeRegExChars(n),(r=new RegExp("^(?:"+i+")(.+$)","i").exec(t.value))?this.input.setHint(e+r[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(t){var e,n,i,s;e=this.input.getHint(),n=this.input.getQuery(),i=t||this.input.isCursorAtEnd(),e&&n!==e&&i&&((s=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(s.value),this.eventBus.trigger("autocompleted",s.raw,s.datasetName))},_select:function(t,e){void 0!==t.value&&this.input.setQuery(t.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(t.value,!0),this._setLanguageDirection(),!1===this.eventBus.trigger("selected",t.raw,t.datasetName,e).isDefaultPrevented()&&(this.dropdown.close(),s.defer(s.bind(this.dropdown.empty,this.dropdown)))},open:function(){if(!this.isActivated){var t=this.input.getInputValue();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(t){t=s.toStr(t),this.isActivated?this.input.setInputValue(t):(this.input.setQuery(t),this.input.setInputValue(t,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy(),function(t,e){var n=t.find(s.className(e.prefix,e.input));s.each(n.data(i),(function(t,e){void 0===t?n.removeAttr(e):n.attr(e,t)})),n.detach().removeClass(s.className(e.prefix,e.input,!0)).insertAfter(t),n.removeData&&n.removeData(i);t.remove()}(this.$node,this.cssClasses),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),h.Dropdown=u,h.Input=a,h.sources=n(6353),t.exports=h},1348:t=>{"use strict";t.exports={element:null}},9715:t=>{"use strict";t.exports=function(t){var e=t.match(/Algolia for JavaScript \((\d+\.)(\d+\.)(\d+)\)/)||t.match(/Algolia for vanilla JavaScript (\d+\.)(\d+\.)(\d+)/);if(e)return[e[1],e[2],e[3]]}},6573:(t,e,n)=>{"use strict";var i,s=n(8937),r=n(1348);function o(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}t.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(t){if(void 0===t&&(t=navigator.userAgent),/(msie|trident)/i.test(t)){var e=t.match(/(msie |rv:)(\d+(.\d+)?)/i);if(e)return e[2]}return!1},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(t){return"number"==typeof t},toStr:function(t){return null==t?"":t+""},cloneDeep:function(t){var e=this.mixin({},t),n=this;return this.each(e,(function(t,i){t&&(n.isArray(t)?e[i]=[].concat(t):n.isObject(t)&&(e[i]=n.cloneDeep(t)))})),e},error:function(t){throw new Error(t)},every:function(t,e){var n=!0;return t?(this.each(t,(function(i,s){n&&(n=e.call(null,i,s,t)&&n)})),!!n):n},any:function(t,e){var n=!1;return t?(this.each(t,(function(i,s){if(e.call(null,i,s,t))return n=!0,!1})),n):n},getUniqueId:(i=0,function(){return i++}),templatify:function(t){if(this.isFunction(t))return t;var e=r.element(t);return"SCRIPT"===e.prop("tagName")?function(){return e.text()}:function(){return String(t)}},defer:function(t){setTimeout(t,0)},noop:function(){},formatPrefix:function(t,e){return e?"":t+"-"},className:function(t,e,n){return n?t+e:"."+s(t+e,{isIdentifier:!0})},escapeHighlightedString:function(t,e,n){e=e||"";var i=document.createElement("div");i.appendChild(document.createTextNode(e)),n=n||"";var s=document.createElement("div");s.appendChild(document.createTextNode(n));var r=document.createElement("div");return r.appendChild(document.createTextNode(t)),r.innerHTML.replace(RegExp(o(i.innerHTML),"g"),e).replace(RegExp(o(s.innerHTML),"g"),n)}}},6903:(t,e,n)=>{"use strict";var i=n(6573),s=n(2281),r=n(9715);var o,a,u=(o=[],a=window.Promise.resolve(),function(t,e){return function(n,s){(function(t,e){return window.Promise.resolve().then((function(){return o.length&&(a=t.search(o),o=[]),a})).then((function(t){if(t)return t.results[e]}))})(t.as,o.push({indexName:t.indexName,query:n,params:e})-1).then((function(t){t&&s(t.hits,t)})).catch((function(t){i.error(t.message)}))}});t.exports=function(t,e){var n=r(t.as._ua);if(n&&n[0]>=3&&n[1]>20){var i="autocomplete.js "+s;-1===t.as._ua.indexOf(i)&&(t.as._ua+="; "+i)}return u(t,e)}},6353:(t,e,n)=>{"use strict";t.exports={hits:n(6903),popularIn:n(6839)}},6839:(t,e,n)=>{"use strict";var i=n(6573),s=n(2281),r=n(9715);t.exports=function(t,e,n,o){var a=r(t.as._ua);if(a&&a[0]>=3&&a[1]>20&&((e=e||{}).additionalUA="autocomplete.js "+s),!n.source)return i.error("Missing 'source' key");var u=i.isFunction(n.source)?n.source:function(t){return t[n.source]};if(!n.index)return i.error("Missing 'index' key");var c=n.index;return o=o||{},function(a,l){t.search(a,e,(function(t,a){if(t)i.error(t.message);else{if(a.hits.length>0){var h=a.hits[0],p=i.mixin({hitsPerPage:0},n);delete p.source,delete p.index;var f=r(c.as._ua);return f&&f[0]>=3&&f[1]>20&&(e.additionalUA="autocomplete.js "+s),void c.search(u(h),p,(function(t,e){if(t)i.error(t.message);else{var n=[];if(o.includeAll){var s=o.allTitle||"All departments";n.push(i.mixin({facet:{value:s,count:e.nbHits}},i.cloneDeep(h)))}i.each(e.facets,(function(t,e){i.each(t,(function(t,s){n.push(i.mixin({facet:{facet:e,value:s,count:t}},i.cloneDeep(h)))}))}));for(var r=1;r{"use strict";var i=n(9539);n(1348).element=i;var s=n(6573);s.isArray=i.isArray,s.isFunction=i.isFunction,s.isObject=i.isPlainObject,s.bind=i.proxy,s.each=function(t,e){i.each(t,(function(t,n){return e(n,t)}))},s.map=i.map,s.mixin=i.extend,s.Event=i.Event;var r="aaAutocomplete",o=n(7360),a=n(2324);function u(t,e,n,u){n=s.isArray(n)?n:[].slice.call(arguments,2);var c=i(t).each((function(t,s){var c=i(s),l=new a({el:c}),h=u||new o({input:c,eventBus:l,dropdownMenuContainer:e.dropdownMenuContainer,hint:void 0===e.hint||!!e.hint,minLength:e.minLength,autoselect:e.autoselect,autoselectOnBlur:e.autoselectOnBlur,tabAutocomplete:e.tabAutocomplete,openOnFocus:e.openOnFocus,templates:e.templates,debug:e.debug,clearOnSelected:e.clearOnSelected,cssClasses:e.cssClasses,datasets:n,keyboardShortcuts:e.keyboardShortcuts,appendTo:e.appendTo,autoWidth:e.autoWidth,ariaLabel:e.ariaLabel||s.getAttribute("aria-label")});c.data(r,h)}));return c.autocomplete={},s.each(["open","close","getVal","setVal","destroy","getWrapper"],(function(t){c.autocomplete[t]=function(){var e,n=arguments;return c.each((function(s,o){var a=i(o).data(r);e=a[t].apply(a,n)})),e}})),c}u.sources=o.sources,u.escapeHighlightedString=s.escapeHighlightedString;var c="autocomplete"in window,l=window.autocomplete;u.noConflict=function(){return c?window.autocomplete=l:delete window.autocomplete,u},t.exports=u},2281:t=>{t.exports="0.38.1"},9539:t=>{var e;e=window,t.exports=function(t){var e,n,i=function(){var e,n,i,s,r,o,a=[],u=a.concat,c=a.filter,l=a.slice,h=t.document,p={},f={},d={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},g=/^\s*<(\w+|!)[^>]*>/,m=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,y=/^(?:body|html)$/i,w=/([A-Z])/g,b=["val","css","html","text","data","width","height","offset"],C=["after","prepend","before","append"],x=h.createElement("table"),_=h.createElement("tr"),S={tr:h.createElement("tbody"),tbody:x,thead:x,tfoot:x,td:_,th:_,"*":h.createElement("div")},E=/complete|loaded|interactive/,A=/^[\w-]*$/,$={},T=$.toString,O={},D=h.createElement("div"),N={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},k=Array.isArray||function(t){return t instanceof Array};function I(t){return null==t?String(t):$[T.call(t)]||"object"}function P(t){return"function"==I(t)}function L(t){return null!=t&&t==t.window}function M(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function F(t){return"object"==I(t)}function R(t){return F(t)&&!L(t)&&Object.getPrototypeOf(t)==Object.prototype}function q(t){var e=!!t&&"length"in t&&t.length,n=i.type(t);return"function"!=n&&!L(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function V(t){return c.call(t,(function(t){return null!=t}))}function H(t){return t.length>0?i.fn.concat.apply([],t):t}function B(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function K(t){return t in f?f[t]:f[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function j(t,e){return"number"!=typeof e||d[B(t)]?e:e+"px"}function z(t){var e,n;return p[t]||(e=h.createElement(t),h.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),p[t]=n),p[t]}function U(t){return"children"in t?l.call(t.children):i.map(t.childNodes,(function(t){if(1==t.nodeType)return t}))}function Q(t,e){var n,i=t?t.length:0;for(n=0;n")),n===e&&(n=g.test(t)&&RegExp.$1),n in S||(n="*"),(a=S[n]).innerHTML=""+t,r=i.each(l.call(a.childNodes),(function(){a.removeChild(this)}))),R(s)&&(o=i(r),i.each(s,(function(t,e){b.indexOf(t)>-1?o[t](e):o.attr(t,e)}))),r},O.Z=function(t,e){return new Q(t,e)},O.isZ=function(t){return t instanceof O.Z},O.init=function(t,n){var s;if(!t)return O.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&g.test(t))s=O.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);s=O.qsa(h,t)}else{if(P(t))return i(h).ready(t);if(O.isZ(t))return t;if(k(t))s=V(t);else if(F(t))s=[t],t=null;else if(g.test(t))s=O.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);s=O.qsa(h,t)}}return O.Z(s,t)},(i=function(t,e){return O.init(t,e)}).extend=function(t){var e,n=l.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach((function(n){W(t,n,e)})),t},O.qsa=function(t,e){var n,i="#"==e[0],s=!i&&"."==e[0],r=i||s?e.slice(1):e,o=A.test(r);return t.getElementById&&o&&i?(n=t.getElementById(r))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:l.call(o&&!i&&t.getElementsByClassName?s?t.getElementsByClassName(r):t.getElementsByTagName(e):t.querySelectorAll(e))},i.contains=h.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},i.type=I,i.isFunction=P,i.isWindow=L,i.isArray=k,i.isPlainObject=R,i.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},i.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},i.inArray=function(t,e,n){return a.indexOf.call(e,t,n)},i.camelCase=r,i.trim=function(t){return null==t?"":String.prototype.trim.call(t)},i.uuid=0,i.support={},i.expr={},i.noop=function(){},i.map=function(t,e){var n,i,s,r=[];if(q(t))for(i=0;i=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(t){return a.every.call(this,(function(e,n){return!1!==t.call(e,n,e)})),this},filter:function(t){return P(t)?this.not(this.not(t)):i(c.call(this,(function(e){return O.matches(e,t)})))},add:function(t,e){return i(o(this.concat(i(t,e))))},is:function(t){return this.length>0&&O.matches(this[0],t)},not:function(t){var n=[];if(P(t)&&t.call!==e)this.each((function(e){t.call(this,e)||n.push(this)}));else{var s="string"==typeof t?this.filter(t):q(t)&&P(t.item)?l.call(t):i(t);this.forEach((function(t){s.indexOf(t)<0&&n.push(t)}))}return i(n)},has:function(t){return this.filter((function(){return F(t)?i.contains(this,t):i(this).find(t).size()}))},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!F(t)?t:i(t)},last:function(){var t=this[this.length-1];return t&&!F(t)?t:i(t)},find:function(t){var e=this;return t?"object"==typeof t?i(t).filter((function(){var t=this;return a.some.call(e,(function(e){return i.contains(e,t)}))})):1==this.length?i(O.qsa(this[0],t)):this.map((function(){return O.qsa(this,t)})):i()},closest:function(t,e){var n=[],s="object"==typeof t&&i(t);return this.each((function(i,r){for(;r&&!(s?s.indexOf(r)>=0:O.matches(r,t));)r=r!==e&&!M(r)&&r.parentNode;r&&n.indexOf(r)<0&&n.push(r)})),i(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=i.map(n,(function(t){if((t=t.parentNode)&&!M(t)&&e.indexOf(t)<0)return e.push(t),t}));return Z(e,t)},parent:function(t){return Z(o(this.pluck("parentNode")),t)},children:function(t){return Z(this.map((function(){return U(this)})),t)},contents:function(){return this.map((function(){return this.contentDocument||l.call(this.childNodes)}))},siblings:function(t){return Z(this.map((function(t,e){return c.call(U(e.parentNode),(function(t){return t!==e}))})),t)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(t){return i.map(this,(function(e){return e[t]}))},show:function(){return this.each((function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=z(this.nodeName))}))},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=P(t);if(this[0]&&!e)var n=i(t).get(0),s=n.parentNode||this.length>1;return this.each((function(r){i(this).wrapAll(e?t.call(this,r):s?n.cloneNode(!0):n)}))},wrapAll:function(t){if(this[0]){var e;for(i(this[0]).before(t=i(t));(e=t.children()).length;)t=e.first();i(t).append(this)}return this},wrapInner:function(t){var e=P(t);return this.each((function(n){var s=i(this),r=s.contents(),o=e?t.call(this,n):t;r.length?r.wrapAll(o):s.append(o)}))},unwrap:function(){return this.parent().each((function(){i(this).replaceWith(i(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(t){return this.each((function(){var n=i(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()}))},prev:function(t){return i(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return i(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each((function(e){var n=this.innerHTML;i(this).empty().append(X(this,t,e,n))})):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each((function(e){var n=X(this,t,e,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(t,i){var s;return"string"!=typeof t||1 in arguments?this.each((function(e){if(1===this.nodeType)if(F(t))for(n in t)G(this,n,t[n]);else G(this,t,X(this,i,e,this.getAttribute(t)))})):0 in this&&1==this[0].nodeType&&null!=(s=this[0].getAttribute(t))?s:e},removeAttr:function(t){return this.each((function(){1===this.nodeType&&t.split(" ").forEach((function(t){G(this,t)}),this)}))},prop:function(t,e){return t=N[t]||t,1 in arguments?this.each((function(n){this[t]=X(this,e,n,this[t])})):this[0]&&this[0][t]},removeProp:function(t){return t=N[t]||t,this.each((function(){delete this[t]}))},data:function(t,n){var i="data-"+t.replace(w,"-$1").toLowerCase(),s=1 in arguments?this.attr(i,n):this.attr(i);return null!==s?Y(s):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each((function(e){this.value=X(this,t,e,this.value)}))):this[0]&&(this[0].multiple?i(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each((function(t){var n=i(this),s=X(this,e,t,n.offset()),r=n.offsetParent().offset(),o={top:s.top-r.top,left:s.left-r.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)}));if(!this.length)return null;if(h.documentElement!==this[0]&&!i.contains(h.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var s=this[0];if("string"==typeof t){if(!s)return;return s.style[r(t)]||getComputedStyle(s,"").getPropertyValue(t)}if(k(t)){if(!s)return;var o={},a=getComputedStyle(s,"");return i.each(t,(function(t,e){o[e]=s.style[r(e)]||a.getPropertyValue(e)})),o}}var u="";if("string"==I(t))e||0===e?u=B(t)+":"+j(t,e):this.each((function(){this.style.removeProperty(B(t))}));else for(n in t)t[n]||0===t[n]?u+=B(n)+":"+j(n,t[n])+";":this.each((function(){this.style.removeProperty(B(n))}));return this.each((function(){this.style.cssText+=";"+u}))},index:function(t){return t?this.indexOf(i(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&a.some.call(this,(function(t){return this.test(J(t))}),K(t))},addClass:function(t){return t?this.each((function(e){if("className"in this){s=[];var n=J(this);X(this,t,e,n).split(/\s+/g).forEach((function(t){i(this).hasClass(t)||s.push(t)}),this),s.length&&J(this,n+(n?" ":"")+s.join(" "))}})):this},removeClass:function(t){return this.each((function(n){if("className"in this){if(t===e)return J(this,"");s=J(this),X(this,t,n,s).split(/\s+/g).forEach((function(t){s=s.replace(K(t)," ")})),J(this,s.trim())}}))},toggleClass:function(t,n){return t?this.each((function(s){var r=i(this);X(this,t,s,J(this)).split(/\s+/g).forEach((function(t){(n===e?!r.hasClass(t):n)?r.addClass(t):r.removeClass(t)}))})):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),s=y.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(i(t).css("margin-top"))||0,n.left-=parseFloat(i(t).css("margin-left"))||0,s.top+=parseFloat(i(e[0]).css("border-top-width"))||0,s.left+=parseFloat(i(e[0]).css("border-left-width"))||0,{top:n.top-s.top,left:n.left-s.left}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||h.body;t&&!y.test(t.nodeName)&&"static"==i(t).css("position");)t=t.offsetParent;return t}))}},i.fn.detach=i.fn.remove,["width","height"].forEach((function(t){var n=t.replace(/./,(function(t){return t[0].toUpperCase()}));i.fn[t]=function(s){var r,o=this[0];return s===e?L(o)?o["inner"+n]:M(o)?o.documentElement["scroll"+n]:(r=this.offset())&&r[t]:this.each((function(e){(o=i(this)).css(t,X(this,s,e,o[t]()))}))}})),C.forEach((function(n,s){var r=s%2;i.fn[n]=function(){var n,o,a=i.map(arguments,(function(t){var s=[];return"array"==(n=I(t))?(t.forEach((function(t){return t.nodeType!==e?s.push(t):i.zepto.isZ(t)?s=s.concat(t.get()):void(s=s.concat(O.fragment(t)))})),s):"object"==n||null==t?t:O.fragment(t)})),u=this.length>1;return a.length<1?this:this.each((function(e,n){o=r?n:n.parentNode,n=0==s?n.nextSibling:1==s?n.firstChild:2==s?n:null;var c=i.contains(h.documentElement,o);a.forEach((function(e){if(u)e=e.cloneNode(!0);else if(!o)return i(e).remove();o.insertBefore(e,n),c&&tt(e,(function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}}))}))}))},i.fn[r?n+"To":"insert"+(s?"Before":"After")]=function(t){return i(t)[n](this),this}})),O.Z.prototype=Q.prototype=i.fn,O.uniq=o,O.deserializeValue=Y,i.zepto=O,i}();return function(e){var n,i=1,s=Array.prototype.slice,r=e.isFunction,o=function(t){return"string"==typeof t},a={},u={},c="onfocusin"in t,l={focus:"focusin",blur:"focusout"},h={mouseenter:"mouseover",mouseleave:"mouseout"};function p(t){return t._zid||(t._zid=i++)}function f(t,e,n,i){if((e=d(e)).ns)var s=g(e.ns);return(a[p(t)]||[]).filter((function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||s.test(t.ns))&&(!n||p(t.fn)===p(n))&&(!i||t.sel==i)}))}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function g(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function m(t,e){return t.del&&!c&&t.e in l||!!e}function v(t){return h[t]||c&&l[t]||t}function y(t,i,s,r,o,u,c){var l=p(t),f=a[l]||(a[l]=[]);i.split(/\s/).forEach((function(i){if("ready"==i)return e(document).ready(s);var a=d(i);a.fn=s,a.sel=o,a.e in h&&(s=function(t){var n=t.relatedTarget;if(!n||n!==this&&!e.contains(this,n))return a.fn.apply(this,arguments)}),a.del=u;var l=u||s;a.proxy=function(e){if(!(e=S(e)).isImmediatePropagationStopped()){try{var i=Object.getOwnPropertyDescriptor(e,"data");i&&!i.writable||(e.data=r)}catch(e){}var s=l.apply(t,e._args==n?[e]:[e].concat(e._args));return!1===s&&(e.preventDefault(),e.stopPropagation()),s}},a.i=f.length,f.push(a),"addEventListener"in t&&t.addEventListener(v(a.e),a.proxy,m(a,c))}))}function w(t,e,n,i,s){var r=p(t);(e||"").split(/\s/).forEach((function(e){f(t,e,n,i).forEach((function(e){delete a[r][e.i],"removeEventListener"in t&&t.removeEventListener(v(e.e),e.proxy,m(e,s))}))}))}u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",e.event={add:y,remove:w},e.proxy=function(t,n){var i=2 in arguments&&s.call(arguments,2);if(r(t)){var a=function(){return t.apply(n,i?i.concat(s.call(arguments)):arguments)};return a._zid=p(t),a}if(o(n))return i?(i.unshift(t[n],t),e.proxy.apply(null,i)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var b=function(){return!0},C=function(){return!1},x=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,_={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function S(t,i){if(i||!t.isDefaultPrevented){i||(i=t),e.each(_,(function(e,n){var s=i[e];t[e]=function(){return this[n]=b,s&&s.apply(i,arguments)},t[n]=C}));try{t.timeStamp||(t.timeStamp=Date.now())}catch(s){}(i.defaultPrevented!==n?i.defaultPrevented:"returnValue"in i?!1===i.returnValue:i.getPreventDefault&&i.getPreventDefault())&&(t.isDefaultPrevented=b)}return t}function E(t){var e,i={originalEvent:t};for(e in t)x.test(e)||t[e]===n||(i[e]=t[e]);return S(i,t)}e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,i,a,u,c){var l,h,p=this;return t&&!o(t)?(e.each(t,(function(t,e){p.on(t,i,a,e,c)})),p):(o(i)||r(u)||!1===u||(u=a,a=i,i=n),u!==n&&!1!==a||(u=a,a=n),!1===u&&(u=C),p.each((function(n,r){c&&(l=function(t){return w(r,t.type,u),u.apply(this,arguments)}),i&&(h=function(t){var n,o=e(t.target).closest(i,r).get(0);if(o&&o!==r)return n=e.extend(E(t),{currentTarget:o,liveFired:r}),(l||u).apply(o,[n].concat(s.call(arguments,1)))}),y(r,t,u,a,i,h||l)})))},e.fn.off=function(t,i,s){var a=this;return t&&!o(t)?(e.each(t,(function(t,e){a.off(t,i,e)})),a):(o(i)||r(s)||!1===s||(s=i,i=n),!1===s&&(s=C),a.each((function(){w(this,t,s,i)})))},e.fn.trigger=function(t,n){return(t=o(t)||e.isPlainObject(t)?e.Event(t):S(t))._args=n,this.each((function(){t.type in l&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)}))},e.fn.triggerHandler=function(t,n){var i,s;return this.each((function(r,a){(i=E(o(t)?e.Event(t):t))._args=n,i.target=a,e.each(f(a,t.type||t),(function(t,e){if(s=e.proxy(i),i.isImmediatePropagationStopped())return!1}))})),s},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach((function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}})),e.Event=function(t,e){o(t)||(t=(e=t).type);var n=document.createEvent(u[t]||"Events"),i=!0;if(e)for(var s in e)"bubbles"==s?i=!!e[s]:n[s]=e[s];return n.initEvent(t,i,!0),S(n)}}(i),n=[],i.fn.remove=function(){return this.each((function(){this.parentNode&&("IMG"===this.tagName&&(n.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",e&&clearTimeout(e),e=setTimeout((function(){n=[]}),6e4)),this.parentNode.removeChild(this))}))},function(t){var e={},n=t.fn.data,i=t.camelCase,s=t.expando="Zepto"+ +new Date,r=[];function o(r,o){var u=r[s],c=u&&e[u];if(void 0===o)return c||a(r);if(c){if(o in c)return c[o];var l=i(o);if(l in c)return c[l]}return n.call(t(r),o)}function a(n,r,o){var a=n[s]||(n[s]=++t.uuid),c=e[a]||(e[a]=u(n));return void 0!==r&&(c[i(r)]=o),c}function u(e){var n={};return t.each(e.attributes||r,(function(e,s){0==s.name.indexOf("data-")&&(n[i(s.name.replace("data-",""))]=t.zepto.deserializeValue(s.value))})),n}t.fn.data=function(e,n){return void 0===n?t.isPlainObject(e)?this.each((function(n,i){t.each(e,(function(t,e){a(i,t,e)}))})):0 in this?o(this[0],e):void 0:this.each((function(){a(this,e,n)}))},t.data=function(e,n,i){return t(e).data(n,i)},t.hasData=function(n){var i=n[s],r=i&&e[i];return!!r&&!t.isEmptyObject(r)},t.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each((function(){var r=this[s],o=r&&e[r];o&&t.each(n||o,(function(t){delete o[n?i(this):t]}))}))},["remove","empty"].forEach((function(e){var n=t.fn[e];t.fn[e]=function(){var t=this.find("*");return"remove"===e&&(t=t.add(this)),t.removeData(),n.call(this)}}))}(i),i}(e)},8937:t=>{"use strict";var e={}.hasOwnProperty,n=/[ -,\.\/:-@\[-\^`\{-~]/,i=/[ -,\.\/:-@\[\]\^`\{-~]/,s=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,r=function t(r,o){"single"!=(o=function(t,n){if(!t)return n;var i={};for(var s in n)i[s]=e.call(t,s)?t[s]:n[s];return i}(o,t.options)).quotes&&"double"!=o.quotes&&(o.quotes="single");for(var a="double"==o.quotes?'"':"'",u=o.isIdentifier,c=r.charAt(0),l="",h=0,p=r.length;h126){if(d>=55296&&d<=56319&&h{"use strict";var i,s,r,o=[n(5741),n(1856),n(1015),n(6486),n(5723),n(6345)],a=-1,u=[],c=!1;function l(){i&&s&&(i=!1,s.length?u=s.concat(u):a=-1,u.length&&h())}function h(){if(!i){c=!1,i=!0;for(var t=u.length,e=setTimeout(l);t;){for(s=u,u=[];s&&++a1)for(var n=1;n{"use strict";e.test=function(){return!n.g.setImmediate&&void 0!==n.g.MessageChannel},e.install=function(t){var e=new n.g.MessageChannel;return e.port1.onmessage=t,function(){e.port2.postMessage(0)}}},1015:(t,e,n)=>{"use strict";var i=n.g.MutationObserver||n.g.WebKitMutationObserver;e.test=function(){return i},e.install=function(t){var e=0,s=new i(t),r=n.g.document.createTextNode("");return s.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}},1856:(t,e,n)=>{"use strict";e.test=function(){return"function"==typeof n.g.queueMicrotask},e.install=function(t){return function(){n.g.queueMicrotask(t)}}},5723:(t,e,n)=>{"use strict";e.test=function(){return"document"in n.g&&"onreadystatechange"in n.g.document.createElement("script")},e.install=function(t){return function(){var e=n.g.document.createElement("script");return e.onreadystatechange=function(){t(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},n.g.document.documentElement.appendChild(e),t}}},6345:(t,e)=>{"use strict";e.test=function(){return!0},e.install=function(t){return function(){setTimeout(t,0)}}}}]); \ No newline at end of file diff --git a/assets/js/489.ac3cadbd.js.LICENSE.txt b/assets/js/489.d07863ea.js.LICENSE.txt similarity index 100% rename from assets/js/489.ac3cadbd.js.LICENSE.txt rename to assets/js/489.d07863ea.js.LICENSE.txt diff --git a/assets/js/48b7ca01.46746df6.js b/assets/js/48b7ca01.46746df6.js deleted file mode 100644 index 543d2bff8..000000000 --- a/assets/js/48b7ca01.46746df6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1347],{1165:(e,t,i)=>{i.d(t,{Ck:()=>m,kS:()=>g});var s=i(4848),n=i(8453),a=i(6540),r=i(4016),o=i(3517),l=i(3343),c=i(3864),d=i(8633),h=i(363);const m=({imageData:e,pixelsAbove:t,pixelsBelow:i})=>{const a={div:"div",...(0,n.R)()},c=({currentSlide:e,direction:t,slideCount:i,...n})=>"left"===t?(0,s.jsx)(d.A,{...n,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,left:10}}):(0,s.jsx)(h.A,{...n,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,right:10}});return(!t||t<0)&&(t=0),(!i||i<0)&&(i=0),(0,s.jsxs)(r.A,{justify:"space-between",vertical:!0,children:[(0,s.jsx)(a.div,{style:{height:`${t}px`}}),(0,s.jsx)(o.A,{arrows:!0,prevArrow:(0,s.jsx)(c,{direction:"left"}),nextArrow:(0,s.jsx)(c,{direction:"right"}),children:e.map((e=>(0,s.jsx)(l.A,{src:e.src},e.src)))}),(0,s.jsx)(a.div,{style:{height:`${i}px`}})]})},g=({tabMap:e,pixelsAbove:t,pixelsBelow:i})=>{const o={div:"div",...(0,n.R)()},[l,d]=(0,a.useState)(Object.keys(e)[0]);return(!t||t<0)&&(t=0),(!i||i<0)&&(i=0),(0,s.jsxs)(r.A,{justify:"space-between",vertical:!0,children:[(0,s.jsx)(o.div,{style:{height:`${t}px`}}),(0,s.jsx)(c.A,{tabList:Object.entries(e).map((([e,t])=>({key:e,label:t.label}))),activeTabKey:l,onTabChange:e=>{d(e)},children:e[l].component}),(0,s.jsx)(o.div,{style:{height:`${i}px`}})]})}},9350:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>l,contentTitle:()=>r,default:()=>h,frontMatter:()=>a,metadata:()=>o,toc:()=>c});var s=i(4848),n=i(8453);i(1165);const a={title:"Encoding Animation with SVT-AV1: A Deep Dive",description:"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?",slug:"svt-av1-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-1.8.0-testing-blog-image.webp",hide_table_of_contents:!1},r="Introduction",o={permalink:"/blog/svt-av1-deep-dive",source:"@site/blog/2023-12-30-svt-av1-deep-dive.mdx",title:"Encoding Animation with SVT-AV1: A Deep Dive",description:"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?",date:"2023-12-30T00:00:00.000Z",tags:[{inline:!0,label:"video",permalink:"/blog/tags/video"},{inline:!0,label:"compression",permalink:"/blog/tags/compression"},{inline:!0,label:"benchmarks",permalink:"/blog/tags/benchmarks"}],readingTime:22.78,hasTruncateMarker:!0,authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043",imageURL:"https://avatars.githubusercontent.com/u/93526043",key:null,page:null}],frontMatter:{title:"Encoding Animation with SVT-AV1: A Deep Dive",description:"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?",slug:"svt-av1-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043",imageURL:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-1.8.0-testing-blog-image.webp",hide_table_of_contents:!1},unlisted:!1,prevItem:{title:"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive",permalink:"/blog/svt-av1-second-deep-dive"},nextItem:{title:"Embedding the Un-Embeddable",permalink:"/blog/embedding-the-un-embeddable"}},l={authorsImageUrls:[void 0]},c=[];function d(e){const t={del:"del",em:"em",p:"p",strong:"strong",...(0,n.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.p,{children:"This blog post is based on a series of visual quality benchmarks with SSIMULACRA2 and speed benchmarks of SVT-AV1 1.8.0 on a corpus of animated clips."}),"\n",(0,s.jsxs)(t.p,{children:["The resources available will range from ",(0,s.jsx)(t.em,{children:(0,s.jsx)(t.strong,{children:"graphs"})})," to ",(0,s.jsx)(t.del,{children:(0,s.jsx)(t.strong,{children:"image comparisons"})})," (WIP). The ",(0,s.jsx)(t.em,{children:(0,s.jsx)(t.strong,{children:"former"})})," has the advantage of being easily understandable, showcasing pure efficiency comparisons between encoder parameters using metrics as the reference, while the ",(0,s.jsx)(t.strong,{children:"latter"})," are image samples from the encoded files during the tests that enable you to check quality for yourself and add another layer of subjective interpretation to these comparisons."]})]})}function h(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}}}]); \ No newline at end of file diff --git a/assets/js/48b7ca01.58594b7d.js b/assets/js/48b7ca01.58594b7d.js new file mode 100644 index 000000000..9104f7945 --- /dev/null +++ b/assets/js/48b7ca01.58594b7d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1347],{1165:(e,t,i)=>{i.d(t,{Ck:()=>m,kS:()=>p});var s=i(4848),n=i(8453),a=i(6540),r=i(4016),o=i(3517),l=i(3343),c=i(3864),d=i(8633),h=i(363);const m=({imageData:e,pixelsAbove:t,pixelsBelow:i})=>{const a={div:"div",...(0,n.R)()},c=({currentSlide:e,direction:t,slideCount:i,...n})=>"left"===t?(0,s.jsx)(d.A,{...n,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,left:10}}):(0,s.jsx)(h.A,{...n,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,right:10}});return(!t||t<0)&&(t=0),(!i||i<0)&&(i=0),(0,s.jsxs)(r.A,{justify:"space-between",vertical:!0,children:[(0,s.jsx)(a.div,{style:{height:`${t}px`}}),(0,s.jsx)(o.A,{arrows:!0,prevArrow:(0,s.jsx)(c,{direction:"left"}),nextArrow:(0,s.jsx)(c,{direction:"right"}),children:e.map((e=>(0,s.jsx)(l.A,{src:e.src},e.src)))}),(0,s.jsx)(a.div,{style:{height:`${i}px`}})]})},p=({tabMap:e,pixelsAbove:t,pixelsBelow:i})=>{const o={div:"div",...(0,n.R)()},[l,d]=(0,a.useState)(Object.keys(e)[0]);return(!t||t<0)&&(t=0),(!i||i<0)&&(i=0),(0,s.jsxs)(r.A,{justify:"space-between",vertical:!0,children:[(0,s.jsx)(o.div,{style:{height:`${t}px`}}),(0,s.jsx)(c.A,{tabList:Object.entries(e).map((([e,t])=>({key:e,label:t.label}))),activeTabKey:l,onTabChange:e=>{d(e)},children:e[l].component}),(0,s.jsx)(o.div,{style:{height:`${i}px`}})]})}},9350:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>l,contentTitle:()=>o,default:()=>h,frontMatter:()=>r,metadata:()=>s,toc:()=>c});var s=i(5255),n=i(4848),a=i(8453);i(1165);const r={title:"Encoding Animation with SVT-AV1: A Deep Dive",description:"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?",slug:"svt-av1-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-1.8.0-testing-blog-image.webp",hide_table_of_contents:!1},o="Introduction",l={authorsImageUrls:[void 0]},c=[];function d(e){const t={del:"del",em:"em",p:"p",strong:"strong",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.p,{children:"This blog post is based on a series of visual quality benchmarks with SSIMULACRA2 and speed benchmarks of SVT-AV1 1.8.0 on a corpus of animated clips."}),"\n",(0,n.jsxs)(t.p,{children:["The resources available will range from ",(0,n.jsx)(t.em,{children:(0,n.jsx)(t.strong,{children:"graphs"})})," to ",(0,n.jsx)(t.del,{children:(0,n.jsx)(t.strong,{children:"image comparisons"})})," (WIP). The ",(0,n.jsx)(t.em,{children:(0,n.jsx)(t.strong,{children:"former"})})," has the advantage of being easily understandable, showcasing pure efficiency comparisons between encoder parameters using metrics as the reference, while the ",(0,n.jsx)(t.strong,{children:"latter"})," are image samples from the encoded files during the tests that enable you to check quality for yourself and add another layer of subjective interpretation to these comparisons."]})]})}function h(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},5255:e=>{e.exports=JSON.parse('{"permalink":"/blog/svt-av1-deep-dive","source":"@site/blog/2023-12-30-svt-av1-deep-dive.mdx","title":"Encoding Animation with SVT-AV1: A Deep Dive","description":"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?","date":"2023-12-30T00:00:00.000Z","tags":[{"inline":true,"label":"video","permalink":"/blog/tags/video"},{"inline":true,"label":"compression","permalink":"/blog/tags/compression"},{"inline":true,"label":"benchmarks","permalink":"/blog/tags/benchmarks"}],"readingTime":22.78,"hasTruncateMarker":true,"authors":[{"name":"Trix","title":"Encoder","url":"https://github.com/trixoniisama/","image_url":"https://avatars.githubusercontent.com/u/93526043","imageURL":"https://avatars.githubusercontent.com/u/93526043","socials":{},"key":null,"page":null}],"frontMatter":{"title":"Encoding Animation with SVT-AV1: A Deep Dive","description":"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?","slug":"svt-av1-deep-dive","authors":[{"name":"Trix","title":"Encoder","url":"https://github.com/trixoniisama/","image_url":"https://avatars.githubusercontent.com/u/93526043","imageURL":"https://avatars.githubusercontent.com/u/93526043"}],"tags":["video","compression","benchmarks"],"image":"/img/svt-1.8.0-testing-blog-image.webp","hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"Observing SVT-AV1 v2.1.0\'s improvements: A New Deep Dive","permalink":"/blog/svt-av1-second-deep-dive"},"nextItem":{"title":"Embedding the Un-Embeddable","permalink":"/blog/embedding-the-un-embeddable"}}')}}]); \ No newline at end of file diff --git a/assets/js/49b64d14.085e8d06.js b/assets/js/49b64d14.085e8d06.js new file mode 100644 index 000000000..4dceb2c9c --- /dev/null +++ b/assets/js/49b64d14.085e8d06.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5993],{6807:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>l,metadata:()=>n,toc:()=>h});const n=JSON.parse('{"id":"encoders/SVT-AV1","title":"SVT-AV1","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/encoders/SVT-AV1.mdx","sourceDirName":"encoders","slug":"/encoders/SVT-AV1","permalink":"/docs/encoders/SVT-AV1","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/SVT-AV1.mdx","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"title":"SVT-AV1","sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"SVT-AV1-PSY","permalink":"/docs/encoders/SVT-AV1-PSY"},"next":{"title":"rav1e","permalink":"/docs/encoders/rav1e"}}');var s=i(4848),r=i(8453),o=i(1470),a=i(9365);const l={title:"SVT-AV1",sidebar_position:5},c="SVT-AV1",d={},h=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installation",id:"installation",level:2},{value:"Encoding",id:"encoding",level:2},{value:"Strengths",id:"strengths",level:3},{value:"Weaknesses",id:"weaknesses",level:3},{value:"Encoder Optimization",id:"encoder-optimization",level:3},{value:"Community Forks",id:"community-forks",level:2},{value:"SVT-AV1-PSY",id:"svt-av1-psy",level:3}];function u(e){const t={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"svt-av1",children:"SVT-AV1"})}),"\n",(0,s.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,s.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,s.jsxs)(t.p,{children:['SVT-AV1 (Scalable Video Technology for AV1) is an AV1-compliant software encoder/decoder library. Jointly developed by Intel and Netflix, SVT-AV1 is written almost entirely in C with some parts written in C++ and Assembly. As the name suggests, it is part of the "',(0,s.jsx)(t.a,{href:"https://www.intel.com/content/www/us/en/developer/articles/technical/scalable-video-technology.html",children:"Scalable Video Technology"}),'" project lineup by Intel.']}),"\n",(0,s.jsxs)(t.p,{children:['This entry discusses the SVT-AV1 encoder, also known as the "Production" AV1 encoder (while ',(0,s.jsx)(t.a,{href:"/docs/encoders/aomenc",children:"aomenc"}),' is the "reference" AV1 encoder), & refers to SVT-AV1 as such. SVT-AV1 is known for its parallelization, high coding efficiency, & active development. SVT-AV1 scales across multiple CPU cores much more effectively than aomenc or ',(0,s.jsx)(t.a,{href:"/docs/encoders/rav1e",children:"rav1e"}),", so the use of tools like ",(0,s.jsx)(t.a,{href:"/docs/utilities/av1an",children:"Av1an"})," is less helpful albeit still helpful for scene detection."]}),"\n",(0,s.jsx)(t.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,s.jsxs)(t.p,{children:["SVT-AV1 is available in FFmpeg via ",(0,s.jsx)(t.code,{children:"libsvtav1"}),", to check if you have it, run ",(0,s.jsx)(t.code,{children:"ffmpeg -h encoder=libsvtav1"}),". You can input non-FFmpeg standard SVT-AV1 parameters via ",(0,s.jsx)(t.code,{children:"-svtav1-params"}),"."]}),"\n",(0,s.jsx)(t.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,s.jsx)(t.p,{children:"SVT-AV1 supports the following color spaces:"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Format"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,s.jsx)(t.th,{children:"Supported Bit Depth(s)"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"YUV420P"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,s.jsx)(t.td,{children:"8-bit"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"YUV420P10LE"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,s.jsx)(t.td,{children:"10-bit"})]})]})]}),"\n",(0,s.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsxs)(o.A,{children:[(0,s.jsxs)(a.A,{value:"unixlike",label:"Linux & macOS",children:[(0,s.jsx)(t.p,{children:(0,s.jsxs)(t.em,{children:["A precompiled AVX2-optimized binary of SVT-AV1-PSY can be installed for x86_64 Linux via ",(0,s.jsx)(t.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"}),". However, it is always recommended to build from source."]})}),(0,s.jsx)(t.p,{children:"To build SVT-AV1 from source, first clone the desired SVT-AV1 repository & enter the build directory."}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Clone mainline SVT-AV1"',children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ngit reset --hard bbcff785881b320f7e1b1f77a2f5ed025f8bfd75 # Reset to release 2.1.0\ncd SVT-AV1/Build/linux\n"})}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Clone SVT-AV1-PSY"',children:"git clone https://github.com/gianni-rosato/svt-av1-psy\ncd SVT-AV1/Build/linux\n"})}),(0,s.jsxs)(t.p,{children:["In the directory, simply run ",(0,s.jsx)(t.code,{children:"./build.sh [flags]"})," to build. Be aware that building requires CMake version 3.16 or higher and either GCC or Clang. It is recommended to use clang when building SVT-AV1."]}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Build release"',children:"./build.sh release\n"})}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Statically build just the encoder with clang and enable link-time optimization"',children:"./build.sh jobs=8 all cc=clang cxx=clang++ no-dec enable-lto static native\n"})}),(0,s.jsxs)(t.p,{children:["The compiled binaries will be in the ",(0,s.jsx)(t.code,{children:"Bin/Release"})," directory, including SvtAv1EncApp. If you just want the encoder, adding the ",(0,s.jsx)(t.code,{children:"no-dec"})," flag will skip building SvtAv1DecApp and save on compilation time."]}),(0,s.jsxs)(t.p,{children:["If you'd like to build from the latest release (2.1.0 at the time of writing - last updated 16 Apr 2024) please run ",(0,s.jsx)(t.code,{children:"git reset --hard 2aeeb4f1a1d495b84bf5c21dbb60ae10e991fada"})," in the cloned directory. It is recommended that you do this, as new changes to git aren't always stable right away & a release will guarantee more stability."]}),(0,s.jsxs)(t.p,{children:["If you want extra performance, it is possible to build SVT-AV1 using PGO (Profile-guided Optimization). ",(0,s.jsxs)(t.strong,{children:["Be aware that this particular script infers that you have a .y4m file (or multiple) in ",(0,s.jsx)(t.code,{children:"/dev/shm"})," for transcoding"]}),". You can compile statically linked SVT-AV1 with PGO (and LTO, or link-time optimization) by following this script:"]}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Bulding SVT-AV1 with profile guided optimization"',children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ncd SVT-AV1/Build/linux\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-videos=/dev/shm release\n"})}),(0,s.jsx)(t.p,{children:"If you wish to store videos elsewhere or provide custom parameters to the SvtAv1EncApp binary, try this script:"}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ncd SVT-AV1/Build/linux\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-compile-gen release\n../../Bin/Release/SvtAv1EncApp # Run this binary as many times as you'd like with arguments of your choice to collect data\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-compile-use release\n"})})]}),(0,s.jsx)(a.A,{value:"windows",label:"Windows",children:(0,s.jsxs)(t.p,{children:["To be filled. If you believe you can help, see our ",(0,s.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"}),"."]})})]}),"\n",(0,s.jsx)(t.h2,{id:"encoding",children:"Encoding"}),"\n",(0,s.jsx)(t.h3,{id:"strengths",children:"Strengths"}),"\n",(0,s.jsx)(t.p,{children:"SVT-AV1's greatest strength is its parallelization capability, where it outclasses other AV1 encoders by a significant margin. SVT-AV1's parallelization techniques do not involve tiling & don't harm video quality, & can comfortably utilize up to 16 cores given 1080p source video. This is while maintaining competitive coding efficiency to mainline aomenc. Perceptually, mainline SVT-AV1 is outperformed by well-tuned community forks of aomenc, but according to many the gap has begun to close with the introduction of SVT-AV1-PSY."}),"\n",(0,s.jsx)(t.h3,{id:"weaknesses",children:"Weaknesses"}),"\n",(0,s.jsxs)(t.p,{children:["SVT-AV1 is strongest on x86 CPUs, & while ARM NEON assembly is ",(0,s.jsx)(t.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/ba13fac241f1b54954935f2cb200efc07f3de13a",children:"available"})," and has been slowly improving since its introduction in version 1.8.0, SVT-AV1 still underperforms on ARM. For this reason, it is not a good cross-architecture CPU benchmark. SVT-AV1's support for various AV1 features is also limited; it only supports up to 4:2:0 chroma subsampling with no support for 12-bit color, and it does not support scene change detection (there are no plans to implement this, either). The smallest possible video that SVT-AV1 can produce is 64x64."]}),"\n",(0,s.jsx)(t.h3,{id:"encoder-optimization",children:"Encoder Optimization"}),"\n",(0,s.jsxs)(t.p,{children:["Aside from build optimizations for speed, there is further tweaking to be done to the ",(0,s.jsx)(t.code,{children:"SvtAv1EncApp"})," binary parameters when encoding. The following applies to mainline SVT-AV1, but does not apply to SVT-AV1-PSY."]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.code,{children:"--film-grain"})," & ",(0,s.jsx)(t.code,{children:"--film-grain-denoise"})]}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:["Most live-action sources feature hard-to-compress digital noise that is easily smoothed out by AV1 compression. To add this grain back, or even denoise through the encoder and then add grain, it is possible to use the ",(0,s.jsx)(t.code,{children:"--film-grain"})," parameter to specify an amount of film grain to add to the encode (& ",(0,s.jsx)(t.code,{children:"--film-grain-denoise"})," to specify how to denoise the input video before encoding for potentially better appeal). Denoising a video always removes fine details, so sticking with just ",(0,s.jsx)(t.code,{children:"--film-grain"})," is recommended in most cases. According to ",(0,s.jsx)(t.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/CommonQuestions.mdx#practical-advice-on-grain-synthesis",children:"SVT-AV1 documentation"}),", a level of 8 should be used for live-action content with a normal amount of grain while a level of 4 works well for hand-drawn animation or other smoother-looking sources that still stand to benefit from some grain synthesis."]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--input-depth 10"})}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"10-bit output from AV1 encoding is always desirable for coding efficiency, even if your source is 8-bit. This option only produces a 10-bit AV1 bitstream if the source provided to the encoder is 10-bit."}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--tune 2"})}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:["There are three tunes in mainline SVT-AV1: Tune 1 is for ",(0,s.jsx)(t.a,{href:"/docs/metrics/PSNR",children:"PSNR"})," ",(0,s.jsx)(t.a,{href:"/docs/introduction/psychovisual",children:"RDO"}),", Tune 2 is for ",(0,s.jsx)(t.a,{href:"/docs/metrics/SSIM",children:"SSIM"})," RDO, & Tune 0 is a ",(0,s.jsx)(t.a,{href:"/docs/introduction/psychovisual",children:"psychovisual"})," tune labeled VQ. It has been common practice to lean away from the PSNR tune, as it is not designed for visual quality but rather to perform better on the PSNR metric which is widely considered to be inconsistent with our human perception of fidelity. Using the VQ tune is a safe bet for now, but many believe the newer SSIM tune provides better visual fidelity. Using SVT-AV1-PSY, the custom Subjective SSIM tune (Tune 3) provides the best of both Tune 2 & Tune 0 with additional improvements as well."]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--enable-qm 1"})}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"Enables quantization matrices, disabled by default. Improves coding efficiency mainly by improving encoding speed while producing similar quality video."}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--qm-min 0"})}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"Sets the minimum flatness of quantization matrices to 0, down from the default 8. This is recommended unless you are dealing with extremely heavy grain. The maximum quantization matrix flatness is 15 by default, and should be left alone"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--keyint [FPS*10]"})}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:["Similar to ",(0,s.jsx)(t.code,{children:"--kf-max-dist"})," in ",(0,s.jsx)(t.a,{href:"/docs/encoders/vpxenc",children:"vpxenc"}),", this tells the encoder when to place keyframes. Because SVT-AV1 doesn't have scene detection, this isn't the maximum distance between keyframes, but rather a fixed interval for placing keyframes. If using Av1an, set to -1 to disable keyframe insertion as Av1an handles that instead."]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--irefresh-type 2"})}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:["Intra refresh is specified through this option, & lets the user decide between Closed GOP & Open GOP. GOP stands for Group of Pictures. Open GOP allows GOPs to ",(0,s.jsx)(t.a,{href:"https://ottverse.com/closed-gop-open-gop-idr/",children:"reference one another"}),", but support for this feature is currently incomplete. Therefore, it is recommended to use Closed GOP for the time being via ",(0,s.jsx)(t.code,{children:"--irefresh-type 2"})," until this is rectified."]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--preset X"})}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"SVT-AV1 can be used in 14 different presets, labeled -1 through 13. Preset -1 is the slowest, but provides the best coding efficiency; it is also dubbed a research preset that is not recommended for regular use. Preset 13 is the fastest, and is also not recommended for regular use as it makes serious trade-offs to achieve unrealistically fast speeds at the cost of the encoder's coding efficiency. Using presets 2 through 8 is the best course of action for non-realtime applications if you desire reasonable speed, while 9 through 12 are useful for real-time encoding at 1080p or lower, even on low-end consumer computer hardware."}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--crf X"})}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"CRF is the best way to target quality for optimal visual fidelity. VBR & CBR lose efficiency due to their inherently limited rate control capabilities."}),"\n",(0,s.jsx)(t.h2,{id:"community-forks",children:"Community Forks"}),"\n",(0,s.jsxs)(t.p,{children:["Currently, there is only one noteworthy community fork of SVT-AV1 called ",(0,s.jsx)(t.a,{href:"/docs/encoders/SVT-AV1-PSY",children:"SVT-AV1-PSY"}),"."]}),"\n",(0,s.jsx)(t.h3,{id:"svt-av1-psy",children:"SVT-AV1-PSY"}),"\n",(0,s.jsxs)(t.p,{children:["SVT-AV1-PSY is a community fork of SVT-AV1 that strives to improve the perceptual fidelity and quality of life provided by the encoder. The goal of this project is to create the best encoding implementation for perceptual quality with AV1, and it aims to surpass previous community forks of ",(0,s.jsx)(t.a,{href:"/docs/encoders/aomenc#choosing-forks",children:"aomenc"})," in speed and visual quality."]}),"\n",(0,s.jsxs)(t.p,{children:["SVT-AV1-PSY has a number of feature additions to the mainline SVT-AV1 encoder as well as modified defaults that aim to make it easier to produce a more perceptually optimal bistream. For a full list of the encoder's feature additions and modifications to defaults, see the ",(0,s.jsx)(t.a,{href:"https://github.com/gianni-rosato/svt-av1-psy/blob/master/README.md#feature-additions",children:"project's README"}),"."]})]})}function p(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},9365:(e,t,i)=>{i.d(t,{A:()=>o});i(6540);var n=i(4164);const s={tabItem:"tabItem_Ymn6"};var r=i(4848);function o(e){let{children:t,hidden:i,className:o}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,n.A)(s.tabItem,o),hidden:i,children:t})}},1470:(e,t,i)=>{i.d(t,{A:()=>j});var n=i(6540),s=i(4164),r=i(3104),o=i(6347),a=i(205),l=i(7485),c=i(1682),d=i(679);function h(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:t,children:i}=e;return(0,n.useMemo)((()=>{const e=t??function(e){return h(e).map((e=>{let{props:{value:t,label:i,attributes:n,default:s}}=e;return{value:t,label:i,attributes:n,default:s}}))}(i);return function(e){const t=(0,c.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,i])}function p(e){let{value:t,tabValues:i}=e;return i.some((e=>e.value===t))}function m(e){let{queryString:t=!1,groupId:i}=e;const s=(0,o.W6)(),r=function(e){let{queryString:t=!1,groupId:i}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:t,groupId:i});return[(0,l.aZ)(r),(0,n.useCallback)((e=>{if(!r)return;const t=new URLSearchParams(s.location.search);t.set(r,e),s.replace({...s.location,search:t.toString()})}),[r,s])]}function f(e){const{defaultValue:t,queryString:i=!1,groupId:s}=e,r=u(e),[o,l]=(0,n.useState)((()=>function(e){let{defaultValue:t,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!p({value:t,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=i.find((e=>e.default))??i[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:r}))),[c,h]=m({queryString:i,groupId:s}),[f,b]=function(e){let{groupId:t}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,r]=(0,d.Dv)(i);return[s,(0,n.useCallback)((e=>{i&&r.set(e)}),[i,r])]}({groupId:s}),g=(()=>{const e=c??f;return p({value:e,tabValues:r})?e:null})();(0,a.A)((()=>{g&&l(g)}),[g]);return{selectedValue:o,selectValue:(0,n.useCallback)((e=>{if(!p({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);l(e),h(e),b(e)}),[h,b,r]),tabValues:r}}var b=i(2303);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=i(4848);function v(e){let{className:t,block:i,selectedValue:n,selectValue:o,tabValues:a}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,r.a_)(),d=e=>{const t=e.currentTarget,i=l.indexOf(t),s=a[i].value;s!==n&&(c(t),o(s))},h=e=>{let t=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=l.indexOf(e.currentTarget)+1;t=l[i]??l[0];break}case"ArrowLeft":{const i=l.indexOf(e.currentTarget)-1;t=l[i]??l[l.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.A)("tabs",{"tabs--block":i},t),children:a.map((e=>{let{value:t,label:i,attributes:r}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:n===t?0:-1,"aria-selected":n===t,ref:e=>l.push(e),onKeyDown:h,onClick:d,...r,className:(0,s.A)("tabs__item",g.tabItem,r?.className,{"tabs__item--active":n===t}),children:i??t},t)}))})}function V(e){let{lazy:t,children:i,selectedValue:r}=e;const o=(Array.isArray(i)?i:[i]).filter(Boolean);if(t){const e=o.find((e=>e.props.value===r));return e?(0,n.cloneElement)(e,{className:(0,s.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:o.map(((e,t)=>(0,n.cloneElement)(e,{key:t,hidden:e.props.value!==r})))})}function y(e){const t=f(e);return(0,x.jsxs)("div",{className:(0,s.A)("tabs-container",g.tabList),children:[(0,x.jsx)(v,{...t,...e}),(0,x.jsx)(V,{...t,...e})]})}function j(e){const t=(0,b.A)();return(0,x.jsx)(y,{...e,children:h(e.children)},String(t))}},8453:(e,t,i)=>{i.d(t,{R:()=>o,x:()=>a});var n=i(6540);const s={},r=n.createContext(s);function o(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/49b64d14.988cf361.js b/assets/js/49b64d14.988cf361.js deleted file mode 100644 index ae6265cf4..000000000 --- a/assets/js/49b64d14.988cf361.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5993],{4493:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>d,contentTitle:()=>l,default:()=>p,frontMatter:()=>a,metadata:()=>c,toc:()=>h});var n=i(4848),s=i(8453),r=i(1470),o=i(9365);const a={title:"SVT-AV1",sidebar_position:5},l="SVT-AV1",c={id:"encoders/SVT-AV1",title:"SVT-AV1",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/encoders/SVT-AV1.mdx",sourceDirName:"encoders",slug:"/encoders/SVT-AV1",permalink:"/docs/encoders/SVT-AV1",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/SVT-AV1.mdx",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"SVT-AV1",sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"SVT-AV1-PSY",permalink:"/docs/encoders/SVT-AV1-PSY"},next:{title:"rav1e",permalink:"/docs/encoders/rav1e"}},d={},h=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installation",id:"installation",level:2},{value:"Encoding",id:"encoding",level:2},{value:"Strengths",id:"strengths",level:3},{value:"Weaknesses",id:"weaknesses",level:3},{value:"Encoder Optimization",id:"encoder-optimization",level:3},{value:"Community Forks",id:"community-forks",level:2},{value:"SVT-AV1-PSY",id:"svt-av1-psy",level:3}];function u(e){const t={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"svt-av1",children:"SVT-AV1"})}),"\n",(0,n.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,n.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,n.jsxs)(t.p,{children:['SVT-AV1 (Scalable Video Technology for AV1) is an AV1-compliant software encoder/decoder library. Jointly developed by Intel and Netflix, SVT-AV1 is written almost entirely in C with some parts written in C++ and Assembly. As the name suggests, it is part of the "',(0,n.jsx)(t.a,{href:"https://www.intel.com/content/www/us/en/developer/articles/technical/scalable-video-technology.html",children:"Scalable Video Technology"}),'" project lineup by Intel.']}),"\n",(0,n.jsxs)(t.p,{children:['This entry discusses the SVT-AV1 encoder, also known as the "Production" AV1 encoder (while ',(0,n.jsx)(t.a,{href:"/docs/encoders/aomenc",children:"aomenc"}),' is the "reference" AV1 encoder), & refers to SVT-AV1 as such. SVT-AV1 is known for its parallelization, high coding efficiency, & active development. SVT-AV1 scales across multiple CPU cores much more effectively than aomenc or ',(0,n.jsx)(t.a,{href:"/docs/encoders/rav1e",children:"rav1e"}),", so the use of tools like ",(0,n.jsx)(t.a,{href:"/docs/utilities/av1an",children:"Av1an"})," is less helpful albeit still helpful for scene detection."]}),"\n",(0,n.jsx)(t.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,n.jsxs)(t.p,{children:["SVT-AV1 is available in FFmpeg via ",(0,n.jsx)(t.code,{children:"libsvtav1"}),", to check if you have it, run ",(0,n.jsx)(t.code,{children:"ffmpeg -h encoder=libsvtav1"}),". You can input non-FFmpeg standard SVT-AV1 parameters via ",(0,n.jsx)(t.code,{children:"-svtav1-params"}),"."]}),"\n",(0,n.jsx)(t.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,n.jsx)(t.p,{children:"SVT-AV1 supports the following color spaces:"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Format"}),(0,n.jsx)(t.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,n.jsx)(t.th,{children:"Supported Bit Depth(s)"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV420P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(t.td,{children:"8-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV420P10LE"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(t.td,{children:"10-bit"})]})]})]}),"\n",(0,n.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,n.jsxs)(r.A,{children:[(0,n.jsxs)(o.A,{value:"unixlike",label:"Linux & macOS",children:[(0,n.jsx)(t.p,{children:(0,n.jsxs)(t.em,{children:["A precompiled AVX2-optimized binary of SVT-AV1-PSY can be installed for x86_64 Linux via ",(0,n.jsx)(t.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"}),". However, it is always recommended to build from source."]})}),(0,n.jsx)(t.p,{children:"To build SVT-AV1 from source, first clone the desired SVT-AV1 repository & enter the build directory."}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Clone mainline SVT-AV1"',children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ngit reset --hard bbcff785881b320f7e1b1f77a2f5ed025f8bfd75 # Reset to release 2.1.0\ncd SVT-AV1/Build/linux\n"})}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Clone SVT-AV1-PSY"',children:"git clone https://github.com/gianni-rosato/svt-av1-psy\ncd SVT-AV1/Build/linux\n"})}),(0,n.jsxs)(t.p,{children:["In the directory, simply run ",(0,n.jsx)(t.code,{children:"./build.sh [flags]"})," to build. Be aware that building requires CMake version 3.16 or higher and either GCC or Clang. It is recommended to use clang when building SVT-AV1."]}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Build release"',children:"./build.sh release\n"})}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Statically build just the encoder with clang and enable link-time optimization"',children:"./build.sh jobs=8 all cc=clang cxx=clang++ no-dec enable-lto static native\n"})}),(0,n.jsxs)(t.p,{children:["The compiled binaries will be in the ",(0,n.jsx)(t.code,{children:"Bin/Release"})," directory, including SvtAv1EncApp. If you just want the encoder, adding the ",(0,n.jsx)(t.code,{children:"no-dec"})," flag will skip building SvtAv1DecApp and save on compilation time."]}),(0,n.jsxs)(t.p,{children:["If you'd like to build from the latest release (2.1.0 at the time of writing - last updated 16 Apr 2024) please run ",(0,n.jsx)(t.code,{children:"git reset --hard 2aeeb4f1a1d495b84bf5c21dbb60ae10e991fada"})," in the cloned directory. It is recommended that you do this, as new changes to git aren't always stable right away & a release will guarantee more stability."]}),(0,n.jsxs)(t.p,{children:["If you want extra performance, it is possible to build SVT-AV1 using PGO (Profile-guided Optimization). ",(0,n.jsxs)(t.strong,{children:["Be aware that this particular script infers that you have a .y4m file (or multiple) in ",(0,n.jsx)(t.code,{children:"/dev/shm"})," for transcoding"]}),". You can compile statically linked SVT-AV1 with PGO (and LTO, or link-time optimization) by following this script:"]}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Bulding SVT-AV1 with profile guided optimization"',children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ncd SVT-AV1/Build/linux\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-videos=/dev/shm release\n"})}),(0,n.jsx)(t.p,{children:"If you wish to store videos elsewhere or provide custom parameters to the SvtAv1EncApp binary, try this script:"}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ncd SVT-AV1/Build/linux\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-compile-gen release\n../../Bin/Release/SvtAv1EncApp # Run this binary as many times as you'd like with arguments of your choice to collect data\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-compile-use release\n"})})]}),(0,n.jsx)(o.A,{value:"windows",label:"Windows",children:(0,n.jsxs)(t.p,{children:["To be filled. If you believe you can help, see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"}),"."]})})]}),"\n",(0,n.jsx)(t.h2,{id:"encoding",children:"Encoding"}),"\n",(0,n.jsx)(t.h3,{id:"strengths",children:"Strengths"}),"\n",(0,n.jsx)(t.p,{children:"SVT-AV1's greatest strength is its parallelization capability, where it outclasses other AV1 encoders by a significant margin. SVT-AV1's parallelization techniques do not involve tiling & don't harm video quality, & can comfortably utilize up to 16 cores given 1080p source video. This is while maintaining competitive coding efficiency to mainline aomenc. Perceptually, mainline SVT-AV1 is outperformed by well-tuned community forks of aomenc, but according to many the gap has begun to close with the introduction of SVT-AV1-PSY."}),"\n",(0,n.jsx)(t.h3,{id:"weaknesses",children:"Weaknesses"}),"\n",(0,n.jsxs)(t.p,{children:["SVT-AV1 is strongest on x86 CPUs, & while ARM NEON assembly is ",(0,n.jsx)(t.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/ba13fac241f1b54954935f2cb200efc07f3de13a",children:"available"})," and has been slowly improving since its introduction in version 1.8.0, SVT-AV1 still underperforms on ARM. For this reason, it is not a good cross-architecture CPU benchmark. SVT-AV1's support for various AV1 features is also limited; it only supports up to 4:2:0 chroma subsampling with no support for 12-bit color, and it does not support scene change detection (there are no plans to implement this, either). The smallest possible video that SVT-AV1 can produce is 64x64."]}),"\n",(0,n.jsx)(t.h3,{id:"encoder-optimization",children:"Encoder Optimization"}),"\n",(0,n.jsxs)(t.p,{children:["Aside from build optimizations for speed, there is further tweaking to be done to the ",(0,n.jsx)(t.code,{children:"SvtAv1EncApp"})," binary parameters when encoding. The following applies to mainline SVT-AV1, but does not apply to SVT-AV1-PSY."]}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.code,{children:"--film-grain"})," & ",(0,n.jsx)(t.code,{children:"--film-grain-denoise"})]}),"\n"]}),"\n",(0,n.jsxs)(t.p,{children:["Most live-action sources feature hard-to-compress digital noise that is easily smoothed out by AV1 compression. To add this grain back, or even denoise through the encoder and then add grain, it is possible to use the ",(0,n.jsx)(t.code,{children:"--film-grain"})," parameter to specify an amount of film grain to add to the encode (& ",(0,n.jsx)(t.code,{children:"--film-grain-denoise"})," to specify how to denoise the input video before encoding for potentially better appeal). Denoising a video always removes fine details, so sticking with just ",(0,n.jsx)(t.code,{children:"--film-grain"})," is recommended in most cases. According to ",(0,n.jsx)(t.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/CommonQuestions.mdx#practical-advice-on-grain-synthesis",children:"SVT-AV1 documentation"}),", a level of 8 should be used for live-action content with a normal amount of grain while a level of 4 works well for hand-drawn animation or other smoother-looking sources that still stand to benefit from some grain synthesis."]}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--input-depth 10"})}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:"10-bit output from AV1 encoding is always desirable for coding efficiency, even if your source is 8-bit. This option only produces a 10-bit AV1 bitstream if the source provided to the encoder is 10-bit."}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--tune 2"})}),"\n"]}),"\n",(0,n.jsxs)(t.p,{children:["There are three tunes in mainline SVT-AV1: Tune 1 is for ",(0,n.jsx)(t.a,{href:"/docs/metrics/PSNR",children:"PSNR"})," ",(0,n.jsx)(t.a,{href:"/docs/introduction/psychovisual",children:"RDO"}),", Tune 2 is for ",(0,n.jsx)(t.a,{href:"/docs/metrics/SSIM",children:"SSIM"})," RDO, & Tune 0 is a ",(0,n.jsx)(t.a,{href:"/docs/introduction/psychovisual",children:"psychovisual"})," tune labeled VQ. It has been common practice to lean away from the PSNR tune, as it is not designed for visual quality but rather to perform better on the PSNR metric which is widely considered to be inconsistent with our human perception of fidelity. Using the VQ tune is a safe bet for now, but many believe the newer SSIM tune provides better visual fidelity. Using SVT-AV1-PSY, the custom Subjective SSIM tune (Tune 3) provides the best of both Tune 2 & Tune 0 with additional improvements as well."]}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--enable-qm 1"})}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:"Enables quantization matrices, disabled by default. Improves coding efficiency mainly by improving encoding speed while producing similar quality video."}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--qm-min 0"})}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:"Sets the minimum flatness of quantization matrices to 0, down from the default 8. This is recommended unless you are dealing with extremely heavy grain. The maximum quantization matrix flatness is 15 by default, and should be left alone"}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--keyint [FPS*10]"})}),"\n"]}),"\n",(0,n.jsxs)(t.p,{children:["Similar to ",(0,n.jsx)(t.code,{children:"--kf-max-dist"})," in ",(0,n.jsx)(t.a,{href:"/docs/encoders/vpxenc",children:"vpxenc"}),", this tells the encoder when to place keyframes. Because SVT-AV1 doesn't have scene detection, this isn't the maximum distance between keyframes, but rather a fixed interval for placing keyframes. If using Av1an, set to -1 to disable keyframe insertion as Av1an handles that instead."]}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--irefresh-type 2"})}),"\n"]}),"\n",(0,n.jsxs)(t.p,{children:["Intra refresh is specified through this option, & lets the user decide between Closed GOP & Open GOP. GOP stands for Group of Pictures. Open GOP allows GOPs to ",(0,n.jsx)(t.a,{href:"https://ottverse.com/closed-gop-open-gop-idr/",children:"reference one another"}),", but support for this feature is currently incomplete. Therefore, it is recommended to use Closed GOP for the time being via ",(0,n.jsx)(t.code,{children:"--irefresh-type 2"})," until this is rectified."]}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--preset X"})}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:"SVT-AV1 can be used in 14 different presets, labeled -1 through 13. Preset -1 is the slowest, but provides the best coding efficiency; it is also dubbed a research preset that is not recommended for regular use. Preset 13 is the fastest, and is also not recommended for regular use as it makes serious trade-offs to achieve unrealistically fast speeds at the cost of the encoder's coding efficiency. Using presets 2 through 8 is the best course of action for non-realtime applications if you desire reasonable speed, while 9 through 12 are useful for real-time encoding at 1080p or lower, even on low-end consumer computer hardware."}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--crf X"})}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:"CRF is the best way to target quality for optimal visual fidelity. VBR & CBR lose efficiency due to their inherently limited rate control capabilities."}),"\n",(0,n.jsx)(t.h2,{id:"community-forks",children:"Community Forks"}),"\n",(0,n.jsxs)(t.p,{children:["Currently, there is only one noteworthy community fork of SVT-AV1 called ",(0,n.jsx)(t.a,{href:"/docs/encoders/SVT-AV1-PSY",children:"SVT-AV1-PSY"}),"."]}),"\n",(0,n.jsx)(t.h3,{id:"svt-av1-psy",children:"SVT-AV1-PSY"}),"\n",(0,n.jsxs)(t.p,{children:["SVT-AV1-PSY is a community fork of SVT-AV1 that strives to improve the perceptual fidelity and quality of life provided by the encoder. The goal of this project is to create the best encoding implementation for perceptual quality with AV1, and it aims to surpass previous community forks of ",(0,n.jsx)(t.a,{href:"/docs/encoders/aomenc#choosing-forks",children:"aomenc"})," in speed and visual quality."]}),"\n",(0,n.jsxs)(t.p,{children:["SVT-AV1-PSY has a number of feature additions to the mainline SVT-AV1 encoder as well as modified defaults that aim to make it easier to produce a more perceptually optimal bistream. For a full list of the encoder's feature additions and modifications to defaults, see the ",(0,n.jsx)(t.a,{href:"https://github.com/gianni-rosato/svt-av1-psy/blob/master/README.md#feature-additions",children:"project's README"}),"."]})]})}function p(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},9365:(e,t,i)=>{i.d(t,{A:()=>o});i(6540);var n=i(4164);const s={tabItem:"tabItem_Ymn6"};var r=i(4848);function o(e){let{children:t,hidden:i,className:o}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,n.A)(s.tabItem,o),hidden:i,children:t})}},1470:(e,t,i)=>{i.d(t,{A:()=>j});var n=i(6540),s=i(4164),r=i(3104),o=i(6347),a=i(205),l=i(7485),c=i(1682),d=i(679);function h(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:t,children:i}=e;return(0,n.useMemo)((()=>{const e=t??function(e){return h(e).map((e=>{let{props:{value:t,label:i,attributes:n,default:s}}=e;return{value:t,label:i,attributes:n,default:s}}))}(i);return function(e){const t=(0,c.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,i])}function p(e){let{value:t,tabValues:i}=e;return i.some((e=>e.value===t))}function m(e){let{queryString:t=!1,groupId:i}=e;const s=(0,o.W6)(),r=function(e){let{queryString:t=!1,groupId:i}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:t,groupId:i});return[(0,l.aZ)(r),(0,n.useCallback)((e=>{if(!r)return;const t=new URLSearchParams(s.location.search);t.set(r,e),s.replace({...s.location,search:t.toString()})}),[r,s])]}function f(e){const{defaultValue:t,queryString:i=!1,groupId:s}=e,r=u(e),[o,l]=(0,n.useState)((()=>function(e){let{defaultValue:t,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!p({value:t,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=i.find((e=>e.default))??i[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:r}))),[c,h]=m({queryString:i,groupId:s}),[f,b]=function(e){let{groupId:t}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,r]=(0,d.Dv)(i);return[s,(0,n.useCallback)((e=>{i&&r.set(e)}),[i,r])]}({groupId:s}),g=(()=>{const e=c??f;return p({value:e,tabValues:r})?e:null})();(0,a.A)((()=>{g&&l(g)}),[g]);return{selectedValue:o,selectValue:(0,n.useCallback)((e=>{if(!p({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);l(e),h(e),b(e)}),[h,b,r]),tabValues:r}}var b=i(2303);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=i(4848);function v(e){let{className:t,block:i,selectedValue:n,selectValue:o,tabValues:a}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,r.a_)(),d=e=>{const t=e.currentTarget,i=l.indexOf(t),s=a[i].value;s!==n&&(c(t),o(s))},h=e=>{let t=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=l.indexOf(e.currentTarget)+1;t=l[i]??l[0];break}case"ArrowLeft":{const i=l.indexOf(e.currentTarget)-1;t=l[i]??l[l.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.A)("tabs",{"tabs--block":i},t),children:a.map((e=>{let{value:t,label:i,attributes:r}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:n===t?0:-1,"aria-selected":n===t,ref:e=>l.push(e),onKeyDown:h,onClick:d,...r,className:(0,s.A)("tabs__item",g.tabItem,r?.className,{"tabs__item--active":n===t}),children:i??t},t)}))})}function V(e){let{lazy:t,children:i,selectedValue:r}=e;const o=(Array.isArray(i)?i:[i]).filter(Boolean);if(t){const e=o.find((e=>e.props.value===r));return e?(0,n.cloneElement)(e,{className:(0,s.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:o.map(((e,t)=>(0,n.cloneElement)(e,{key:t,hidden:e.props.value!==r})))})}function y(e){const t=f(e);return(0,x.jsxs)("div",{className:(0,s.A)("tabs-container",g.tabList),children:[(0,x.jsx)(v,{...t,...e}),(0,x.jsx)(V,{...t,...e})]})}function j(e){const t=(0,b.A)();return(0,x.jsx)(y,{...e,children:h(e.children)},String(t))}},8453:(e,t,i)=>{i.d(t,{R:()=>o,x:()=>a});var n=i(6540);const s={},r=n.createContext(s);function o(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/4c678320.27764c57.js b/assets/js/4c678320.27764c57.js deleted file mode 100644 index 8a90cc44f..000000000 --- a/assets/js/4c678320.27764c57.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9664],{2051:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>s,default:()=>l,frontMatter:()=>r,metadata:()=>c,toc:()=>d});var o=t(4848),a=t(8453);const r={title:"Markdown page example"},s="Markdown page example",c={type:"mdx",permalink:"/markdown-page",source:"@site/src/pages/markdown-page.mdx",title:"Markdown page example",description:"You don't need React to write simple standalone pages.",frontMatter:{title:"Markdown page example"},unlisted:!1},p={},d=[];function i(e){const n={h1:"h1",header:"header",p:"p",...(0,a.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"markdown-page-example",children:"Markdown page example"})}),"\n",(0,o.jsx)(n.p,{children:"You don't need React to write simple standalone pages."})]})}function l(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(i,{...e})}):i(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>c});var o=t(6540);const a={},r=o.createContext(a);function s(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/4c678320.9f702fca.js b/assets/js/4c678320.9f702fca.js new file mode 100644 index 000000000..7754b1f2e --- /dev/null +++ b/assets/js/4c678320.9f702fca.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9664],{4506:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>c,default:()=>l,frontMatter:()=>s,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"type":"mdx","permalink":"/markdown-page","source":"@site/src/pages/markdown-page.mdx","title":"Markdown page example","description":"You don\'t need React to write simple standalone pages.","frontMatter":{"title":"Markdown page example"},"unlisted":false}');var a=t(4848),r=t(8453);const s={title:"Markdown page example"},c="Markdown page example",p={},d=[];function i(e){const n={h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.header,{children:(0,a.jsx)(n.h1,{id:"markdown-page-example",children:"Markdown page example"})}),"\n",(0,a.jsx)(n.p,{children:"You don't need React to write simple standalone pages."})]})}function l(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(i,{...e})}):i(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>c});var o=t(6540);const a={},r=o.createContext(a);function s(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/4d877b09.678d5b0a.js b/assets/js/4d877b09.678d5b0a.js deleted file mode 100644 index 6bce6a80c..000000000 --- a/assets/js/4d877b09.678d5b0a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2150],{8493:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>s,metadata:()=>a,toc:()=>d});var t=n(4848),o=n(8453);const s={title:"QSV",sidebar_position:2},r="QSV",a={id:"encoders_hw/qsv",title:"QSV",description:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information.",source:"@site/docs/encoders_hw/qsv.mdx",sourceDirName:"encoders_hw",slug:"/encoders_hw/qsv",permalink:"/docs/encoders_hw/qsv",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders_hw/qsv.mdx",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"QSV",sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"NVENC",permalink:"/docs/encoders_hw/nvenc"},next:{title:"AMF",permalink:"/docs/encoders_hw/amf"}},c={},d=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"qsv",children:"QSV"})}),"\n",(0,t.jsx)(i.admonition,{title:"Pending Review",type:"caution",children:(0,t.jsx)(i.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,t.jsxs)(i.p,{children:["QSV (QuickSync Video) is Intel's hardware video encoding/decoding platform integrated into many of their modern CPUs with integrated graphics processors (iGPUs) & their Arc graphics cards. It allows applications to offload video encoding, decoding, and processing tasks to the dedicated media engines on Intel's dedicated multimedia hardware, often providing significant performance gains compared to CPU-based software encoding. QSV competes with similar frameworks like Nvidia's ",(0,t.jsx)(i.a,{href:"/docs/encoders_hw/nvenc",children:"NVENC"})," & AMD's ",(0,t.jsx)(i.a,{href:"/docs/encoders_hw/amf",children:"AMF"})," (Since the transition to Apple Silicon, QSV on Intel Macs competes with Apple's ",(0,t.jsx)(i.a,{href:"/docs/encoders_hw/videotoolbox",children:"VideoToolBox"})," on macOS devices)."]}),"\n",(0,t.jsx)(i.p,{children:"The key purpose of QSV is to accelerate video encoding, decoding, and processing workloads by leveraging specialized fixed-function hardware present in Intel's graphics processors. This dedicated hardware is distinct from the general-purpose compute units, and is designed specifically for multimedia tasks. QSV aims to deliver high encoding/decoding performance while operating efficiently."}),"\n",(0,t.jsxs)(i.p,{children:["QSV supports a wide range of video codecs including ",(0,t.jsx)(i.a,{href:"/docs/video/AVC",children:"H.264"})," , ",(0,t.jsx)(i.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,t.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"}),", and more recently ",(0,t.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," on their latest discrete & integrated GPUs. A major advantage of QSV is that it is ubiquitous on most modern Intel CPUs with integrated graphics, making hardware-accelerated video encoding accessible across a wide range of systems. Applications can easily leverage QSV acceleration through APIs like Intel Media SDK, VA-API, or via integration with popular multimedia frameworks like ",(0,t.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),", GStreamer, & others."]}),"\n",(0,t.jsx)(i.p,{children:"Hardware-accelerated video encoding with QSV usually significantly improves encoding performance at low compression efficiency compared to software-based encoding solutions. It usually allows for higher-quality output at lower bitrates when encoding much faster than real time, such as at 60-200 fps. This is particularly beneficial for applications that require real-time encoding, such as live streaming, video conferencing, and game recording."}),"\n",(0,t.jsx)(i.p,{children:"While QSV is not designed for highly efficient offline file encoding, where quality is prioritized over speed. It is worth noting that QSV is almost always better than AMF from AMD & competitive with NVENC from Nvidia in terms of compression efficiency."})]})}function h(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>r,x:()=>a});var t=n(6540);const o={},s=t.createContext(o);function r(e){const i=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/4d877b09.a91cf442.js b/assets/js/4d877b09.a91cf442.js new file mode 100644 index 000000000..8f76e02b8 --- /dev/null +++ b/assets/js/4d877b09.a91cf442.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2150],{7905:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>r,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"encoders_hw/qsv","title":"QSV","description":"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information.","source":"@site/docs/encoders_hw/qsv.mdx","sourceDirName":"encoders_hw","slug":"/encoders_hw/qsv","permalink":"/docs/encoders_hw/qsv","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders_hw/qsv.mdx","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"QSV","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"NVENC","permalink":"/docs/encoders_hw/nvenc"},"next":{"title":"AMF","permalink":"/docs/encoders_hw/amf"}}');var o=n(4848),s=n(8453);const r={title:"QSV",sidebar_position:2},a="QSV",c={},d=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.header,{children:(0,o.jsx)(i.h1,{id:"qsv",children:"QSV"})}),"\n",(0,o.jsx)(i.admonition,{title:"Pending Review",type:"caution",children:(0,o.jsx)(i.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,o.jsxs)(i.p,{children:["QSV (QuickSync Video) is Intel's hardware video encoding/decoding platform integrated into many of their modern CPUs with integrated graphics processors (iGPUs) & their Arc graphics cards. It allows applications to offload video encoding, decoding, and processing tasks to the dedicated media engines on Intel's dedicated multimedia hardware, often providing significant performance gains compared to CPU-based software encoding. QSV competes with similar frameworks like Nvidia's ",(0,o.jsx)(i.a,{href:"/docs/encoders_hw/nvenc",children:"NVENC"})," & AMD's ",(0,o.jsx)(i.a,{href:"/docs/encoders_hw/amf",children:"AMF"})," (Since the transition to Apple Silicon, QSV on Intel Macs competes with Apple's ",(0,o.jsx)(i.a,{href:"/docs/encoders_hw/videotoolbox",children:"VideoToolBox"})," on macOS devices)."]}),"\n",(0,o.jsx)(i.p,{children:"The key purpose of QSV is to accelerate video encoding, decoding, and processing workloads by leveraging specialized fixed-function hardware present in Intel's graphics processors. This dedicated hardware is distinct from the general-purpose compute units, and is designed specifically for multimedia tasks. QSV aims to deliver high encoding/decoding performance while operating efficiently."}),"\n",(0,o.jsxs)(i.p,{children:["QSV supports a wide range of video codecs including ",(0,o.jsx)(i.a,{href:"/docs/video/AVC",children:"H.264"})," , ",(0,o.jsx)(i.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,o.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"}),", and more recently ",(0,o.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," on their latest discrete & integrated GPUs. A major advantage of QSV is that it is ubiquitous on most modern Intel CPUs with integrated graphics, making hardware-accelerated video encoding accessible across a wide range of systems. Applications can easily leverage QSV acceleration through APIs like Intel Media SDK, VA-API, or via integration with popular multimedia frameworks like ",(0,o.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),", GStreamer, & others."]}),"\n",(0,o.jsx)(i.p,{children:"Hardware-accelerated video encoding with QSV usually significantly improves encoding performance at low compression efficiency compared to software-based encoding solutions. It usually allows for higher-quality output at lower bitrates when encoding much faster than real time, such as at 60-200 fps. This is particularly beneficial for applications that require real-time encoding, such as live streaming, video conferencing, and game recording."}),"\n",(0,o.jsx)(i.p,{children:"While QSV is not designed for highly efficient offline file encoding, where quality is prioritized over speed. It is worth noting that QSV is almost always better than AMF from AMD & competitive with NVENC from Nvidia in terms of compression efficiency."})]})}function h(e={}){const{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>r,x:()=>a});var t=n(6540);const o={},s=t.createContext(o);function r(e){const i=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/522a92e3.e4040f88.js b/assets/js/522a92e3.e4040f88.js new file mode 100644 index 000000000..b6389768f --- /dev/null +++ b/assets/js/522a92e3.e4040f88.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5220],{3317:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>s,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"encoders_hw/nvenc","title":"NVENC","description":"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information.","source":"@site/docs/encoders_hw/nvenc.mdx","sourceDirName":"encoders_hw","slug":"/encoders_hw/nvenc","permalink":"/docs/encoders_hw/nvenc","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders_hw/nvenc.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"NVENC","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"uavs3e","permalink":"/docs/encoders/uavs3e"},"next":{"title":"QSV","permalink":"/docs/encoders_hw/qsv"}}');var t=i(4848),r=i(8453);const s={title:"NVENC",sidebar_position:1},a="NVENC",c={},d=[];function l(e){const n={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"nvenc",children:"NVENC"})}),"\n",(0,t.jsx)(n.admonition,{title:"Pending Review",type:"caution",children:(0,t.jsx)(n.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,t.jsxs)(n.p,{children:["NVENC for NVIDIA GPUs is a dedicated hardware video encoding engine integrated into NVIDIA's graphics processors. It allows applications to leverage dedicated multimedia encoding hardware to accelerate video encoding tasks, significantly improving performance when compared to CPU-based software encoding. It competes with similar frameworks like Intel's ",(0,t.jsx)(n.a,{href:"/docs/encoders_hw/qsv",children:"QSV"})," & AMD's ",(0,t.jsx)(n.a,{href:"/docs/encoders_hw/amf",children:"AMF"}),"."]}),"\n",(0,t.jsx)(n.p,{children:"The primary purpose of NVENC is to offload the computationally intensive video encoding workloads from the CPU to the dedicated multimedia hardware on the GPU, thereby freeing up CPU resources for other tasks. This is particularly beneficial in scenarios where fast video encoding is required, such as screen recording, streaming, & video conferencing."}),"\n",(0,t.jsxs)(n.p,{children:["NVENC supports a range of popular video codecs, including ",(0,t.jsx)(n.a,{href:"/docs/video/AVC",children:"H.264"})," , ",(0,t.jsx)(n.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,t.jsx)(n.a,{href:"/docs/video/VP9",children:"VP9"}),", and more recently ",(0,t.jsx)(n.a,{href:"/docs/video/AV1",children:"AV1"})," on their latest GPUs. It provides hardware-accelerated encoding capabilities for these codecs, typically achieving real-time or faster than real-time encoding performance, depending on resolution, bitrate, and hardware capability."]}),"\n",(0,t.jsx)(n.p,{children:"While NVENC excels in encoding speed, it generally sacrifices some compression efficiency compared to modern high-quality CPU-based software encoders at slower presets."}),"\n",(0,t.jsxs)(n.p,{children:["NVENC is designed to be easily integrated into various multimedia frameworks and applications. It is supported by popular tools like ",(0,t.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),", OBS Studio, and others, allowing developers to seamlessly leverage GPU-accelerated encoding without the need for low-level programming."]}),"\n",(0,t.jsx)(n.p,{children:"When compared to AMD's AMF and Intel's QSV, NVENC is known for its high encoding performance, low latency, and broad compatibility with NVIDIA GPUs across different platforms. It is particularly popular among game streamers, content creators, and video professionals who require fast encoding speeds for their workflows. In terms of video compression efficiency, NVENC & QSV trade blows while AMF is generally left behind."})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>a});var o=i(6540);const t={},r=o.createContext(t);function s(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:s(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/522a92e3.f4ebdf35.js b/assets/js/522a92e3.f4ebdf35.js deleted file mode 100644 index 92178ae01..000000000 --- a/assets/js/522a92e3.f4ebdf35.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5220],{2191:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>s,default:()=>h,frontMatter:()=>r,metadata:()=>a,toc:()=>d});var o=i(4848),t=i(8453);const r={title:"NVENC",sidebar_position:1},s="NVENC",a={id:"encoders_hw/nvenc",title:"NVENC",description:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information.",source:"@site/docs/encoders_hw/nvenc.mdx",sourceDirName:"encoders_hw",slug:"/encoders_hw/nvenc",permalink:"/docs/encoders_hw/nvenc",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders_hw/nvenc.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"NVENC",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"uavs3e",permalink:"/docs/encoders/uavs3e"},next:{title:"QSV",permalink:"/docs/encoders_hw/qsv"}},c={},d=[];function l(e){const n={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"nvenc",children:"NVENC"})}),"\n",(0,o.jsx)(n.admonition,{title:"Pending Review",type:"caution",children:(0,o.jsx)(n.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,o.jsxs)(n.p,{children:["NVENC for NVIDIA GPUs is a dedicated hardware video encoding engine integrated into NVIDIA's graphics processors. It allows applications to leverage dedicated multimedia encoding hardware to accelerate video encoding tasks, significantly improving performance when compared to CPU-based software encoding. It competes with similar frameworks like Intel's ",(0,o.jsx)(n.a,{href:"/docs/encoders_hw/qsv",children:"QSV"})," & AMD's ",(0,o.jsx)(n.a,{href:"/docs/encoders_hw/amf",children:"AMF"}),"."]}),"\n",(0,o.jsx)(n.p,{children:"The primary purpose of NVENC is to offload the computationally intensive video encoding workloads from the CPU to the dedicated multimedia hardware on the GPU, thereby freeing up CPU resources for other tasks. This is particularly beneficial in scenarios where fast video encoding is required, such as screen recording, streaming, & video conferencing."}),"\n",(0,o.jsxs)(n.p,{children:["NVENC supports a range of popular video codecs, including ",(0,o.jsx)(n.a,{href:"/docs/video/AVC",children:"H.264"})," , ",(0,o.jsx)(n.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,o.jsx)(n.a,{href:"/docs/video/VP9",children:"VP9"}),", and more recently ",(0,o.jsx)(n.a,{href:"/docs/video/AV1",children:"AV1"})," on their latest GPUs. It provides hardware-accelerated encoding capabilities for these codecs, typically achieving real-time or faster than real-time encoding performance, depending on resolution, bitrate, and hardware capability."]}),"\n",(0,o.jsx)(n.p,{children:"While NVENC excels in encoding speed, it generally sacrifices some compression efficiency compared to modern high-quality CPU-based software encoders at slower presets."}),"\n",(0,o.jsxs)(n.p,{children:["NVENC is designed to be easily integrated into various multimedia frameworks and applications. It is supported by popular tools like ",(0,o.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),", OBS Studio, and others, allowing developers to seamlessly leverage GPU-accelerated encoding without the need for low-level programming."]}),"\n",(0,o.jsx)(n.p,{children:"When compared to AMD's AMF and Intel's QSV, NVENC is known for its high encoding performance, low latency, and broad compatibility with NVIDIA GPUs across different platforms. It is particularly popular among game streamers, content creators, and video professionals who require fast encoding speeds for their workflows. In terms of video compression efficiency, NVENC & QSV trade blows while AMF is generally left behind."})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>a});var o=i(6540);const t={},r=o.createContext(t);function s(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:s(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/54a9c2bb.b8726434.js b/assets/js/54a9c2bb.b8726434.js deleted file mode 100644 index d0e71ab4a..000000000 --- a/assets/js/54a9c2bb.b8726434.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[561],{3633:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>l,contentTitle:()=>o,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>c});var n=t(4848),s=t(8453);const r={title:"YUView",sidebar_position:13},o="YUView",a={id:"utilities/YUView",title:"YUView",description:"YUView is a free and open source, cross-platform software developed by IENT (Institut f\xfcr Nachrichtentechnik) for working, playing, and analyzing YUV files.",source:"@site/docs/utilities/YUView.mdx",sourceDirName:"utilities",slug:"/utilities/YUView",permalink:"/docs/utilities/YUView",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/YUView.mdx",tags:[],version:"current",sidebarPosition:13,frontMatter:{title:"YUView",sidebar_position:13},sidebar:"tutorialSidebar",previous:{title:"MP4Box",permalink:"/docs/utilities/mp4box"},next:{title:"Discord",permalink:"/docs/utilities/Discord"}},l={},c=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2}];function h(e){const i={a:"a",h1:"h1",h2:"h2",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"yuview",children:"YUView"})}),"\n",(0,n.jsxs)("picture",{children:[(0,n.jsx)("source",{srcset:"/img/yuview.avif",type:"image/avif"}),(0,n.jsx)("img",{src:"/img/yuview.webp",alt:"YUView Window"})]}),"\n",(0,n.jsx)("br",{}),"\n",(0,n.jsx)("br",{}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.a,{href:"https://github.com/IENT/YUView",children:"YUView"})," is a free and open source, cross-platform software developed by ",(0,n.jsx)(i.a,{href:"https://github.com/IENT/",children:"IENT"})," (Institut f\xfcr Nachrichtentechnik) for working, playing, and analyzing YUV files.\nThough it supports more than YUV thanks to FFmpeg and other third party decoders while providing a lot of options for ",(0,n.jsx)(i.a,{href:"/docs/video/HEVC",children:"HEVC"})," internal visualizations such as slice index and transform depth."]}),"\n",(0,n.jsx)(i.p,{children:"The software is built with QT and written in C++."}),"\n",(0,n.jsx)(i.h2,{id:"installation",children:"Installation"}),"\n",(0,n.jsxs)(i.p,{children:["IENT provides the complete set of binaries for all major desktop operating systems on their GitHub ",(0,n.jsx)(i.a,{href:"https://github.com/IENT/YUView/releases/",children:"releases"}),". So pick and choose your OS there."]}),"\n",(0,n.jsxs)(i.p,{children:["For Linux, YUView is in the official repo on Ubuntu and the AUR (Arch User Repository) for Arch Linux. But they do provide an AppImage in their releases and a ",(0,n.jsx)(i.a,{href:"https://flathub.org/apps/de.rwth_aachen.ient.YUView",children:"Flatpak"}),"."]}),"\n",(0,n.jsxs)(i.p,{children:["For those who want to compile from source instead, they provided a tutorial ",(0,n.jsx)(i.a,{href:"https://github.com/IENT/YUView/wiki/Compile-YUView",children:"here"}),"."]}),"\n",(0,n.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsx)(i.p,{children:'Open a file via the "File" > "Open File" tab on the top left or by pressing Ctrl + O, you may import multiple files. After that, you can start analyzing the file such as viewing motion vectors, isolating chroma to Cb for YCbCr, etc.'})]})}function d(e={}){const{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>o,x:()=>a});var n=t(6540);const s={},r=n.createContext(s);function o(e){const i=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/54a9c2bb.c7a9d911.js b/assets/js/54a9c2bb.c7a9d911.js new file mode 100644 index 000000000..7a820d957 --- /dev/null +++ b/assets/js/54a9c2bb.c7a9d911.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[561],{6280:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>l,contentTitle:()=>a,default:()=>d,frontMatter:()=>o,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"utilities/YUView","title":"YUView","description":"YUView is a free and open source, cross-platform software developed by IENT (Institut f\xfcr Nachrichtentechnik) for working, playing, and analyzing YUV files.","source":"@site/docs/utilities/YUView.mdx","sourceDirName":"utilities","slug":"/utilities/YUView","permalink":"/docs/utilities/YUView","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/YUView.mdx","tags":[],"version":"current","sidebarPosition":13,"frontMatter":{"title":"YUView","sidebar_position":13},"sidebar":"tutorialSidebar","previous":{"title":"MP4Box","permalink":"/docs/utilities/mp4box"},"next":{"title":"Discord","permalink":"/docs/utilities/Discord"}}');var s=t(4848),r=t(8453);const o={title:"YUView",sidebar_position:13},a="YUView",l={},c=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2}];function h(e){const i={a:"a",h1:"h1",h2:"h2",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"yuview",children:"YUView"})}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"/img/yuview.avif",type:"image/avif"}),(0,s.jsx)("img",{src:"/img/yuview.webp",alt:"YUView Window"})]}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.a,{href:"https://github.com/IENT/YUView",children:"YUView"})," is a free and open source, cross-platform software developed by ",(0,s.jsx)(i.a,{href:"https://github.com/IENT/",children:"IENT"})," (Institut f\xfcr Nachrichtentechnik) for working, playing, and analyzing YUV files.\nThough it supports more than YUV thanks to FFmpeg and other third party decoders while providing a lot of options for ",(0,s.jsx)(i.a,{href:"/docs/video/HEVC",children:"HEVC"})," internal visualizations such as slice index and transform depth."]}),"\n",(0,s.jsx)(i.p,{children:"The software is built with QT and written in C++."}),"\n",(0,s.jsx)(i.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsxs)(i.p,{children:["IENT provides the complete set of binaries for all major desktop operating systems on their GitHub ",(0,s.jsx)(i.a,{href:"https://github.com/IENT/YUView/releases/",children:"releases"}),". So pick and choose your OS there."]}),"\n",(0,s.jsxs)(i.p,{children:["For Linux, YUView is in the official repo on Ubuntu and the AUR (Arch User Repository) for Arch Linux. But they do provide an AppImage in their releases and a ",(0,s.jsx)(i.a,{href:"https://flathub.org/apps/de.rwth_aachen.ient.YUView",children:"Flatpak"}),"."]}),"\n",(0,s.jsxs)(i.p,{children:["For those who want to compile from source instead, they provided a tutorial ",(0,s.jsx)(i.a,{href:"https://github.com/IENT/YUView/wiki/Compile-YUView",children:"here"}),"."]}),"\n",(0,s.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(i.p,{children:'Open a file via the "File" > "Open File" tab on the top left or by pressing Ctrl + O, you may import multiple files. After that, you can start analyzing the file such as viewing motion vectors, isolating chroma to Cb for YCbCr, etc.'})]})}function d(e={}){const{wrapper:i}={...(0,r.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>o,x:()=>a});var n=t(6540);const s={},r=n.createContext(s);function o(e){const i=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/56786013.cc044280.js b/assets/js/56786013.cc044280.js new file mode 100644 index 000000000..286c3fa9f --- /dev/null +++ b/assets/js/56786013.cc044280.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8741],{1014:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>r,metadata:()=>s,toc:()=>l});const s=JSON.parse('{"id":"images/JPEG","title":"JPEG","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/images/JPEG.mdx","sourceDirName":"images","slug":"/images/JPEG","permalink":"/docs/images/JPEG","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/JPEG.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"JPEG","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"tar","permalink":"/docs/data/tar"},"next":{"title":"PNG","permalink":"/docs/images/PNG"}}');var t=n(4848),o=n(8453);const r={title:"JPEG",sidebar_position:1},a="JPEG",c={},l=[{value:"Performance Checklist",id:"performance-checklist",level:2},{value:"Compression",id:"compression",level:2},{value:"Color Space Conversion",id:"color-space-conversion",level:4},{value:"Image Tiling",id:"image-tiling",level:4},{value:"Discrete Cosine Transform (DCT)",id:"discrete-cosine-transform-dct",level:4},{value:"Quantization",id:"quantization",level:4},{value:"Zigzag Scanning",id:"zigzag-scanning",level:4},{value:"Run-Length Encoding",id:"run-length-encoding",level:4},{value:"Entropy Encoding",id:"entropy-encoding",level:4},{value:"Saving the File",id:"saving-the-file",level:4},{value:"Decoding",id:"decoding",level:4}];function d(e){const i={a:"a",admonition:"admonition",em:"em",h1:"h1",h2:"h2",h4:"h4",header:"header",p:"p",strong:"strong",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"jpeg",children:"JPEG"})}),"\n",(0,t.jsx)(i.admonition,{title:"Under Maintenance",type:"info",children:(0,t.jsx)(i.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,t.jsx)(i.admonition,{title:"Pending Review",type:"caution",children:(0,t.jsx)(i.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,t.jsx)(i.p,{children:"JPEG (Joint Photographic Experts Group) compression is a widely used method for reducing the size of digital images while preserving visual quality. It's based on the principles of lossy compression, which means that some image data is discarded to achieve a smaller filesize."}),"\n",(0,t.jsx)(i.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,t.jsxs)(i.p,{children:["Lossless? ",(0,t.jsx)(i.em,{children:"No"})]}),"\n",(0,t.jsxs)(i.p,{children:["Lossy? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Supported Bit Depth:\n",(0,t.jsx)(i.em,{children:"8 BPC"})]}),"\n",(0,t.jsxs)(i.p,{children:["HDR/Wide Gamut? ",(0,t.jsx)(i.em,{children:"Kinda"})]}),"\n",(0,t.jsxs)(i.p,{children:["Animation? ",(0,t.jsx)(i.em,{children:"No"})]}),"\n",(0,t.jsxs)(i.p,{children:["Transparency? ",(0,t.jsx)(i.em,{children:"No"})]}),"\n",(0,t.jsxs)(i.p,{children:["Progressive Decode? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Royalty Free? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsx)(i.h2,{id:"compression",children:"Compression"}),"\n",(0,t.jsx)(i.p,{children:"Learning how JPEG compresses images is immensely helpful for understanding how other compression methods work in other codecs. It is definitely worth reading to get a useful background in understanding concepts like entropy coding, the DCT, and color spaces other than RGB. Here's a step-by-step explanation of how JPEG compression works:"}),"\n",(0,t.jsx)(i.h4,{id:"color-space-conversion",children:"Color Space Conversion"}),"\n",(0,t.jsxs)(i.p,{children:["Most digital images are originally in the RGB (Red, Green, Blue) color space. The first step in JPEG compression is to convert the image to the YCbCr color space. Y represents the luminance (brightness), while Cb and Cr represent the chrominance (color information). The Cb & Cr components are subsampled to a quarter of the resolution of the original image, meaning the resulting color space is chroma subsampled with ",(0,t.jsx)(i.em,{children:"4:2:0"})," subsampling."]}),"\n",(0,t.jsx)(i.h4,{id:"image-tiling",children:"Image Tiling"}),"\n",(0,t.jsx)(i.p,{children:"The image is divided into smaller blocks or tiles, typically 8x8 pixels each. Each of these blocks will be processed separately."}),"\n",(0,t.jsx)(i.h4,{id:"discrete-cosine-transform-dct",children:"Discrete Cosine Transform (DCT)"}),"\n",(0,t.jsx)(i.p,{children:"For each 8x8 block, a mathematical transformation called the Discrete Cosine Transform is applied. This transformation converts the pixel values into a set of frequency components, taking spatial data and transforming it to the frequency domain. The DCT is applied to each color channel in the YCbCr color space. This algorithm is a particularly good choice for image (and music/speech) compression because it has high energy compaction relative to our understanding of images & their perceptual quality. High energy compaction means the DCT is able to represent a signal with a small number of significant coefficients, in this case mainly in the lower frequencies."}),"\n",(0,t.jsx)(i.h4,{id:"quantization",children:"Quantization"}),"\n",(0,t.jsx)(i.p,{children:'After the DCT, the frequencies are quantized in a table representing frequency coefficients & their corresponding frequencies. Less perceptually important details can be omitted to reduce filesize by discarding coefficients in the table that correspond to less visually salient frequencies. This is "lossy" compression, and is the key step in achieving a high compression ratio while still maintaining an image that looks reasonable. The quantization table used in this step can vary in the number of frequencies it attempts to retain, affecting the trade-off between compression & image quality.'}),"\n",(0,t.jsx)(i.h4,{id:"zigzag-scanning",children:"Zigzag Scanning"}),"\n",(0,t.jsx)(i.p,{children:"The quantized coefficients are then reordered using a zigzag pattern. This is done to prepare the data for the next step."}),"\n",(0,t.jsx)(i.h4,{id:"run-length-encoding",children:"Run-Length Encoding"}),"\n",(0,t.jsx)(i.p,{children:"The zigzag-ordered coefficients are run-length encoded. This means that sequences of zeroes are compressed into a shorter representation. For example, if there are many consecutive zeroes in the data, they can be represented as (0, 10) instead of listing ten individual zeroes."}),"\n",(0,t.jsx)(i.h4,{id:"entropy-encoding",children:"Entropy Encoding"}),"\n",(0,t.jsx)(i.p,{children:"The run-length encoded data is further compressed using entropy encoding. JPEG uses Huffman coding, which assigns shorter codes to more frequently occurring values in the table of DCT coefficients, reducing the overall file size."}),"\n",(0,t.jsx)(i.h4,{id:"saving-the-file",children:"Saving the File"}),"\n",(0,t.jsx)(i.p,{children:"The compressed luminance and chrominance data, along with information about color space conversion, quantization tables, and EXIF data, are saved in the JPEG file format."}),"\n",(0,t.jsx)(i.h4,{id:"decoding",children:"Decoding"}),"\n",(0,t.jsx)(i.p,{children:"When you open a JPEG image, the reverse process occurs. The file is decoded, and the DCT coefficients are dequantized, the inverse DCT is applied, and the image is converted back to the RGB color space to be displayed on a screen."}),"\n",(0,t.jsxs)(i.p,{children:["It's important to note that JPEG compression is ",(0,t.jsx)(i.em,{children:(0,t.jsx)(i.strong,{children:"lossy"})}),", meaning that some image quality is discarded in the pursuit of smaller file sizes. This makes it different than codecs designed for lossless compression like ",(0,t.jsx)(i.a,{href:"/docs/images/PNG",children:"PNG"}),", ",(0,t.jsx)(i.a,{href:"/docs/images/WebP",children:"WebP"}),"'s lossless mode, and ",(0,t.jsx)(i.a,{href:"/docs/images/JXL",children:"JPEG-XL"}),"'s lossless mode. The degree of compression and the quality of the compressed image can be adjusted through settings when saving a JPEG, allowing for a trade-off between file size & image fidelity."]}),"\n",(0,t.jsxs)(i.p,{children:["While JPEG is certainly not the most state of the art lossy image codec compared to its newer and (usually) better successors like ",(0,t.jsx)(i.a,{href:"/docs/images/JXL",children:"JPEG-XL"})," (an actual direct successor) & ",(0,t.jsx)(i.a,{href:"/docs/images/AVIF",children:"AVIF"}),", it enjoys near universal compatibility with (likely) most utilities you would work with in your everyday life that have anything to do with images."]})]})}function h(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>r,x:()=>a});var s=n(6540);const t={},o=s.createContext(t);function r(e){const i=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),s.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/56786013.f7d5bf56.js b/assets/js/56786013.f7d5bf56.js deleted file mode 100644 index 53facc3e7..000000000 --- a/assets/js/56786013.f7d5bf56.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8741],{3588:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>o,metadata:()=>a,toc:()=>l});var s=n(4848),t=n(8453);const o={title:"JPEG",sidebar_position:1},r="JPEG",a={id:"images/JPEG",title:"JPEG",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/images/JPEG.mdx",sourceDirName:"images",slug:"/images/JPEG",permalink:"/docs/images/JPEG",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/JPEG.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"JPEG",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"tar",permalink:"/docs/data/tar"},next:{title:"PNG",permalink:"/docs/images/PNG"}},c={},l=[{value:"Performance Checklist",id:"performance-checklist",level:2},{value:"Compression",id:"compression",level:2},{value:"Color Space Conversion",id:"color-space-conversion",level:4},{value:"Image Tiling",id:"image-tiling",level:4},{value:"Discrete Cosine Transform (DCT)",id:"discrete-cosine-transform-dct",level:4},{value:"Quantization",id:"quantization",level:4},{value:"Zigzag Scanning",id:"zigzag-scanning",level:4},{value:"Run-Length Encoding",id:"run-length-encoding",level:4},{value:"Entropy Encoding",id:"entropy-encoding",level:4},{value:"Saving the File",id:"saving-the-file",level:4},{value:"Decoding",id:"decoding",level:4}];function d(e){const i={a:"a",admonition:"admonition",em:"em",h1:"h1",h2:"h2",h4:"h4",header:"header",p:"p",strong:"strong",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"jpeg",children:"JPEG"})}),"\n",(0,s.jsx)(i.admonition,{title:"Under Maintenance",type:"info",children:(0,s.jsx)(i.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,s.jsx)(i.admonition,{title:"Pending Review",type:"caution",children:(0,s.jsx)(i.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,s.jsx)(i.p,{children:"JPEG (Joint Photographic Experts Group) compression is a widely used method for reducing the size of digital images while preserving visual quality. It's based on the principles of lossy compression, which means that some image data is discarded to achieve a smaller filesize."}),"\n",(0,s.jsx)(i.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,s.jsxs)(i.p,{children:["Lossless? ",(0,s.jsx)(i.em,{children:"No"})]}),"\n",(0,s.jsxs)(i.p,{children:["Lossy? ",(0,s.jsx)(i.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(i.p,{children:["Supported Bit Depth:\n",(0,s.jsx)(i.em,{children:"8 BPC"})]}),"\n",(0,s.jsxs)(i.p,{children:["HDR/Wide Gamut? ",(0,s.jsx)(i.em,{children:"Kinda"})]}),"\n",(0,s.jsxs)(i.p,{children:["Animation? ",(0,s.jsx)(i.em,{children:"No"})]}),"\n",(0,s.jsxs)(i.p,{children:["Transparency? ",(0,s.jsx)(i.em,{children:"No"})]}),"\n",(0,s.jsxs)(i.p,{children:["Progressive Decode? ",(0,s.jsx)(i.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(i.p,{children:["Royalty Free? ",(0,s.jsx)(i.em,{children:"Yes"})]}),"\n",(0,s.jsx)(i.h2,{id:"compression",children:"Compression"}),"\n",(0,s.jsx)(i.p,{children:"Learning how JPEG compresses images is immensely helpful for understanding how other compression methods work in other codecs. It is definitely worth reading to get a useful background in understanding concepts like entropy coding, the DCT, and color spaces other than RGB. Here's a step-by-step explanation of how JPEG compression works:"}),"\n",(0,s.jsx)(i.h4,{id:"color-space-conversion",children:"Color Space Conversion"}),"\n",(0,s.jsxs)(i.p,{children:["Most digital images are originally in the RGB (Red, Green, Blue) color space. The first step in JPEG compression is to convert the image to the YCbCr color space. Y represents the luminance (brightness), while Cb and Cr represent the chrominance (color information). The Cb & Cr components are subsampled to a quarter of the resolution of the original image, meaning the resulting color space is chroma subsampled with ",(0,s.jsx)(i.em,{children:"4:2:0"})," subsampling."]}),"\n",(0,s.jsx)(i.h4,{id:"image-tiling",children:"Image Tiling"}),"\n",(0,s.jsx)(i.p,{children:"The image is divided into smaller blocks or tiles, typically 8x8 pixels each. Each of these blocks will be processed separately."}),"\n",(0,s.jsx)(i.h4,{id:"discrete-cosine-transform-dct",children:"Discrete Cosine Transform (DCT)"}),"\n",(0,s.jsx)(i.p,{children:"For each 8x8 block, a mathematical transformation called the Discrete Cosine Transform is applied. This transformation converts the pixel values into a set of frequency components, taking spatial data and transforming it to the frequency domain. The DCT is applied to each color channel in the YCbCr color space. This algorithm is a particularly good choice for image (and music/speech) compression because it has high energy compaction relative to our understanding of images & their perceptual quality. High energy compaction means the DCT is able to represent a signal with a small number of significant coefficients, in this case mainly in the lower frequencies."}),"\n",(0,s.jsx)(i.h4,{id:"quantization",children:"Quantization"}),"\n",(0,s.jsx)(i.p,{children:'After the DCT, the frequencies are quantized in a table representing frequency coefficients & their corresponding frequencies. Less perceptually important details can be omitted to reduce filesize by discarding coefficients in the table that correspond to less visually salient frequencies. This is "lossy" compression, and is the key step in achieving a high compression ratio while still maintaining an image that looks reasonable. The quantization table used in this step can vary in the number of frequencies it attempts to retain, affecting the trade-off between compression & image quality.'}),"\n",(0,s.jsx)(i.h4,{id:"zigzag-scanning",children:"Zigzag Scanning"}),"\n",(0,s.jsx)(i.p,{children:"The quantized coefficients are then reordered using a zigzag pattern. This is done to prepare the data for the next step."}),"\n",(0,s.jsx)(i.h4,{id:"run-length-encoding",children:"Run-Length Encoding"}),"\n",(0,s.jsx)(i.p,{children:"The zigzag-ordered coefficients are run-length encoded. This means that sequences of zeroes are compressed into a shorter representation. For example, if there are many consecutive zeroes in the data, they can be represented as (0, 10) instead of listing ten individual zeroes."}),"\n",(0,s.jsx)(i.h4,{id:"entropy-encoding",children:"Entropy Encoding"}),"\n",(0,s.jsx)(i.p,{children:"The run-length encoded data is further compressed using entropy encoding. JPEG uses Huffman coding, which assigns shorter codes to more frequently occurring values in the table of DCT coefficients, reducing the overall file size."}),"\n",(0,s.jsx)(i.h4,{id:"saving-the-file",children:"Saving the File"}),"\n",(0,s.jsx)(i.p,{children:"The compressed luminance and chrominance data, along with information about color space conversion, quantization tables, and EXIF data, are saved in the JPEG file format."}),"\n",(0,s.jsx)(i.h4,{id:"decoding",children:"Decoding"}),"\n",(0,s.jsx)(i.p,{children:"When you open a JPEG image, the reverse process occurs. The file is decoded, and the DCT coefficients are dequantized, the inverse DCT is applied, and the image is converted back to the RGB color space to be displayed on a screen."}),"\n",(0,s.jsxs)(i.p,{children:["It's important to note that JPEG compression is ",(0,s.jsx)(i.em,{children:(0,s.jsx)(i.strong,{children:"lossy"})}),", meaning that some image quality is discarded in the pursuit of smaller file sizes. This makes it different than codecs designed for lossless compression like ",(0,s.jsx)(i.a,{href:"/docs/images/PNG",children:"PNG"}),", ",(0,s.jsx)(i.a,{href:"/docs/images/WebP",children:"WebP"}),"'s lossless mode, and ",(0,s.jsx)(i.a,{href:"/docs/images/JXL",children:"JPEG-XL"}),"'s lossless mode. The degree of compression and the quality of the compressed image can be adjusted through settings when saving a JPEG, allowing for a trade-off between file size & image fidelity."]}),"\n",(0,s.jsxs)(i.p,{children:["While JPEG is certainly not the most state of the art lossy image codec compared to its newer and (usually) better successors like ",(0,s.jsx)(i.a,{href:"/docs/images/JXL",children:"JPEG-XL"})," (an actual direct successor) & ",(0,s.jsx)(i.a,{href:"/docs/images/AVIF",children:"AVIF"}),", it enjoys near universal compatibility with (likely) most utilities you would work with in your everyday life that have anything to do with images."]})]})}function h(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>r,x:()=>a});var s=n(6540);const t={},o=s.createContext(t);function r(e){const i=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),s.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/59e6fde5.7808e7d7.js b/assets/js/59e6fde5.7808e7d7.js deleted file mode 100644 index 011d1b14e..000000000 --- a/assets/js/59e6fde5.7808e7d7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9724],{357:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>u,contentTitle:()=>a,default:()=>c,frontMatter:()=>r,metadata:()=>s,toc:()=>m});var o=i(4848),n=i(8453);const r={title:"AV1 for Dummies",description:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.",slug:"av1-for-dummies",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4"},{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","compression"],image:"/img/av1_for_dummies_guide.jpg",hide_table_of_contents:!1},a=void 0,s={permalink:"/blog/av1-for-dummies",source:"@site/blog/2024-06-24-av1-for-dummies-2.mdx",title:"AV1 for Dummies",description:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.",date:"2024-06-24T00:00:00.000Z",tags:[{inline:!0,label:"video",permalink:"/blog/tags/video"},{inline:!0,label:"compression",permalink:"/blog/tags/compression"}],readingTime:16.645,hasTruncateMarker:!0,authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4",imageURL:"https://avatars.githubusercontent.com/u/35711760?v=4",key:null,page:null},{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4",key:null,page:null}],frontMatter:{title:"AV1 for Dummies",description:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.",slug:"av1-for-dummies",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4",imageURL:"https://avatars.githubusercontent.com/u/35711760?v=4"},{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","compression"],image:"/img/av1_for_dummies_guide.jpg",hide_table_of_contents:!1},unlisted:!1,prevItem:{title:"Codec Wiki: One Year Later",permalink:"/blog/codec-wiki-one-year-later"},nextItem:{title:"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive",permalink:"/blog/svt-av1-second-deep-dive"}},u={authorsImageUrls:[void 0,void 0]},m=[];function g(e){const t={p:"p",...(0,n.R)(),...e.components};return(0,o.jsx)(t.p,{children:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered."})}function c(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(g,{...e})}):g(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>a,x:()=>s});var o=i(6540);const n={},r=o.createContext(n);function a(e){const t=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),o.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/59e6fde5.f0729976.js b/assets/js/59e6fde5.f0729976.js new file mode 100644 index 000000000..0339dc669 --- /dev/null +++ b/assets/js/59e6fde5.f0729976.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9724],{357:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>u,contentTitle:()=>a,default:()=>c,frontMatter:()=>s,metadata:()=>o,toc:()=>m});var o=i(9543),n=i(4848),r=i(8453);const s={title:"AV1 for Dummies",description:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.",slug:"av1-for-dummies",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4"},{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","compression"],image:"/img/av1_for_dummies_guide.jpg",hide_table_of_contents:!1},a=void 0,u={authorsImageUrls:[void 0,void 0]},m=[];function l(e){const t={p:"p",...(0,r.R)(),...e.components};return(0,n.jsx)(t.p,{children:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered."})}function c(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>a});var o=i(6540);const n={},r=o.createContext(n);function s(e){const t=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:s(e.components),o.createElement(r.Provider,{value:t},e.children)}},9543:e=>{e.exports=JSON.parse('{"permalink":"/blog/av1-for-dummies","source":"@site/blog/2024-06-24-av1-for-dummies-2.mdx","title":"AV1 for Dummies","description":"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you\'re on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.","date":"2024-06-24T00:00:00.000Z","tags":[{"inline":true,"label":"video","permalink":"/blog/tags/video"},{"inline":true,"label":"compression","permalink":"/blog/tags/compression"}],"readingTime":16.645,"hasTruncateMarker":true,"authors":[{"name":"Gianni Rosato","title":"Maintainer","url":"https://github.com/gianni-rosato","image_url":"https://avatars.githubusercontent.com/u/35711760?v=4","imageURL":"https://avatars.githubusercontent.com/u/35711760?v=4","socials":{},"key":null,"page":null},{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4","socials":{},"key":null,"page":null}],"frontMatter":{"title":"AV1 for Dummies","description":"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you\'re on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.","slug":"av1-for-dummies","authors":[{"name":"Gianni Rosato","title":"Maintainer","url":"https://github.com/gianni-rosato","image_url":"https://avatars.githubusercontent.com/u/35711760?v=4","imageURL":"https://avatars.githubusercontent.com/u/35711760?v=4"},{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4"}],"tags":["video","compression"],"image":"/img/av1_for_dummies_guide.jpg","hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"Codec Wiki: One Year Later","permalink":"/blog/codec-wiki-one-year-later"},"nextItem":{"title":"Observing SVT-AV1 v2.1.0\'s improvements: A New Deep Dive","permalink":"/blog/svt-av1-second-deep-dive"}}')}}]); \ No newline at end of file diff --git a/assets/js/5b209502.05910955.js b/assets/js/5b209502.05910955.js deleted file mode 100644 index 611d4920b..000000000 --- a/assets/js/5b209502.05910955.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4176],{4296:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>a,contentTitle:()=>c,default:()=>u,frontMatter:()=>r,metadata:()=>s,toc:()=>d});var n=i(4848),o=i(8453);const r={title:"Deinterlace",sidebar_position:5},c="Deinterlace",s={id:"filtering/deinterlace",title:"Deinterlace",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/filtering/deinterlace.mdx",sourceDirName:"filtering",slug:"/filtering/deinterlace",permalink:"/docs/filtering/deinterlace",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/deinterlace.mdx",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"Deinterlace",sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"Inverse Telecine",permalink:"/docs/filtering/ivtc"},next:{title:"Decombing",permalink:"/docs/filtering/decombing"}},a={},d=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"deinterlace",children:"Deinterlace"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>c,x:()=>s});var n=i(6540);const o={},r=n.createContext(o);function c(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5b209502.143acbf3.js b/assets/js/5b209502.143acbf3.js new file mode 100644 index 000000000..1d48d780b --- /dev/null +++ b/assets/js/5b209502.143acbf3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4176],{5116:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>s,default:()=>u,frontMatter:()=>c,metadata:()=>i,toc:()=>d});const i=JSON.parse('{"id":"filtering/deinterlace","title":"Deinterlace","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/filtering/deinterlace.mdx","sourceDirName":"filtering","slug":"/filtering/deinterlace","permalink":"/docs/filtering/deinterlace","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/deinterlace.mdx","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"title":"Deinterlace","sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"Inverse Telecine","permalink":"/docs/filtering/ivtc"},"next":{"title":"Decombing","permalink":"/docs/filtering/decombing"}}');var o=n(4848),r=n(8453);const c={title:"Deinterlace",sidebar_position:5},s="Deinterlace",a={},d=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"deinterlace",children:"Deinterlace"})}),"\n",(0,o.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>c,x:()=>s});var i=n(6540);const o={},r=i.createContext(o);function c(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5d1a7e8b.69e46796.js b/assets/js/5d1a7e8b.69e46796.js deleted file mode 100644 index e97ba5dcd..000000000 --- a/assets/js/5d1a7e8b.69e46796.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5936],{63:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>d,contentTitle:()=>r,default:()=>p,frontMatter:()=>o,metadata:()=>a,toc:()=>l});var n=s(4848),t=s(8453);const o={title:"Video Players",sidebar_label:"\u25b6\ufe0f Video Players",sidebar_position:11},r="Video Players",a={id:"video-players",title:"Video Players",description:"Many different players exist for video, but here are a few recommended ones:",source:"@site/docs/video-players.mdx",sourceDirName:".",slug:"/video-players",permalink:"/docs/video-players",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video-players.mdx",tags:[],version:"current",sidebarPosition:11,frontMatter:{title:"Video Players",sidebar_label:"\u25b6\ufe0f Video Players",sidebar_position:11},sidebar:"tutorialSidebar",previous:{title:"Butteraugli",permalink:"/docs/metrics/butteraugli"},next:{title:"\ud83d\uddc3\ufe0f Resources",permalink:"/docs/resources"}},d={},l=[{value:"MPV",id:"mpv",level:2},{value:"VLC",id:"vlc",level:2},{value:"MPC-HC",id:"mpc-hc",level:2}];function c(e){const i={a:"a",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"video-players",children:"Video Players"})}),"\n",(0,n.jsx)(i.p,{children:"Many different players exist for video, but here are a few recommended ones:"}),"\n",(0,n.jsx)(i.h2,{id:"mpv",children:"MPV"}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"MPV"})," is a open source lightweight media player. It is intended as a command-line application, making it's user interface extremely minimal, however, many frontends exist for mpv, giving a more complete GUI, such as Celluloid and IINA. It has wide codec and container support."]}),"\n",(0,n.jsx)(i.p,{children:"TODO: MPV keyboard shorcuts"}),"\n",(0,n.jsx)(i.h2,{id:"vlc",children:"VLC"}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"VLC"})," is an open source media player and toolkit. It supports almost all video and audio codecs in common use."]}),"\n",(0,n.jsxs)(i.p,{children:["Download instructions for VLC on all relevant platforms can be found at ",(0,n.jsx)(i.a,{href:"https://www.videolan.org/vlc/#download",children:"VideoLAN's website"})]}),"\n",(0,n.jsx)(i.h2,{id:"mpc-hc",children:"MPC-HC"}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"Media Player Classic - Home Cinema (MPC-HC)"})," is an open source media player designed exclusively for Windows 7, 8, 8.1, 10, 11 operating systems. Recognized for its simplicity and efficiency, MPC-HC provides users with a streamlined and user-friendly platform for playing a diverse range of audio and video file formats. Its lightweight design ensures smooth playback without taxing system resources. While the official development ceased in 2017, the community-driven MPC-HC on GitHub continues to provide updates and support."]}),"\n",(0,n.jsxs)(i.p,{children:["The latest un/stable builds of MPC-HC, maintained by the community, can be found on ",(0,n.jsx)(i.a,{href:"https://github.com/clsid2/mpc-hc/releases",children:"clsid2's MPC-HC repository"}),"."]})]})}function p(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(c,{...e})}):c(e)}},8453:(e,i,s)=>{s.d(i,{R:()=>r,x:()=>a});var n=s(6540);const t={},o=n.createContext(t);function r(e){const i=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),n.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5d1a7e8b.761e5644.js b/assets/js/5d1a7e8b.761e5644.js new file mode 100644 index 000000000..0329e7426 --- /dev/null +++ b/assets/js/5d1a7e8b.761e5644.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5936],{9300:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>d,contentTitle:()=>a,default:()=>p,frontMatter:()=>r,metadata:()=>n,toc:()=>l});const n=JSON.parse('{"id":"video-players","title":"Video Players","description":"Many different players exist for video, but here are a few recommended ones:","source":"@site/docs/video-players.mdx","sourceDirName":".","slug":"/video-players","permalink":"/docs/video-players","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video-players.mdx","tags":[],"version":"current","sidebarPosition":11,"frontMatter":{"title":"Video Players","sidebar_label":"\u25b6\ufe0f Video Players","sidebar_position":11},"sidebar":"tutorialSidebar","previous":{"title":"Butteraugli","permalink":"/docs/metrics/butteraugli"},"next":{"title":"\ud83d\uddc3\ufe0f Resources","permalink":"/docs/resources"}}');var t=s(4848),o=s(8453);const r={title:"Video Players",sidebar_label:"\u25b6\ufe0f Video Players",sidebar_position:11},a="Video Players",d={},l=[{value:"MPV",id:"mpv",level:2},{value:"VLC",id:"vlc",level:2},{value:"MPC-HC",id:"mpc-hc",level:2}];function c(e){const i={a:"a",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"video-players",children:"Video Players"})}),"\n",(0,t.jsx)(i.p,{children:"Many different players exist for video, but here are a few recommended ones:"}),"\n",(0,t.jsx)(i.h2,{id:"mpv",children:"MPV"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.strong,{children:"MPV"})," is a open source lightweight media player. It is intended as a command-line application, making it's user interface extremely minimal, however, many frontends exist for mpv, giving a more complete GUI, such as Celluloid and IINA. It has wide codec and container support."]}),"\n",(0,t.jsx)(i.p,{children:"TODO: MPV keyboard shorcuts"}),"\n",(0,t.jsx)(i.h2,{id:"vlc",children:"VLC"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.strong,{children:"VLC"})," is an open source media player and toolkit. It supports almost all video and audio codecs in common use."]}),"\n",(0,t.jsxs)(i.p,{children:["Download instructions for VLC on all relevant platforms can be found at ",(0,t.jsx)(i.a,{href:"https://www.videolan.org/vlc/#download",children:"VideoLAN's website"})]}),"\n",(0,t.jsx)(i.h2,{id:"mpc-hc",children:"MPC-HC"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.strong,{children:"Media Player Classic - Home Cinema (MPC-HC)"})," is an open source media player designed exclusively for Windows 7, 8, 8.1, 10, 11 operating systems. Recognized for its simplicity and efficiency, MPC-HC provides users with a streamlined and user-friendly platform for playing a diverse range of audio and video file formats. Its lightweight design ensures smooth playback without taxing system resources. While the official development ceased in 2017, the community-driven MPC-HC on GitHub continues to provide updates and support."]}),"\n",(0,t.jsxs)(i.p,{children:["The latest un/stable builds of MPC-HC, maintained by the community, can be found on ",(0,t.jsx)(i.a,{href:"https://github.com/clsid2/mpc-hc/releases",children:"clsid2's MPC-HC repository"}),"."]})]})}function p(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},8453:(e,i,s)=>{s.d(i,{R:()=>r,x:()=>a});var n=s(6540);const t={},o=n.createContext(t);function r(e){const i=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),n.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5db6705b.a12c34f2.js b/assets/js/5db6705b.a12c34f2.js new file mode 100644 index 000000000..c543574df --- /dev/null +++ b/assets/js/5db6705b.a12c34f2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1624],{5248:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>h,frontMatter:()=>s,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"utilities/nmkoder","title":"NMKODER","description":"NMKODER is a free and open source, Windows-only GUI software developed by N00MKRAD. Built around FFmpeg, FFprobe, and Av1an","source":"@site/docs/utilities/nmkoder.mdx","sourceDirName":"utilities","slug":"/utilities/nmkoder","permalink":"/docs/utilities/nmkoder","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/nmkoder.mdx","tags":[],"version":"current","sidebarPosition":7,"frontMatter":{"title":"NMKODER","sidebar_position":7},"sidebar":"tutorialSidebar","previous":{"title":"rav1ator-cli","permalink":"/docs/utilities/rav1ator-cli"},"next":{"title":"FFMetrics","permalink":"/docs/utilities/FFMetrics"}}');var o=i(4848),r=i(8453);const s={title:"NMKODER",sidebar_position:7},a="NMKODER",l={},c=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2}];function d(e){const t={a:"a",admonition:"admonition",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"nmkoder",children:"NMKODER"})}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"/img/nmkoder.avif",type:"image/avif"}),(0,o.jsx)("img",{src:"/img/nmkoder.webp",alt:"NMKODER Window"})]}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.a,{href:"https://github.com/n00mkrad/nmkoder",children:"NMKODER"})," is a free and open source, ",(0,o.jsx)(t.strong,{children:"Windows-only"})," GUI software developed by ",(0,o.jsx)(t.a,{href:"https://github.com/n00mkrad",children:"N00MKRAD"}),". Built around FFmpeg, FFprobe, and Av1an\nfor video encoding, muxing, and analysis such as concatenation, metrics calculation, and bitrate plotting. Though most people use this for the ",(0,o.jsx)(t.a,{href:"/docs/utilities/av1an",children:"Av1an"})," functionality."]}),"\n",(0,o.jsx)(t.p,{children:"The software is written in C# and built with WinForms."}),"\n",(0,o.jsx)(t.admonition,{title:"Abandonware",type:"danger",children:(0,o.jsx)(t.p,{children:'NMKODER have not been updated for years, it is not recommended to use this. But you can attempt to replace the provided binaries (aomenc.exe, etc) with new ones to technically "update" this.'})}),"\n",(0,o.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,o.jsxs)(t.p,{children:["You can download it from the GitHub ",(0,o.jsx)(t.a,{href:"https://github.com/n00mkrad/nmkoder/releases",children:"releases"})," page (the 7z file). Extract it to wherever after it's finished downloading, open the folder, and click the exe file."]}),"\n",(0,o.jsx)(t.p,{children:"The entire software is portable, so you can share the folder with anyone and they'll have no problem with running it."}),"\n",(0,o.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,o.jsx)(t.p,{children:"NMKODER is really straightforward to use and consists of multiple tabs for each functionality. There is a drop zone on the left for drag-and-drop video files."}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:'"File List" is for imported files.'}),"\n",(0,o.jsx)(t.li,{children:'"Track List" is for A/V tracks.'}),"\n",(0,o.jsx)(t.li,{children:'"Quick Convert" tab is for conversion with FFmpeg.'}),"\n",(0,o.jsx)(t.li,{children:'"AV1AN" is what it exactly says.'}),"\n",(0,o.jsx)(t.li,{children:'"Utilities" is for helpful tools such as colorspace/HDR metadata transferring, metric calculation, etc.'}),"\n"]}),"\n",(0,o.jsx)(t.p,{children:'After configuring everything, click on the "Start" button to start encoding.'})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>a});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5db6705b.ec6b9e18.js b/assets/js/5db6705b.ec6b9e18.js deleted file mode 100644 index a305e4b7e..000000000 --- a/assets/js/5db6705b.ec6b9e18.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1624],{9828:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>h,frontMatter:()=>r,metadata:()=>a,toc:()=>d});var n=i(4848),o=i(8453);const r={title:"NMKODER",sidebar_position:7},s="NMKODER",a={id:"utilities/nmkoder",title:"NMKODER",description:"NMKODER is a free and open source, Windows-only GUI software developed by N00MKRAD. Built around FFmpeg, FFprobe, and Av1an",source:"@site/docs/utilities/nmkoder.mdx",sourceDirName:"utilities",slug:"/utilities/nmkoder",permalink:"/docs/utilities/nmkoder",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/nmkoder.mdx",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"NMKODER",sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"rav1ator-cli",permalink:"/docs/utilities/rav1ator-cli"},next:{title:"FFMetrics",permalink:"/docs/utilities/FFMetrics"}},l={},d=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2}];function c(e){const t={a:"a",admonition:"admonition",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"nmkoder",children:"NMKODER"})}),"\n",(0,n.jsxs)("picture",{children:[(0,n.jsx)("source",{srcset:"/img/nmkoder.avif",type:"image/avif"}),(0,n.jsx)("img",{src:"/img/nmkoder.webp",alt:"NMKODER Window"})]}),"\n",(0,n.jsx)("br",{}),"\n",(0,n.jsx)("br",{}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.a,{href:"https://github.com/n00mkrad/nmkoder",children:"NMKODER"})," is a free and open source, ",(0,n.jsx)(t.strong,{children:"Windows-only"})," GUI software developed by ",(0,n.jsx)(t.a,{href:"https://github.com/n00mkrad",children:"N00MKRAD"}),". Built around FFmpeg, FFprobe, and Av1an\nfor video encoding, muxing, and analysis such as concatenation, metrics calculation, and bitrate plotting. Though most people use this for the ",(0,n.jsx)(t.a,{href:"/docs/utilities/av1an",children:"Av1an"})," functionality."]}),"\n",(0,n.jsx)(t.p,{children:"The software is written in C# and built with WinForms."}),"\n",(0,n.jsx)(t.admonition,{title:"Abandonware",type:"danger",children:(0,n.jsx)(t.p,{children:'NMKODER have not been updated for years, it is not recommended to use this. But you can attempt to replace the provided binaries (aomenc.exe, etc) with new ones to technically "update" this.'})}),"\n",(0,n.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,n.jsxs)(t.p,{children:["You can download it from the GitHub ",(0,n.jsx)(t.a,{href:"https://github.com/n00mkrad/nmkoder/releases",children:"releases"})," page (the 7z file). Extract it to wherever after it's finished downloading, open the folder, and click the exe file."]}),"\n",(0,n.jsx)(t.p,{children:"The entire software is portable, so you can share the folder with anyone and they'll have no problem with running it."}),"\n",(0,n.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsx)(t.p,{children:"NMKODER is really straightforward to use and consists of multiple tabs for each functionality. There is a drop zone on the left for drag-and-drop video files."}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:'"File List" is for imported files.'}),"\n",(0,n.jsx)(t.li,{children:'"Track List" is for A/V tracks.'}),"\n",(0,n.jsx)(t.li,{children:'"Quick Convert" tab is for conversion with FFmpeg.'}),"\n",(0,n.jsx)(t.li,{children:'"AV1AN" is what it exactly says.'}),"\n",(0,n.jsx)(t.li,{children:'"Utilities" is for helpful tools such as colorspace/HDR metadata transferring, metric calculation, etc.'}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:'After configuring everything, click on the "Start" button to start encoding.'})]})}function h(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(c,{...e})}):c(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>a});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5e069031.36e9153e.js b/assets/js/5e069031.36e9153e.js new file mode 100644 index 000000000..83eb9e2e9 --- /dev/null +++ b/assets/js/5e069031.36e9153e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5968],{4347:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>d,contentTitle:()=>r,default:()=>h,frontMatter:()=>a,metadata:()=>t,toc:()=>c});const t=JSON.parse('{"id":"introduction/prologue","title":"Prologue","description":"Multimedia compression as a whole has revolutionized our ability to communicate on the Web & beyond. It has enabled rich experiences across many breakthrough platforms that wouldn\'t have been feasible otherwise, and it has allowed us to communicate information, expression, and human connection in novel ways. It is the unsung hero of the modern Web. Despite this, it is often difficult to uncover information about codec technology that is accurate, informed, and battle-tested by passionate individuals who care about the proliferation of knowledge. This wiki aims to demystify the realm of multimedia compression while connecting codec enthusiasts to create a sink of knowledge for the benefit of everyone.","source":"@site/docs/introduction/prologue.mdx","sourceDirName":"introduction","slug":"/introduction/prologue","permalink":"/docs/introduction/prologue","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/prologue.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"Prologue","sidebar_position":1},"sidebar":"tutorialSidebar","next":{"title":"Terminology","permalink":"/docs/introduction/terminology"}}');var s=o(4848),n=o(8453);const a={title:"Prologue",sidebar_position:1},r="Prologue",d={},c=[{value:"What This Isn't",id:"what-this-isnt",level:3},{value:"What is a Codec",id:"what-is-a-codec",level:3},{value:"What You Need",id:"what-you-need",level:3}];function l(e){const i={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h3:"h3",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,n.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"prologue",children:"Prologue"})}),"\n",(0,s.jsx)(i.p,{children:"Multimedia compression as a whole has revolutionized our ability to communicate on the Web & beyond. It has enabled rich experiences across many breakthrough platforms that wouldn't have been feasible otherwise, and it has allowed us to communicate information, expression, and human connection in novel ways. It is the unsung hero of the modern Web. Despite this, it is often difficult to uncover information about codec technology that is accurate, informed, and battle-tested by passionate individuals who care about the proliferation of knowledge. This wiki aims to demystify the realm of multimedia compression while connecting codec enthusiasts to create a sink of knowledge for the benefit of everyone."}),"\n",(0,s.jsx)(i.h3,{id:"what-this-isnt",children:"What This Isn't"}),"\n",(0,s.jsxs)(i.p,{children:["The Codec Wiki is ",(0,s.jsx)(i.strong,{children:"not a highly accurate source for understanding the mathematics, research, adoption/patent politics, or specifications of specific coder/decoder implementations"}),". Sources like Wikipedia cover these details with great accuracy & reliability. What we ",(0,s.jsx)(i.em,{children:"are"})," focused on is making higher level information - especially related to the usage & application of compression tools - highly accessible; we are focused on application, not theory, for the time being. Knowing how a codec works in theory is different than knowing when and how to best use a codec and its accompanying tools."]}),"\n",(0,s.jsx)(i.h3,{id:"what-is-a-codec",children:"What is a Codec"}),"\n",(0,s.jsxs)(i.p,{children:["A codec, shortened from coder/decoder, is a system that handles digital media or data according to a specification. Usually, this means it compresses and decompresses digital media. Codecs are used to encode media for storage and transmission - among other things - and then decode that media for playback, editing, etc. Multimedia codecs compress by either ",(0,s.jsx)(i.a,{href:"/docs/introduction/psychovisual",children:"discarding less salient data"})," using ",(0,s.jsx)(i.a,{href:"/docs/introduction/video-artifacts",children:"lossy"})," compression to reduce filesize, or they use clever lossless compression tricks to maintain a mathematically identical stream to the input media while still reducing filesize. Lossless compression can be reversed to be the exact same as the input data, while lossy compression does not share this quality as it discards data for smaller filesizes. Some common uses of codecs include:"]}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:["Video compression: Video codecs like ",(0,s.jsx)(i.a,{href:"/docs/video/AVC",children:"H.264"}),", ",(0,s.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"})," & ",(0,s.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," allow digital video files to be compressed to much smaller sizes for streaming & storage, among other things. A video codec can encode a video stream while it is being recorded or before it is distributed, and decode it when it is played back. This allows videos to be shared more quickly and use less storage & bandwidth."]}),"\n",(0,s.jsxs)(i.li,{children:["Audio compression: Audio codecs like ",(0,s.jsx)(i.a,{href:"/docs/audio/MP3",children:"MP3"}),", ",(0,s.jsx)(i.a,{href:"/docs/audio/AAC",children:"AAC"}),", and ",(0,s.jsx)(i.a,{href:"/docs/audio/Opus",children:"Opus"})," compress audio files like songs & podcasts. This allows them to be easily distributed & stored."]}),"\n",(0,s.jsxs)(i.li,{children:["Image Compression: Image codecs, whether tried and true like ",(0,s.jsx)(i.a,{href:"/docs/images/JPEG",children:"JPEG"})," or brand new like ",(0,s.jsx)(i.a,{href:"/docs/images/JXL",children:"JPEG-XL"}),", have fundamentally the same goal: compress images well while maintaining a versatile featureset for the myriad of ways one may decide they'd like to compress an image. Color depth, HDR, transparency, color space information, EXIF data, and many other factors are at play when working with images that make compressing them easier said than done."]}),"\n",(0,s.jsxs)(i.li,{children:["Data Compression: General compression algorithms like ",(0,s.jsx)(i.a,{href:"/docs/data/zip",children:"ZIP"})," & ",(0,s.jsx)(i.a,{href:"/docs/data/zstd",children:"zstd"})," are designed to compress ",(0,s.jsx)(i.em,{children:"any"})," kind of data, not just multimedia specific data. This includes web assets, executables, text archives, and even entire filesystems."]}),"\n"]}),"\n",(0,s.jsxs)(i.p,{children:["In summary, ",(0,s.jsx)(i.strong,{children:"codecs use complex algorithms to encode and decode media for efficient storage and transmission"}),". They are essential for recording, compressing, delivering and playing back digital media. Different codecs balance factors like compression efficiency, quality, computational requirements, compatibility, & features depending on their application."]}),"\n",(0,s.jsx)(i.h3,{id:"what-you-need",children:"What You Need"}),"\n",(0,s.jsx)(i.p,{children:"A rather informal list of requirements follows."}),"\n",(0,s.jsx)(i.p,{children:"You will benefit greatly from:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Patience."}),"\n",(0,s.jsx)(i.li,{children:"A willingness to learn, engage in curiousity, & follow instructions"}),"\n",(0,s.jsx)(i.li,{children:"Basic to intermediate computer proficiency."}),"\n"]}),"\n",(0,s.jsx)(i.p,{children:"If you're only here to learn the tools, it will be very beneficial to have:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Higher-end CPU hardware, which will decrease wait times for some larger encoding workloads discussed here."}),"\n",(0,s.jsx)(i.li,{children:"A level of comfort with CLI utilities, or enough motivation to engage with them in the absence of background knowledge."}),"\n",(0,s.jsx)(i.li,{children:"A device running an Arch-based Linux distribution, excluding Manjaro"}),"\n"]}),"\n",(0,s.jsx)(i.admonition,{title:"Why Arch?",type:"info",children:(0,s.jsxs)(i.p,{children:["Most encoding tools are readily available in the package manager, & it is a bleeding edge Linux distribution which ensures your utilities are always kept up to date. For filtering, all Vapoursynth plugins are already available in the Arch User Repository (AUR) which makes it extremely easy to install and version control with an AUR helper ",(0,s.jsxs)(i.a,{href:"https://github.com/Jguer/yay",children:["like ",(0,s.jsx)(i.code,{children:"yay"})]})]})})]})}function h(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>a,x:()=>r});var t=o(6540);const s={},n=t.createContext(s);function a(e){const i=t.useContext(n);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),t.createElement(n.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5e069031.5d8abc53.js b/assets/js/5e069031.5d8abc53.js deleted file mode 100644 index 019786a2f..000000000 --- a/assets/js/5e069031.5d8abc53.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5968],{9483:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>s,metadata:()=>r,toc:()=>c});var t=o(4848),n=o(8453);const s={title:"Prologue",sidebar_position:1},a="Prologue",r={id:"introduction/prologue",title:"Prologue",description:"Multimedia compression as a whole has revolutionized our ability to communicate on the Web & beyond. It has enabled rich experiences across many breakthrough platforms that wouldn't have been feasible otherwise, and it has allowed us to communicate information, expression, and human connection in novel ways. It is the unsung hero of the modern Web. Despite this, it is often difficult to uncover information about codec technology that is accurate, informed, and battle-tested by passionate individuals who care about the proliferation of knowledge. This wiki aims to demystify the realm of multimedia compression while connecting codec enthusiasts to create a sink of knowledge for the benefit of everyone.",source:"@site/docs/introduction/prologue.mdx",sourceDirName:"introduction",slug:"/introduction/prologue",permalink:"/docs/introduction/prologue",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/prologue.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"Prologue",sidebar_position:1},sidebar:"tutorialSidebar",next:{title:"Terminology",permalink:"/docs/introduction/terminology"}},d={},c=[{value:"What This Isn't",id:"what-this-isnt",level:3},{value:"What is a Codec",id:"what-is-a-codec",level:3},{value:"What You Need",id:"what-you-need",level:3}];function l(e){const i={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h3:"h3",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"prologue",children:"Prologue"})}),"\n",(0,t.jsx)(i.p,{children:"Multimedia compression as a whole has revolutionized our ability to communicate on the Web & beyond. It has enabled rich experiences across many breakthrough platforms that wouldn't have been feasible otherwise, and it has allowed us to communicate information, expression, and human connection in novel ways. It is the unsung hero of the modern Web. Despite this, it is often difficult to uncover information about codec technology that is accurate, informed, and battle-tested by passionate individuals who care about the proliferation of knowledge. This wiki aims to demystify the realm of multimedia compression while connecting codec enthusiasts to create a sink of knowledge for the benefit of everyone."}),"\n",(0,t.jsx)(i.h3,{id:"what-this-isnt",children:"What This Isn't"}),"\n",(0,t.jsxs)(i.p,{children:["The Codec Wiki is ",(0,t.jsx)(i.strong,{children:"not a highly accurate source for understanding the mathematics, research, adoption/patent politics, or specifications of specific coder/decoder implementations"}),". Sources like Wikipedia cover these details with great accuracy & reliability. What we ",(0,t.jsx)(i.em,{children:"are"})," focused on is making higher level information - especially related to the usage & application of compression tools - highly accessible; we are focused on application, not theory, for the time being. Knowing how a codec works in theory is different than knowing when and how to best use a codec and its accompanying tools."]}),"\n",(0,t.jsx)(i.h3,{id:"what-is-a-codec",children:"What is a Codec"}),"\n",(0,t.jsxs)(i.p,{children:["A codec, shortened from coder/decoder, is a system that handles digital media or data according to a specification. Usually, this means it compresses and decompresses digital media. Codecs are used to encode media for storage and transmission - among other things - and then decode that media for playback, editing, etc. Multimedia codecs compress by either ",(0,t.jsx)(i.a,{href:"/docs/introduction/psychovisual",children:"discarding less salient data"})," using ",(0,t.jsx)(i.a,{href:"/docs/introduction/video-artifacts",children:"lossy"})," compression to reduce filesize, or they use clever lossless compression tricks to maintain a mathematically identical stream to the input media while still reducing filesize. Lossless compression can be reversed to be the exact same as the input data, while lossy compression does not share this quality as it discards data for smaller filesizes. Some common uses of codecs include:"]}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsxs)(i.li,{children:["Video compression: Video codecs like ",(0,t.jsx)(i.a,{href:"/docs/video/AVC",children:"H.264"}),", ",(0,t.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"})," & ",(0,t.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," allow digital video files to be compressed to much smaller sizes for streaming & storage, among other things. A video codec can encode a video stream while it is being recorded or before it is distributed, and decode it when it is played back. This allows videos to be shared more quickly and use less storage & bandwidth."]}),"\n",(0,t.jsxs)(i.li,{children:["Audio compression: Audio codecs like ",(0,t.jsx)(i.a,{href:"/docs/audio/MP3",children:"MP3"}),", ",(0,t.jsx)(i.a,{href:"/docs/audio/AAC",children:"AAC"}),", and ",(0,t.jsx)(i.a,{href:"/docs/audio/Opus",children:"Opus"})," compress audio files like songs & podcasts. This allows them to be easily distributed & stored."]}),"\n",(0,t.jsxs)(i.li,{children:["Image Compression: Image codecs, whether tried and true like ",(0,t.jsx)(i.a,{href:"/docs/images/JPEG",children:"JPEG"})," or brand new like ",(0,t.jsx)(i.a,{href:"/docs/images/JXL",children:"JPEG-XL"}),", have fundamentally the same goal: compress images well while maintaining a versatile featureset for the myriad of ways one may decide they'd like to compress an image. Color depth, HDR, transparency, color space information, EXIF data, and many other factors are at play when working with images that make compressing them easier said than done."]}),"\n",(0,t.jsxs)(i.li,{children:["Data Compression: General compression algorithms like ",(0,t.jsx)(i.a,{href:"/docs/data/zip",children:"ZIP"})," & ",(0,t.jsx)(i.a,{href:"/docs/data/zstd",children:"zstd"})," are designed to compress ",(0,t.jsx)(i.em,{children:"any"})," kind of data, not just multimedia specific data. This includes web assets, executables, text archives, and even entire filesystems."]}),"\n"]}),"\n",(0,t.jsxs)(i.p,{children:["In summary, ",(0,t.jsx)(i.strong,{children:"codecs use complex algorithms to encode and decode media for efficient storage and transmission"}),". They are essential for recording, compressing, delivering and playing back digital media. Different codecs balance factors like compression efficiency, quality, computational requirements, compatibility, & features depending on their application."]}),"\n",(0,t.jsx)(i.h3,{id:"what-you-need",children:"What You Need"}),"\n",(0,t.jsx)(i.p,{children:"A rather informal list of requirements follows."}),"\n",(0,t.jsx)(i.p,{children:"You will benefit greatly from:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Patience."}),"\n",(0,t.jsx)(i.li,{children:"A willingness to learn, engage in curiousity, & follow instructions"}),"\n",(0,t.jsx)(i.li,{children:"Basic to intermediate computer proficiency."}),"\n"]}),"\n",(0,t.jsx)(i.p,{children:"If you're only here to learn the tools, it will be very beneficial to have:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Higher-end CPU hardware, which will decrease wait times for some larger encoding workloads discussed here."}),"\n",(0,t.jsx)(i.li,{children:"A level of comfort with CLI utilities, or enough motivation to engage with them in the absence of background knowledge."}),"\n",(0,t.jsx)(i.li,{children:"A device running an Arch-based Linux distribution, excluding Manjaro"}),"\n"]}),"\n",(0,t.jsx)(i.admonition,{title:"Why Arch?",type:"info",children:(0,t.jsxs)(i.p,{children:["Most encoding tools are readily available in the package manager, & it is a bleeding edge Linux distribution which ensures your utilities are always kept up to date. For filtering, all Vapoursynth plugins are already available in the Arch User Repository (AUR) which makes it extremely easy to install and version control with an AUR helper ",(0,t.jsxs)(i.a,{href:"https://github.com/Jguer/yay",children:["like ",(0,t.jsx)(i.code,{children:"yay"})]})]})})]})}function h(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>a,x:()=>r});var t=o(6540);const n={},s=t.createContext(n);function a(e){const i=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5e1194df.03677b01.js b/assets/js/5e1194df.03677b01.js deleted file mode 100644 index a7be0e26f..000000000 --- a/assets/js/5e1194df.03677b01.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4822],{5160:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>s,metadata:()=>r,toc:()=>d});var o=i(4848),n=i(8453);const s={title:"zpaq",sidebar_position:7},a="ZPAQ",r={id:"data/zpaq",title:"zpaq",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/data/zpaq.mdx",sourceDirName:"data",slug:"/data/zpaq",permalink:"/docs/data/zpaq",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/zpaq.mdx",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"zpaq",sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"brotli",permalink:"/docs/data/brotli"},next:{title:"zstd",permalink:"/docs/data/zstd"}},c={},d=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"zpaq",children:"ZPAQ"})}),"\n",(0,o.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsx)(t.p,{children:"ZPAQ is a lossless data compression algorithm that combines several techniques to achieve high compression ratios. It was developed by Matt Mahoney."}),"\n",(0,o.jsx)(t.p,{children:'ZPAQ uses a multitude of different compression algorithms to try to achieve the best size-to-compression-time ratio possible while producing the smallest possible archives without much concern given to decompression performance. On the official ZPAQ website, it looks like it is designed for "realistic backups that have a lot of duplicate files and a lot of already compressed files."'}),"\n",(0,o.jsx)(t.p,{children:'ZPAQ is also considered an "incremental journaling archiver" meaning you can add files to an existing archive based on if they were changed or not. This reduces the time needed to wait for a new backup to finish, if that is your use case. Since ZPAQ is so focused on compression ratio, this kind of feature may reduce the burden imposed by long compression times in practical use cases where it makes sense. Windows & macOS do not handle ZPAQ archives properly by default, and it is unlikely many Linux distros do either.'})]})}function u(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>a,x:()=>r});var o=i(6540);const n={},s=o.createContext(n);function a(e){const t=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),o.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5e1194df.0c61c810.js b/assets/js/5e1194df.0c61c810.js new file mode 100644 index 000000000..d554c3c5c --- /dev/null +++ b/assets/js/5e1194df.0c61c810.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4822],{1235:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>r,default:()=>u,frontMatter:()=>a,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"data/zpaq","title":"zpaq","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/data/zpaq.mdx","sourceDirName":"data","slug":"/data/zpaq","permalink":"/docs/data/zpaq","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/zpaq.mdx","tags":[],"version":"current","sidebarPosition":7,"frontMatter":{"title":"zpaq","sidebar_position":7},"sidebar":"tutorialSidebar","previous":{"title":"brotli","permalink":"/docs/data/brotli"},"next":{"title":"zstd","permalink":"/docs/data/zstd"}}');var n=i(4848),s=i(8453);const a={title:"zpaq",sidebar_position:7},r="ZPAQ",c={},d=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"zpaq",children:"ZPAQ"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsx)(t.p,{children:"ZPAQ is a lossless data compression algorithm that combines several techniques to achieve high compression ratios. It was developed by Matt Mahoney."}),"\n",(0,n.jsx)(t.p,{children:'ZPAQ uses a multitude of different compression algorithms to try to achieve the best size-to-compression-time ratio possible while producing the smallest possible archives without much concern given to decompression performance. On the official ZPAQ website, it looks like it is designed for "realistic backups that have a lot of duplicate files and a lot of already compressed files."'}),"\n",(0,n.jsx)(t.p,{children:'ZPAQ is also considered an "incremental journaling archiver" meaning you can add files to an existing archive based on if they were changed or not. This reduces the time needed to wait for a new backup to finish, if that is your use case. Since ZPAQ is so focused on compression ratio, this kind of feature may reduce the burden imposed by long compression times in practical use cases where it makes sense. Windows & macOS do not handle ZPAQ archives properly by default, and it is unlikely many Linux distros do either.'})]})}function u(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>a,x:()=>r});var o=i(6540);const n={},s=o.createContext(n);function a(e){const t=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),o.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5e95c892.15681440.js b/assets/js/5e95c892.15681440.js new file mode 100644 index 000000000..63b3f3cc2 --- /dev/null +++ b/assets/js/5e95c892.15681440.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9647],{7121:(e,c,s)=>{s.r(c),s.d(c,{default:()=>t});s(6540);var r=s(4164),u=s(1213),a=s(7559),i=s(2831),d=s(7823),n=s(4848);function t(e){return(0,n.jsx)(u.e3,{className:(0,r.A)(a.G.wrapper.docsPages),children:(0,n.jsx)(d.A,{children:(0,i.v)(e.route.routes)})})}}}]); \ No newline at end of file diff --git a/assets/js/5e95c892.7ef37dfe.js b/assets/js/5e95c892.7ef37dfe.js deleted file mode 100644 index 6219fe143..000000000 --- a/assets/js/5e95c892.7ef37dfe.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9647],{7121:(e,c,s)=>{s.r(c),s.d(c,{default:()=>t});s(6540);var r=s(4164),u=s(1213),a=s(7559),i=s(2831),d=s(263),n=s(4848);function t(e){return(0,n.jsx)(u.e3,{className:(0,r.A)(a.G.wrapper.docsPages),children:(0,n.jsx)(d.A,{children:(0,i.v)(e.route.routes)})})}}}]); \ No newline at end of file diff --git a/assets/js/5ec46d54.267e3e91.js b/assets/js/5ec46d54.267e3e91.js new file mode 100644 index 000000000..8a8360a7d --- /dev/null +++ b/assets/js/5ec46d54.267e3e91.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1481],{4419:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>c,contentTitle:()=>d,default:()=>l,frontMatter:()=>s,metadata:()=>n,toc:()=>a});const n=JSON.parse('{"id":"video/ECM","title":"ECM","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/video/ECM.mdx","sourceDirName":"video","slug":"/video/ECM","permalink":"/docs/video/ECM","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/ECM.mdx","tags":[],"version":"current","sidebarPosition":15,"frontMatter":{"title":"ECM","sidebar_position":15},"sidebar":"tutorialSidebar","previous":{"title":"ProRes","permalink":"/docs/video/prores"},"next":{"title":"ZIP","permalink":"/docs/data/zip"}}');var i=o(4848),r=o(8453);const s={title:"ECM",sidebar_position:15},d="ECM",c={},a=[];function u(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",header:"header",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"ecm",children:"ECM"})}),"\n",(0,i.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,i.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,i.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,i.jsxs)(t.p,{children:["ECM (Enhanced Compression Model) is a video codec developed by the Fraunhofer Heinrich-Hertz-Institute. It is purportedly designed to succeed H.266, or ",(0,i.jsx)(t.a,{href:"/docs/video/VVC",children:"VVC"}),"."]}),"\n",(0,i.jsxs)(t.p,{children:["The ",(0,i.jsx)(t.a,{href:"https://vcgit.hhi.fraunhofer.de/ecm/ECM",children:"Git repo"})," provides a bit more information:"]}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-md",children:"# ECM reference software\n\nThis software package is the reference software for Enhanced Compression Model (ECM). The reference software includes both encoder and decoder functionality.\nReference software is useful in aiding users of a video coding standard to establish and test conformance and interoperability, and to educate users and demonstrate the capabilities of the test model.\nThe software has been jointly developed by the ITU-T Video Coding Experts Group (VCEG, Question 6 of ITU-T Study Group 16) and the ISO/IEC Moving Picture Experts Group (MPEG, Working Group 11 of Subcommittee 29 of ISO/IEC Joint Technical Committee 1).\n"})}),"\n",(0,i.jsx)(t.p,{children:"Other than this generic overview, build instructions are provided in the repo's README. Not much else is known about ECM besides the fact that it will likely become H.267."})]})}function l(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>s,x:()=>d});var n=o(6540);const i={},r=n.createContext(i);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5ec46d54.e5f80521.js b/assets/js/5ec46d54.e5f80521.js deleted file mode 100644 index 4f299c929..000000000 --- a/assets/js/5ec46d54.e5f80521.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1481],{2886:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>c,contentTitle:()=>s,default:()=>l,frontMatter:()=>r,metadata:()=>d,toc:()=>a});var n=o(4848),i=o(8453);const r={title:"ECM",sidebar_position:15},s="ECM",d={id:"video/ECM",title:"ECM",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/video/ECM.mdx",sourceDirName:"video",slug:"/video/ECM",permalink:"/docs/video/ECM",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/ECM.mdx",tags:[],version:"current",sidebarPosition:15,frontMatter:{title:"ECM",sidebar_position:15},sidebar:"tutorialSidebar",previous:{title:"ProRes",permalink:"/docs/video/prores"},next:{title:"ZIP",permalink:"/docs/data/zip"}},c={},a=[];function u(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",header:"header",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"ecm",children:"ECM"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(t.p,{children:["ECM (Enhanced Compression Model) is a video codec developed by the Fraunhofer Heinrich-Hertz-Institute. It is purportedly designed to succeed H.266, or ",(0,n.jsx)(t.a,{href:"/docs/video/VVC",children:"VVC"}),"."]}),"\n",(0,n.jsxs)(t.p,{children:["The ",(0,n.jsx)(t.a,{href:"https://vcgit.hhi.fraunhofer.de/ecm/ECM",children:"Git repo"})," provides a bit more information:"]}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-md",children:"# ECM reference software\n\nThis software package is the reference software for Enhanced Compression Model (ECM). The reference software includes both encoder and decoder functionality.\nReference software is useful in aiding users of a video coding standard to establish and test conformance and interoperability, and to educate users and demonstrate the capabilities of the test model.\nThe software has been jointly developed by the ITU-T Video Coding Experts Group (VCEG, Question 6 of ITU-T Study Group 16) and the ISO/IEC Moving Picture Experts Group (MPEG, Working Group 11 of Subcommittee 29 of ISO/IEC Joint Technical Committee 1).\n"})}),"\n",(0,n.jsx)(t.p,{children:"Other than this generic overview, build instructions are provided in the repo's README. Not much else is known about ECM besides the fact that it will likely become H.267."})]})}function l(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>s,x:()=>d});var n=o(6540);const i={},r=n.createContext(i);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5f74c797.5a891c89.js b/assets/js/5f74c797.5a891c89.js deleted file mode 100644 index eaef682c5..000000000 --- a/assets/js/5f74c797.5a891c89.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5745],{6185:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>p,frontMatter:()=>o,metadata:()=>c,toc:()=>u});var r=i(4848),a=i(8453),t=i(1470),s=i(9365);const o={title:"Av1an",sidebar_position:2,templating:!0},l="Av1an",c={id:"utilities/av1an",title:"Av1an",description:"Av1an is a video encoding framework. It can increase your encoding speed and improve CPU utilization by running multiple encoder processes in parallel. Target quality, VMAF plotting, and more, available to take advantage for video encoding.",source:"@site/docs/utilities/av1an.mdx",sourceDirName:"utilities",slug:"/utilities/av1an",permalink:"/docs/utilities/av1an",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/av1an.mdx",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"Av1an",sidebar_position:2,templating:!0},sidebar:"tutorialSidebar",previous:{title:"Aviator",permalink:"/docs/utilities/Aviator"},next:{title:"ffmpeg",permalink:"/docs/utilities/ffmpeg"}},d={},u=[{value:"Prerequisites",id:"prerequisites",level:2},{value:"Installation",id:"installation",level:2},{value:"Windows",id:"windows",level:3},{value:"Script",id:"script",level:4},{value:"Pre-built Binary",id:"pre-built-binary",level:4},{value:"Compile from Source",id:"compile-from-source",level:4},{value:"macOS",id:"macos",level:3},{value:"Using MacPorts",id:"using-macports",level:4},{value:"Compile from Source",id:"compile-from-source-1",level:4},{value:"Linux",id:"linux",level:3},{value:"Package Managers",id:"package-managers",level:4},{value:"Compile from Source",id:"compile-from-source-2",level:4},{value:"Docker",id:"docker",level:3},{value:"Installing Dependencies",id:"installing-dependencies",level:2},{value:"Troubleshooting",id:"troubleshooting",level:2},{value:""Error: The file 'XXXXX.ivf' could not be opened for reading: open file error." with mkvmerge on Linux",id:"error-the-file-xxxxxivf-could-not-be-opened-for-reading-open-file-error-with-mkvmerge-on-linux",level:3},{value:"Gray screen flashing for a single frame in output",id:"gray-screen-flashing-for-a-single-frame-in-output",level:3}];function h(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",...(0,a.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"av1an",children:"Av1an"})}),"\n",(0,r.jsxs)("picture",{children:[(0,r.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/main/static/img/av1an_96_workers.avif",type:"image/avif"}),(0,r.jsx)("img",{src:"https://autumn.revolt.chat/attachments/K3OhOCAy9bkUCkImek_q3-t6q3zctbn9SbWW-_RI19/av1an_96_workers.webp",alt:"Av1an with 96 workers"})]}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)(n.p,{children:"Av1an is a video encoding framework. It can increase your encoding speed and improve CPU utilization by running multiple encoder processes in parallel. Target quality, VMAF plotting, and more, available to take advantage for video encoding."}),"\n",(0,r.jsx)(n.p,{children:'The only downside to this, is that RAM usage increases significantly with each "worker" you add, so if you have a low amount of RAM (< 8GB), this might not be that useful to you.'}),"\n",(0,r.jsx)(n.admonition,{type:"caution",children:(0,r.jsx)(n.p,{children:"Av1an does not ship with any dependencies except for it's Docker image, so you will have to provide them on your own."})}),"\n",(0,r.jsx)(n.h2,{id:"prerequisites",children:"Prerequisites"}),"\n",(0,r.jsxs)(n.p,{children:["You will need Python, ",(0,r.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," and ",(0,r.jsx)(n.a,{href:"/docs/filtering/vapoursynth",children:"Vapoursynth"})," to be installed regardless of your current operating system."]}),"\n",(0,r.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,r.jsx)(n.h3,{id:"windows",children:"Windows"}),"\n",(0,r.jsx)(n.h4,{id:"script",children:"Script"}),"\n",(0,r.jsxs)(n.p,{children:["Windows users can use this ",(0,r.jsx)(n.a,{href:"https://github.com/Hishiro64/av1an-win-script",children:"script"})," which installs everything needed in a single portable folder. Do note that you will need to update the dependencies manually once installed."]}),"\n",(0,r.jsx)(n.h4,{id:"pre-built-binary",children:"Pre-built Binary"}),"\n",(0,r.jsxs)(n.p,{children:['Av1an is available as a pre-built binary under the "',(0,r.jsx)(n.a,{href:"https://github.com/master-of-zen/Av1an/releases/tag/latest",children:"latest"}),'" tag on GitHub releases, you can simply download that and place it wherever you want.']}),"\n",(0,r.jsx)(n.h4,{id:"compile-from-source",children:"Compile from Source"}),"\n",(0,r.jsxs)(n.p,{children:["To compile from source, it is easier to use mingw-w64 which comes with ",(0,r.jsx)(n.a,{href:"https://msys2.org",children:"MSYS2"}),". Once installed, open MinGW64 and run the following:"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"pacman -Syuu; pacman -S cmake git nasm python3 mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake base-devel mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-rust mingw-w64-x86_64-lld mingw-w64-x86_64-clang mingw-w64-x86_64-make\n"})}),"\n",(0,r.jsxs)(n.p,{children:["Then, before you do anything further. Download Vapoursynth ",(0,r.jsx)(n.strong,{children:"portable"})," (",(0,r.jsx)(n.code,{children:"VapourSynth64-Portable-RXX.7z"}),") from its GitHub ",(0,r.jsx)(n.a,{href:"https://github.com/vapoursynth/vapoursynth/releases",children:"release page"}),". Make sure the version you chose is compatible with the current MinGW64 Python version. For example, R65 supports 3.8 and 3.11, the version from Pacman (currently) is 3.11, so you should choose that."]}),"\n",(0,r.jsxs)(n.p,{children:["After downloading, open the 7z file and head to ",(0,r.jsx)(n.code,{children:"\\sdk\\lib64"}),", copy all the libraries from there to MinGW64's ",(0,r.jsx)(n.code,{children:"lib"})," directory, this usually resides in ",(0,r.jsx)(n.code,{children:"C:\\msys64\\mingw64\\lib"}),"."]}),"\n",(0,r.jsx)(n.p,{children:"Now finally, resume your session and run the following:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/master-of-zen/Av1an\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})}),"\n",(0,r.jsxs)(n.p,{children:["The binary will be available in ",(0,r.jsx)(n.code,{children:"C:\\msys64\\home\\USER\\Av1an\\target\\release"}),". The ",(0,r.jsx)(n.code,{children:"USER"})," part is your Windows username."]}),"\n",(0,r.jsx)(n.h3,{id:"macos",children:"macOS"}),"\n",(0,r.jsx)(n.h4,{id:"using-macports",children:"Using MacPorts"}),"\n",(0,r.jsx)(n.p,{children:"Av1an is available in the MacPorts repository, to install just simply run:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"port install av1an\n"})}),"\n",(0,r.jsx)(n.h4,{id:"compile-from-source-1",children:"Compile from Source"}),"\n",(0,r.jsxs)(n.p,{children:["You need to have Git, Nasm, and Rust to be installed first. You can achieve this by using ",(0,r.jsx)(n.a,{href:"https://brew.sh/",children:"Homebrew"})," or similar."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/master-of-zen/Av1an\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})}),"\n",(0,r.jsxs)(n.p,{children:["Binary is located in ",(0,r.jsx)(n.code,{children:"Av1an/target/release"}),", you can optionally place it somewhere like ",(0,r.jsx)(n.code,{children:"/usr/local/bin"}),"."]}),"\n",(0,r.jsx)(n.h3,{id:"linux",children:"Linux"}),"\n",(0,r.jsx)(n.h4,{id:"package-managers",children:"Package Managers"}),"\n",(0,r.jsx)(n.p,{children:"Av1an is available in the package manager of some distributions such as Arch Linux. If not, you can skip to the next part every Linux user is familiar with."}),"\n",(0,r.jsx)(n.h4,{id:"compile-from-source-2",children:"Compile from Source"}),"\n",(0,r.jsx)(n.p,{children:"Just like macOS, you need to have Git, Nasm, and Rust to be installed. Can be achieved by either using your package manager or Rustup for Rust."}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/master-of-zen/Av1an.git\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})}),"\n",(0,r.jsxs)(n.p,{children:["Binary is located in ",(0,r.jsx)(n.code,{children:"Av1an/target/release"}),", you can optionally place it somewhere like ",(0,r.jsx)(n.code,{children:"/usr/local/bin"})," or ",(0,r.jsx)(n.code,{children:"/usr/bin"}),"."]}),"\n",(0,r.jsx)(n.h3,{id:"docker",children:"Docker"}),"\n",(0,r.jsx)(n.p,{children:"The following examples assume the file you want to encode is in your current working directory."}),"\n",(0,r.jsxs)(t.A,{children:[(0,r.jsx)(s.A,{value:"windows",label:"Windows",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'docker run --privileged -v "$(pwd):/videos" --user $(id -u):$(id -g) -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}\n'})})}),(0,r.jsx)(s.A,{value:"linux",label:"Linux",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'docker run --privileged -v "${PWD}:/videos" -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}\n'})})}),(0,r.jsxs)(s.A,{value:"build",label:"Manual Build",children:[(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'docker build -t "av1an" .\n'})}),(0,r.jsx)(n.p,{children:"Run in the root directory of the repository. The dependencies will automatically be installed into the image, no manual installations necessary."})]})]}),"\n",(0,r.jsxs)(n.admonition,{type:"info",children:[(0,r.jsx)(n.p,{children:"To specify a different directory to use you would replace $(pwd) with the directory"}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'docker run --privileged -v "/c/Users/masterofzen/Videos":/videos --user $(id -u):$(id -g) -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}\n'})}),(0,r.jsxs)(n.p,{children:["The ",(0,r.jsx)(n.code,{children:"--user"})," flag is required on Linux to avoid permission issues with the docker container not being able to write to the location, if you get permission issues ensure your user has access to the folder that you are using to encode."]})]}),"\n",(0,r.jsx)(n.admonition,{type:"caution",children:(0,r.jsx)(n.p,{children:"The Docker image ships with the default dependencies."})}),"\n",(0,r.jsx)(n.h2,{id:"installing-dependencies",children:"Installing Dependencies"}),"\n",(0,r.jsx)(n.p,{children:"You will need a chunk method installed as the built-in ones are very slow."}),"\n",(0,r.jsx)(n.h2,{id:"troubleshooting",children:"Troubleshooting"}),"\n",(0,r.jsx)(n.h3,{id:"error-the-file-xxxxxivf-could-not-be-opened-for-reading-open-file-error-with-mkvmerge-on-linux",children:"\"Error: The file 'XXXXX.ivf' could not be opened for reading: open file error.\" with mkvmerge on Linux"}),"\n",(0,r.jsxs)(n.p,{children:["Since mkvmerge opens all the encoded chunks at once, this obviously hits the default open file descriptor limit of 1024 on longer videos.\nYou can temporarily increase it with ",(0,r.jsx)(n.code,{children:"ulimit -n 20000"})," to allow opening 20,000 files at once in that session."]}),"\n",(0,r.jsx)(n.h3,{id:"gray-screen-flashing-for-a-single-frame-in-output",children:"Gray screen flashing for a single frame in output"}),"\n",(0,r.jsx)(n.p,{children:"This is a unique problem with Av1an. Since Av1an does random seeking for chunks, traditional keyframe-based decoding methods\nsuch as L-SMASH and FFMS2 may fail and result in a gray frame. There are currently only two known methods to solve this:"}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsxs)(n.li,{children:["Create a lossless intermediary with x264 ",(0,r.jsx)(n.code,{children:"-qp 0"}),", this always fixes all related seeking issues but will result in a huge file due to it's lossless nature."]}),"\n",(0,r.jsxs)(n.li,{children:["Using a linear-decoding chunk method such as ",(0,r.jsx)(n.code,{children:"bestsource"}),", the downside to this is it's mega slow. Tests shown encode speeds drop by a whopping 10-15x slower."]}),"\n",(0,r.jsxs)(n.li,{children:["Using ",(0,r.jsx)(n.code,{children:"dgdecnv"})," chunk method. ",(0,r.jsx)(n.code,{children:"dgdecnv"})," and ",(0,r.jsx)(n.code,{children:"DGIndexNV"}),' is a proprietary CUVID-accelerated Vapoursynth "Source" decoder created by ',(0,r.jsx)(n.a,{href:"https://www.rationalqm.us/",children:"Donald Alan Graft"})," where ",(0,r.jsx)(n.code,{children:"DGIndexNV"})," is the standalone program for seeking and ",(0,r.jsx)(n.code,{children:"dgdecnv"})," is the Vapoursynth plugin itself.\nIt is especially made with random seeking in mind which makes it perfect for Av1an. Only downside is you need an NVIDIA GPU and ",(0,r.jsx)(n.code,{children:"DGIndexNV"})," only supports x86_64 platforms."]}),"\n"]})]})}function p(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},9365:(e,n,i)=>{i.d(n,{A:()=>s});i(6540);var r=i(4164);const a={tabItem:"tabItem_Ymn6"};var t=i(4848);function s(e){let{children:n,hidden:i,className:s}=e;return(0,t.jsx)("div",{role:"tabpanel",className:(0,r.A)(a.tabItem,s),hidden:i,children:n})}},1470:(e,n,i)=>{i.d(n,{A:()=>j});var r=i(6540),a=i(4164),t=i(3104),s=i(6347),o=i(205),l=i(7485),c=i(1682),d=i(679);function u(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:i}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:i,attributes:r,default:a}}=e;return{value:n,label:i,attributes:r,default:a}}))}(i);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,i])}function p(e){let{value:n,tabValues:i}=e;return i.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:i}=e;const a=(0,s.W6)(),t=function(e){let{queryString:n=!1,groupId:i}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:n,groupId:i});return[(0,l.aZ)(t),(0,r.useCallback)((e=>{if(!t)return;const n=new URLSearchParams(a.location.search);n.set(t,e),a.replace({...a.location,search:n.toString()})}),[t,a])]}function g(e){const{defaultValue:n,queryString:i=!1,groupId:a}=e,t=h(e),[s,l]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!p({value:n,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=i.find((e=>e.default))??i[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:t}))),[c,u]=m({queryString:i,groupId:a}),[g,f]=function(e){let{groupId:n}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,t]=(0,d.Dv)(i);return[a,(0,r.useCallback)((e=>{i&&t.set(e)}),[i,t])]}({groupId:a}),v=(()=>{const e=c??g;return p({value:e,tabValues:t})?e:null})();(0,o.A)((()=>{v&&l(v)}),[v]);return{selectedValue:s,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:t}))throw new Error(`Can't select invalid tab value=${e}`);l(e),u(e),f(e)}),[u,f,t]),tabValues:t}}var f=i(2303);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=i(4848);function b(e){let{className:n,block:i,selectedValue:r,selectValue:s,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,t.a_)(),d=e=>{const n=e.currentTarget,i=l.indexOf(n),a=o[i].value;a!==r&&(c(n),s(a))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=l.indexOf(e.currentTarget)+1;n=l[i]??l[0];break}case"ArrowLeft":{const i=l.indexOf(e.currentTarget)-1;n=l[i]??l[l.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.A)("tabs",{"tabs--block":i},n),children:o.map((e=>{let{value:n,label:i,attributes:t}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>l.push(e),onKeyDown:u,onClick:d,...t,className:(0,a.A)("tabs__item",v.tabItem,t?.className,{"tabs__item--active":r===n}),children:i??n},n)}))})}function y(e){let{lazy:n,children:i,selectedValue:t}=e;const s=(Array.isArray(i)?i:[i]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===t));return e?(0,r.cloneElement)(e,{className:(0,a.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function w(e){const n=g(e);return(0,x.jsxs)("div",{className:(0,a.A)("tabs-container",v.tabList),children:[(0,x.jsx)(b,{...n,...e}),(0,x.jsx)(y,{...n,...e})]})}function j(e){const n=(0,f.A)();return(0,x.jsx)(w,{...e,children:u(e.children)},String(n))}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>o});var r=i(6540);const a={},t=r.createContext(a);function s(e){const n=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),r.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/5f74c797.aea89002.js b/assets/js/5f74c797.aea89002.js new file mode 100644 index 000000000..4d1568826 --- /dev/null +++ b/assets/js/5f74c797.aea89002.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5745],{4684:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>l,metadata:()=>r,toc:()=>u});const r=JSON.parse('{"id":"utilities/av1an","title":"Av1an","description":"Av1an is a video encoding framework. It can increase your encoding speed and improve CPU utilization by running multiple encoder processes in parallel. Target quality, VMAF plotting, and more, available to take advantage for video encoding.","source":"@site/docs/utilities/av1an.mdx","sourceDirName":"utilities","slug":"/utilities/av1an","permalink":"/docs/utilities/av1an","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/av1an.mdx","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"Av1an","sidebar_position":2,"templating":true},"sidebar":"tutorialSidebar","previous":{"title":"Aviator","permalink":"/docs/utilities/Aviator"},"next":{"title":"ffmpeg","permalink":"/docs/utilities/ffmpeg"}}');var a=i(4848),t=i(8453),s=i(1470),o=i(9365);const l={title:"Av1an",sidebar_position:2,templating:!0},c="Av1an",d={},u=[{value:"Prerequisites",id:"prerequisites",level:2},{value:"Installation",id:"installation",level:2},{value:"Windows",id:"windows",level:3},{value:"Script",id:"script",level:4},{value:"Pre-built Binary",id:"pre-built-binary",level:4},{value:"Compile from Source",id:"compile-from-source",level:4},{value:"macOS",id:"macos",level:3},{value:"Using MacPorts",id:"using-macports",level:4},{value:"Compile from Source",id:"compile-from-source-1",level:4},{value:"Linux",id:"linux",level:3},{value:"Package Managers",id:"package-managers",level:4},{value:"Compile from Source",id:"compile-from-source-2",level:4},{value:"Docker",id:"docker",level:3},{value:"Installing Dependencies",id:"installing-dependencies",level:2},{value:"Troubleshooting",id:"troubleshooting",level:2},{value:""Error: The file 'XXXXX.ivf' could not be opened for reading: open file error." with mkvmerge on Linux",id:"error-the-file-xxxxxivf-could-not-be-opened-for-reading-open-file-error-with-mkvmerge-on-linux",level:3},{value:"Gray screen flashing for a single frame in output",id:"gray-screen-flashing-for-a-single-frame-in-output",level:3}];function h(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.header,{children:(0,a.jsx)(n.h1,{id:"av1an",children:"Av1an"})}),"\n",(0,a.jsxs)("picture",{children:[(0,a.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/main/static/img/av1an_96_workers.avif",type:"image/avif"}),(0,a.jsx)("img",{src:"https://autumn.revolt.chat/attachments/K3OhOCAy9bkUCkImek_q3-t6q3zctbn9SbWW-_RI19/av1an_96_workers.webp",alt:"Av1an with 96 workers"})]}),"\n",(0,a.jsx)("br",{}),"\n",(0,a.jsx)("br",{}),"\n",(0,a.jsx)(n.p,{children:"Av1an is a video encoding framework. It can increase your encoding speed and improve CPU utilization by running multiple encoder processes in parallel. Target quality, VMAF plotting, and more, available to take advantage for video encoding."}),"\n",(0,a.jsx)(n.p,{children:'The only downside to this, is that RAM usage increases significantly with each "worker" you add, so if you have a low amount of RAM (< 8GB), this might not be that useful to you.'}),"\n",(0,a.jsx)(n.admonition,{type:"caution",children:(0,a.jsx)(n.p,{children:"Av1an does not ship with any dependencies except for it's Docker image, so you will have to provide them on your own."})}),"\n",(0,a.jsx)(n.h2,{id:"prerequisites",children:"Prerequisites"}),"\n",(0,a.jsxs)(n.p,{children:["You will need Python, ",(0,a.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," and ",(0,a.jsx)(n.a,{href:"/docs/filtering/vapoursynth",children:"Vapoursynth"})," to be installed regardless of your current operating system."]}),"\n",(0,a.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,a.jsx)(n.h3,{id:"windows",children:"Windows"}),"\n",(0,a.jsx)(n.h4,{id:"script",children:"Script"}),"\n",(0,a.jsxs)(n.p,{children:["Windows users can use this ",(0,a.jsx)(n.a,{href:"https://github.com/Hishiro64/av1an-win-script",children:"script"})," which installs everything needed in a single portable folder. Do note that you will need to update the dependencies manually once installed."]}),"\n",(0,a.jsx)(n.h4,{id:"pre-built-binary",children:"Pre-built Binary"}),"\n",(0,a.jsxs)(n.p,{children:['Av1an is available as a pre-built binary under the "',(0,a.jsx)(n.a,{href:"https://github.com/master-of-zen/Av1an/releases/tag/latest",children:"latest"}),'" tag on GitHub releases, you can simply download that and place it wherever you want.']}),"\n",(0,a.jsx)(n.h4,{id:"compile-from-source",children:"Compile from Source"}),"\n",(0,a.jsxs)(n.p,{children:["To compile from source, it is easier to use mingw-w64 which comes with ",(0,a.jsx)(n.a,{href:"https://msys2.org",children:"MSYS2"}),". Once installed, open MinGW64 and run the following:"]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"pacman -Syuu; pacman -S cmake git nasm python3 mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake base-devel mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-rust mingw-w64-x86_64-lld mingw-w64-x86_64-clang mingw-w64-x86_64-make\n"})}),"\n",(0,a.jsxs)(n.p,{children:["Then, before you do anything further. Download Vapoursynth ",(0,a.jsx)(n.strong,{children:"portable"})," (",(0,a.jsx)(n.code,{children:"VapourSynth64-Portable-RXX.7z"}),") from its GitHub ",(0,a.jsx)(n.a,{href:"https://github.com/vapoursynth/vapoursynth/releases",children:"release page"}),". Make sure the version you chose is compatible with the current MinGW64 Python version. For example, R65 supports 3.8 and 3.11, the version from Pacman (currently) is 3.11, so you should choose that."]}),"\n",(0,a.jsxs)(n.p,{children:["After downloading, open the 7z file and head to ",(0,a.jsx)(n.code,{children:"\\sdk\\lib64"}),", copy all the libraries from there to MinGW64's ",(0,a.jsx)(n.code,{children:"lib"})," directory, this usually resides in ",(0,a.jsx)(n.code,{children:"C:\\msys64\\mingw64\\lib"}),"."]}),"\n",(0,a.jsx)(n.p,{children:"Now finally, resume your session and run the following:"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/master-of-zen/Av1an\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})}),"\n",(0,a.jsxs)(n.p,{children:["The binary will be available in ",(0,a.jsx)(n.code,{children:"C:\\msys64\\home\\USER\\Av1an\\target\\release"}),". The ",(0,a.jsx)(n.code,{children:"USER"})," part is your Windows username."]}),"\n",(0,a.jsx)(n.h3,{id:"macos",children:"macOS"}),"\n",(0,a.jsx)(n.h4,{id:"using-macports",children:"Using MacPorts"}),"\n",(0,a.jsx)(n.p,{children:"Av1an is available in the MacPorts repository, to install just simply run:"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"port install av1an\n"})}),"\n",(0,a.jsx)(n.h4,{id:"compile-from-source-1",children:"Compile from Source"}),"\n",(0,a.jsxs)(n.p,{children:["You need to have Git, Nasm, and Rust to be installed first. You can achieve this by using ",(0,a.jsx)(n.a,{href:"https://brew.sh/",children:"Homebrew"})," or similar."]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/master-of-zen/Av1an\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})}),"\n",(0,a.jsxs)(n.p,{children:["Binary is located in ",(0,a.jsx)(n.code,{children:"Av1an/target/release"}),", you can optionally place it somewhere like ",(0,a.jsx)(n.code,{children:"/usr/local/bin"}),"."]}),"\n",(0,a.jsx)(n.h3,{id:"linux",children:"Linux"}),"\n",(0,a.jsx)(n.h4,{id:"package-managers",children:"Package Managers"}),"\n",(0,a.jsx)(n.p,{children:"Av1an is available in the package manager of some distributions such as Arch Linux. If not, you can skip to the next part every Linux user is familiar with."}),"\n",(0,a.jsx)(n.h4,{id:"compile-from-source-2",children:"Compile from Source"}),"\n",(0,a.jsx)(n.p,{children:"Just like macOS, you need to have Git, Nasm, and Rust to be installed. Can be achieved by either using your package manager or Rustup for Rust."}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/master-of-zen/Av1an.git\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})}),"\n",(0,a.jsxs)(n.p,{children:["Binary is located in ",(0,a.jsx)(n.code,{children:"Av1an/target/release"}),", you can optionally place it somewhere like ",(0,a.jsx)(n.code,{children:"/usr/local/bin"})," or ",(0,a.jsx)(n.code,{children:"/usr/bin"}),"."]}),"\n",(0,a.jsx)(n.h3,{id:"docker",children:"Docker"}),"\n",(0,a.jsx)(n.p,{children:"The following examples assume the file you want to encode is in your current working directory."}),"\n",(0,a.jsxs)(s.A,{children:[(0,a.jsx)(o.A,{value:"windows",label:"Windows",default:!0,children:(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'docker run --privileged -v "$(pwd):/videos" --user $(id -u):$(id -g) -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}\n'})})}),(0,a.jsx)(o.A,{value:"linux",label:"Linux",children:(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'docker run --privileged -v "${PWD}:/videos" -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}\n'})})}),(0,a.jsxs)(o.A,{value:"build",label:"Manual Build",children:[(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'docker build -t "av1an" .\n'})}),(0,a.jsx)(n.p,{children:"Run in the root directory of the repository. The dependencies will automatically be installed into the image, no manual installations necessary."})]})]}),"\n",(0,a.jsxs)(n.admonition,{type:"info",children:[(0,a.jsx)(n.p,{children:"To specify a different directory to use you would replace $(pwd) with the directory"}),(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'docker run --privileged -v "/c/Users/masterofzen/Videos":/videos --user $(id -u):$(id -g) -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}\n'})}),(0,a.jsxs)(n.p,{children:["The ",(0,a.jsx)(n.code,{children:"--user"})," flag is required on Linux to avoid permission issues with the docker container not being able to write to the location, if you get permission issues ensure your user has access to the folder that you are using to encode."]})]}),"\n",(0,a.jsx)(n.admonition,{type:"caution",children:(0,a.jsx)(n.p,{children:"The Docker image ships with the default dependencies."})}),"\n",(0,a.jsx)(n.h2,{id:"installing-dependencies",children:"Installing Dependencies"}),"\n",(0,a.jsx)(n.p,{children:"You will need a chunk method installed as the built-in ones are very slow."}),"\n",(0,a.jsx)(n.h2,{id:"troubleshooting",children:"Troubleshooting"}),"\n",(0,a.jsx)(n.h3,{id:"error-the-file-xxxxxivf-could-not-be-opened-for-reading-open-file-error-with-mkvmerge-on-linux",children:"\"Error: The file 'XXXXX.ivf' could not be opened for reading: open file error.\" with mkvmerge on Linux"}),"\n",(0,a.jsxs)(n.p,{children:["Since mkvmerge opens all the encoded chunks at once, this obviously hits the default open file descriptor limit of 1024 on longer videos.\nYou can temporarily increase it with ",(0,a.jsx)(n.code,{children:"ulimit -n 20000"})," to allow opening 20,000 files at once in that session."]}),"\n",(0,a.jsx)(n.h3,{id:"gray-screen-flashing-for-a-single-frame-in-output",children:"Gray screen flashing for a single frame in output"}),"\n",(0,a.jsx)(n.p,{children:"This is a unique problem with Av1an. Since Av1an does random seeking for chunks, traditional keyframe-based decoding methods\nsuch as L-SMASH and FFMS2 may fail and result in a gray frame. There are currently only two known methods to solve this:"}),"\n",(0,a.jsxs)(n.ol,{children:["\n",(0,a.jsxs)(n.li,{children:["Create a lossless intermediary with x264 ",(0,a.jsx)(n.code,{children:"-qp 0"}),", this always fixes all related seeking issues but will result in a huge file due to it's lossless nature."]}),"\n",(0,a.jsxs)(n.li,{children:["Using a linear-decoding chunk method such as ",(0,a.jsx)(n.code,{children:"bestsource"}),", the downside to this is it's mega slow. Tests shown encode speeds drop by a whopping 10-15x slower."]}),"\n",(0,a.jsxs)(n.li,{children:["Using ",(0,a.jsx)(n.code,{children:"dgdecnv"})," chunk method. ",(0,a.jsx)(n.code,{children:"dgdecnv"})," and ",(0,a.jsx)(n.code,{children:"DGIndexNV"}),' is a proprietary CUVID-accelerated Vapoursynth "Source" decoder created by ',(0,a.jsx)(n.a,{href:"https://www.rationalqm.us/",children:"Donald Alan Graft"})," where ",(0,a.jsx)(n.code,{children:"DGIndexNV"})," is the standalone program for seeking and ",(0,a.jsx)(n.code,{children:"dgdecnv"})," is the Vapoursynth plugin itself.\nIt is especially made with random seeking in mind which makes it perfect for Av1an. Only downside is you need an NVIDIA GPU and ",(0,a.jsx)(n.code,{children:"DGIndexNV"})," only supports x86_64 platforms."]}),"\n"]})]})}function p(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},9365:(e,n,i)=>{i.d(n,{A:()=>s});i(6540);var r=i(4164);const a={tabItem:"tabItem_Ymn6"};var t=i(4848);function s(e){let{children:n,hidden:i,className:s}=e;return(0,t.jsx)("div",{role:"tabpanel",className:(0,r.A)(a.tabItem,s),hidden:i,children:n})}},1470:(e,n,i)=>{i.d(n,{A:()=>j});var r=i(6540),a=i(4164),t=i(3104),s=i(6347),o=i(205),l=i(7485),c=i(1682),d=i(679);function u(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:i}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:i,attributes:r,default:a}}=e;return{value:n,label:i,attributes:r,default:a}}))}(i);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,i])}function p(e){let{value:n,tabValues:i}=e;return i.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:i}=e;const a=(0,s.W6)(),t=function(e){let{queryString:n=!1,groupId:i}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:n,groupId:i});return[(0,l.aZ)(t),(0,r.useCallback)((e=>{if(!t)return;const n=new URLSearchParams(a.location.search);n.set(t,e),a.replace({...a.location,search:n.toString()})}),[t,a])]}function g(e){const{defaultValue:n,queryString:i=!1,groupId:a}=e,t=h(e),[s,l]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!p({value:n,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=i.find((e=>e.default))??i[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:t}))),[c,u]=m({queryString:i,groupId:a}),[g,f]=function(e){let{groupId:n}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,t]=(0,d.Dv)(i);return[a,(0,r.useCallback)((e=>{i&&t.set(e)}),[i,t])]}({groupId:a}),v=(()=>{const e=c??g;return p({value:e,tabValues:t})?e:null})();(0,o.A)((()=>{v&&l(v)}),[v]);return{selectedValue:s,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:t}))throw new Error(`Can't select invalid tab value=${e}`);l(e),u(e),f(e)}),[u,f,t]),tabValues:t}}var f=i(2303);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=i(4848);function b(e){let{className:n,block:i,selectedValue:r,selectValue:s,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,t.a_)(),d=e=>{const n=e.currentTarget,i=l.indexOf(n),a=o[i].value;a!==r&&(c(n),s(a))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=l.indexOf(e.currentTarget)+1;n=l[i]??l[0];break}case"ArrowLeft":{const i=l.indexOf(e.currentTarget)-1;n=l[i]??l[l.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.A)("tabs",{"tabs--block":i},n),children:o.map((e=>{let{value:n,label:i,attributes:t}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>l.push(e),onKeyDown:u,onClick:d,...t,className:(0,a.A)("tabs__item",v.tabItem,t?.className,{"tabs__item--active":r===n}),children:i??n},n)}))})}function y(e){let{lazy:n,children:i,selectedValue:t}=e;const s=(Array.isArray(i)?i:[i]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===t));return e?(0,r.cloneElement)(e,{className:(0,a.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function w(e){const n=g(e);return(0,x.jsxs)("div",{className:(0,a.A)("tabs-container",v.tabList),children:[(0,x.jsx)(b,{...n,...e}),(0,x.jsx)(y,{...n,...e})]})}function j(e){const n=(0,f.A)();return(0,x.jsx)(w,{...e,children:u(e.children)},String(n))}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>o});var r=i(6540);const a={},t=r.createContext(a);function s(e){const n=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),r.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6256.71aff5ef.js b/assets/js/6256.73278753.js similarity index 98% rename from assets/js/6256.71aff5ef.js rename to assets/js/6256.73278753.js index a6a484a70..6d9afb1e6 100644 --- a/assets/js/6256.71aff5ef.js +++ b/assets/js/6256.73278753.js @@ -1,2 +1,2 @@ -/*! For license information please see 6256.71aff5ef.js.LICENSE.txt */ -(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6256],{2200:(e,t,n)=>{"use strict";n.d(t,{z1:()=>S,cM:()=>b});var r=n(2456),o=n(6250),i=2,a=.16,l=.05,c=.05,s=.15,u=5,d=4,f=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function p(e){var t=e.r,n=e.g,o=e.b,i=(0,r.wE)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function v(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.Ob)(t,n,o,!1))}function m(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-i*t:Math.round(e.h)+i*t:n?Math.round(e.h)+i*t:Math.round(e.h)-i*t)<0?r+=360:r>=360&&(r-=360),r}function h(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-a*t:t===d?e.s+a:e.s+l*t)>1&&(r=1),n&&t===u&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function g(e,t,n){var r;return(r=n?e.v+c*t:e.v-s*t)>1&&(r=1),Number(r.toFixed(2))}function b(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.RO)(e),i=u;i>0;i-=1){var a=p(r),l=v((0,o.RO)({h:m(a,i,!0),s:h(a,i,!0),v:g(a,i,!0)}));n.push(l)}n.push(v(r));for(var c=1;c<=d;c+=1){var s=p(r),b=v((0,o.RO)({h:m(s,c),s:h(s,c),v:g(s,c)}));n.push(b)}return"dark"===t.theme?f.map((function(e){var r,i,a,l=e.index,c=e.opacity;return v((r=(0,o.RO)(t.backgroundColor||"#141414"),i=(0,o.RO)(n[l]),a=100*c/100,{r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b}))})):n}var y={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},A={},w={};Object.keys(y).forEach((function(e){A[e]=b(y[e]),A[e].primary=A[e][5],w[e]=b(y[e],{theme:"dark",backgroundColor:"#141414"}),w[e].primary=w[e][5]}));A.red,A.volcano,A.gold,A.orange,A.yellow,A.lime,A.green,A.cyan;var S=A.blue;A.geekblue,A.purple,A.magenta,A.grey,A.grey},1466:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>lt,an:()=>O,Ki:()=>_,zA:()=>L,RC:()=>it,hV:()=>ee,IV:()=>rt});var r=n(4467),o=n(6636),i=n(4241),a=n(9379);const l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var c=n(5089),s=n(6540),u=n.t(s,2),d=(n(8104),n(3210),n(3029)),f=n(2901),p="%";function v(e){return e.join(p)}const m=function(){function e(t){(0,d.A)(this,e),(0,r.A)(this,"instanceId",void 0),(0,r.A)(this,"cache",new Map),this.instanceId=t}return(0,f.A)(e,[{key:"get",value:function(e){return this.opGet(v(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(v(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();var h="data-token-hash",g="data-css-hash",b="__cssinjs_instance__";function y(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(g,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[b]=t[b]||e,t[b]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(g,"]"))).forEach((function(t){var n,o=t.getAttribute(g);r[o]?t[b]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new m(e)}var A=s.createContext({hashPriority:"low",cache:y(),defaultCache:!0});const w=A;var S=n(2284),x=n(998);var C=function(){function e(){(0,d.A)(this,e),(0,r.A)(this,"cache",void 0),(0,r.A)(this,"keys",void 0),(0,r.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,f.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce((function(e,t){var n=(0,o.A)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),E+=1}return(0,f.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),$=new C;function O(e){var t=Array.isArray(e)?e:[e];return $.has(t)||$.set(t,new M(t)),$.get(t)}var T=new WeakMap,R={};var z=new WeakMap;function P(e){var t=z.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof M?t+=r.id:r&&"object"===(0,S.A)(r)?t+=P(r):t+=r})),z.set(e,t)),t}function N(e,t){return l("".concat(t,"_").concat(P(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var I=(0,x.A)();function L(e){return"number"==typeof e?"".concat(e,"px"):e}function j(e,t,n){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var l=(0,a.A)((0,a.A)({},i),{},(o={},(0,r.A)(o,h,t),(0,r.A)(o,g,n),o)),c=Object.keys(l).map((function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var _=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},H=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},D=function(e,t,n){var r={},i={};return Object.entries(e).forEach((function(e){var t,a,l=(0,o.A)(e,2),c=l[0],s=l[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[c])i[c]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[c])){var u,d=_(c,null==n?void 0:n.prefix);r[d]="number"!=typeof s||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[c]?String(s):"".concat(s,"px"),i[c]="var(".concat(d,")")}})),[i,H(r,t,{scope:null==n?void 0:n.scope})]},B=n(981),W=(0,a.A)({},u).useInsertionEffect;const F=W?function(e,t,n){return W((function(){return e(),t()}),n)}:function(e,t,n){s.useMemo(e,n),(0,B.A)((function(){return t(!0)}),n)};const X=void 0!==(0,a.A)({},u).useInsertionEffect?function(e){var t=[],n=!1;return s.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};const K=function(){return!1};function G(e,t,n,r,a){var l=s.useContext(w).cache,c=v([e].concat((0,i.A)(t))),u=X([c]),d=(K(),function(e){l.opUpdate(c,(function(t){var r=t||[void 0,void 0],i=(0,o.A)(r,2),a=i[0];var l=[void 0===a?0:a,i[1]||n()];return e?e(l):l}))});s.useMemo((function(){d()}),[c]);var f=l.opGet(c)[1];return F((function(){null==a||a(f)}),(function(e){return d((function(t){var n=(0,o.A)(t,2),r=n[0],i=n[1];return e&&0===r&&(null==a||a(f)),[r+1,i]})),function(){l.opUpdate(c,(function(t){var n=t||[],i=(0,o.A)(n,2),a=i[0],s=void 0===a?0:a,d=i[1];return 0===s-1?(u((function(){!e&&l.opGet(c)||null==r||r(d,!1)})),null):[s-1,d]}))}}),[c]),f}var q={},Y="css",U=new Map;var V=0;function Q(e,t){U.set(e,(U.get(e)||0)-1);var n=Array.from(U.keys()),r=n.filter((function(e){return(U.get(e)||0)<=0}));n.length-r.length>V&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(h,'="').concat(e,'"]')).forEach((function(e){var n;e[b]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),U.delete(e)}))}var Z=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,a.A)((0,a.A)({},o),t);return r&&(i=r(i)),i},J="token";function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,s.useContext)(w),u=r.cache.instanceId,d=r.container,f=n.salt,p=void 0===f?"":f,v=n.override,m=void 0===v?q:v,y=n.formatToken,A=n.getComputedToken,S=n.cssVar,x=function(e,t){for(var n=T,r=0;r0?ve(ke,--xe):0,we--,10===Ce&&(we=1,Ae--),Ce}function $e(){return Ce=xe2||ze(Ce)>3?"":" "}function je(e,t){for(;--t&&$e()&&!(Ce<48||Ce>102||Ce>57&&Ce<65||Ce>70&&Ce<97););return Re(e,Te()+(t<6&&32==Oe()&&32==$e()))}function _e(e){for(;$e();)switch(Ce){case e:return xe;case 34:case 39:34!==e&&39!==e&&_e(Ce);break;case 40:41===e&&_e(e);break;case 92:$e()}return xe}function He(e,t){for(;$e()&&e+Ce!==57&&(e+Ce!==84||47!==Oe()););return"/*"+Re(t,xe-1)+"*"+ue(47===e?e:$e())}function De(e){for(;!ze(Oe());)$e();return Re(e,xe)}function Be(e){return Ne(We("",null,null,null,[""],e=Pe(e),0,[0],e))}function We(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,v=0,m=1,h=1,g=1,b=0,y="",A=o,w=i,S=r,x=y;h;)switch(v=b,b=$e()){case 40:if(108!=v&&58==ve(x,d-1)){-1!=pe(x+=fe(Ie(b),"&","&\f"),"&\f",se(s?l[s-1]:0))&&(g=-1);break}case 34:case 39:case 91:x+=Ie(b);break;case 9:case 10:case 13:case 32:x+=Le(v);break;case 92:x+=je(Te()-1,7);continue;case 47:switch(Oe()){case 42:case 47:ge(Xe(He($e(),Te()),t,n,c),c);break;default:x+="/"}break;case 123*m:l[s++]=he(x)*g;case 125*m:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==g&&(x=fe(x,/\f/g,"")),p>0&&he(x)-d&&ge(p>32?Ke(x+";",r,n,d-1,c):Ke(fe(x," ","")+";",r,n,d-2,c),c);break;case 59:x+=";";default:if(ge(S=Fe(x,t,n,s,u,o,l,y,A=[],w=[],d,i),i),123===b)if(0===u)We(x,t,S,S,A,i,d,l,w);else switch(99===f&&110===ve(x,3)?100:f){case 100:case 108:case 109:case 115:We(e,S,S,r&&ge(Fe(e,S,S,0,0,o,l,y,o,A=[],d,w),w),o,w,d,l,r?A:w);break;default:We(x,S,S,S,[""],w,0,l,w)}}s=u=p=0,m=g=1,y=x="",d=a;break;case 58:d=1+he(x),p=v;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Me())continue;switch(x+=ue(b),b*m){case 38:g=u>0?1:(x+="\f",-1);break;case 44:l[s++]=(he(x)-1)*g,g=1;break;case 64:45===Oe()&&(x+=Ie($e())),f=Oe(),u=d=he(y=x+=De(Te())),b++;break;case 45:45===v&&2==he(x)&&(m=0)}}return i}function Fe(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],v=function(e){return e.length}(p),m=0,h=0,g=0;m0?p[b]+" "+y:fe(y,/&\f/g,p[b])))&&(c[g++]=A);return Ee(e,t,n,0===o?oe:l,c,s,u,d)}function Xe(e,t,n,r){return Ee(e,t,n,re,ue(Ce),me(e,2,-2),0,r)}function Ke(e,t,n,r,o){return Ee(e,t,n,ie,me(e,0,r),me(e,r+1,-1),r,o)}var Ge,qe="data-ant-cssinjs-cache-path",Ye="_FILE_STYLE__";var Ue=!0;function Ve(e){return function(){if(!Ge&&(Ge={},(0,x.A)())){var e=document.createElement("div");e.className=qe,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,o.A)(t,2),r=n[0],i=n[1];Ge[r]=i}));var n,r=document.querySelector("style[".concat(qe,"]"));r&&(Ue=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ge[e]}var Qe="_multi_value_";function Ze(e){return be(Be(e),ye).replace(/\{%%%\:[^;];}/g,";")}var Je=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},l=r.root,c=r.injectHash,s=r.parentSelectors,u=n.hashId,d=n.layer,f=(n.path,n.hashPriority),p=n.transformers,v=void 0===p?[]:p,m=(n.linters,""),h={};function g(t){var r=t.getName(u);if(!h[r]){var i=e(t.style,n,{root:!1,parentSelectors:s}),a=(0,o.A)(i,1)[0];h[r]="@keyframes ".concat(t.getName(u)).concat(a)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return b.forEach((function(t){var r="string"!=typeof t||l?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)g(r);else{var d=v.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(d).forEach((function(t){var r=d[t];if("object"!==(0,S.A)(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===(0,S.A)(e)&&e&&("_skip_check_"in e||Qe in e)}(r)){var p;function E(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;ne[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(g(t),r=t.getName(u)),m+="".concat(n,":").concat(r,";")}var v=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,S.A)(r)&&null!=r&&r[Qe]&&Array.isArray(v)?v.forEach((function(e){E(t,e)})):E(t,v)}else{var b=!1,y=t.trim(),A=!1;(l||c)&&u?y.startsWith("@")?b=!0:y=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,i.A)(n.slice(1))).join(" ")})).join(",")}(t,u,f):!l||u||"&"!==y&&""!==y||(y="",A=!0);var w=e(r,n,{root:A,injectHash:b,parentSelectors:[].concat((0,i.A)(s),[y])}),x=(0,o.A)(w,2),C=x[0],k=x[1];h=(0,a.A)((0,a.A)({},h),k),m+="".concat(y).concat(C)}}))}})),l?d&&(m="@layer ".concat(d.name," {").concat(m,"}"),d.dependencies&&(h["@layer ".concat(d.name)]=d.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(d.name,";")})).join("\n"))):m="{".concat(m,"}"),[m,h]};function et(e,t){return l("".concat(e.join("%")).concat(t))}function tt(){return null}var nt="style";function rt(e,t){var n=e.token,l=e.path,u=e.hashId,d=e.layer,f=e.nonce,p=e.clientOnly,v=e.order,m=void 0===v?0:v,y=s.useContext(w),A=y.autoClear,S=(y.mock,y.defaultCache),C=y.hashPriority,k=y.container,E=y.ssrInline,M=y.transformers,$=y.linters,O=y.cache,T=y.layer,R=n._tokenKey,z=[R];T&&z.push("layer"),z.push.apply(z,(0,i.A)(l));var P=I;var N=G(nt,z,(function(){var e=z.join("|");if(Ve(e)){var n=function(e){var t=Ge[e],n=null;if(t&&(0,x.A)())if(Ue)n=Ye;else{var r=document.querySelector("style[".concat(g,'="').concat(Ge[e],'"]'));r?n=r.innerHTML:delete Ge[e]}return[n,t]}(e),r=(0,o.A)(n,2),i=r[0],a=r[1];if(i)return[i,R,a,{},p,m]}var c=t(),s=Je(c,{hashId:u,hashPriority:C,layer:T?d:void 0,path:l.join("-"),transformers:M,linters:$}),f=(0,o.A)(s,2),v=f[0],h=f[1],b=Ze(v),y=et(z,b);return[b,R,y,h,p,m]}),(function(e,t){var n=(0,o.A)(e,3)[2];(t||A)&&I&&(0,c.m6)(n,{mark:g})}),(function(e){var t=(0,o.A)(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(P&&n!==Ye){var l={mark:g,prepend:!T&&"queue",attachTo:k,priority:m},s="function"==typeof f?f():f;s&&(l.csp={nonce:s});var u=[],d=[];Object.keys(i).forEach((function(e){e.startsWith("@layer")?u.push(e):d.push(e)})),u.forEach((function(e){(0,c.BD)(Ze(i[e]),"_layer-".concat(e),(0,a.A)((0,a.A)({},l),{},{prepend:!0}))}));var p=(0,c.BD)(n,r,l);p[b]=O.instanceId,p.setAttribute(h,R),d.forEach((function(e){(0,c.BD)(Ze(i[e]),"_effect-".concat(e),l)}))}})),L=(0,o.A)(N,3),j=L[0],_=L[1],H=L[2];return function(e){var t,n;E&&!P&&S?t=s.createElement("style",(0,te.A)({},(n={},(0,r.A)(n,h,_),(0,r.A)(n,g,H),n),{dangerouslySetInnerHTML:{__html:j}})):t=s.createElement(tt,null);return s.createElement(s.Fragment,null,t,e)}}var ot="cssVar";const it=function(e,t){var n=e.key,r=e.prefix,a=e.unitless,l=e.ignore,u=e.token,d=e.scope,f=void 0===d?"":d,p=(0,s.useContext)(w),v=p.cache.instanceId,m=p.container,y=u._tokenKey,A=[].concat((0,i.A)(e.path),[n,f,y]);return G(ot,A,(function(){var e=t(),i=D(e,n,{prefix:r,unitless:a,ignore:l,scope:f}),c=(0,o.A)(i,2),s=c[0],u=c[1];return[s,u,et(A,u),n]}),(function(e){var t=(0,o.A)(e,3)[2];I&&(0,c.m6)(t,{mark:g})}),(function(e){var t=(0,o.A)(e,3),r=t[1],i=t[2];if(r){var a=(0,c.BD)(r,i,{mark:g,prepend:"queue",attachTo:m,priority:-999});a[b]=v,a.setAttribute(h,n)}}))};var at;at={},(0,r.A)(at,nt,(function(e,t,n){var r=(0,o.A)(e,6),i=r[0],a=r[1],l=r[2],c=r[3],s=r[4],u=r[5],d=(n||{}).plain;if(s)return null;var f=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return f=j(i,a,l,p,d),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var n=j(Ze(c[e]),a,"_effect-".concat(e),p,d);e.startsWith("@layer")?f=n+f:f+=n}})),[u,l,f]})),(0,r.A)(at,J,(function(e,t,n){var r=(0,o.A)(e,5),i=r[2],a=r[3],l=r[4],c=(n||{}).plain;if(!a)return null;var s=i._tokenKey;return[-999,s,j(a,l,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),(0,r.A)(at,ot,(function(e,t,n){var r=(0,o.A)(e,4),i=r[1],a=r[2],l=r[3],c=(n||{}).plain;if(!i)return null;return[-999,a,j(i,l,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]}));const lt=function(){function e(t,n){(0,d.A)(this,e),(0,r.A)(this,"name",void 0),(0,r.A)(this,"style",void 0),(0,r.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,f.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function ct(e){return e.notSplit=!0,e}ct(["borderTop","borderBottom"]),ct(["borderTop"]),ct(["borderBottom"]),ct(["borderLeft","borderRight"]),ct(["borderLeft"]),ct(["borderRight"])},8046:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(8168),o=n(6636),i=n(4467),a=n(45),l=n(6540),c=n(6942),s=n.n(c),u=n(2200);const d=(0,l.createContext)({});var f=n(9379),p=n(2284),v=n(5089),m=n(2633),h=n(8210);function g(e){return"object"===(0,p.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.A)(e.icon)||"function"==typeof e.icon)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function y(e,t,n){return n?l.createElement(e.tag,(0,f.A)((0,f.A)({key:t},b(e.attrs)),n),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):l.createElement(e.tag,(0,f.A)({key:t},b(e.attrs)),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function A(e){return(0,u.cM)(e)[0]}function w(e){return e?Array.isArray(e)?e:[e]:[]}var S=["icon","className","onClick","style","primaryColor","secondaryColor"],x={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var C=function(e){var t,n,r,o,i,c,s,u=e.icon,p=e.className,b=e.onClick,w=e.style,C=e.primaryColor,k=e.secondaryColor,E=(0,a.A)(e,S),M=l.useRef(),$=x;if(C&&($={primaryColor:C,secondaryColor:k||A(C)}),t=M,n=(0,l.useContext)(d),r=n.csp,o=n.prefixCls,i="\n.anticon {\n display: inline-flex;\n alignItems: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(i=i.replace(/anticon/g,o)),(0,l.useEffect)((function(){var e=t.current,n=(0,m.j)(e);(0,v.BD)(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})}),[]),c=g(u),s="icon should be icon definiton, but got ".concat(u),(0,h.Ay)(c,"[@ant-design/icons] ".concat(s)),!g(u))return null;var O=u;return O&&"function"==typeof O.icon&&(O=(0,f.A)((0,f.A)({},O),{},{icon:O.icon($.primaryColor,$.secondaryColor)})),y(O.icon,"svg-".concat(O.name),(0,f.A)((0,f.A)({className:p,onClick:b,style:w,"data-icon":O.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},E),{},{ref:M}))};C.displayName="IconReact",C.getTwoToneColors=function(){return(0,f.A)({},x)},C.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;x.primaryColor=t,x.secondaryColor=n||A(t),x.calculated=!!n};const k=C;function E(e){var t=w(e),n=(0,o.A)(t,2),r=n[0],i=n[1];return k.setTwoToneColors({primaryColor:r,secondaryColor:i})}var M=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];E(u.z1.primary);var $=l.forwardRef((function(e,t){var n=e.className,c=e.icon,u=e.spin,f=e.rotate,p=e.tabIndex,v=e.onClick,m=e.twoToneColor,h=(0,a.A)(e,M),g=l.useContext(d),b=g.prefixCls,y=void 0===b?"anticon":b,A=g.rootClassName,S=s()(A,y,(0,i.A)((0,i.A)({},"".concat(y,"-").concat(c.name),!!c.name),"".concat(y,"-spin"),!!u||"loading"===c.name),n),x=p;void 0===x&&v&&(x=-1);var C=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,E=w(m),$=(0,o.A)(E,2),O=$[0],T=$[1];return l.createElement("span",(0,r.A)({role:"img","aria-label":c.name},h,{ref:t,tabIndex:x,onClick:v,className:S}),l.createElement(k,{icon:c,primaryColor:O,secondaryColor:T,style:C}))}));$.displayName="AntdIcon",$.getTwoToneColor=function(){var e=k.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},$.setTwoToneColor=E;const O=$},6467:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=n(8046),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},8633:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var a=n(8046),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},363:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=n(8046),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},2456:(e,t,n)=>{"use strict";n.d(t,{H:()=>d,K6:()=>i,Me:()=>s,Ob:()=>u,YL:()=>l,_:()=>o,g8:()=>v,n6:()=>p,oS:()=>m,wE:()=>c});var r=n(9244);function o(e,t,n){return{r:255*(0,r.Cg)(e,255),g:255*(0,r.Cg)(t,255),b:255*(0,r.Cg)(n,255)}}function i(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=0,c=(o+i)/2;if(o===i)l=0,a=0;else{var s=o-i;switch(l=c>.5?s/(2-o-i):s/(o+i),o){case e:a=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){var o,i,l;if(e=(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100),0===t)i=n,l=n,o=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;o=a(s,c,e+1/3),i=a(s,c,e),l=a(s,c,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function c(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=o,c=o-i,s=0===o?0:c/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/c+(t>16,g:(65280&e)>>8,b:255&e}}},2434:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},6250:(e,t,n)=>{"use strict";n.d(t,{RO:()=>a});var r=n(2456),o=n(2434),i=n(9244);function a(e){var t={r:0,g:0,b:0},n=1,a=null,l=null,c=null,s=!1,f=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(o.D[e])e=o.D[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=u.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=u.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=u.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=u.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=u.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=u.hex8.exec(e),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),a:(0,r.n6)(n[4]),format:t?"name":"hex8"};if(n=u.hex6.exec(e),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:t?"name":"hex"};if(n=u.hex4.exec(e),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),a:(0,r.n6)(n[4]+n[4]),format:t?"name":"hex8"};if(n=u.hex3.exec(e),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r._)(e.r,e.g,e.b),s=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(a=(0,i.Px)(e.s),l=(0,i.Px)(e.v),t=(0,r.Me)(e.h,a,l),s=!0,f="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(a=(0,i.Px)(e.s),c=(0,i.Px)(e.l),t=(0,r.YL)(e.h,a,c),s=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.TV)(n),{ok:s,format:e.format||f,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+c),rgba:new RegExp("rgba"+s),hsl:new RegExp("hsl"+c),hsla:new RegExp("hsla"+s),hsv:new RegExp("hsv"+c),hsva:new RegExp("hsva"+s),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},4978:(e,t,n)=>{"use strict";n.d(t,{q:()=>l});var r=n(2456),o=n(2434),i=n(6250),a=n(9244),l=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.oS)(t)),this.originalInput=t;var a=(0,i.RO)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.TV)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.wE)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.wE)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.K6)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.K6)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.Ob)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.H)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.Cg)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.Cg)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.Ob)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.D);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a{"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{Cg:()=>r,J$:()=>o,Px:()=>a,TV:()=>i,wl:()=>l})},5470:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(6636),o=n(6540),i=n(961),a=n(998),l=(n(8210),n(8719));const c=o.createContext(null);var s=n(4241),u=n(981),d=[];var f=n(5089);function p(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";(0,f.BD)("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(m){console.error(m),r=c,o=s}}document.body.appendChild(n);var p=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,v=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),(0,f.m6)(t),{width:p,height:v}}var v="rc-util-locker-".concat(Date.now()),m=0;function h(e){var t=!!e,n=o.useState((function(){return m+=1,"".concat(v,"_").concat(m)})),i=(0,r.A)(n,1)[0];(0,u.A)((function(){if(t){var e=(r=document.body,"undefined"!=typeof document&&r&&r instanceof Element?p(r):{width:0,height:0}).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,f.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else(0,f.m6)(i);var r;return function(){(0,f.m6)(i)}}),[t,i])}var g=!1;var b=function(e){return!1!==e&&((0,a.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};const y=o.forwardRef((function(e,t){var n=e.open,f=e.autoLock,p=e.getContainer,v=(e.debug,e.autoDestroy),m=void 0===v||v,y=e.children,A=o.useState(n),w=(0,r.A)(A,2),S=w[0],x=w[1],C=S||n;o.useEffect((function(){(m||n)&&x(n)}),[n,m]);var k=o.useState((function(){return b(p)})),E=(0,r.A)(k,2),M=E[0],$=E[1];o.useEffect((function(){var e=b(p);$(null!=e?e:null)}));var O=function(e,t){var n=o.useState((function(){return(0,a.A)()?document.createElement("div"):null})),i=(0,r.A)(n,1)[0],l=o.useRef(!1),f=o.useContext(c),p=o.useState(d),v=(0,r.A)(p,2),m=v[0],h=v[1],g=f||(l.current?void 0:function(e){h((function(t){return[e].concat((0,s.A)(t))}))});function b(){i.parentElement||document.body.appendChild(i),l.current=!0}function y(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),l.current=!1}return(0,u.A)((function(){return e?f?f(b):b():y(),y}),[e]),(0,u.A)((function(){m.length&&(m.forEach((function(e){return e()})),h(d))}),[m]),[i,g]}(C&&!M),T=(0,r.A)(O,2),R=T[0],z=T[1],P=null!=M?M:R;h(f&&n&&(0,a.A)()&&(P===R||P===document.body));var N=null;y&&(0,l.f3)(y)&&t&&(N=y.ref);var I=(0,l.xK)(N,t);if(!C||!(0,a.A)()||void 0===M)return null;var L,j=!1===P||("boolean"==typeof L&&(g=L),g),_=y;return t&&(_=o.cloneElement(y,{ref:I})),o.createElement(c.Provider,{value:z},j?_:(0,i.createPortal)(_,P))}))},3723:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(e,t,n)=>void 0!==n?n:`${e}-${t}`},3864:(e,t,n)=>{"use strict";n.d(t,{A:()=>bo});var r=n(6540),o=n(6942),i=n.n(o),a=n(9853),l=n(2279);const c=r.createContext(void 0),s=c,u=e=>{const t=r.useContext(s);return r.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},d=e=>{const{prefixCls:t,className:n,style:o,size:a,shape:l}=e,c=i()({[`${t}-lg`]:"large"===a,[`${t}-sm`]:"small"===a}),s=i()({[`${t}-circle`]:"circle"===l,[`${t}-square`]:"square"===l,[`${t}-round`]:"round"===l}),u=r.useMemo((()=>"number"==typeof a?{width:a,height:a,lineHeight:`${a}px`}:{}),[a]);return r.createElement("span",{className:i()(t,c,s,n),style:Object.assign(Object.assign({},u),o)})};var f=n(1466),p=n(665),v=n(336);const m=new f.Mo("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),h=e=>({height:e,lineHeight:(0,f.zA)(e)}),g=e=>Object.assign({width:e},h(e)),b=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:m,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),y=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},h(e)),A=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},g(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},g(o)),[`${t}${t}-sm`]:Object.assign({},g(i))}},w=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},y(t,l)),[`${r}-lg`]:Object.assign({},y(o,l)),[`${r}-sm`]:Object.assign({},y(i,l))}},S=e=>Object.assign({width:e},h(e)),x=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},S(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},S(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},C=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},k=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},h(e)),E=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},k(r,l))},C(e,r,n)),{[`${n}-lg`]:Object.assign({},k(o,l))}),C(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},k(i,l))}),C(e,i,`${n}-sm`))},M=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:v,titleHeight:m,blockRadius:h,paragraphLiHeight:y,controlHeightXS:S,paragraphMarginTop:C}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},g(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},g(s)),[`${n}-sm`]:Object.assign({},g(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:m,background:d,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:d,borderRadius:h,"+ li":{marginBlockStart:S}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},E(e)),A(e)),w(e)),x(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},b(e))}}},$=(0,p.OF)("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=(0,v.h1)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[M(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),O=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,shape:s="circle",size:u="default"}=e,{getPrefixCls:f}=r.useContext(l.QO),p=f("skeleton",t),[v,m,h]=$(p),g=(0,a.A)(e,["prefixCls","className"]),b=i()(p,`${p}-element`,{[`${p}-active`]:c},n,o,m,h);return v(r.createElement("div",{className:b},r.createElement(d,Object.assign({prefixCls:`${p}-avatar`,shape:s,size:u},g))))},T=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,block:s=!1,size:u="default"}=e,{getPrefixCls:f}=r.useContext(l.QO),p=f("skeleton",t),[v,m,h]=$(p),g=(0,a.A)(e,["prefixCls"]),b=i()(p,`${p}-element`,{[`${p}-active`]:c,[`${p}-block`]:s},n,o,m,h);return v(r.createElement("div",{className:b},r.createElement(d,Object.assign({prefixCls:`${p}-button`,size:u},g))))},R=e=>{const{prefixCls:t,className:n,rootClassName:o,style:a,active:c}=e,{getPrefixCls:s}=r.useContext(l.QO),u=s("skeleton",t),[d,f,p]=$(u),v=i()(u,`${u}-element`,{[`${u}-active`]:c},n,o,f,p);return d(r.createElement("div",{className:v},r.createElement("div",{className:i()(`${u}-image`,n),style:a},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},r.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${u}-image-path`})))))},z=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,block:s,size:u="default"}=e,{getPrefixCls:f}=r.useContext(l.QO),p=f("skeleton",t),[v,m,h]=$(p),g=(0,a.A)(e,["prefixCls"]),b=i()(p,`${p}-element`,{[`${p}-active`]:c,[`${p}-block`]:s},n,o,m,h);return v(r.createElement("div",{className:b},r.createElement(d,Object.assign({prefixCls:`${p}-input`,size:u},g))))};var P=n(8168);const N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};var I=n(8046),L=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:N}))};const j=r.forwardRef(L),_=e=>{const{prefixCls:t,className:n,rootClassName:o,style:a,active:c,children:s}=e,{getPrefixCls:u}=r.useContext(l.QO),d=u("skeleton",t),[f,p,v]=$(d),m=i()(d,`${d}-element`,{[`${d}-active`]:c},p,n,o,v),h=null!=s?s:r.createElement(j,null);return f(r.createElement("div",{className:m},r.createElement("div",{className:i()(`${d}-image`,n),style:a},h)))};var H=n(4241);const D=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},B=e=>{const{prefixCls:t,className:n,style:o,rows:a}=e,l=(0,H.A)(Array(a)).map(((t,n)=>r.createElement("li",{key:n,style:{width:D(n,e)}})));return r.createElement("ul",{className:i()(t,n),style:o},l)},W=e=>{let{prefixCls:t,className:n,width:o,style:a}=e;return r.createElement("h3",{className:i()(t,n),style:Object.assign({width:o},a)})};function F(e){return e&&"object"==typeof e?e:{}}const X=e=>{const{prefixCls:t,loading:n,className:o,rootClassName:a,style:c,children:s,avatar:u=!1,title:f=!0,paragraph:p=!0,active:v,round:m}=e,{getPrefixCls:h,direction:g,skeleton:b}=r.useContext(l.QO),y=h("skeleton",t),[A,w,S]=$(y);if(n||!("loading"in e)){const e=!!u,t=!!f,n=!!p;let l,s;if(e){const e=Object.assign(Object.assign({prefixCls:`${y}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),F(u));l=r.createElement("div",{className:`${y}-header`},r.createElement(d,Object.assign({},e)))}if(t||n){let o,i;if(t){const t=Object.assign(Object.assign({prefixCls:`${y}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),F(f));o=r.createElement(W,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${y}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),F(p));i=r.createElement(B,Object.assign({},n))}s=r.createElement("div",{className:`${y}-content`},o,i)}const h=i()(y,{[`${y}-with-avatar`]:e,[`${y}-active`]:v,[`${y}-rtl`]:"rtl"===g,[`${y}-round`]:m},null==b?void 0:b.className,o,a,w,S);return A(r.createElement("div",{className:h,style:Object.assign(Object.assign({},null==b?void 0:b.style),c)},l,s))}return null!=s?s:null};X.Button=T,X.Avatar=O,X.Input=z,X.Image=R,X.Node=_;const K=X;var G=n(6467);const q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var Y=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:q}))};const U=r.forwardRef(Y);const V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var Q=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:V}))};const Z=r.forwardRef(Q);var J=n(4467),ee=n(9379),te=n(6636),ne=n(2284),re=n(45),oe=n(2533);const ie=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},ae=(0,r.createContext)(null);var le=n(6351);function ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(ce(e)):(0,le.isFragment)(e)&&e.props?n=n.concat(ce(e.props.children,t)):n.push(e))})),n}var se=n(8210),ue=n(4207),de=n(8719),fe=r.createContext(null);var pe=n(3591),ve=new Map;var me=new pe.A((function(e){e.forEach((function(e){var t,n=e.target;null===(t=ve.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var he=n(3029),ge=n(2901),be=n(5501),ye=n(9426),Ae=function(e){(0,be.A)(n,e);var t=(0,ye.A)(n);function n(){return(0,he.A)(this,n),t.apply(this,arguments)}return(0,ge.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function we(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),a=r.useRef(null),l=r.useContext(fe),c="function"==typeof n,s=c?n(i):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&r.isValidElement(s)&&(0,de.f3)(s),f=d?s.ref:null,p=(0,de.xK)(f,i),v=function(){var e;return(0,ue.A)(i.current)||(i.current&&"object"===(0,ne.A)(i.current)?(0,ue.A)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,ue.A)(a.current)};r.useImperativeHandle(t,(function(){return v()}));var m=r.useRef(e);m.current=e;var h=r.useCallback((function(e){var t=m.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var v=c===Math.round(i)?i:c,h=s===Math.round(a)?a:s,g=(0,ee.A)((0,ee.A)({},p),{},{offsetWidth:v,offsetHeight:h});null==l||l(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return r.useEffect((function(){var e,t,n=v();return n&&!o&&(e=n,t=h,ve.has(e)||(ve.set(e,new Set),me.observe(e)),ve.get(e).add(t)),function(){return function(e,t){ve.has(e)&&(ve.get(e).delete(t),ve.get(e).size||(me.unobserve(e),ve.delete(e)))}(n,h)}}),[i.current,o]),r.createElement(Ae,{ref:a},d?r.cloneElement(s,{ref:p}):s)}const Se=r.forwardRef(we);function xe(e,t){var n=e.children;return("function"==typeof n?[n]:ce(n)).map((function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(Se,(0,P.A)({},e,{key:i,ref:0===o?t:void 0}),n)}))}var Ce=r.forwardRef(xe);Ce.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(fe),l=r.useCallback((function(e,t,r){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){l===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(fe.Provider,{value:l},t)};const ke=Ce;var Ee=n(6956),Me=n(5371);const $e=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,i=e.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=(0,r.useState)(),d=(0,te.A)(u,2),f=d[0],p=d[1],v=(0,r.useRef)(),m=r.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function h(){Me.A.cancel(v.current)}return(0,r.useEffect)((function(){var e={};if(t)if(n){e.width=m(t.width);var r=o?"right":"left";"start"===s&&(e[r]=t[r]),"center"===s&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return h(),v.current=(0,Me.A)((function(){p(e)})),h}),[t,n,o,s,m]),{style:f}};var Oe={width:0,height:0,left:0,top:0};function Te(e,t){var n=r.useRef(e),o=r.useState({}),i=(0,te.A)(o,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}]}var Re=Math.pow(.995,20);var ze=n(981);function Pe(e){var t=(0,r.useState)(0),n=(0,te.A)(t,2),o=n[0],i=n[1],a=(0,r.useRef)(0),l=(0,r.useRef)();return l.current=e,(0,ze.o)((function(){var e;null===(e=l.current)||void 0===e||e.call(l)}),[o]),function(){a.current===o&&(a.current+=1,i(a.current))}}var Ne={width:0,height:0,left:0,top:0,right:0};function Ie(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Le(e){return String(e).replace(/"/g,"TABS_DQ")}function je(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var _e=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));const He=_e;const De=r.forwardRef((function(e,t){var n,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==(0,ne.A)(a)||r.isValidElement(a)?l.right=a:l=a,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?r.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));var Be=n(5470),We=n(2633),Fe=n(6855),Xe=n(8542);function Ke(e){var t=e.prefixCls,n=e.align,o=e.arrow,a=e.arrowPos,l=o||{},c=l.className,s=l.content,u=a.x,d=void 0===u?0:u,f=a.y,p=void 0===f?0:f,v=r.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],g=n.points[1],b=h[0],y=h[1],A=g[0],w=g[1];b!==A&&["t","b"].includes(b)?"t"===b?m.top=0:m.bottom=0:m.top=p,y!==w&&["l","r"].includes(y)?"l"===y?m.left=0:m.right=0:m.left=d}return r.createElement("div",{ref:v,className:i()("".concat(t,"-arrow"),c),style:m},s)}function Ge(e){var t=e.prefixCls,n=e.open,o=e.zIndex,a=e.mask,l=e.motion;return a?r.createElement(Xe.Ay,(0,P.A)({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:i()("".concat(t,"-mask"),n)})})):null}const qe=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));var Ye=r.forwardRef((function(e,t){var n=e.popup,o=e.className,a=e.prefixCls,l=e.style,c=e.target,s=e.onVisibleChanged,u=e.open,d=e.keepDom,f=e.fresh,p=e.onClick,v=e.mask,m=e.arrow,h=e.arrowPos,g=e.align,b=e.motion,y=e.maskMotion,A=e.forceRender,w=e.getPopupContainer,S=e.autoDestroy,x=e.portal,C=e.zIndex,k=e.onMouseEnter,E=e.onMouseLeave,M=e.onPointerEnter,$=e.ready,O=e.offsetX,T=e.offsetY,R=e.offsetR,z=e.offsetB,N=e.onAlign,I=e.onPrepare,L=e.stretch,j=e.targetWidth,_=e.targetHeight,H="function"==typeof n?n():n,D=u||d,B=(null==w?void 0:w.length)>0,W=r.useState(!w||!B),F=(0,te.A)(W,2),X=F[0],K=F[1];if((0,ze.A)((function(){!X&&B&&c&&K(!0)}),[X,B,c]),!X)return null;var G="auto",q={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if($||!u){var Y,U=g.points,V=g.dynamicInset||(null===(Y=g._experimental)||void 0===Y?void 0:Y.dynamicInset),Q=V&&"r"===U[0][1],Z=V&&"b"===U[0][0];Q?(q.right=R,q.left=G):(q.left=O,q.right=G),Z?(q.bottom=z,q.top=G):(q.top=T,q.bottom=G)}var J={};return L&&(L.includes("height")&&_?J.height=_:L.includes("minHeight")&&_&&(J.minHeight=_),L.includes("width")&&j?J.width=j:L.includes("minWidth")&&j&&(J.minWidth=j)),u||(J.pointerEvents="none"),r.createElement(x,{open:A||D,getContainer:w&&function(){return w(c)},autoDestroy:S},r.createElement(Ge,{prefixCls:a,open:u,zIndex:C,mask:v,motion:y}),r.createElement(ke,{onResize:N,disabled:!u},(function(e){return r.createElement(Xe.Ay,(0,P.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:A,leavedClassName:"".concat(a,"-hidden")},b,{onAppearPrepare:I,onEnterPrepare:I,visible:u,onVisibleChanged:function(e){var t;null==b||null===(t=b.onVisibleChanged)||void 0===t||t.call(b,e),s(e)}}),(function(n,c){var s=n.className,d=n.style,v=i()(a,s,o);return r.createElement("div",{ref:(0,de.K4)(e,t,c),className:v,style:(0,ee.A)((0,ee.A)((0,ee.A)((0,ee.A)({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},q),J),d),{},{boxSizing:"border-box",zIndex:C},l),onMouseEnter:k,onMouseLeave:E,onPointerEnter:M,onClick:p},m&&r.createElement(Ke,{prefixCls:a,arrow:m,arrowPos:h,align:g}),r.createElement(qe,{cache:!u&&!f},H))}))})))}));const Ue=Ye;const Ve=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=(0,de.f3)(n),a=r.useCallback((function(e){(0,de.Xf)(t,o?o(e):e)}),[o]),l=(0,de.xK)(a,n.ref);return i?r.cloneElement(n,{ref:l}):n}));const Qe=r.createContext(null);function Ze(e){return e?Array.isArray(e)?e:[e]:[]}const Je=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function et(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function tt(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function nt(e){return e.ownerDocument.defaultView}function rt(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=nt(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function it(e){return ot(parseFloat(e),0)}function at(e,t){var n=(0,ee.A)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=nt(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,v=it(i),m=it(a),h=it(l),g=it(c),b=ot(Math.round(s.width/f*1e3)/1e3),y=ot(Math.round(s.height/u*1e3)/1e3),A=(f-p-h-g)*b,w=(u-d-v-m)*y,S=v*y,x=m*y,C=h*b,k=g*b,E=0,M=0;if("clip"===r){var $=it(o);E=$*b,M=$*y}var O=s.x+C-E,T=s.y+S-M,R=O+s.width+2*E-C-k-A,z=T+s.height+2*M-S-x-w;n.left=Math.max(n.left,O),n.top=Math.max(n.top,T),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,z)}})),n}function lt(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function ct(e,t){var n=t||[],r=(0,te.A)(n,2),o=r[0],i=r[1];return[lt(e.width,o),lt(e.height,i)]}function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function ut(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function dt(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var ft=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const pt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be.A,t=r.forwardRef((function(t,n){var o=t.prefixCls,a=void 0===o?"rc-trigger-popup":o,l=t.children,c=t.action,s=void 0===c?"hover":c,u=t.showAction,d=t.hideAction,f=t.popupVisible,p=t.defaultPopupVisible,v=t.onPopupVisibleChange,m=t.afterPopupVisibleChange,h=t.mouseEnterDelay,g=t.mouseLeaveDelay,b=void 0===g?.1:g,y=t.focusDelay,A=t.blurDelay,w=t.mask,S=t.maskClosable,x=void 0===S||S,C=t.getPopupContainer,k=t.forceRender,E=t.autoDestroy,M=t.destroyPopupOnHide,$=t.popup,O=t.popupClassName,T=t.popupStyle,R=t.popupPlacement,z=t.builtinPlacements,P=void 0===z?{}:z,N=t.popupAlign,I=t.zIndex,L=t.stretch,j=t.getPopupClassNameFromAlign,_=t.fresh,D=t.alignPoint,B=t.onPopupClick,W=t.onPopupAlign,F=t.arrow,X=t.popupMotion,K=t.maskMotion,G=t.popupTransitionName,q=t.popupAnimation,Y=t.maskTransitionName,U=t.maskAnimation,V=t.className,Q=t.getTriggerDOMNode,Z=(0,re.A)(t,ft),J=E||M||!1,ne=r.useState(!1),oe=(0,te.A)(ne,2),ae=oe[0],le=oe[1];(0,ze.A)((function(){le(ie())}),[]);var ce=r.useRef({}),se=r.useContext(Qe),de=r.useMemo((function(){return{registerSubPopup:function(e,t){ce.current[e]=t,null==se||se.registerSubPopup(e,t)}}}),[se]),fe=(0,Fe.A)(),pe=r.useState(null),ve=(0,te.A)(pe,2),me=ve[0],he=ve[1],ge=r.useRef(null),be=(0,Ee.A)((function(e){ge.current=e,(0,ue.f)(e)&&me!==e&&he(e),null==se||se.registerSubPopup(fe,e)})),ye=r.useState(null),Ae=(0,te.A)(ye,2),we=Ae[0],Se=Ae[1],xe=r.useRef(null),Ce=(0,Ee.A)((function(e){(0,ue.f)(e)&&we!==e&&(Se(e),xe.current=e)})),Me=r.Children.only(l),$e=(null==Me?void 0:Me.props)||{},Oe={},Te=(0,Ee.A)((function(e){var t,n,r=we;return(null==r?void 0:r.contains(e))||(null===(t=(0,We.j)(r))||void 0===t?void 0:t.host)===e||e===r||(null==me?void 0:me.contains(e))||(null===(n=(0,We.j)(me))||void 0===n?void 0:n.host)===e||e===me||Object.values(ce.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Re=tt(a,X,q,G),Pe=tt(a,K,U,Y),Ne=r.useState(p||!1),Ie=(0,te.A)(Ne,2),Le=Ie[0],je=Ie[1],_e=null!=f?f:Le,He=(0,Ee.A)((function(e){void 0===f&&je(e)}));(0,ze.A)((function(){je(f||!1)}),[f]);var De=r.useRef(_e);De.current=_e;var Be=r.useRef([]);Be.current=[];var Xe=(0,Ee.A)((function(e){var t;He(e),(null!==(t=Be.current[Be.current.length-1])&&void 0!==t?t:_e)!==e&&(Be.current.push(e),null==v||v(e))})),Ke=r.useRef(),Ge=function(){clearTimeout(Ke.current)},qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ge(),0===t?Xe(e):Ke.current=setTimeout((function(){Xe(e)}),1e3*t)};r.useEffect((function(){return Ge}),[]);var Ye=r.useState(!1),it=(0,te.A)(Ye,2),lt=it[0],pt=it[1];(0,ze.A)((function(e){e&&!_e||pt(!0)}),[_e]);var vt=r.useState(null),mt=(0,te.A)(vt,2),ht=mt[0],gt=mt[1],bt=r.useState([0,0]),yt=(0,te.A)(bt,2),At=yt[0],wt=yt[1],St=function(e){wt([e.clientX,e.clientY])},xt=function(e,t,n,o,i,a,l){var c=r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),s=(0,te.A)(c,2),u=s[0],d=s[1],f=r.useRef(0),p=r.useMemo((function(){return t?rt(t):[]}),[t]),v=r.useRef({});e||(v.current={});var m=(0,Ee.A)((function(){if(t&&n&&e){var r,c,s,u=t,f=u.ownerDocument,m=nt(u).getComputedStyle(u),h=m.width,g=m.height,b=m.position,y=u.style.left,A=u.style.top,w=u.style.right,S=u.style.bottom,x=u.style.overflow,C=(0,ee.A)((0,ee.A)({},i[o]),a),k=f.createElement("div");if(null===(r=u.parentElement)||void 0===r||r.appendChild(k),k.style.left="".concat(u.offsetLeft,"px"),k.style.top="".concat(u.offsetTop,"px"),k.style.position=b,k.style.height="".concat(u.offsetHeight,"px"),k.style.width="".concat(u.offsetWidth,"px"),u.style.left="0",u.style.top="0",u.style.right="auto",u.style.bottom="auto",u.style.overflow="hidden",Array.isArray(n))s={x:n[0],y:n[1],width:0,height:0};else{var E=n.getBoundingClientRect();s={x:E.x,y:E.y,width:E.width,height:E.height}}var M=u.getBoundingClientRect(),$=f.documentElement,O=$.clientWidth,T=$.clientHeight,R=$.scrollWidth,z=$.scrollHeight,P=$.scrollTop,N=$.scrollLeft,I=M.height,L=M.width,j=s.height,_=s.width,H={left:0,top:0,right:O,bottom:T},D={left:-N,top:-P,right:R-N,bottom:z-P},B=C.htmlRegion,W="visible",F="visibleFirst";"scroll"!==B&&B!==F&&(B=W);var X=B===F,K=at(D,p),G=at(H,p),q=B===W?G:K,Y=X?G:q;u.style.left="auto",u.style.top="auto",u.style.right="0",u.style.bottom="0";var U=u.getBoundingClientRect();u.style.left=y,u.style.top=A,u.style.right=w,u.style.bottom=S,u.style.overflow=x,null===(c=u.parentElement)||void 0===c||c.removeChild(k);var V=ot(Math.round(L/parseFloat(h)*1e3)/1e3),Q=ot(Math.round(I/parseFloat(g)*1e3)/1e3);if(0===V||0===Q||(0,ue.f)(n)&&!Je(n))return;var Z=C.offset,J=C.targetOffset,ne=ct(M,Z),re=(0,te.A)(ne,2),oe=re[0],ie=re[1],ae=ct(s,J),le=(0,te.A)(ae,2),ce=le[0],se=le[1];s.x-=ce,s.y-=se;var de=C.points||[],fe=(0,te.A)(de,2),pe=fe[0],ve=st(fe[1]),me=st(pe),he=ut(s,ve),ge=ut(M,me),be=(0,ee.A)({},C),ye=he.x-ge.x+oe,Ae=he.y-ge.y+ie;function wt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q,r=M.x+e,o=M.y+t,i=r+L,a=o+I,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var we,Se,xe,Ce,ke=wt(ye,Ae),Ee=wt(ye,Ae,G),Me=ut(s,["t","l"]),$e=ut(M,["t","l"]),Oe=ut(s,["b","r"]),Te=ut(M,["b","r"]),Re=C.overflow||{},ze=Re.adjustX,Pe=Re.adjustY,Ne=Re.shiftX,Ie=Re.shiftY,Le=function(e){return"boolean"==typeof e?e:e>=0};function St(){we=M.y+Ae,Se=we+I,xe=M.x+ye,Ce=xe+L}St();var je=Le(Pe),_e=me[0]===ve[0];if(je&&"t"===me[0]&&(Se>Y.bottom||v.current.bt)){var He=Ae;_e?He-=I-j:He=Me.y-Te.y-ie;var De=wt(ye,He),Be=wt(ye,He,G);De>ke||De===ke&&(!X||Be>=Ee)?(v.current.bt=!0,Ae=He,ie=-ie,be.points=[dt(me,0),dt(ve,0)]):v.current.bt=!1}if(je&&"b"===me[0]&&(weke||Fe===ke&&(!X||Xe>=Ee)?(v.current.tb=!0,Ae=We,ie=-ie,be.points=[dt(me,0),dt(ve,0)]):v.current.tb=!1}var Ke=Le(ze),Ge=me[1]===ve[1];if(Ke&&"l"===me[1]&&(Ce>Y.right||v.current.rl)){var qe=ye;Ge?qe-=L-_:qe=Me.x-Te.x-oe;var Ye=wt(qe,Ae),Ue=wt(qe,Ae,G);Ye>ke||Ye===ke&&(!X||Ue>=Ee)?(v.current.rl=!0,ye=qe,oe=-oe,be.points=[dt(me,1),dt(ve,1)]):v.current.rl=!1}if(Ke&&"r"===me[1]&&(xeke||Qe===ke&&(!X||Ze>=Ee)?(v.current.lr=!0,ye=Ve,oe=-oe,be.points=[dt(me,1),dt(ve,1)]):v.current.lr=!1}St();var et=!0===Ne?0:Ne;"number"==typeof et&&(xeG.right&&(ye-=Ce-G.right-oe,s.x>G.right-et&&(ye+=s.x-G.right+et)));var tt=!0===Ie?0:Ie;"number"==typeof tt&&(weG.bottom&&(Ae-=Se-G.bottom-ie,s.y>G.bottom-tt&&(Ae+=s.y-G.bottom+tt)));var rt=M.x+ye,it=rt+L,lt=M.y+Ae,ft=lt+I,pt=s.x,vt=pt+_,mt=s.y,ht=mt+j,gt=(Math.max(rt,pt)+Math.min(it,vt))/2-rt,bt=(Math.max(lt,mt)+Math.min(ft,ht))/2-lt;null==l||l(t,be);var yt=U.right-M.x-(ye+M.width),At=U.bottom-M.y-(Ae+M.height);d({ready:!0,offsetX:ye/V,offsetY:Ae/Q,offsetR:yt/V,offsetB:At/Q,arrowX:gt/V,arrowY:bt/Q,scaleX:V,scaleY:Q,align:be})}})),h=function(){d((function(e){return(0,ee.A)((0,ee.A)({},e),{},{ready:!1})}))};return(0,ze.A)(h,[o]),(0,ze.A)((function(){e||h()}),[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&m()}))}]}(_e,me,D?At:we,R,P,N,W),Ct=(0,te.A)(xt,11),kt=Ct[0],Et=Ct[1],Mt=Ct[2],$t=Ct[3],Ot=Ct[4],Tt=Ct[5],Rt=Ct[6],zt=Ct[7],Pt=Ct[8],Nt=Ct[9],It=Ct[10],Lt=function(e,t,n,o){return r.useMemo((function(){var r=Ze(null!=n?n:t),i=Ze(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}(ae,s,u,d),jt=(0,te.A)(Lt,2),_t=jt[0],Ht=jt[1],Dt=_t.has("click"),Bt=Ht.has("click")||Ht.has("contextMenu"),Wt=(0,Ee.A)((function(){lt||It()}));!function(e,t,n,r,o){(0,ze.A)((function(){if(e&&t&&n){var i=n,a=rt(t),l=rt(i),c=nt(i),s=new Set([c].concat((0,H.A)(a),(0,H.A)(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(_e,we,me,Wt,(function(){De.current&&D&&Bt&&qe(!1)})),(0,ze.A)((function(){Wt()}),[At,R]),(0,ze.A)((function(){!_e||null!=P&&P[R]||Wt()}),[JSON.stringify(N)]);var Ft=r.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),c=1;c1?n-1:0),o=1;o1?n-1:0),o=1;oh,ge=(0,r.useMemo)((function(){var e=l;return ve?e=null===O&&k?l:l.slice(0,Math.min(l.length,R/f)):"number"==typeof h&&(e=l.slice(0,h)),e}),[l,f,O,h,ve]),be=(0,r.useMemo)((function(){return ve?l.slice(ae+1):l.slice(ge.length)}),[l,ge,ve,ae]),ye=(0,r.useCallback)((function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t}),[u]),Ae=(0,r.useCallback)(c||function(e){return e},[c]);function we(e,t,n){(oe!==e||void 0!==t&&t!==Q)&&(ie(e),n||(ue(eR){we(r-1,e-o-q+F);break}}y&&xe(0)+q>R&&Z(null)}}),[R,I,F,q,ye,ge]);var Ce=se&&!!be.length,Ee={};null!==Q&&ve&&(Ee={position:"absolute",left:Q,top:0});var Me,$e={prefixCls:de,responsive:ve,component:S,invalidate:me},Oe=s?function(e,t){var n=ye(e,t);return r.createElement(zt.Provider,{key:n,value:(0,ee.A)((0,ee.A)({},$e),{},{order:t,item:e,itemKey:n,registerSize:Se,display:t<=ae})},s(e,t))}:function(e,t){var n=ye(e,t);return r.createElement($t,(0,P.A)({},$e,{order:t,key:n,item:e,renderItem:Ae,itemKey:n,registerSize:Se,display:t<=ae}))},Te={order:Ce?ae:Number.MAX_SAFE_INTEGER,className:"".concat(de,"-rest"),registerSize:function(e,t){X(t),D(F)},display:Ce};if(b)b&&(Me=r.createElement(zt.Provider,{value:(0,ee.A)((0,ee.A)({},$e),Te)},b(be)));else{var Re=g||Wt;Me=r.createElement($t,(0,P.A)({},$e,Te),"function"==typeof Re?Re(be):Re)}var Pe=r.createElement(w,(0,P.A)({className:i()(!me&&o,m),style:v,ref:t},C),ge.map(Oe),he?Me:null,y&&r.createElement($t,(0,P.A)({},$e,{responsive:pe,responsiveDisabled:!ve,order:ae,className:"".concat(de,"-suffix"),registerSize:function(e,t){Y(t)},display:!0,style:Ee}),y));return pe&&(Pe=r.createElement(ke,{onResize:function(e,t){T(t.clientWidth)},disabled:!ve},Pe)),Pe}var Xt=r.forwardRef(Ft);Xt.displayName="Overflow",Xt.Item=_t,Xt.RESPONSIVE=Dt,Xt.INVALIDATE=Bt;const Kt=Xt;var Gt=n(3210),qt=r.createContext(null);function Yt(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Ut(e){return Yt(r.useContext(qt),e)}var Vt=n(8104),Qt=["children","locked"],Zt=r.createContext(null);function Jt(e){var t=e.children,n=e.locked,o=(0,re.A)(e,Qt),i=r.useContext(Zt),a=(0,Vt.A)((function(){return e=i,t=o,n=(0,ee.A)({},e),Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n;var e,t,n}),[i,o],(function(e,t){return!(n||e[0]===t[0]&&(0,Gt.A)(e[1],t[1],!0))}));return r.createElement(Zt.Provider,{value:a},t)}var en=[],tn=r.createContext(null);function nn(){return r.useContext(tn)}var rn=r.createContext(en);function on(e){var t=r.useContext(rn);return r.useMemo((function(){return void 0!==e?[].concat((0,H.A)(t),[e]):t}),[t,e])}var an=r.createContext(null);const ln=r.createContext({});function cn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Je(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,H.A)(e.querySelectorAll("*")).filter((function(e){return cn(e,t)}));return cn(e,t)&&n.unshift(e),n}var un=vt.A.LEFT,dn=vt.A.RIGHT,fn=vt.A.UP,pn=vt.A.DOWN,vn=vt.A.ENTER,mn=vt.A.ESC,hn=vt.A.HOME,gn=vt.A.END,bn=[fn,pn,un,dn];function yn(e,t){return sn(e,!0).filter((function(e){return t.has(e)}))}function An(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=yn(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var wn=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Yt(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function Sn(e,t,n,o,i,a,l,c,s,u){var d=r.useRef(),f=r.useRef();f.current=t;var p=function(){Me.A.cancel(d.current)};return r.useEffect((function(){return function(){p()}}),[]),function(r){var v=r.which;if([].concat(bn,[vn,mn,hn,gn]).includes(v)){var m=a(),h=wn(m,o),g=h,b=g.elements,y=g.key2element,A=g.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),S=A.get(w),x=function(e,t,n,r){var o,i="prev",a="next",l="children",c="parent";if("inline"===e&&r===vn)return{inlineTrigger:!0};var s=(0,J.A)((0,J.A)({},fn,i),pn,a),u=(0,J.A)((0,J.A)((0,J.A)((0,J.A)({},un,n?a:i),dn,n?i:a),pn,l),vn,l),d=(0,J.A)((0,J.A)((0,J.A)((0,J.A)((0,J.A)((0,J.A)({},fn,i),pn,a),vn,l),mn,c),un,n?l:c),dn,n?c:l);switch(null===(o={inline:s,horizontal:u,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===l(S,!0).length,n,v);if(!x&&v!==hn&&v!==gn)return;(bn.includes(v)||[hn,gn].includes(v))&&r.preventDefault();var C=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=A.get(e);c(r),p(),d.current=(0,Me.A)((function(){f.current===r&&t.focus()}))}};if([hn,gn].includes(v)||x.sibling||!w){var k,E,M=yn(k=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):i.current,b);E=v===hn?M[0]:v===gn?M[M.length-1]:An(k,b,w,x.offset),C(E)}else if(x.inlineTrigger)s(S);else if(x.offset>0)s(S,!0),p(),d.current=(0,Me.A)((function(){h=wn(m,o);var e=w.getAttribute("aria-controls"),t=An(document.getElementById(e),h.elements);C(t)}),5);else if(x.offset<0){var $=l(S,!0),O=$[$.length-2],T=y.get(O);s(O,!1),C(T)}}null==u||u(r)}}var xn="__RC_UTIL_PATH_SPLIT__",Cn=function(e){return e.join(xn)},kn="rc-menu-more";function En(){var e=r.useState({}),t=(0,te.A)(e,2)[1],n=(0,r.useRef)(new Map),o=(0,r.useRef)(new Map),i=r.useState([]),a=(0,te.A)(i,2),l=a[0],c=a[1],s=(0,r.useRef)(0),u=(0,r.useRef)(!1),d=(0,r.useCallback)((function(e,r){var i=Cn(r);o.current.set(i,e),n.current.set(e,i),s.current+=1;var a,l=s.current;a=function(){l===s.current&&(u.current||t({}))},Promise.resolve().then(a)}),[]),f=(0,r.useCallback)((function(e,t){var r=Cn(t);o.current.delete(r),n.current.delete(e)}),[]),p=(0,r.useCallback)((function(e){c(e)}),[]),v=(0,r.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(xn);return t&&l.includes(o[0])&&o.unshift(kn),o}),[l]),m=(0,r.useCallback)((function(e,t){return e.some((function(e){return v(e,!0).includes(t)}))}),[v]),h=(0,r.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(xn),r=new Set;return(0,H.A)(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return r.useEffect((function(){return function(){u.current=!0}}),[]),{registerPath:d,unregisterPath:f,refreshOverflowKeys:p,isSubPathKey:m,getKeyPath:v,getKeys:function(){var e=(0,H.A)(n.current.keys());return l.length&&e.push(kn),e},getSubPathKeys:h}}function Mn(e){var t=r.useRef(e);t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&(y.motionAppear=!1);var A=y.onVisibleChanged;return y.onVisibleChanged=function(e){return p.current||e||g(!0),null==A?void 0:A(e)},h?null:r.createElement(Jt,{mode:a,locked:!p.current},r.createElement(Xe.Ay,(0,P.A)({visible:b},y,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,o=e.style;return r.createElement(Kn,{id:t,className:n,style:o},i)})))}var er=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],tr=["active"],nr=function(e){var t=e.style,n=e.className,o=e.title,a=e.eventKey,l=(e.warnKey,e.disabled),c=e.internalPopupClose,s=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,p=e.popupOffset,v=e.popupStyle,m=e.onClick,h=e.onMouseEnter,g=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,A=e.onTitleMouseLeave,w=(0,re.A)(e,er),S=Ut(a),x=r.useContext(Zt),C=x.prefixCls,k=x.mode,E=x.openKeys,M=x.disabled,$=x.overflowDisabled,O=x.activeKey,T=x.selectedKeys,R=x.itemIcon,z=x.expandIcon,N=x.onItemClick,I=x.onOpenChange,L=x.onActive,j=r.useContext(ln)._internalRenderSubMenuItem,_=r.useContext(an).isSubPathKey,H=on(),D="".concat(C,"-submenu"),B=M||l,W=r.useRef(),F=r.useRef();var X=null!=u?u:R,K=null!=d?d:z,G=E.includes(a),q=!$&&G,Y=_(T,a),U=Tn(a,B,y,A),V=U.active,Q=(0,re.A)(U,tr),Z=r.useState(!1),ne=(0,te.A)(Z,2),oe=ne[0],ie=ne[1],ae=function(e){B||ie(e)},le=r.useMemo((function(){return V||"inline"!==k&&(oe||_([O],a))}),[k,V,O,oe,a,_]),ce=Rn(H.length),se=Mn((function(e){null==m||m(Nn(e)),N(e)})),ue=S&&"".concat(S,"-popup"),de=r.createElement("div",(0,P.A)({role:"menuitem",style:ce,className:"".concat(D,"-title"),tabIndex:B?null:-1,ref:W,title:"string"==typeof o?o:null,"data-menu-id":$&&S?null:S,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":ue,"aria-disabled":B,onClick:function(e){B||(null==b||b({key:a,domEvent:e}),"inline"===k&&I(a,!G))},onFocus:function(){L(a)}},Q),o,r.createElement(zn,{icon:"horizontal"!==k?K:void 0,props:(0,ee.A)((0,ee.A)({},e),{},{isOpen:q,isSubMenu:!0})},r.createElement("i",{className:"".concat(D,"-arrow")}))),fe=r.useRef(k);if("inline"!==k&&H.length>1?fe.current="vertical":fe.current=k,!$){var pe=fe.current;de=r.createElement(Zn,{mode:pe,prefixCls:D,visible:!c&&q&&"inline"!==k,popupClassName:f,popupOffset:p,popupStyle:v,popup:r.createElement(Jt,{mode:"horizontal"===pe?"vertical":pe},r.createElement(Kn,{id:ue,ref:F},s)),disabled:B,onVisibleChange:function(e){"inline"!==k&&I(a,e)}},de)}var ve=r.createElement(Kt.Item,(0,P.A)({role:"none"},w,{component:"li",style:t,className:i()(D,"".concat(D,"-").concat(k),n,(0,J.A)((0,J.A)((0,J.A)((0,J.A)({},"".concat(D,"-open"),q),"".concat(D,"-active"),le),"".concat(D,"-selected"),Y),"".concat(D,"-disabled"),B)),onMouseEnter:function(e){ae(!0),null==h||h({key:a,domEvent:e})},onMouseLeave:function(e){ae(!1),null==g||g({key:a,domEvent:e})}}),de,!$&&r.createElement(Jn,{id:ue,open:q,keyPath:H},s));return j&&(ve=j(ve,e,{selected:Y,active:le,open:q,disabled:B})),r.createElement(Jt,{onItemClick:se,mode:"horizontal"===k?"vertical":k,itemIcon:X,expandIcon:K},ve)};function rr(e){var t,n=e.eventKey,o=e.children,i=on(n),a=Gn(o,i),l=nn();return r.useEffect((function(){if(l)return l.registerPath(n,i),function(){l.unregisterPath(n,i)}}),[i]),t=l?a:r.createElement(nr,e,a),r.createElement(rn.Provider,{value:i},t)}var or=["className","title","eventKey","children"],ir=["children"],ar=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),a=(0,re.A)(e,or),l=r.useContext(Zt).prefixCls,c="".concat(l,"-item-group");return r.createElement("li",(0,P.A)({role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:i()(c,t)}),r.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof n?n:void 0},n),r.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function lr(e){var t=e.children,n=(0,re.A)(e,ir),o=Gn(t,on(n.eventKey));return nn()?o:r.createElement(ar,(0,a.A)(n,["warnKey"]),o)}function cr(e){var t=e.className,n=e.style,o=r.useContext(Zt).prefixCls;return nn()?null:r.createElement("li",{role:"separator",className:i()("".concat(o,"-item-divider"),t),style:n})}var sr=["label","children","key","type"];function ur(e){return(e||[]).map((function(e,t){if(e&&"object"===(0,ne.A)(e)){var n=e,o=n.label,i=n.children,a=n.key,l=n.type,c=(0,re.A)(n,sr),s=null!=a?a:"tmp-".concat(t);return i||"group"===l?"group"===l?r.createElement(lr,(0,P.A)({key:s},c,{title:o}),ur(i)):r.createElement(rr,(0,P.A)({key:s},c,{title:o}),ur(i)):"divider"===l?r.createElement(cr,(0,P.A)({key:s},c)):r.createElement(Bn,(0,P.A)({key:s},c),o)}return null})).filter((function(e){return e}))}function dr(e,t,n){var r=e;return t&&(r=ur(t)),Gn(r,n)}var fr=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],pr=[],vr=r.forwardRef((function(e,t){var n,o=e,a=o.prefixCls,l=void 0===a?"rc-menu":a,c=o.rootClassName,s=o.style,u=o.className,d=o.tabIndex,f=void 0===d?0:d,p=o.items,v=o.children,m=o.direction,h=o.id,g=o.mode,b=void 0===g?"vertical":g,y=o.inlineCollapsed,A=o.disabled,w=o.disabledOverflow,S=o.subMenuOpenDelay,x=void 0===S?.1:S,C=o.subMenuCloseDelay,k=void 0===C?.1:C,E=o.forceSubMenuRender,M=o.defaultOpenKeys,$=o.openKeys,O=o.activeKey,T=o.defaultActiveFirst,R=o.selectable,z=void 0===R||R,N=o.multiple,I=void 0!==N&&N,L=o.defaultSelectedKeys,j=o.selectedKeys,_=o.onSelect,D=o.onDeselect,B=o.inlineIndent,W=void 0===B?24:B,F=o.motion,X=o.defaultMotions,K=o.triggerSubMenuAction,G=void 0===K?"hover":K,q=o.builtinPlacements,Y=o.itemIcon,U=o.expandIcon,V=o.overflowedIndicator,Q=void 0===V?"...":V,Z=o.overflowedIndicatorPopupClassName,ne=o.getPopupContainer,ie=o.onClick,ae=o.onOpenChange,le=o.onKeyDown,ce=(o.openAnimation,o.openTransitionName,o._internalRenderMenuItem),se=o._internalRenderSubMenuItem,ue=(0,re.A)(o,fr),de=r.useMemo((function(){return dr(v,p,pr)}),[v,p]),fe=r.useState(!1),pe=(0,te.A)(fe,2),ve=pe[0],me=pe[1],he=r.useRef(),ge=function(e){var t=(0,oe.A)(e,{value:e}),n=(0,te.A)(t,2),o=n[0],i=n[1];return r.useEffect((function(){On+=1;var e="".concat($n,"-").concat(On);i("rc-menu-uuid-".concat(e))}),[]),o}(h),be="rtl"===m;var ye=(0,oe.A)(M,{value:$,postState:function(e){return e||pr}}),Ae=(0,te.A)(ye,2),we=Ae[0],Se=Ae[1],xe=function(e){function t(){Se(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,Ot.flushSync)(t):t()},Ce=r.useState(we),ke=(0,te.A)(Ce,2),Ee=ke[0],Me=ke[1],$e=r.useRef(!1),Oe=r.useMemo((function(){return"inline"!==b&&"vertical"!==b||!y?[b,!1]:["vertical",y]}),[b,y]),Te=(0,te.A)(Oe,2),Re=Te[0],ze=Te[1],Pe="inline"===Re,Ne=r.useState(Re),Ie=(0,te.A)(Ne,2),Le=Ie[0],je=Ie[1],_e=r.useState(ze),He=(0,te.A)(_e,2),De=He[0],Be=He[1];r.useEffect((function(){je(Re),Be(ze),$e.current&&(Pe?Se(Ee):xe(pr))}),[Re,ze]);var We=r.useState(0),Fe=(0,te.A)(We,2),Xe=Fe[0],Ke=Fe[1],Ge=Xe>=de.length-1||"horizontal"!==Le||w;r.useEffect((function(){Pe&&Me(we)}),[we]),r.useEffect((function(){return $e.current=!0,function(){$e.current=!1}}),[]);var qe=En(),Ye=qe.registerPath,Ue=qe.unregisterPath,Ve=qe.refreshOverflowKeys,Qe=qe.isSubPathKey,Ze=qe.getKeyPath,Je=qe.getKeys,et=qe.getSubPathKeys,tt=r.useMemo((function(){return{registerPath:Ye,unregisterPath:Ue}}),[Ye,Ue]),nt=r.useMemo((function(){return{isSubPathKey:Qe}}),[Qe]);r.useEffect((function(){Ve(Ge?pr:de.slice(Xe+1).map((function(e){return e.key})))}),[Xe,Ge]);var rt=(0,oe.A)(O||T&&(null===(n=de[0])||void 0===n?void 0:n.key),{value:O}),ot=(0,te.A)(rt,2),it=ot[0],at=ot[1],lt=Mn((function(e){at(e)})),ct=Mn((function(){at(void 0)}));(0,r.useImperativeHandle)(t,(function(){return{list:he.current,focus:function(e){var t,n,r=Je(),o=wn(r,ge),i=o.elements,a=o.key2element,l=o.element2key,c=yn(he.current,i),s=null!=it?it:c[0]?l.get(c[0]):null===(t=de.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var st=(0,oe.A)(L||[],{value:j,postState:function(e){return Array.isArray(e)?e:null==e?pr:[e]}}),ut=(0,te.A)(st,2),dt=ut[0],ft=ut[1],pt=Mn((function(e){null==ie||ie(Nn(e)),function(e){if(z){var t,n=e.key,r=dt.includes(n);t=I?r?dt.filter((function(e){return e!==n})):[].concat((0,H.A)(dt),[n]):[n],ft(t);var o=(0,ee.A)((0,ee.A)({},e),{},{selectedKeys:t});r?null==D||D(o):null==_||_(o)}!I&&we.length&&"inline"!==Le&&xe(pr)}(e)})),vt=Mn((function(e,t){var n=we.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Le){var r=et(e);n=n.filter((function(e){return!r.has(e)}))}(0,Gt.A)(we,n,!0)||xe(n,!0)})),mt=Sn(Le,it,be,ge,he,Je,Ze,at,(function(e,t){var n=null!=t?t:!we.includes(e);vt(e,n)}),le);r.useEffect((function(){me(!0)}),[]);var ht=r.useMemo((function(){return{_internalRenderMenuItem:ce,_internalRenderSubMenuItem:se}}),[ce,se]),gt="horizontal"!==Le||w?de:de.map((function(e,t){return r.createElement(Jt,{key:e.key,overflowDisabled:t>Xe},e)})),bt=r.createElement(Kt,(0,P.A)({id:h,ref:he,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Bn,className:i()(l,"".concat(l,"-root"),"".concat(l,"-").concat(Le),u,(0,J.A)((0,J.A)({},"".concat(l,"-inline-collapsed"),De),"".concat(l,"-rtl"),be),c),dir:m,style:s,role:"menu",tabIndex:f,data:gt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?de.slice(-t):null;return r.createElement(rr,{eventKey:kn,title:Q,disabled:Ge,internalPopupClose:0===t,popupClassName:Z},n)},maxCount:"horizontal"!==Le||w?Kt.INVALIDATE:Kt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ke(e)},onKeyDown:mt},ue));return r.createElement(ln.Provider,{value:ht},r.createElement(qt.Provider,{value:ge},r.createElement(Jt,{prefixCls:l,rootClassName:c,mode:Le,openKeys:we,rtl:be,disabled:A,motion:ve?F:null,defaultMotions:ve?X:null,activeKey:it,onActive:lt,onInactive:ct,selectedKeys:dt,inlineIndent:W,subMenuOpenDelay:x,subMenuCloseDelay:k,forceSubMenuRender:E,builtinPlacements:q,triggerSubMenuAction:G,getPopupContainer:ne,itemIcon:Y,expandIcon:U,onItemClick:pt,onOpenChange:vt},r.createElement(an.Provider,{value:nt},bt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(tn.Provider,{value:tt},de)))))}));var mr=vr;mr.Item=Bn,mr.SubMenu=rr,mr.ItemGroup=lr,mr.Divider=cr;const hr=mr;var gr=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,a=e.tabs,l=e.locale,c=e.mobile,s=e.moreIcon,u=void 0===s?"More":s,d=e.moreTransitionName,f=e.style,p=e.className,v=e.editable,m=e.tabBarGutter,h=e.rtl,g=e.removeAriaLabel,b=e.onTabClick,y=e.getPopupContainer,A=e.popupClassName,w=(0,r.useState)(!1),S=(0,te.A)(w,2),x=S[0],C=S[1],k=(0,r.useState)(null),E=(0,te.A)(k,2),M=E[0],$=E[1],O="".concat(o,"-more-popup"),T="".concat(n,"-dropdown"),R=null!==M?"".concat(O,"-").concat(M):null,z=null==l?void 0:l.dropdownAriaLabel;var P=r.createElement(hr,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),C(!1)},prefixCls:"".concat(T,"-menu"),id:O,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[M],"aria-label":void 0!==z?z:"expanded dropdown"},a.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=je(t,i,v,n);return r.createElement(Bn,{key:a,id:"".concat(O,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:n},r.createElement("span",null,l),c&&r.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),v.onEdit("remove",{key:t,event:e})}(e,a)}},i||v.removeIcon||"\xd7"))})));function N(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===M}))||0,r=t.length,o=0;ot?"left":"right"})})),R=(0,te.A)(T,2),z=R[0],N=R[1],I=Te(0,(function(e,t){!O&&g&&g({direction:e>t?"top":"bottom"})})),L=(0,te.A)(I,2),j=L[0],_=L[1],D=(0,r.useState)([0,0]),B=(0,te.A)(D,2),W=B[0],F=B[1],X=(0,r.useState)([0,0]),K=(0,te.A)(X,2),G=K[0],q=K[1],Y=(0,r.useState)([0,0]),U=(0,te.A)(Y,2),V=U[0],Q=U[1],Z=(0,r.useState)([0,0]),ne=(0,te.A)(Z,2),re=ne[0],oe=ne[1],ie=function(e){var t=(0,r.useRef)([]),n=(0,r.useState)({}),o=(0,te.A)(n,2)[1],i=(0,r.useRef)("function"==typeof e?e():e),a=Pe((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,o({})}));return[i.current,function(e){t.current.push(e),a()}]}(new Map),le=(0,te.A)(ie,2),ce=le[0],se=le[1],ue=function(e,t,n){return(0,r.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Oe,i=o.left+o.width,a=0;aAe?Ae:e}O&&s?(ye=0,Ae=Math.max(0,pe-ge)):(ye=Math.min(0,ge-pe),Ae=0);var Se=(0,r.useRef)(null),xe=(0,r.useState)(),Ce=(0,te.A)(xe,2),Me=Ce[0],ze=Ce[1];function je(){ze(Date.now())}function _e(){Se.current&&clearTimeout(Se.current)}!function(e,t){var n=(0,r.useState)(),o=(0,te.A)(n,2),i=o[0],a=o[1],l=(0,r.useState)(0),c=(0,te.A)(l,2),s=c[0],u=c[1],d=(0,r.useState)(0),f=(0,te.A)(d,2),p=f[0],v=f[1],m=(0,r.useState)(),h=(0,te.A)(m,2),g=h[0],b=h[1],y=(0,r.useRef)(),A=(0,r.useRef)(),w=(0,r.useRef)(null);w.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(y.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],r=n.screenX,o=n.screenY;a({x:r,y:o});var l=r-i.x,c=o-i.y;t(l,c);var d=Date.now();u(d),v(d-s),b({x:l,y:c})}},onTouchEnd:function(){if(i&&(a(null),b(null),g)){var e=g.x/p,n=g.y/p,r=Math.abs(e),o=Math.abs(n);if(Math.max(r,o)<.1)return;var l=e,c=n;y.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(y.current):t(20*(l*=Re),20*(c*=Re))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===A.current?n:r:i>a?(o=n,A.current="x"):(o=r,A.current="y"),t(-o,-o)&&e.preventDefault()}},r.useEffect((function(){function t(e){w.current.onTouchMove(e)}function n(e){w.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){w.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){w.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(k,(function(e,t){function n(e,t){e((function(e){return we(e+t)}))}return!!he&&(O?n(N,e):n(_,t),_e(),je(),!0)})),(0,r.useEffect)((function(){return _e(),Me&&(Se.current=setTimeout((function(){ze(0)}),100)),_e}),[Me]);var Be=function(e,t,n,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(n)):(c="height",s="top",u=-n),(0,r.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,o=0;ou+t){r=o-1;break}}for(var a=0,l=n-1;l>=0;l-=1)if((e.get(d[l].key)||Ne)[s]=r?[0,0]:[a,r]}),[e,t,o,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(ue,ge,O?z:j,pe,ve,me,(0,ee.A)((0,ee.A)({},e),{},{tabs:w})),We=(0,te.A)(Be,2),Fe=We[0],Xe=We[1],Ke=(0,Ee.A)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(O){var n=z;s?t.rightz+ge&&(n=t.right+t.width-ge):t.left<-z?n=-t.left:t.left+t.width>-z+ge&&(n=-(t.left+t.width-ge)),_(0),N(we(n))}else{var r=j;t.top<-j?r=-t.top:t.top+t.height>-j+ge&&(r=-(t.top+t.height-ge)),N(0),_(we(r))}})),Ge={};"top"===p||"bottom"===p?Ge[s?"marginRight":"marginLeft"]=v:Ge.marginTop=v;var qe=w.map((function(e,t){var n=e.key;return r.createElement(yr,{id:a,prefixCls:A,key:n,tab:e,style:0===t?void 0:Ge,closable:e.closable,editable:d,active:n===c,renderWrapper:m,removeAriaLabel:null==f?void 0:f.removeAriaLabel,onClick:function(e){h(n,e)},onFocus:function(){Ke(n),je(),k.current&&(s||(k.current.scrollLeft=0),k.current.scrollTop=0)}})})),Ye=function(){return se((function(){var e,t=new Map,n=null===(e=E.current)||void 0===e?void 0:e.getBoundingClientRect();return w.forEach((function(e){var r,o=e.key,i=null===(r=E.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(Le(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,r,i,o]}(i,n),l=(0,te.A)(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};(0,r.useEffect)((function(){Ye()}),[w.map((function(e){return e.key})).join("_")]);var Ue=Pe((function(){var e=Ar(S),t=Ar(x),n=Ar(C);F([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Ar($);Q(r);var o=Ar(M);oe(o);var i=Ar(E);q([i[0]-r[0],i[1]-r[1]]),Ye()})),Ve=w.slice(0,Fe),Qe=w.slice(Xe+1),Ze=[].concat((0,H.A)(Ve),(0,H.A)(Qe)),Je=ue.get(c),et=$e({activeTabOffset:Je,horizontal:O,indicator:b,rtl:s}).style;(0,r.useEffect)((function(){Ke()}),[c,ye,Ae,Ie(Je),Ie(ue),O]),(0,r.useEffect)((function(){Ue()}),[s]);var tt,nt,rt,ot,it=!!Ze.length,at="".concat(A,"-nav-wrap");return O?s?(nt=z>0,tt=z!==Ae):(tt=z<0,nt=z!==ye):(rt=j<0,ot=j!==ye),r.createElement(ke,{onResize:Ue},r.createElement("div",{ref:(0,de.xK)(t,S),role:"tablist",className:i()("".concat(A,"-nav"),n),style:o,onKeyDown:function(){je()}},r.createElement(De,{ref:x,position:"left",extra:u,prefixCls:A}),r.createElement(ke,{onResize:Ue},r.createElement("div",{className:i()(at,(0,J.A)((0,J.A)((0,J.A)((0,J.A)({},"".concat(at,"-ping-left"),tt),"".concat(at,"-ping-right"),nt),"".concat(at,"-ping-top"),rt),"".concat(at,"-ping-bottom"),ot)),ref:k},r.createElement(ke,{onResize:Ue},r.createElement("div",{ref:E,className:"".concat(A,"-nav-list"),style:{transform:"translate(".concat(z,"px, ").concat(j,"px)"),transition:Me?"none":void 0}},qe,r.createElement(He,{ref:$,prefixCls:A,locale:f,editable:d,style:(0,ee.A)((0,ee.A)({},0===qe.length?void 0:Ge),{},{visibility:it?"hidden":null})}),r.createElement("div",{className:i()("".concat(A,"-ink-bar"),(0,J.A)({},"".concat(A,"-ink-bar-animated"),l.inkBar)),style:et}))))),r.createElement(br,(0,P.A)({},e,{removeAriaLabel:null==f?void 0:f.removeAriaLabel,ref:M,prefixCls:A,tabs:Ze,className:!it&&be,tabMoving:!!Me})),r.createElement(De,{ref:C,position:"right",extra:u,prefixCls:A})))}));const xr=Sr;var Cr=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,a=e.style,l=e.id,c=e.active,s=e.tabKey,u=e.children;return r.createElement("div",{id:l&&"".concat(l,"-panel-").concat(s),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(s),"aria-hidden":!c,style:a,className:i()(n,c&&"".concat(n,"-active"),o),ref:t},u)}));const kr=Cr;var Er=["renderTabBar"],Mr=["label","key"];const $r=function(e){var t=e.renderTabBar,n=(0,re.A)(e,Er),o=r.useContext(ae).tabs;return t?t((0,ee.A)((0,ee.A)({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=(0,re.A)(e,Mr);return r.createElement(kr,(0,P.A)({tab:t,key:n,tabKey:n},o))}))}),xr):r.createElement(xr,n)};var Or=["key","forceRender","style","className","destroyInactiveTabPane"];const Tr=function(e){var t=e.id,n=e.activeKey,o=e.animated,a=e.tabPosition,l=e.destroyInactiveTabPane,c=r.useContext(ae),s=c.prefixCls,u=c.tabs,d=o.tabPane,f="".concat(s,"-tabpane");return r.createElement("div",{className:i()("".concat(s,"-content-holder"))},r.createElement("div",{className:i()("".concat(s,"-content"),"".concat(s,"-content-").concat(a),(0,J.A)({},"".concat(s,"-content-animated"),d))},u.map((function(e){var a=e.key,c=e.forceRender,s=e.style,u=e.className,p=e.destroyInactiveTabPane,v=(0,re.A)(e,Or),m=a===n;return r.createElement(Xe.Ay,(0,P.A)({key:a,visible:m,forceRender:c,removeOnLeave:!(!l&&!p),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,l=e.className;return r.createElement(kr,(0,P.A)({},v,{prefixCls:f,id:t,tabKey:a,animated:d,active:m,style:(0,ee.A)((0,ee.A)({},s),o),className:i()(u,l),ref:n}))}))}))))};var Rr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],zr=0;const Pr=r.forwardRef((function(e,t){var n=e.id,o=e.prefixCls,a=void 0===o?"rc-tabs":o,l=e.className,c=e.items,s=e.direction,u=e.activeKey,d=e.defaultActiveKey,f=e.editable,p=e.animated,v=e.tabPosition,m=void 0===v?"top":v,h=e.tabBarGutter,g=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,A=e.moreIcon,w=e.moreTransitionName,S=e.destroyInactiveTabPane,x=e.renderTabBar,C=e.onChange,k=e.onTabClick,E=e.onTabScroll,M=e.getPopupContainer,$=e.popupClassName,O=e.indicator,T=(0,re.A)(e,Rr),R=r.useMemo((function(){return(c||[]).filter((function(e){return e&&"object"===(0,ne.A)(e)&&"key"in e}))}),[c]),z="rtl"===s,N=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,ee.A)({inkBar:!0},"object"===(0,ne.A)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(p),I=(0,r.useState)(!1),L=(0,te.A)(I,2),j=L[0],_=L[1];(0,r.useEffect)((function(){_(ie())}),[]);var H=(0,oe.A)((function(){var e;return null===(e=R[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),D=(0,te.A)(H,2),B=D[0],W=D[1],F=(0,r.useState)((function(){return R.findIndex((function(e){return e.key===B}))})),X=(0,te.A)(F,2),K=X[0],G=X[1];(0,r.useEffect)((function(){var e,t=R.findIndex((function(e){return e.key===B}));-1===t&&(t=Math.max(0,Math.min(K,R.length-1)),W(null===(e=R[t])||void 0===e?void 0:e.key));G(t)}),[R.map((function(e){return e.key})).join("_"),B,K]);var q=(0,oe.A)(null,{value:n}),Y=(0,te.A)(q,2),U=Y[0],V=Y[1];(0,r.useEffect)((function(){n||(V("rc-tabs-".concat(zr)),zr+=1)}),[]);var Q={id:U,activeKey:B,animated:N,tabPosition:m,rtl:z,mobile:j},Z=(0,ee.A)((0,ee.A)({},Q),{},{editable:f,locale:y,moreIcon:A,moreTransitionName:w,tabBarGutter:h,onTabClick:function(e,t){null==k||k(e,t);var n=e!==B;W(e),n&&(null==C||C(e))},onTabScroll:E,extra:b,style:g,panes:null,getPopupContainer:M,popupClassName:$,indicator:O});return r.createElement(ae.Provider,{value:{tabs:R,prefixCls:a}},r.createElement("div",(0,P.A)({ref:t,id:n,className:i()(a,"".concat(a,"-").concat(m),(0,J.A)((0,J.A)((0,J.A)({},"".concat(a,"-mobile"),j),"".concat(a,"-editable"),f),"".concat(a,"-rtl"),z),l)},T),r.createElement($r,(0,P.A)({},Z,{renderTabBar:x})),r.createElement(Tr,(0,P.A)({destroyInactiveTabPane:S},Q,{animated:N}))))}));var Nr=n(934),Ir=n(3723);const Lr={motionAppear:!1,motionEnter:!0,motionLeave:!0};var jr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Dr[t];return[(0,Hr.b)(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Wr=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Br(e,"slide-up"),Br(e,"slide-down")]]},Fr=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,f.zA)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,f.zA)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,f.zA)(e.borderRadiusLG)} 0 0 ${(0,f.zA)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Xr=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,_r.dF)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,f.zA)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},_r.L9),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,f.zA)(e.paddingXXS)} ${(0,f.zA)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Kr=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,f.zA)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Gr=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,f.zA)(e.borderRadius)} ${(0,f.zA)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,f.zA)(e.borderRadius)} ${(0,f.zA)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,f.zA)(e.borderRadius)} ${(0,f.zA)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,f.zA)(e.borderRadius)} 0 0 ${(0,f.zA)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},qr=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,_r.K8)(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},Yr=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,f.zA)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,f.zA)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,f.zA)(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ur=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,_r.dF)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${(0,f.zA)(e.paddingXS)}`,background:"transparent",border:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},(0,_r.K8)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),qr(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Vr=(0,p.OF)("Tabs",(e=>{const t=(0,v.h1)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,f.zA)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,f.zA)(e.horizontalItemGutter)}`});return[Gr(t),Yr(t),Kr(t),Xr(t),Fr(t),Ur(t),Wr(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var Qr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,n,o,a,c,s,d,f;const{type:p,className:v,rootClassName:m,size:h,onEdit:g,hideAdd:b,centered:y,addIcon:A,removeIcon:w,moreIcon:S,popupClassName:x,children:C,items:k,animated:E,style:M,indicatorSize:$,indicator:O}=e,T=Qr(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:R}=T,{direction:z,tabs:P,getPrefixCls:N,getPopupContainer:I}=r.useContext(l.QO),L=N("tabs",R),j=(0,Nr.A)(L),[_,H,D]=Vr(L,j);let B;"editable-card"===p&&(B={onEdit:(e,t)=>{let{key:n,event:r}=t;null==g||g("add"===e?r:n,e)},removeIcon:null!==(t=null!=w?w:null==P?void 0:P.removeIcon)&&void 0!==t?t:r.createElement(G.A,null),addIcon:(null!=A?A:null==P?void 0:P.addIcon)||r.createElement(Z,null),showAdd:!0!==b});const W=N();const F=u(h),X=function(e,t){return e||function(e){return e.filter((e=>e))}(ce(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=jr(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(k,C),K=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},Lr),{motionName:(0,Ir.b)(e,"switch")})),t}(L,E),q=Object.assign(Object.assign({},null==P?void 0:P.style),M),Y={align:null!==(n=null==O?void 0:O.align)&&void 0!==n?n:null===(o=null==P?void 0:P.indicator)||void 0===o?void 0:o.align,size:null!==(d=null!==(c=null!==(a=null==O?void 0:O.size)&&void 0!==a?a:$)&&void 0!==c?c:null===(s=null==P?void 0:P.indicator)||void 0===s?void 0:s.size)&&void 0!==d?d:null==P?void 0:P.indicatorSize};return _(r.createElement(Pr,Object.assign({direction:z,getPopupContainer:I,moreTransitionName:`${W}-slide-up`},T,{items:X,className:i()({[`${L}-${F}`]:F,[`${L}-card`]:["card","editable-card"].includes(p),[`${L}-editable-card`]:"editable-card"===p,[`${L}-centered`]:y},null==P?void 0:P.className,v,m,H,D,j),popupClassName:i()(x,H,D,j),style:q,editable:B,moreIcon:null!==(f=null!=S?S:null==P?void 0:P.moreIcon)&&void 0!==f?f:r.createElement(U,null),prefixCls:L,animated:K,indicator:Y})))};Zr.TabPane=()=>null;const Jr=Zr;var eo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,hoverable:o=!0}=e,a=eo(e,["prefixCls","className","hoverable"]);const{getPrefixCls:c}=r.useContext(l.QO),s=c("card",t),u=i()(`${s}-grid`,n,{[`${s}-grid-hoverable`]:o});return r.createElement("div",Object.assign({},a,{className:u}))},no=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,f.zA)(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`},(0,_r.t6)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},_r.L9),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},ro=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${(0,f.zA)(o)} 0 0 0 ${n},\n 0 ${(0,f.zA)(o)} 0 0 ${n},\n ${(0,f.zA)(o)} ${(0,f.zA)(o)} 0 0 ${n},\n ${(0,f.zA)(o)} 0 0 0 ${n} inset,\n 0 ${(0,f.zA)(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},oo=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)}`},(0,_r.t6)()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,f.zA)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:(0,f.zA)(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`}}})},io=e=>Object.assign(Object.assign({margin:`${(0,f.zA)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,_r.t6)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},_r.L9),"&-description":{color:e.colorTextDescription}}),ao=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${(0,f.zA)(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,f.zA)(e.padding)} ${(0,f.zA)(n)}`}}},lo=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},co=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:o,colorBorderSecondary:i,boxShadowTertiary:a,cardPaddingBase:l,extraColor:c}=e;return{[n]:Object.assign(Object.assign({},(0,_r.dF)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:no(e),[`${n}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:`0 0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)}`},(0,_r.t6)()),[`${n}-grid`]:ro(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:oo(e),[`${n}-meta`]:io(e)}),[`${n}-bordered`]:{border:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:o}}},[`${n}-type-inner`]:ao(e),[`${n}-loading`]:lo(e),[`${n}-rtl`]:{direction:"rtl"}}},so=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${(0,f.zA)(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},uo=(0,p.OF)("Card",(e=>{const t=(0,v.h1)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[co(t),so(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var fo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{actionClasses:t,actions:n=[],actionStyle:o}=e;return r.createElement("ul",{className:t,style:o},n.map(((e,t)=>{const o=`action-${t}`;return r.createElement("li",{style:{width:100/n.length+"%"},key:o},r.createElement("span",null,e))})))},vo=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:c,style:s,extra:d,headStyle:f={},bodyStyle:p={},title:v,loading:m,bordered:h=!0,size:g,type:b,cover:y,actions:A,tabList:w,children:S,activeTabKey:x,defaultActiveTabKey:C,tabBarExtraContent:k,hoverable:E,tabProps:M={},classNames:$,styles:O}=e,T=fo(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:R,direction:z,card:P}=r.useContext(l.QO);const N=e=>{var t;return i()(null===(t=null==P?void 0:P.classNames)||void 0===t?void 0:t[e],null==$?void 0:$[e])},I=e=>{var t;return Object.assign(Object.assign({},null===(t=null==P?void 0:P.styles)||void 0===t?void 0:t[e]),null==O?void 0:O[e])},L=r.useMemo((()=>{let e=!1;return r.Children.forEach(S,(t=>{t&&t.type&&t.type===to&&(e=!0)})),e}),[S]),j=R("card",n),[_,H,D]=uo(j),B=r.createElement(K,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),W=void 0!==x,F=Object.assign(Object.assign({},M),{[W?"activeKey":"defaultActiveKey"]:W?x:C,tabBarExtraContent:k});let X;const G=u(g),q=G&&"default"!==G?G:"large",Y=w?r.createElement(Jr,Object.assign({size:q},F,{className:`${j}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:w.map((e=>{var{tab:t}=e,n=fo(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(v||d||Y){const e=i()(`${j}-head`,N("header")),t=i()(`${j}-head-title`,N("title")),n=i()(`${j}-extra`,N("extra")),o=Object.assign(Object.assign({},f),I("header"));X=r.createElement("div",{className:e,style:o},r.createElement("div",{className:`${j}-head-wrapper`},v&&r.createElement("div",{className:t,style:I("title")},v),d&&r.createElement("div",{className:n,style:I("extra")},d)),Y)}const U=i()(`${j}-cover`,N("cover")),V=y?r.createElement("div",{className:U,style:I("cover")},y):null,Q=i()(`${j}-body`,N("body")),Z=Object.assign(Object.assign({},p),I("body")),J=r.createElement("div",{className:Q,style:Z},m?B:S),ee=i()(`${j}-actions`,N("actions")),te=A&&A.length?r.createElement(po,{actionClasses:ee,actionStyle:I("actions"),actions:A}):null,ne=(0,a.A)(T,["onTabChange"]),re=i()(j,null==P?void 0:P.className,{[`${j}-loading`]:m,[`${j}-bordered`]:h,[`${j}-hoverable`]:E,[`${j}-contain-grid`]:L,[`${j}-contain-tabs`]:w&&w.length,[`${j}-${G}`]:G,[`${j}-type-${b}`]:!!b,[`${j}-rtl`]:"rtl"===z},o,c,H,D),oe=Object.assign(Object.assign({},null==P?void 0:P.style),s);return _(r.createElement("div",Object.assign({ref:t},ne,{className:re,style:oe}),X,V,J,te))}));var mo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,avatar:o,title:a,description:c}=e,s=mo(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:u}=r.useContext(l.QO),d=u("card",t),f=i()(`${d}-meta`,n),p=o?r.createElement("div",{className:`${d}-meta-avatar`},o):null,v=a?r.createElement("div",{className:`${d}-meta-title`},a):null,m=c?r.createElement("div",{className:`${d}-meta-description`},c):null,h=v||m?r.createElement("div",{className:`${d}-meta-detail`},v,m):null;return r.createElement("div",Object.assign({},s,{className:f}),p,h)},go=vo;go.Grid=to,go.Meta=ho;const bo=go},3517:(e,t,n)=>{"use strict";n.d(t,{A:()=>ge});var r=n(6540),o=n(8168),i=n(9379),a=n(3029),l=n(2901),c=n(6822),s=n(2176),u=n(3954),d=n(5501),f=n(4467),p=n(2284),v=n(45);const m={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function h(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,u=void 0===s?void 0:s,d=!1,f=0;function p(){r&&clearTimeout(r)}function v(){for(var n=arguments.length,o=new Array(n),i=0;ie?c?(f=Date.now(),a||(r=setTimeout(u?m:v,e))):v():!0!==a&&(r=setTimeout(u?m:v,void 0===u?e-s:e)))}return v.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},v}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}var g=n(6942),b=n.n(g);const y={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return r.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return r.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function A(e,t,n){return Math.max(t,Math.min(e,n))}var w=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},S=function(e){for(var t=[],n=x(e),r=C(e),o=n;o0?1:0):0},E=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},M=function(e){return e&&e.offsetWidth||0},$=function(e){return e&&e.offsetHeight||0},O=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"},T=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},R=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},z=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];nn[n.length-1])t=n[n.length-1];else for(var o in n){if(t-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+M(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},N=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},I=function(e){var t,n;(N(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical)?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=D(e)*e.slideWidth;var r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=(0,i.A)((0,i.A)({},r),{},{WebkitTransform:o,transform:a,msTransform:l})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t),n&&(r.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},L=function(e){N(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=I(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},j=function(e){if(e.unslick)return 0;N(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,i=e.infinite,a=e.centerMode,l=e.slideCount,c=e.slidesToShow,s=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,f=e.variableWidth,p=e.slideHeight,v=e.fade,m=e.vertical;if(v||1===e.slideCount)return 0;var h=0;if(i?(h=-_(e),l%s!=0&&r+s>l&&(h=-(r>l?c-(r-l):l%s)),a&&(h+=parseInt(c/2))):(l%s!=0&&r+s>l&&(h=c-l%s),a&&(h=parseInt(c/2))),t=m?r*p*-1+h*p:r*u*-1+h*u,!0===f){var g,b=o&&o.node;if(g=r+_(e),t=(n=b&&b.childNodes[g])?-1*n.offsetLeft:0,!0===a){g=i?r+_(e):r,n=b&&b.children[g],t=0;for(var y=0;ye.currentSlide?e.targetSlide>e.currentSlide+W(e)?"left":"right":e.targetSlide0&&(i+=1),r&&t%2==0&&(i+=1),i}return r?0:t-1},F=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!=0||(i+=1),i}return r?t-1:0},X=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},K=Object.keys(y);var G=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},q=function(e,t){return e.key+"-"+t},Y=function(e){var t,n=[],o=[],a=[],l=r.Children.count(e.children),c=x(e),s=C(e);return r.Children.forEach(e.children,(function(u,d){var f,p={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?u:r.createElement("div",null);var v=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}((0,i.A)((0,i.A)({},e),{},{index:d})),m=f.props.className||"",h=G((0,i.A)((0,i.A)({},e),{},{index:d}));if(n.push(r.cloneElement(f,{key:"original"+q(f,d),"data-index":d,className:b()(h,m),tabIndex:"-1","aria-hidden":!h["slick-active"],style:(0,i.A)((0,i.A)({outline:"none"},f.props.style||{}),v),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&l>1&&!1===e.fade&&!e.unslick){var g=l-d;g<=_(e)&&((t=-g)>=c&&(f=u),h=G((0,i.A)((0,i.A)({},e),{},{index:t})),o.push(r.cloneElement(f,{key:"precloned"+q(f,t),"data-index":t,tabIndex:"-1",className:b()(h,m),"aria-hidden":!h["slick-active"],style:(0,i.A)((0,i.A)({},f.props.style||{}),v),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),(t=l+d)=w&&d<=g:d===w}),x={message:"dots",index:m,slidesToScroll:c,currentSlide:d},C=this.clickHandler.bind(this,x);v=v.concat(r.createElement("li",{key:m,className:S},r.cloneElement(this.props.customPaging(m),{onClick:C})))}return r.cloneElement(this.props.appendDots(v),(0,i.A)({className:this.props.dotsClass},p))}}])}(r.PureComponent);function Q(e,t,n){return t=(0,u.A)(t),(0,c.A)(e,(0,s.A)()?Reflect.construct(t,n||[],(0,u.A)(e).constructor):t.apply(e,n))}var Z=function(e){function t(){return(0,a.A)(this,t),Q(this,t,arguments)}return(0,d.A)(t,e),(0,l.A)(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:b()(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?r.cloneElement(this.props.prevArrow,(0,i.A)((0,i.A)({},n),a)):r.createElement("button",(0,o.A)({key:"0",type:"button"},n)," ","Previous")}}])}(r.PureComponent),J=function(e){function t(){return(0,a.A)(this,t),Q(this,t,arguments)}return(0,d.A)(t,e),(0,l.A)(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});T(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:b()(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?r.cloneElement(this.props.nextArrow,(0,i.A)((0,i.A)({},n),a)):r.createElement("button",(0,o.A)({key:"1",type:"button"},n)," ","Next")}}])}(r.PureComponent),ee=n(3591),te=["animating"];var ne=function(e){function t(e){var n,l,d,p;(0,a.A)(this,t),l=this,d=t,p=[e],d=(0,u.A)(d),n=(0,c.A)(l,(0,s.A)()?Reflect.construct(d,p||[],(0,u.A)(l).constructor):d.apply(l,p)),(0,f.A)(n,"listRefHandler",(function(e){return n.list=e})),(0,f.A)(n,"trackRefHandler",(function(e){return n.track=e})),(0,f.A)(n,"adaptHeight",(function(){if(n.props.adaptiveHeight&&n.list){var e=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=$(e)+"px"}})),(0,f.A)(n,"componentDidMount",(function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var e=S((0,i.A)((0,i.A)({},n.props),n.state));e.length>0&&(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e))}var t=(0,i.A)({listRef:n.list,trackRef:n.track},n.props);n.updateState(t,!0,(function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")})),"progressive"===n.props.lazyLoad&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),n.ro=new ee.A((function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout((function(){return n.onWindowResized()}),n.props.speed))):n.onWindowResized()})),n.ro.observe(n.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,e.onblur=n.props.pauseOnFocus?n.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)})),(0,f.A)(n,"componentWillUnmount",(function(){n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach((function(e){return clearTimeout(e)})),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),n.ro.disconnect()})),(0,f.A)(n,"componentDidUpdate",(function(e){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var t=S((0,i.A)((0,i.A)({},n.props),n.state));t.length>0&&(n.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),n.props.onLazyLoad&&n.props.onLazyLoad(t))}n.adaptHeight();var o=(0,i.A)((0,i.A)({listRef:n.list,trackRef:n.track},n.props),n.state),a=n.didPropsChange(e);a&&n.updateState(o,a,(function(){n.state.currentSlide>=r.Children.count(n.props.children)&&n.changeSlide({message:"index",index:r.Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),e.autoplay===n.props.autoplay&&e.autoplaySpeed===n.props.autoplaySpeed||(!e.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))}))})),(0,f.A)(n,"onWindowResized",(function(e){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=h(50,(function(){return n.resizeWindow(e)})),n.debouncedResize()})),(0,f.A)(n,"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(n.track&&n.track.node)){var t=(0,i.A)((0,i.A)({listRef:n.list,trackRef:n.track},n.props),n.state);n.updateState(t,e,(function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")})),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}})),(0,f.A)(n,"updateState",(function(e,t,o){var a=function(e){var t,n=r.Children.count(e.children),o=e.listRef,a=Math.ceil(M(o)),l=e.trackRef&&e.trackRef.node,c=Math.ceil(M(l));if(e.vertical)t=a;else{var s=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(s*=a/100),t=Math.ceil((a-s)/e.slidesToShow)}var u=o&&$(o.querySelector('[data-index="0"]')),d=u*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=n-1-e.initialSlide);var p=e.lazyLoadedList||[],v=S((0,i.A)((0,i.A)({},e),{},{currentSlide:f,lazyLoadedList:p})),m={slideCount:n,slideWidth:t,listWidth:a,trackWidth:c,currentSlide:f,slideHeight:u,listHeight:d,lazyLoadedList:p=p.concat(v)};return null===e.autoplaying&&e.autoplay&&(m.autoplaying="playing"),m}(e);e=(0,i.A)((0,i.A)((0,i.A)({},e),a),{},{slideIndex:a.currentSlide});var l=j(e);e=(0,i.A)((0,i.A)({},e),{},{left:l});var c=I(e);(t||r.Children.count(n.props.children)!==r.Children.count(e.children))&&(a.trackStyle=c),n.setState(a,o)})),(0,f.A)(n,"ssrInit",(function(){if(n.props.variableWidth){var e=0,t=0,o=[],a=_((0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{slideCount:n.props.children.length})),l=H((0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach((function(t){o.push(t.props.style.width),e+=t.props.style.width}));for(var c=0;c=t&&n.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(n.props.lazyLoad?e.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(e.onload=o,e.onerror=function(){o(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))}))})),(0,f.A)(n,"progressiveLazyLoad",(function(){for(var e=[],t=(0,i.A)((0,i.A)({},n.props),n.state),r=n.state.currentSlide;r=-_(t);o--)if(n.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}e.length>0?(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)})),(0,f.A)(n,"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.props,o=r.asNavFor,a=r.beforeChange,l=r.onLazyLoad,c=r.speed,s=r.afterChange,u=n.state.currentSlide,d=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,a=e.index,l=e.slideCount,c=e.lazyLoad,s=e.currentSlide,u=e.centerMode,d=e.slidesToScroll,f=e.slidesToShow,p=e.useCSS,v=e.lazyLoadedList;if(t&&n)return{};var m,h,g,b=a,y={},w={},x=o?a:A(a,0,l-1);if(r){if(!o&&(a<0||a>=l))return{};a<0?b=a+l:a>=l&&(b=a-l),c&&v.indexOf(b)<0&&(v=v.concat(b)),y={animating:!0,currentSlide:b,lazyLoadedList:v,targetSlide:b},w={animating:!1,targetSlide:b}}else m=b,b<0?(m=b+l,o?l%d!=0&&(m=l-l%d):m=0):!T(e)&&b>s?b=m=s:u&&b>=l?(b=o?l:l-1,m=o?0:l-1):b>=l&&(m=b-l,o?l%d!=0&&(m=0):m=l-f),!o&&b+f>=l&&(m=l-f),h=j((0,i.A)((0,i.A)({},e),{},{slideIndex:b})),g=j((0,i.A)((0,i.A)({},e),{},{slideIndex:m})),o||(h===g&&(b=m),h=g),c&&(v=v.concat(S((0,i.A)((0,i.A)({},e),{},{currentSlide:b})))),p?(y={animating:!0,currentSlide:m,trackStyle:L((0,i.A)((0,i.A)({},e),{},{left:h})),lazyLoadedList:v,targetSlide:x},w={animating:!1,currentSlide:m,trackStyle:I((0,i.A)((0,i.A)({},e),{},{left:g})),swipeLeft:null,targetSlide:x}):y={currentSlide:m,trackStyle:I((0,i.A)((0,i.A)({},e),{},{left:g})),lazyLoadedList:v,targetSlide:x};return{state:y,nextState:w}}((0,i.A)((0,i.A)((0,i.A)({index:e},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!t})),f=d.state,p=d.nextState;if(f){a&&a(u,f.currentSlide);var m=f.lazyLoadedList.filter((function(e){return n.state.lazyLoadedList.indexOf(e)<0}));l&&m.length>0&&l(m),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),s&&s(u),delete n.animationEndCallback),n.setState(f,(function(){o&&n.asNavForIndex!==e&&(n.asNavForIndex=e,o.innerSlider.slideHandler(e)),p&&(n.animationEndCallback=setTimeout((function(){var e=p.animating,t=(0,v.A)(p,te);n.setState(t,(function(){n.callbackTimers.push(setTimeout((function(){return n.setState({animating:e})}),10)),s&&s(f.currentSlide),delete n.animationEndCallback}))}),c))}))}})),(0,f.A)(n,"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=function(e,t){var n,r,o,a,l=e.slidesToScroll,c=e.slidesToShow,s=e.slideCount,u=e.currentSlide,d=e.targetSlide,f=e.lazyLoad,p=e.infinite;if(n=s%l!=0?0:(s-u)%l,"previous"===t.message)a=u-(o=0===n?l:c-n),f&&!p&&(a=-1==(r=u-o)?s-1:r),p||(a=d-l);else if("next"===t.message)a=u+(o=0===n?l:n),f&&!p&&(a=(u+l)%s+n),p||(a=d+l);else if("dots"===t.message)a=t.index*t.slidesToScroll;else if("children"===t.message){if(a=t.index,p){var v=B((0,i.A)((0,i.A)({},e),{},{targetSlide:a}));a>t.currentSlide&&"left"===v?a-=s:a10)return{scrolling:!0};l&&(b.swipeLength=E);var M=(c?-1:1)*(b.curX>b.startX?1:-1);l&&(M=b.curY>b.startY?1:-1);var $=Math.ceil(m/h),R=O(t.touchObject,l),z=b.swipeLength;return g||(0===s&&("right"===R||"down"===R)||s+1>=$&&("left"===R||"up"===R)||!T(t)&&("left"===R||"up"===R))&&(z=b.swipeLength*u,!1===d&&f&&(f(R),C.edgeDragged=!0)),!p&&y&&(y(R),C.swiped=!0),x=o?k+z*(A/S)*M:c?k-z*M:k+z*M,l&&(x=k+z*M),C=(0,i.A)((0,i.A)({},C),{},{touchObject:b,swipeLeft:x,trackStyle:I((0,i.A)((0,i.A)({},t),{},{left:x}))}),Math.abs(b.curX-b.startX)<.8*Math.abs(b.curY-b.startY)||b.swipeLength>10&&(C.swiping=!0,w(e)),C}}(e,(0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));t&&(t.swiping&&(n.clickable=!1),n.setState(t))})),(0,f.A)(n,"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,a=t.listWidth,l=t.touchThreshold,c=t.verticalSwiping,s=t.listHeight,u=t.swipeToSlide,d=t.scrolling,f=t.onSwipe,p=t.targetSlide,v=t.currentSlide,m=t.infinite;if(!n)return r&&w(e),{};var h=c?s/l:a/l,g=O(o,c),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return b;if(!o.swipeLength)return b;if(o.swipeLength>h){var y,A;w(e),f&&f(g);var S=m?v:p;switch(g){case"left":case"up":A=S+P(t),y=u?z(t,A):A,b.currentDirection=0;break;case"right":case"down":A=S-P(t),y=u?z(t,A):A,b.currentDirection=1;break;default:y=S}b.triggerSlideHandler=y}else{var x=j(t);b.trackStyle=L((0,i.A)((0,i.A)({},t),{},{left:x}))}return b}(e,(0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if(t){var r=t.triggerSlideHandler;delete t.triggerSlideHandler,n.setState(t),void 0!==r&&(n.slideHandler(r),n.props.verticalSwiping&&n.enableBodyScroll())}})),(0,f.A)(n,"touchEnd",(function(e){n.swipeEnd(e),n.clickable=!0})),(0,f.A)(n,"slickPrev",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"previous"})}),0))})),(0,f.A)(n,"slickNext",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"next"})}),0))})),(0,f.A)(n,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"index",index:e,currentSlide:n.state.currentSlide},t)}),0))})),(0,f.A)(n,"play",(function(){var e;if(n.props.rtl)e=n.state.currentSlide-n.props.slidesToScroll;else{if(!T((0,i.A)((0,i.A)({},n.props),n.state)))return!1;e=n.state.currentSlide+n.props.slidesToScroll}n.slideHandler(e)})),(0,f.A)(n,"autoPlay",(function(e){n.autoplayTimer&&clearInterval(n.autoplayTimer);var t=n.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})})),(0,f.A)(n,"pause",(function(e){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var t=n.state.autoplaying;"paused"===e?n.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||n.setState({autoplaying:"focused"}):"playing"===t&&n.setState({autoplaying:"hovered"})})),(0,f.A)(n,"onDotsOver",(function(){return n.props.autoplay&&n.pause("hovered")})),(0,f.A)(n,"onDotsLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),(0,f.A)(n,"onTrackOver",(function(){return n.props.autoplay&&n.pause("hovered")})),(0,f.A)(n,"onTrackLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),(0,f.A)(n,"onSlideFocus",(function(){return n.props.autoplay&&n.pause("focused")})),(0,f.A)(n,"onSlideBlur",(function(){return n.props.autoplay&&"focused"===n.state.autoplaying&&n.autoPlay("blur")})),(0,f.A)(n,"render",(function(){var e,t,a,l=b()("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),c=(0,i.A)((0,i.A)({},n.props),n.state),s=R(c,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),u=n.props.pauseOnHover;if(s=(0,i.A)((0,i.A)({},s),{},{onMouseEnter:u?n.onTrackOver:null,onMouseLeave:u?n.onTrackLeave:null,onMouseOver:u?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null}),!0===n.props.dots&&n.state.slideCount>=n.props.slidesToShow){var d=R(c,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=n.props.pauseOnDotsHover;d=(0,i.A)((0,i.A)({},d),{},{clickHandler:n.changeSlide,onMouseEnter:f?n.onDotsLeave:null,onMouseOver:f?n.onDotsOver:null,onMouseLeave:f?n.onDotsLeave:null}),e=r.createElement(V,d)}var p=R(c,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=n.changeSlide,n.props.arrows&&(t=r.createElement(Z,p),a=r.createElement(J,p));var v=null;n.props.vertical&&(v={height:n.state.listHeight});var m=null;!1===n.props.vertical?!0===n.props.centerMode&&(m={padding:"0px "+n.props.centerPadding}):!0===n.props.centerMode&&(m={padding:n.props.centerPadding+" 0px"});var h=(0,i.A)((0,i.A)({},v),m),g=n.props.touchMove,y={className:"slick-list",style:h,onClick:n.clickHandler,onMouseDown:g?n.swipeStart:null,onMouseMove:n.state.dragging&&g?n.swipeMove:null,onMouseUp:g?n.swipeEnd:null,onMouseLeave:n.state.dragging&&g?n.swipeEnd:null,onTouchStart:g?n.swipeStart:null,onTouchMove:n.state.dragging&&g?n.swipeMove:null,onTouchEnd:g?n.touchEnd:null,onTouchCancel:n.state.dragging&&g?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},A={className:l,dir:"ltr",style:n.props.style};return n.props.unslick&&(y={className:"slick-list"},A={className:l,style:n.props.style}),r.createElement("div",A,n.props.unslick?"":t,r.createElement("div",(0,o.A)({ref:n.listRefHandler},y),r.createElement(U,(0,o.A)({ref:n.trackRefHandler},s),n.props.children)),n.props.unslick?"":a,n.props.unslick?"":e)})),n.list=null,n.track=null,n.state=(0,i.A)((0,i.A)({},m),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide?n.props.initialSlide:0,slideCount:r.Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var g=n.ssrInit();return n.state=(0,i.A)((0,i.A)({},n.state),g),n}return(0,d.A)(t,e),(0,l.A)(t,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,o=Object.keys(this.props);n1&&void 0!==arguments[1]&&arguments[1];return n.innerSlider.slickGoTo(e,t)})),(0,f.A)(n,"slickPause",(function(){return n.innerSlider.pause("paused")})),(0,f.A)(n,"slickPlay",(function(){return n.innerSlider.autoPlay("play")})),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return(0,d.A)(t,e),(0,l.A)(t,[{key:"media",value:function(e,t){var n=window.matchMedia(e),r=function(e){e.matches&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var o;o=0===r?oe()({minWidth:0,maxWidth:n}):oe()({minWidth:t[r-1]+1,maxWidth:n}),X()&&e.media(o,(function(){e.setState({breakpoint:n})}))}));var n=oe()({minWidth:t.slice(-1)[0]});X()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":(0,i.A)((0,i.A)((0,i.A)({},y),this.props),t[0].settings):(0,i.A)((0,i.A)({},y),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var a=r.Children.toArray(this.props.children);a=a.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var l=[],c=null,s=0;s=a.length));p+=1)f.push(r.cloneElement(a[p],{key:100*s+10*d+p,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));u.push(r.createElement("div",{key:10*s+d},f))}e.variableWidth?l.push(r.createElement("div",{key:s,style:{width:c}},u)):l.push(r.createElement("div",{key:s},u))}if("unslick"===e){var v="regular slider "+(this.props.className||"");return r.createElement("div",{className:v},a)}return l.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),r.createElement(ne,(0,o.A)({style:this.props.style,ref:this.innerSliderRefHandler},function(e){return K.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}(e)),l)}}])}(r.Component);var ae=n(2279),le=n(1466),ce=n(5905),se=n(665),ue=n(336);const de=e=>{const{componentCls:t,antCls:n,carouselArrowSize:r,carouselDotOffset:o,marginXXS:i}=e,a=e.calc(r).mul(-1.25).equal(),l=i;return{[t]:Object.assign(Object.assign({},(0,ce.dF)(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:r,height:r,marginTop:e.calc(r).mul(-1).div(2).equal(),padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:a,"&::before":{content:'"\u2190"'}},".slick-next":{insetInlineEnd:a,"&::before":{content:'"\u2192"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:o},"&-top":{top:o,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:l,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:e.dotHeight,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(l).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},fe=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:r}=e,o={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},o),{margin:`${(0,le.zA)(r)} 0`,verticalAlign:"baseline",button:o,"&.slick-active":Object.assign(Object.assign({},o),{button:o})})}}}},pe=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},ve=(0,se.OF)("Carousel",(e=>{const{controlHeightLG:t,controlHeightSM:n}=e,r=(0,ue.h1)(e,{carouselArrowSize:e.calc(t).div(2).equal(),carouselDotOffset:e.calc(n).div(2).equal()});return[de(r),fe(r),pe(r)]}),(()=>({dotWidth:16,dotHeight:3,dotWidthActive:24,dotActiveWidth:24})),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var me=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{dots:n=!0,arrows:o=!1,draggable:i=!1,waitForAnimate:a=!1,dotPosition:l="bottom",vertical:c="left"===l||"right"===l,rootClassName:s,className:u,style:d,id:f}=e,p=me(e,["dots","arrows","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:v,direction:m,carousel:h}=r.useContext(ae.QO),g=r.useRef(),y=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g.current.slickGoTo(e,t)};r.useImperativeHandle(t,(()=>({goTo:y,autoPlay:g.current.innerSlider.autoPlay,innerSlider:g.current.innerSlider,prev:g.current.slickPrev,next:g.current.slickNext})),[g.current]);const A=r.useRef(r.Children.count(e.children));r.useEffect((()=>{A.current!==r.Children.count(e.children)&&(y(e.initialSlide||0,!1),A.current=r.Children.count(e.children))}),[e.children]);const w=Object.assign({vertical:c,className:b()(u,null==h?void 0:h.className),style:Object.assign(Object.assign({},null==h?void 0:h.style),d)},p);"fade"===w.effect&&(w.fade=!0);const S=v("carousel",w.prefixCls),x="slick-dots",C=!!n,k=b()(x,`${x}-${l}`,"boolean"!=typeof n&&(null==n?void 0:n.className)),[E,M,$]=ve(S),O=b()(S,{[`${S}-rtl`]:"rtl"===m,[`${S}-vertical`]:w.vertical},M,$,s);return E(r.createElement("div",{className:O,id:f},r.createElement(ie,Object.assign({ref:g},w,{dots:C,dotsClass:k,arrows:o,draggable:i,verticalSwiping:c,waitForAnimate:a}))))}));const ge=he},2279:(e,t,n)=>{"use strict";n.d(t,{QO:()=>r});const r=n(6540).createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:"anticon"}),{Consumer:o}=r},934:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3511);const o=e=>{const[,,,,t]=(0,r.Ay)();return t?`${e}-css-var`:""}},4016:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(6540),o=n(6942),i=n.n(o),a=n(9853);function l(e){return["small","middle","large"].includes(e)}var c=n(2279),s=n(665),u=n(336);const d=["wrap","nowrap","wrap-reverse"],f=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],p=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];const v=function(e,t){return i()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n={};return d.forEach((r=>{n[`${e}-wrap-${r}`]=t.wrap===r})),n})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))},m=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},h=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},g=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},b=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},y=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},A=(0,s.OF)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=(0,u.h1)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[m(o),h(o),g(o),b(o),y(o)]}),(()=>({})),{resetStyle:!1});var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,rootClassName:o,className:s,style:u,flex:d,gap:f,children:p,vertical:m=!1,component:h="div"}=e,g=w(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:b,direction:y,getPrefixCls:S}=r.useContext(c.QO),x=S("flex",n),[C,k,E]=A(x),M=null!=m?m:null==b?void 0:b.vertical,$=i()(s,o,null==b?void 0:b.className,x,k,E,v(x,e),{[`${x}-rtl`]:"rtl"===y,[`${x}-gap-${f}`]:l(f),[`${x}-vertical`]:M}),O=Object.assign(Object.assign({},null==b?void 0:b.style),u);return d&&(O.flex=d),f&&!l(f)&&(O.gap=f),C(r.createElement(h,Object.assign({ref:t,className:$,style:O},(0,a.A)(g,["justify","wrap","align"])),p))}));const x=S},3343:(e,t,n)=>{"use strict";n.d(t,{A:()=>$t});var r=n(6540),o=n(8168);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var a=n(8046),l=function(e,t){return r.createElement(a.A,(0,o.A)({},e,{ref:t,icon:i}))};const c=r.forwardRef(l);var s=n(6942),u=n.n(s),d=n(9379),f=n(4467),p=n(6636),v=n(2284),m=n(45);function h(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}var g=n(2533),b=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],y=r.createContext(null),A=0;function w(e){var t=e.src,n=e.isCustomPlaceholder,o=e.fallback,i=(0,r.useState)(n?"loading":"normal"),a=(0,p.A)(i,2),l=a[0],c=a[1],s=(0,r.useRef)(!1),u="error"===l;(0,r.useEffect)((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&c("error")})),function(){e=!1}}),[t]),(0,r.useEffect)((function(){n&&!s.current?c("loading"):u&&c("normal")}),[t]);var d=function(){c("normal")};return[function(e){s.current=!1,"loading"===l&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(s.current=!0,d())},u&&o?{src:o}:{onLoad:d,src:t},l]}var S=n(5470),x=r.createContext({}),C=n(4808),k=n(6855),E=n(6928),M="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),$="aria-",O="data-";function T(e,t){return 0===e.indexOf(t)}function R(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,d.A)({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||T(n,$))||t.data&&T(n,O)||t.attr&&M.includes(n))&&(r[n]=e[n])})),r}function z(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function P(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var N=n(8542),I=n(8719);const L=r.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var j={width:0,height:0,overflow:"hidden",outline:"none"},_={outline:"none"},H=r.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,a=e.style,l=e.title,c=e.ariaId,s=e.footer,f=e.closable,p=e.closeIcon,m=e.onClose,h=e.children,g=e.bodyStyle,b=e.bodyProps,y=e.modalRender,A=e.onMouseDown,w=e.onMouseUp,S=e.holderRef,C=e.visible,k=e.forceRender,E=e.width,M=e.height,$=e.classNames,O=e.styles,T=r.useContext(x).panel,z=(0,I.xK)(S,T),P=(0,r.useRef)(),N=(0,r.useRef)(),H=(0,r.useRef)();r.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=H.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===N.current?P.current.focus():e||t!==P.current||N.current.focus()}}}));var D,B,W={};void 0!==E&&(W.width=E),void 0!==M&&(W.height=M),s&&(D=r.createElement("div",{className:u()("".concat(n,"-footer"),null==$?void 0:$.footer),style:(0,d.A)({},null==O?void 0:O.footer)},s)),l&&(B=r.createElement("div",{className:u()("".concat(n,"-header"),null==$?void 0:$.header),style:(0,d.A)({},null==O?void 0:O.header)},r.createElement("div",{className:"".concat(n,"-title"),id:c},l)));var F,X=(0,r.useMemo)((function(){return"object"===(0,v.A)(f)&&null!==f?f:f?{closeIcon:null!=p?p:r.createElement("span",{className:"".concat(n,"-close-x")})}:{}}),[f,p]),K=R(X,!0);f&&(F=r.createElement("button",(0,o.A)({type:"button",onClick:m,"aria-label":"Close"},K,{className:"".concat(n,"-close")}),X.closeIcon));var G=r.createElement("div",{className:u()("".concat(n,"-content"),null==$?void 0:$.content),style:null==O?void 0:O.content},F,B,r.createElement("div",(0,o.A)({className:u()("".concat(n,"-body"),null==$?void 0:$.body),style:(0,d.A)((0,d.A)({},g),null==O?void 0:O.body)},b),h),D);return r.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?c:null,"aria-modal":"true",ref:z,style:(0,d.A)((0,d.A)({},a),W),className:u()(n,i),onMouseDown:A,onMouseUp:w},r.createElement("div",{tabIndex:0,ref:P,style:j,"aria-hidden":"true"}),r.createElement("div",{ref:H,tabIndex:-1,style:_},r.createElement(L,{shouldUpdate:C||k},y?y(G):G)),r.createElement("div",{tabIndex:0,ref:N,style:j,"aria-hidden":"true"}))}));const D=H;var B=r.forwardRef((function(e,t){var n=e.prefixCls,i=e.title,a=e.style,l=e.className,c=e.visible,s=e.forceRender,f=e.destroyOnClose,v=e.motionName,m=e.ariaId,h=e.onVisibleChanged,g=e.mousePosition,b=(0,r.useRef)(),y=r.useState(),A=(0,p.A)(y,2),w=A[0],S=A[1],x={};function C(){var e,t,n,r,o,i=(e=b.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=P(o),n.top+=P(o,!0),n);S(g?"".concat(g.x-i.left,"px ").concat(g.y-i.top,"px"):"")}return w&&(x.transformOrigin=w),r.createElement(N.Ay,{visible:c,onVisibleChanged:h,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:v,removeOnLeave:f,ref:b},(function(c,s){var f=c.className,p=c.style;return r.createElement(D,(0,o.A)({},e,{ref:t,title:i,ariaId:m,prefixCls:n,holderRef:s,style:(0,d.A)((0,d.A)((0,d.A)({},p),a),x),className:u()(l,f)}))}))}));B.displayName="Content";const W=B;function F(e){var t=e.prefixCls,n=e.style,i=e.visible,a=e.maskProps,l=e.motionName,c=e.className;return r.createElement(N.Ay,{key:"mask",visible:i,motionName:l,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,i){var l=e.className,s=e.style;return r.createElement("div",(0,o.A)({ref:i,style:(0,d.A)((0,d.A)({},s),n),className:u()("".concat(t,"-mask"),l,c)},a))}))}var X=n(8210);function K(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,i=e.zIndex,a=e.visible,l=void 0!==a&&a,c=e.keyboard,s=void 0===c||c,f=e.focusTriggerAfterClose,v=void 0===f||f,m=e.wrapStyle,h=e.wrapClassName,g=e.wrapProps,b=e.onClose,y=e.afterOpenChange,A=e.afterClose,w=e.transitionName,S=e.animation,x=e.closable,M=void 0===x||x,$=e.mask,O=void 0===$||$,T=e.maskTransitionName,P=e.maskAnimation,N=e.maskClosable,I=void 0===N||N,L=e.maskStyle,j=e.maskProps,_=e.rootClassName,H=e.classNames,D=e.styles;var B=(0,r.useRef)(),X=(0,r.useRef)(),K=(0,r.useRef)(),G=r.useState(l),q=(0,p.A)(G,2),Y=q[0],U=q[1],V=(0,k.A)();function Q(e){null==b||b(e)}var Z=(0,r.useRef)(!1),J=(0,r.useRef)(),ee=null;return I&&(ee=function(e){Z.current?Z.current=!1:X.current===e.target&&Q(e)}),(0,r.useEffect)((function(){l&&(U(!0),(0,C.A)(X.current,document.activeElement)||(B.current=document.activeElement))}),[l]),(0,r.useEffect)((function(){return function(){clearTimeout(J.current)}}),[]),r.createElement("div",(0,o.A)({className:u()("".concat(n,"-root"),_)},R(e,{data:!0})),r.createElement(F,{prefixCls:n,visible:O&&l,motionName:z(n,T,P),style:(0,d.A)((0,d.A)({zIndex:i},L),null==D?void 0:D.mask),maskProps:j,className:null==H?void 0:H.mask}),r.createElement("div",(0,o.A)({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===E.A.ESC)return e.stopPropagation(),void Q(e);l&&e.keyCode===E.A.TAB&&K.current.changeActive(!e.shiftKey)},className:u()("".concat(n,"-wrap"),h,null==H?void 0:H.wrapper),ref:X,onClick:ee,style:(0,d.A)((0,d.A)((0,d.A)({zIndex:i},m),null==D?void 0:D.wrapper),{},{display:Y?null:"none"})},g),r.createElement(W,(0,o.A)({},e,{onMouseDown:function(){clearTimeout(J.current),Z.current=!0},onMouseUp:function(){J.current=setTimeout((function(){Z.current=!1}))},ref:K,closable:M,ariaId:V,prefixCls:n,visible:l&&Y,onClose:Q,onVisibleChanged:function(e){if(e)(0,C.A)(X.current,document.activeElement)||null===(t=K.current)||void 0===t||t.focus();else{if(U(!1),O&&B.current&&v){try{B.current.focus({preventScroll:!0})}catch(n){}B.current=null}Y&&(null==A||A())}var t;null==y||y(e)},motionName:z(n,w,S)}))))}var G=function(e){var t=e.visible,n=e.getContainer,i=e.forceRender,a=e.destroyOnClose,l=void 0!==a&&a,c=e.afterClose,s=e.panelRef,u=r.useState(t),d=(0,p.A)(u,2),f=d[0],v=d[1],m=r.useMemo((function(){return{panel:s}}),[s]);return r.useEffect((function(){t&&v(!0)}),[t]),i||!l||f?r.createElement(x.Provider,{value:m},r.createElement(S.A,{open:t||i||f,autoDestroy:!1,getContainer:n,autoLock:t||f},r.createElement(K,(0,o.A)({},e,{destroyOnClose:l,afterClose:function(){null==c||c(),v(!1)}})))):null};G.displayName="Dialog";const q=G;var Y=n(961);function U(e,t,n,r){var o=Y.unstable_batchedUpdates?function(e){Y.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var V=n(3210),Q=n(5371),Z={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function J(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return(0,f.A)({},e,i);if(t<0&&or)return(0,f.A)({},e,t<0?i:-i);return{}}function ee(e,t,n,r){var o=h(),i=o.width,a=o.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=(0,d.A)((0,d.A)({},J("x",n,e,i)),J("y",r,t,a))),l}function te(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function ne(e,t,n,o,i,a,l){var c=i.rotate,s=i.scale,u=i.x,f=i.y,v=(0,r.useState)(!1),m=(0,p.A)(v,2),h=m[0],g=m[1],b=(0,r.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),y=function(e){b.current=(0,d.A)((0,d.A)({},b.current),e)};return(0,r.useEffect)((function(){var e;return n&&t&&(e=U(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:h,onTouchStart:function(e){if(t){e.stopPropagation(),g(!0);var n=e.touches,r=void 0===n?[]:n;r.length>1?y({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):y({point1:{x:r[0].clientX-u,y:r[0].clientY-f},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=b.current,o=r.point1,i=r.point2,c=r.eventType;if(n.length>1&&"touchZoom"===c){var s={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,r){var o=te(e,n),i=te(t,r);if(0===o&&0===i)return[e.x,e.y];var a=o/(o+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(o,i,s,u),f=(0,p.A)(d,2),v=f[0],m=f[1],h=te(s,u)/te(o,i);l(h,"touchZoom",v,m,!0),y({point1:s,point2:u,eventType:"touchZoom"})}else"move"===c&&(a({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),y({eventType:"move"}))},onTouchEnd:function(){if(n){if(h&&g(!1),y({eventType:"none"}),o>s)return a({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*s,r=e.current.offsetHeight*s,i=e.current.getBoundingClientRect(),l=i.left,u=i.top,f=c%180!=0,p=ee(f?r:t,f?t:r,l,u);p&&a((0,d.A)({},p),"dragRebound")}}}}const re=function(e){var t=e.visible,n=e.maskTransitionName,o=e.getContainer,i=e.prefixCls,a=e.rootClassName,l=e.icons,c=e.countRender,s=e.showSwitch,p=e.showProgress,v=e.current,m=e.transform,h=e.count,g=e.scale,b=e.minScale,A=e.maxScale,w=e.closeIcon,x=e.onSwitchLeft,C=e.onSwitchRight,k=e.onClose,M=e.onZoomIn,$=e.onZoomOut,O=e.onRotateRight,T=e.onRotateLeft,R=e.onFlipX,z=e.onFlipY,P=e.toolbarRender,I=e.zIndex,L=(0,r.useContext)(y),j=l.rotateLeft,_=l.rotateRight,H=l.zoomIn,D=l.zoomOut,B=l.close,W=l.left,F=l.right,X=l.flipX,K=l.flipY,G="".concat(i,"-operations-operation");r.useEffect((function(){var e=function(e){e.keyCode===E.A.ESC&&k()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t]);var q=[{icon:K,onClick:z,type:"flipY"},{icon:X,onClick:R,type:"flipX"},{icon:j,onClick:T,type:"rotateLeft"},{icon:_,onClick:O,type:"rotateRight"},{icon:D,onClick:$,type:"zoomOut",disabled:g<=b},{icon:H,onClick:M,type:"zoomIn",disabled:g===A}].map((function(e){var t,n=e.icon,o=e.onClick,a=e.type,l=e.disabled;return r.createElement("div",{className:u()(G,(t={},(0,f.A)(t,"".concat(i,"-operations-operation-").concat(a),!0),(0,f.A)(t,"".concat(i,"-operations-operation-disabled"),!!l),t)),onClick:o,key:a},n)})),Y=r.createElement("div",{className:"".concat(i,"-operations")},q);return r.createElement(N.Ay,{visible:t,motionName:n},(function(e){var t=e.className,n=e.style;return r.createElement(S.A,{open:!0,getContainer:null!=o?o:document.body},r.createElement("div",{className:u()("".concat(i,"-operations-wrapper"),t,a),style:(0,d.A)((0,d.A)({},n),{},{zIndex:I})},null===w?null:r.createElement("button",{className:"".concat(i,"-close"),onClick:k},w||B),s&&r.createElement(r.Fragment,null,r.createElement("div",{className:u()("".concat(i,"-switch-left"),(0,f.A)({},"".concat(i,"-switch-left-disabled"),0===v)),onClick:x},W),r.createElement("div",{className:u()("".concat(i,"-switch-right"),(0,f.A)({},"".concat(i,"-switch-right-disabled"),v===h-1)),onClick:C},F)),r.createElement("div",{className:"".concat(i,"-footer")},p&&r.createElement("div",{className:"".concat(i,"-progress")},c?c(v+1,h):"".concat(v+1," / ").concat(h)),P?P(Y,(0,d.A)({icons:{flipYIcon:q[0],flipXIcon:q[1],rotateLeftIcon:q[2],rotateRightIcon:q[3],zoomOutIcon:q[4],zoomInIcon:q[5]},actions:{onFlipY:z,onFlipX:R,onRotateLeft:T,onRotateRight:O,onZoomOut:$,onZoomIn:M},transform:m},L?{current:v,total:h}:{})):Y)))}))};var oe=["fallback","src","imgRef"],ie=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],ae=function(e){var t=e.fallback,n=e.src,i=e.imgRef,a=(0,m.A)(e,oe),l=w({src:n,fallback:t}),c=(0,p.A)(l,2),s=c[0],u=c[1];return r.createElement("img",(0,o.A)({ref:function(e){i.current=e,s(e)}},a,u))};const le=function(e){var t=e.prefixCls,n=e.src,i=e.alt,a=e.fallback,l=e.movable,c=void 0===l||l,s=e.onClose,v=e.visible,g=e.icons,b=void 0===g?{}:g,A=e.rootClassName,w=e.closeIcon,S=e.getContainer,x=e.current,C=void 0===x?0:x,k=e.count,M=void 0===k?1:k,$=e.countRender,O=e.scaleStep,T=void 0===O?.5:O,R=e.minScale,z=void 0===R?1:R,P=e.maxScale,N=void 0===P?50:P,I=e.transitionName,L=void 0===I?"zoom":I,j=e.maskTransitionName,_=void 0===j?"fade":j,H=e.imageRender,D=e.imgCommonProps,B=e.toolbarRender,W=e.onTransform,F=e.onChange,K=(0,m.A)(e,ie),G=(0,r.useRef)(),Y=(0,r.useContext)(y),J=Y&&M>1,te=Y&&M>=1,oe=(0,r.useState)(!0),le=(0,p.A)(oe,2),ce=le[0],se=le[1],ue=function(e,t,n,o){var i=(0,r.useRef)(null),a=(0,r.useRef)([]),l=(0,r.useState)(Z),c=(0,p.A)(l,2),s=c[0],u=c[1],f=function(e,t){null===i.current&&(a.current=[],i.current=(0,Q.A)((function(){u((function(e){var n=e;return a.current.forEach((function(e){n=(0,d.A)((0,d.A)({},n),e)})),i.current=null,null==o||o({transform:n,action:t}),n}))}))),a.current.push((0,d.A)((0,d.A)({},s),e))};return{transform:s,resetTransform:function(e){u(Z),o&&!(0,V.A)(Z,s)&&o({transform:Z,action:e})},updateTransform:f,dispatchZoomChange:function(r,o,i,a,l){var c=e.current,u=c.width,d=c.height,p=c.offsetWidth,v=c.offsetHeight,m=c.offsetLeft,g=c.offsetTop,b=r,y=s.scale*r;y>n?(y=n,b=n/s.scale):y0&&(r=1/r),l(r,"wheel",e.clientX,e.clientY)}}}}(G,c,v,T,de,pe,ve),he=me.isMoving,ge=me.onMouseDown,be=me.onWheel,ye=ne(G,c,v,z,de,pe,ve),Ae=ye.isTouching,we=ye.onTouchStart,Se=ye.onTouchMove,xe=ye.onTouchEnd,Ce=de.rotate,ke=de.scale,Ee=u()((0,f.A)({},"".concat(t,"-moving"),he));(0,r.useEffect)((function(){ce||se(!0)}),[ce]);var Me=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),C>0&&(se(!1),fe("prev"),null==F||F(C-1,C))},$e=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),C1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[(0,Ze.b)(r,Je,et,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},nt=new Ue.Mo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),rt=new Ue.Mo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ot=new Ue.Mo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),it=new Ue.Mo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),at=new Ue.Mo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),lt=new Ue.Mo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ct={zoom:{inKeyframes:nt,outKeyframes:rt},"zoom-big":{inKeyframes:ot,outKeyframes:it},"zoom-big-fast":{inKeyframes:ot,outKeyframes:it},"zoom-left":{inKeyframes:new Ue.Mo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Ue.Mo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Ue.Mo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Ue.Mo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:at,outKeyframes:lt},"zoom-down":{inKeyframes:new Ue.Mo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Ue.Mo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},st=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=ct[t];return[(0,Ze.b)(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var ut=n(336),dt=n(665);function ft(e){return{position:e,inset:0}}const pt=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},ft("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},ft("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:tt(e)}]},vt=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,Ue.zA)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,Qe.dF)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,Ue.zA)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${(0,Ue.zA)(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},(0,Qe.K8)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,Ue.zA)(e.borderRadiusLG)} ${(0,Ue.zA)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},mt=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},ht=((0,dt.OF)("Modal",(e=>{const t=(e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,ut.h1)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})})(e);return[vt(t),mt(t),pt(t),st(t,"zoom")]}),(e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,Ue.zA)(e.paddingMD)} ${(0,Ue.zA)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,Ue.zA)(e.padding)} ${(0,Ue.zA)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,Ue.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,Ue.zA)(e.paddingXS)} ${(0,Ue.zA)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,Ue.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,Ue.zA)(e.borderRadiusLG)} ${(0,Ue.zA)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,Ue.zA)(2*e.padding)} ${(0,Ue.zA)(2*e.padding)} ${(0,Ue.zA)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM})),{unitless:{titleLineHeight:!0}}),e=>({position:e||"absolute",inset:0})),gt=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Ve.q("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Qe.L9),{padding:`0 ${(0,Ue.zA)(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},bt=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:d}=e,f=new Ve.q(n).setAlpha(.1),p=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,Ue.zA)(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},yt=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,l=new Ve.q(t).setAlpha(.1),c=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},At=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},ht()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},ht()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[bt(e),yt(e)]}]},wt=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},gt(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},ht())}}},St=e=>{const{previewCls:t}=e;return{[`${t}-root`]:st(e,"zoom"),"&":tt(e,!0)}},xt=(0,dt.OF)("Image",(e=>{const t=`${e.componentCls}-preview`,n=(0,ut.h1)(e,{previewCls:t,modalMaskBg:new Ve.q("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[wt(n),At(n),pt((0,ut.h1)(n,{componentCls:t})),St(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Ve.q(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Ve.q(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Ve.q(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})));var Ct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,preview:o,className:i,rootClassName:a,style:l}=e,s=Et(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:d,locale:f=Te,getPopupContainer:p,image:v}=r.useContext(xe.QO),m=d("image",n),h=d(),g=f.Image||Te.Image,b=(0,Ce.A)(m),[y,A,w]=xt(m,b),S=u()(a,A,w,b),x=u()(i,A,null==v?void 0:v.className),[C]=we("ImagePreview","object"==typeof o?o.zIndex:void 0),k=r.useMemo((()=>{var e;if(!1===o)return o;const t="object"==typeof o?o:{},{getContainer:n,closeIcon:i}=t,a=Et(t,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:r.createElement("div",{className:`${m}-mask-info`},r.createElement(c,null),null==g?void 0:g.preview),icons:kt},a),{getContainer:null!=n?n:p,transitionName:(0,Se.b)(h,"zoom",t.transitionName),maskTransitionName:(0,Se.b)(h,"fade",t.maskTransitionName),zIndex:C,closeIcon:null!=i?i:null===(e=null==v?void 0:v.preview)||void 0===e?void 0:e.closeIcon})}),[o,g,null===(t=null==v?void 0:v.preview)||void 0===t?void 0:t.closeIcon]),E=Object.assign(Object.assign({},null==v?void 0:v.style),l);return y(r.createElement(me,Object.assign({prefixCls:m,preview:k,rootClassName:S,className:x,style:E},s)))};Mt.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,o=Ct(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=r.useContext(xe.QO),a=i("image",t),l=`${a}-preview`,c=i(),s=(0,Ce.A)(a),[d,f,p]=xt(a,s),[v]=we("ImagePreview","object"==typeof n?n.zIndex:void 0),m=r.useMemo((()=>{var e;if(!1===n)return n;const t="object"==typeof n?n:{},r=u()(f,p,s,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:(0,Se.b)(c,"zoom",t.transitionName),maskTransitionName:(0,Se.b)(c,"fade",t.maskTransitionName),rootClassName:r,zIndex:v})}),[n]);return d(r.createElement(me.PreviewGroup,Object.assign({preview:m,previewPrefixCls:l,icons:kt},o)))};const $t=Mt},5905:(e,t,n)=>{"use strict";n.d(t,{K8:()=>d,L9:()=>o,Nk:()=>a,av:()=>c,dF:()=>i,t6:()=>l,vj:()=>s});var r=n(1466);const o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},a=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),l=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),c=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),s=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},u=e=>({outline:`${(0,r.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),d=e=>({"&:focus-visible":Object.assign({},u(e))})},4980:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});const r=e=>({animationDuration:e,animationFillMode:"both"}),o=e=>({animationDuration:e,animationFillMode:"both"}),i=function(e,t,n,i){const a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${a}${e}-enter,\n ${a}${e}-appear\n `]:Object.assign(Object.assign({},r(i)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},o(i)),{animationPlayState:"paused"}),[`\n ${a}${e}-enter${e}-enter-active,\n ${a}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},3511:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>O,Xe:()=>E,Is:()=>k});var r=n(6540),o=n(1466);const i="5.16.4";var a=n(2200);const l={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},c=Object.assign(Object.assign({},l),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});var s=n(4978);const u=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};const d=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const f=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>{return{size:e,lineHeight:(t=e,(t+8)/t)};var t}))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const p=(e,t)=>new s.q(e).setAlpha(t).toRgbString(),v=(e,t)=>new s.q(e).darken(t).toHexString(),m=e=>{const t=(0,a.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},h=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:p(r,.88),colorTextSecondary:p(r,.65),colorTextTertiary:p(r,.45),colorTextQuaternary:p(r,.25),colorFill:p(r,.15),colorFillSecondary:p(r,.06),colorFillTertiary:p(r,.04),colorFillQuaternary:p(r,.02),colorBgLayout:v(n,4),colorBgContainer:v(n,0),colorBgElevated:v(n,0),colorBgSpotlight:p(r,.85),colorBgBlur:"transparent",colorBorder:v(n,15),colorBorderSecondary:v(n,6)}};const g=(0,o.an)((function(e){const t=Object.keys(l).map((t=>{const n=(0,a.cM)(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),p=n(o),v=n(i),m=n(a),h=n(l),g=r(u,d),b=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new s.q("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:m,generateNeutralColorPalettes:h})),f(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),d(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},u(r))}(e))})),b={token:c,override:{override:c},hashed:!0},y=r.createContext(b);function A(e){return e>=0&&e<=255}const w=function(e,t){const{r:n,g:r,b:o,a:i}=new s.q(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new s.q(t).toRgb();for(let u=.01;u<=1;u+=.01){const e=Math.round((n-a*(1-u))/u),t=Math.round((r-l*(1-u))/u),i=Math.round((o-c*(1-u))/u);if(A(e)&&A(t)&&A(i))return new s.q({r:e,g:t,b:i,a:Math.round(100*u)/100}).toRgbString()}return new s.q({r:n,g:r,b:o,a:1}).toRgbString()};var S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:w(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:w(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:w(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:w(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new s.q("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new s.q("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new s.q("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=C(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=x(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=C(n,["theme"]);let i=o;r&&(i=$(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function O(){const{token:e,hashed:t,theme:n,override:a,cssVar:l}=r.useContext(y),s=`${i}-${t||""}`,u=n||g,[d,f,p]=(0,o.hV)(u,[c,e],{salt:s,override:a,getComputedToken:$,formatToken:x,cssVar:l&&{prefix:l.prefix,key:l.key,unitless:k,ignore:E,preserve:M}});return[u,p,t?f:"",d,l]}},665:(e,t,n)=>{"use strict";n.d(t,{OF:()=>M});var r=n(6540),o=n(1466);n(6956),n(2533),n(8719);"undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;n(8210);var i=n(2279),a=n(5905),l=n(3511),c=n(3029),s=n(2901),u=n(3954),d=n(2176),f=n(6822);function p(e,t,n){return t=(0,u.A)(t),(0,f.A)(e,(0,d.A)()?Reflect.construct(t,n||[],(0,u.A)(e).constructor):t.apply(e,n))}var v=n(5501);const m=(0,s.A)((function e(){(0,c.A)(this,e)})),h="CALC_UNIT",g=new RegExp(h,"g");function b(e){return"number"==typeof e?`${e}${h}`:e}let y=function(e){function t(e){var n;return(0,c.A)(this,t),(n=p(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=b(e):"string"==typeof e&&(n.result=e),n}return(0,v.A)(t,e),(0,s.A)(t,[{key:"add",value:function(e){return e instanceof t?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${b(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${b(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{};return this.result=this.result.replace(g,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(m),A=function(e){function t(e){var n;return(0,c.A)(this,t),(n=p(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,v.A)(t,e),(0,s.A)(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}])}(m);const w=e=>{const t="css"===e?y:A;return e=>new t(e)};var S=n(336);const x=(e,t)=>{const[n,r]=(0,l.Ay)();return(0,o.IV)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,a.Nk)()),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},C=(e,t,n)=>{var r;return"function"==typeof n?n((0,S.h1)(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},k=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==o?void 0:o[t])||(null==o?void 0:o[n]))&&(null!==(r=o[n])&&void 0!==r||(o[n]=null==o?void 0:o[t]))}))}const i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i};function E(e,t,n){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const s=Array.isArray(e)?e:[e,e],[u]=s,d=s.join("-");return function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[f,p,v,m,h]=(0,l.Ay)(),{getPrefixCls:g,iconPrefixCls:b,csp:y}=(0,r.useContext)(i.QO),A=g(),E=h?"css":"js",M=w(E),{max:$,min:O}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n(0,o.zA)(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n(0,o.zA)(e))).join(",")})`}}}(E),T={theme:f,token:m,hashId:v,nonce:()=>null==y?void 0:y.nonce,clientOnly:c.clientOnly,order:c.order||-999};(0,o.IV)(Object.assign(Object.assign({},T),{clientOnly:!1,path:["Shared",A]}),(()=>[{"&":(0,a.av)(m)}])),x(b,y);const R=(0,o.IV)(Object.assign(Object.assign({},T),{path:[d,e,b]}),(()=>{if(!1===c.injectStyle)return[];const{token:r,flush:i}=(0,S.Ay)(m),l=C(u,p,n),d=`.${e}`,f=k(u,p,l,{deprecatedTokens:c.deprecatedTokens});h&&Object.keys(l).forEach((e=>{l[e]=`var(${(0,o.Ki)(e,((e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`)(u,h.prefix))})`}));const g=(0,S.h1)(r,{componentCls:d,prefixCls:e,iconCls:`.${b}`,antCls:`.${A}`,calc:M,max:$,min:O},h?l:f),y=t(g,{hashId:v,prefixCls:e,rootPrefixCls:A,iconPrefixCls:b});return i(u,f),[!1===c.resetStyle?null:(0,a.vj)(g,e,s,c.resetFont),y]}));return[R,v]}}const M=(e,t,n,i)=>{const a=E(e,t,n,i),c=((e,t,n)=>{function i(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:a={},injectStyle:c=!0}=null!=n?n:{},s={[i("zIndexPopup")]:!0};Object.keys(a).forEach((e=>{s[i(e)]=a[e]}));const u=r=>{let{rootCls:a,cssVar:c}=r;const[,u]=(0,l.Ay)();return(0,o.RC)({path:[e],prefix:c.prefix,key:null==c?void 0:c.key,unitless:Object.assign(Object.assign({},l.Is),s),ignore:l.Xe,token:u,scope:a},(()=>{const r=C(e,u,t),o=k(e,u,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((e=>{o[i(e)]=o[e],delete o[e]})),o})),null};return t=>{const[,,,,n]=(0,l.Ay)();return[o=>c&&n?r.createElement(r.Fragment,null,r.createElement(u,{rootCls:t,cssVar:n,component:e}),o):o,null==n?void 0:n.key]}})(Array.isArray(e)?e[0]:e,n,i);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=a(e,t),[r,o]=c(t);return[r,n,o]}}},336:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,h1:()=>i});const r="undefined"!=typeof CSSINJS_STATISTIC;let o=!0;function i(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),o=!0,i}const a={};function l(){}const c=e=>{let t,n=e,i=l;return r&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),i=(e,n)=>{var r;a[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=a[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:i}}},1441:(e,t,n)=>{var r=n(8028),o=function(e){var t="",n=Object.keys(e);return n.forEach((function(o,i){var a=e[o];(function(e){return/[height|width]$/.test(e)})(o=r(o))&&"number"==typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",i{"use strict";n.d(t,{Ay:()=>pe});var r=n(4467),o=n(9379),i=n(6636),a=n(2284),l=n(6942),c=n.n(l),s=n(4207),u=n(8719),d=n(6540),f=d.createContext({});var p=n(3029),v=n(2901),m=n(5501),h=n(9426);const g=function(e){(0,m.A)(n,e);var t=(0,h.A)(n);function n(){return(0,p.A)(this,n),t.apply(this,arguments)}return(0,v.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);var b=n(1233),y="none",A="appear",w="enter",S="leave",x="none",C="prepare",k="start",E="active",M="end",$="prepared",O=n(998);function T(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var R,z,P,N=(R=(0,O.A)(),z="undefined"!=typeof window?window:{},P={animationend:T("Animation","AnimationEnd"),transitionend:T("Transition","TransitionEnd")},R&&("AnimationEvent"in z||delete P.animationend.animation,"TransitionEvent"in z||delete P.transitionend.transition),P),I={};if((0,O.A)()){var L=document.createElement("div");I=L.style}var j={};function _(e){if(j[e])return j[e];var t=N[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,q.A)((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),s=(0,i.A)(c,2),u=s[0],f=s[1];var p=t?U:Y;return G((function(){if(a!==x&&a!==M){var e=p.indexOf(a),t=p[e+1],r=n(a);r===V?l(t,!0):t&&u((function(e){function n(){e.isCanceled()||l(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,a]),d.useEffect((function(){return function(){f()}}),[]),[function(){l(C,!0)},a]};const ee=function(e){var t=e;"object"===(0,a.A)(e)&&(t=e.transitionSupport);var n=d.forwardRef((function(e,n){var a=e.visible,l=void 0===a||a,p=e.removeOnLeave,v=void 0===p||p,m=e.forceRender,h=e.children,x=e.motionName,M=e.leavedClassName,O=e.eventProps,T=function(e,n){return!(!e.motionName||!t||!1===n)}(e,d.useContext(f).motion),R=(0,d.useRef)(),z=(0,d.useRef)();var P=function(e,t,n,a){var l=a.motionEnter,c=void 0===l||l,s=a.motionAppear,u=void 0===s||s,f=a.motionLeave,p=void 0===f||f,v=a.motionDeadline,m=a.motionLeaveImmediately,h=a.onAppearPrepare,g=a.onEnterPrepare,x=a.onLeavePrepare,M=a.onAppearStart,O=a.onEnterStart,T=a.onLeaveStart,R=a.onAppearActive,z=a.onEnterActive,P=a.onLeaveActive,N=a.onAppearEnd,I=a.onEnterEnd,L=a.onLeaveEnd,j=a.onVisibleChanged,_=(0,b.A)(),H=(0,i.A)(_,2),D=H[0],B=H[1],W=(0,b.A)(y),F=(0,i.A)(W,2),X=F[0],q=F[1],Y=(0,b.A)(null),U=(0,i.A)(Y,2),ee=U[0],te=U[1],ne=(0,d.useRef)(!1),re=(0,d.useRef)(null);function oe(){return n()}var ie=(0,d.useRef)(!1);function ae(){q(y,!0),te(null,!0)}function le(e){var t=oe();if(!e||e.deadline||e.target===t){var n,r=ie.current;X===A&&r?n=null==N?void 0:N(t,e):X===w&&r?n=null==I?void 0:I(t,e):X===S&&r&&(n=null==L?void 0:L(t,e)),X!==y&&r&&!1!==n&&ae()}}var ce=K(le),se=(0,i.A)(ce,1)[0],ue=function(e){var t,n,o;switch(e){case A:return t={},(0,r.A)(t,C,h),(0,r.A)(t,k,M),(0,r.A)(t,E,R),t;case w:return n={},(0,r.A)(n,C,g),(0,r.A)(n,k,O),(0,r.A)(n,E,z),n;case S:return o={},(0,r.A)(o,C,x),(0,r.A)(o,k,T),(0,r.A)(o,E,P),o;default:return{}}},de=d.useMemo((function(){return ue(X)}),[X]),fe=J(X,!e,(function(e){if(e===C){var t=de[C];return t?t(oe()):V}var n;return me in de&&te((null===(n=de[me])||void 0===n?void 0:n.call(de,oe(),null))||null),me===E&&(se(oe()),v>0&&(clearTimeout(re.current),re.current=setTimeout((function(){le({deadline:!0})}),v))),me===$&&ae(),Q})),pe=(0,i.A)(fe,2),ve=pe[0],me=pe[1],he=Z(me);ie.current=he,G((function(){B(t);var n,r=ne.current;ne.current=!0,!r&&t&&u&&(n=A),r&&t&&c&&(n=w),(r&&!t&&p||!r&&m&&!t&&p)&&(n=S);var o=ue(n);n&&(e||o[C])?(q(n),ve()):q(y)}),[t]),(0,d.useEffect)((function(){(X===A&&!u||X===w&&!c||X===S&&!p)&&q(y)}),[u,c,p]),(0,d.useEffect)((function(){return function(){ne.current=!1,clearTimeout(re.current)}}),[]);var ge=d.useRef(!1);(0,d.useEffect)((function(){D&&(ge.current=!0),void 0!==D&&X===y&&((ge.current||D)&&(null==j||j(D)),ge.current=!0)}),[D,X]);var be=ee;return de[C]&&me===k&&(be=(0,o.A)({transition:"none"},be)),[X,me,be,null!=D?D:t]}(T,l,(function(){try{return R.current instanceof HTMLElement?R.current:(0,s.A)(z.current)}catch(e){return null}}),e),N=(0,i.A)(P,4),I=N[0],L=N[1],j=N[2],_=N[3],H=d.useRef(_);_&&(H.current=!0);var D,B=d.useCallback((function(e){R.current=e,(0,u.Xf)(n,e)}),[n]),W=(0,o.A)((0,o.A)({},O),{},{visible:l});if(h)if(I===y)D=_?h((0,o.A)({},W),B):!v&&H.current&&M?h((0,o.A)((0,o.A)({},W),{},{className:M}),B):m||!v&&!M?h((0,o.A)((0,o.A)({},W),{},{style:{display:"none"}}),B):null;else{var F,q;L===C?q="prepare":Z(L)?q="active":L===k&&(q="start");var Y=X(x,"".concat(I,"-").concat(q));D=h((0,o.A)((0,o.A)({},W),{},{className:c()(X(x,I),(F={},(0,r.A)(F,Y,Y&&q),(0,r.A)(F,x,"string"==typeof x),F)),style:j}),B)}else D=null;d.isValidElement(D)&&(0,u.f3)(D)&&(D.ref||(D=d.cloneElement(D,{ref:B})));return d.createElement(g,{ref:z},D)}));return n.displayName="CSSMotion",n}(B);var te=n(8168),ne=n(45),re=n(9417),oe="add",ie="keep",ae="remove",le="removed";function ce(e){var t;return t=e&&"object"===(0,a.A)(e)&&"key"in e?e:{key:e},(0,o.A)((0,o.A)({},t),{},{key:String(t.key)})}function se(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ce)}var ue=["component","children","onVisibleChanged","onAllRemoved"],de=["status"],fe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee,n=function(e){(0,m.A)(i,e);var n=(0,h.A)(i);function i(){var e;(0,p.A)(this,i);for(var t=arguments.length,a=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,a=se(e),l=se(t);a.forEach((function(e){for(var t=!1,a=r;a1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ae}))).forEach((function(t){t.key===e&&(t.status=ie)}))})),n}(r,i);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==le||e.status!==ae}))}}}]),i}(d.Component);(0,r.A)(n,"defaultProps",{component:"div"})}(B);const pe=ee},998:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},4808:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},5089:(e,t,n)=>{"use strict";n.d(t,{BD:()=>h,m6:()=>m});var r=n(9379),o=n(998),i=n(4808),a="data-rc-order",l="data-rc-priority",c="rc-util-key",s=new Map;function u(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):c}function d(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function f(e){return Array.from((s.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.A)())return null;var n=t.csp,r=t.prepend,i=t.priority,c=void 0===i?0:i,s=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),u="prependQueue"===s,p=document.createElement("style");p.setAttribute(a,s),u&&c&&p.setAttribute(l,"".concat(c)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var v=d(t),m=v.firstChild;if(r){if(u){var h=(t.styles||f(v)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(a)))return!1;var t=Number(e.getAttribute(l)||0);return c>=t}));if(h.length)return v.insertBefore(p,h[h.length-1].nextSibling),p}v.insertBefore(p,m)}else v.appendChild(p);return p}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d(t);return(t.styles||f(n)).find((function(n){return n.getAttribute(u(t))===e}))}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=v(e,t);n&&d(t).removeChild(n)}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=d(n),a=f(o),l=(0,r.A)((0,r.A)({},n),{},{styles:a});!function(e,t){var n=s.get(e);if(!n||!(0,i.A)(document,n)){var r=p("",t),o=r.parentNode;s.set(e,o),e.removeChild(r)}}(o,l);var c=v(t,l);if(c){var m,h,g;if(null!==(m=l.csp)&&void 0!==m&&m.nonce&&c.nonce!==(null===(h=l.csp)||void 0===h?void 0:h.nonce))c.nonce=null===(g=l.csp)||void 0===g?void 0:g.nonce;return c.innerHTML!==e&&(c.innerHTML=e),c}var b=p(e,l);return b.setAttribute(u(l),t),b}},4207:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,f:()=>i});var r=n(6540),o=n(961);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function a(e){return i(e)?e:e instanceof r.Component?o.findDOMNode(e):null}},2633:(e,t,n)=>{"use strict";function r(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return function(e){return r(e)instanceof ShadowRoot}(e)?r(e):null}n.d(t,{j:()=>o})},6928:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const o=r},6956:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o{"use strict";var r;n.d(t,{A:()=>s});var o=n(6636),i=n(9379),a=n(6540);var l=0;var c=(0,i.A)({},r||(r=n.t(a,2))).useId;const s=c?function(e){var t=c();return e||t}:function(e){var t=a.useState("ssr-id"),n=(0,o.A)(t,2),r=n[0],i=n[1];return a.useEffect((function(){var e=l;l+=1,i("rc_unique_".concat(e))}),[]),e||r}},981:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,o:()=>a});var r=n(6540),o=(0,n(998).A)()?r.useLayoutEffect:r.useEffect,i=function(e,t){var n=r.useRef(!0);o((function(){return e(n.current)}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])},a=function(e,t){i((function(t){if(!t)return e()}),t)};const l=i},8104:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},2533:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(6636),o=n(6956),i=n(981),a=n(1233);function l(e){return void 0!==e}function c(e,t){var n=t||{},c=n.defaultValue,s=n.value,u=n.onChange,d=n.postState,f=(0,a.A)((function(){return l(s)?s:l(c)?"function"==typeof c?c():c:"function"==typeof e?e():e})),p=(0,r.A)(f,2),v=p[0],m=p[1],h=void 0!==s?s:v,g=d?d(h):h,b=(0,o.A)(u),y=(0,a.A)([h]),A=(0,r.A)(y,2),w=A[0],S=A[1];return(0,i.o)((function(){var e=w[0];v!==e&&b(v,e)}),[w]),(0,i.o)((function(){l(s)||m(s)}),[s]),[g,(0,o.A)((function(e,t){m(e,t),S([h],t)}))]}},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6636),o=n(6540);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.A)(n,2),a=i[0],l=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||l(e)}]}},3210:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2284),o=n(8210);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=i.has(t);if((0,o.Ay)(!c,"Warning: There may be circular references"),c)return!1;if(t===a)return!0;if(n&&l>1)return!1;i.add(t);var s=l+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u{"use strict";n.d(t,{A:()=>o});var r=n(9379);function o(e,t){var n=(0,r.A)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},5371:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function l(e){a.delete(e)}var c=function(e){var t=i+=1;return function n(o){if(0===o)l(t),e();else{var i=r((function(){n(o-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};c.cancel=function(e){var t=a.get(e);return l(e),o(t)};const s=c},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>l,Xf:()=>a,f3:()=>s,xK:()=>c});var r=n(2284),o=(n(6540),n(6351)),i=n(8104);function a(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)}function l(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{$e:()=>i,Ay:()=>s});var r={},o=[];function i(e,t){}function a(e,t){}function l(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function c(e,t){l(i,e,t)}c.preMessage=function(e){o.push(e)},c.resetWarned=function(){r={}},c.noteOnce=function(e,t){l(a,e,t)};const s=c},7787:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case s:case d:case m:case v:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isFragment=function(e){return g(e)===i},t.isMemo=function(e){return g(e)===v}},6351:(e,t,n)=>{"use strict";e.exports=n(7787)},3591:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new r,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new w(t,n,this);S.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}}));const C=void 0!==i.ResizeObserver?i.ResizeObserver:x},8028:e=>{e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nr})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},3029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},2901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(8406);function o(e,t){for(var n=0;n{"use strict";n.d(t,{A:()=>a});var r=n(3954),o=n(2176),i=n(6822);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},4467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8406);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},3954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},5501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},2176:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},9379:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(4467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t{"use strict";n.d(t,{A:()=>o});var r=n(8587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},6822:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2284),o=n(9417);function i(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},6636:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7800);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||(0,r.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},4241:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3145);var o=n(7800);function i(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},8406:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2284);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},2284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},7800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},8453:(e,t,n)=>{"use strict";n.d(t,{R:()=>a,x:()=>l});var r=n(6540);const o={},i=r.createContext(o);function a(e){const t=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),r.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file +/*! For license information please see 6256.73278753.js.LICENSE.txt */ +(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6256],{2200:(e,t,n)=>{"use strict";n.d(t,{z1:()=>S,cM:()=>b});var r=n(2456),o=n(6250),i=2,a=.16,l=.05,c=.05,s=.15,u=5,d=4,f=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function p(e){var t=e.r,n=e.g,o=e.b,i=(0,r.wE)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function v(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.Ob)(t,n,o,!1))}function m(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-i*t:Math.round(e.h)+i*t:n?Math.round(e.h)+i*t:Math.round(e.h)-i*t)<0?r+=360:r>=360&&(r-=360),r}function h(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-a*t:t===d?e.s+a:e.s+l*t)>1&&(r=1),n&&t===u&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function g(e,t,n){var r;return(r=n?e.v+c*t:e.v-s*t)>1&&(r=1),Number(r.toFixed(2))}function b(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.RO)(e),i=u;i>0;i-=1){var a=p(r),l=v((0,o.RO)({h:m(a,i,!0),s:h(a,i,!0),v:g(a,i,!0)}));n.push(l)}n.push(v(r));for(var c=1;c<=d;c+=1){var s=p(r),b=v((0,o.RO)({h:m(s,c),s:h(s,c),v:g(s,c)}));n.push(b)}return"dark"===t.theme?f.map((function(e){var r,i,a,l=e.index,c=e.opacity;return v((r=(0,o.RO)(t.backgroundColor||"#141414"),i=(0,o.RO)(n[l]),a=100*c/100,{r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b}))})):n}var y={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},A={},w={};Object.keys(y).forEach((function(e){A[e]=b(y[e]),A[e].primary=A[e][5],w[e]=b(y[e],{theme:"dark",backgroundColor:"#141414"}),w[e].primary=w[e][5]}));A.red,A.volcano,A.gold,A.orange,A.yellow,A.lime,A.green,A.cyan;var S=A.blue;A.geekblue,A.purple,A.magenta,A.grey,A.grey},1466:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>lt,an:()=>O,Ki:()=>_,zA:()=>L,RC:()=>it,hV:()=>ee,IV:()=>rt});var r=n(4467),o=n(6636),i=n(4241),a=n(9379);const l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var c=n(5089),s=n(6540),u=n.t(s,2),d=(n(8104),n(3210),n(3029)),f=n(2901),p="%";function v(e){return e.join(p)}const m=function(){function e(t){(0,d.A)(this,e),(0,r.A)(this,"instanceId",void 0),(0,r.A)(this,"cache",new Map),this.instanceId=t}return(0,f.A)(e,[{key:"get",value:function(e){return this.opGet(v(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(v(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();var h="data-token-hash",g="data-css-hash",b="__cssinjs_instance__";function y(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(g,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[b]=t[b]||e,t[b]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(g,"]"))).forEach((function(t){var n,o=t.getAttribute(g);r[o]?t[b]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new m(e)}var A=s.createContext({hashPriority:"low",cache:y(),defaultCache:!0});const w=A;var S=n(2284),x=n(998);var C=function(){function e(){(0,d.A)(this,e),(0,r.A)(this,"cache",void 0),(0,r.A)(this,"keys",void 0),(0,r.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,f.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce((function(e,t){var n=(0,o.A)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),E+=1}return(0,f.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),$=new C;function O(e){var t=Array.isArray(e)?e:[e];return $.has(t)||$.set(t,new M(t)),$.get(t)}var T=new WeakMap,R={};var z=new WeakMap;function P(e){var t=z.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof M?t+=r.id:r&&"object"===(0,S.A)(r)?t+=P(r):t+=r})),z.set(e,t)),t}function N(e,t){return l("".concat(t,"_").concat(P(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var I=(0,x.A)();function L(e){return"number"==typeof e?"".concat(e,"px"):e}function j(e,t,n){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var l=(0,a.A)((0,a.A)({},i),{},(o={},(0,r.A)(o,h,t),(0,r.A)(o,g,n),o)),c=Object.keys(l).map((function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var _=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},H=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},D=function(e,t,n){var r={},i={};return Object.entries(e).forEach((function(e){var t,a,l=(0,o.A)(e,2),c=l[0],s=l[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[c])i[c]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[c])){var u,d=_(c,null==n?void 0:n.prefix);r[d]="number"!=typeof s||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[c]?String(s):"".concat(s,"px"),i[c]="var(".concat(d,")")}})),[i,H(r,t,{scope:null==n?void 0:n.scope})]},B=n(981),W=(0,a.A)({},u).useInsertionEffect;const F=W?function(e,t,n){return W((function(){return e(),t()}),n)}:function(e,t,n){s.useMemo(e,n),(0,B.A)((function(){return t(!0)}),n)};const X=void 0!==(0,a.A)({},u).useInsertionEffect?function(e){var t=[],n=!1;return s.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};const K=function(){return!1};function G(e,t,n,r,a){var l=s.useContext(w).cache,c=v([e].concat((0,i.A)(t))),u=X([c]),d=(K(),function(e){l.opUpdate(c,(function(t){var r=t||[void 0,void 0],i=(0,o.A)(r,2),a=i[0];var l=[void 0===a?0:a,i[1]||n()];return e?e(l):l}))});s.useMemo((function(){d()}),[c]);var f=l.opGet(c)[1];return F((function(){null==a||a(f)}),(function(e){return d((function(t){var n=(0,o.A)(t,2),r=n[0],i=n[1];return e&&0===r&&(null==a||a(f)),[r+1,i]})),function(){l.opUpdate(c,(function(t){var n=t||[],i=(0,o.A)(n,2),a=i[0],s=void 0===a?0:a,d=i[1];return 0===s-1?(u((function(){!e&&l.opGet(c)||null==r||r(d,!1)})),null):[s-1,d]}))}}),[c]),f}var q={},Y="css",U=new Map;var V=0;function Q(e,t){U.set(e,(U.get(e)||0)-1);var n=Array.from(U.keys()),r=n.filter((function(e){return(U.get(e)||0)<=0}));n.length-r.length>V&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(h,'="').concat(e,'"]')).forEach((function(e){var n;e[b]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),U.delete(e)}))}var Z=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,a.A)((0,a.A)({},o),t);return r&&(i=r(i)),i},J="token";function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,s.useContext)(w),u=r.cache.instanceId,d=r.container,f=n.salt,p=void 0===f?"":f,v=n.override,m=void 0===v?q:v,y=n.formatToken,A=n.getComputedToken,S=n.cssVar,x=function(e,t){for(var n=T,r=0;r0?ve(ke,--xe):0,we--,10===Ce&&(we=1,Ae--),Ce}function $e(){return Ce=xe2||ze(Ce)>3?"":" "}function je(e,t){for(;--t&&$e()&&!(Ce<48||Ce>102||Ce>57&&Ce<65||Ce>70&&Ce<97););return Re(e,Te()+(t<6&&32==Oe()&&32==$e()))}function _e(e){for(;$e();)switch(Ce){case e:return xe;case 34:case 39:34!==e&&39!==e&&_e(Ce);break;case 40:41===e&&_e(e);break;case 92:$e()}return xe}function He(e,t){for(;$e()&&e+Ce!==57&&(e+Ce!==84||47!==Oe()););return"/*"+Re(t,xe-1)+"*"+ue(47===e?e:$e())}function De(e){for(;!ze(Oe());)$e();return Re(e,xe)}function Be(e){return Ne(We("",null,null,null,[""],e=Pe(e),0,[0],e))}function We(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,v=0,m=1,h=1,g=1,b=0,y="",A=o,w=i,S=r,x=y;h;)switch(v=b,b=$e()){case 40:if(108!=v&&58==ve(x,d-1)){-1!=pe(x+=fe(Ie(b),"&","&\f"),"&\f",se(s?l[s-1]:0))&&(g=-1);break}case 34:case 39:case 91:x+=Ie(b);break;case 9:case 10:case 13:case 32:x+=Le(v);break;case 92:x+=je(Te()-1,7);continue;case 47:switch(Oe()){case 42:case 47:ge(Xe(He($e(),Te()),t,n,c),c);break;default:x+="/"}break;case 123*m:l[s++]=he(x)*g;case 125*m:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==g&&(x=fe(x,/\f/g,"")),p>0&&he(x)-d&&ge(p>32?Ke(x+";",r,n,d-1,c):Ke(fe(x," ","")+";",r,n,d-2,c),c);break;case 59:x+=";";default:if(ge(S=Fe(x,t,n,s,u,o,l,y,A=[],w=[],d,i),i),123===b)if(0===u)We(x,t,S,S,A,i,d,l,w);else switch(99===f&&110===ve(x,3)?100:f){case 100:case 108:case 109:case 115:We(e,S,S,r&&ge(Fe(e,S,S,0,0,o,l,y,o,A=[],d,w),w),o,w,d,l,r?A:w);break;default:We(x,S,S,S,[""],w,0,l,w)}}s=u=p=0,m=g=1,y=x="",d=a;break;case 58:d=1+he(x),p=v;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Me())continue;switch(x+=ue(b),b*m){case 38:g=u>0?1:(x+="\f",-1);break;case 44:l[s++]=(he(x)-1)*g,g=1;break;case 64:45===Oe()&&(x+=Ie($e())),f=Oe(),u=d=he(y=x+=De(Te())),b++;break;case 45:45===v&&2==he(x)&&(m=0)}}return i}function Fe(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],v=function(e){return e.length}(p),m=0,h=0,g=0;m0?p[b]+" "+y:fe(y,/&\f/g,p[b])))&&(c[g++]=A);return Ee(e,t,n,0===o?oe:l,c,s,u,d)}function Xe(e,t,n,r){return Ee(e,t,n,re,ue(Ce),me(e,2,-2),0,r)}function Ke(e,t,n,r,o){return Ee(e,t,n,ie,me(e,0,r),me(e,r+1,-1),r,o)}var Ge,qe="data-ant-cssinjs-cache-path",Ye="_FILE_STYLE__";var Ue=!0;function Ve(e){return function(){if(!Ge&&(Ge={},(0,x.A)())){var e=document.createElement("div");e.className=qe,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,o.A)(t,2),r=n[0],i=n[1];Ge[r]=i}));var n,r=document.querySelector("style[".concat(qe,"]"));r&&(Ue=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ge[e]}var Qe="_multi_value_";function Ze(e){return be(Be(e),ye).replace(/\{%%%\:[^;];}/g,";")}var Je=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},l=r.root,c=r.injectHash,s=r.parentSelectors,u=n.hashId,d=n.layer,f=(n.path,n.hashPriority),p=n.transformers,v=void 0===p?[]:p,m=(n.linters,""),h={};function g(t){var r=t.getName(u);if(!h[r]){var i=e(t.style,n,{root:!1,parentSelectors:s}),a=(0,o.A)(i,1)[0];h[r]="@keyframes ".concat(t.getName(u)).concat(a)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return b.forEach((function(t){var r="string"!=typeof t||l?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)g(r);else{var d=v.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(d).forEach((function(t){var r=d[t];if("object"!==(0,S.A)(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===(0,S.A)(e)&&e&&("_skip_check_"in e||Qe in e)}(r)){var p;function E(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;ne[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(g(t),r=t.getName(u)),m+="".concat(n,":").concat(r,";")}var v=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,S.A)(r)&&null!=r&&r[Qe]&&Array.isArray(v)?v.forEach((function(e){E(t,e)})):E(t,v)}else{var b=!1,y=t.trim(),A=!1;(l||c)&&u?y.startsWith("@")?b=!0:y=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,i.A)(n.slice(1))).join(" ")})).join(",")}(t,u,f):!l||u||"&"!==y&&""!==y||(y="",A=!0);var w=e(r,n,{root:A,injectHash:b,parentSelectors:[].concat((0,i.A)(s),[y])}),x=(0,o.A)(w,2),C=x[0],k=x[1];h=(0,a.A)((0,a.A)({},h),k),m+="".concat(y).concat(C)}}))}})),l?d&&(m="@layer ".concat(d.name," {").concat(m,"}"),d.dependencies&&(h["@layer ".concat(d.name)]=d.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(d.name,";")})).join("\n"))):m="{".concat(m,"}"),[m,h]};function et(e,t){return l("".concat(e.join("%")).concat(t))}function tt(){return null}var nt="style";function rt(e,t){var n=e.token,l=e.path,u=e.hashId,d=e.layer,f=e.nonce,p=e.clientOnly,v=e.order,m=void 0===v?0:v,y=s.useContext(w),A=y.autoClear,S=(y.mock,y.defaultCache),C=y.hashPriority,k=y.container,E=y.ssrInline,M=y.transformers,$=y.linters,O=y.cache,T=y.layer,R=n._tokenKey,z=[R];T&&z.push("layer"),z.push.apply(z,(0,i.A)(l));var P=I;var N=G(nt,z,(function(){var e=z.join("|");if(Ve(e)){var n=function(e){var t=Ge[e],n=null;if(t&&(0,x.A)())if(Ue)n=Ye;else{var r=document.querySelector("style[".concat(g,'="').concat(Ge[e],'"]'));r?n=r.innerHTML:delete Ge[e]}return[n,t]}(e),r=(0,o.A)(n,2),i=r[0],a=r[1];if(i)return[i,R,a,{},p,m]}var c=t(),s=Je(c,{hashId:u,hashPriority:C,layer:T?d:void 0,path:l.join("-"),transformers:M,linters:$}),f=(0,o.A)(s,2),v=f[0],h=f[1],b=Ze(v),y=et(z,b);return[b,R,y,h,p,m]}),(function(e,t){var n=(0,o.A)(e,3)[2];(t||A)&&I&&(0,c.m6)(n,{mark:g})}),(function(e){var t=(0,o.A)(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(P&&n!==Ye){var l={mark:g,prepend:!T&&"queue",attachTo:k,priority:m},s="function"==typeof f?f():f;s&&(l.csp={nonce:s});var u=[],d=[];Object.keys(i).forEach((function(e){e.startsWith("@layer")?u.push(e):d.push(e)})),u.forEach((function(e){(0,c.BD)(Ze(i[e]),"_layer-".concat(e),(0,a.A)((0,a.A)({},l),{},{prepend:!0}))}));var p=(0,c.BD)(n,r,l);p[b]=O.instanceId,p.setAttribute(h,R),d.forEach((function(e){(0,c.BD)(Ze(i[e]),"_effect-".concat(e),l)}))}})),L=(0,o.A)(N,3),j=L[0],_=L[1],H=L[2];return function(e){var t,n;E&&!P&&S?t=s.createElement("style",(0,te.A)({},(n={},(0,r.A)(n,h,_),(0,r.A)(n,g,H),n),{dangerouslySetInnerHTML:{__html:j}})):t=s.createElement(tt,null);return s.createElement(s.Fragment,null,t,e)}}var ot="cssVar";const it=function(e,t){var n=e.key,r=e.prefix,a=e.unitless,l=e.ignore,u=e.token,d=e.scope,f=void 0===d?"":d,p=(0,s.useContext)(w),v=p.cache.instanceId,m=p.container,y=u._tokenKey,A=[].concat((0,i.A)(e.path),[n,f,y]);return G(ot,A,(function(){var e=t(),i=D(e,n,{prefix:r,unitless:a,ignore:l,scope:f}),c=(0,o.A)(i,2),s=c[0],u=c[1];return[s,u,et(A,u),n]}),(function(e){var t=(0,o.A)(e,3)[2];I&&(0,c.m6)(t,{mark:g})}),(function(e){var t=(0,o.A)(e,3),r=t[1],i=t[2];if(r){var a=(0,c.BD)(r,i,{mark:g,prepend:"queue",attachTo:m,priority:-999});a[b]=v,a.setAttribute(h,n)}}))};var at;at={},(0,r.A)(at,nt,(function(e,t,n){var r=(0,o.A)(e,6),i=r[0],a=r[1],l=r[2],c=r[3],s=r[4],u=r[5],d=(n||{}).plain;if(s)return null;var f=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return f=j(i,a,l,p,d),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var n=j(Ze(c[e]),a,"_effect-".concat(e),p,d);e.startsWith("@layer")?f=n+f:f+=n}})),[u,l,f]})),(0,r.A)(at,J,(function(e,t,n){var r=(0,o.A)(e,5),i=r[2],a=r[3],l=r[4],c=(n||{}).plain;if(!a)return null;var s=i._tokenKey;return[-999,s,j(a,l,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),(0,r.A)(at,ot,(function(e,t,n){var r=(0,o.A)(e,4),i=r[1],a=r[2],l=r[3],c=(n||{}).plain;if(!i)return null;return[-999,a,j(i,l,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]}));const lt=function(){function e(t,n){(0,d.A)(this,e),(0,r.A)(this,"name",void 0),(0,r.A)(this,"style",void 0),(0,r.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,f.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function ct(e){return e.notSplit=!0,e}ct(["borderTop","borderBottom"]),ct(["borderTop"]),ct(["borderBottom"]),ct(["borderLeft","borderRight"]),ct(["borderLeft"]),ct(["borderRight"])},8046:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(8168),o=n(6636),i=n(4467),a=n(45),l=n(6540),c=n(6942),s=n.n(c),u=n(2200);const d=(0,l.createContext)({});var f=n(9379),p=n(2284),v=n(5089),m=n(2633),h=n(8210);function g(e){return"object"===(0,p.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.A)(e.icon)||"function"==typeof e.icon)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function y(e,t,n){return n?l.createElement(e.tag,(0,f.A)((0,f.A)({key:t},b(e.attrs)),n),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):l.createElement(e.tag,(0,f.A)({key:t},b(e.attrs)),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function A(e){return(0,u.cM)(e)[0]}function w(e){return e?Array.isArray(e)?e:[e]:[]}var S=["icon","className","onClick","style","primaryColor","secondaryColor"],x={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var C=function(e){var t,n,r,o,i,c,s,u=e.icon,p=e.className,b=e.onClick,w=e.style,C=e.primaryColor,k=e.secondaryColor,E=(0,a.A)(e,S),M=l.useRef(),$=x;if(C&&($={primaryColor:C,secondaryColor:k||A(C)}),t=M,n=(0,l.useContext)(d),r=n.csp,o=n.prefixCls,i="\n.anticon {\n display: inline-flex;\n alignItems: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(i=i.replace(/anticon/g,o)),(0,l.useEffect)((function(){var e=t.current,n=(0,m.j)(e);(0,v.BD)(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})}),[]),c=g(u),s="icon should be icon definiton, but got ".concat(u),(0,h.Ay)(c,"[@ant-design/icons] ".concat(s)),!g(u))return null;var O=u;return O&&"function"==typeof O.icon&&(O=(0,f.A)((0,f.A)({},O),{},{icon:O.icon($.primaryColor,$.secondaryColor)})),y(O.icon,"svg-".concat(O.name),(0,f.A)((0,f.A)({className:p,onClick:b,style:w,"data-icon":O.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},E),{},{ref:M}))};C.displayName="IconReact",C.getTwoToneColors=function(){return(0,f.A)({},x)},C.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;x.primaryColor=t,x.secondaryColor=n||A(t),x.calculated=!!n};const k=C;function E(e){var t=w(e),n=(0,o.A)(t,2),r=n[0],i=n[1];return k.setTwoToneColors({primaryColor:r,secondaryColor:i})}var M=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];E(u.z1.primary);var $=l.forwardRef((function(e,t){var n=e.className,c=e.icon,u=e.spin,f=e.rotate,p=e.tabIndex,v=e.onClick,m=e.twoToneColor,h=(0,a.A)(e,M),g=l.useContext(d),b=g.prefixCls,y=void 0===b?"anticon":b,A=g.rootClassName,S=s()(A,y,(0,i.A)((0,i.A)({},"".concat(y,"-").concat(c.name),!!c.name),"".concat(y,"-spin"),!!u||"loading"===c.name),n),x=p;void 0===x&&v&&(x=-1);var C=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,E=w(m),$=(0,o.A)(E,2),O=$[0],T=$[1];return l.createElement("span",(0,r.A)({role:"img","aria-label":c.name},h,{ref:t,tabIndex:x,onClick:v,className:S}),l.createElement(k,{icon:c,primaryColor:O,secondaryColor:T,style:C}))}));$.displayName="AntdIcon",$.getTwoToneColor=function(){var e=k.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},$.setTwoToneColor=E;const O=$},6467:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=n(8046),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},8633:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var a=n(8046),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},363:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=n(8046),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},2456:(e,t,n)=>{"use strict";n.d(t,{H:()=>d,K6:()=>i,Me:()=>s,Ob:()=>u,YL:()=>l,_:()=>o,g8:()=>v,n6:()=>p,oS:()=>m,wE:()=>c});var r=n(9244);function o(e,t,n){return{r:255*(0,r.Cg)(e,255),g:255*(0,r.Cg)(t,255),b:255*(0,r.Cg)(n,255)}}function i(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=0,c=(o+i)/2;if(o===i)l=0,a=0;else{var s=o-i;switch(l=c>.5?s/(2-o-i):s/(o+i),o){case e:a=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){var o,i,l;if(e=(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100),0===t)i=n,l=n,o=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;o=a(s,c,e+1/3),i=a(s,c,e),l=a(s,c,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function c(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=o,c=o-i,s=0===o?0:c/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/c+(t>16,g:(65280&e)>>8,b:255&e}}},2434:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},6250:(e,t,n)=>{"use strict";n.d(t,{RO:()=>a});var r=n(2456),o=n(2434),i=n(9244);function a(e){var t={r:0,g:0,b:0},n=1,a=null,l=null,c=null,s=!1,f=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(o.D[e])e=o.D[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=u.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=u.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=u.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=u.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=u.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=u.hex8.exec(e),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),a:(0,r.n6)(n[4]),format:t?"name":"hex8"};if(n=u.hex6.exec(e),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:t?"name":"hex"};if(n=u.hex4.exec(e),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),a:(0,r.n6)(n[4]+n[4]),format:t?"name":"hex8"};if(n=u.hex3.exec(e),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r._)(e.r,e.g,e.b),s=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(a=(0,i.Px)(e.s),l=(0,i.Px)(e.v),t=(0,r.Me)(e.h,a,l),s=!0,f="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(a=(0,i.Px)(e.s),c=(0,i.Px)(e.l),t=(0,r.YL)(e.h,a,c),s=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.TV)(n),{ok:s,format:e.format||f,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+c),rgba:new RegExp("rgba"+s),hsl:new RegExp("hsl"+c),hsla:new RegExp("hsla"+s),hsv:new RegExp("hsv"+c),hsva:new RegExp("hsva"+s),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},4978:(e,t,n)=>{"use strict";n.d(t,{q:()=>l});var r=n(2456),o=n(2434),i=n(6250),a=n(9244),l=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.oS)(t)),this.originalInput=t;var a=(0,i.RO)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.TV)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.wE)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.wE)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.K6)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.K6)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.Ob)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.H)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.Cg)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.Cg)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.Ob)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.D);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a{"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{Cg:()=>r,J$:()=>o,Px:()=>a,TV:()=>i,wl:()=>l})},5470:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(6636),o=n(6540),i=n(961),a=n(998),l=(n(8210),n(8719));const c=o.createContext(null);var s=n(4241),u=n(981),d=[];var f=n(5089);function p(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";(0,f.BD)("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(m){console.error(m),r=c,o=s}}document.body.appendChild(n);var p=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,v=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),(0,f.m6)(t),{width:p,height:v}}var v="rc-util-locker-".concat(Date.now()),m=0;function h(e){var t=!!e,n=o.useState((function(){return m+=1,"".concat(v,"_").concat(m)})),i=(0,r.A)(n,1)[0];(0,u.A)((function(){if(t){var e=(r=document.body,"undefined"!=typeof document&&r&&r instanceof Element?p(r):{width:0,height:0}).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,f.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else(0,f.m6)(i);var r;return function(){(0,f.m6)(i)}}),[t,i])}var g=!1;var b=function(e){return!1!==e&&((0,a.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};const y=o.forwardRef((function(e,t){var n=e.open,f=e.autoLock,p=e.getContainer,v=(e.debug,e.autoDestroy),m=void 0===v||v,y=e.children,A=o.useState(n),w=(0,r.A)(A,2),S=w[0],x=w[1],C=S||n;o.useEffect((function(){(m||n)&&x(n)}),[n,m]);var k=o.useState((function(){return b(p)})),E=(0,r.A)(k,2),M=E[0],$=E[1];o.useEffect((function(){var e=b(p);$(null!=e?e:null)}));var O=function(e,t){var n=o.useState((function(){return(0,a.A)()?document.createElement("div"):null})),i=(0,r.A)(n,1)[0],l=o.useRef(!1),f=o.useContext(c),p=o.useState(d),v=(0,r.A)(p,2),m=v[0],h=v[1],g=f||(l.current?void 0:function(e){h((function(t){return[e].concat((0,s.A)(t))}))});function b(){i.parentElement||document.body.appendChild(i),l.current=!0}function y(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),l.current=!1}return(0,u.A)((function(){return e?f?f(b):b():y(),y}),[e]),(0,u.A)((function(){m.length&&(m.forEach((function(e){return e()})),h(d))}),[m]),[i,g]}(C&&!M),T=(0,r.A)(O,2),R=T[0],z=T[1],P=null!=M?M:R;h(f&&n&&(0,a.A)()&&(P===R||P===document.body));var N=null;y&&(0,l.f3)(y)&&t&&(N=y.ref);var I=(0,l.xK)(N,t);if(!C||!(0,a.A)()||void 0===M)return null;var L,j=!1===P||("boolean"==typeof L&&(g=L),g),_=y;return t&&(_=o.cloneElement(y,{ref:I})),o.createElement(c.Provider,{value:z},j?_:(0,i.createPortal)(_,P))}))},3723:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(e,t,n)=>void 0!==n?n:`${e}-${t}`},3864:(e,t,n)=>{"use strict";n.d(t,{A:()=>bo});var r=n(6540),o=n(6942),i=n.n(o),a=n(9853),l=n(2279);const c=r.createContext(void 0),s=c,u=e=>{const t=r.useContext(s);return r.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},d=e=>{const{prefixCls:t,className:n,style:o,size:a,shape:l}=e,c=i()({[`${t}-lg`]:"large"===a,[`${t}-sm`]:"small"===a}),s=i()({[`${t}-circle`]:"circle"===l,[`${t}-square`]:"square"===l,[`${t}-round`]:"round"===l}),u=r.useMemo((()=>"number"==typeof a?{width:a,height:a,lineHeight:`${a}px`}:{}),[a]);return r.createElement("span",{className:i()(t,c,s,n),style:Object.assign(Object.assign({},u),o)})};var f=n(1466),p=n(665),v=n(336);const m=new f.Mo("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),h=e=>({height:e,lineHeight:(0,f.zA)(e)}),g=e=>Object.assign({width:e},h(e)),b=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:m,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),y=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},h(e)),A=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},g(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},g(o)),[`${t}${t}-sm`]:Object.assign({},g(i))}},w=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},y(t,l)),[`${r}-lg`]:Object.assign({},y(o,l)),[`${r}-sm`]:Object.assign({},y(i,l))}},S=e=>Object.assign({width:e},h(e)),x=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},S(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},S(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},C=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},k=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},h(e)),E=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},k(r,l))},C(e,r,n)),{[`${n}-lg`]:Object.assign({},k(o,l))}),C(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},k(i,l))}),C(e,i,`${n}-sm`))},M=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:v,titleHeight:m,blockRadius:h,paragraphLiHeight:y,controlHeightXS:S,paragraphMarginTop:C}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},g(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},g(s)),[`${n}-sm`]:Object.assign({},g(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:m,background:d,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:d,borderRadius:h,"+ li":{marginBlockStart:S}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},E(e)),A(e)),w(e)),x(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},b(e))}}},$=(0,p.OF)("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=(0,v.h1)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[M(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),O=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,shape:s="circle",size:u="default"}=e,{getPrefixCls:f}=r.useContext(l.QO),p=f("skeleton",t),[v,m,h]=$(p),g=(0,a.A)(e,["prefixCls","className"]),b=i()(p,`${p}-element`,{[`${p}-active`]:c},n,o,m,h);return v(r.createElement("div",{className:b},r.createElement(d,Object.assign({prefixCls:`${p}-avatar`,shape:s,size:u},g))))},T=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,block:s=!1,size:u="default"}=e,{getPrefixCls:f}=r.useContext(l.QO),p=f("skeleton",t),[v,m,h]=$(p),g=(0,a.A)(e,["prefixCls"]),b=i()(p,`${p}-element`,{[`${p}-active`]:c,[`${p}-block`]:s},n,o,m,h);return v(r.createElement("div",{className:b},r.createElement(d,Object.assign({prefixCls:`${p}-button`,size:u},g))))},R=e=>{const{prefixCls:t,className:n,rootClassName:o,style:a,active:c}=e,{getPrefixCls:s}=r.useContext(l.QO),u=s("skeleton",t),[d,f,p]=$(u),v=i()(u,`${u}-element`,{[`${u}-active`]:c},n,o,f,p);return d(r.createElement("div",{className:v},r.createElement("div",{className:i()(`${u}-image`,n),style:a},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},r.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${u}-image-path`})))))},z=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,block:s,size:u="default"}=e,{getPrefixCls:f}=r.useContext(l.QO),p=f("skeleton",t),[v,m,h]=$(p),g=(0,a.A)(e,["prefixCls"]),b=i()(p,`${p}-element`,{[`${p}-active`]:c,[`${p}-block`]:s},n,o,m,h);return v(r.createElement("div",{className:b},r.createElement(d,Object.assign({prefixCls:`${p}-input`,size:u},g))))};var P=n(8168);const N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};var I=n(8046),L=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:N}))};const j=r.forwardRef(L),_=e=>{const{prefixCls:t,className:n,rootClassName:o,style:a,active:c,children:s}=e,{getPrefixCls:u}=r.useContext(l.QO),d=u("skeleton",t),[f,p,v]=$(d),m=i()(d,`${d}-element`,{[`${d}-active`]:c},p,n,o,v),h=null!=s?s:r.createElement(j,null);return f(r.createElement("div",{className:m},r.createElement("div",{className:i()(`${d}-image`,n),style:a},h)))};var H=n(4241);const D=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},B=e=>{const{prefixCls:t,className:n,style:o,rows:a}=e,l=(0,H.A)(Array(a)).map(((t,n)=>r.createElement("li",{key:n,style:{width:D(n,e)}})));return r.createElement("ul",{className:i()(t,n),style:o},l)},W=e=>{let{prefixCls:t,className:n,width:o,style:a}=e;return r.createElement("h3",{className:i()(t,n),style:Object.assign({width:o},a)})};function F(e){return e&&"object"==typeof e?e:{}}const X=e=>{const{prefixCls:t,loading:n,className:o,rootClassName:a,style:c,children:s,avatar:u=!1,title:f=!0,paragraph:p=!0,active:v,round:m}=e,{getPrefixCls:h,direction:g,skeleton:b}=r.useContext(l.QO),y=h("skeleton",t),[A,w,S]=$(y);if(n||!("loading"in e)){const e=!!u,t=!!f,n=!!p;let l,s;if(e){const e=Object.assign(Object.assign({prefixCls:`${y}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),F(u));l=r.createElement("div",{className:`${y}-header`},r.createElement(d,Object.assign({},e)))}if(t||n){let o,i;if(t){const t=Object.assign(Object.assign({prefixCls:`${y}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),F(f));o=r.createElement(W,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${y}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),F(p));i=r.createElement(B,Object.assign({},n))}s=r.createElement("div",{className:`${y}-content`},o,i)}const h=i()(y,{[`${y}-with-avatar`]:e,[`${y}-active`]:v,[`${y}-rtl`]:"rtl"===g,[`${y}-round`]:m},null==b?void 0:b.className,o,a,w,S);return A(r.createElement("div",{className:h,style:Object.assign(Object.assign({},null==b?void 0:b.style),c)},l,s))}return null!=s?s:null};X.Button=T,X.Avatar=O,X.Input=z,X.Image=R,X.Node=_;const K=X;var G=n(6467);const q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var Y=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:q}))};const U=r.forwardRef(Y);const V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var Q=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:V}))};const Z=r.forwardRef(Q);var J=n(4467),ee=n(9379),te=n(6636),ne=n(2284),re=n(45),oe=n(2533);const ie=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},ae=(0,r.createContext)(null);var le=n(6351);function ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(ce(e)):(0,le.isFragment)(e)&&e.props?n=n.concat(ce(e.props.children,t)):n.push(e))})),n}var se=n(8210),ue=n(6588),de=n(8719),fe=r.createContext(null);var pe=n(3591),ve=new Map;var me=new pe.A((function(e){e.forEach((function(e){var t,n=e.target;null===(t=ve.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var he=n(3029),ge=n(2901),be=n(5501),ye=n(9426),Ae=function(e){(0,be.A)(n,e);var t=(0,ye.A)(n);function n(){return(0,he.A)(this,n),t.apply(this,arguments)}return(0,ge.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function we(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),a=r.useRef(null),l=r.useContext(fe),c="function"==typeof n,s=c?n(i):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&r.isValidElement(s)&&(0,de.f3)(s),f=d?s.ref:null,p=(0,de.xK)(f,i),v=function(){var e;return(0,ue.A)(i.current)||(i.current&&"object"===(0,ne.A)(i.current)?(0,ue.A)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,ue.A)(a.current)};r.useImperativeHandle(t,(function(){return v()}));var m=r.useRef(e);m.current=e;var h=r.useCallback((function(e){var t=m.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var v=c===Math.round(i)?i:c,h=s===Math.round(a)?a:s,g=(0,ee.A)((0,ee.A)({},p),{},{offsetWidth:v,offsetHeight:h});null==l||l(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return r.useEffect((function(){var e,t,n=v();return n&&!o&&(e=n,t=h,ve.has(e)||(ve.set(e,new Set),me.observe(e)),ve.get(e).add(t)),function(){return function(e,t){ve.has(e)&&(ve.get(e).delete(t),ve.get(e).size||(me.unobserve(e),ve.delete(e)))}(n,h)}}),[i.current,o]),r.createElement(Ae,{ref:a},d?r.cloneElement(s,{ref:p}):s)}const Se=r.forwardRef(we);function xe(e,t){var n=e.children;return("function"==typeof n?[n]:ce(n)).map((function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(Se,(0,P.A)({},e,{key:i,ref:0===o?t:void 0}),n)}))}var Ce=r.forwardRef(xe);Ce.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(fe),l=r.useCallback((function(e,t,r){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){l===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(fe.Provider,{value:l},t)};const ke=Ce;var Ee=n(6956),Me=n(5371);const $e=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,i=e.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=(0,r.useState)(),d=(0,te.A)(u,2),f=d[0],p=d[1],v=(0,r.useRef)(),m=r.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function h(){Me.A.cancel(v.current)}return(0,r.useEffect)((function(){var e={};if(t)if(n){e.width=m(t.width);var r=o?"right":"left";"start"===s&&(e[r]=t[r]),"center"===s&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return h(),v.current=(0,Me.A)((function(){p(e)})),h}),[t,n,o,s,m]),{style:f}};var Oe={width:0,height:0,left:0,top:0};function Te(e,t){var n=r.useRef(e),o=r.useState({}),i=(0,te.A)(o,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}]}var Re=Math.pow(.995,20);var ze=n(981);function Pe(e){var t=(0,r.useState)(0),n=(0,te.A)(t,2),o=n[0],i=n[1],a=(0,r.useRef)(0),l=(0,r.useRef)();return l.current=e,(0,ze.o)((function(){var e;null===(e=l.current)||void 0===e||e.call(l)}),[o]),function(){a.current===o&&(a.current+=1,i(a.current))}}var Ne={width:0,height:0,left:0,top:0,right:0};function Ie(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Le(e){return String(e).replace(/"/g,"TABS_DQ")}function je(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var _e=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));const He=_e;const De=r.forwardRef((function(e,t){var n,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==(0,ne.A)(a)||r.isValidElement(a)?l.right=a:l=a,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?r.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));var Be=n(5470),We=n(2633),Fe=n(6855),Xe=n(8542);function Ke(e){var t=e.prefixCls,n=e.align,o=e.arrow,a=e.arrowPos,l=o||{},c=l.className,s=l.content,u=a.x,d=void 0===u?0:u,f=a.y,p=void 0===f?0:f,v=r.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],g=n.points[1],b=h[0],y=h[1],A=g[0],w=g[1];b!==A&&["t","b"].includes(b)?"t"===b?m.top=0:m.bottom=0:m.top=p,y!==w&&["l","r"].includes(y)?"l"===y?m.left=0:m.right=0:m.left=d}return r.createElement("div",{ref:v,className:i()("".concat(t,"-arrow"),c),style:m},s)}function Ge(e){var t=e.prefixCls,n=e.open,o=e.zIndex,a=e.mask,l=e.motion;return a?r.createElement(Xe.Ay,(0,P.A)({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:i()("".concat(t,"-mask"),n)})})):null}const qe=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));var Ye=r.forwardRef((function(e,t){var n=e.popup,o=e.className,a=e.prefixCls,l=e.style,c=e.target,s=e.onVisibleChanged,u=e.open,d=e.keepDom,f=e.fresh,p=e.onClick,v=e.mask,m=e.arrow,h=e.arrowPos,g=e.align,b=e.motion,y=e.maskMotion,A=e.forceRender,w=e.getPopupContainer,S=e.autoDestroy,x=e.portal,C=e.zIndex,k=e.onMouseEnter,E=e.onMouseLeave,M=e.onPointerEnter,$=e.ready,O=e.offsetX,T=e.offsetY,R=e.offsetR,z=e.offsetB,N=e.onAlign,I=e.onPrepare,L=e.stretch,j=e.targetWidth,_=e.targetHeight,H="function"==typeof n?n():n,D=u||d,B=(null==w?void 0:w.length)>0,W=r.useState(!w||!B),F=(0,te.A)(W,2),X=F[0],K=F[1];if((0,ze.A)((function(){!X&&B&&c&&K(!0)}),[X,B,c]),!X)return null;var G="auto",q={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if($||!u){var Y,U=g.points,V=g.dynamicInset||(null===(Y=g._experimental)||void 0===Y?void 0:Y.dynamicInset),Q=V&&"r"===U[0][1],Z=V&&"b"===U[0][0];Q?(q.right=R,q.left=G):(q.left=O,q.right=G),Z?(q.bottom=z,q.top=G):(q.top=T,q.bottom=G)}var J={};return L&&(L.includes("height")&&_?J.height=_:L.includes("minHeight")&&_&&(J.minHeight=_),L.includes("width")&&j?J.width=j:L.includes("minWidth")&&j&&(J.minWidth=j)),u||(J.pointerEvents="none"),r.createElement(x,{open:A||D,getContainer:w&&function(){return w(c)},autoDestroy:S},r.createElement(Ge,{prefixCls:a,open:u,zIndex:C,mask:v,motion:y}),r.createElement(ke,{onResize:N,disabled:!u},(function(e){return r.createElement(Xe.Ay,(0,P.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:A,leavedClassName:"".concat(a,"-hidden")},b,{onAppearPrepare:I,onEnterPrepare:I,visible:u,onVisibleChanged:function(e){var t;null==b||null===(t=b.onVisibleChanged)||void 0===t||t.call(b,e),s(e)}}),(function(n,c){var s=n.className,d=n.style,v=i()(a,s,o);return r.createElement("div",{ref:(0,de.K4)(e,t,c),className:v,style:(0,ee.A)((0,ee.A)((0,ee.A)((0,ee.A)({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},q),J),d),{},{boxSizing:"border-box",zIndex:C},l),onMouseEnter:k,onMouseLeave:E,onPointerEnter:M,onClick:p},m&&r.createElement(Ke,{prefixCls:a,arrow:m,arrowPos:h,align:g}),r.createElement(qe,{cache:!u&&!f},H))}))})))}));const Ue=Ye;const Ve=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=(0,de.f3)(n),a=r.useCallback((function(e){(0,de.Xf)(t,o?o(e):e)}),[o]),l=(0,de.xK)(a,n.ref);return i?r.cloneElement(n,{ref:l}):n}));const Qe=r.createContext(null);function Ze(e){return e?Array.isArray(e)?e:[e]:[]}const Je=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function et(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function tt(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function nt(e){return e.ownerDocument.defaultView}function rt(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=nt(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function it(e){return ot(parseFloat(e),0)}function at(e,t){var n=(0,ee.A)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=nt(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,v=it(i),m=it(a),h=it(l),g=it(c),b=ot(Math.round(s.width/f*1e3)/1e3),y=ot(Math.round(s.height/u*1e3)/1e3),A=(f-p-h-g)*b,w=(u-d-v-m)*y,S=v*y,x=m*y,C=h*b,k=g*b,E=0,M=0;if("clip"===r){var $=it(o);E=$*b,M=$*y}var O=s.x+C-E,T=s.y+S-M,R=O+s.width+2*E-C-k-A,z=T+s.height+2*M-S-x-w;n.left=Math.max(n.left,O),n.top=Math.max(n.top,T),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,z)}})),n}function lt(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function ct(e,t){var n=t||[],r=(0,te.A)(n,2),o=r[0],i=r[1];return[lt(e.width,o),lt(e.height,i)]}function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function ut(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function dt(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var ft=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const pt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be.A,t=r.forwardRef((function(t,n){var o=t.prefixCls,a=void 0===o?"rc-trigger-popup":o,l=t.children,c=t.action,s=void 0===c?"hover":c,u=t.showAction,d=t.hideAction,f=t.popupVisible,p=t.defaultPopupVisible,v=t.onPopupVisibleChange,m=t.afterPopupVisibleChange,h=t.mouseEnterDelay,g=t.mouseLeaveDelay,b=void 0===g?.1:g,y=t.focusDelay,A=t.blurDelay,w=t.mask,S=t.maskClosable,x=void 0===S||S,C=t.getPopupContainer,k=t.forceRender,E=t.autoDestroy,M=t.destroyPopupOnHide,$=t.popup,O=t.popupClassName,T=t.popupStyle,R=t.popupPlacement,z=t.builtinPlacements,P=void 0===z?{}:z,N=t.popupAlign,I=t.zIndex,L=t.stretch,j=t.getPopupClassNameFromAlign,_=t.fresh,D=t.alignPoint,B=t.onPopupClick,W=t.onPopupAlign,F=t.arrow,X=t.popupMotion,K=t.maskMotion,G=t.popupTransitionName,q=t.popupAnimation,Y=t.maskTransitionName,U=t.maskAnimation,V=t.className,Q=t.getTriggerDOMNode,Z=(0,re.A)(t,ft),J=E||M||!1,ne=r.useState(!1),oe=(0,te.A)(ne,2),ae=oe[0],le=oe[1];(0,ze.A)((function(){le(ie())}),[]);var ce=r.useRef({}),se=r.useContext(Qe),de=r.useMemo((function(){return{registerSubPopup:function(e,t){ce.current[e]=t,null==se||se.registerSubPopup(e,t)}}}),[se]),fe=(0,Fe.A)(),pe=r.useState(null),ve=(0,te.A)(pe,2),me=ve[0],he=ve[1],ge=r.useRef(null),be=(0,Ee.A)((function(e){ge.current=e,(0,ue.f)(e)&&me!==e&&he(e),null==se||se.registerSubPopup(fe,e)})),ye=r.useState(null),Ae=(0,te.A)(ye,2),we=Ae[0],Se=Ae[1],xe=r.useRef(null),Ce=(0,Ee.A)((function(e){(0,ue.f)(e)&&we!==e&&(Se(e),xe.current=e)})),Me=r.Children.only(l),$e=(null==Me?void 0:Me.props)||{},Oe={},Te=(0,Ee.A)((function(e){var t,n,r=we;return(null==r?void 0:r.contains(e))||(null===(t=(0,We.j)(r))||void 0===t?void 0:t.host)===e||e===r||(null==me?void 0:me.contains(e))||(null===(n=(0,We.j)(me))||void 0===n?void 0:n.host)===e||e===me||Object.values(ce.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Re=tt(a,X,q,G),Pe=tt(a,K,U,Y),Ne=r.useState(p||!1),Ie=(0,te.A)(Ne,2),Le=Ie[0],je=Ie[1],_e=null!=f?f:Le,He=(0,Ee.A)((function(e){void 0===f&&je(e)}));(0,ze.A)((function(){je(f||!1)}),[f]);var De=r.useRef(_e);De.current=_e;var Be=r.useRef([]);Be.current=[];var Xe=(0,Ee.A)((function(e){var t;He(e),(null!==(t=Be.current[Be.current.length-1])&&void 0!==t?t:_e)!==e&&(Be.current.push(e),null==v||v(e))})),Ke=r.useRef(),Ge=function(){clearTimeout(Ke.current)},qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ge(),0===t?Xe(e):Ke.current=setTimeout((function(){Xe(e)}),1e3*t)};r.useEffect((function(){return Ge}),[]);var Ye=r.useState(!1),it=(0,te.A)(Ye,2),lt=it[0],pt=it[1];(0,ze.A)((function(e){e&&!_e||pt(!0)}),[_e]);var vt=r.useState(null),mt=(0,te.A)(vt,2),ht=mt[0],gt=mt[1],bt=r.useState([0,0]),yt=(0,te.A)(bt,2),At=yt[0],wt=yt[1],St=function(e){wt([e.clientX,e.clientY])},xt=function(e,t,n,o,i,a,l){var c=r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),s=(0,te.A)(c,2),u=s[0],d=s[1],f=r.useRef(0),p=r.useMemo((function(){return t?rt(t):[]}),[t]),v=r.useRef({});e||(v.current={});var m=(0,Ee.A)((function(){if(t&&n&&e){var r,c,s,u=t,f=u.ownerDocument,m=nt(u).getComputedStyle(u),h=m.width,g=m.height,b=m.position,y=u.style.left,A=u.style.top,w=u.style.right,S=u.style.bottom,x=u.style.overflow,C=(0,ee.A)((0,ee.A)({},i[o]),a),k=f.createElement("div");if(null===(r=u.parentElement)||void 0===r||r.appendChild(k),k.style.left="".concat(u.offsetLeft,"px"),k.style.top="".concat(u.offsetTop,"px"),k.style.position=b,k.style.height="".concat(u.offsetHeight,"px"),k.style.width="".concat(u.offsetWidth,"px"),u.style.left="0",u.style.top="0",u.style.right="auto",u.style.bottom="auto",u.style.overflow="hidden",Array.isArray(n))s={x:n[0],y:n[1],width:0,height:0};else{var E=n.getBoundingClientRect();s={x:E.x,y:E.y,width:E.width,height:E.height}}var M=u.getBoundingClientRect(),$=f.documentElement,O=$.clientWidth,T=$.clientHeight,R=$.scrollWidth,z=$.scrollHeight,P=$.scrollTop,N=$.scrollLeft,I=M.height,L=M.width,j=s.height,_=s.width,H={left:0,top:0,right:O,bottom:T},D={left:-N,top:-P,right:R-N,bottom:z-P},B=C.htmlRegion,W="visible",F="visibleFirst";"scroll"!==B&&B!==F&&(B=W);var X=B===F,K=at(D,p),G=at(H,p),q=B===W?G:K,Y=X?G:q;u.style.left="auto",u.style.top="auto",u.style.right="0",u.style.bottom="0";var U=u.getBoundingClientRect();u.style.left=y,u.style.top=A,u.style.right=w,u.style.bottom=S,u.style.overflow=x,null===(c=u.parentElement)||void 0===c||c.removeChild(k);var V=ot(Math.round(L/parseFloat(h)*1e3)/1e3),Q=ot(Math.round(I/parseFloat(g)*1e3)/1e3);if(0===V||0===Q||(0,ue.f)(n)&&!Je(n))return;var Z=C.offset,J=C.targetOffset,ne=ct(M,Z),re=(0,te.A)(ne,2),oe=re[0],ie=re[1],ae=ct(s,J),le=(0,te.A)(ae,2),ce=le[0],se=le[1];s.x-=ce,s.y-=se;var de=C.points||[],fe=(0,te.A)(de,2),pe=fe[0],ve=st(fe[1]),me=st(pe),he=ut(s,ve),ge=ut(M,me),be=(0,ee.A)({},C),ye=he.x-ge.x+oe,Ae=he.y-ge.y+ie;function wt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q,r=M.x+e,o=M.y+t,i=r+L,a=o+I,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var we,Se,xe,Ce,ke=wt(ye,Ae),Ee=wt(ye,Ae,G),Me=ut(s,["t","l"]),$e=ut(M,["t","l"]),Oe=ut(s,["b","r"]),Te=ut(M,["b","r"]),Re=C.overflow||{},ze=Re.adjustX,Pe=Re.adjustY,Ne=Re.shiftX,Ie=Re.shiftY,Le=function(e){return"boolean"==typeof e?e:e>=0};function St(){we=M.y+Ae,Se=we+I,xe=M.x+ye,Ce=xe+L}St();var je=Le(Pe),_e=me[0]===ve[0];if(je&&"t"===me[0]&&(Se>Y.bottom||v.current.bt)){var He=Ae;_e?He-=I-j:He=Me.y-Te.y-ie;var De=wt(ye,He),Be=wt(ye,He,G);De>ke||De===ke&&(!X||Be>=Ee)?(v.current.bt=!0,Ae=He,ie=-ie,be.points=[dt(me,0),dt(ve,0)]):v.current.bt=!1}if(je&&"b"===me[0]&&(weke||Fe===ke&&(!X||Xe>=Ee)?(v.current.tb=!0,Ae=We,ie=-ie,be.points=[dt(me,0),dt(ve,0)]):v.current.tb=!1}var Ke=Le(ze),Ge=me[1]===ve[1];if(Ke&&"l"===me[1]&&(Ce>Y.right||v.current.rl)){var qe=ye;Ge?qe-=L-_:qe=Me.x-Te.x-oe;var Ye=wt(qe,Ae),Ue=wt(qe,Ae,G);Ye>ke||Ye===ke&&(!X||Ue>=Ee)?(v.current.rl=!0,ye=qe,oe=-oe,be.points=[dt(me,1),dt(ve,1)]):v.current.rl=!1}if(Ke&&"r"===me[1]&&(xeke||Qe===ke&&(!X||Ze>=Ee)?(v.current.lr=!0,ye=Ve,oe=-oe,be.points=[dt(me,1),dt(ve,1)]):v.current.lr=!1}St();var et=!0===Ne?0:Ne;"number"==typeof et&&(xeG.right&&(ye-=Ce-G.right-oe,s.x>G.right-et&&(ye+=s.x-G.right+et)));var tt=!0===Ie?0:Ie;"number"==typeof tt&&(weG.bottom&&(Ae-=Se-G.bottom-ie,s.y>G.bottom-tt&&(Ae+=s.y-G.bottom+tt)));var rt=M.x+ye,it=rt+L,lt=M.y+Ae,ft=lt+I,pt=s.x,vt=pt+_,mt=s.y,ht=mt+j,gt=(Math.max(rt,pt)+Math.min(it,vt))/2-rt,bt=(Math.max(lt,mt)+Math.min(ft,ht))/2-lt;null==l||l(t,be);var yt=U.right-M.x-(ye+M.width),At=U.bottom-M.y-(Ae+M.height);d({ready:!0,offsetX:ye/V,offsetY:Ae/Q,offsetR:yt/V,offsetB:At/Q,arrowX:gt/V,arrowY:bt/Q,scaleX:V,scaleY:Q,align:be})}})),h=function(){d((function(e){return(0,ee.A)((0,ee.A)({},e),{},{ready:!1})}))};return(0,ze.A)(h,[o]),(0,ze.A)((function(){e||h()}),[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&m()}))}]}(_e,me,D?At:we,R,P,N,W),Ct=(0,te.A)(xt,11),kt=Ct[0],Et=Ct[1],Mt=Ct[2],$t=Ct[3],Ot=Ct[4],Tt=Ct[5],Rt=Ct[6],zt=Ct[7],Pt=Ct[8],Nt=Ct[9],It=Ct[10],Lt=function(e,t,n,o){return r.useMemo((function(){var r=Ze(null!=n?n:t),i=Ze(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}(ae,s,u,d),jt=(0,te.A)(Lt,2),_t=jt[0],Ht=jt[1],Dt=_t.has("click"),Bt=Ht.has("click")||Ht.has("contextMenu"),Wt=(0,Ee.A)((function(){lt||It()}));!function(e,t,n,r,o){(0,ze.A)((function(){if(e&&t&&n){var i=n,a=rt(t),l=rt(i),c=nt(i),s=new Set([c].concat((0,H.A)(a),(0,H.A)(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(_e,we,me,Wt,(function(){De.current&&D&&Bt&&qe(!1)})),(0,ze.A)((function(){Wt()}),[At,R]),(0,ze.A)((function(){!_e||null!=P&&P[R]||Wt()}),[JSON.stringify(N)]);var Ft=r.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),c=1;c1?n-1:0),o=1;o1?n-1:0),o=1;oh,ge=(0,r.useMemo)((function(){var e=l;return ve?e=null===O&&k?l:l.slice(0,Math.min(l.length,R/f)):"number"==typeof h&&(e=l.slice(0,h)),e}),[l,f,O,h,ve]),be=(0,r.useMemo)((function(){return ve?l.slice(ae+1):l.slice(ge.length)}),[l,ge,ve,ae]),ye=(0,r.useCallback)((function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t}),[u]),Ae=(0,r.useCallback)(c||function(e){return e},[c]);function we(e,t,n){(oe!==e||void 0!==t&&t!==Q)&&(ie(e),n||(ue(eR){we(r-1,e-o-q+F);break}}y&&xe(0)+q>R&&Z(null)}}),[R,I,F,q,ye,ge]);var Ce=se&&!!be.length,Ee={};null!==Q&&ve&&(Ee={position:"absolute",left:Q,top:0});var Me,$e={prefixCls:de,responsive:ve,component:S,invalidate:me},Oe=s?function(e,t){var n=ye(e,t);return r.createElement(zt.Provider,{key:n,value:(0,ee.A)((0,ee.A)({},$e),{},{order:t,item:e,itemKey:n,registerSize:Se,display:t<=ae})},s(e,t))}:function(e,t){var n=ye(e,t);return r.createElement($t,(0,P.A)({},$e,{order:t,key:n,item:e,renderItem:Ae,itemKey:n,registerSize:Se,display:t<=ae}))},Te={order:Ce?ae:Number.MAX_SAFE_INTEGER,className:"".concat(de,"-rest"),registerSize:function(e,t){X(t),D(F)},display:Ce};if(b)b&&(Me=r.createElement(zt.Provider,{value:(0,ee.A)((0,ee.A)({},$e),Te)},b(be)));else{var Re=g||Wt;Me=r.createElement($t,(0,P.A)({},$e,Te),"function"==typeof Re?Re(be):Re)}var Pe=r.createElement(w,(0,P.A)({className:i()(!me&&o,m),style:v,ref:t},C),ge.map(Oe),he?Me:null,y&&r.createElement($t,(0,P.A)({},$e,{responsive:pe,responsiveDisabled:!ve,order:ae,className:"".concat(de,"-suffix"),registerSize:function(e,t){Y(t)},display:!0,style:Ee}),y));return pe&&(Pe=r.createElement(ke,{onResize:function(e,t){T(t.clientWidth)},disabled:!ve},Pe)),Pe}var Xt=r.forwardRef(Ft);Xt.displayName="Overflow",Xt.Item=_t,Xt.RESPONSIVE=Dt,Xt.INVALIDATE=Bt;const Kt=Xt;var Gt=n(3210),qt=r.createContext(null);function Yt(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Ut(e){return Yt(r.useContext(qt),e)}var Vt=n(8104),Qt=["children","locked"],Zt=r.createContext(null);function Jt(e){var t=e.children,n=e.locked,o=(0,re.A)(e,Qt),i=r.useContext(Zt),a=(0,Vt.A)((function(){return e=i,t=o,n=(0,ee.A)({},e),Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n;var e,t,n}),[i,o],(function(e,t){return!(n||e[0]===t[0]&&(0,Gt.A)(e[1],t[1],!0))}));return r.createElement(Zt.Provider,{value:a},t)}var en=[],tn=r.createContext(null);function nn(){return r.useContext(tn)}var rn=r.createContext(en);function on(e){var t=r.useContext(rn);return r.useMemo((function(){return void 0!==e?[].concat((0,H.A)(t),[e]):t}),[t,e])}var an=r.createContext(null);const ln=r.createContext({});function cn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Je(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,H.A)(e.querySelectorAll("*")).filter((function(e){return cn(e,t)}));return cn(e,t)&&n.unshift(e),n}var un=vt.A.LEFT,dn=vt.A.RIGHT,fn=vt.A.UP,pn=vt.A.DOWN,vn=vt.A.ENTER,mn=vt.A.ESC,hn=vt.A.HOME,gn=vt.A.END,bn=[fn,pn,un,dn];function yn(e,t){return sn(e,!0).filter((function(e){return t.has(e)}))}function An(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=yn(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var wn=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Yt(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function Sn(e,t,n,o,i,a,l,c,s,u){var d=r.useRef(),f=r.useRef();f.current=t;var p=function(){Me.A.cancel(d.current)};return r.useEffect((function(){return function(){p()}}),[]),function(r){var v=r.which;if([].concat(bn,[vn,mn,hn,gn]).includes(v)){var m=a(),h=wn(m,o),g=h,b=g.elements,y=g.key2element,A=g.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),S=A.get(w),x=function(e,t,n,r){var o,i="prev",a="next",l="children",c="parent";if("inline"===e&&r===vn)return{inlineTrigger:!0};var s=(0,J.A)((0,J.A)({},fn,i),pn,a),u=(0,J.A)((0,J.A)((0,J.A)((0,J.A)({},un,n?a:i),dn,n?i:a),pn,l),vn,l),d=(0,J.A)((0,J.A)((0,J.A)((0,J.A)((0,J.A)((0,J.A)({},fn,i),pn,a),vn,l),mn,c),un,n?l:c),dn,n?c:l);switch(null===(o={inline:s,horizontal:u,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===l(S,!0).length,n,v);if(!x&&v!==hn&&v!==gn)return;(bn.includes(v)||[hn,gn].includes(v))&&r.preventDefault();var C=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=A.get(e);c(r),p(),d.current=(0,Me.A)((function(){f.current===r&&t.focus()}))}};if([hn,gn].includes(v)||x.sibling||!w){var k,E,M=yn(k=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):i.current,b);E=v===hn?M[0]:v===gn?M[M.length-1]:An(k,b,w,x.offset),C(E)}else if(x.inlineTrigger)s(S);else if(x.offset>0)s(S,!0),p(),d.current=(0,Me.A)((function(){h=wn(m,o);var e=w.getAttribute("aria-controls"),t=An(document.getElementById(e),h.elements);C(t)}),5);else if(x.offset<0){var $=l(S,!0),O=$[$.length-2],T=y.get(O);s(O,!1),C(T)}}null==u||u(r)}}var xn="__RC_UTIL_PATH_SPLIT__",Cn=function(e){return e.join(xn)},kn="rc-menu-more";function En(){var e=r.useState({}),t=(0,te.A)(e,2)[1],n=(0,r.useRef)(new Map),o=(0,r.useRef)(new Map),i=r.useState([]),a=(0,te.A)(i,2),l=a[0],c=a[1],s=(0,r.useRef)(0),u=(0,r.useRef)(!1),d=(0,r.useCallback)((function(e,r){var i=Cn(r);o.current.set(i,e),n.current.set(e,i),s.current+=1;var a,l=s.current;a=function(){l===s.current&&(u.current||t({}))},Promise.resolve().then(a)}),[]),f=(0,r.useCallback)((function(e,t){var r=Cn(t);o.current.delete(r),n.current.delete(e)}),[]),p=(0,r.useCallback)((function(e){c(e)}),[]),v=(0,r.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(xn);return t&&l.includes(o[0])&&o.unshift(kn),o}),[l]),m=(0,r.useCallback)((function(e,t){return e.some((function(e){return v(e,!0).includes(t)}))}),[v]),h=(0,r.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(xn),r=new Set;return(0,H.A)(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return r.useEffect((function(){return function(){u.current=!0}}),[]),{registerPath:d,unregisterPath:f,refreshOverflowKeys:p,isSubPathKey:m,getKeyPath:v,getKeys:function(){var e=(0,H.A)(n.current.keys());return l.length&&e.push(kn),e},getSubPathKeys:h}}function Mn(e){var t=r.useRef(e);t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&(y.motionAppear=!1);var A=y.onVisibleChanged;return y.onVisibleChanged=function(e){return p.current||e||g(!0),null==A?void 0:A(e)},h?null:r.createElement(Jt,{mode:a,locked:!p.current},r.createElement(Xe.Ay,(0,P.A)({visible:b},y,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,o=e.style;return r.createElement(Kn,{id:t,className:n,style:o},i)})))}var er=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],tr=["active"],nr=function(e){var t=e.style,n=e.className,o=e.title,a=e.eventKey,l=(e.warnKey,e.disabled),c=e.internalPopupClose,s=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,p=e.popupOffset,v=e.popupStyle,m=e.onClick,h=e.onMouseEnter,g=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,A=e.onTitleMouseLeave,w=(0,re.A)(e,er),S=Ut(a),x=r.useContext(Zt),C=x.prefixCls,k=x.mode,E=x.openKeys,M=x.disabled,$=x.overflowDisabled,O=x.activeKey,T=x.selectedKeys,R=x.itemIcon,z=x.expandIcon,N=x.onItemClick,I=x.onOpenChange,L=x.onActive,j=r.useContext(ln)._internalRenderSubMenuItem,_=r.useContext(an).isSubPathKey,H=on(),D="".concat(C,"-submenu"),B=M||l,W=r.useRef(),F=r.useRef();var X=null!=u?u:R,K=null!=d?d:z,G=E.includes(a),q=!$&&G,Y=_(T,a),U=Tn(a,B,y,A),V=U.active,Q=(0,re.A)(U,tr),Z=r.useState(!1),ne=(0,te.A)(Z,2),oe=ne[0],ie=ne[1],ae=function(e){B||ie(e)},le=r.useMemo((function(){return V||"inline"!==k&&(oe||_([O],a))}),[k,V,O,oe,a,_]),ce=Rn(H.length),se=Mn((function(e){null==m||m(Nn(e)),N(e)})),ue=S&&"".concat(S,"-popup"),de=r.createElement("div",(0,P.A)({role:"menuitem",style:ce,className:"".concat(D,"-title"),tabIndex:B?null:-1,ref:W,title:"string"==typeof o?o:null,"data-menu-id":$&&S?null:S,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":ue,"aria-disabled":B,onClick:function(e){B||(null==b||b({key:a,domEvent:e}),"inline"===k&&I(a,!G))},onFocus:function(){L(a)}},Q),o,r.createElement(zn,{icon:"horizontal"!==k?K:void 0,props:(0,ee.A)((0,ee.A)({},e),{},{isOpen:q,isSubMenu:!0})},r.createElement("i",{className:"".concat(D,"-arrow")}))),fe=r.useRef(k);if("inline"!==k&&H.length>1?fe.current="vertical":fe.current=k,!$){var pe=fe.current;de=r.createElement(Zn,{mode:pe,prefixCls:D,visible:!c&&q&&"inline"!==k,popupClassName:f,popupOffset:p,popupStyle:v,popup:r.createElement(Jt,{mode:"horizontal"===pe?"vertical":pe},r.createElement(Kn,{id:ue,ref:F},s)),disabled:B,onVisibleChange:function(e){"inline"!==k&&I(a,e)}},de)}var ve=r.createElement(Kt.Item,(0,P.A)({role:"none"},w,{component:"li",style:t,className:i()(D,"".concat(D,"-").concat(k),n,(0,J.A)((0,J.A)((0,J.A)((0,J.A)({},"".concat(D,"-open"),q),"".concat(D,"-active"),le),"".concat(D,"-selected"),Y),"".concat(D,"-disabled"),B)),onMouseEnter:function(e){ae(!0),null==h||h({key:a,domEvent:e})},onMouseLeave:function(e){ae(!1),null==g||g({key:a,domEvent:e})}}),de,!$&&r.createElement(Jn,{id:ue,open:q,keyPath:H},s));return j&&(ve=j(ve,e,{selected:Y,active:le,open:q,disabled:B})),r.createElement(Jt,{onItemClick:se,mode:"horizontal"===k?"vertical":k,itemIcon:X,expandIcon:K},ve)};function rr(e){var t,n=e.eventKey,o=e.children,i=on(n),a=Gn(o,i),l=nn();return r.useEffect((function(){if(l)return l.registerPath(n,i),function(){l.unregisterPath(n,i)}}),[i]),t=l?a:r.createElement(nr,e,a),r.createElement(rn.Provider,{value:i},t)}var or=["className","title","eventKey","children"],ir=["children"],ar=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),a=(0,re.A)(e,or),l=r.useContext(Zt).prefixCls,c="".concat(l,"-item-group");return r.createElement("li",(0,P.A)({role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:i()(c,t)}),r.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof n?n:void 0},n),r.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function lr(e){var t=e.children,n=(0,re.A)(e,ir),o=Gn(t,on(n.eventKey));return nn()?o:r.createElement(ar,(0,a.A)(n,["warnKey"]),o)}function cr(e){var t=e.className,n=e.style,o=r.useContext(Zt).prefixCls;return nn()?null:r.createElement("li",{role:"separator",className:i()("".concat(o,"-item-divider"),t),style:n})}var sr=["label","children","key","type"];function ur(e){return(e||[]).map((function(e,t){if(e&&"object"===(0,ne.A)(e)){var n=e,o=n.label,i=n.children,a=n.key,l=n.type,c=(0,re.A)(n,sr),s=null!=a?a:"tmp-".concat(t);return i||"group"===l?"group"===l?r.createElement(lr,(0,P.A)({key:s},c,{title:o}),ur(i)):r.createElement(rr,(0,P.A)({key:s},c,{title:o}),ur(i)):"divider"===l?r.createElement(cr,(0,P.A)({key:s},c)):r.createElement(Bn,(0,P.A)({key:s},c),o)}return null})).filter((function(e){return e}))}function dr(e,t,n){var r=e;return t&&(r=ur(t)),Gn(r,n)}var fr=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],pr=[],vr=r.forwardRef((function(e,t){var n,o=e,a=o.prefixCls,l=void 0===a?"rc-menu":a,c=o.rootClassName,s=o.style,u=o.className,d=o.tabIndex,f=void 0===d?0:d,p=o.items,v=o.children,m=o.direction,h=o.id,g=o.mode,b=void 0===g?"vertical":g,y=o.inlineCollapsed,A=o.disabled,w=o.disabledOverflow,S=o.subMenuOpenDelay,x=void 0===S?.1:S,C=o.subMenuCloseDelay,k=void 0===C?.1:C,E=o.forceSubMenuRender,M=o.defaultOpenKeys,$=o.openKeys,O=o.activeKey,T=o.defaultActiveFirst,R=o.selectable,z=void 0===R||R,N=o.multiple,I=void 0!==N&&N,L=o.defaultSelectedKeys,j=o.selectedKeys,_=o.onSelect,D=o.onDeselect,B=o.inlineIndent,W=void 0===B?24:B,F=o.motion,X=o.defaultMotions,K=o.triggerSubMenuAction,G=void 0===K?"hover":K,q=o.builtinPlacements,Y=o.itemIcon,U=o.expandIcon,V=o.overflowedIndicator,Q=void 0===V?"...":V,Z=o.overflowedIndicatorPopupClassName,ne=o.getPopupContainer,ie=o.onClick,ae=o.onOpenChange,le=o.onKeyDown,ce=(o.openAnimation,o.openTransitionName,o._internalRenderMenuItem),se=o._internalRenderSubMenuItem,ue=(0,re.A)(o,fr),de=r.useMemo((function(){return dr(v,p,pr)}),[v,p]),fe=r.useState(!1),pe=(0,te.A)(fe,2),ve=pe[0],me=pe[1],he=r.useRef(),ge=function(e){var t=(0,oe.A)(e,{value:e}),n=(0,te.A)(t,2),o=n[0],i=n[1];return r.useEffect((function(){On+=1;var e="".concat($n,"-").concat(On);i("rc-menu-uuid-".concat(e))}),[]),o}(h),be="rtl"===m;var ye=(0,oe.A)(M,{value:$,postState:function(e){return e||pr}}),Ae=(0,te.A)(ye,2),we=Ae[0],Se=Ae[1],xe=function(e){function t(){Se(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,Ot.flushSync)(t):t()},Ce=r.useState(we),ke=(0,te.A)(Ce,2),Ee=ke[0],Me=ke[1],$e=r.useRef(!1),Oe=r.useMemo((function(){return"inline"!==b&&"vertical"!==b||!y?[b,!1]:["vertical",y]}),[b,y]),Te=(0,te.A)(Oe,2),Re=Te[0],ze=Te[1],Pe="inline"===Re,Ne=r.useState(Re),Ie=(0,te.A)(Ne,2),Le=Ie[0],je=Ie[1],_e=r.useState(ze),He=(0,te.A)(_e,2),De=He[0],Be=He[1];r.useEffect((function(){je(Re),Be(ze),$e.current&&(Pe?Se(Ee):xe(pr))}),[Re,ze]);var We=r.useState(0),Fe=(0,te.A)(We,2),Xe=Fe[0],Ke=Fe[1],Ge=Xe>=de.length-1||"horizontal"!==Le||w;r.useEffect((function(){Pe&&Me(we)}),[we]),r.useEffect((function(){return $e.current=!0,function(){$e.current=!1}}),[]);var qe=En(),Ye=qe.registerPath,Ue=qe.unregisterPath,Ve=qe.refreshOverflowKeys,Qe=qe.isSubPathKey,Ze=qe.getKeyPath,Je=qe.getKeys,et=qe.getSubPathKeys,tt=r.useMemo((function(){return{registerPath:Ye,unregisterPath:Ue}}),[Ye,Ue]),nt=r.useMemo((function(){return{isSubPathKey:Qe}}),[Qe]);r.useEffect((function(){Ve(Ge?pr:de.slice(Xe+1).map((function(e){return e.key})))}),[Xe,Ge]);var rt=(0,oe.A)(O||T&&(null===(n=de[0])||void 0===n?void 0:n.key),{value:O}),ot=(0,te.A)(rt,2),it=ot[0],at=ot[1],lt=Mn((function(e){at(e)})),ct=Mn((function(){at(void 0)}));(0,r.useImperativeHandle)(t,(function(){return{list:he.current,focus:function(e){var t,n,r=Je(),o=wn(r,ge),i=o.elements,a=o.key2element,l=o.element2key,c=yn(he.current,i),s=null!=it?it:c[0]?l.get(c[0]):null===(t=de.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var st=(0,oe.A)(L||[],{value:j,postState:function(e){return Array.isArray(e)?e:null==e?pr:[e]}}),ut=(0,te.A)(st,2),dt=ut[0],ft=ut[1],pt=Mn((function(e){null==ie||ie(Nn(e)),function(e){if(z){var t,n=e.key,r=dt.includes(n);t=I?r?dt.filter((function(e){return e!==n})):[].concat((0,H.A)(dt),[n]):[n],ft(t);var o=(0,ee.A)((0,ee.A)({},e),{},{selectedKeys:t});r?null==D||D(o):null==_||_(o)}!I&&we.length&&"inline"!==Le&&xe(pr)}(e)})),vt=Mn((function(e,t){var n=we.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Le){var r=et(e);n=n.filter((function(e){return!r.has(e)}))}(0,Gt.A)(we,n,!0)||xe(n,!0)})),mt=Sn(Le,it,be,ge,he,Je,Ze,at,(function(e,t){var n=null!=t?t:!we.includes(e);vt(e,n)}),le);r.useEffect((function(){me(!0)}),[]);var ht=r.useMemo((function(){return{_internalRenderMenuItem:ce,_internalRenderSubMenuItem:se}}),[ce,se]),gt="horizontal"!==Le||w?de:de.map((function(e,t){return r.createElement(Jt,{key:e.key,overflowDisabled:t>Xe},e)})),bt=r.createElement(Kt,(0,P.A)({id:h,ref:he,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Bn,className:i()(l,"".concat(l,"-root"),"".concat(l,"-").concat(Le),u,(0,J.A)((0,J.A)({},"".concat(l,"-inline-collapsed"),De),"".concat(l,"-rtl"),be),c),dir:m,style:s,role:"menu",tabIndex:f,data:gt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?de.slice(-t):null;return r.createElement(rr,{eventKey:kn,title:Q,disabled:Ge,internalPopupClose:0===t,popupClassName:Z},n)},maxCount:"horizontal"!==Le||w?Kt.INVALIDATE:Kt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ke(e)},onKeyDown:mt},ue));return r.createElement(ln.Provider,{value:ht},r.createElement(qt.Provider,{value:ge},r.createElement(Jt,{prefixCls:l,rootClassName:c,mode:Le,openKeys:we,rtl:be,disabled:A,motion:ve?F:null,defaultMotions:ve?X:null,activeKey:it,onActive:lt,onInactive:ct,selectedKeys:dt,inlineIndent:W,subMenuOpenDelay:x,subMenuCloseDelay:k,forceSubMenuRender:E,builtinPlacements:q,triggerSubMenuAction:G,getPopupContainer:ne,itemIcon:Y,expandIcon:U,onItemClick:pt,onOpenChange:vt},r.createElement(an.Provider,{value:nt},bt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(tn.Provider,{value:tt},de)))))}));var mr=vr;mr.Item=Bn,mr.SubMenu=rr,mr.ItemGroup=lr,mr.Divider=cr;const hr=mr;var gr=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,a=e.tabs,l=e.locale,c=e.mobile,s=e.moreIcon,u=void 0===s?"More":s,d=e.moreTransitionName,f=e.style,p=e.className,v=e.editable,m=e.tabBarGutter,h=e.rtl,g=e.removeAriaLabel,b=e.onTabClick,y=e.getPopupContainer,A=e.popupClassName,w=(0,r.useState)(!1),S=(0,te.A)(w,2),x=S[0],C=S[1],k=(0,r.useState)(null),E=(0,te.A)(k,2),M=E[0],$=E[1],O="".concat(o,"-more-popup"),T="".concat(n,"-dropdown"),R=null!==M?"".concat(O,"-").concat(M):null,z=null==l?void 0:l.dropdownAriaLabel;var P=r.createElement(hr,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),C(!1)},prefixCls:"".concat(T,"-menu"),id:O,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[M],"aria-label":void 0!==z?z:"expanded dropdown"},a.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=je(t,i,v,n);return r.createElement(Bn,{key:a,id:"".concat(O,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:n},r.createElement("span",null,l),c&&r.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),v.onEdit("remove",{key:t,event:e})}(e,a)}},i||v.removeIcon||"\xd7"))})));function N(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===M}))||0,r=t.length,o=0;ot?"left":"right"})})),R=(0,te.A)(T,2),z=R[0],N=R[1],I=Te(0,(function(e,t){!O&&g&&g({direction:e>t?"top":"bottom"})})),L=(0,te.A)(I,2),j=L[0],_=L[1],D=(0,r.useState)([0,0]),B=(0,te.A)(D,2),W=B[0],F=B[1],X=(0,r.useState)([0,0]),K=(0,te.A)(X,2),G=K[0],q=K[1],Y=(0,r.useState)([0,0]),U=(0,te.A)(Y,2),V=U[0],Q=U[1],Z=(0,r.useState)([0,0]),ne=(0,te.A)(Z,2),re=ne[0],oe=ne[1],ie=function(e){var t=(0,r.useRef)([]),n=(0,r.useState)({}),o=(0,te.A)(n,2)[1],i=(0,r.useRef)("function"==typeof e?e():e),a=Pe((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,o({})}));return[i.current,function(e){t.current.push(e),a()}]}(new Map),le=(0,te.A)(ie,2),ce=le[0],se=le[1],ue=function(e,t,n){return(0,r.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Oe,i=o.left+o.width,a=0;aAe?Ae:e}O&&s?(ye=0,Ae=Math.max(0,pe-ge)):(ye=Math.min(0,ge-pe),Ae=0);var Se=(0,r.useRef)(null),xe=(0,r.useState)(),Ce=(0,te.A)(xe,2),Me=Ce[0],ze=Ce[1];function je(){ze(Date.now())}function _e(){Se.current&&clearTimeout(Se.current)}!function(e,t){var n=(0,r.useState)(),o=(0,te.A)(n,2),i=o[0],a=o[1],l=(0,r.useState)(0),c=(0,te.A)(l,2),s=c[0],u=c[1],d=(0,r.useState)(0),f=(0,te.A)(d,2),p=f[0],v=f[1],m=(0,r.useState)(),h=(0,te.A)(m,2),g=h[0],b=h[1],y=(0,r.useRef)(),A=(0,r.useRef)(),w=(0,r.useRef)(null);w.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(y.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],r=n.screenX,o=n.screenY;a({x:r,y:o});var l=r-i.x,c=o-i.y;t(l,c);var d=Date.now();u(d),v(d-s),b({x:l,y:c})}},onTouchEnd:function(){if(i&&(a(null),b(null),g)){var e=g.x/p,n=g.y/p,r=Math.abs(e),o=Math.abs(n);if(Math.max(r,o)<.1)return;var l=e,c=n;y.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(y.current):t(20*(l*=Re),20*(c*=Re))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===A.current?n:r:i>a?(o=n,A.current="x"):(o=r,A.current="y"),t(-o,-o)&&e.preventDefault()}},r.useEffect((function(){function t(e){w.current.onTouchMove(e)}function n(e){w.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){w.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){w.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(k,(function(e,t){function n(e,t){e((function(e){return we(e+t)}))}return!!he&&(O?n(N,e):n(_,t),_e(),je(),!0)})),(0,r.useEffect)((function(){return _e(),Me&&(Se.current=setTimeout((function(){ze(0)}),100)),_e}),[Me]);var Be=function(e,t,n,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(n)):(c="height",s="top",u=-n),(0,r.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,o=0;ou+t){r=o-1;break}}for(var a=0,l=n-1;l>=0;l-=1)if((e.get(d[l].key)||Ne)[s]=r?[0,0]:[a,r]}),[e,t,o,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(ue,ge,O?z:j,pe,ve,me,(0,ee.A)((0,ee.A)({},e),{},{tabs:w})),We=(0,te.A)(Be,2),Fe=We[0],Xe=We[1],Ke=(0,Ee.A)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(O){var n=z;s?t.rightz+ge&&(n=t.right+t.width-ge):t.left<-z?n=-t.left:t.left+t.width>-z+ge&&(n=-(t.left+t.width-ge)),_(0),N(we(n))}else{var r=j;t.top<-j?r=-t.top:t.top+t.height>-j+ge&&(r=-(t.top+t.height-ge)),N(0),_(we(r))}})),Ge={};"top"===p||"bottom"===p?Ge[s?"marginRight":"marginLeft"]=v:Ge.marginTop=v;var qe=w.map((function(e,t){var n=e.key;return r.createElement(yr,{id:a,prefixCls:A,key:n,tab:e,style:0===t?void 0:Ge,closable:e.closable,editable:d,active:n===c,renderWrapper:m,removeAriaLabel:null==f?void 0:f.removeAriaLabel,onClick:function(e){h(n,e)},onFocus:function(){Ke(n),je(),k.current&&(s||(k.current.scrollLeft=0),k.current.scrollTop=0)}})})),Ye=function(){return se((function(){var e,t=new Map,n=null===(e=E.current)||void 0===e?void 0:e.getBoundingClientRect();return w.forEach((function(e){var r,o=e.key,i=null===(r=E.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(Le(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,r,i,o]}(i,n),l=(0,te.A)(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};(0,r.useEffect)((function(){Ye()}),[w.map((function(e){return e.key})).join("_")]);var Ue=Pe((function(){var e=Ar(S),t=Ar(x),n=Ar(C);F([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Ar($);Q(r);var o=Ar(M);oe(o);var i=Ar(E);q([i[0]-r[0],i[1]-r[1]]),Ye()})),Ve=w.slice(0,Fe),Qe=w.slice(Xe+1),Ze=[].concat((0,H.A)(Ve),(0,H.A)(Qe)),Je=ue.get(c),et=$e({activeTabOffset:Je,horizontal:O,indicator:b,rtl:s}).style;(0,r.useEffect)((function(){Ke()}),[c,ye,Ae,Ie(Je),Ie(ue),O]),(0,r.useEffect)((function(){Ue()}),[s]);var tt,nt,rt,ot,it=!!Ze.length,at="".concat(A,"-nav-wrap");return O?s?(nt=z>0,tt=z!==Ae):(tt=z<0,nt=z!==ye):(rt=j<0,ot=j!==ye),r.createElement(ke,{onResize:Ue},r.createElement("div",{ref:(0,de.xK)(t,S),role:"tablist",className:i()("".concat(A,"-nav"),n),style:o,onKeyDown:function(){je()}},r.createElement(De,{ref:x,position:"left",extra:u,prefixCls:A}),r.createElement(ke,{onResize:Ue},r.createElement("div",{className:i()(at,(0,J.A)((0,J.A)((0,J.A)((0,J.A)({},"".concat(at,"-ping-left"),tt),"".concat(at,"-ping-right"),nt),"".concat(at,"-ping-top"),rt),"".concat(at,"-ping-bottom"),ot)),ref:k},r.createElement(ke,{onResize:Ue},r.createElement("div",{ref:E,className:"".concat(A,"-nav-list"),style:{transform:"translate(".concat(z,"px, ").concat(j,"px)"),transition:Me?"none":void 0}},qe,r.createElement(He,{ref:$,prefixCls:A,locale:f,editable:d,style:(0,ee.A)((0,ee.A)({},0===qe.length?void 0:Ge),{},{visibility:it?"hidden":null})}),r.createElement("div",{className:i()("".concat(A,"-ink-bar"),(0,J.A)({},"".concat(A,"-ink-bar-animated"),l.inkBar)),style:et}))))),r.createElement(br,(0,P.A)({},e,{removeAriaLabel:null==f?void 0:f.removeAriaLabel,ref:M,prefixCls:A,tabs:Ze,className:!it&&be,tabMoving:!!Me})),r.createElement(De,{ref:C,position:"right",extra:u,prefixCls:A})))}));const xr=Sr;var Cr=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,a=e.style,l=e.id,c=e.active,s=e.tabKey,u=e.children;return r.createElement("div",{id:l&&"".concat(l,"-panel-").concat(s),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(s),"aria-hidden":!c,style:a,className:i()(n,c&&"".concat(n,"-active"),o),ref:t},u)}));const kr=Cr;var Er=["renderTabBar"],Mr=["label","key"];const $r=function(e){var t=e.renderTabBar,n=(0,re.A)(e,Er),o=r.useContext(ae).tabs;return t?t((0,ee.A)((0,ee.A)({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=(0,re.A)(e,Mr);return r.createElement(kr,(0,P.A)({tab:t,key:n,tabKey:n},o))}))}),xr):r.createElement(xr,n)};var Or=["key","forceRender","style","className","destroyInactiveTabPane"];const Tr=function(e){var t=e.id,n=e.activeKey,o=e.animated,a=e.tabPosition,l=e.destroyInactiveTabPane,c=r.useContext(ae),s=c.prefixCls,u=c.tabs,d=o.tabPane,f="".concat(s,"-tabpane");return r.createElement("div",{className:i()("".concat(s,"-content-holder"))},r.createElement("div",{className:i()("".concat(s,"-content"),"".concat(s,"-content-").concat(a),(0,J.A)({},"".concat(s,"-content-animated"),d))},u.map((function(e){var a=e.key,c=e.forceRender,s=e.style,u=e.className,p=e.destroyInactiveTabPane,v=(0,re.A)(e,Or),m=a===n;return r.createElement(Xe.Ay,(0,P.A)({key:a,visible:m,forceRender:c,removeOnLeave:!(!l&&!p),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,l=e.className;return r.createElement(kr,(0,P.A)({},v,{prefixCls:f,id:t,tabKey:a,animated:d,active:m,style:(0,ee.A)((0,ee.A)({},s),o),className:i()(u,l),ref:n}))}))}))))};var Rr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],zr=0;const Pr=r.forwardRef((function(e,t){var n=e.id,o=e.prefixCls,a=void 0===o?"rc-tabs":o,l=e.className,c=e.items,s=e.direction,u=e.activeKey,d=e.defaultActiveKey,f=e.editable,p=e.animated,v=e.tabPosition,m=void 0===v?"top":v,h=e.tabBarGutter,g=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,A=e.moreIcon,w=e.moreTransitionName,S=e.destroyInactiveTabPane,x=e.renderTabBar,C=e.onChange,k=e.onTabClick,E=e.onTabScroll,M=e.getPopupContainer,$=e.popupClassName,O=e.indicator,T=(0,re.A)(e,Rr),R=r.useMemo((function(){return(c||[]).filter((function(e){return e&&"object"===(0,ne.A)(e)&&"key"in e}))}),[c]),z="rtl"===s,N=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,ee.A)({inkBar:!0},"object"===(0,ne.A)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(p),I=(0,r.useState)(!1),L=(0,te.A)(I,2),j=L[0],_=L[1];(0,r.useEffect)((function(){_(ie())}),[]);var H=(0,oe.A)((function(){var e;return null===(e=R[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),D=(0,te.A)(H,2),B=D[0],W=D[1],F=(0,r.useState)((function(){return R.findIndex((function(e){return e.key===B}))})),X=(0,te.A)(F,2),K=X[0],G=X[1];(0,r.useEffect)((function(){var e,t=R.findIndex((function(e){return e.key===B}));-1===t&&(t=Math.max(0,Math.min(K,R.length-1)),W(null===(e=R[t])||void 0===e?void 0:e.key));G(t)}),[R.map((function(e){return e.key})).join("_"),B,K]);var q=(0,oe.A)(null,{value:n}),Y=(0,te.A)(q,2),U=Y[0],V=Y[1];(0,r.useEffect)((function(){n||(V("rc-tabs-".concat(zr)),zr+=1)}),[]);var Q={id:U,activeKey:B,animated:N,tabPosition:m,rtl:z,mobile:j},Z=(0,ee.A)((0,ee.A)({},Q),{},{editable:f,locale:y,moreIcon:A,moreTransitionName:w,tabBarGutter:h,onTabClick:function(e,t){null==k||k(e,t);var n=e!==B;W(e),n&&(null==C||C(e))},onTabScroll:E,extra:b,style:g,panes:null,getPopupContainer:M,popupClassName:$,indicator:O});return r.createElement(ae.Provider,{value:{tabs:R,prefixCls:a}},r.createElement("div",(0,P.A)({ref:t,id:n,className:i()(a,"".concat(a,"-").concat(m),(0,J.A)((0,J.A)((0,J.A)({},"".concat(a,"-mobile"),j),"".concat(a,"-editable"),f),"".concat(a,"-rtl"),z),l)},T),r.createElement($r,(0,P.A)({},Z,{renderTabBar:x})),r.createElement(Tr,(0,P.A)({destroyInactiveTabPane:S},Q,{animated:N}))))}));var Nr=n(934),Ir=n(3723);const Lr={motionAppear:!1,motionEnter:!0,motionLeave:!0};var jr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Dr[t];return[(0,Hr.b)(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Wr=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Br(e,"slide-up"),Br(e,"slide-down")]]},Fr=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,f.zA)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,f.zA)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,f.zA)(e.borderRadiusLG)} 0 0 ${(0,f.zA)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Xr=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,_r.dF)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,f.zA)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},_r.L9),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,f.zA)(e.paddingXXS)} ${(0,f.zA)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Kr=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,f.zA)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Gr=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,f.zA)(e.borderRadius)} ${(0,f.zA)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,f.zA)(e.borderRadius)} ${(0,f.zA)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,f.zA)(e.borderRadius)} ${(0,f.zA)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,f.zA)(e.borderRadius)} 0 0 ${(0,f.zA)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},qr=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,_r.K8)(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},Yr=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,f.zA)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,f.zA)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,f.zA)(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ur=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,_r.dF)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${(0,f.zA)(e.paddingXS)}`,background:"transparent",border:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},(0,_r.K8)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),qr(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Vr=(0,p.OF)("Tabs",(e=>{const t=(0,v.h1)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,f.zA)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,f.zA)(e.horizontalItemGutter)}`});return[Gr(t),Yr(t),Kr(t),Xr(t),Fr(t),Ur(t),Wr(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var Qr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,n,o,a,c,s,d,f;const{type:p,className:v,rootClassName:m,size:h,onEdit:g,hideAdd:b,centered:y,addIcon:A,removeIcon:w,moreIcon:S,popupClassName:x,children:C,items:k,animated:E,style:M,indicatorSize:$,indicator:O}=e,T=Qr(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:R}=T,{direction:z,tabs:P,getPrefixCls:N,getPopupContainer:I}=r.useContext(l.QO),L=N("tabs",R),j=(0,Nr.A)(L),[_,H,D]=Vr(L,j);let B;"editable-card"===p&&(B={onEdit:(e,t)=>{let{key:n,event:r}=t;null==g||g("add"===e?r:n,e)},removeIcon:null!==(t=null!=w?w:null==P?void 0:P.removeIcon)&&void 0!==t?t:r.createElement(G.A,null),addIcon:(null!=A?A:null==P?void 0:P.addIcon)||r.createElement(Z,null),showAdd:!0!==b});const W=N();const F=u(h),X=function(e,t){return e||function(e){return e.filter((e=>e))}(ce(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=jr(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(k,C),K=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},Lr),{motionName:(0,Ir.b)(e,"switch")})),t}(L,E),q=Object.assign(Object.assign({},null==P?void 0:P.style),M),Y={align:null!==(n=null==O?void 0:O.align)&&void 0!==n?n:null===(o=null==P?void 0:P.indicator)||void 0===o?void 0:o.align,size:null!==(d=null!==(c=null!==(a=null==O?void 0:O.size)&&void 0!==a?a:$)&&void 0!==c?c:null===(s=null==P?void 0:P.indicator)||void 0===s?void 0:s.size)&&void 0!==d?d:null==P?void 0:P.indicatorSize};return _(r.createElement(Pr,Object.assign({direction:z,getPopupContainer:I,moreTransitionName:`${W}-slide-up`},T,{items:X,className:i()({[`${L}-${F}`]:F,[`${L}-card`]:["card","editable-card"].includes(p),[`${L}-editable-card`]:"editable-card"===p,[`${L}-centered`]:y},null==P?void 0:P.className,v,m,H,D,j),popupClassName:i()(x,H,D,j),style:q,editable:B,moreIcon:null!==(f=null!=S?S:null==P?void 0:P.moreIcon)&&void 0!==f?f:r.createElement(U,null),prefixCls:L,animated:K,indicator:Y})))};Zr.TabPane=()=>null;const Jr=Zr;var eo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,hoverable:o=!0}=e,a=eo(e,["prefixCls","className","hoverable"]);const{getPrefixCls:c}=r.useContext(l.QO),s=c("card",t),u=i()(`${s}-grid`,n,{[`${s}-grid-hoverable`]:o});return r.createElement("div",Object.assign({},a,{className:u}))},no=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,f.zA)(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`},(0,_r.t6)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},_r.L9),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},ro=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${(0,f.zA)(o)} 0 0 0 ${n},\n 0 ${(0,f.zA)(o)} 0 0 ${n},\n ${(0,f.zA)(o)} ${(0,f.zA)(o)} 0 0 ${n},\n ${(0,f.zA)(o)} 0 0 0 ${n} inset,\n 0 ${(0,f.zA)(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},oo=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)}`},(0,_r.t6)()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,f.zA)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:(0,f.zA)(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`}}})},io=e=>Object.assign(Object.assign({margin:`${(0,f.zA)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,_r.t6)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},_r.L9),"&-description":{color:e.colorTextDescription}}),ao=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${(0,f.zA)(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,f.zA)(e.padding)} ${(0,f.zA)(n)}`}}},lo=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},co=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:o,colorBorderSecondary:i,boxShadowTertiary:a,cardPaddingBase:l,extraColor:c}=e;return{[n]:Object.assign(Object.assign({},(0,_r.dF)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:no(e),[`${n}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:`0 0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)}`},(0,_r.t6)()),[`${n}-grid`]:ro(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:oo(e),[`${n}-meta`]:io(e)}),[`${n}-bordered`]:{border:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:o}}},[`${n}-type-inner`]:ao(e),[`${n}-loading`]:lo(e),[`${n}-rtl`]:{direction:"rtl"}}},so=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${(0,f.zA)(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},uo=(0,p.OF)("Card",(e=>{const t=(0,v.h1)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[co(t),so(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var fo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{actionClasses:t,actions:n=[],actionStyle:o}=e;return r.createElement("ul",{className:t,style:o},n.map(((e,t)=>{const o=`action-${t}`;return r.createElement("li",{style:{width:100/n.length+"%"},key:o},r.createElement("span",null,e))})))},vo=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:c,style:s,extra:d,headStyle:f={},bodyStyle:p={},title:v,loading:m,bordered:h=!0,size:g,type:b,cover:y,actions:A,tabList:w,children:S,activeTabKey:x,defaultActiveTabKey:C,tabBarExtraContent:k,hoverable:E,tabProps:M={},classNames:$,styles:O}=e,T=fo(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:R,direction:z,card:P}=r.useContext(l.QO);const N=e=>{var t;return i()(null===(t=null==P?void 0:P.classNames)||void 0===t?void 0:t[e],null==$?void 0:$[e])},I=e=>{var t;return Object.assign(Object.assign({},null===(t=null==P?void 0:P.styles)||void 0===t?void 0:t[e]),null==O?void 0:O[e])},L=r.useMemo((()=>{let e=!1;return r.Children.forEach(S,(t=>{t&&t.type&&t.type===to&&(e=!0)})),e}),[S]),j=R("card",n),[_,H,D]=uo(j),B=r.createElement(K,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),W=void 0!==x,F=Object.assign(Object.assign({},M),{[W?"activeKey":"defaultActiveKey"]:W?x:C,tabBarExtraContent:k});let X;const G=u(g),q=G&&"default"!==G?G:"large",Y=w?r.createElement(Jr,Object.assign({size:q},F,{className:`${j}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:w.map((e=>{var{tab:t}=e,n=fo(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(v||d||Y){const e=i()(`${j}-head`,N("header")),t=i()(`${j}-head-title`,N("title")),n=i()(`${j}-extra`,N("extra")),o=Object.assign(Object.assign({},f),I("header"));X=r.createElement("div",{className:e,style:o},r.createElement("div",{className:`${j}-head-wrapper`},v&&r.createElement("div",{className:t,style:I("title")},v),d&&r.createElement("div",{className:n,style:I("extra")},d)),Y)}const U=i()(`${j}-cover`,N("cover")),V=y?r.createElement("div",{className:U,style:I("cover")},y):null,Q=i()(`${j}-body`,N("body")),Z=Object.assign(Object.assign({},p),I("body")),J=r.createElement("div",{className:Q,style:Z},m?B:S),ee=i()(`${j}-actions`,N("actions")),te=A&&A.length?r.createElement(po,{actionClasses:ee,actionStyle:I("actions"),actions:A}):null,ne=(0,a.A)(T,["onTabChange"]),re=i()(j,null==P?void 0:P.className,{[`${j}-loading`]:m,[`${j}-bordered`]:h,[`${j}-hoverable`]:E,[`${j}-contain-grid`]:L,[`${j}-contain-tabs`]:w&&w.length,[`${j}-${G}`]:G,[`${j}-type-${b}`]:!!b,[`${j}-rtl`]:"rtl"===z},o,c,H,D),oe=Object.assign(Object.assign({},null==P?void 0:P.style),s);return _(r.createElement("div",Object.assign({ref:t},ne,{className:re,style:oe}),X,V,J,te))}));var mo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,avatar:o,title:a,description:c}=e,s=mo(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:u}=r.useContext(l.QO),d=u("card",t),f=i()(`${d}-meta`,n),p=o?r.createElement("div",{className:`${d}-meta-avatar`},o):null,v=a?r.createElement("div",{className:`${d}-meta-title`},a):null,m=c?r.createElement("div",{className:`${d}-meta-description`},c):null,h=v||m?r.createElement("div",{className:`${d}-meta-detail`},v,m):null;return r.createElement("div",Object.assign({},s,{className:f}),p,h)},go=vo;go.Grid=to,go.Meta=ho;const bo=go},3517:(e,t,n)=>{"use strict";n.d(t,{A:()=>ge});var r=n(6540),o=n(8168),i=n(9379),a=n(3029),l=n(2901),c=n(6822),s=n(2176),u=n(3954),d=n(5501),f=n(4467),p=n(2284),v=n(45);const m={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function h(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,u=void 0===s?void 0:s,d=!1,f=0;function p(){r&&clearTimeout(r)}function v(){for(var n=arguments.length,o=new Array(n),i=0;ie?c?(f=Date.now(),a||(r=setTimeout(u?m:v,e))):v():!0!==a&&(r=setTimeout(u?m:v,void 0===u?e-s:e)))}return v.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},v}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}var g=n(6942),b=n.n(g);const y={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return r.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return r.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function A(e,t,n){return Math.max(t,Math.min(e,n))}var w=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},S=function(e){for(var t=[],n=x(e),r=C(e),o=n;o0?1:0):0},E=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},M=function(e){return e&&e.offsetWidth||0},$=function(e){return e&&e.offsetHeight||0},O=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"},T=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},R=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},z=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];nn[n.length-1])t=n[n.length-1];else for(var o in n){if(t-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+M(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},N=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},I=function(e){var t,n;(N(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical)?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=D(e)*e.slideWidth;var r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=(0,i.A)((0,i.A)({},r),{},{WebkitTransform:o,transform:a,msTransform:l})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t),n&&(r.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},L=function(e){N(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=I(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},j=function(e){if(e.unslick)return 0;N(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,i=e.infinite,a=e.centerMode,l=e.slideCount,c=e.slidesToShow,s=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,f=e.variableWidth,p=e.slideHeight,v=e.fade,m=e.vertical;if(v||1===e.slideCount)return 0;var h=0;if(i?(h=-_(e),l%s!=0&&r+s>l&&(h=-(r>l?c-(r-l):l%s)),a&&(h+=parseInt(c/2))):(l%s!=0&&r+s>l&&(h=c-l%s),a&&(h=parseInt(c/2))),t=m?r*p*-1+h*p:r*u*-1+h*u,!0===f){var g,b=o&&o.node;if(g=r+_(e),t=(n=b&&b.childNodes[g])?-1*n.offsetLeft:0,!0===a){g=i?r+_(e):r,n=b&&b.children[g],t=0;for(var y=0;ye.currentSlide?e.targetSlide>e.currentSlide+W(e)?"left":"right":e.targetSlide0&&(i+=1),r&&t%2==0&&(i+=1),i}return r?0:t-1},F=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!=0||(i+=1),i}return r?t-1:0},X=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},K=Object.keys(y);var G=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},q=function(e,t){return e.key+"-"+t},Y=function(e){var t,n=[],o=[],a=[],l=r.Children.count(e.children),c=x(e),s=C(e);return r.Children.forEach(e.children,(function(u,d){var f,p={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?u:r.createElement("div",null);var v=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}((0,i.A)((0,i.A)({},e),{},{index:d})),m=f.props.className||"",h=G((0,i.A)((0,i.A)({},e),{},{index:d}));if(n.push(r.cloneElement(f,{key:"original"+q(f,d),"data-index":d,className:b()(h,m),tabIndex:"-1","aria-hidden":!h["slick-active"],style:(0,i.A)((0,i.A)({outline:"none"},f.props.style||{}),v),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&l>1&&!1===e.fade&&!e.unslick){var g=l-d;g<=_(e)&&((t=-g)>=c&&(f=u),h=G((0,i.A)((0,i.A)({},e),{},{index:t})),o.push(r.cloneElement(f,{key:"precloned"+q(f,t),"data-index":t,tabIndex:"-1",className:b()(h,m),"aria-hidden":!h["slick-active"],style:(0,i.A)((0,i.A)({},f.props.style||{}),v),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),(t=l+d)=w&&d<=g:d===w}),x={message:"dots",index:m,slidesToScroll:c,currentSlide:d},C=this.clickHandler.bind(this,x);v=v.concat(r.createElement("li",{key:m,className:S},r.cloneElement(this.props.customPaging(m),{onClick:C})))}return r.cloneElement(this.props.appendDots(v),(0,i.A)({className:this.props.dotsClass},p))}}])}(r.PureComponent);function Q(e,t,n){return t=(0,u.A)(t),(0,c.A)(e,(0,s.A)()?Reflect.construct(t,n||[],(0,u.A)(e).constructor):t.apply(e,n))}var Z=function(e){function t(){return(0,a.A)(this,t),Q(this,t,arguments)}return(0,d.A)(t,e),(0,l.A)(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:b()(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?r.cloneElement(this.props.prevArrow,(0,i.A)((0,i.A)({},n),a)):r.createElement("button",(0,o.A)({key:"0",type:"button"},n)," ","Previous")}}])}(r.PureComponent),J=function(e){function t(){return(0,a.A)(this,t),Q(this,t,arguments)}return(0,d.A)(t,e),(0,l.A)(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});T(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:b()(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?r.cloneElement(this.props.nextArrow,(0,i.A)((0,i.A)({},n),a)):r.createElement("button",(0,o.A)({key:"1",type:"button"},n)," ","Next")}}])}(r.PureComponent),ee=n(3591),te=["animating"];var ne=function(e){function t(e){var n,l,d,p;(0,a.A)(this,t),l=this,d=t,p=[e],d=(0,u.A)(d),n=(0,c.A)(l,(0,s.A)()?Reflect.construct(d,p||[],(0,u.A)(l).constructor):d.apply(l,p)),(0,f.A)(n,"listRefHandler",(function(e){return n.list=e})),(0,f.A)(n,"trackRefHandler",(function(e){return n.track=e})),(0,f.A)(n,"adaptHeight",(function(){if(n.props.adaptiveHeight&&n.list){var e=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=$(e)+"px"}})),(0,f.A)(n,"componentDidMount",(function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var e=S((0,i.A)((0,i.A)({},n.props),n.state));e.length>0&&(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e))}var t=(0,i.A)({listRef:n.list,trackRef:n.track},n.props);n.updateState(t,!0,(function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")})),"progressive"===n.props.lazyLoad&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),n.ro=new ee.A((function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout((function(){return n.onWindowResized()}),n.props.speed))):n.onWindowResized()})),n.ro.observe(n.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,e.onblur=n.props.pauseOnFocus?n.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)})),(0,f.A)(n,"componentWillUnmount",(function(){n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach((function(e){return clearTimeout(e)})),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),n.ro.disconnect()})),(0,f.A)(n,"componentDidUpdate",(function(e){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var t=S((0,i.A)((0,i.A)({},n.props),n.state));t.length>0&&(n.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),n.props.onLazyLoad&&n.props.onLazyLoad(t))}n.adaptHeight();var o=(0,i.A)((0,i.A)({listRef:n.list,trackRef:n.track},n.props),n.state),a=n.didPropsChange(e);a&&n.updateState(o,a,(function(){n.state.currentSlide>=r.Children.count(n.props.children)&&n.changeSlide({message:"index",index:r.Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),e.autoplay===n.props.autoplay&&e.autoplaySpeed===n.props.autoplaySpeed||(!e.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))}))})),(0,f.A)(n,"onWindowResized",(function(e){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=h(50,(function(){return n.resizeWindow(e)})),n.debouncedResize()})),(0,f.A)(n,"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(n.track&&n.track.node)){var t=(0,i.A)((0,i.A)({listRef:n.list,trackRef:n.track},n.props),n.state);n.updateState(t,e,(function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")})),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}})),(0,f.A)(n,"updateState",(function(e,t,o){var a=function(e){var t,n=r.Children.count(e.children),o=e.listRef,a=Math.ceil(M(o)),l=e.trackRef&&e.trackRef.node,c=Math.ceil(M(l));if(e.vertical)t=a;else{var s=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(s*=a/100),t=Math.ceil((a-s)/e.slidesToShow)}var u=o&&$(o.querySelector('[data-index="0"]')),d=u*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=n-1-e.initialSlide);var p=e.lazyLoadedList||[],v=S((0,i.A)((0,i.A)({},e),{},{currentSlide:f,lazyLoadedList:p})),m={slideCount:n,slideWidth:t,listWidth:a,trackWidth:c,currentSlide:f,slideHeight:u,listHeight:d,lazyLoadedList:p=p.concat(v)};return null===e.autoplaying&&e.autoplay&&(m.autoplaying="playing"),m}(e);e=(0,i.A)((0,i.A)((0,i.A)({},e),a),{},{slideIndex:a.currentSlide});var l=j(e);e=(0,i.A)((0,i.A)({},e),{},{left:l});var c=I(e);(t||r.Children.count(n.props.children)!==r.Children.count(e.children))&&(a.trackStyle=c),n.setState(a,o)})),(0,f.A)(n,"ssrInit",(function(){if(n.props.variableWidth){var e=0,t=0,o=[],a=_((0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{slideCount:n.props.children.length})),l=H((0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach((function(t){o.push(t.props.style.width),e+=t.props.style.width}));for(var c=0;c=t&&n.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(n.props.lazyLoad?e.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(e.onload=o,e.onerror=function(){o(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))}))})),(0,f.A)(n,"progressiveLazyLoad",(function(){for(var e=[],t=(0,i.A)((0,i.A)({},n.props),n.state),r=n.state.currentSlide;r=-_(t);o--)if(n.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}e.length>0?(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)})),(0,f.A)(n,"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.props,o=r.asNavFor,a=r.beforeChange,l=r.onLazyLoad,c=r.speed,s=r.afterChange,u=n.state.currentSlide,d=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,a=e.index,l=e.slideCount,c=e.lazyLoad,s=e.currentSlide,u=e.centerMode,d=e.slidesToScroll,f=e.slidesToShow,p=e.useCSS,v=e.lazyLoadedList;if(t&&n)return{};var m,h,g,b=a,y={},w={},x=o?a:A(a,0,l-1);if(r){if(!o&&(a<0||a>=l))return{};a<0?b=a+l:a>=l&&(b=a-l),c&&v.indexOf(b)<0&&(v=v.concat(b)),y={animating:!0,currentSlide:b,lazyLoadedList:v,targetSlide:b},w={animating:!1,targetSlide:b}}else m=b,b<0?(m=b+l,o?l%d!=0&&(m=l-l%d):m=0):!T(e)&&b>s?b=m=s:u&&b>=l?(b=o?l:l-1,m=o?0:l-1):b>=l&&(m=b-l,o?l%d!=0&&(m=0):m=l-f),!o&&b+f>=l&&(m=l-f),h=j((0,i.A)((0,i.A)({},e),{},{slideIndex:b})),g=j((0,i.A)((0,i.A)({},e),{},{slideIndex:m})),o||(h===g&&(b=m),h=g),c&&(v=v.concat(S((0,i.A)((0,i.A)({},e),{},{currentSlide:b})))),p?(y={animating:!0,currentSlide:m,trackStyle:L((0,i.A)((0,i.A)({},e),{},{left:h})),lazyLoadedList:v,targetSlide:x},w={animating:!1,currentSlide:m,trackStyle:I((0,i.A)((0,i.A)({},e),{},{left:g})),swipeLeft:null,targetSlide:x}):y={currentSlide:m,trackStyle:I((0,i.A)((0,i.A)({},e),{},{left:g})),lazyLoadedList:v,targetSlide:x};return{state:y,nextState:w}}((0,i.A)((0,i.A)((0,i.A)({index:e},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!t})),f=d.state,p=d.nextState;if(f){a&&a(u,f.currentSlide);var m=f.lazyLoadedList.filter((function(e){return n.state.lazyLoadedList.indexOf(e)<0}));l&&m.length>0&&l(m),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),s&&s(u),delete n.animationEndCallback),n.setState(f,(function(){o&&n.asNavForIndex!==e&&(n.asNavForIndex=e,o.innerSlider.slideHandler(e)),p&&(n.animationEndCallback=setTimeout((function(){var e=p.animating,t=(0,v.A)(p,te);n.setState(t,(function(){n.callbackTimers.push(setTimeout((function(){return n.setState({animating:e})}),10)),s&&s(f.currentSlide),delete n.animationEndCallback}))}),c))}))}})),(0,f.A)(n,"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=function(e,t){var n,r,o,a,l=e.slidesToScroll,c=e.slidesToShow,s=e.slideCount,u=e.currentSlide,d=e.targetSlide,f=e.lazyLoad,p=e.infinite;if(n=s%l!=0?0:(s-u)%l,"previous"===t.message)a=u-(o=0===n?l:c-n),f&&!p&&(a=-1==(r=u-o)?s-1:r),p||(a=d-l);else if("next"===t.message)a=u+(o=0===n?l:n),f&&!p&&(a=(u+l)%s+n),p||(a=d+l);else if("dots"===t.message)a=t.index*t.slidesToScroll;else if("children"===t.message){if(a=t.index,p){var v=B((0,i.A)((0,i.A)({},e),{},{targetSlide:a}));a>t.currentSlide&&"left"===v?a-=s:a10)return{scrolling:!0};l&&(b.swipeLength=E);var M=(c?-1:1)*(b.curX>b.startX?1:-1);l&&(M=b.curY>b.startY?1:-1);var $=Math.ceil(m/h),R=O(t.touchObject,l),z=b.swipeLength;return g||(0===s&&("right"===R||"down"===R)||s+1>=$&&("left"===R||"up"===R)||!T(t)&&("left"===R||"up"===R))&&(z=b.swipeLength*u,!1===d&&f&&(f(R),C.edgeDragged=!0)),!p&&y&&(y(R),C.swiped=!0),x=o?k+z*(A/S)*M:c?k-z*M:k+z*M,l&&(x=k+z*M),C=(0,i.A)((0,i.A)({},C),{},{touchObject:b,swipeLeft:x,trackStyle:I((0,i.A)((0,i.A)({},t),{},{left:x}))}),Math.abs(b.curX-b.startX)<.8*Math.abs(b.curY-b.startY)||b.swipeLength>10&&(C.swiping=!0,w(e)),C}}(e,(0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));t&&(t.swiping&&(n.clickable=!1),n.setState(t))})),(0,f.A)(n,"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,a=t.listWidth,l=t.touchThreshold,c=t.verticalSwiping,s=t.listHeight,u=t.swipeToSlide,d=t.scrolling,f=t.onSwipe,p=t.targetSlide,v=t.currentSlide,m=t.infinite;if(!n)return r&&w(e),{};var h=c?s/l:a/l,g=O(o,c),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return b;if(!o.swipeLength)return b;if(o.swipeLength>h){var y,A;w(e),f&&f(g);var S=m?v:p;switch(g){case"left":case"up":A=S+P(t),y=u?z(t,A):A,b.currentDirection=0;break;case"right":case"down":A=S-P(t),y=u?z(t,A):A,b.currentDirection=1;break;default:y=S}b.triggerSlideHandler=y}else{var x=j(t);b.trackStyle=L((0,i.A)((0,i.A)({},t),{},{left:x}))}return b}(e,(0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if(t){var r=t.triggerSlideHandler;delete t.triggerSlideHandler,n.setState(t),void 0!==r&&(n.slideHandler(r),n.props.verticalSwiping&&n.enableBodyScroll())}})),(0,f.A)(n,"touchEnd",(function(e){n.swipeEnd(e),n.clickable=!0})),(0,f.A)(n,"slickPrev",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"previous"})}),0))})),(0,f.A)(n,"slickNext",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"next"})}),0))})),(0,f.A)(n,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"index",index:e,currentSlide:n.state.currentSlide},t)}),0))})),(0,f.A)(n,"play",(function(){var e;if(n.props.rtl)e=n.state.currentSlide-n.props.slidesToScroll;else{if(!T((0,i.A)((0,i.A)({},n.props),n.state)))return!1;e=n.state.currentSlide+n.props.slidesToScroll}n.slideHandler(e)})),(0,f.A)(n,"autoPlay",(function(e){n.autoplayTimer&&clearInterval(n.autoplayTimer);var t=n.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})})),(0,f.A)(n,"pause",(function(e){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var t=n.state.autoplaying;"paused"===e?n.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||n.setState({autoplaying:"focused"}):"playing"===t&&n.setState({autoplaying:"hovered"})})),(0,f.A)(n,"onDotsOver",(function(){return n.props.autoplay&&n.pause("hovered")})),(0,f.A)(n,"onDotsLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),(0,f.A)(n,"onTrackOver",(function(){return n.props.autoplay&&n.pause("hovered")})),(0,f.A)(n,"onTrackLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),(0,f.A)(n,"onSlideFocus",(function(){return n.props.autoplay&&n.pause("focused")})),(0,f.A)(n,"onSlideBlur",(function(){return n.props.autoplay&&"focused"===n.state.autoplaying&&n.autoPlay("blur")})),(0,f.A)(n,"render",(function(){var e,t,a,l=b()("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),c=(0,i.A)((0,i.A)({},n.props),n.state),s=R(c,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),u=n.props.pauseOnHover;if(s=(0,i.A)((0,i.A)({},s),{},{onMouseEnter:u?n.onTrackOver:null,onMouseLeave:u?n.onTrackLeave:null,onMouseOver:u?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null}),!0===n.props.dots&&n.state.slideCount>=n.props.slidesToShow){var d=R(c,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=n.props.pauseOnDotsHover;d=(0,i.A)((0,i.A)({},d),{},{clickHandler:n.changeSlide,onMouseEnter:f?n.onDotsLeave:null,onMouseOver:f?n.onDotsOver:null,onMouseLeave:f?n.onDotsLeave:null}),e=r.createElement(V,d)}var p=R(c,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=n.changeSlide,n.props.arrows&&(t=r.createElement(Z,p),a=r.createElement(J,p));var v=null;n.props.vertical&&(v={height:n.state.listHeight});var m=null;!1===n.props.vertical?!0===n.props.centerMode&&(m={padding:"0px "+n.props.centerPadding}):!0===n.props.centerMode&&(m={padding:n.props.centerPadding+" 0px"});var h=(0,i.A)((0,i.A)({},v),m),g=n.props.touchMove,y={className:"slick-list",style:h,onClick:n.clickHandler,onMouseDown:g?n.swipeStart:null,onMouseMove:n.state.dragging&&g?n.swipeMove:null,onMouseUp:g?n.swipeEnd:null,onMouseLeave:n.state.dragging&&g?n.swipeEnd:null,onTouchStart:g?n.swipeStart:null,onTouchMove:n.state.dragging&&g?n.swipeMove:null,onTouchEnd:g?n.touchEnd:null,onTouchCancel:n.state.dragging&&g?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},A={className:l,dir:"ltr",style:n.props.style};return n.props.unslick&&(y={className:"slick-list"},A={className:l,style:n.props.style}),r.createElement("div",A,n.props.unslick?"":t,r.createElement("div",(0,o.A)({ref:n.listRefHandler},y),r.createElement(U,(0,o.A)({ref:n.trackRefHandler},s),n.props.children)),n.props.unslick?"":a,n.props.unslick?"":e)})),n.list=null,n.track=null,n.state=(0,i.A)((0,i.A)({},m),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide?n.props.initialSlide:0,slideCount:r.Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var g=n.ssrInit();return n.state=(0,i.A)((0,i.A)({},n.state),g),n}return(0,d.A)(t,e),(0,l.A)(t,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,o=Object.keys(this.props);n1&&void 0!==arguments[1]&&arguments[1];return n.innerSlider.slickGoTo(e,t)})),(0,f.A)(n,"slickPause",(function(){return n.innerSlider.pause("paused")})),(0,f.A)(n,"slickPlay",(function(){return n.innerSlider.autoPlay("play")})),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return(0,d.A)(t,e),(0,l.A)(t,[{key:"media",value:function(e,t){var n=window.matchMedia(e),r=function(e){e.matches&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var o;o=0===r?oe()({minWidth:0,maxWidth:n}):oe()({minWidth:t[r-1]+1,maxWidth:n}),X()&&e.media(o,(function(){e.setState({breakpoint:n})}))}));var n=oe()({minWidth:t.slice(-1)[0]});X()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":(0,i.A)((0,i.A)((0,i.A)({},y),this.props),t[0].settings):(0,i.A)((0,i.A)({},y),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var a=r.Children.toArray(this.props.children);a=a.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var l=[],c=null,s=0;s=a.length));p+=1)f.push(r.cloneElement(a[p],{key:100*s+10*d+p,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));u.push(r.createElement("div",{key:10*s+d},f))}e.variableWidth?l.push(r.createElement("div",{key:s,style:{width:c}},u)):l.push(r.createElement("div",{key:s},u))}if("unslick"===e){var v="regular slider "+(this.props.className||"");return r.createElement("div",{className:v},a)}return l.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),r.createElement(ne,(0,o.A)({style:this.props.style,ref:this.innerSliderRefHandler},function(e){return K.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}(e)),l)}}])}(r.Component);var ae=n(2279),le=n(1466),ce=n(5905),se=n(665),ue=n(336);const de=e=>{const{componentCls:t,antCls:n,carouselArrowSize:r,carouselDotOffset:o,marginXXS:i}=e,a=e.calc(r).mul(-1.25).equal(),l=i;return{[t]:Object.assign(Object.assign({},(0,ce.dF)(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:r,height:r,marginTop:e.calc(r).mul(-1).div(2).equal(),padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:a,"&::before":{content:'"\u2190"'}},".slick-next":{insetInlineEnd:a,"&::before":{content:'"\u2192"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:o},"&-top":{top:o,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:l,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:e.dotHeight,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(l).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},fe=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:r}=e,o={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},o),{margin:`${(0,le.zA)(r)} 0`,verticalAlign:"baseline",button:o,"&.slick-active":Object.assign(Object.assign({},o),{button:o})})}}}},pe=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},ve=(0,se.OF)("Carousel",(e=>{const{controlHeightLG:t,controlHeightSM:n}=e,r=(0,ue.h1)(e,{carouselArrowSize:e.calc(t).div(2).equal(),carouselDotOffset:e.calc(n).div(2).equal()});return[de(r),fe(r),pe(r)]}),(()=>({dotWidth:16,dotHeight:3,dotWidthActive:24,dotActiveWidth:24})),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var me=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{dots:n=!0,arrows:o=!1,draggable:i=!1,waitForAnimate:a=!1,dotPosition:l="bottom",vertical:c="left"===l||"right"===l,rootClassName:s,className:u,style:d,id:f}=e,p=me(e,["dots","arrows","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:v,direction:m,carousel:h}=r.useContext(ae.QO),g=r.useRef(),y=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g.current.slickGoTo(e,t)};r.useImperativeHandle(t,(()=>({goTo:y,autoPlay:g.current.innerSlider.autoPlay,innerSlider:g.current.innerSlider,prev:g.current.slickPrev,next:g.current.slickNext})),[g.current]);const A=r.useRef(r.Children.count(e.children));r.useEffect((()=>{A.current!==r.Children.count(e.children)&&(y(e.initialSlide||0,!1),A.current=r.Children.count(e.children))}),[e.children]);const w=Object.assign({vertical:c,className:b()(u,null==h?void 0:h.className),style:Object.assign(Object.assign({},null==h?void 0:h.style),d)},p);"fade"===w.effect&&(w.fade=!0);const S=v("carousel",w.prefixCls),x="slick-dots",C=!!n,k=b()(x,`${x}-${l}`,"boolean"!=typeof n&&(null==n?void 0:n.className)),[E,M,$]=ve(S),O=b()(S,{[`${S}-rtl`]:"rtl"===m,[`${S}-vertical`]:w.vertical},M,$,s);return E(r.createElement("div",{className:O,id:f},r.createElement(ie,Object.assign({ref:g},w,{dots:C,dotsClass:k,arrows:o,draggable:i,verticalSwiping:c,waitForAnimate:a}))))}));const ge=he},2279:(e,t,n)=>{"use strict";n.d(t,{QO:()=>r});const r=n(6540).createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:"anticon"}),{Consumer:o}=r},934:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3511);const o=e=>{const[,,,,t]=(0,r.Ay)();return t?`${e}-css-var`:""}},4016:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(6540),o=n(6942),i=n.n(o),a=n(9853);function l(e){return["small","middle","large"].includes(e)}var c=n(2279),s=n(665),u=n(336);const d=["wrap","nowrap","wrap-reverse"],f=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],p=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];const v=function(e,t){return i()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n={};return d.forEach((r=>{n[`${e}-wrap-${r}`]=t.wrap===r})),n})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))},m=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},h=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},g=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},b=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},y=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},A=(0,s.OF)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=(0,u.h1)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[m(o),h(o),g(o),b(o),y(o)]}),(()=>({})),{resetStyle:!1});var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,rootClassName:o,className:s,style:u,flex:d,gap:f,children:p,vertical:m=!1,component:h="div"}=e,g=w(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:b,direction:y,getPrefixCls:S}=r.useContext(c.QO),x=S("flex",n),[C,k,E]=A(x),M=null!=m?m:null==b?void 0:b.vertical,$=i()(s,o,null==b?void 0:b.className,x,k,E,v(x,e),{[`${x}-rtl`]:"rtl"===y,[`${x}-gap-${f}`]:l(f),[`${x}-vertical`]:M}),O=Object.assign(Object.assign({},null==b?void 0:b.style),u);return d&&(O.flex=d),f&&!l(f)&&(O.gap=f),C(r.createElement(h,Object.assign({ref:t,className:$,style:O},(0,a.A)(g,["justify","wrap","align"])),p))}));const x=S},3343:(e,t,n)=>{"use strict";n.d(t,{A:()=>$t});var r=n(6540),o=n(8168);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var a=n(8046),l=function(e,t){return r.createElement(a.A,(0,o.A)({},e,{ref:t,icon:i}))};const c=r.forwardRef(l);var s=n(6942),u=n.n(s),d=n(9379),f=n(4467),p=n(6636),v=n(2284),m=n(45);function h(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}var g=n(2533),b=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],y=r.createContext(null),A=0;function w(e){var t=e.src,n=e.isCustomPlaceholder,o=e.fallback,i=(0,r.useState)(n?"loading":"normal"),a=(0,p.A)(i,2),l=a[0],c=a[1],s=(0,r.useRef)(!1),u="error"===l;(0,r.useEffect)((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&c("error")})),function(){e=!1}}),[t]),(0,r.useEffect)((function(){n&&!s.current?c("loading"):u&&c("normal")}),[t]);var d=function(){c("normal")};return[function(e){s.current=!1,"loading"===l&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(s.current=!0,d())},u&&o?{src:o}:{onLoad:d,src:t},l]}var S=n(5470),x=r.createContext({}),C=n(4808),k=n(6855),E=n(6928),M="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),$="aria-",O="data-";function T(e,t){return 0===e.indexOf(t)}function R(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,d.A)({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||T(n,$))||t.data&&T(n,O)||t.attr&&M.includes(n))&&(r[n]=e[n])})),r}function z(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function P(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var N=n(8542),I=n(8719);const L=r.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var j={width:0,height:0,overflow:"hidden",outline:"none"},_={outline:"none"},H=r.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,a=e.style,l=e.title,c=e.ariaId,s=e.footer,f=e.closable,p=e.closeIcon,m=e.onClose,h=e.children,g=e.bodyStyle,b=e.bodyProps,y=e.modalRender,A=e.onMouseDown,w=e.onMouseUp,S=e.holderRef,C=e.visible,k=e.forceRender,E=e.width,M=e.height,$=e.classNames,O=e.styles,T=r.useContext(x).panel,z=(0,I.xK)(S,T),P=(0,r.useRef)(),N=(0,r.useRef)(),H=(0,r.useRef)();r.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=H.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===N.current?P.current.focus():e||t!==P.current||N.current.focus()}}}));var D,B,W={};void 0!==E&&(W.width=E),void 0!==M&&(W.height=M),s&&(D=r.createElement("div",{className:u()("".concat(n,"-footer"),null==$?void 0:$.footer),style:(0,d.A)({},null==O?void 0:O.footer)},s)),l&&(B=r.createElement("div",{className:u()("".concat(n,"-header"),null==$?void 0:$.header),style:(0,d.A)({},null==O?void 0:O.header)},r.createElement("div",{className:"".concat(n,"-title"),id:c},l)));var F,X=(0,r.useMemo)((function(){return"object"===(0,v.A)(f)&&null!==f?f:f?{closeIcon:null!=p?p:r.createElement("span",{className:"".concat(n,"-close-x")})}:{}}),[f,p]),K=R(X,!0);f&&(F=r.createElement("button",(0,o.A)({type:"button",onClick:m,"aria-label":"Close"},K,{className:"".concat(n,"-close")}),X.closeIcon));var G=r.createElement("div",{className:u()("".concat(n,"-content"),null==$?void 0:$.content),style:null==O?void 0:O.content},F,B,r.createElement("div",(0,o.A)({className:u()("".concat(n,"-body"),null==$?void 0:$.body),style:(0,d.A)((0,d.A)({},g),null==O?void 0:O.body)},b),h),D);return r.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?c:null,"aria-modal":"true",ref:z,style:(0,d.A)((0,d.A)({},a),W),className:u()(n,i),onMouseDown:A,onMouseUp:w},r.createElement("div",{tabIndex:0,ref:P,style:j,"aria-hidden":"true"}),r.createElement("div",{ref:H,tabIndex:-1,style:_},r.createElement(L,{shouldUpdate:C||k},y?y(G):G)),r.createElement("div",{tabIndex:0,ref:N,style:j,"aria-hidden":"true"}))}));const D=H;var B=r.forwardRef((function(e,t){var n=e.prefixCls,i=e.title,a=e.style,l=e.className,c=e.visible,s=e.forceRender,f=e.destroyOnClose,v=e.motionName,m=e.ariaId,h=e.onVisibleChanged,g=e.mousePosition,b=(0,r.useRef)(),y=r.useState(),A=(0,p.A)(y,2),w=A[0],S=A[1],x={};function C(){var e,t,n,r,o,i=(e=b.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=P(o),n.top+=P(o,!0),n);S(g?"".concat(g.x-i.left,"px ").concat(g.y-i.top,"px"):"")}return w&&(x.transformOrigin=w),r.createElement(N.Ay,{visible:c,onVisibleChanged:h,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:v,removeOnLeave:f,ref:b},(function(c,s){var f=c.className,p=c.style;return r.createElement(D,(0,o.A)({},e,{ref:t,title:i,ariaId:m,prefixCls:n,holderRef:s,style:(0,d.A)((0,d.A)((0,d.A)({},p),a),x),className:u()(l,f)}))}))}));B.displayName="Content";const W=B;function F(e){var t=e.prefixCls,n=e.style,i=e.visible,a=e.maskProps,l=e.motionName,c=e.className;return r.createElement(N.Ay,{key:"mask",visible:i,motionName:l,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,i){var l=e.className,s=e.style;return r.createElement("div",(0,o.A)({ref:i,style:(0,d.A)((0,d.A)({},s),n),className:u()("".concat(t,"-mask"),l,c)},a))}))}var X=n(8210);function K(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,i=e.zIndex,a=e.visible,l=void 0!==a&&a,c=e.keyboard,s=void 0===c||c,f=e.focusTriggerAfterClose,v=void 0===f||f,m=e.wrapStyle,h=e.wrapClassName,g=e.wrapProps,b=e.onClose,y=e.afterOpenChange,A=e.afterClose,w=e.transitionName,S=e.animation,x=e.closable,M=void 0===x||x,$=e.mask,O=void 0===$||$,T=e.maskTransitionName,P=e.maskAnimation,N=e.maskClosable,I=void 0===N||N,L=e.maskStyle,j=e.maskProps,_=e.rootClassName,H=e.classNames,D=e.styles;var B=(0,r.useRef)(),X=(0,r.useRef)(),K=(0,r.useRef)(),G=r.useState(l),q=(0,p.A)(G,2),Y=q[0],U=q[1],V=(0,k.A)();function Q(e){null==b||b(e)}var Z=(0,r.useRef)(!1),J=(0,r.useRef)(),ee=null;return I&&(ee=function(e){Z.current?Z.current=!1:X.current===e.target&&Q(e)}),(0,r.useEffect)((function(){l&&(U(!0),(0,C.A)(X.current,document.activeElement)||(B.current=document.activeElement))}),[l]),(0,r.useEffect)((function(){return function(){clearTimeout(J.current)}}),[]),r.createElement("div",(0,o.A)({className:u()("".concat(n,"-root"),_)},R(e,{data:!0})),r.createElement(F,{prefixCls:n,visible:O&&l,motionName:z(n,T,P),style:(0,d.A)((0,d.A)({zIndex:i},L),null==D?void 0:D.mask),maskProps:j,className:null==H?void 0:H.mask}),r.createElement("div",(0,o.A)({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===E.A.ESC)return e.stopPropagation(),void Q(e);l&&e.keyCode===E.A.TAB&&K.current.changeActive(!e.shiftKey)},className:u()("".concat(n,"-wrap"),h,null==H?void 0:H.wrapper),ref:X,onClick:ee,style:(0,d.A)((0,d.A)((0,d.A)({zIndex:i},m),null==D?void 0:D.wrapper),{},{display:Y?null:"none"})},g),r.createElement(W,(0,o.A)({},e,{onMouseDown:function(){clearTimeout(J.current),Z.current=!0},onMouseUp:function(){J.current=setTimeout((function(){Z.current=!1}))},ref:K,closable:M,ariaId:V,prefixCls:n,visible:l&&Y,onClose:Q,onVisibleChanged:function(e){if(e)(0,C.A)(X.current,document.activeElement)||null===(t=K.current)||void 0===t||t.focus();else{if(U(!1),O&&B.current&&v){try{B.current.focus({preventScroll:!0})}catch(n){}B.current=null}Y&&(null==A||A())}var t;null==y||y(e)},motionName:z(n,w,S)}))))}var G=function(e){var t=e.visible,n=e.getContainer,i=e.forceRender,a=e.destroyOnClose,l=void 0!==a&&a,c=e.afterClose,s=e.panelRef,u=r.useState(t),d=(0,p.A)(u,2),f=d[0],v=d[1],m=r.useMemo((function(){return{panel:s}}),[s]);return r.useEffect((function(){t&&v(!0)}),[t]),i||!l||f?r.createElement(x.Provider,{value:m},r.createElement(S.A,{open:t||i||f,autoDestroy:!1,getContainer:n,autoLock:t||f},r.createElement(K,(0,o.A)({},e,{destroyOnClose:l,afterClose:function(){null==c||c(),v(!1)}})))):null};G.displayName="Dialog";const q=G;var Y=n(961);function U(e,t,n,r){var o=Y.unstable_batchedUpdates?function(e){Y.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var V=n(3210),Q=n(5371),Z={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function J(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return(0,f.A)({},e,i);if(t<0&&or)return(0,f.A)({},e,t<0?i:-i);return{}}function ee(e,t,n,r){var o=h(),i=o.width,a=o.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=(0,d.A)((0,d.A)({},J("x",n,e,i)),J("y",r,t,a))),l}function te(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function ne(e,t,n,o,i,a,l){var c=i.rotate,s=i.scale,u=i.x,f=i.y,v=(0,r.useState)(!1),m=(0,p.A)(v,2),h=m[0],g=m[1],b=(0,r.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),y=function(e){b.current=(0,d.A)((0,d.A)({},b.current),e)};return(0,r.useEffect)((function(){var e;return n&&t&&(e=U(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:h,onTouchStart:function(e){if(t){e.stopPropagation(),g(!0);var n=e.touches,r=void 0===n?[]:n;r.length>1?y({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):y({point1:{x:r[0].clientX-u,y:r[0].clientY-f},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=b.current,o=r.point1,i=r.point2,c=r.eventType;if(n.length>1&&"touchZoom"===c){var s={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,r){var o=te(e,n),i=te(t,r);if(0===o&&0===i)return[e.x,e.y];var a=o/(o+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(o,i,s,u),f=(0,p.A)(d,2),v=f[0],m=f[1],h=te(s,u)/te(o,i);l(h,"touchZoom",v,m,!0),y({point1:s,point2:u,eventType:"touchZoom"})}else"move"===c&&(a({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),y({eventType:"move"}))},onTouchEnd:function(){if(n){if(h&&g(!1),y({eventType:"none"}),o>s)return a({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*s,r=e.current.offsetHeight*s,i=e.current.getBoundingClientRect(),l=i.left,u=i.top,f=c%180!=0,p=ee(f?r:t,f?t:r,l,u);p&&a((0,d.A)({},p),"dragRebound")}}}}const re=function(e){var t=e.visible,n=e.maskTransitionName,o=e.getContainer,i=e.prefixCls,a=e.rootClassName,l=e.icons,c=e.countRender,s=e.showSwitch,p=e.showProgress,v=e.current,m=e.transform,h=e.count,g=e.scale,b=e.minScale,A=e.maxScale,w=e.closeIcon,x=e.onSwitchLeft,C=e.onSwitchRight,k=e.onClose,M=e.onZoomIn,$=e.onZoomOut,O=e.onRotateRight,T=e.onRotateLeft,R=e.onFlipX,z=e.onFlipY,P=e.toolbarRender,I=e.zIndex,L=(0,r.useContext)(y),j=l.rotateLeft,_=l.rotateRight,H=l.zoomIn,D=l.zoomOut,B=l.close,W=l.left,F=l.right,X=l.flipX,K=l.flipY,G="".concat(i,"-operations-operation");r.useEffect((function(){var e=function(e){e.keyCode===E.A.ESC&&k()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t]);var q=[{icon:K,onClick:z,type:"flipY"},{icon:X,onClick:R,type:"flipX"},{icon:j,onClick:T,type:"rotateLeft"},{icon:_,onClick:O,type:"rotateRight"},{icon:D,onClick:$,type:"zoomOut",disabled:g<=b},{icon:H,onClick:M,type:"zoomIn",disabled:g===A}].map((function(e){var t,n=e.icon,o=e.onClick,a=e.type,l=e.disabled;return r.createElement("div",{className:u()(G,(t={},(0,f.A)(t,"".concat(i,"-operations-operation-").concat(a),!0),(0,f.A)(t,"".concat(i,"-operations-operation-disabled"),!!l),t)),onClick:o,key:a},n)})),Y=r.createElement("div",{className:"".concat(i,"-operations")},q);return r.createElement(N.Ay,{visible:t,motionName:n},(function(e){var t=e.className,n=e.style;return r.createElement(S.A,{open:!0,getContainer:null!=o?o:document.body},r.createElement("div",{className:u()("".concat(i,"-operations-wrapper"),t,a),style:(0,d.A)((0,d.A)({},n),{},{zIndex:I})},null===w?null:r.createElement("button",{className:"".concat(i,"-close"),onClick:k},w||B),s&&r.createElement(r.Fragment,null,r.createElement("div",{className:u()("".concat(i,"-switch-left"),(0,f.A)({},"".concat(i,"-switch-left-disabled"),0===v)),onClick:x},W),r.createElement("div",{className:u()("".concat(i,"-switch-right"),(0,f.A)({},"".concat(i,"-switch-right-disabled"),v===h-1)),onClick:C},F)),r.createElement("div",{className:"".concat(i,"-footer")},p&&r.createElement("div",{className:"".concat(i,"-progress")},c?c(v+1,h):"".concat(v+1," / ").concat(h)),P?P(Y,(0,d.A)({icons:{flipYIcon:q[0],flipXIcon:q[1],rotateLeftIcon:q[2],rotateRightIcon:q[3],zoomOutIcon:q[4],zoomInIcon:q[5]},actions:{onFlipY:z,onFlipX:R,onRotateLeft:T,onRotateRight:O,onZoomOut:$,onZoomIn:M},transform:m},L?{current:v,total:h}:{})):Y)))}))};var oe=["fallback","src","imgRef"],ie=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],ae=function(e){var t=e.fallback,n=e.src,i=e.imgRef,a=(0,m.A)(e,oe),l=w({src:n,fallback:t}),c=(0,p.A)(l,2),s=c[0],u=c[1];return r.createElement("img",(0,o.A)({ref:function(e){i.current=e,s(e)}},a,u))};const le=function(e){var t=e.prefixCls,n=e.src,i=e.alt,a=e.fallback,l=e.movable,c=void 0===l||l,s=e.onClose,v=e.visible,g=e.icons,b=void 0===g?{}:g,A=e.rootClassName,w=e.closeIcon,S=e.getContainer,x=e.current,C=void 0===x?0:x,k=e.count,M=void 0===k?1:k,$=e.countRender,O=e.scaleStep,T=void 0===O?.5:O,R=e.minScale,z=void 0===R?1:R,P=e.maxScale,N=void 0===P?50:P,I=e.transitionName,L=void 0===I?"zoom":I,j=e.maskTransitionName,_=void 0===j?"fade":j,H=e.imageRender,D=e.imgCommonProps,B=e.toolbarRender,W=e.onTransform,F=e.onChange,K=(0,m.A)(e,ie),G=(0,r.useRef)(),Y=(0,r.useContext)(y),J=Y&&M>1,te=Y&&M>=1,oe=(0,r.useState)(!0),le=(0,p.A)(oe,2),ce=le[0],se=le[1],ue=function(e,t,n,o){var i=(0,r.useRef)(null),a=(0,r.useRef)([]),l=(0,r.useState)(Z),c=(0,p.A)(l,2),s=c[0],u=c[1],f=function(e,t){null===i.current&&(a.current=[],i.current=(0,Q.A)((function(){u((function(e){var n=e;return a.current.forEach((function(e){n=(0,d.A)((0,d.A)({},n),e)})),i.current=null,null==o||o({transform:n,action:t}),n}))}))),a.current.push((0,d.A)((0,d.A)({},s),e))};return{transform:s,resetTransform:function(e){u(Z),o&&!(0,V.A)(Z,s)&&o({transform:Z,action:e})},updateTransform:f,dispatchZoomChange:function(r,o,i,a,l){var c=e.current,u=c.width,d=c.height,p=c.offsetWidth,v=c.offsetHeight,m=c.offsetLeft,g=c.offsetTop,b=r,y=s.scale*r;y>n?(y=n,b=n/s.scale):y0&&(r=1/r),l(r,"wheel",e.clientX,e.clientY)}}}}(G,c,v,T,de,pe,ve),he=me.isMoving,ge=me.onMouseDown,be=me.onWheel,ye=ne(G,c,v,z,de,pe,ve),Ae=ye.isTouching,we=ye.onTouchStart,Se=ye.onTouchMove,xe=ye.onTouchEnd,Ce=de.rotate,ke=de.scale,Ee=u()((0,f.A)({},"".concat(t,"-moving"),he));(0,r.useEffect)((function(){ce||se(!0)}),[ce]);var Me=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),C>0&&(se(!1),fe("prev"),null==F||F(C-1,C))},$e=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),C1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[(0,Ze.b)(r,Je,et,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},nt=new Ue.Mo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),rt=new Ue.Mo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ot=new Ue.Mo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),it=new Ue.Mo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),at=new Ue.Mo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),lt=new Ue.Mo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ct={zoom:{inKeyframes:nt,outKeyframes:rt},"zoom-big":{inKeyframes:ot,outKeyframes:it},"zoom-big-fast":{inKeyframes:ot,outKeyframes:it},"zoom-left":{inKeyframes:new Ue.Mo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Ue.Mo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Ue.Mo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Ue.Mo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:at,outKeyframes:lt},"zoom-down":{inKeyframes:new Ue.Mo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Ue.Mo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},st=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=ct[t];return[(0,Ze.b)(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var ut=n(336),dt=n(665);function ft(e){return{position:e,inset:0}}const pt=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},ft("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},ft("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:tt(e)}]},vt=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,Ue.zA)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,Qe.dF)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,Ue.zA)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${(0,Ue.zA)(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},(0,Qe.K8)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,Ue.zA)(e.borderRadiusLG)} ${(0,Ue.zA)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},mt=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},ht=((0,dt.OF)("Modal",(e=>{const t=(e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,ut.h1)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})})(e);return[vt(t),mt(t),pt(t),st(t,"zoom")]}),(e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,Ue.zA)(e.paddingMD)} ${(0,Ue.zA)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,Ue.zA)(e.padding)} ${(0,Ue.zA)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,Ue.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,Ue.zA)(e.paddingXS)} ${(0,Ue.zA)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,Ue.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,Ue.zA)(e.borderRadiusLG)} ${(0,Ue.zA)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,Ue.zA)(2*e.padding)} ${(0,Ue.zA)(2*e.padding)} ${(0,Ue.zA)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM})),{unitless:{titleLineHeight:!0}}),e=>({position:e||"absolute",inset:0})),gt=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Ve.q("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Qe.L9),{padding:`0 ${(0,Ue.zA)(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},bt=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:d}=e,f=new Ve.q(n).setAlpha(.1),p=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,Ue.zA)(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},yt=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,l=new Ve.q(t).setAlpha(.1),c=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},At=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},ht()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},ht()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[bt(e),yt(e)]}]},wt=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},gt(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},ht())}}},St=e=>{const{previewCls:t}=e;return{[`${t}-root`]:st(e,"zoom"),"&":tt(e,!0)}},xt=(0,dt.OF)("Image",(e=>{const t=`${e.componentCls}-preview`,n=(0,ut.h1)(e,{previewCls:t,modalMaskBg:new Ve.q("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[wt(n),At(n),pt((0,ut.h1)(n,{componentCls:t})),St(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Ve.q(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Ve.q(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Ve.q(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})));var Ct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,preview:o,className:i,rootClassName:a,style:l}=e,s=Et(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:d,locale:f=Te,getPopupContainer:p,image:v}=r.useContext(xe.QO),m=d("image",n),h=d(),g=f.Image||Te.Image,b=(0,Ce.A)(m),[y,A,w]=xt(m,b),S=u()(a,A,w,b),x=u()(i,A,null==v?void 0:v.className),[C]=we("ImagePreview","object"==typeof o?o.zIndex:void 0),k=r.useMemo((()=>{var e;if(!1===o)return o;const t="object"==typeof o?o:{},{getContainer:n,closeIcon:i}=t,a=Et(t,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:r.createElement("div",{className:`${m}-mask-info`},r.createElement(c,null),null==g?void 0:g.preview),icons:kt},a),{getContainer:null!=n?n:p,transitionName:(0,Se.b)(h,"zoom",t.transitionName),maskTransitionName:(0,Se.b)(h,"fade",t.maskTransitionName),zIndex:C,closeIcon:null!=i?i:null===(e=null==v?void 0:v.preview)||void 0===e?void 0:e.closeIcon})}),[o,g,null===(t=null==v?void 0:v.preview)||void 0===t?void 0:t.closeIcon]),E=Object.assign(Object.assign({},null==v?void 0:v.style),l);return y(r.createElement(me,Object.assign({prefixCls:m,preview:k,rootClassName:S,className:x,style:E},s)))};Mt.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,o=Ct(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=r.useContext(xe.QO),a=i("image",t),l=`${a}-preview`,c=i(),s=(0,Ce.A)(a),[d,f,p]=xt(a,s),[v]=we("ImagePreview","object"==typeof n?n.zIndex:void 0),m=r.useMemo((()=>{var e;if(!1===n)return n;const t="object"==typeof n?n:{},r=u()(f,p,s,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:(0,Se.b)(c,"zoom",t.transitionName),maskTransitionName:(0,Se.b)(c,"fade",t.maskTransitionName),rootClassName:r,zIndex:v})}),[n]);return d(r.createElement(me.PreviewGroup,Object.assign({preview:m,previewPrefixCls:l,icons:kt},o)))};const $t=Mt},5905:(e,t,n)=>{"use strict";n.d(t,{K8:()=>d,L9:()=>o,Nk:()=>a,av:()=>c,dF:()=>i,t6:()=>l,vj:()=>s});var r=n(1466);const o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},a=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),l=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),c=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),s=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},u=e=>({outline:`${(0,r.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),d=e=>({"&:focus-visible":Object.assign({},u(e))})},4980:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});const r=e=>({animationDuration:e,animationFillMode:"both"}),o=e=>({animationDuration:e,animationFillMode:"both"}),i=function(e,t,n,i){const a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${a}${e}-enter,\n ${a}${e}-appear\n `]:Object.assign(Object.assign({},r(i)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},o(i)),{animationPlayState:"paused"}),[`\n ${a}${e}-enter${e}-enter-active,\n ${a}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},3511:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>O,Xe:()=>E,Is:()=>k});var r=n(6540),o=n(1466);const i="5.16.4";var a=n(2200);const l={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},c=Object.assign(Object.assign({},l),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});var s=n(4978);const u=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};const d=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const f=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>{return{size:e,lineHeight:(t=e,(t+8)/t)};var t}))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const p=(e,t)=>new s.q(e).setAlpha(t).toRgbString(),v=(e,t)=>new s.q(e).darken(t).toHexString(),m=e=>{const t=(0,a.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},h=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:p(r,.88),colorTextSecondary:p(r,.65),colorTextTertiary:p(r,.45),colorTextQuaternary:p(r,.25),colorFill:p(r,.15),colorFillSecondary:p(r,.06),colorFillTertiary:p(r,.04),colorFillQuaternary:p(r,.02),colorBgLayout:v(n,4),colorBgContainer:v(n,0),colorBgElevated:v(n,0),colorBgSpotlight:p(r,.85),colorBgBlur:"transparent",colorBorder:v(n,15),colorBorderSecondary:v(n,6)}};const g=(0,o.an)((function(e){const t=Object.keys(l).map((t=>{const n=(0,a.cM)(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),p=n(o),v=n(i),m=n(a),h=n(l),g=r(u,d),b=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new s.q("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:m,generateNeutralColorPalettes:h})),f(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),d(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},u(r))}(e))})),b={token:c,override:{override:c},hashed:!0},y=r.createContext(b);function A(e){return e>=0&&e<=255}const w=function(e,t){const{r:n,g:r,b:o,a:i}=new s.q(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new s.q(t).toRgb();for(let u=.01;u<=1;u+=.01){const e=Math.round((n-a*(1-u))/u),t=Math.round((r-l*(1-u))/u),i=Math.round((o-c*(1-u))/u);if(A(e)&&A(t)&&A(i))return new s.q({r:e,g:t,b:i,a:Math.round(100*u)/100}).toRgbString()}return new s.q({r:n,g:r,b:o,a:1}).toRgbString()};var S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:w(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:w(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:w(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:w(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new s.q("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new s.q("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new s.q("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=C(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=x(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=C(n,["theme"]);let i=o;r&&(i=$(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function O(){const{token:e,hashed:t,theme:n,override:a,cssVar:l}=r.useContext(y),s=`${i}-${t||""}`,u=n||g,[d,f,p]=(0,o.hV)(u,[c,e],{salt:s,override:a,getComputedToken:$,formatToken:x,cssVar:l&&{prefix:l.prefix,key:l.key,unitless:k,ignore:E,preserve:M}});return[u,p,t?f:"",d,l]}},665:(e,t,n)=>{"use strict";n.d(t,{OF:()=>M});var r=n(6540),o=n(1466);n(6956),n(2533),n(8719);"undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;n(8210);var i=n(2279),a=n(5905),l=n(3511),c=n(3029),s=n(2901),u=n(3954),d=n(2176),f=n(6822);function p(e,t,n){return t=(0,u.A)(t),(0,f.A)(e,(0,d.A)()?Reflect.construct(t,n||[],(0,u.A)(e).constructor):t.apply(e,n))}var v=n(5501);const m=(0,s.A)((function e(){(0,c.A)(this,e)})),h="CALC_UNIT",g=new RegExp(h,"g");function b(e){return"number"==typeof e?`${e}${h}`:e}let y=function(e){function t(e){var n;return(0,c.A)(this,t),(n=p(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=b(e):"string"==typeof e&&(n.result=e),n}return(0,v.A)(t,e),(0,s.A)(t,[{key:"add",value:function(e){return e instanceof t?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${b(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${b(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{};return this.result=this.result.replace(g,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(m),A=function(e){function t(e){var n;return(0,c.A)(this,t),(n=p(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,v.A)(t,e),(0,s.A)(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}])}(m);const w=e=>{const t="css"===e?y:A;return e=>new t(e)};var S=n(336);const x=(e,t)=>{const[n,r]=(0,l.Ay)();return(0,o.IV)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,a.Nk)()),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},C=(e,t,n)=>{var r;return"function"==typeof n?n((0,S.h1)(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},k=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==o?void 0:o[t])||(null==o?void 0:o[n]))&&(null!==(r=o[n])&&void 0!==r||(o[n]=null==o?void 0:o[t]))}))}const i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i};function E(e,t,n){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const s=Array.isArray(e)?e:[e,e],[u]=s,d=s.join("-");return function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[f,p,v,m,h]=(0,l.Ay)(),{getPrefixCls:g,iconPrefixCls:b,csp:y}=(0,r.useContext)(i.QO),A=g(),E=h?"css":"js",M=w(E),{max:$,min:O}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n(0,o.zA)(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n(0,o.zA)(e))).join(",")})`}}}(E),T={theme:f,token:m,hashId:v,nonce:()=>null==y?void 0:y.nonce,clientOnly:c.clientOnly,order:c.order||-999};(0,o.IV)(Object.assign(Object.assign({},T),{clientOnly:!1,path:["Shared",A]}),(()=>[{"&":(0,a.av)(m)}])),x(b,y);const R=(0,o.IV)(Object.assign(Object.assign({},T),{path:[d,e,b]}),(()=>{if(!1===c.injectStyle)return[];const{token:r,flush:i}=(0,S.Ay)(m),l=C(u,p,n),d=`.${e}`,f=k(u,p,l,{deprecatedTokens:c.deprecatedTokens});h&&Object.keys(l).forEach((e=>{l[e]=`var(${(0,o.Ki)(e,((e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`)(u,h.prefix))})`}));const g=(0,S.h1)(r,{componentCls:d,prefixCls:e,iconCls:`.${b}`,antCls:`.${A}`,calc:M,max:$,min:O},h?l:f),y=t(g,{hashId:v,prefixCls:e,rootPrefixCls:A,iconPrefixCls:b});return i(u,f),[!1===c.resetStyle?null:(0,a.vj)(g,e,s,c.resetFont),y]}));return[R,v]}}const M=(e,t,n,i)=>{const a=E(e,t,n,i),c=((e,t,n)=>{function i(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:a={},injectStyle:c=!0}=null!=n?n:{},s={[i("zIndexPopup")]:!0};Object.keys(a).forEach((e=>{s[i(e)]=a[e]}));const u=r=>{let{rootCls:a,cssVar:c}=r;const[,u]=(0,l.Ay)();return(0,o.RC)({path:[e],prefix:c.prefix,key:null==c?void 0:c.key,unitless:Object.assign(Object.assign({},l.Is),s),ignore:l.Xe,token:u,scope:a},(()=>{const r=C(e,u,t),o=k(e,u,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((e=>{o[i(e)]=o[e],delete o[e]})),o})),null};return t=>{const[,,,,n]=(0,l.Ay)();return[o=>c&&n?r.createElement(r.Fragment,null,r.createElement(u,{rootCls:t,cssVar:n,component:e}),o):o,null==n?void 0:n.key]}})(Array.isArray(e)?e[0]:e,n,i);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=a(e,t),[r,o]=c(t);return[r,n,o]}}},336:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,h1:()=>i});const r="undefined"!=typeof CSSINJS_STATISTIC;let o=!0;function i(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),o=!0,i}const a={};function l(){}const c=e=>{let t,n=e,i=l;return r&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),i=(e,n)=>{var r;a[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=a[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:i}}},1441:(e,t,n)=>{var r=n(8028),o=function(e){var t="",n=Object.keys(e);return n.forEach((function(o,i){var a=e[o];(function(e){return/[height|width]$/.test(e)})(o=r(o))&&"number"==typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",i{"use strict";n.d(t,{Ay:()=>pe});var r=n(4467),o=n(9379),i=n(6636),a=n(2284),l=n(6942),c=n.n(l),s=n(6588),u=n(8719),d=n(6540),f=d.createContext({});var p=n(3029),v=n(2901),m=n(5501),h=n(9426);const g=function(e){(0,m.A)(n,e);var t=(0,h.A)(n);function n(){return(0,p.A)(this,n),t.apply(this,arguments)}return(0,v.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);var b=n(1233),y="none",A="appear",w="enter",S="leave",x="none",C="prepare",k="start",E="active",M="end",$="prepared",O=n(998);function T(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var R,z,P,N=(R=(0,O.A)(),z="undefined"!=typeof window?window:{},P={animationend:T("Animation","AnimationEnd"),transitionend:T("Transition","TransitionEnd")},R&&("AnimationEvent"in z||delete P.animationend.animation,"TransitionEvent"in z||delete P.transitionend.transition),P),I={};if((0,O.A)()){var L=document.createElement("div");I=L.style}var j={};function _(e){if(j[e])return j[e];var t=N[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,q.A)((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),s=(0,i.A)(c,2),u=s[0],f=s[1];var p=t?U:Y;return G((function(){if(a!==x&&a!==M){var e=p.indexOf(a),t=p[e+1],r=n(a);r===V?l(t,!0):t&&u((function(e){function n(){e.isCanceled()||l(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,a]),d.useEffect((function(){return function(){f()}}),[]),[function(){l(C,!0)},a]};const ee=function(e){var t=e;"object"===(0,a.A)(e)&&(t=e.transitionSupport);var n=d.forwardRef((function(e,n){var a=e.visible,l=void 0===a||a,p=e.removeOnLeave,v=void 0===p||p,m=e.forceRender,h=e.children,x=e.motionName,M=e.leavedClassName,O=e.eventProps,T=function(e,n){return!(!e.motionName||!t||!1===n)}(e,d.useContext(f).motion),R=(0,d.useRef)(),z=(0,d.useRef)();var P=function(e,t,n,a){var l=a.motionEnter,c=void 0===l||l,s=a.motionAppear,u=void 0===s||s,f=a.motionLeave,p=void 0===f||f,v=a.motionDeadline,m=a.motionLeaveImmediately,h=a.onAppearPrepare,g=a.onEnterPrepare,x=a.onLeavePrepare,M=a.onAppearStart,O=a.onEnterStart,T=a.onLeaveStart,R=a.onAppearActive,z=a.onEnterActive,P=a.onLeaveActive,N=a.onAppearEnd,I=a.onEnterEnd,L=a.onLeaveEnd,j=a.onVisibleChanged,_=(0,b.A)(),H=(0,i.A)(_,2),D=H[0],B=H[1],W=(0,b.A)(y),F=(0,i.A)(W,2),X=F[0],q=F[1],Y=(0,b.A)(null),U=(0,i.A)(Y,2),ee=U[0],te=U[1],ne=(0,d.useRef)(!1),re=(0,d.useRef)(null);function oe(){return n()}var ie=(0,d.useRef)(!1);function ae(){q(y,!0),te(null,!0)}function le(e){var t=oe();if(!e||e.deadline||e.target===t){var n,r=ie.current;X===A&&r?n=null==N?void 0:N(t,e):X===w&&r?n=null==I?void 0:I(t,e):X===S&&r&&(n=null==L?void 0:L(t,e)),X!==y&&r&&!1!==n&&ae()}}var ce=K(le),se=(0,i.A)(ce,1)[0],ue=function(e){var t,n,o;switch(e){case A:return t={},(0,r.A)(t,C,h),(0,r.A)(t,k,M),(0,r.A)(t,E,R),t;case w:return n={},(0,r.A)(n,C,g),(0,r.A)(n,k,O),(0,r.A)(n,E,z),n;case S:return o={},(0,r.A)(o,C,x),(0,r.A)(o,k,T),(0,r.A)(o,E,P),o;default:return{}}},de=d.useMemo((function(){return ue(X)}),[X]),fe=J(X,!e,(function(e){if(e===C){var t=de[C];return t?t(oe()):V}var n;return me in de&&te((null===(n=de[me])||void 0===n?void 0:n.call(de,oe(),null))||null),me===E&&(se(oe()),v>0&&(clearTimeout(re.current),re.current=setTimeout((function(){le({deadline:!0})}),v))),me===$&&ae(),Q})),pe=(0,i.A)(fe,2),ve=pe[0],me=pe[1],he=Z(me);ie.current=he,G((function(){B(t);var n,r=ne.current;ne.current=!0,!r&&t&&u&&(n=A),r&&t&&c&&(n=w),(r&&!t&&p||!r&&m&&!t&&p)&&(n=S);var o=ue(n);n&&(e||o[C])?(q(n),ve()):q(y)}),[t]),(0,d.useEffect)((function(){(X===A&&!u||X===w&&!c||X===S&&!p)&&q(y)}),[u,c,p]),(0,d.useEffect)((function(){return function(){ne.current=!1,clearTimeout(re.current)}}),[]);var ge=d.useRef(!1);(0,d.useEffect)((function(){D&&(ge.current=!0),void 0!==D&&X===y&&((ge.current||D)&&(null==j||j(D)),ge.current=!0)}),[D,X]);var be=ee;return de[C]&&me===k&&(be=(0,o.A)({transition:"none"},be)),[X,me,be,null!=D?D:t]}(T,l,(function(){try{return R.current instanceof HTMLElement?R.current:(0,s.A)(z.current)}catch(e){return null}}),e),N=(0,i.A)(P,4),I=N[0],L=N[1],j=N[2],_=N[3],H=d.useRef(_);_&&(H.current=!0);var D,B=d.useCallback((function(e){R.current=e,(0,u.Xf)(n,e)}),[n]),W=(0,o.A)((0,o.A)({},O),{},{visible:l});if(h)if(I===y)D=_?h((0,o.A)({},W),B):!v&&H.current&&M?h((0,o.A)((0,o.A)({},W),{},{className:M}),B):m||!v&&!M?h((0,o.A)((0,o.A)({},W),{},{style:{display:"none"}}),B):null;else{var F,q;L===C?q="prepare":Z(L)?q="active":L===k&&(q="start");var Y=X(x,"".concat(I,"-").concat(q));D=h((0,o.A)((0,o.A)({},W),{},{className:c()(X(x,I),(F={},(0,r.A)(F,Y,Y&&q),(0,r.A)(F,x,"string"==typeof x),F)),style:j}),B)}else D=null;d.isValidElement(D)&&(0,u.f3)(D)&&(D.ref||(D=d.cloneElement(D,{ref:B})));return d.createElement(g,{ref:z},D)}));return n.displayName="CSSMotion",n}(B);var te=n(8168),ne=n(45),re=n(9417),oe="add",ie="keep",ae="remove",le="removed";function ce(e){var t;return t=e&&"object"===(0,a.A)(e)&&"key"in e?e:{key:e},(0,o.A)((0,o.A)({},t),{},{key:String(t.key)})}function se(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ce)}var ue=["component","children","onVisibleChanged","onAllRemoved"],de=["status"],fe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee,n=function(e){(0,m.A)(i,e);var n=(0,h.A)(i);function i(){var e;(0,p.A)(this,i);for(var t=arguments.length,a=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,a=se(e),l=se(t);a.forEach((function(e){for(var t=!1,a=r;a1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ae}))).forEach((function(t){t.key===e&&(t.status=ie)}))})),n}(r,i);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==le||e.status!==ae}))}}}]),i}(d.Component);(0,r.A)(n,"defaultProps",{component:"div"})}(B);const pe=ee},998:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},4808:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},5089:(e,t,n)=>{"use strict";n.d(t,{BD:()=>h,m6:()=>m});var r=n(9379),o=n(998),i=n(4808),a="data-rc-order",l="data-rc-priority",c="rc-util-key",s=new Map;function u(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):c}function d(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function f(e){return Array.from((s.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.A)())return null;var n=t.csp,r=t.prepend,i=t.priority,c=void 0===i?0:i,s=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),u="prependQueue"===s,p=document.createElement("style");p.setAttribute(a,s),u&&c&&p.setAttribute(l,"".concat(c)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var v=d(t),m=v.firstChild;if(r){if(u){var h=(t.styles||f(v)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(a)))return!1;var t=Number(e.getAttribute(l)||0);return c>=t}));if(h.length)return v.insertBefore(p,h[h.length-1].nextSibling),p}v.insertBefore(p,m)}else v.appendChild(p);return p}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d(t);return(t.styles||f(n)).find((function(n){return n.getAttribute(u(t))===e}))}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=v(e,t);n&&d(t).removeChild(n)}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=d(n),a=f(o),l=(0,r.A)((0,r.A)({},n),{},{styles:a});!function(e,t){var n=s.get(e);if(!n||!(0,i.A)(document,n)){var r=p("",t),o=r.parentNode;s.set(e,o),e.removeChild(r)}}(o,l);var c=v(t,l);if(c){var m,h,g;if(null!==(m=l.csp)&&void 0!==m&&m.nonce&&c.nonce!==(null===(h=l.csp)||void 0===h?void 0:h.nonce))c.nonce=null===(g=l.csp)||void 0===g?void 0:g.nonce;return c.innerHTML!==e&&(c.innerHTML=e),c}var b=p(e,l);return b.setAttribute(u(l),t),b}},6588:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,f:()=>i});var r=n(6540),o=n(961);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function a(e){return i(e)?e:e instanceof r.Component?o.findDOMNode(e):null}},2633:(e,t,n)=>{"use strict";function r(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return function(e){return r(e)instanceof ShadowRoot}(e)?r(e):null}n.d(t,{j:()=>o})},6928:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const o=r},6956:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o{"use strict";var r;n.d(t,{A:()=>s});var o=n(6636),i=n(9379),a=n(6540);var l=0;var c=(0,i.A)({},r||(r=n.t(a,2))).useId;const s=c?function(e){var t=c();return e||t}:function(e){var t=a.useState("ssr-id"),n=(0,o.A)(t,2),r=n[0],i=n[1];return a.useEffect((function(){var e=l;l+=1,i("rc_unique_".concat(e))}),[]),e||r}},981:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,o:()=>a});var r=n(6540),o=(0,n(998).A)()?r.useLayoutEffect:r.useEffect,i=function(e,t){var n=r.useRef(!0);o((function(){return e(n.current)}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])},a=function(e,t){i((function(t){if(!t)return e()}),t)};const l=i},8104:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},2533:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(6636),o=n(6956),i=n(981),a=n(1233);function l(e){return void 0!==e}function c(e,t){var n=t||{},c=n.defaultValue,s=n.value,u=n.onChange,d=n.postState,f=(0,a.A)((function(){return l(s)?s:l(c)?"function"==typeof c?c():c:"function"==typeof e?e():e})),p=(0,r.A)(f,2),v=p[0],m=p[1],h=void 0!==s?s:v,g=d?d(h):h,b=(0,o.A)(u),y=(0,a.A)([h]),A=(0,r.A)(y,2),w=A[0],S=A[1];return(0,i.o)((function(){var e=w[0];v!==e&&b(v,e)}),[w]),(0,i.o)((function(){l(s)||m(s)}),[s]),[g,(0,o.A)((function(e,t){m(e,t),S([h],t)}))]}},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6636),o=n(6540);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.A)(n,2),a=i[0],l=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||l(e)}]}},3210:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2284),o=n(8210);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=i.has(t);if((0,o.Ay)(!c,"Warning: There may be circular references"),c)return!1;if(t===a)return!0;if(n&&l>1)return!1;i.add(t);var s=l+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u{"use strict";n.d(t,{A:()=>o});var r=n(9379);function o(e,t){var n=(0,r.A)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},5371:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function l(e){a.delete(e)}var c=function(e){var t=i+=1;return function n(o){if(0===o)l(t),e();else{var i=r((function(){n(o-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};c.cancel=function(e){var t=a.get(e);return l(e),o(t)};const s=c},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>l,Xf:()=>a,f3:()=>s,xK:()=>c});var r=n(2284),o=(n(6540),n(6351)),i=n(8104);function a(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)}function l(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{$e:()=>i,Ay:()=>s});var r={},o=[];function i(e,t){}function a(e,t){}function l(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function c(e,t){l(i,e,t)}c.preMessage=function(e){o.push(e)},c.resetWarned=function(){r={}},c.noteOnce=function(e,t){l(a,e,t)};const s=c},7787:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case s:case d:case m:case v:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isFragment=function(e){return g(e)===i},t.isMemo=function(e){return g(e)===v}},6351:(e,t,n)=>{"use strict";e.exports=n(7787)},3591:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new r,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new w(t,n,this);S.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}}));const C=void 0!==i.ResizeObserver?i.ResizeObserver:x},8028:e=>{e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},3029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},2901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(8406);function o(e,t){for(var n=0;n{"use strict";n.d(t,{A:()=>a});var r=n(3954),o=n(2176),i=n(6822);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},4467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8406);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},3954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},5501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},2176:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},9379:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(4467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t{"use strict";n.d(t,{A:()=>o});var r=n(8587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o{"use strict";n.d(t,{A:()=>i});var r=n(2284),o=n(9417);function i(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},6636:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7800);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||(0,r.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},4241:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5526);var o=n(7800);function i(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},8406:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2284);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},2284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},7800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(5526);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},8453:(e,t,n)=>{"use strict";n.d(t,{R:()=>a,x:()=>l});var r=n(6540);const o={},i=r.createContext(o);function a(e){const t=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),r.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6256.71aff5ef.js.LICENSE.txt b/assets/js/6256.73278753.js.LICENSE.txt similarity index 100% rename from assets/js/6256.71aff5ef.js.LICENSE.txt rename to assets/js/6256.73278753.js.LICENSE.txt diff --git a/assets/js/632d0ef1.0eedb755.js b/assets/js/632d0ef1.0eedb755.js new file mode 100644 index 000000000..2f0c77a09 --- /dev/null +++ b/assets/js/632d0ef1.0eedb755.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[106],{7186:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>l,frontMatter:()=>s,metadata:()=>o,toc:()=>a});const o=JSON.parse('{"id":"encoders/VTM","title":"VTM","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/encoders/VTM.mdx","sourceDirName":"encoders","slug":"/encoders/VTM","permalink":"/docs/encoders/VTM","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/VTM.mdx","tags":[],"version":"current","sidebarPosition":14,"frontMatter":{"title":"VTM","sidebar_position":14},"sidebar":"tutorialSidebar","previous":{"title":"uvg266","permalink":"/docs/encoders/uvg266"},"next":{"title":"AVM","permalink":"/docs/encoders/AVM"}}');var i=t(4848),r=t(8453);const s={title:"VTM",sidebar_position:14},c="VTM",d={},a=[];function u(e){const n={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"vtm",children:"VTM"})}),"\n",(0,i.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,i.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,i.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,i.jsxs)(n.p,{children:["VTM is the original ",(0,i.jsx)(n.a,{href:"/docs/video/VVC",children:"H.266"})," (better known as VVC) reference encoder, in competition with alternatives like ",(0,i.jsx)(n.a,{href:"/docs/encoders/VVenC",children:"VVenC"}),". In the modern day, it joins other MPEG reference encoders such as ",(0,i.jsx)(n.a,{href:"/docs/encoders/HM",children:"HM"})," & ",(0,i.jsx)(n.a,{href:"/docs/encoders/JM",children:"JM"})," in their reputations for being highly niche offerings that are used rarely due to their usage complexity & speed disadvantages; however, VTM may be more useful due to the current difficulty facing VVC encoding regardless of the encoding implementation one chooses to use. x264 is more efficient than JM."]})]})}function l(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>c});var o=t(6540);const i={},r=o.createContext(i);function s(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/632d0ef1.ef33279f.js b/assets/js/632d0ef1.ef33279f.js deleted file mode 100644 index e2b6a6849..000000000 --- a/assets/js/632d0ef1.ef33279f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[106],{1598:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>s,default:()=>l,frontMatter:()=>r,metadata:()=>c,toc:()=>a});var o=t(4848),i=t(8453);const r={title:"VTM",sidebar_position:14},s="VTM",c={id:"encoders/VTM",title:"VTM",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/encoders/VTM.mdx",sourceDirName:"encoders",slug:"/encoders/VTM",permalink:"/docs/encoders/VTM",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/VTM.mdx",tags:[],version:"current",sidebarPosition:14,frontMatter:{title:"VTM",sidebar_position:14},sidebar:"tutorialSidebar",previous:{title:"uvg266",permalink:"/docs/encoders/uvg266"},next:{title:"AVM",permalink:"/docs/encoders/AVM"}},d={},a=[];function u(e){const n={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,i.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"vtm",children:"VTM"})}),"\n",(0,o.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsxs)(n.p,{children:["VTM is the original ",(0,o.jsx)(n.a,{href:"/docs/video/VVC",children:"H.266"})," (better known as VVC) reference encoder, in competition with alternatives like ",(0,o.jsx)(n.a,{href:"/docs/encoders/VVenC",children:"VVenC"}),". In the modern day, it joins other MPEG reference encoders such as ",(0,o.jsx)(n.a,{href:"/docs/encoders/HM",children:"HM"})," & ",(0,o.jsx)(n.a,{href:"/docs/encoders/JM",children:"JM"})," in their reputations for being highly niche offerings that are used rarely due to their usage complexity & speed disadvantages; however, VTM may be more useful due to the current difficulty facing VVC encoding regardless of the encoding implementation one chooses to use. x264 is more efficient than JM."]})]})}function l(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(u,{...e})}):u(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>c});var o=t(6540);const i={},r=o.createContext(i);function s(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6549b2b5.a78520af.js b/assets/js/6549b2b5.a78520af.js deleted file mode 100644 index 460e3f655..000000000 --- a/assets/js/6549b2b5.a78520af.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4846],{2417:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>l,contentTitle:()=>a,default:()=>d,frontMatter:()=>n,metadata:()=>r,toc:()=>c});var s=t(4848),o=t(8453);const n={title:"Reducing Image Load Online",description:"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.",slug:"site-optimization",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4"}],tags:["image","web","compression"],image:"/img/_DSC8466-smaller.jpg",hide_table_of_contents:!1},a=void 0,r={permalink:"/blog/site-optimization",source:"@site/blog/2023-07-21-site-optimization.mdx",title:"Reducing Image Load Online",description:"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.",date:"2023-07-21T00:00:00.000Z",tags:[{inline:!0,label:"image",permalink:"/blog/tags/image"},{inline:!0,label:"web",permalink:"/blog/tags/web"},{inline:!0,label:"compression",permalink:"/blog/tags/compression"}],readingTime:9.25,hasTruncateMarker:!0,authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4",imageURL:"https://avatars.githubusercontent.com/u/35711760?v=4",key:null,page:null}],frontMatter:{title:"Reducing Image Load Online",description:"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.",slug:"site-optimization",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4",imageURL:"https://avatars.githubusercontent.com/u/35711760?v=4"}],tags:["image","web","compression"],image:"/img/_DSC8466-smaller.jpg",hide_table_of_contents:!1},unlisted:!1,prevItem:{title:"AV1 Encoding for Dummies",permalink:"/blog/av1-encoding-for-dummies"}},l={authorsImageUrls:[void 0]},c=[{value:"Fire & Forget",id:"fire--forget",level:2},{value:"Massive Improvement",id:"massive-improvement",level:2},{value:"Lazy Loading",id:"lazy-loading",level:3},{value:"New Codecs",id:"new-codecs",level:2},{value:"Fallbacks",id:"fallbacks",level:3},{value:"Compression Efficacy",id:"compression-efficacy",level:3},{value:"Responsive Images",id:"responsive-images",level:2}];function h(e){const i={a:"a",admonition:"admonition",code:"code",em:"em",h2:"h2",h3:"h3",img:"img",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.p,{children:"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery. Compared to other multimedia, images are incredibly popular on the Web & knowing how to serve them properly can be a massive boon to your website's traffic as well as less of a headache for users on slower connections or who are under bandwidth constraints. The most disappointing part is that images are often poorly done on the web; all too frequently will you run into a site serving massive photographic PNGs for no reason, or photography sites serving photographs fresh out of the editing software with no thought put into their final delivery. A little effort, patience, & knowledge will go a long way toward improving the user experience for individuals using your site, & this article will illustrate some of the basics."}),"\n",(0,s.jsx)(i.admonition,{type:"caution",children:(0,s.jsxs)(i.p,{children:["These instructions are for ",(0,s.jsx)(i.em,{children:"photographic"})," images; other kinds of images, like non-photographic, artwork, pixel art, etc. should likely be handled differently."]})}),"\n",(0,s.jsxs)(i.admonition,{type:"danger",children:[(0,s.jsx)(i.p,{children:"Many images won't load properly unless your browser supports JXL, AVIF, & proper ICCv2 color management. This is for demonstration purposes only & shouldn't represent an actual common website experience. If you're curious anyway, the following browsers can display the contents of this page perfectly:"}),(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.a,{href:"https://thorium.rocks/",children:"Thorium"})," | ",(0,s.jsxs)(i.em,{children:["Linux, ",(0,s.jsx)(i.a,{href:"https://github.com/Alex313031/Thorium-Special/releases",children:"macOS"}),", ",(0,s.jsx)(i.a,{href:"https://github.com/Alex313031/thorium/releases/",children:"Windows"}),", ",(0,s.jsx)(i.a,{href:"https://github.com/Alex313031/Thorium-Special/releases",children:"Android"})]})]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.a,{href:"https://www.waterfox.net/",children:"Waterfox"})," | ",(0,s.jsxs)(i.em,{children:[(0,s.jsx)(i.a,{href:"https://flathub.org/apps/net.waterfox.waterfox",children:"Linux"}),", ",(0,s.jsx)(i.a,{href:"https://www.waterfox.net/download/",children:"macOS"}),", ",(0,s.jsx)(i.a,{href:"https://www.waterfox.net/download/",children:"Windows"})]})]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.a,{href:"https://thorium.rocks/mercury",children:"Mercury"})," | ",(0,s.jsxs)(i.em,{children:[(0,s.jsx)(i.a,{href:"https://github.com/Alex313031/Mercury/releases",children:"Linux"}),", ",(0,s.jsx)(i.a,{href:"https://github.com/Alex313031/Mercury/releases",children:"Windows"})]})]}),"\n"]})]}),"\n",(0,s.jsx)(i.h2,{id:"fire--forget",children:"Fire & Forget"}),"\n",(0,s.jsxs)(i.p,{children:["First, we'll illustrate what ",(0,s.jsx)(i.em,{children:"not"})," to do, which is fortunately not incredibly difficult to avoid. Taking an image straight out of your editing software at a massive size will often bloat the size & resolution to something that isn't generally usable for a website regardless of the codec you're using & its quality per bit. It can be argued there are specific use cases that demand incredible resolution & fidelity coexist on the Web, but we won't be covering those here. Here's an example of a bloated image:"]}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.em,{children:"exported straight from Darktable at JPEG q90, with no scaling"})}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"bloated_jpeg",src:t(8456).A+"",width:"5470",height:"3656"})}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.strong,{children:"2.2 MB"})}),"\n",(0,s.jsx)(i.h2,{id:"massive-improvement",children:"Massive Improvement"}),"\n",(0,s.jsx)(i.p,{children:"The easiest way to have a large improvement without doing much work is to simply resize the image before serving it. Even if you exported a lossy JPEG, resizing should remove a lot of artifacts. The way to perceive a worst-case for an image's size on a site is to inspect the image element's width & height, which should give us an estimate of how large we should make our image. Any larger than this value is unreasonable since we're overfilling the element's size for no reason & the image is being scaled down anyway."}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.img,{alt:"box-size-mac",src:t(4861).A+"",width:"2940",height:"1840"}),"\n",(0,s.jsx)(i.em,{children:"Inspect Element in Firefox. The Mac used to take this screenshot has a relatively high display resolution of 2560x1664. Because Macs scale things differently, we're probably going to want to double the horizontal resolution here."})]}),"\n",(0,s.jsxs)(i.p,{children:["The width is the most important value here, so our new image is going to be exported with a width of 1699 pixels. This new image, encoded at JPEG q90 with ",(0,s.jsx)(i.code,{children:"cjpegli"}),", looks like this:"]}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"smaller_jpeg",src:t(2599).A+"",width:"1699",height:"1136"})}),"\n",(0,s.jsxs)(i.p,{children:["Obviously, there's lost fidelity compared to the original, but considering this is ",(0,s.jsx)(i.em,{children:"so much smaller"}),", it is worth the trade-off for many. It is also worth noting we are using an improved jpeg encoder in the form of ",(0,s.jsx)(i.code,{children:"cjpegli"}),", although that is secondary to the resize. If it doesn't look as good as you want it to, you can always scale the resolution up a bit, though currently, it looks plenty passable for its size."]}),"\n",(0,s.jsxs)(i.p,{children:["2.2 MB -> ",(0,s.jsx)(i.strong,{children:"233 kB"})]}),"\n",(0,s.jsx)(i.h3,{id:"lazy-loading",children:"Lazy Loading"}),"\n",(0,s.jsxs)(i.p,{children:["A bonus tip is to add the ",(0,s.jsx)(i.code,{children:'loading="lazy"'})," attribute to your picture tag to allow the image to load only when scrolled to by a user. This doesn't save bandwidth, but it improves the user experience by loading images further down the page only when necessary. An example may look like this:"]}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-html",children:'\n alt text\n \n'})}),"\n",(0,s.jsx)(i.h2,{id:"new-codecs",children:"New Codecs"}),"\n",(0,s.jsxs)(i.p,{children:["If you desire further improvement, it may be time to consider using a newer codec like ",(0,s.jsx)(i.a,{href:"https://wiki.x266.mov/docs/images/AVIF",children:"AVIF"})," or ",(0,s.jsx)(i.a,{href:"https://wiki.x266.mov/docs/images/JXL",children:"JPEG-XL"}),". These options will compress far more effectively than JPEG, with the only trade-off being browser support. We're not going to consider ",(0,s.jsx)(i.a,{href:"/docs/images/WebP",children:"WebP"})," or ",(0,s.jsx)(i.a,{href:"/docs/images/HEIC",children:"HEIC"}),", since WebP is not competitive enough with JPEG for photographic imagery (often being worse) & HEIC has been superseded by AVIF - which sees greater support anyhow - & is not royalty free, effectively preventing widespread Web adoption forever. Again, we're just considering ",(0,s.jsx)(i.em,{children:"lossy"})," compression for ",(0,s.jsx)(i.em,{children:"photographic"})," images; it is a different story with WebP elsewhere, as it performs well on non-photographic content & is almost always better than PNG for 8-bit lossless compression. So, we are left with JXL & AVIF for now."]}),"\n",(0,s.jsx)(i.h3,{id:"fallbacks",children:"Fallbacks"}),"\n",(0,s.jsx)(i.p,{children:"AVIF sees widespread support, but JPEG-XL isn't quite there yet with Web support as Google continues to push AVIF (it is debatable if it ever will be outside the Apple ecosystem). Even with AVIF, adoption isn't remotely close to JPEG, so it is worth providing a fallback. This can look like the following example:"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-html",children:'\n \n \n \n alt text\n \n'})}),"\n",(0,s.jsx)(i.p,{children:"Here is a JXL falling back to an AVIF falling back to a WebP falling back to a JPEG. Pretty intense to have this many fallbacks unless you're really after the ultimate compression ratio, but it is certainly an option. AVIF & JPEG alone will probably be enough for most."}),"\n",(0,s.jsx)(i.h3,{id:"compression-efficacy",children:"Compression Efficacy"}),"\n",(0,s.jsxs)(i.p,{children:["Let's look at how our image examples compare to the original with our new codec selection. We'll be aiming for high visual fidelity, so around the same quality as our initial JPEG encoded with ",(0,s.jsx)(i.code,{children:"cjpegli"})," (which scores ~",(0,s.jsx)(i.code,{children:"83.01"})," with the ",(0,s.jsx)(i.a,{href:"/docs/metrics/SSIMULACRA2",children:"SSIMULACRA2"})," visual fidelity metric)."]}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"smaller_jxl",src:t(5500).A+""})}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.strong,{children:"137.0 kB"})," ",(0,s.jsxs)(i.em,{children:["JPEG-XL image, encoded with ",(0,s.jsx)(i.code,{children:"cjxl lossless.png out.jxl -d 1.49 -e 9"}),". Score: ~",(0,s.jsx)(i.code,{children:"83.04"})]})," ",(0,s.jsx)(i.em,{children:"3.06s user time"})]}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"smaller_avif",src:t(6826).A+"",width:"1699",height:"1136"})}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.strong,{children:"124.8 kB"})," ",(0,s.jsxs)(i.em,{children:["AVIF image, encoded with ",(0,s.jsx)(i.code,{children:"avifenc -c aom -s 4 -j 8 -d 10 -y 444 --min 1 --max 63 -a end-usage=q -a cq-level=16 -a tune=ssim lossless.png out.avif"}),". Score: ~",(0,s.jsx)(i.code,{children:"83.03"})]})," ",(0,s.jsx)(i.em,{children:"7.54s user time"})]}),"\n",(0,s.jsxs)(i.p,{children:["JXL also supports lossless transcoding of JPEG images. This means every pixel is identical, the image just has a smaller filesize than the original JPEG; if you can use JXL, you can transcode existing JPEGs losslessly on your site & save some bandwidth that way. The JPEG transcode below gives a higher SSIMULACRA2 score than the original for some reason, but I'll chalk that up to a decoding inconsistency between how the ",(0,s.jsx)(i.code,{children:"ssimulacra2"})," program decodes JPEG & JXL. Either way, the scores are fairly close."]}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"smaller_jxl_jpeg-recomp",src:t(8831).A+""})}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.strong,{children:"189.4 kB"})," ",(0,s.jsxs)(i.em,{children:["JPEG-XL image from JPEG, encoded with ",(0,s.jsx)(i.code,{children:"cjxl input.jpg input-recomp.jxl -d 0.0 -e 9 --brotli_effort=11"}),". Score: ~",(0,s.jsx)(i.code,{children:"84.92"})," (???)"]})," ",(0,s.jsx)(i.em,{children:"0.67s user time"})]}),"\n",(0,s.jsxs)(i.p,{children:["The final trick we can use, while not a new codec at all, still increases quality per bit. Encoding an XYB JPEG with ",(0,s.jsx)(i.code,{children:"cjpegli"})," encodes with the perceptual XYB colorspace using an ICC profile to modify the original JPEG colors, avoiding JPEG's normal YCbCr which isn't perceptually optimized for the human visual system. Using XYB, we can afford identical quality with less bitrate than normal JPEG. This has universal compatibility, but not every application understands how to handle the XYB color profile (although color-managed modern browsers should be fine)."]}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"smaller_jpeg_xyb",src:t(6737).A+"",width:"1699",height:"1136"})}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.strong,{children:"208.3 kB"})," ",(0,s.jsxs)(i.em,{children:["XYB JPEG, encoded with ",(0,s.jsx)(i.code,{children:"cjpegli lossless.png out.jpg --xyb -d 1.155"}),". Score: ~",(0,s.jsx)(i.code,{children:"83.04"})]})," ",(0,s.jsx)(i.em,{children:"0.10s user time"})]}),"\n",(0,s.jsx)(i.p,{children:"In this particular instance, AVIF seems to be the overall winner. This isn't always the case due to JXL's superiority at higher fidelity & with more detailed images, but according to SSIMULACRA2, AVIF has the best quality per bit with this image. You can use your own eyes to further clarify your choice, though. It is worth mentioning that as these were encoded from a 16-bit source PNG, the JXL image is the only one that maintains the full original bit depth, & AVIF isn't fast to encode."}),"\n",(0,s.jsx)(i.h2,{id:"responsive-images",children:"Responsive Images"}),"\n",(0,s.jsxs)(i.p,{children:["Displaying an image that is too large for a viewport is a waste of bandwidth, & displaying an image that's too small for the viewport leaves fidelity to be desired. Luckily, we have the ",(0,s.jsx)(i.a,{href:"https://ausi.github.io/respimagelint/",children:"Responsive Image Linter"})," that can help us figure out which image sizes we should be using."]}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"responsive_image_linter",src:t(3357).A+"",width:"2308",height:"670"})}),"\n",(0,s.jsx)(i.p,{children:"In our fire & forget example, we see that we are serving an image that is far too large. We already know that, but now we can see that given various viewport sizes we could be serving images that have respective widths of 270px, 958px, 1350px, 1660px, & 1916px to optimize for delivery to a variety of different devices. Here's how we'd write that in HTML:"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-html",children:'\n \n \n alt text\n\n'})}),"\n",(0,s.jsx)(i.p,{children:"It is worth noting that this example above & the example below aren't perfect implementations of a responsive image given the conditions of this site, but the general concept still applies. Some things to note:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"srcset"})," = the images available to your browser to serve, & their respective widths"]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"sizes"})," = the conditions given to the browser explaining under what conditions should it serve which image"]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"(min-width: XXXpx) YYYpx"})," = Given the viewport is at least XXX wide, serve an image of YYY horizontal resolution. The browser will pick an image from srcset that is CSS pixels * display scaling."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"calc(100vw - 24px)"})," = Usually preceded by a (min-width) condition. Specifies a value the browser should calculate on its own to pick the closest option from the srcset. Let's say we have ",(0,s.jsx)(i.code,{children:"(min-width: 997px) calc(75vw - 257px)"}),". This means given the viewport is at least 997px wide, calculate 0.75 * the current viewport resolution - 257 to find the closest image in the srcset to fit the number of pixel specified."]}),"\n"]}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{type:"image/jxl",srcset:"https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_270.jxl 270w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_958.jxl 958w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1350.jxl 1350w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1660.jxl 1660w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1916.jxl 1916w",sizes:"(min-width: 2000px) 1916px, (min-width: 1700px) 1660px, (min-width: 1400px) 1350px, (min-width: 1000px) 958px, calc(100vw - 24px)"}),(0,s.jsx)("source",{type:"image/avif",srcset:"https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_270.avif 270w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_958.avif 958w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1350.avif 1350w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1660.avif 1660w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1916.avif 1916w",sizes:"(min-width: 2000px) 1916px, (min-width: 1700px) 1660px, (min-width: 1400px) 1350px, (min-width: 1000px) 958px, calc(100vw - 24px)"}),(0,s.jsx)("img",{loading:"lazy",width:"1699",alt:"alt text",srcset:"https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_270.jpg 270w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_958.jpg 958w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1350.jpg 1350w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1660.jpg 1660w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1916.jpg 1916w",sizes:"(min-width: 2000px) 1916px, (min-width: 1700px) 1660px, (min-width: 1400px) 1350px, (min-width: 1000px) 958px, calc(100vw - 24px)",src:"https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/_DSC8466-smaller.jpg"})]}),"\n",(0,s.jsxs)(i.p,{children:["That's all! Massive thanks to Auto-Rez Media Technologies for the inspiration behind this article & explicit permission to use their ",(0,s.jsx)(i.a,{href:"https://autocompressor.net/blog/reduce-image-load",children:"Reduce Your Page's Image Load"})," blog post when writing this entry. I have ",(0,s.jsx)(i.a,{href:"https://autumn.revolt.chat/attachments/GtFGuwNfeRdcwUN0MWzhDCAiiadWOk88XXC3pQv6RI",children:"confirmed"})," with their leadership that this wiki entry can be safely licensed under CC BY-SA 4.0."]})]})}function d(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8831:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/_DSC8466-smaller-recomp-f3af6d54a8c1c62cda0c2d3ba048e1fc.jxl"},6737:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/_DSC8466-smaller-xyb-0372077e225cf7b460ec9238bb2a65f9.jpg"},6826:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/_DSC8466-smaller-452ed8f5a33da727be398450e7e580a3.avif"},2599:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/_DSC8466-smaller-48eaf650a417558ea976bf40eee82f67.jpg"},5500:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/_DSC8466-smaller-492a0639fb771671738062a57b2015a2.jxl"},8456:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/_DSC8466-d51a7e87bed86d101412ba728ebc6be2.jpg"},4861:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/box-size-mac-f49e702b0cb4a531f65283ad604d4b4c.avif"},3357:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/responsive_image_linter-178eb56c12557c53a2b129dd75925fe9.avif"},8453:(e,i,t)=>{t.d(i,{R:()=>a,x:()=>r});var s=t(6540);const o={},n=s.createContext(o);function a(e){const i=s.useContext(n);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),s.createElement(n.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6549b2b5.f1203cf0.js b/assets/js/6549b2b5.f1203cf0.js new file mode 100644 index 000000000..81868a67e --- /dev/null +++ b/assets/js/6549b2b5.f1203cf0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4846],{2417:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>l,contentTitle:()=>r,default:()=>d,frontMatter:()=>a,metadata:()=>s,toc:()=>c});var s=t(3107),o=t(4848),n=t(8453);const a={title:"Reducing Image Load Online",description:"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.",slug:"site-optimization",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4"}],tags:["image","web","compression"],image:"/img/_DSC8466-smaller.jpg",hide_table_of_contents:!1},r=void 0,l={authorsImageUrls:[void 0]},c=[{value:"Fire & Forget",id:"fire--forget",level:2},{value:"Massive Improvement",id:"massive-improvement",level:2},{value:"Lazy Loading",id:"lazy-loading",level:3},{value:"New Codecs",id:"new-codecs",level:2},{value:"Fallbacks",id:"fallbacks",level:3},{value:"Compression Efficacy",id:"compression-efficacy",level:3},{value:"Responsive Images",id:"responsive-images",level:2}];function h(e){const i={a:"a",admonition:"admonition",code:"code",em:"em",h2:"h2",h3:"h3",img:"img",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.p,{children:"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery. Compared to other multimedia, images are incredibly popular on the Web & knowing how to serve them properly can be a massive boon to your website's traffic as well as less of a headache for users on slower connections or who are under bandwidth constraints. The most disappointing part is that images are often poorly done on the web; all too frequently will you run into a site serving massive photographic PNGs for no reason, or photography sites serving photographs fresh out of the editing software with no thought put into their final delivery. A little effort, patience, & knowledge will go a long way toward improving the user experience for individuals using your site, & this article will illustrate some of the basics."}),"\n",(0,o.jsx)(i.admonition,{type:"caution",children:(0,o.jsxs)(i.p,{children:["These instructions are for ",(0,o.jsx)(i.em,{children:"photographic"})," images; other kinds of images, like non-photographic, artwork, pixel art, etc. should likely be handled differently."]})}),"\n",(0,o.jsxs)(i.admonition,{type:"danger",children:[(0,o.jsx)(i.p,{children:"Many images won't load properly unless your browser supports JXL, AVIF, & proper ICCv2 color management. This is for demonstration purposes only & shouldn't represent an actual common website experience. If you're curious anyway, the following browsers can display the contents of this page perfectly:"}),(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.a,{href:"https://thorium.rocks/",children:"Thorium"})," | ",(0,o.jsxs)(i.em,{children:["Linux, ",(0,o.jsx)(i.a,{href:"https://github.com/Alex313031/Thorium-Special/releases",children:"macOS"}),", ",(0,o.jsx)(i.a,{href:"https://github.com/Alex313031/thorium/releases/",children:"Windows"}),", ",(0,o.jsx)(i.a,{href:"https://github.com/Alex313031/Thorium-Special/releases",children:"Android"})]})]}),"\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.a,{href:"https://www.waterfox.net/",children:"Waterfox"})," | ",(0,o.jsxs)(i.em,{children:[(0,o.jsx)(i.a,{href:"https://flathub.org/apps/net.waterfox.waterfox",children:"Linux"}),", ",(0,o.jsx)(i.a,{href:"https://www.waterfox.net/download/",children:"macOS"}),", ",(0,o.jsx)(i.a,{href:"https://www.waterfox.net/download/",children:"Windows"})]})]}),"\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.a,{href:"https://thorium.rocks/mercury",children:"Mercury"})," | ",(0,o.jsxs)(i.em,{children:[(0,o.jsx)(i.a,{href:"https://github.com/Alex313031/Mercury/releases",children:"Linux"}),", ",(0,o.jsx)(i.a,{href:"https://github.com/Alex313031/Mercury/releases",children:"Windows"})]})]}),"\n"]})]}),"\n",(0,o.jsx)(i.h2,{id:"fire--forget",children:"Fire & Forget"}),"\n",(0,o.jsxs)(i.p,{children:["First, we'll illustrate what ",(0,o.jsx)(i.em,{children:"not"})," to do, which is fortunately not incredibly difficult to avoid. Taking an image straight out of your editing software at a massive size will often bloat the size & resolution to something that isn't generally usable for a website regardless of the codec you're using & its quality per bit. It can be argued there are specific use cases that demand incredible resolution & fidelity coexist on the Web, but we won't be covering those here. Here's an example of a bloated image:"]}),"\n",(0,o.jsx)(i.p,{children:(0,o.jsx)(i.em,{children:"exported straight from Darktable at JPEG q90, with no scaling"})}),"\n",(0,o.jsx)(i.p,{children:(0,o.jsx)(i.img,{alt:"bloated_jpeg",src:t(4901).A+"",width:"5470",height:"3656"})}),"\n",(0,o.jsx)(i.p,{children:(0,o.jsx)(i.strong,{children:"2.2 MB"})}),"\n",(0,o.jsx)(i.h2,{id:"massive-improvement",children:"Massive Improvement"}),"\n",(0,o.jsx)(i.p,{children:"The easiest way to have a large improvement without doing much work is to simply resize the image before serving it. Even if you exported a lossy JPEG, resizing should remove a lot of artifacts. The way to perceive a worst-case for an image's size on a site is to inspect the image element's width & height, which should give us an estimate of how large we should make our image. Any larger than this value is unreasonable since we're overfilling the element's size for no reason & the image is being scaled down anyway."}),"\n",(0,o.jsxs)(i.p,{children:[(0,o.jsx)(i.img,{alt:"box-size-mac",src:t(6666).A+"",width:"2940",height:"1840"}),"\n",(0,o.jsx)(i.em,{children:"Inspect Element in Firefox. The Mac used to take this screenshot has a relatively high display resolution of 2560x1664. Because Macs scale things differently, we're probably going to want to double the horizontal resolution here."})]}),"\n",(0,o.jsxs)(i.p,{children:["The width is the most important value here, so our new image is going to be exported with a width of 1699 pixels. This new image, encoded at JPEG q90 with ",(0,o.jsx)(i.code,{children:"cjpegli"}),", looks like this:"]}),"\n",(0,o.jsx)(i.p,{children:(0,o.jsx)(i.img,{alt:"smaller_jpeg",src:t(5390).A+"",width:"1699",height:"1136"})}),"\n",(0,o.jsxs)(i.p,{children:["Obviously, there's lost fidelity compared to the original, but considering this is ",(0,o.jsx)(i.em,{children:"so much smaller"}),", it is worth the trade-off for many. It is also worth noting we are using an improved jpeg encoder in the form of ",(0,o.jsx)(i.code,{children:"cjpegli"}),", although that is secondary to the resize. If it doesn't look as good as you want it to, you can always scale the resolution up a bit, though currently, it looks plenty passable for its size."]}),"\n",(0,o.jsxs)(i.p,{children:["2.2 MB -> ",(0,o.jsx)(i.strong,{children:"233 kB"})]}),"\n",(0,o.jsx)(i.h3,{id:"lazy-loading",children:"Lazy Loading"}),"\n",(0,o.jsxs)(i.p,{children:["A bonus tip is to add the ",(0,o.jsx)(i.code,{children:'loading="lazy"'})," attribute to your picture tag to allow the image to load only when scrolled to by a user. This doesn't save bandwidth, but it improves the user experience by loading images further down the page only when necessary. An example may look like this:"]}),"\n",(0,o.jsx)(i.pre,{children:(0,o.jsx)(i.code,{className:"language-html",children:'\n alt text\n \n'})}),"\n",(0,o.jsx)(i.h2,{id:"new-codecs",children:"New Codecs"}),"\n",(0,o.jsxs)(i.p,{children:["If you desire further improvement, it may be time to consider using a newer codec like ",(0,o.jsx)(i.a,{href:"https://wiki.x266.mov/docs/images/AVIF",children:"AVIF"})," or ",(0,o.jsx)(i.a,{href:"https://wiki.x266.mov/docs/images/JXL",children:"JPEG-XL"}),". These options will compress far more effectively than JPEG, with the only trade-off being browser support. We're not going to consider ",(0,o.jsx)(i.a,{href:"/docs/images/WebP",children:"WebP"})," or ",(0,o.jsx)(i.a,{href:"/docs/images/HEIC",children:"HEIC"}),", since WebP is not competitive enough with JPEG for photographic imagery (often being worse) & HEIC has been superseded by AVIF - which sees greater support anyhow - & is not royalty free, effectively preventing widespread Web adoption forever. Again, we're just considering ",(0,o.jsx)(i.em,{children:"lossy"})," compression for ",(0,o.jsx)(i.em,{children:"photographic"})," images; it is a different story with WebP elsewhere, as it performs well on non-photographic content & is almost always better than PNG for 8-bit lossless compression. So, we are left with JXL & AVIF for now."]}),"\n",(0,o.jsx)(i.h3,{id:"fallbacks",children:"Fallbacks"}),"\n",(0,o.jsx)(i.p,{children:"AVIF sees widespread support, but JPEG-XL isn't quite there yet with Web support as Google continues to push AVIF (it is debatable if it ever will be outside the Apple ecosystem). Even with AVIF, adoption isn't remotely close to JPEG, so it is worth providing a fallback. This can look like the following example:"}),"\n",(0,o.jsx)(i.pre,{children:(0,o.jsx)(i.code,{className:"language-html",children:'\n \n \n \n alt text\n \n'})}),"\n",(0,o.jsx)(i.p,{children:"Here is a JXL falling back to an AVIF falling back to a WebP falling back to a JPEG. Pretty intense to have this many fallbacks unless you're really after the ultimate compression ratio, but it is certainly an option. AVIF & JPEG alone will probably be enough for most."}),"\n",(0,o.jsx)(i.h3,{id:"compression-efficacy",children:"Compression Efficacy"}),"\n",(0,o.jsxs)(i.p,{children:["Let's look at how our image examples compare to the original with our new codec selection. We'll be aiming for high visual fidelity, so around the same quality as our initial JPEG encoded with ",(0,o.jsx)(i.code,{children:"cjpegli"})," (which scores ~",(0,o.jsx)(i.code,{children:"83.01"})," with the ",(0,o.jsx)(i.a,{href:"/docs/metrics/SSIMULACRA2",children:"SSIMULACRA2"})," visual fidelity metric)."]}),"\n",(0,o.jsx)(i.p,{children:(0,o.jsx)(i.img,{alt:"smaller_jxl",src:t(4405).A+""})}),"\n",(0,o.jsxs)(i.p,{children:[(0,o.jsx)(i.strong,{children:"137.0 kB"})," ",(0,o.jsxs)(i.em,{children:["JPEG-XL image, encoded with ",(0,o.jsx)(i.code,{children:"cjxl lossless.png out.jxl -d 1.49 -e 9"}),". Score: ~",(0,o.jsx)(i.code,{children:"83.04"})]})," ",(0,o.jsx)(i.em,{children:"3.06s user time"})]}),"\n",(0,o.jsx)(i.p,{children:(0,o.jsx)(i.img,{alt:"smaller_avif",src:t(5437).A+"",width:"1699",height:"1136"})}),"\n",(0,o.jsxs)(i.p,{children:[(0,o.jsx)(i.strong,{children:"124.8 kB"})," ",(0,o.jsxs)(i.em,{children:["AVIF image, encoded with ",(0,o.jsx)(i.code,{children:"avifenc -c aom -s 4 -j 8 -d 10 -y 444 --min 1 --max 63 -a end-usage=q -a cq-level=16 -a tune=ssim lossless.png out.avif"}),". Score: ~",(0,o.jsx)(i.code,{children:"83.03"})]})," ",(0,o.jsx)(i.em,{children:"7.54s user time"})]}),"\n",(0,o.jsxs)(i.p,{children:["JXL also supports lossless transcoding of JPEG images. This means every pixel is identical, the image just has a smaller filesize than the original JPEG; if you can use JXL, you can transcode existing JPEGs losslessly on your site & save some bandwidth that way. The JPEG transcode below gives a higher SSIMULACRA2 score than the original for some reason, but I'll chalk that up to a decoding inconsistency between how the ",(0,o.jsx)(i.code,{children:"ssimulacra2"})," program decodes JPEG & JXL. Either way, the scores are fairly close."]}),"\n",(0,o.jsx)(i.p,{children:(0,o.jsx)(i.img,{alt:"smaller_jxl_jpeg-recomp",src:t(3988).A+""})}),"\n",(0,o.jsxs)(i.p,{children:[(0,o.jsx)(i.strong,{children:"189.4 kB"})," ",(0,o.jsxs)(i.em,{children:["JPEG-XL image from JPEG, encoded with ",(0,o.jsx)(i.code,{children:"cjxl input.jpg input-recomp.jxl -d 0.0 -e 9 --brotli_effort=11"}),". Score: ~",(0,o.jsx)(i.code,{children:"84.92"})," (???)"]})," ",(0,o.jsx)(i.em,{children:"0.67s user time"})]}),"\n",(0,o.jsxs)(i.p,{children:["The final trick we can use, while not a new codec at all, still increases quality per bit. Encoding an XYB JPEG with ",(0,o.jsx)(i.code,{children:"cjpegli"})," encodes with the perceptual XYB colorspace using an ICC profile to modify the original JPEG colors, avoiding JPEG's normal YCbCr which isn't perceptually optimized for the human visual system. Using XYB, we can afford identical quality with less bitrate than normal JPEG. This has universal compatibility, but not every application understands how to handle the XYB color profile (although color-managed modern browsers should be fine)."]}),"\n",(0,o.jsx)(i.p,{children:(0,o.jsx)(i.img,{alt:"smaller_jpeg_xyb",src:t(7280).A+"",width:"1699",height:"1136"})}),"\n",(0,o.jsxs)(i.p,{children:[(0,o.jsx)(i.strong,{children:"208.3 kB"})," ",(0,o.jsxs)(i.em,{children:["XYB JPEG, encoded with ",(0,o.jsx)(i.code,{children:"cjpegli lossless.png out.jpg --xyb -d 1.155"}),". Score: ~",(0,o.jsx)(i.code,{children:"83.04"})]})," ",(0,o.jsx)(i.em,{children:"0.10s user time"})]}),"\n",(0,o.jsx)(i.p,{children:"In this particular instance, AVIF seems to be the overall winner. This isn't always the case due to JXL's superiority at higher fidelity & with more detailed images, but according to SSIMULACRA2, AVIF has the best quality per bit with this image. You can use your own eyes to further clarify your choice, though. It is worth mentioning that as these were encoded from a 16-bit source PNG, the JXL image is the only one that maintains the full original bit depth, & AVIF isn't fast to encode."}),"\n",(0,o.jsx)(i.h2,{id:"responsive-images",children:"Responsive Images"}),"\n",(0,o.jsxs)(i.p,{children:["Displaying an image that is too large for a viewport is a waste of bandwidth, & displaying an image that's too small for the viewport leaves fidelity to be desired. Luckily, we have the ",(0,o.jsx)(i.a,{href:"https://ausi.github.io/respimagelint/",children:"Responsive Image Linter"})," that can help us figure out which image sizes we should be using."]}),"\n",(0,o.jsx)(i.p,{children:(0,o.jsx)(i.img,{alt:"responsive_image_linter",src:t(3548).A+"",width:"2308",height:"670"})}),"\n",(0,o.jsx)(i.p,{children:"In our fire & forget example, we see that we are serving an image that is far too large. We already know that, but now we can see that given various viewport sizes we could be serving images that have respective widths of 270px, 958px, 1350px, 1660px, & 1916px to optimize for delivery to a variety of different devices. Here's how we'd write that in HTML:"}),"\n",(0,o.jsx)(i.pre,{children:(0,o.jsx)(i.code,{className:"language-html",children:'\n \n \n alt text\n\n'})}),"\n",(0,o.jsx)(i.p,{children:"It is worth noting that this example above & the example below aren't perfect implementations of a responsive image given the conditions of this site, but the general concept still applies. Some things to note:"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.code,{children:"srcset"})," = the images available to your browser to serve, & their respective widths"]}),"\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.code,{children:"sizes"})," = the conditions given to the browser explaining under what conditions should it serve which image"]}),"\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.code,{children:"(min-width: XXXpx) YYYpx"})," = Given the viewport is at least XXX wide, serve an image of YYY horizontal resolution. The browser will pick an image from srcset that is CSS pixels * display scaling."]}),"\n",(0,o.jsxs)(i.li,{children:[(0,o.jsx)(i.code,{children:"calc(100vw - 24px)"})," = Usually preceded by a (min-width) condition. Specifies a value the browser should calculate on its own to pick the closest option from the srcset. Let's say we have ",(0,o.jsx)(i.code,{children:"(min-width: 997px) calc(75vw - 257px)"}),". This means given the viewport is at least 997px wide, calculate 0.75 * the current viewport resolution - 257 to find the closest image in the srcset to fit the number of pixel specified."]}),"\n"]}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{type:"image/jxl",srcset:"https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_270.jxl 270w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_958.jxl 958w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1350.jxl 1350w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1660.jxl 1660w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1916.jxl 1916w",sizes:"(min-width: 2000px) 1916px, (min-width: 1700px) 1660px, (min-width: 1400px) 1350px, (min-width: 1000px) 958px, calc(100vw - 24px)"}),(0,o.jsx)("source",{type:"image/avif",srcset:"https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_270.avif 270w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_958.avif 958w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1350.avif 1350w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1660.avif 1660w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1916.avif 1916w",sizes:"(min-width: 2000px) 1916px, (min-width: 1700px) 1660px, (min-width: 1400px) 1350px, (min-width: 1000px) 958px, calc(100vw - 24px)"}),(0,o.jsx)("img",{loading:"lazy",width:"1699",alt:"alt text",srcset:"https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_270.jpg 270w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_958.jpg 958w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1350.jpg 1350w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1660.jpg 1660w, https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/img_size/img_1916.jpg 1916w",sizes:"(min-width: 2000px) 1916px, (min-width: 1700px) 1660px, (min-width: 1400px) 1350px, (min-width: 1000px) 958px, calc(100vw - 24px)",src:"https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/deployment/img/_DSC8466-smaller.jpg"})]}),"\n",(0,o.jsxs)(i.p,{children:["That's all! Massive thanks to Auto-Rez Media Technologies for the inspiration behind this article & explicit permission to use their ",(0,o.jsx)(i.a,{href:"https://autocompressor.net/blog/reduce-image-load",children:"Reduce Your Page's Image Load"})," blog post when writing this entry. I have ",(0,o.jsx)(i.a,{href:"https://autumn.revolt.chat/attachments/GtFGuwNfeRdcwUN0MWzhDCAiiadWOk88XXC3pQv6RI",children:"confirmed"})," with their leadership that this wiki entry can be safely licensed under CC BY-SA 4.0."]})]})}function d(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},3988:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/_DSC8466-smaller-recomp-f3af6d54a8c1c62cda0c2d3ba048e1fc.jxl"},7280:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/_DSC8466-smaller-xyb-0372077e225cf7b460ec9238bb2a65f9.jpg"},5437:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/_DSC8466-smaller-452ed8f5a33da727be398450e7e580a3.avif"},5390:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/_DSC8466-smaller-48eaf650a417558ea976bf40eee82f67.jpg"},4405:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/_DSC8466-smaller-492a0639fb771671738062a57b2015a2.jxl"},4901:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/_DSC8466-d51a7e87bed86d101412ba728ebc6be2.jpg"},6666:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/box-size-mac-f49e702b0cb4a531f65283ad604d4b4c.avif"},3548:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/responsive_image_linter-178eb56c12557c53a2b129dd75925fe9.avif"},8453:(e,i,t)=>{t.d(i,{R:()=>a,x:()=>r});var s=t(6540);const o={},n=s.createContext(o);function a(e){const i=s.useContext(n);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),s.createElement(n.Provider,{value:i},e.children)}},3107:e=>{e.exports=JSON.parse('{"permalink":"/blog/site-optimization","source":"@site/blog/2023-07-21-site-optimization.mdx","title":"Reducing Image Load Online","description":"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.","date":"2023-07-21T00:00:00.000Z","tags":[{"inline":true,"label":"image","permalink":"/blog/tags/image"},{"inline":true,"label":"web","permalink":"/blog/tags/web"},{"inline":true,"label":"compression","permalink":"/blog/tags/compression"}],"readingTime":9.25,"hasTruncateMarker":true,"authors":[{"name":"Gianni Rosato","title":"Maintainer","url":"https://github.com/gianni-rosato","image_url":"https://avatars.githubusercontent.com/u/35711760?v=4","imageURL":"https://avatars.githubusercontent.com/u/35711760?v=4","socials":{},"key":null,"page":null}],"frontMatter":{"title":"Reducing Image Load Online","description":"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.","slug":"site-optimization","authors":[{"name":"Gianni Rosato","title":"Maintainer","url":"https://github.com/gianni-rosato","image_url":"https://avatars.githubusercontent.com/u/35711760?v=4","imageURL":"https://avatars.githubusercontent.com/u/35711760?v=4"}],"tags":["image","web","compression"],"image":"/img/_DSC8466-smaller.jpg","hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"AV1 Encoding for Dummies","permalink":"/blog/av1-encoding-for-dummies"}}')}}]); \ No newline at end of file diff --git a/assets/js/65524f4d.62b7f26f.js b/assets/js/65524f4d.62b7f26f.js new file mode 100644 index 000000000..0309fa315 --- /dev/null +++ b/assets/js/65524f4d.62b7f26f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6891],{319:(i,e,t)=>{t.r(e),t.d(e,{assets:()=>c,contentTitle:()=>r,default:()=>u,frontMatter:()=>s,metadata:()=>n,toc:()=>l});const n=JSON.parse('{"id":"filtering/antialiasing","title":"Antialiasing","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/filtering/antialiasing.mdx","sourceDirName":"filtering","slug":"/filtering/antialiasing","permalink":"/docs/filtering/antialiasing","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/antialiasing.mdx","tags":[],"version":"current","sidebarPosition":10,"frontMatter":{"title":"Antialiasing","sidebar_position":10},"sidebar":"tutorialSidebar","previous":{"title":"Dehalo","permalink":"/docs/filtering/dehalo"},"next":{"title":"Deband","permalink":"/docs/filtering/deband"}}');var o=t(4848),a=t(8453);const s={title:"Antialiasing",sidebar_position:10},r="Antialiasing",c={},l=[];function d(i){const e={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,a.R)(),...i.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.header,{children:(0,o.jsx)(e.h1,{id:"antialiasing",children:"Antialiasing"})}),"\n",(0,o.jsx)(e.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(e.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(e.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(i={}){const{wrapper:e}={...(0,a.R)(),...i.components};return e?(0,o.jsx)(e,{...i,children:(0,o.jsx)(d,{...i})}):d(i)}},8453:(i,e,t)=>{t.d(e,{R:()=>s,x:()=>r});var n=t(6540);const o={},a=n.createContext(o);function s(i){const e=n.useContext(a);return n.useMemo((function(){return"function"==typeof i?i(e):{...e,...i}}),[e,i])}function r(i){let e;return e=i.disableParentContext?"function"==typeof i.components?i.components(o):i.components||o:s(i.components),n.createElement(a.Provider,{value:e},i.children)}}}]); \ No newline at end of file diff --git a/assets/js/65524f4d.892c1f47.js b/assets/js/65524f4d.892c1f47.js deleted file mode 100644 index 5478aaeab..000000000 --- a/assets/js/65524f4d.892c1f47.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6891],{2030:(i,e,t)=>{t.r(e),t.d(e,{assets:()=>c,contentTitle:()=>s,default:()=>u,frontMatter:()=>a,metadata:()=>r,toc:()=>l});var n=t(4848),o=t(8453);const a={title:"Antialiasing",sidebar_position:10},s="Antialiasing",r={id:"filtering/antialiasing",title:"Antialiasing",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/filtering/antialiasing.mdx",sourceDirName:"filtering",slug:"/filtering/antialiasing",permalink:"/docs/filtering/antialiasing",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/antialiasing.mdx",tags:[],version:"current",sidebarPosition:10,frontMatter:{title:"Antialiasing",sidebar_position:10},sidebar:"tutorialSidebar",previous:{title:"Dehalo",permalink:"/docs/filtering/dehalo"},next:{title:"Deband",permalink:"/docs/filtering/deband"}},c={},l=[];function d(i){const e={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...i.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.header,{children:(0,n.jsx)(e.h1,{id:"antialiasing",children:"Antialiasing"})}),"\n",(0,n.jsx)(e.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(e.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(e.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(i={}){const{wrapper:e}={...(0,o.R)(),...i.components};return e?(0,n.jsx)(e,{...i,children:(0,n.jsx)(d,{...i})}):d(i)}},8453:(i,e,t)=>{t.d(e,{R:()=>s,x:()=>r});var n=t(6540);const o={},a=n.createContext(o);function s(i){const e=n.useContext(a);return n.useMemo((function(){return"function"==typeof i?i(e):{...e,...i}}),[e,i])}function r(i){let e;return e=i.disableParentContext?"function"==typeof i.components?i.components(o):i.components||o:s(i.components),n.createElement(a.Provider,{value:e},i.children)}}}]); \ No newline at end of file diff --git a/assets/js/68dcf780.91c3ce2d.js b/assets/js/68dcf780.91c3ce2d.js deleted file mode 100644 index dbb147266..000000000 --- a/assets/js/68dcf780.91c3ce2d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1315],{1538:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>d,contentTitle:()=>c,default:()=>u,frontMatter:()=>r,metadata:()=>s,toc:()=>a});var n=t(4848),o=t(8453);const r={title:"Decombing",sidebar_position:6},c="Decombing",s={id:"filtering/decombing",title:"Decombing",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/filtering/decombing.mdx",sourceDirName:"filtering",slug:"/filtering/decombing",permalink:"/docs/filtering/decombing",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/decombing.mdx",tags:[],version:"current",sidebarPosition:6,frontMatter:{title:"Decombing",sidebar_position:6},sidebar:"tutorialSidebar",previous:{title:"Deinterlace",permalink:"/docs/filtering/deinterlace"},next:{title:"Stabilizing",permalink:"/docs/filtering/stabilizing"}},d={},a=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"decombing",children:"Decombing"})}),"\n",(0,n.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>c,x:()=>s});var n=t(6540);const o={},r=n.createContext(o);function c(e){const i=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function s(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),n.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/68dcf780.a29fdadd.js b/assets/js/68dcf780.a29fdadd.js new file mode 100644 index 000000000..5d5898a3e --- /dev/null +++ b/assets/js/68dcf780.a29fdadd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1315],{5956:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>a,contentTitle:()=>c,default:()=>u,frontMatter:()=>s,metadata:()=>n,toc:()=>d});const n=JSON.parse('{"id":"filtering/decombing","title":"Decombing","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/filtering/decombing.mdx","sourceDirName":"filtering","slug":"/filtering/decombing","permalink":"/docs/filtering/decombing","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/decombing.mdx","tags":[],"version":"current","sidebarPosition":6,"frontMatter":{"title":"Decombing","sidebar_position":6},"sidebar":"tutorialSidebar","previous":{"title":"Deinterlace","permalink":"/docs/filtering/deinterlace"},"next":{"title":"Stabilizing","permalink":"/docs/filtering/stabilizing"}}');var o=i(4848),r=i(8453);const s={title:"Decombing",sidebar_position:6},c="Decombing",a={},d=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"decombing",children:"Decombing"})}),"\n",(0,o.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>c});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6bf0f114.ae960720.js b/assets/js/6bf0f114.ae960720.js deleted file mode 100644 index d492dc70d..000000000 --- a/assets/js/6bf0f114.ae960720.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[881],{779:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>n,metadata:()=>r,toc:()=>c});var s=t(4848),o=t(8453);const n={title:"ZIP",sidebar_position:1},a="ZIP",r={id:"data/zip",title:"ZIP",description:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information.",source:"@site/docs/data/zip.mdx",sourceDirName:"data",slug:"/data/zip",permalink:"/docs/data/zip",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/zip.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"ZIP",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"ECM",permalink:"/docs/video/ECM"},next:{title:"gzip",permalink:"/docs/data/gzip"}},d={},c=[{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"History",id:"history",level:2},{value:"Encoding",id:"encoding",level:2},{value:"Linux & macOS",id:"linux--macos",level:4},{value:"Windows",id:"windows",level:4},{value:"Conclusion",id:"conclusion",level:2}];function l(e){const i={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h4:"h4",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"zip",children:"ZIP"})}),"\n",(0,s.jsx)(i.admonition,{title:"Pending Review",type:"caution",children:(0,s.jsx)(i.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,s.jsxs)(i.p,{children:["ZIP is an archive file format that supports lossless data compression. A ZIP file may contain one or more files or directories that may have been compressed using any one of a number of different algorithms present in the ZIP specification. The most common algorithm used in ZIP is DEFLATE, which is also used in ",(0,s.jsx)(i.a,{href:"/docs/data/gzip",children:"gzip"})," & ",(0,s.jsx)(i.a,{href:"/docs/images/PNG",children:"PNG"}),"."]}),"\n",(0,s.jsx)(i.p,{children:"Deflate acts as a combination of LZ77 lossless coding & Huffman coding, where it can first use LZ77 to find patterns in the data & reduce redundancy. This is followed by using Huffman coding to assign smaller bit values to patterns found more frequently by LZ77."}),"\n",(0,s.jsx)(i.p,{children:"Additionally, files in a ZIP archive are compressed individually so it is possible to extract existing files or add new ones without applying compression or decompression to the entire archive."}),"\n",(0,s.jsxs)(i.p,{children:['ZIP is noteworthy for its nearly universal compatibility. "Traditional ZIP" (compression method 8 in the ZIP specification) limits the size of compressed archives to 4 GB, though most ZIP compressors use Deflate64(tm) (compression level 9 in the ZIP specification) to bypass this limitation. ZIP is competitive with ',(0,s.jsx)(i.a,{href:"/docs/data/gzip",children:"gzip"})," and has been succeeded many times by formats & algorithms such as ",(0,s.jsx)(i.a,{href:"/docs/data/bzip2",children:"bzip2"}),", ",(0,s.jsx)(i.a,{href:"/docs/data/xz",children:"XZ"}),", ",(0,s.jsx)(i.a,{href:"/docs/data/7z",children:"7-zip"}),", ",(0,s.jsx)(i.a,{href:"/docs/data/brotli",children:"brotli"})," (to a degree), and ",(0,s.jsx)(i.a,{href:"/docs/data/zstd",children:"Zstandard"}),"."]}),"\n",(0,s.jsx)(i.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,s.jsx)(i.p,{children:'DEFLATE is an LZ77-based compressor that finds repeated sequences of bytes in the input data and replaces them with shorter references to previous occurrences. It also uses Huffman coding to encode the symbols with variable-length codes based on how frequently they occur. DEFLATE has two modes for each block of compressed data: These are specified as either "static" or "dynamic" Huffman compressed blocks. In static mode, the Huffman codes are fixed and predefined. In dynamic mode, the Huffman codes are generated dynamically & transmitted along with the compressed data.'}),"\n",(0,s.jsx)(i.p,{children:"ZIP files have a specific structure that consists of four main file header components: local file headers, central directory file headers, end of central directory record, and data descriptors. The local file headers store information about each compressed file, such as its name, size, CRC-32 checksum, compression method, and optional extra fields. The central directory file headers store similar information as the local file headers, but also include the offset of each local file header in the ZIP file. The end of central directory record marks the end of the ZIP file and contains information about the number and size of the central directory file headers. The data descriptors are optional and store additional information about the compressed data, such as its CRC-32 checksum, uncompressed size, & compressed size."}),"\n",(0,s.jsxs)(i.p,{children:["ZIP files can also support other compression methods, such as Deflate64(tm), BZIP2, LZMA, & ",(0,s.jsx)(i.a,{href:"/docs/data/zstd",children:"Zstandard"}),". These methods are not widely supported by most ZIP utilities and may cause compatibility issues. ZIP files can also contain uncompressed data. The format also supports encryption to protect the data from unauthorized access. There are two types of encryption supported by ZIP: traditional ZipCrypto encryption and strong encryption. ZipCrypto encryption is considered insecure, while stronger encryption in ZIP uses more resilient algorithms albiet spread across a number of standards. Because of this, strong encryption is not standardized and may cause compatibility issues."]}),"\n",(0,s.jsx)(i.p,{children:"ZIP files can reduce the size of files and folders by more efficiently representing redundant data. They can also combine multiple files and folders into a single archive that can be easily transferred or stored. You will not find a more popular implementation than ZIP for general data compression purposes like these. ZIP files can also preserve the metadata of the original files, such as their names, paths, dates, and attributes. However, ZIP files also have some limitations and concerns. For example, traditional ZIP files (that aren't ZIP64) have a maximum size of 4 gigabytes for each compressed file and 65,535 entries for each archive. Most ZIP implementations do not support symbolic links or hard links within the archive."}),"\n",(0,s.jsxs)(i.p,{children:['Additionally, ZIP can be encoded in a number of different ways. Apple has a default "Compress" option in Finder that compresses selected files into a ZIP file, and many Linux desktops offer GUI functionality for creating ZIP files easily as well. It is common to compress to ZIP on Windows using the 7-zip data compression & decompression utility (not to be confused with the ',(0,s.jsx)(i.a,{href:"/docs/data/7z",children:"7-zip compression format"}),", though the two are related)."]}),"\n",(0,s.jsx)(i.h2,{id:"history",children:"History"}),"\n",(0,s.jsx)(i.p,{children:"The ZIP format was developed by Phil Katz as an open format with an open specification, where his implementation, PKZIP, was shareware."}),"\n",(0,s.jsxs)(i.p,{children:["A ",(0,s.jsx)(i.a,{href:"http://www.digitalpreservation.gov/formats/fdd/fdd000361.shtml",children:"restricted ZIP format"})," exists and is used in other filetypes such as Java .jar archives, a slew of Microsoft Office file formats, Office Document Format files (.odt, .ods, .odp), and EPUB files for e-readers."]}),"\n",(0,s.jsxs)(i.p,{children:['In around 1990, Info-ZIP came onto the scene. "Info-ZIP\'s purpose is to provide free, portable, high-quality versions of the Zip and UnZip compressor-archiver utilities that are compatible with the DOS-based PKZIP by PKWARE, Inc." (',(0,s.jsx)(i.a,{href:"https://infozip.sourceforge.net/",children:"https://infozip.sourceforge.net/"}),"). They did this successfully, leading to increased adoption of the ZIP format."]}),"\n",(0,s.jsxs)(i.p,{children:["In the early 1990s the ",(0,s.jsx)(i.a,{href:"/docs/data/gzip",children:"gzip"})," format was developed, derived from the Deflate code in the Info-ZIP utilities. It was designed to replace the Unix ",(0,s.jsx)(i.code,{children:"compress"})," utility, which used the (at the time) patented LZW compression algorithm which threatened its free use. Though some specific implementations of Deflate were patented by Phil Katz, the format was not, so a Deflate implementation that did not infringe on any patents was written."]}),"\n",(0,s.jsxs)(i.p,{children:["Unlike ",(0,s.jsx)(i.code,{children:".tar"}),", ",(0,s.jsx)(i.code,{children:".zip"})," has a central directory at the end, which provides a list of the contents. That and the separate compression provides random access to the individual entries in a ",(0,s.jsx)(i.code,{children:".zip"})," file. A ",(0,s.jsx)(i.code,{children:".tar"})," file would have to be decompressed and scanned from start to end in order to build a directory."]}),"\n",(0,s.jsxs)(i.p,{children:["The popular ",(0,s.jsx)(i.code,{children:"tar"})," utility, which creates an archive of files, has an option to compress directly to the ",(0,s.jsx)(i.code,{children:".tar.gz"})," format and is a very popular use caze for gzip. Since the compression of a ",(0,s.jsx)(i.code,{children:".tar"})," can take advantage of redundancy across files, ZIP often compresses less effectively than the marriage of tar & gz. ",(0,s.jsx)(i.code,{children:".tar.gz"})," is the most common archive format in use on Unix due to its very high portability, but there are better compression methods available. Some of these include ",(0,s.jsx)(i.a,{href:"/docs/data/xz",children:"XZ"}),", ",(0,s.jsx)(i.a,{href:"/docs/data/bzip2",children:"bzip2"}),", ",(0,s.jsx)(i.a,{href:"/docs/data/brotli",children:"brotli"}),", ",(0,s.jsx)(i.a,{href:"/docs/data/7z",children:"7-zip"}),", & ",(0,s.jsx)(i.a,{href:"/docs/data/zstd",children:"Zstandard"}),"."]}),"\n",(0,s.jsxs)(i.p,{children:["In this case, the benefit of ZIP is that because it compresses files separately and builds a central directory at the end of the archive which provides a list of the contents, ZIP provides random access to the individual entries in a ",(0,s.jsx)(i.code,{children:".zip"})," file. A ",(0,s.jsx)(i.code,{children:".tar"})," file would have to be decompressed and scanned from start to end in order to build a directory."]}),"\n",(0,s.jsx)(i.h2,{id:"encoding",children:"Encoding"}),"\n",(0,s.jsx)(i.h4,{id:"linux--macos",children:"Linux & macOS"}),"\n",(0,s.jsxs)(i.p,{children:['To encode to a ZIP file most efficiently on Linux or macOS, it is worth using the 7-zip implementation of DEFLATE for ZIP compression. The 7zip website\'s homepage claims: "For ZIP and GZIP formats, 7-Zip provides a compression ratio that is 2-10 % better than the ratio provided by PKZip and WinZip." You can use the highly flexible 7-zip CLI utility through binaries available on ',(0,s.jsx)(i.a,{href:"https://www.7-zip.org/download.html",children:"7-zip's Download page"}),". Here are some direct download links: ",(0,s.jsx)(i.a,{href:"https://www.7-zip.org/a/7z2301-linux-x64.tar.xz",children:"Linux x86_64"})," | ",(0,s.jsx)(i.a,{href:"https://www.7-zip.org/a/7z2301-mac.tar.xz",children:"macOS Universal"})]}),"\n",(0,s.jsxs)(i.p,{children:["Once you've downloaded the utility, remember whether you are choosing to use the ",(0,s.jsx)(i.code,{children:"7zz"})," binary or the static ",(0,s.jsx)(i.code,{children:"7zzs"})," binary. Commands run using ",(0,s.jsx)(i.code,{children:"7zz"})," should run using ",(0,s.jsx)(i.code,{children:"7zzs"})," as well, so please replace ",(0,s.jsx)(i.code,{children:"7zz"})," in our examples as appropriate if you choose not to use it. Additionally, please copy your choice of binary to your ",(0,s.jsx)(i.code,{children:"/usr/local/bin"})," if you want to be able to use it everywhere."]}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"To encode a ZIP file at the lowest effort setting using one thread:"}),"\n"]}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-bash",children:'7zz a -bso0 -tzip -mmt1 -mx1 "Output.zip" "Input"\n'})}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"To encode a ZIP file at the highest effort setting using eight threads:"}),"\n"]}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-bash",children:'7zz a -bso0 -tzip -mmt8 -mx9 "Output.zip" "Input"\n'})}),"\n",(0,s.jsx)(i.h4,{id:"windows",children:"Windows"}),"\n",(0,s.jsx)(i.p,{children:"To be filled."}),"\n",(0,s.jsx)(i.h2,{id:"conclusion",children:"Conclusion"}),"\n",(0,s.jsx)(i.p,{children:"The only real benefit of using ZIP over more modern formats currently is compatibility. It may be viable when compared to 7z & XZ due to a reduction in complexity that improves encode & decode speed, but Zstandard is incredibly performant in both of these areas and generally outperforms ZIP. When it comes to content delivery on the Web, Brotli has been adopted across all modern web browsers and offers a better alternative to older compression technologies used on the Web that resemble ZIP."})]})}function h(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>a,x:()=>r});var s=t(6540);const o={},n=s.createContext(o);function a(e){const i=s.useContext(n);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),s.createElement(n.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6bf0f114.b3af70b8.js b/assets/js/6bf0f114.b3af70b8.js new file mode 100644 index 000000000..b486a309e --- /dev/null +++ b/assets/js/6bf0f114.b3af70b8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[881],{1149:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>d,contentTitle:()=>r,default:()=>h,frontMatter:()=>n,metadata:()=>s,toc:()=>c});const s=JSON.parse('{"id":"data/zip","title":"ZIP","description":"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information.","source":"@site/docs/data/zip.mdx","sourceDirName":"data","slug":"/data/zip","permalink":"/docs/data/zip","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/zip.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"ZIP","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"ECM","permalink":"/docs/video/ECM"},"next":{"title":"gzip","permalink":"/docs/data/gzip"}}');var o=t(4848),a=t(8453);const n={title:"ZIP",sidebar_position:1},r="ZIP",d={},c=[{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"History",id:"history",level:2},{value:"Encoding",id:"encoding",level:2},{value:"Linux & macOS",id:"linux--macos",level:4},{value:"Windows",id:"windows",level:4},{value:"Conclusion",id:"conclusion",level:2}];function l(e){const i={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h4:"h4",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,a.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.header,{children:(0,o.jsx)(i.h1,{id:"zip",children:"ZIP"})}),"\n",(0,o.jsx)(i.admonition,{title:"Pending Review",type:"caution",children:(0,o.jsx)(i.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,o.jsxs)(i.p,{children:["ZIP is an archive file format that supports lossless data compression. A ZIP file may contain one or more files or directories that may have been compressed using any one of a number of different algorithms present in the ZIP specification. The most common algorithm used in ZIP is DEFLATE, which is also used in ",(0,o.jsx)(i.a,{href:"/docs/data/gzip",children:"gzip"})," & ",(0,o.jsx)(i.a,{href:"/docs/images/PNG",children:"PNG"}),"."]}),"\n",(0,o.jsx)(i.p,{children:"Deflate acts as a combination of LZ77 lossless coding & Huffman coding, where it can first use LZ77 to find patterns in the data & reduce redundancy. This is followed by using Huffman coding to assign smaller bit values to patterns found more frequently by LZ77."}),"\n",(0,o.jsx)(i.p,{children:"Additionally, files in a ZIP archive are compressed individually so it is possible to extract existing files or add new ones without applying compression or decompression to the entire archive."}),"\n",(0,o.jsxs)(i.p,{children:['ZIP is noteworthy for its nearly universal compatibility. "Traditional ZIP" (compression method 8 in the ZIP specification) limits the size of compressed archives to 4 GB, though most ZIP compressors use Deflate64(tm) (compression level 9 in the ZIP specification) to bypass this limitation. ZIP is competitive with ',(0,o.jsx)(i.a,{href:"/docs/data/gzip",children:"gzip"})," and has been succeeded many times by formats & algorithms such as ",(0,o.jsx)(i.a,{href:"/docs/data/bzip2",children:"bzip2"}),", ",(0,o.jsx)(i.a,{href:"/docs/data/xz",children:"XZ"}),", ",(0,o.jsx)(i.a,{href:"/docs/data/7z",children:"7-zip"}),", ",(0,o.jsx)(i.a,{href:"/docs/data/brotli",children:"brotli"})," (to a degree), and ",(0,o.jsx)(i.a,{href:"/docs/data/zstd",children:"Zstandard"}),"."]}),"\n",(0,o.jsx)(i.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,o.jsx)(i.p,{children:'DEFLATE is an LZ77-based compressor that finds repeated sequences of bytes in the input data and replaces them with shorter references to previous occurrences. It also uses Huffman coding to encode the symbols with variable-length codes based on how frequently they occur. DEFLATE has two modes for each block of compressed data: These are specified as either "static" or "dynamic" Huffman compressed blocks. In static mode, the Huffman codes are fixed and predefined. In dynamic mode, the Huffman codes are generated dynamically & transmitted along with the compressed data.'}),"\n",(0,o.jsx)(i.p,{children:"ZIP files have a specific structure that consists of four main file header components: local file headers, central directory file headers, end of central directory record, and data descriptors. The local file headers store information about each compressed file, such as its name, size, CRC-32 checksum, compression method, and optional extra fields. The central directory file headers store similar information as the local file headers, but also include the offset of each local file header in the ZIP file. The end of central directory record marks the end of the ZIP file and contains information about the number and size of the central directory file headers. The data descriptors are optional and store additional information about the compressed data, such as its CRC-32 checksum, uncompressed size, & compressed size."}),"\n",(0,o.jsxs)(i.p,{children:["ZIP files can also support other compression methods, such as Deflate64(tm), BZIP2, LZMA, & ",(0,o.jsx)(i.a,{href:"/docs/data/zstd",children:"Zstandard"}),". These methods are not widely supported by most ZIP utilities and may cause compatibility issues. ZIP files can also contain uncompressed data. The format also supports encryption to protect the data from unauthorized access. There are two types of encryption supported by ZIP: traditional ZipCrypto encryption and strong encryption. ZipCrypto encryption is considered insecure, while stronger encryption in ZIP uses more resilient algorithms albiet spread across a number of standards. Because of this, strong encryption is not standardized and may cause compatibility issues."]}),"\n",(0,o.jsx)(i.p,{children:"ZIP files can reduce the size of files and folders by more efficiently representing redundant data. They can also combine multiple files and folders into a single archive that can be easily transferred or stored. You will not find a more popular implementation than ZIP for general data compression purposes like these. ZIP files can also preserve the metadata of the original files, such as their names, paths, dates, and attributes. However, ZIP files also have some limitations and concerns. For example, traditional ZIP files (that aren't ZIP64) have a maximum size of 4 gigabytes for each compressed file and 65,535 entries for each archive. Most ZIP implementations do not support symbolic links or hard links within the archive."}),"\n",(0,o.jsxs)(i.p,{children:['Additionally, ZIP can be encoded in a number of different ways. Apple has a default "Compress" option in Finder that compresses selected files into a ZIP file, and many Linux desktops offer GUI functionality for creating ZIP files easily as well. It is common to compress to ZIP on Windows using the 7-zip data compression & decompression utility (not to be confused with the ',(0,o.jsx)(i.a,{href:"/docs/data/7z",children:"7-zip compression format"}),", though the two are related)."]}),"\n",(0,o.jsx)(i.h2,{id:"history",children:"History"}),"\n",(0,o.jsx)(i.p,{children:"The ZIP format was developed by Phil Katz as an open format with an open specification, where his implementation, PKZIP, was shareware."}),"\n",(0,o.jsxs)(i.p,{children:["A ",(0,o.jsx)(i.a,{href:"http://www.digitalpreservation.gov/formats/fdd/fdd000361.shtml",children:"restricted ZIP format"})," exists and is used in other filetypes such as Java .jar archives, a slew of Microsoft Office file formats, Office Document Format files (.odt, .ods, .odp), and EPUB files for e-readers."]}),"\n",(0,o.jsxs)(i.p,{children:['In around 1990, Info-ZIP came onto the scene. "Info-ZIP\'s purpose is to provide free, portable, high-quality versions of the Zip and UnZip compressor-archiver utilities that are compatible with the DOS-based PKZIP by PKWARE, Inc." (',(0,o.jsx)(i.a,{href:"https://infozip.sourceforge.net/",children:"https://infozip.sourceforge.net/"}),"). They did this successfully, leading to increased adoption of the ZIP format."]}),"\n",(0,o.jsxs)(i.p,{children:["In the early 1990s the ",(0,o.jsx)(i.a,{href:"/docs/data/gzip",children:"gzip"})," format was developed, derived from the Deflate code in the Info-ZIP utilities. It was designed to replace the Unix ",(0,o.jsx)(i.code,{children:"compress"})," utility, which used the (at the time) patented LZW compression algorithm which threatened its free use. Though some specific implementations of Deflate were patented by Phil Katz, the format was not, so a Deflate implementation that did not infringe on any patents was written."]}),"\n",(0,o.jsxs)(i.p,{children:["Unlike ",(0,o.jsx)(i.code,{children:".tar"}),", ",(0,o.jsx)(i.code,{children:".zip"})," has a central directory at the end, which provides a list of the contents. That and the separate compression provides random access to the individual entries in a ",(0,o.jsx)(i.code,{children:".zip"})," file. A ",(0,o.jsx)(i.code,{children:".tar"})," file would have to be decompressed and scanned from start to end in order to build a directory."]}),"\n",(0,o.jsxs)(i.p,{children:["The popular ",(0,o.jsx)(i.code,{children:"tar"})," utility, which creates an archive of files, has an option to compress directly to the ",(0,o.jsx)(i.code,{children:".tar.gz"})," format and is a very popular use caze for gzip. Since the compression of a ",(0,o.jsx)(i.code,{children:".tar"})," can take advantage of redundancy across files, ZIP often compresses less effectively than the marriage of tar & gz. ",(0,o.jsx)(i.code,{children:".tar.gz"})," is the most common archive format in use on Unix due to its very high portability, but there are better compression methods available. Some of these include ",(0,o.jsx)(i.a,{href:"/docs/data/xz",children:"XZ"}),", ",(0,o.jsx)(i.a,{href:"/docs/data/bzip2",children:"bzip2"}),", ",(0,o.jsx)(i.a,{href:"/docs/data/brotli",children:"brotli"}),", ",(0,o.jsx)(i.a,{href:"/docs/data/7z",children:"7-zip"}),", & ",(0,o.jsx)(i.a,{href:"/docs/data/zstd",children:"Zstandard"}),"."]}),"\n",(0,o.jsxs)(i.p,{children:["In this case, the benefit of ZIP is that because it compresses files separately and builds a central directory at the end of the archive which provides a list of the contents, ZIP provides random access to the individual entries in a ",(0,o.jsx)(i.code,{children:".zip"})," file. A ",(0,o.jsx)(i.code,{children:".tar"})," file would have to be decompressed and scanned from start to end in order to build a directory."]}),"\n",(0,o.jsx)(i.h2,{id:"encoding",children:"Encoding"}),"\n",(0,o.jsx)(i.h4,{id:"linux--macos",children:"Linux & macOS"}),"\n",(0,o.jsxs)(i.p,{children:['To encode to a ZIP file most efficiently on Linux or macOS, it is worth using the 7-zip implementation of DEFLATE for ZIP compression. The 7zip website\'s homepage claims: "For ZIP and GZIP formats, 7-Zip provides a compression ratio that is 2-10 % better than the ratio provided by PKZip and WinZip." You can use the highly flexible 7-zip CLI utility through binaries available on ',(0,o.jsx)(i.a,{href:"https://www.7-zip.org/download.html",children:"7-zip's Download page"}),". Here are some direct download links: ",(0,o.jsx)(i.a,{href:"https://www.7-zip.org/a/7z2301-linux-x64.tar.xz",children:"Linux x86_64"})," | ",(0,o.jsx)(i.a,{href:"https://www.7-zip.org/a/7z2301-mac.tar.xz",children:"macOS Universal"})]}),"\n",(0,o.jsxs)(i.p,{children:["Once you've downloaded the utility, remember whether you are choosing to use the ",(0,o.jsx)(i.code,{children:"7zz"})," binary or the static ",(0,o.jsx)(i.code,{children:"7zzs"})," binary. Commands run using ",(0,o.jsx)(i.code,{children:"7zz"})," should run using ",(0,o.jsx)(i.code,{children:"7zzs"})," as well, so please replace ",(0,o.jsx)(i.code,{children:"7zz"})," in our examples as appropriate if you choose not to use it. Additionally, please copy your choice of binary to your ",(0,o.jsx)(i.code,{children:"/usr/local/bin"})," if you want to be able to use it everywhere."]}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsx)(i.li,{children:"To encode a ZIP file at the lowest effort setting using one thread:"}),"\n"]}),"\n",(0,o.jsx)(i.pre,{children:(0,o.jsx)(i.code,{className:"language-bash",children:'7zz a -bso0 -tzip -mmt1 -mx1 "Output.zip" "Input"\n'})}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsx)(i.li,{children:"To encode a ZIP file at the highest effort setting using eight threads:"}),"\n"]}),"\n",(0,o.jsx)(i.pre,{children:(0,o.jsx)(i.code,{className:"language-bash",children:'7zz a -bso0 -tzip -mmt8 -mx9 "Output.zip" "Input"\n'})}),"\n",(0,o.jsx)(i.h4,{id:"windows",children:"Windows"}),"\n",(0,o.jsx)(i.p,{children:"To be filled."}),"\n",(0,o.jsx)(i.h2,{id:"conclusion",children:"Conclusion"}),"\n",(0,o.jsx)(i.p,{children:"The only real benefit of using ZIP over more modern formats currently is compatibility. It may be viable when compared to 7z & XZ due to a reduction in complexity that improves encode & decode speed, but Zstandard is incredibly performant in both of these areas and generally outperforms ZIP. When it comes to content delivery on the Web, Brotli has been adopted across all modern web browsers and offers a better alternative to older compression technologies used on the Web that resemble ZIP."})]})}function h(e={}){const{wrapper:i}={...(0,a.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>n,x:()=>r});var s=t(6540);const o={},a=s.createContext(o);function n(e){const i=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:n(e.components),s.createElement(a.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6c179ac5.d6e485fd.js b/assets/js/6c179ac5.d6e485fd.js new file mode 100644 index 000000000..feabdfb01 --- /dev/null +++ b/assets/js/6c179ac5.d6e485fd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4072],{9569:(e,o,i)=>{i.r(o),i.d(o,{assets:()=>c,contentTitle:()=>d,default:()=>l,frontMatter:()=>s,metadata:()=>n,toc:()=>a});const n=JSON.parse('{"id":"video/Theora","title":"Theora","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/video/Theora.mdx","sourceDirName":"video","slug":"/video/Theora","permalink":"/docs/video/Theora","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/Theora.mdx","tags":[],"version":"current","sidebarPosition":9,"frontMatter":{"title":"Theora","sidebar_position":9},"sidebar":"tutorialSidebar","previous":{"title":"VC-1","permalink":"/docs/video/VC-1"},"next":{"title":"FFV1","permalink":"/docs/video/FFV1"}}');var t=i(4848),r=i(8453);const s={title:"Theora",sidebar_position:9},d="Theora",c={},a=[{value:"Encoding",id:"encoding",level:2}];function h(e){const o={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.header,{children:(0,t.jsx)(o.h1,{id:"theora",children:"Theora"})}),"\n",(0,t.jsx)(o.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(o.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(o.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsxs)(o.p,{children:["Theora is a legacy video codec first released in 2004. It is derived from VP3, part of the same family of codecs that formed ",(0,t.jsx)(o.a,{href:"/docs/video/VP8",children:"VP8"}),", ",(0,t.jsx)(o.a,{href:"/docs/video/VP9",children:"VP9"})," and ",(0,t.jsx)(o.a,{href:"/docs/video/AV1",children:"AV1"}),"."]}),"\n",(0,t.jsx)(o.h2,{id:"encoding",children:"Encoding"}),"\n",(0,t.jsxs)(o.p,{children:["Theora is frequently contained within a ogg (",(0,t.jsx)(o.code,{children:".ogg"})," or ",(0,t.jsx)(o.code,{children:".ogv"}),") container with ",(0,t.jsx)(o.a,{href:"/docs/audio/Vorbis",children:"vorbis"})," audio."]}),"\n",(0,t.jsx)(o.p,{children:"To be filled."})]})}function l(e={}){const{wrapper:o}={...(0,r.R)(),...e.components};return o?(0,t.jsx)(o,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},8453:(e,o,i)=>{i.d(o,{R:()=>s,x:()=>d});var n=i(6540);const t={},r=n.createContext(t);function s(e){const o=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function d(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:s(e.components),n.createElement(r.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6c179ac5.ef042d18.js b/assets/js/6c179ac5.ef042d18.js deleted file mode 100644 index f2a1ac4a7..000000000 --- a/assets/js/6c179ac5.ef042d18.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4072],{9964:(e,o,i)=>{i.r(o),i.d(o,{assets:()=>c,contentTitle:()=>d,default:()=>l,frontMatter:()=>r,metadata:()=>s,toc:()=>a});var n=i(4848),t=i(8453);const r={title:"Theora",sidebar_position:9},d="Theora",s={id:"video/Theora",title:"Theora",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/video/Theora.mdx",sourceDirName:"video",slug:"/video/Theora",permalink:"/docs/video/Theora",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/Theora.mdx",tags:[],version:"current",sidebarPosition:9,frontMatter:{title:"Theora",sidebar_position:9},sidebar:"tutorialSidebar",previous:{title:"VC-1",permalink:"/docs/video/VC-1"},next:{title:"FFV1",permalink:"/docs/video/FFV1"}},c={},a=[{value:"Encoding",id:"encoding",level:2}];function h(e){const o={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.header,{children:(0,n.jsx)(o.h1,{id:"theora",children:"Theora"})}),"\n",(0,n.jsx)(o.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(o.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(o.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(o.p,{children:["Theora is a legacy video codec first released in 2004. It is derived from VP3, part of the same family of codecs that formed ",(0,n.jsx)(o.a,{href:"/docs/video/VP8",children:"VP8"}),", ",(0,n.jsx)(o.a,{href:"/docs/video/VP9",children:"VP9"})," and ",(0,n.jsx)(o.a,{href:"/docs/video/AV1",children:"AV1"}),"."]}),"\n",(0,n.jsx)(o.h2,{id:"encoding",children:"Encoding"}),"\n",(0,n.jsxs)(o.p,{children:["Theora is frequently contained within a ogg (",(0,n.jsx)(o.code,{children:".ogg"})," or ",(0,n.jsx)(o.code,{children:".ogv"}),") container with ",(0,n.jsx)(o.a,{href:"/docs/audio/Vorbis",children:"vorbis"})," audio."]}),"\n",(0,n.jsx)(o.p,{children:"To be filled."})]})}function l(e={}){const{wrapper:o}={...(0,t.R)(),...e.components};return o?(0,n.jsx)(o,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},8453:(e,o,i)=>{i.d(o,{R:()=>d,x:()=>s});var n=i(6540);const t={},r=n.createContext(t);function d(e){const o=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function s(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:d(e.components),n.createElement(r.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6d85920a.576f4705.js b/assets/js/6d85920a.576f4705.js deleted file mode 100644 index 071bc3767..000000000 --- a/assets/js/6d85920a.576f4705.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7800],{3911:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>d,contentTitle:()=>r,default:()=>h,frontMatter:()=>s,metadata:()=>a,toc:()=>c});var n=t(4848),o=t(8453);const s={title:"Terminology",sidebar_position:2},r="Terminology",a={id:"introduction/terminology",title:"Terminology",description:"When learning about encoding technology, it is important to understand the vast terminology that is often used to describe concepts that are often not very complex to understand.",source:"@site/docs/introduction/terminology.mdx",sourceDirName:"introduction",slug:"/introduction/terminology",permalink:"/docs/introduction/terminology",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/terminology.mdx",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"Terminology",sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"Prologue",permalink:"/docs/introduction/prologue"},next:{title:"Lossless Compression",permalink:"/docs/introduction/lossless"}},d={},c=[{value:"Bitstream",id:"bitstream",level:2},{value:"Lossy / Lossless",id:"lossy--lossless",level:2},{value:"Elementary stream",id:"elementary-stream",level:2},{value:"Muxing",id:"muxing",level:2},{value:"Codec",id:"codec",level:2},{value:"Filter",id:"filter",level:2},{value:"Muxer/Demuxer",id:"muxerdemuxer",level:2},{value:"Bitstream filter",id:"bitstream-filter",level:2},{value:"Container",id:"container",level:2},{value:"MP4 / M4V",id:"mp4--m4v",level:4},{value:"MOV",id:"mov",level:4},{value:"MKV / MKA / MKS / MK3D",id:"mkv--mka--mks--mk3d",level:4},{value:"WebM",id:"webm",level:4},{value:"Transcoding",id:"transcoding",level:2},{value:"RDO",id:"rdo",level:2},{value:"Perceputal / Psychovisual / Psychoacoustic",id:"perceputal--psychovisual--psychoacoustic",level:2},{value:"Discrete Cosine Transform (DCT)",id:"discrete-cosine-transform-dct",level:2}];function l(e){const i={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h4:"h4",header:"header",p:"p",strong:"strong",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"terminology",children:"Terminology"})}),"\n",(0,n.jsx)(i.p,{children:"When learning about encoding technology, it is important to understand the vast terminology that is often used to describe concepts that are often not very complex to understand."}),"\n",(0,n.jsx)(i.h2,{id:"bitstream",children:"Bitstream"}),"\n",(0,n.jsxs)(i.p,{children:["A ",(0,n.jsx)(i.em,{children:"bitstream"})," or ",(0,n.jsx)(i.em,{children:"bit stream"})," is a media file, the kind that is played in a media player. It consists of a ",(0,n.jsx)(i.a,{href:"#container",children:"container"})," wrapping multiple ",(0,n.jsx)(i.a,{href:"#elementary-stream",children:"elementary streams"})]}),"\n",(0,n.jsx)(i.h2,{id:"lossy--lossless",children:"Lossy / Lossless"}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.em,{children:"Lossy"})," encoding throws out some of the detail to achieve a smaller size. Often, this is an acceptable trade-off, but if you need a perfect recreation of the data, you need ",(0,n.jsx)(i.em,{children:"lossless"})," encoding."]}),"\n",(0,n.jsx)(i.h2,{id:"elementary-stream",children:"Elementary stream"}),"\n",(0,n.jsxs)(i.p,{children:["An elementary stream is an audio, video, or subtitle track. Basically, it's the compressed data you want to ",(0,n.jsx)(i.a,{href:"#muxing",children:"mux"})," into the container."]}),"\n",(0,n.jsx)(i.h2,{id:"muxing",children:"Muxing"}),"\n",(0,n.jsx)(i.p,{children:"Putting elementary streams into a container, which preserves them without making any changes to the data."}),"\n",(0,n.jsx)(i.h2,{id:"codec",children:"Codec"}),"\n",(0,n.jsxs)(i.p,{children:["A codec (",(0,n.jsx)(i.strong,{children:"co"}),"der/",(0,n.jsx)(i.strong,{children:"dec"}),"oder) is the piece of code that actually encodes the data you put in. It takes as input and produces as output an elementary stream. More information is provided ",(0,n.jsx)(i.a,{href:"/docs/introduction/prologue#what-is-a-codec",children:"in the prologue"}),' under "What is a Codec".']}),"\n",(0,n.jsx)(i.h2,{id:"filter",children:"Filter"}),"\n",(0,n.jsx)(i.p,{children:"A filter is a piece of code you can apply to the data to make something about it different, for instance sharpening, removing artifacts, shakiness, denoising, scaling, overlay, etc."}),"\n",(0,n.jsx)(i.h2,{id:"muxerdemuxer",children:"Muxer/Demuxer"}),"\n",(0,n.jsxs)(i.p,{children:["The pieces of code that ",(0,n.jsx)(i.a,{href:"#muxing",children:"mux"})," or do the reverse, getting elementary streams from the container."]}),"\n",(0,n.jsx)(i.h2,{id:"bitstream-filter",children:"Bitstream filter"}),"\n",(0,n.jsxs)(i.p,{children:["A bitstream filter is a filter that is directly applied to the ",(0,n.jsx)(i.a,{href:"#bitstream",children:"bitstream"})," in order to change something about the container, for instance, convert frame types, or corrupt some packets."]}),"\n",(0,n.jsx)(i.h2,{id:"container",children:"Container"}),"\n",(0,n.jsxs)(i.p,{children:["A container is a format for putting one or more elementary streams into one file, which is then called a ",(0,n.jsx)(i.a,{href:"#bitstream",children:"bitstream"}),"."]}),"\n",(0,n.jsx)(i.p,{children:'A video container is a digital file format that holds video and audio data, as well as additional information such as subtitles, metadata, and chapter markers. It acts as a "wrapper" that packages all these elements into a single file that can be played on various devices and software platforms. Think of it like a container you might use to transport goods - the video and audio data are like the items being transported, while the container itself provides a structure and organization for the contents.'}),"\n",(0,n.jsx)(i.p,{children:"Some kinds of containers:"}),"\n",(0,n.jsx)(i.h4,{id:"mp4--m4v",children:"MP4 / M4V"}),"\n",(0,n.jsxs)(i.p,{children:["This is likely the most common container you've encountered, & has near universal compatibility. Has a limited maximum amount of streams. The supported video codecs are ",(0,n.jsx)(i.a,{href:"/docs/video/AVC",children:"H.264"}),", ",(0,n.jsx)(i.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,n.jsx)(i.a,{href:"/docs/video/VVC",children:"H.266"}),", DivX, Xvid, ",(0,n.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"})," (Unofficial, hacky), and ",(0,n.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," (Unofficial, hacky). For audio codecs it's many of the various flavors of ",(0,n.jsx)(i.a,{href:"/docs/audio/AAC",children:"AAC"}),", ",(0,n.jsx)(i.a,{href:"/docs/audio/MP3",children:"MP3"}),", ",(0,n.jsx)(i.a,{href:"/docs/audio/FLAC",children:"FLAC"})," (Unofficial), ",(0,n.jsx)(i.a,{href:"/docs/audio/Opus",children:"Opus"})," (Unofficial, hacky). For subtitles only MPEG-4 Timed Text (TTXT) is supported."]}),"\n",(0,n.jsx)(i.p,{children:"The best tool to work with this container is MP4Box, but FFmpeg also works."}),"\n",(0,n.jsx)(i.h4,{id:"mov",children:"MOV"}),"\n",(0,n.jsx)(i.p,{children:"Similar to MP4, but less supported. Made with Apple Quicktime in mind, supports ProRes."}),"\n",(0,n.jsx)(i.h4,{id:"mkv--mka--mks--mk3d",children:"MKV / MKA / MKS / MK3D"}),"\n",(0,n.jsx)(i.p,{children:"Also known as Matroska, allows an unlimited amount of video/audio/subtitle streams and any codec that probably still exists in Area 51, you can put literally anything in there and it won't even care, MPEG-2/DivX/H.266/Theora/Thor/RealVideo/MJPEG/AVS3/AMR-WB, you name it. All around best container for working with if you have the choice."}),"\n",(0,n.jsx)(i.h4,{id:"webm",children:"WebM"}),"\n",(0,n.jsxs)(i.p,{children:["A container made with web streaming in mind. WebM is a stripped-down subset of MKV that only allows free & open source codecs such as VP8, VP9 or AV1 for video alongside Vorbis or Opus for audio. It is a common misconception that ",(0,n.jsx)(i.a,{href:"/docs/subtitles/webvtt",children:"WebVTT"})," tracks always work natively in browsers when within a WebM container; in practice, WebMs containing WebVTT subtitles ",(0,n.jsx)(i.em,{children:"will usually not"})," play back the subtitles in browsers. WebVTT subtitles can be utilized with the ",(0,n.jsx)(i.code,{children:""})," element instead, meaning they exist outside the WebM container itself. More info in the ",(0,n.jsx)(i.a,{href:"https://developer.mozilla.org/en-US/docs/Web/Media/Audio_and_video_delivery/Adding_captions_and_subtitles_to_HTML5_video",children:"Mozilla Web Docs"}),"."]}),"\n",(0,n.jsx)(i.h2,{id:"transcoding",children:"Transcoding"}),"\n",(0,n.jsxs)(i.p,{children:["Taking an elementary stream & converting it to another format, lossless or lossy, using an encoder of some kind. For example, if I convert a lossless ",(0,n.jsx)(i.a,{href:"/docs/video/FFV1",children:"FFV1"})," video to a lossy AV1 video using an encoder like ",(0,n.jsx)(i.a,{href:"/docs/encoders/rav1e",children:"rav1e"}),", I have ",(0,n.jsx)(i.em,{children:"transcoded"})," this lossless video to AV1. Transcoding doesn't have anything to do with the container."]}),"\n",(0,n.jsx)(i.h2,{id:"rdo",children:"RDO"}),"\n",(0,n.jsxs)(i.p,{children:["RDO, or Rate-Distortion Optimization, is a technique used to find the best trade-off between the bit rate & the quality of lossily encoded content. RDO can be metric-based, optimizing to score well on metrics like ",(0,n.jsx)(i.a,{href:"/docs/metrics/PSNR",children:"PSNR"})," or ",(0,n.jsx)(i.a,{href:"/docs/metrics/SSIM",children:"SSIM"}),"."]}),"\n",(0,n.jsx)(i.h2,{id:"perceputal--psychovisual--psychoacoustic",children:"Perceputal / Psychovisual / Psychoacoustic"}),"\n",(0,n.jsxs)(i.p,{children:['"Psychovisual quality" (for videos), "Psychoacoustic quality" (for audio), or "perceptual quality" is a term used to describe the perception of quality of distorted media by the human senses. The goal of any multimedia codec is to minimize data while maintaining perceived quality, and optimizing around human perception theoretically yields the best performance within any limited set of coding techniques (like when using an older codec). Our model of human perception continues to evolve, which makes modelling perceptual quality very difficult. Presently, the metrics ',(0,n.jsx)(i.a,{href:"/docs/metrics/SSIMULACRA2",children:"SSIMULACRA2"})," (Images/Video) & ",(0,n.jsx)(i.a,{href:"/docs/metrics/butteraugli",children:"Butteraugli"})," (Video) are considered the most accurate to our human visual system."]}),"\n",(0,n.jsx)(i.h2,{id:"discrete-cosine-transform-dct",children:"Discrete Cosine Transform (DCT)"}),"\n",(0,n.jsx)(i.p,{children:"The Discrete Cosine Transform is a mathematical transformation that can transform discrete data into the frequency domain. This discrete data could be pixels in an image/video compression block or data points recorded temporally representing an audio recording. This algorithm is a particularly good choice for image, video, music, & speech compression because it has high energy compaction relative to our understanding of fidelity in media. High energy compaction means the DCT is able to represent a signal with a small number of significant coefficients."})]})}function h(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>r,x:()=>a});var n=t(6540);const o={},s=n.createContext(o);function r(e){const i=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),n.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6d85920a.6e752d07.js b/assets/js/6d85920a.6e752d07.js new file mode 100644 index 000000000..68e32e99b --- /dev/null +++ b/assets/js/6d85920a.6e752d07.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7800],{529:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>r,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"introduction/terminology","title":"Terminology","description":"When learning about encoding technology, it is important to understand the vast terminology that is often used to describe concepts that are often not very complex to understand.","source":"@site/docs/introduction/terminology.mdx","sourceDirName":"introduction","slug":"/introduction/terminology","permalink":"/docs/introduction/terminology","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/terminology.mdx","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"Terminology","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"Prologue","permalink":"/docs/introduction/prologue"},"next":{"title":"Lossless Compression","permalink":"/docs/introduction/lossless"}}');var o=t(4848),s=t(8453);const r={title:"Terminology",sidebar_position:2},a="Terminology",d={},c=[{value:"Bitstream",id:"bitstream",level:2},{value:"Lossy / Lossless",id:"lossy--lossless",level:2},{value:"Elementary stream",id:"elementary-stream",level:2},{value:"Muxing",id:"muxing",level:2},{value:"Codec",id:"codec",level:2},{value:"Filter",id:"filter",level:2},{value:"Muxer/Demuxer",id:"muxerdemuxer",level:2},{value:"Bitstream filter",id:"bitstream-filter",level:2},{value:"Container",id:"container",level:2},{value:"MP4 / M4V",id:"mp4--m4v",level:4},{value:"MOV",id:"mov",level:4},{value:"MKV / MKA / MKS / MK3D",id:"mkv--mka--mks--mk3d",level:4},{value:"WebM",id:"webm",level:4},{value:"Transcoding",id:"transcoding",level:2},{value:"RDO",id:"rdo",level:2},{value:"Perceputal / Psychovisual / Psychoacoustic",id:"perceputal--psychovisual--psychoacoustic",level:2},{value:"Discrete Cosine Transform (DCT)",id:"discrete-cosine-transform-dct",level:2}];function l(e){const i={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h4:"h4",header:"header",p:"p",strong:"strong",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.header,{children:(0,o.jsx)(i.h1,{id:"terminology",children:"Terminology"})}),"\n",(0,o.jsx)(i.p,{children:"When learning about encoding technology, it is important to understand the vast terminology that is often used to describe concepts that are often not very complex to understand."}),"\n",(0,o.jsx)(i.h2,{id:"bitstream",children:"Bitstream"}),"\n",(0,o.jsxs)(i.p,{children:["A ",(0,o.jsx)(i.em,{children:"bitstream"})," or ",(0,o.jsx)(i.em,{children:"bit stream"})," is a media file, the kind that is played in a media player. It consists of a ",(0,o.jsx)(i.a,{href:"#container",children:"container"})," wrapping multiple ",(0,o.jsx)(i.a,{href:"#elementary-stream",children:"elementary streams"})]}),"\n",(0,o.jsx)(i.h2,{id:"lossy--lossless",children:"Lossy / Lossless"}),"\n",(0,o.jsxs)(i.p,{children:[(0,o.jsx)(i.em,{children:"Lossy"})," encoding throws out some of the detail to achieve a smaller size. Often, this is an acceptable trade-off, but if you need a perfect recreation of the data, you need ",(0,o.jsx)(i.em,{children:"lossless"})," encoding."]}),"\n",(0,o.jsx)(i.h2,{id:"elementary-stream",children:"Elementary stream"}),"\n",(0,o.jsxs)(i.p,{children:["An elementary stream is an audio, video, or subtitle track. Basically, it's the compressed data you want to ",(0,o.jsx)(i.a,{href:"#muxing",children:"mux"})," into the container."]}),"\n",(0,o.jsx)(i.h2,{id:"muxing",children:"Muxing"}),"\n",(0,o.jsx)(i.p,{children:"Putting elementary streams into a container, which preserves them without making any changes to the data."}),"\n",(0,o.jsx)(i.h2,{id:"codec",children:"Codec"}),"\n",(0,o.jsxs)(i.p,{children:["A codec (",(0,o.jsx)(i.strong,{children:"co"}),"der/",(0,o.jsx)(i.strong,{children:"dec"}),"oder) is the piece of code that actually encodes the data you put in. It takes as input and produces as output an elementary stream. More information is provided ",(0,o.jsx)(i.a,{href:"/docs/introduction/prologue#what-is-a-codec",children:"in the prologue"}),' under "What is a Codec".']}),"\n",(0,o.jsx)(i.h2,{id:"filter",children:"Filter"}),"\n",(0,o.jsx)(i.p,{children:"A filter is a piece of code you can apply to the data to make something about it different, for instance sharpening, removing artifacts, shakiness, denoising, scaling, overlay, etc."}),"\n",(0,o.jsx)(i.h2,{id:"muxerdemuxer",children:"Muxer/Demuxer"}),"\n",(0,o.jsxs)(i.p,{children:["The pieces of code that ",(0,o.jsx)(i.a,{href:"#muxing",children:"mux"})," or do the reverse, getting elementary streams from the container."]}),"\n",(0,o.jsx)(i.h2,{id:"bitstream-filter",children:"Bitstream filter"}),"\n",(0,o.jsxs)(i.p,{children:["A bitstream filter is a filter that is directly applied to the ",(0,o.jsx)(i.a,{href:"#bitstream",children:"bitstream"})," in order to change something about the container, for instance, convert frame types, or corrupt some packets."]}),"\n",(0,o.jsx)(i.h2,{id:"container",children:"Container"}),"\n",(0,o.jsxs)(i.p,{children:["A container is a format for putting one or more elementary streams into one file, which is then called a ",(0,o.jsx)(i.a,{href:"#bitstream",children:"bitstream"}),"."]}),"\n",(0,o.jsx)(i.p,{children:'A video container is a digital file format that holds video and audio data, as well as additional information such as subtitles, metadata, and chapter markers. It acts as a "wrapper" that packages all these elements into a single file that can be played on various devices and software platforms. Think of it like a container you might use to transport goods - the video and audio data are like the items being transported, while the container itself provides a structure and organization for the contents.'}),"\n",(0,o.jsx)(i.p,{children:"Some kinds of containers:"}),"\n",(0,o.jsx)(i.h4,{id:"mp4--m4v",children:"MP4 / M4V"}),"\n",(0,o.jsxs)(i.p,{children:["This is likely the most common container you've encountered, & has near universal compatibility. Has a limited maximum amount of streams. The supported video codecs are ",(0,o.jsx)(i.a,{href:"/docs/video/AVC",children:"H.264"}),", ",(0,o.jsx)(i.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,o.jsx)(i.a,{href:"/docs/video/VVC",children:"H.266"}),", DivX, Xvid, ",(0,o.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"})," (Unofficial, hacky), and ",(0,o.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," (Unofficial, hacky). For audio codecs it's many of the various flavors of ",(0,o.jsx)(i.a,{href:"/docs/audio/AAC",children:"AAC"}),", ",(0,o.jsx)(i.a,{href:"/docs/audio/MP3",children:"MP3"}),", ",(0,o.jsx)(i.a,{href:"/docs/audio/FLAC",children:"FLAC"})," (Unofficial), ",(0,o.jsx)(i.a,{href:"/docs/audio/Opus",children:"Opus"})," (Unofficial, hacky). For subtitles only MPEG-4 Timed Text (TTXT) is supported."]}),"\n",(0,o.jsx)(i.p,{children:"The best tool to work with this container is MP4Box, but FFmpeg also works."}),"\n",(0,o.jsx)(i.h4,{id:"mov",children:"MOV"}),"\n",(0,o.jsx)(i.p,{children:"Similar to MP4, but less supported. Made with Apple Quicktime in mind, supports ProRes."}),"\n",(0,o.jsx)(i.h4,{id:"mkv--mka--mks--mk3d",children:"MKV / MKA / MKS / MK3D"}),"\n",(0,o.jsx)(i.p,{children:"Also known as Matroska, allows an unlimited amount of video/audio/subtitle streams and any codec that probably still exists in Area 51, you can put literally anything in there and it won't even care, MPEG-2/DivX/H.266/Theora/Thor/RealVideo/MJPEG/AVS3/AMR-WB, you name it. All around best container for working with if you have the choice."}),"\n",(0,o.jsx)(i.h4,{id:"webm",children:"WebM"}),"\n",(0,o.jsxs)(i.p,{children:["A container made with web streaming in mind. WebM is a stripped-down subset of MKV that only allows free & open source codecs such as VP8, VP9 or AV1 for video alongside Vorbis or Opus for audio. It is a common misconception that ",(0,o.jsx)(i.a,{href:"/docs/subtitles/webvtt",children:"WebVTT"})," tracks always work natively in browsers when within a WebM container; in practice, WebMs containing WebVTT subtitles ",(0,o.jsx)(i.em,{children:"will usually not"})," play back the subtitles in browsers. WebVTT subtitles can be utilized with the ",(0,o.jsx)(i.code,{children:""})," element instead, meaning they exist outside the WebM container itself. More info in the ",(0,o.jsx)(i.a,{href:"https://developer.mozilla.org/en-US/docs/Web/Media/Audio_and_video_delivery/Adding_captions_and_subtitles_to_HTML5_video",children:"Mozilla Web Docs"}),"."]}),"\n",(0,o.jsx)(i.h2,{id:"transcoding",children:"Transcoding"}),"\n",(0,o.jsxs)(i.p,{children:["Taking an elementary stream & converting it to another format, lossless or lossy, using an encoder of some kind. For example, if I convert a lossless ",(0,o.jsx)(i.a,{href:"/docs/video/FFV1",children:"FFV1"})," video to a lossy AV1 video using an encoder like ",(0,o.jsx)(i.a,{href:"/docs/encoders/rav1e",children:"rav1e"}),", I have ",(0,o.jsx)(i.em,{children:"transcoded"})," this lossless video to AV1. Transcoding doesn't have anything to do with the container."]}),"\n",(0,o.jsx)(i.h2,{id:"rdo",children:"RDO"}),"\n",(0,o.jsxs)(i.p,{children:["RDO, or Rate-Distortion Optimization, is a technique used to find the best trade-off between the bit rate & the quality of lossily encoded content. RDO can be metric-based, optimizing to score well on metrics like ",(0,o.jsx)(i.a,{href:"/docs/metrics/PSNR",children:"PSNR"})," or ",(0,o.jsx)(i.a,{href:"/docs/metrics/SSIM",children:"SSIM"}),"."]}),"\n",(0,o.jsx)(i.h2,{id:"perceputal--psychovisual--psychoacoustic",children:"Perceputal / Psychovisual / Psychoacoustic"}),"\n",(0,o.jsxs)(i.p,{children:['"Psychovisual quality" (for videos), "Psychoacoustic quality" (for audio), or "perceptual quality" is a term used to describe the perception of quality of distorted media by the human senses. The goal of any multimedia codec is to minimize data while maintaining perceived quality, and optimizing around human perception theoretically yields the best performance within any limited set of coding techniques (like when using an older codec). Our model of human perception continues to evolve, which makes modelling perceptual quality very difficult. Presently, the metrics ',(0,o.jsx)(i.a,{href:"/docs/metrics/SSIMULACRA2",children:"SSIMULACRA2"})," (Images/Video) & ",(0,o.jsx)(i.a,{href:"/docs/metrics/butteraugli",children:"Butteraugli"})," (Video) are considered the most accurate to our human visual system."]}),"\n",(0,o.jsx)(i.h2,{id:"discrete-cosine-transform-dct",children:"Discrete Cosine Transform (DCT)"}),"\n",(0,o.jsx)(i.p,{children:"The Discrete Cosine Transform is a mathematical transformation that can transform discrete data into the frequency domain. This discrete data could be pixels in an image/video compression block or data points recorded temporally representing an audio recording. This algorithm is a particularly good choice for image, video, music, & speech compression because it has high energy compaction relative to our understanding of fidelity in media. High energy compaction means the DCT is able to represent a signal with a small number of significant coefficients."})]})}function h(e={}){const{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>r,x:()=>a});var n=t(6540);const o={},s=n.createContext(o);function r(e){const i=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),n.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/70006292.b08b43f4.js b/assets/js/70006292.b08b43f4.js deleted file mode 100644 index cfae42a56..000000000 --- a/assets/js/70006292.b08b43f4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9987],{1359:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>c,default:()=>h,frontMatter:()=>i,metadata:()=>s,toc:()=>d});var r=n(4848),o=n(8453);const i={title:"x266",sidebar_position:3},c="x266",s={id:"encoders/x266",title:"x266",description:"x266 is an upcoming software encoder for the H.266 / VVC codec. Very little is currently known about the encoder other than the fact it is still being developed by MulticoreWare",source:"@site/docs/encoders/x266.mdx",sourceDirName:"encoders",slug:"/encoders/x266",permalink:"/docs/encoders/x266",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/x266.mdx",tags:[],version:"current",sidebarPosition:3,frontMatter:{title:"x266",sidebar_position:3},sidebar:"tutorialSidebar",previous:{title:"x265",permalink:"/docs/encoders/x265"},next:{title:"aomenc",permalink:"/docs/encoders/aomenc"}},a={},d=[];function l(e){const t={a:"a",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"x266",children:"x266"})}),"\n",(0,r.jsxs)(t.p,{children:["x266 is an upcoming software encoder for the ",(0,r.jsx)(t.a,{href:"/docs/video/VVC",children:"H.266 / VVC"})," codec. Very little is currently known about the encoder other than the fact it is still being developed by ",(0,r.jsx)(t.a,{href:"https://multicorewareinc.com",children:"MulticoreWare"}),"\nand it's dedicated FAQ page after the ",(0,r.jsx)(t.a,{href:"https://multicorewareinc.com/faq-webinar/x266-faq.html",children:"31st January 2023 Webinar FAQ"}),"."]}),"\n",(0,r.jsx)(t.p,{children:'According to their FAQ, H2 2023 is their "very rough and approximate" ETA for a v1.0 public release, but so far there have been no updates as of 29th March, 2024.'})]})}function h(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>c,x:()=>s});var r=n(6540);const o={},i=r.createContext(o);function c(e){const t=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),r.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/70006292.c60b7b8c.js b/assets/js/70006292.c60b7b8c.js new file mode 100644 index 000000000..4e0d3dfad --- /dev/null +++ b/assets/js/70006292.c60b7b8c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9987],{6887:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>s,default:()=>u,frontMatter:()=>c,metadata:()=>r,toc:()=>d});const r=JSON.parse('{"id":"encoders/x266","title":"x266","description":"x266 is an upcoming software encoder for the H.266 / VVC codec. Very little is currently known about the encoder other than the fact it is still being developed by MulticoreWare","source":"@site/docs/encoders/x266.mdx","sourceDirName":"encoders","slug":"/encoders/x266","permalink":"/docs/encoders/x266","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/x266.mdx","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"title":"x266","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"x265","permalink":"/docs/encoders/x265"},"next":{"title":"aomenc","permalink":"/docs/encoders/aomenc"}}');var o=n(4848),i=n(8453);const c={title:"x266",sidebar_position:3},s="x266",a={},d=[];function l(e){const t={a:"a",h1:"h1",header:"header",p:"p",...(0,i.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"x266",children:"x266"})}),"\n",(0,o.jsxs)(t.p,{children:["x266 is an upcoming software encoder for the ",(0,o.jsx)(t.a,{href:"/docs/video/VVC",children:"H.266 / VVC"})," codec. Very little is currently known about the encoder other than the fact it is still being developed by ",(0,o.jsx)(t.a,{href:"https://multicorewareinc.com",children:"MulticoreWare"}),"\nand it's dedicated FAQ page after the ",(0,o.jsx)(t.a,{href:"https://multicorewareinc.com/faq-webinar/x266-faq.html",children:"31st January 2023 Webinar FAQ"}),"."]}),"\n",(0,o.jsx)(t.p,{children:'According to their FAQ, H2 2023 is their "very rough and approximate" ETA for a v1.0 public release, but so far there have been no updates as of 14th October, 2024.'})]})}function u(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>c,x:()=>s});var r=n(6540);const o={},i=r.createContext(o);function c(e){const t=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),r.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/70de1c07.0b62591d.js b/assets/js/70de1c07.0b62591d.js deleted file mode 100644 index d20ea18e5..000000000 --- a/assets/js/70de1c07.0b62591d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[544],{1165:(e,t,s)=>{s.d(t,{Ck:()=>h,kS:()=>d});var i=s(4848),o=s(8453),n=s(6540),a=s(4016),r=s(3517),c=s(3343),l=s(3864),u=s(8633),m=s(363);const h=({imageData:e,pixelsAbove:t,pixelsBelow:s})=>{const n={div:"div",...(0,o.R)()},l=({currentSlide:e,direction:t,slideCount:s,...o})=>"left"===t?(0,i.jsx)(u.A,{...o,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,left:10}}):(0,i.jsx)(m.A,{...o,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,right:10}});return(!t||t<0)&&(t=0),(!s||s<0)&&(s=0),(0,i.jsxs)(a.A,{justify:"space-between",vertical:!0,children:[(0,i.jsx)(n.div,{style:{height:`${t}px`}}),(0,i.jsx)(r.A,{arrows:!0,prevArrow:(0,i.jsx)(l,{direction:"left"}),nextArrow:(0,i.jsx)(l,{direction:"right"}),children:e.map((e=>(0,i.jsx)(c.A,{src:e.src},e.src)))}),(0,i.jsx)(n.div,{style:{height:`${s}px`}})]})},d=({tabMap:e,pixelsAbove:t,pixelsBelow:s})=>{const r={div:"div",...(0,o.R)()},[c,u]=(0,n.useState)(Object.keys(e)[0]);return(!t||t<0)&&(t=0),(!s||s<0)&&(s=0),(0,i.jsxs)(a.A,{justify:"space-between",vertical:!0,children:[(0,i.jsx)(r.div,{style:{height:`${t}px`}}),(0,i.jsx)(l.A,{tabList:Object.entries(e).map((([e,t])=>({key:e,label:t.label}))),activeTabKey:c,onTabChange:e=>{u(e)},children:e[c].component}),(0,i.jsx)(r.div,{style:{height:`${s}px`}})]})}},850:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>l,contentTitle:()=>r,default:()=>h,frontMatter:()=>a,metadata:()=>c,toc:()=>u});var i=s(4848),o=s(8453),n=s(1165);const a={title:"Encoding Animation with SVT-AV1: A Deep Dive",description:"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?",slug:"svt-av1-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-1.8.0-testing-blog-image.webp",hide_table_of_contents:!1},r="Introduction",c={permalink:"/blog/svt-av1-deep-dive",source:"@site/blog/2023-12-30-svt-av1-deep-dive.mdx",title:"Encoding Animation with SVT-AV1: A Deep Dive",description:"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?",date:"2023-12-30T00:00:00.000Z",tags:[{inline:!0,label:"video",permalink:"/blog/tags/video"},{inline:!0,label:"compression",permalink:"/blog/tags/compression"},{inline:!0,label:"benchmarks",permalink:"/blog/tags/benchmarks"}],readingTime:22.78,hasTruncateMarker:!0,authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043",imageURL:"https://avatars.githubusercontent.com/u/93526043",key:null,page:null}],frontMatter:{title:"Encoding Animation with SVT-AV1: A Deep Dive",description:"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?",slug:"svt-av1-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043",imageURL:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-1.8.0-testing-blog-image.webp",hide_table_of_contents:!1},unlisted:!1,prevItem:{title:"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive",permalink:"/blog/svt-av1-second-deep-dive"},nextItem:{title:"Embedding the Un-Embeddable",permalink:"/blog/embedding-the-un-embeddable"}},l={authorsImageUrls:[void 0]},u=[{value:"Samples",id:"samples",level:2},{value:"Presets comparisons (-1 -> 13)",id:"presets-comparisons--1---13",level:2},{value:"TLDR",id:"tldr",level:3},{value:"Tunes comparisons",id:"tunes-comparisons",level:2},{value:"TLDR",id:"tldr-1",level:3},{value:"Parameters comparisons",id:"parameters-comparisons",level:2},{value:"--tile-rows 1 --tile-columns 1 vs default --tile-rows 0 --tile-columns 0",id:"--tile-rows-1---tile-columns-1-vs-default---tile-rows-0---tile-columns-0",level:3},{value:"--aq-mode 0 vs default --aq-mode 2",id:"--aq-mode-0-vs-default---aq-mode-2",level:3},{value:"--aq-mode 1 vs default --aq-mode 2",id:"--aq-mode-1-vs-default---aq-mode-2",level:3},{value:"--enable-cdef 0 vs default --enable-cdef 1",id:"--enable-cdef-0-vs-default---enable-cdef-1",level:3},{value:"--enable-dg 0 vs default --enable-dg 1",id:"--enable-dg-0-vs-default---enable-dg-1",level:3},{value:"--enable-dlf 0 vs default --enable-dlf 1",id:"--enable-dlf-0-vs-default---enable-dlf-1",level:3},{value:"--fast-decode 1 vs default --fast-decode 0",id:"--fast-decode-1-vs-default---fast-decode-0",level:3},{value:"--irefresh-type 1 vs default --irefresh-type 2",id:"--irefresh-type-1-vs-default---irefresh-type-2",level:3},{value:"--lookahead 0 vs default --lookahead -1 (auto)",id:"--lookahead-0-vs-default---lookahead--1-auto",level:3},{value:"--lookahead 60 vs default --lookahead -1 (auto)",id:"--lookahead-60-vs-default---lookahead--1-auto",level:3},{value:"--lookahead 120 (max) vs default --lookahead -1 (auto)",id:"--lookahead-120-max-vs-default---lookahead--1-auto",level:3},{value:"--enable-overlays 1 vs default --enable-overlays 0",id:"--enable-overlays-1-vs-default---enable-overlays-0",level:3},{value:"--enable-qm 1 vs default --enable-qm 0",id:"--enable-qm-1-vs-default---enable-qm-0",level:3},{value:"--enable-qm 1 --qm-min 0 vs --enable-qm 1",id:"--enable-qm-1---qm-min-0-vs---enable-qm-1",level:3},{value:"--enable-restoration 0 vs default --enable-restoration 1",id:"--enable-restoration-0-vs-default---enable-restoration-1",level:3},{value:"--scm 0 vs default --scm 2 (content adaptive)",id:"--scm-0-vs-default---scm-2-content-adaptive",level:3},{value:"--scm 1 vs default --scm 2 (content adaptive)",id:"--scm-1-vs-default---scm-2-content-adaptive",level:3},{value:"--enable-tf 0 vs default --enable-tf 1",id:"--enable-tf-0-vs-default---enable-tf-1",level:3},{value:"--enable-tpl-la 0 vs default --enable-tpl-la 1",id:"--enable-tpl-la-0-vs-default---enable-tpl-la-1",level:3},{value:"superres:",id:"superres",level:3},{value:"Early TLDR on parameters results:",id:"early-tldr-on-parameters-results",level:3},{value:"Conclusion",id:"conclusion",level:2}];function m(e){const t={a:"a",blockquote:"blockquote",code:"code",del:"del",em:"em",h2:"h2",h3:"h3",img:"img",li:"li",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.p,{children:"This blog post is based on a series of visual quality benchmarks with SSIMULACRA2 and speed benchmarks of SVT-AV1 1.8.0 on a corpus of animated clips."}),"\n",(0,i.jsxs)(t.p,{children:["The resources available will range from ",(0,i.jsx)(t.em,{children:(0,i.jsx)(t.strong,{children:"graphs"})})," to ",(0,i.jsx)(t.del,{children:(0,i.jsx)(t.strong,{children:"image comparisons"})})," (WIP). The ",(0,i.jsx)(t.em,{children:(0,i.jsx)(t.strong,{children:"former"})})," has the advantage of being easily understandable, showcasing pure efficiency comparisons between encoder parameters using metrics as the reference, while the ",(0,i.jsx)(t.strong,{children:"latter"})," are image samples from the encoded files during the tests that enable you to check quality for yourself and add another layer of subjective interpretation to these comparisons."]}),"\n",(0,i.jsxs)(t.p,{children:["The testing methodology involves using relatively short video samples from a wide range of modern anime genre, which have been either losslessly encoded with ",(0,i.jsx)(t.code,{children:"x264 --qp 0"})," for ease of use or losslessly cut from their source. These lossless files are then pipped into SvtAv1EncApp ",(0,i.jsx)(t.em,{children:"directly"}),", meaning we are measuring the performance of a single encoder instance and not leveraging chunked encoding like any actual final AV1 encoding pipeline should. Once an encode is done, SSIMULACRA2 scores are calculated using the ",(0,i.jsx)(t.a,{href:"https://github.com/dnjulek/vapoursynth-ssimulacra2",children:"Zig implementation"})," and lots of useful data are aggregated to make the graphs for this benchmark, including encoding time, encode size (bitrate), and SSIMULACRA2 scores. Bits per pixel scores (BPP) are calculated so that the ",(0,i.jsx)(t.code,{children:"Metric / BPP"})," graphs may represent the closest we have to real efficiency."]}),"\n",(0,i.jsx)(t.p,{children:"The clips used in this test were acquired legally. The Codec Wiki and its contributors do not endorse media piracy."}),"\n",(0,i.jsxs)(t.p,{children:["SvtAv1EncApp was compiled directly from the ",(0,i.jsx)(t.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/v1.8.0",children:"v1.8.0 source code"})," using the provided ",(0,i.jsx)(t.code,{children:"Build/linux/build.sh"})," script, Clang 16.0.6, and Profile-Guided Optimization (PGO). The testing machine is comprised of an i7 8750H running at 35W with 16GB of 2666MHz DDR4 RAM in Arch Linux with kernel 6.6.6 and the performance governor enabled. All encodes have been made in the same session without rebooting."]}),"\n",(0,i.jsxs)(t.p,{children:["This testing was conducted within the ",(0,i.jsx)(t.a,{href:"https://discord.gg/83dRFDFDp7",children:"AV1 Weeb Edition"})," Discord server, which is focused on encoding animated content in AV1."]}),"\n",(0,i.jsx)(t.h2,{id:"samples",children:"Samples"}),"\n",(0,i.jsx)(t.p,{children:"The samples are as follows:"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:["11s ",(0,i.jsx)(t.code,{children:"Blame!"})," clip which sports 3DCG action with lots of grain, effects and high-contrast elements. Most complex source of this set."]}),"\n",(0,i.jsxs)(t.li,{children:["13s ",(0,i.jsx)(t.code,{children:"Blue Lock"})," clip which sports rapid camera movements and rotations + high-contrast elements."]}),"\n",(0,i.jsxs)(t.li,{children:["15s ",(0,i.jsx)(t.code,{children:"Fate/Grand Order: Babylonia"})," relatively slow-paced clip with lots of effects still. Easiest source of this set but easy sources still give interesting data."]}),"\n",(0,i.jsxs)(t.li,{children:["22s ",(0,i.jsx)(t.code,{children:"Jigokuraku (Hell's Paradise)"})," flashback clip with huge static grain in a very dark scenery and some action."]}),"\n",(0,i.jsxs)(t.li,{children:["14s ",(0,i.jsx)(t.code,{children:"Kaguya-sama"})," opening sequence with lots of effects and fast change of scenery.\nThe resolution of every clip is 1080p, except for the first one which is 1920x804."]}),"\n"]}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsx)(t.p,{children:(0,i.jsxs)(t.strong,{children:["All clips have been encoded in a wide quality range, from ",(0,i.jsx)(t.code,{children:"--crf 8"})," to ",(0,i.jsx)(t.code,{children:"--crf 43"}),"."]})}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"Without further ado, let's start with the first comparisons!"}),"\n",(0,i.jsx)(t.h2,{id:"presets-comparisons--1---13",children:"Presets comparisons (-1 -> 13)"}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsxs)(t.strong,{children:["In the following graphs, you may find comparisons between all SVT-AV1 presets, ranging from the slowest ",(0,i.jsx)(t.code,{children:"--preset -1"})," to the fastest ",(0,i.jsx)(t.code,{children:"--preset 13"}),"."]}),"\n",(0,i.jsx)(t.em,{children:"Please remember that these two extreme presets are meant for development purposes and as such should not be used in normal encoding conditions. You will soon understand why."})]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.code,{children:"--preset X"})," is the only parameter used here, in conjunction with the CRF values. That means everything else is default. The defaults worth mentioning are:"]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.code,{children:"--tune 1"}),": tune PSNR"]}),"\n"]}),"\n",(0,i.jsxs)(t.li,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.code,{children:"--aq-mode 2"}),": variance deltaq"]}),"\n"]}),"\n",(0,i.jsxs)(t.li,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.code,{children:"--enable-qm 0"}),": quantisation matrices disabled"]}),"\n"]}),"\n",(0,i.jsxs)(t.li,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.code,{children:"--irefresh-type 2"}),": closed GOP"]}),"\n"]}),"\n",(0,i.jsxs)(t.li,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.code,{children:"--enable-tf 1"}),": temporal filtering enabled\nAnd more, like CDEF and restoration enabled, overlays and film-grain disabled..."]}),"\n"]}),"\n",(0,i.jsxs)(t.li,{children:["\n",(0,i.jsx)(t.p,{children:"First of all, here are the efficiency graphs:"}),"\n"]}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-graphs/SVT4_blame.webp",alt:"Blame!.h264 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-graphs/SVT4_bluelock.webp",alt:"BlueLock.h264 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-graphs/SVT4_fate.webp",alt:"Fate.h264 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-graphs/SVT4_jigokuraku.webp",alt:"Jigokuraku.h264 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-graphs/SVT4_kaguya.webp",alt:"Kaguya.h264 Efficiency Graph"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsx)(t.p,{children:"This could be too much information."}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:'Now the same graphs but focusing on the "high quality" range (CRF8 -> 23):'}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq/SVT4_blame.webp",alt:"blame High Quality Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq/SVT4_bluelock.webp",alt:"bluelock High Quality Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq/SVT4_fate.webp",alt:"fate High Quality Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq/SVT4_jigokuraku.webp",alt:"jigokuraku High Quality Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq/SVT4_kaguya.webp",alt:"kaguya High Quality Efficiency Graph"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Same again but without presets 9 to 13 for better clarity:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq-slow/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq-slow/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq-slow/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq-slow/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq-slow/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:'Now for the "low quality" range (CRF28 -> 43):'}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Same but without presets 9 to 13 for better clarity:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq-slow/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq-slow/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq-slow/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq-slow/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq-slow/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:(0,i.jsx)(t.strong,{children:"Let's now see speed comparisons between all presets:"})}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed_overall.webp",alt:"speed_overall"})}),"\n",(0,i.jsxs)(t.p,{children:["As we can see, preset -1 is so abysmally slow it makes the graph unusable\n(BTW, notice the ",(0,i.jsx)(t.code,{children:"1e6"})," in the lower right corner, it is obviously not encoding at 1 to 4 ms, but at 1 000 000 to 4 000 000 ms)"]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Here is what it looks like with a logarithmic scale:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-bpp/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-bpp/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-bpp/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-bpp/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-bpp/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:(0,i.jsx)(t.strong,{children:"Now the speed graphs but with SSIMU2 on the y-axis instead of BPP: (logarithmic scale)"})}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-ssimu2/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-ssimu2/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-ssimu2/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-ssimu2/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-ssimu2/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Here are speeds graphs for preset 1 to 6 with a linear scale:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-linear-bpp/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-linear-bpp/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-linear-bpp/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-linear-bpp/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-linear-bpp/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.p,{children:["One interpretation we can have is that ",(0,i.jsx)(t.strong,{children:"presets 2 to 4"})," have actually pretty close scores (pretty much the same at HQ, 2 points at max in the low quality range) but ",(0,i.jsx)(t.strong,{children:"preset 2"})," is ",(0,i.jsx)(t.strong,{children:"2x slower than preset 4"}),". The quality gap between ",(0,i.jsx)(t.strong,{children:"preset 2"})," and ",(0,i.jsx)(t.strong,{children:"preset 1"})," is even narrower but the speed penalty is also ~2x."]}),"\n",(0,i.jsxs)(t.p,{children:["That makes it hard to recommend ",(0,i.jsx)(t.strong,{children:"preset 1"}),", while ",(0,i.jsx)(t.strong,{children:"preset 3"})," is in a strange middle ground between ",(0,i.jsx)(t.strong,{children:"2"})," and ",(0,i.jsx)(t.strong,{children:"4"})," where it makes little sense to choose it over those two: it's better to choose ",(0,i.jsx)(t.strong,{children:"preset 2"})," for the higher efficiency at 1.5x slower speeds, or ",(0,i.jsx)(t.strong,{children:"preset 4"})," for the 1.33 to 1.5x higher speeds. At least the option exists."]}),"\n",(0,i.jsxs)(t.p,{children:["A similar observation can be made between ",(0,i.jsx)(t.strong,{children:"preset 5"})," and ",(0,i.jsx)(t.strong,{children:"6"}),". They can be so close in scores in many samples (especially at HQ) while also being close in speeds that ",(0,i.jsx)(t.strong,{children:"preset 5"})," becomes rather obsolete most of the time."]}),"\n",(0,i.jsx)(t.h3,{id:"tldr",children:"TLDR"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.strong,{children:"Clear quality gains can be observed as we decrease presets, until the very last one, however the effectiveness of dropping presets becomes less and less impressive the higher in quality you go."})}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:["\n",(0,i.jsxs)(t.p,{children:["For instance, in worst-case scenario, we observe that (for the CRF23 to CRF8 range), ",(0,i.jsx)(t.strong,{children:(0,i.jsx)(t.strong,{children:"preset 4"})})," only loses at maximum ",(0,i.jsx)(t.strong,{children:"2"})," SSIMU2 ",(0,i.jsx)(t.strong,{children:"points"})," compared to ",(0,i.jsx)(t.strong,{children:(0,i.jsx)(t.strong,{children:"preset -1"})})," while being 50-60x faster. Though to be fair, the speed loss from ",(0,i.jsx)(t.strong,{children:(0,i.jsx)(t.strong,{children:"preset 4"})})," to ",(0,i.jsx)(t.strong,{children:(0,i.jsx)(t.strong,{children:"preset 0"})}),' is "only" 5-10x for a maximum SSIMU2 difference close to ',(0,i.jsx)(t.strong,{children:"1.5 point"}),"."]}),"\n"]}),"\n",(0,i.jsxs)(t.li,{children:["\n",(0,i.jsxs)(t.p,{children:["From CRF43 to CRF28, the difference between ",(0,i.jsx)(t.strong,{children:(0,i.jsx)(t.strong,{children:"preset 4"})})," and ",(0,i.jsx)(t.strong,{children:(0,i.jsx)(t.strong,{children:"preset -1"})})," can be as much as ",(0,i.jsx)(t.strong,{children:"5"})," SSIMU2 ",(0,i.jsx)(t.strong,{children:"points"}),", so lower presets become more attractive."]}),"\n"]}),"\n"]}),"\n",(0,i.jsx)(t.h2,{id:"tunes-comparisons",children:"Tunes comparisons"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsxs)(t.strong,{children:["In the following graphs, you may find comparisons between SVT-AV1 tunes, from the default ",(0,i.jsx)(t.code,{children:"--tune 1"})," (PSNR) to the other two tunes: ",(0,i.jsx)(t.code,{children:"--tune 0"})," (VQ) and ",(0,i.jsx)(t.code,{children:"--tune 2"})," (SSIM)."]})}),"\n",(0,i.jsxs)(t.p,{children:["Except for the tunes, ",(0,i.jsx)(t.code,{children:"--preset 4"})," is set due to its good balance of quality and speed, in conjunction with the CRF values. That means everything else is default. The defaults have been mentioned earlier above."]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:(0,i.jsx)(t.strong,{children:"Let's compare the efficiency of every tunes:"})}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:'Now let\'s focus on the "high quality" range (CRF8 -> 23):'}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-highq/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-highq/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-highq/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-highq/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-highq/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:'And the "low quality" range (CRF28 -> 43):'}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-lowq/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-lowq/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-lowq/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-lowq/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-lowq/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"And here is the speed difference:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Graphs comparing the tunes individually between each others will be made available soon."}),"\n",(0,i.jsx)(t.li,{children:"The image comparisons will make the conclusion quite more nuanced, stay tuned (heheh) for that."}),"\n"]}),"\n",(0,i.jsx)(t.h3,{id:"tldr-1",children:"TLDR"}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsxs)(t.strong,{children:["SSIMU2 favors ",(0,i.jsx)(t.strong,{children:"tune 1 and 2"})," above ",(0,i.jsx)(t.strong,{children:"tune 0"}),". At high quality, ",(0,i.jsx)(t.strong,{children:"tune 1 and 2"})," are matched, while at low quality ",(0,i.jsx)(t.strong,{children:"tune 2"})," takes the edge. ",(0,i.jsx)(t.strong,{children:"Tune 0"})," is sometimes a match for the other two on certain clips and other times fare pretty badly."]}),"\n",(0,i.jsxs)(t.strong,{children:["For some reason, ",(0,i.jsx)(t.strong,{children:"tune 0"})," is quite a bit faster now, compared to 1 and 2 which are basically the same."]})]}),"\n",(0,i.jsxs)(t.p,{children:["Keep in mind that I have observed multiple times in the past that ",(0,i.jsx)(t.strong,{children:"tune 0"})," kept more fine detail and was sharper than the other tunes, at the expense of potential artifacting, like ringing and distortion. It may very well explain why the metric doesn't like its results. The image comparisons may give a different interpretation than what we concluded here, please stay ",(0,i.jsx)(t.em,{children:"tuned"})," for these subjective comparisons."]}),"\n",(0,i.jsx)(t.h2,{id:"parameters-comparisons",children:"Parameters comparisons"}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"In the following graphs, you may find comparisons between many SVT-AV1 parameters."}),"\n",(0,i.jsx)(t.em,{children:"Additional graphs focusing on the high and low qualities will be made available later down the line"})]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.code,{children:"--preset 4"})," is used here due to its good balance of quality and speed, in conjunction with the CRF values. That means everything else is default. The defaults have been mentioned earlier above."]}),"\n",(0,i.jsxs)(t.h3,{id:"--tile-rows-1---tile-columns-1-vs-default---tile-rows-0---tile-columns-0",children:[(0,i.jsx)(t.code,{children:"--tile-rows 1 --tile-columns 1"})," vs default ",(0,i.jsx)(t.code,{children:"--tile-rows 0 --tile-columns 0"})]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"tiles"})," here are both slightly harmful and slower."]}),"\n"]}),"\n",(0,i.jsxs)(t.h3,{id:"--aq-mode-0-vs-default---aq-mode-2",children:[(0,i.jsx)(t.code,{children:"--aq-mode 0"})," vs default ",(0,i.jsx)(t.code,{children:"--aq-mode 2"})]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:["Except for the Jigokuraku clip, ",(0,i.jsx)(t.strong,{children:"aq-mode 0"})," is harmful in the eyes of SSIMU2, while being slower at low CRF levels, and sometimes a match or faster at high CRF levels."]}),"\n"]}),"\n",(0,i.jsxs)(t.h3,{id:"--aq-mode-1-vs-default---aq-mode-2",children:[(0,i.jsx)(t.code,{children:"--aq-mode 1"})," vs default ",(0,i.jsx)(t.code,{children:"--aq-mode 2"})]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"aq-mode 1"})," fares closer to ",(0,i.jsx)(t.strong,{children:"aq-mode 2"})," than ",(0,i.jsx)(t.strong,{children:"aq-mode 0"})," did, both in quality and speed, but is still overall inferior according to SSIMU2"]}),"\n"]}),"\n",(0,i.jsxs)(t.h3,{id:"--enable-cdef-0-vs-default---enable-cdef-1",children:[(0,i.jsx)(t.code,{children:"--enable-cdef 0"})," vs default ",(0,i.jsx)(t.code,{children:"--enable-cdef 1"})]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:["According to SSIMU2, disabling CDEF barely impact efficiency. But as its a pretty demanding tool, there's a slight speed benefit of having it disabled too. I advise you to take these results with a grain of salt until the image comparisons, because in anime particularly, CDEF ",(0,i.jsx)(t.em,{children:"can"})," be beneficial for the line-art."]}),"\n"]}),"\n",(0,i.jsxs)(t.h3,{id:"--enable-dg-0-vs-default---enable-dg-1",children:[(0,i.jsx)(t.code,{children:"--enable-dg 0"})," vs default ",(0,i.jsx)(t.code,{children:"--enable-dg 1"})]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"Dynamic GoP control"})," yields bit-perfect results in all clips except for Blue Lock and Jigokuraku. There is no speed benefit to disabling it except in clips where it is in use. Let's not jump to conclusions too easily, the image comparisons will tell if it's \"safe\" to keep the setting disabled at all times or not."]}),"\n"]}),"\n",(0,i.jsxs)(t.h3,{id:"--enable-dlf-0-vs-default---enable-dlf-1",children:[(0,i.jsx)(t.code,{children:"--enable-dlf 0"})," vs default ",(0,i.jsx)(t.code,{children:"--enable-dlf 1"})]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"Deblocking loop filter"})," can be slightly beneficial in some scenarios. In reverse, it is never harmful, so it is recommended to keep it default."]}),"\n"]}),"\n",(0,i.jsxs)(t.h3,{id:"--fast-decode-1-vs-default---fast-decode-0",children:[(0,i.jsx)(t.code,{children:"--fast-decode 1"})," vs default ",(0,i.jsx)(t.code,{children:"--fast-decode 0"})]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"fast-decode 1"})," is pretty harmful in the Fate clip and slightly harmful in the rest. There is a speed benefit of enabling it though."]}),"\n"]}),"\n",(0,i.jsxs)(t.h3,{id:"--irefresh-type-1-vs-default---irefresh-type-2",children:[(0,i.jsx)(t.code,{children:"--irefresh-type 1"})," vs default ",(0,i.jsx)(t.code,{children:"--irefresh-type 2"})]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsx)(t.p,{children:"Finally something interesting to analyse!"}),"\n"]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"irefresh-type 1"})," is either a match or beneficial compared to ",(0,i.jsx)(t.strong,{children:"irefresh-type 2"})," at high CRF levels."]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"irefresh-type 1"})," either wins or lose to ",(0,i.jsx)(t.strong,{children:"irefresh-type 2"})," at low CRF levels depending on the clip. As such, it is NOT recommended to blindly set ",(0,i.jsx)(t.strong,{children:"irefresh-type"})," to ",(0,i.jsx)(t.strong,{children:"1"}),' at "high quality" as it might be harmful depending on the content.']}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"irefresh-type 1"})," is always slower compared to ",(0,i.jsx)(t.strong,{children:"irefresh-type 2"}),", so I might argue it is more safe to leave ",(0,i.jsx)(t.strong,{children:"irefresh-type"}),' default at "high quality" than not.']}),"\n",(0,i.jsxs)(t.li,{children:["According to the content type of those clips, it appears that ",(0,i.jsx)(t.strong,{children:"irefresh-type 1"})," may benefit ",(0,i.jsx)(t.em,{children:"extremely grainy"})," content while default ",(0,i.jsx)(t.strong,{children:"irefresh-type 2"})," is better suited for ",(0,i.jsx)(t.em,{children:"cleanish"})," content. This needs to be confirmed with ",(0,i.jsx)(t.em,{children:"moar"})," testing though."]}),"\n"]}),"\n",(0,i.jsxs)(t.h3,{id:"--lookahead-0-vs-default---lookahead--1-auto",children:[(0,i.jsx)(t.code,{children:"--lookahead 0"})," vs default ",(0,i.jsx)(t.code,{children:"--lookahead -1"})," (auto)"]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.h3,{id:"--lookahead-60-vs-default---lookahead--1-auto",children:[(0,i.jsx)(t.code,{children:"--lookahead 60"})," vs default ",(0,i.jsx)(t.code,{children:"--lookahead -1"})," (auto)"]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.h3,{id:"--lookahead-120-max-vs-default---lookahead--1-auto",children:[(0,i.jsx)(t.code,{children:"--lookahead 120"})," (max) vs default ",(0,i.jsx)(t.code,{children:"--lookahead -1"})," (auto)"]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"lookahead"})," seems to behave strangely when set..."]}),"\n"]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"lookahead 0"})," shifts quality around a lot and it is difficult to draw conclusions but there's a clear speed drawback of disabling lookahead."]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"lookahead 60"})," is perfectly bit-perfect to every clips EXCEPT for some damn reason in Jigokuraku at CRF23"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.strong,{children:"lookahead 120"})," is somehow also bit-perfect, but this time in every clips and every CRF levels. Both 60 and 120 don't see much speed differences."]}),"\n"]}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsx)(t.p,{children:"Soooo.... this behavior is so odd I don't advise to set any lookahead value. Let the encoder decide."}),"\n"]}),"\n",(0,i.jsxs)(t.h3,{id:"--enable-overlays-1-vs-default---enable-overlays-0",children:[(0,i.jsx)(t.code,{children:"--enable-overlays 1"})," vs default ",(0,i.jsx)(t.code,{children:"--enable-overlays 0"})]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"overlays"})," do not seem to either improve efficiency or performance."]}),"\n"]}),"\n",(0,i.jsxs)(t.h3,{id:"--enable-qm-1-vs-default---enable-qm-0",children:[(0,i.jsx)(t.code,{children:"--enable-qm 1"})," vs default ",(0,i.jsx)(t.code,{children:"--enable-qm 0"})]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:["Enabling ",(0,i.jsx)(t.strong,{children:"quantization matrices"}),' alone increase efficiency at "high quality" with no real speed impact.']}),"\n"]}),"\n",(0,i.jsxs)(t.h3,{id:"--enable-qm-1---qm-min-0-vs---enable-qm-1",children:[(0,i.jsx)(t.code,{children:"--enable-qm 1 --qm-min 0"})," vs ",(0,i.jsx)(t.code,{children:"--enable-qm 1"})]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-efficiency/SVT4_qm1_blame.webp",alt:"SVT4_qm1_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-efficiency/SVT4_qm1_bluelock.webp",alt:"SVT4_qm1_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-efficiency/SVT4_qm1_fate.webp",alt:"SVT4_qm1_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-efficiency/SVT4_qm1_jigokuraku.webp",alt:"SVT4_qm1_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-efficiency/SVT4_qm1_kaguya.webp",alt:"SVT4_qm1_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-speed/SVT4_qm1_blame.webp",alt:"SVT4_qm1_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-speed/SVT4_qm1_bluelock.webp",alt:"SVT4_qm1_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-speed/SVT4_qm1_fate.webp",alt:"SVT4_qm1_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-speed/SVT4_qm1_jigokuraku.webp",alt:"SVT4_qm1_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-speed/SVT4_qm1_kaguya.webp",alt:"SVT4_qm1_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:["Setting ",(0,i.jsx)(t.strong,{children:"qm-min"})," to ",(0,i.jsx)(t.strong,{children:"0"})," on top of enabling ",(0,i.jsx)(t.strong,{children:"quantization matrices"})," can be beneficial in some clips at no added compute time."]}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"I will re-tests many QMs ranges in the future, but I doubt it changed much from v1.7.0 where 0 was the most appropriate choice for most content."}),"\n",(0,i.jsxs)(t.h3,{id:"--enable-restoration-0-vs-default---enable-restoration-1",children:[(0,i.jsx)(t.code,{children:"--enable-restoration 0"})," vs default ",(0,i.jsx)(t.code,{children:"--enable-restoration 1"})]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:["Even though the efficiencies are very similar, nothing is bit-perfect here. So according to SSIMU2, the ",(0,i.jsx)(t.strong,{children:"loop restoration filter"})," isn't necessarily useful. However, just like CDEF, it's a pretty demanding tool, so disabling it yields some performance improvements. Let's take these with a grain of salt until the image comparisons."]}),"\n"]}),"\n",(0,i.jsxs)(t.h3,{id:"--scm-0-vs-default---scm-2-content-adaptive",children:[(0,i.jsx)(t.code,{children:"--scm 0"})," vs default ",(0,i.jsx)(t.code,{children:"--scm 2"})," (content adaptive)"]}),"\n",(0,i.jsx)(t.p,{children:"In all the clips, the results are bit-perfect and there is no notable performance difference."}),"\n",(0,i.jsxs)(t.h3,{id:"--scm-1-vs-default---scm-2-content-adaptive",children:[(0,i.jsx)(t.code,{children:"--scm 1"})," vs default ",(0,i.jsx)(t.code,{children:"--scm 2"})," (content adaptive)"]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:["Interestingly enough, ",(0,i.jsx)(t.strong,{children:"screen content tools"})," seem to improve efficiency according to SSIMU2, at the cost of a huge performance regression. After the image comparisons are published, I will conduct additional testing on this."]}),"\n"]}),"\n",(0,i.jsxs)(t.h3,{id:"--enable-tf-0-vs-default---enable-tf-1",children:[(0,i.jsx)(t.code,{children:"--enable-tf 0"})," vs default ",(0,i.jsx)(t.code,{children:"--enable-tf 1"})]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,i.jsx)(n.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,i.jsxs)(t.blockquote,{children:["\n",(0,i.jsxs)(t.p,{children:["Disabled ",(0,i.jsx)(t.strong,{children:"temporal filtering"})," ",(0,i.jsx)(t.em,{children:"can"}),' sometimes improve efficiency slightly at "high quality", however it is very much clip dependent. It also improves performance slightly. The image comparisons will give another perspective to these results.']}),"\n"]}),"\n",(0,i.jsxs)(t.h3,{id:"--enable-tpl-la-0-vs-default---enable-tpl-la-1",children:[(0,i.jsx)(t.code,{children:"--enable-tpl-la 0"})," vs default ",(0,i.jsx)(t.code,{children:"--enable-tpl-la 1"})]}),"\n",(0,i.jsx)(t.p,{children:"In all the clips, the results are bit-perfect and there is no notable performance difference."}),"\n",(0,i.jsxs)(t.h3,{id:"superres",children:[(0,i.jsx)(t.code,{children:"superres"}),":"]}),"\n",(0,i.jsx)(t.p,{children:"Kinda lazy to make, share and comment so much graphs for something that can be told in two lines..."}),"\n",(0,i.jsx)(t.p,{children:"All superres variants are freaking useless as they:"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"do not improve efficiency"}),"\n",(0,i.jsx)(t.li,{children:"decrease encoding speeds"}),"\n",(0,i.jsx)(t.li,{children:"decrease decoding speeds when either bitrate or quality normalized."}),"\n"]}),"\n",(0,i.jsx)(t.h3,{id:"early-tldr-on-parameters-results",children:(0,i.jsx)(t.strong,{children:"Early TLDR on parameters results:"})}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.em,{children:(0,i.jsxs)(t.strong,{children:["For a previous test with SVT-AV1 1.7.0 I did all parameters tests with ",(0,i.jsx)(t.code,{children:"--preset 6 --tune 2"}),", now I did them with ",(0,i.jsx)(t.code,{children:"--preset 4 --tune 1"}),". Mostly everything tested on v1.7.0 still stands today, but now we have more valuable data. Images comparisons are still needed to give more context to some results, so the conclusion presented here remains early as they are 100% based on SSIMU2 results and will require more analysis down the line."]})})}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.strong,{children:"Here is a quick run down of how each parameter affect encoding:"})}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"--tile-rows --tile-columns"})," should never be used (except for decreasing decode complexity)"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"--aq-mode 2"})," is the most efficient / fastest"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"--enable-cdef 0"})," ",(0,i.jsx)(t.em,{children:"might"})," improve performance at almost no efficiency loss ",(0,i.jsx)(t.em,{children:"(needs more thorough testing)"})]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"--enable-dg"})," and ",(0,i.jsx)(t.code,{children:"--enable-dlf"})," barely do anything"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"--fast-decode 1"})," decreases efficiency, improves encoding times, and the decoding gains still need to be determined."]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"--irefresh-type"})," should be kept default at high CRF values and for cleanish content at low CRF values, but can be set to 1 at low CRF values for extremely grainy content"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"--lookahead"})," should be kept default"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"--enable-overlays 1"})," does not improve efficiency, slight speed regression as well"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"--enable-qm 1 --qm-min 0"})," should be set for increased efficiency especially at low CRF values at no perf cost"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"--enable-restoration"})," barely does anything but disabling yields better performance ",(0,i.jsx)(t.em,{children:"(needs visual confirmation)"})]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"--scm 1"})," screen content tools can improve efficiency with a big performance trade-off ",(0,i.jsx)(t.em,{children:"(needs more thorough testing)"})]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"--enable-tf 0"})," is a mixed bag efficiency wise but improves performance"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"superres & resize"})," please don't."]}),"\n"]}),"\n",(0,i.jsx)(t.h2,{id:"conclusion",children:"Conclusion"}),"\n",(0,i.jsx)(t.p,{children:"The extensive benchmarking reveals that obviously the slower presets provide better efficiency, with diminishing returns past preset 2. However, preset 4 provides a good balance of quality and speed for most use cases. Presets 6 and 8 are good options for the people that find 4 to be too slow for their liking."}),"\n",(0,i.jsx)(t.p,{children:"The default settings tend to provide good results, but some tweaks like enabling quantization matrices can further optimize efficiency. Parameters like tile encoding and super resolution modes are not beneficial. Overall, SVT-AV1 continues to be a competitive option for encoding animation in AV1, with its speed being a notable strength."}),"\n",(0,i.jsx)(t.p,{children:"Further testing with more content samples would help solidify these findings. The image comparisons will also provide additional subjective evaluation to complement the objective metrics used here, and we can discover the potential usefulness of Tune 0 that may betray what the metrics suggest. Overall, this comprehensive deep dive should give encoders a helpful starting point for choosing settings when encoding animation with the latest SVT-AV1 1.8.0. Thanks for reading!"}),"\n"]})}function h(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(m,{...e})}):m(e)}}}]); \ No newline at end of file diff --git a/assets/js/70de1c07.4df884f7.js b/assets/js/70de1c07.4df884f7.js new file mode 100644 index 000000000..a340980de --- /dev/null +++ b/assets/js/70de1c07.4df884f7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[544],{1165:(e,t,s)=>{s.d(t,{Ck:()=>h,kS:()=>d});var i=s(4848),o=s(8453),n=s(6540),a=s(4016),r=s(3517),c=s(3343),l=s(3864),u=s(8633),m=s(363);const h=({imageData:e,pixelsAbove:t,pixelsBelow:s})=>{const n={div:"div",...(0,o.R)()},l=({currentSlide:e,direction:t,slideCount:s,...o})=>"left"===t?(0,i.jsx)(u.A,{...o,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,left:10}}):(0,i.jsx)(m.A,{...o,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,right:10}});return(!t||t<0)&&(t=0),(!s||s<0)&&(s=0),(0,i.jsxs)(a.A,{justify:"space-between",vertical:!0,children:[(0,i.jsx)(n.div,{style:{height:`${t}px`}}),(0,i.jsx)(r.A,{arrows:!0,prevArrow:(0,i.jsx)(l,{direction:"left"}),nextArrow:(0,i.jsx)(l,{direction:"right"}),children:e.map((e=>(0,i.jsx)(c.A,{src:e.src},e.src)))}),(0,i.jsx)(n.div,{style:{height:`${s}px`}})]})},d=({tabMap:e,pixelsAbove:t,pixelsBelow:s})=>{const r={div:"div",...(0,o.R)()},[c,u]=(0,n.useState)(Object.keys(e)[0]);return(!t||t<0)&&(t=0),(!s||s<0)&&(s=0),(0,i.jsxs)(a.A,{justify:"space-between",vertical:!0,children:[(0,i.jsx)(r.div,{style:{height:`${t}px`}}),(0,i.jsx)(l.A,{tabList:Object.entries(e).map((([e,t])=>({key:e,label:t.label}))),activeTabKey:c,onTabChange:e=>{u(e)},children:e[c].component}),(0,i.jsx)(r.div,{style:{height:`${s}px`}})]})}},850:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>l,contentTitle:()=>c,default:()=>h,frontMatter:()=>r,metadata:()=>i,toc:()=>u});var i=s(5255),o=s(4848),n=s(8453),a=s(1165);const r={title:"Encoding Animation with SVT-AV1: A Deep Dive",description:"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?",slug:"svt-av1-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-1.8.0-testing-blog-image.webp",hide_table_of_contents:!1},c="Introduction",l={authorsImageUrls:[void 0]},u=[{value:"Samples",id:"samples",level:2},{value:"Presets comparisons (-1 -> 13)",id:"presets-comparisons--1---13",level:2},{value:"TLDR",id:"tldr",level:3},{value:"Tunes comparisons",id:"tunes-comparisons",level:2},{value:"TLDR",id:"tldr-1",level:3},{value:"Parameters comparisons",id:"parameters-comparisons",level:2},{value:"--tile-rows 1 --tile-columns 1 vs default --tile-rows 0 --tile-columns 0",id:"--tile-rows-1---tile-columns-1-vs-default---tile-rows-0---tile-columns-0",level:3},{value:"--aq-mode 0 vs default --aq-mode 2",id:"--aq-mode-0-vs-default---aq-mode-2",level:3},{value:"--aq-mode 1 vs default --aq-mode 2",id:"--aq-mode-1-vs-default---aq-mode-2",level:3},{value:"--enable-cdef 0 vs default --enable-cdef 1",id:"--enable-cdef-0-vs-default---enable-cdef-1",level:3},{value:"--enable-dg 0 vs default --enable-dg 1",id:"--enable-dg-0-vs-default---enable-dg-1",level:3},{value:"--enable-dlf 0 vs default --enable-dlf 1",id:"--enable-dlf-0-vs-default---enable-dlf-1",level:3},{value:"--fast-decode 1 vs default --fast-decode 0",id:"--fast-decode-1-vs-default---fast-decode-0",level:3},{value:"--irefresh-type 1 vs default --irefresh-type 2",id:"--irefresh-type-1-vs-default---irefresh-type-2",level:3},{value:"--lookahead 0 vs default --lookahead -1 (auto)",id:"--lookahead-0-vs-default---lookahead--1-auto",level:3},{value:"--lookahead 60 vs default --lookahead -1 (auto)",id:"--lookahead-60-vs-default---lookahead--1-auto",level:3},{value:"--lookahead 120 (max) vs default --lookahead -1 (auto)",id:"--lookahead-120-max-vs-default---lookahead--1-auto",level:3},{value:"--enable-overlays 1 vs default --enable-overlays 0",id:"--enable-overlays-1-vs-default---enable-overlays-0",level:3},{value:"--enable-qm 1 vs default --enable-qm 0",id:"--enable-qm-1-vs-default---enable-qm-0",level:3},{value:"--enable-qm 1 --qm-min 0 vs --enable-qm 1",id:"--enable-qm-1---qm-min-0-vs---enable-qm-1",level:3},{value:"--enable-restoration 0 vs default --enable-restoration 1",id:"--enable-restoration-0-vs-default---enable-restoration-1",level:3},{value:"--scm 0 vs default --scm 2 (content adaptive)",id:"--scm-0-vs-default---scm-2-content-adaptive",level:3},{value:"--scm 1 vs default --scm 2 (content adaptive)",id:"--scm-1-vs-default---scm-2-content-adaptive",level:3},{value:"--enable-tf 0 vs default --enable-tf 1",id:"--enable-tf-0-vs-default---enable-tf-1",level:3},{value:"--enable-tpl-la 0 vs default --enable-tpl-la 1",id:"--enable-tpl-la-0-vs-default---enable-tpl-la-1",level:3},{value:"superres:",id:"superres",level:3},{value:"Early TLDR on parameters results:",id:"early-tldr-on-parameters-results",level:3},{value:"Conclusion",id:"conclusion",level:2}];function m(e){const t={a:"a",blockquote:"blockquote",code:"code",del:"del",em:"em",h2:"h2",h3:"h3",img:"img",li:"li",p:"p",strong:"strong",ul:"ul",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.p,{children:"This blog post is based on a series of visual quality benchmarks with SSIMULACRA2 and speed benchmarks of SVT-AV1 1.8.0 on a corpus of animated clips."}),"\n",(0,o.jsxs)(t.p,{children:["The resources available will range from ",(0,o.jsx)(t.em,{children:(0,o.jsx)(t.strong,{children:"graphs"})})," to ",(0,o.jsx)(t.del,{children:(0,o.jsx)(t.strong,{children:"image comparisons"})})," (WIP). The ",(0,o.jsx)(t.em,{children:(0,o.jsx)(t.strong,{children:"former"})})," has the advantage of being easily understandable, showcasing pure efficiency comparisons between encoder parameters using metrics as the reference, while the ",(0,o.jsx)(t.strong,{children:"latter"})," are image samples from the encoded files during the tests that enable you to check quality for yourself and add another layer of subjective interpretation to these comparisons."]}),"\n",(0,o.jsxs)(t.p,{children:["The testing methodology involves using relatively short video samples from a wide range of modern anime genre, which have been either losslessly encoded with ",(0,o.jsx)(t.code,{children:"x264 --qp 0"})," for ease of use or losslessly cut from their source. These lossless files are then pipped into SvtAv1EncApp ",(0,o.jsx)(t.em,{children:"directly"}),", meaning we are measuring the performance of a single encoder instance and not leveraging chunked encoding like any actual final AV1 encoding pipeline should. Once an encode is done, SSIMULACRA2 scores are calculated using the ",(0,o.jsx)(t.a,{href:"https://github.com/dnjulek/vapoursynth-ssimulacra2",children:"Zig implementation"})," and lots of useful data are aggregated to make the graphs for this benchmark, including encoding time, encode size (bitrate), and SSIMULACRA2 scores. Bits per pixel scores (BPP) are calculated so that the ",(0,o.jsx)(t.code,{children:"Metric / BPP"})," graphs may represent the closest we have to real efficiency."]}),"\n",(0,o.jsx)(t.p,{children:"The clips used in this test were acquired legally. The Codec Wiki and its contributors do not endorse media piracy."}),"\n",(0,o.jsxs)(t.p,{children:["SvtAv1EncApp was compiled directly from the ",(0,o.jsx)(t.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/v1.8.0",children:"v1.8.0 source code"})," using the provided ",(0,o.jsx)(t.code,{children:"Build/linux/build.sh"})," script, Clang 16.0.6, and Profile-Guided Optimization (PGO). The testing machine is comprised of an i7 8750H running at 35W with 16GB of 2666MHz DDR4 RAM in Arch Linux with kernel 6.6.6 and the performance governor enabled. All encodes have been made in the same session without rebooting."]}),"\n",(0,o.jsxs)(t.p,{children:["This testing was conducted within the ",(0,o.jsx)(t.a,{href:"https://discord.gg/83dRFDFDp7",children:"AV1 Weeb Edition"})," Discord server, which is focused on encoding animated content in AV1."]}),"\n",(0,o.jsx)(t.h2,{id:"samples",children:"Samples"}),"\n",(0,o.jsx)(t.p,{children:"The samples are as follows:"}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:["11s ",(0,o.jsx)(t.code,{children:"Blame!"})," clip which sports 3DCG action with lots of grain, effects and high-contrast elements. Most complex source of this set."]}),"\n",(0,o.jsxs)(t.li,{children:["13s ",(0,o.jsx)(t.code,{children:"Blue Lock"})," clip which sports rapid camera movements and rotations + high-contrast elements."]}),"\n",(0,o.jsxs)(t.li,{children:["15s ",(0,o.jsx)(t.code,{children:"Fate/Grand Order: Babylonia"})," relatively slow-paced clip with lots of effects still. Easiest source of this set but easy sources still give interesting data."]}),"\n",(0,o.jsxs)(t.li,{children:["22s ",(0,o.jsx)(t.code,{children:"Jigokuraku (Hell's Paradise)"})," flashback clip with huge static grain in a very dark scenery and some action."]}),"\n",(0,o.jsxs)(t.li,{children:["14s ",(0,o.jsx)(t.code,{children:"Kaguya-sama"})," opening sequence with lots of effects and fast change of scenery.\nThe resolution of every clip is 1080p, except for the first one which is 1920x804."]}),"\n"]}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsx)(t.p,{children:(0,o.jsxs)(t.strong,{children:["All clips have been encoded in a wide quality range, from ",(0,o.jsx)(t.code,{children:"--crf 8"})," to ",(0,o.jsx)(t.code,{children:"--crf 43"}),"."]})}),"\n"]}),"\n",(0,o.jsx)(t.p,{children:"Without further ado, let's start with the first comparisons!"}),"\n",(0,o.jsx)(t.h2,{id:"presets-comparisons--1---13",children:"Presets comparisons (-1 -> 13)"}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsxs)(t.strong,{children:["In the following graphs, you may find comparisons between all SVT-AV1 presets, ranging from the slowest ",(0,o.jsx)(t.code,{children:"--preset -1"})," to the fastest ",(0,o.jsx)(t.code,{children:"--preset 13"}),"."]}),"\n",(0,o.jsx)(t.em,{children:"Please remember that these two extreme presets are meant for development purposes and as such should not be used in normal encoding conditions. You will soon understand why."})]}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.code,{children:"--preset X"})," is the only parameter used here, in conjunction with the CRF values. That means everything else is default. The defaults worth mentioning are:"]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:["\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.code,{children:"--tune 1"}),": tune PSNR"]}),"\n"]}),"\n",(0,o.jsxs)(t.li,{children:["\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.code,{children:"--aq-mode 2"}),": variance deltaq"]}),"\n"]}),"\n",(0,o.jsxs)(t.li,{children:["\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.code,{children:"--enable-qm 0"}),": quantisation matrices disabled"]}),"\n"]}),"\n",(0,o.jsxs)(t.li,{children:["\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.code,{children:"--irefresh-type 2"}),": closed GOP"]}),"\n"]}),"\n",(0,o.jsxs)(t.li,{children:["\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.code,{children:"--enable-tf 1"}),": temporal filtering enabled\nAnd more, like CDEF and restoration enabled, overlays and film-grain disabled..."]}),"\n"]}),"\n",(0,o.jsxs)(t.li,{children:["\n",(0,o.jsx)(t.p,{children:"First of all, here are the efficiency graphs:"}),"\n"]}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-graphs/SVT4_blame.webp",alt:"Blame!.h264 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-graphs/SVT4_bluelock.webp",alt:"BlueLock.h264 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-graphs/SVT4_fate.webp",alt:"Fate.h264 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-graphs/SVT4_jigokuraku.webp",alt:"Jigokuraku.h264 Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-graphs/SVT4_kaguya.webp",alt:"Kaguya.h264 Efficiency Graph"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsx)(t.p,{children:"This could be too much information."}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:'Now the same graphs but focusing on the "high quality" range (CRF8 -> 23):'}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq/SVT4_blame.webp",alt:"blame High Quality Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq/SVT4_bluelock.webp",alt:"bluelock High Quality Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq/SVT4_fate.webp",alt:"fate High Quality Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq/SVT4_jigokuraku.webp",alt:"jigokuraku High Quality Efficiency Graph"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq/SVT4_kaguya.webp",alt:"kaguya High Quality Efficiency Graph"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Same again but without presets 9 to 13 for better clarity:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq-slow/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq-slow/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq-slow/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq-slow/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-highq-slow/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:'Now for the "low quality" range (CRF28 -> 43):'}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Same but without presets 9 to 13 for better clarity:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq-slow/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq-slow/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq-slow/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq-slow/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/svt-efficiency-lowq-slow/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:(0,o.jsx)(t.strong,{children:"Let's now see speed comparisons between all presets:"})}),"\n"]}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed_overall.webp",alt:"speed_overall"})}),"\n",(0,o.jsxs)(t.p,{children:["As we can see, preset -1 is so abysmally slow it makes the graph unusable\n(BTW, notice the ",(0,o.jsx)(t.code,{children:"1e6"})," in the lower right corner, it is obviously not encoding at 1 to 4 ms, but at 1 000 000 to 4 000 000 ms)"]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Here is what it looks like with a logarithmic scale:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-bpp/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-bpp/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-bpp/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-bpp/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-bpp/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:(0,o.jsx)(t.strong,{children:"Now the speed graphs but with SSIMU2 on the y-axis instead of BPP: (logarithmic scale)"})}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-ssimu2/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-ssimu2/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-ssimu2/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-ssimu2/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-log-ssimu2/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Here are speeds graphs for preset 1 to 6 with a linear scale:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-linear-bpp/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-linear-bpp/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-linear-bpp/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-linear-bpp/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed-linear-bpp/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.p,{children:["One interpretation we can have is that ",(0,o.jsx)(t.strong,{children:"presets 2 to 4"})," have actually pretty close scores (pretty much the same at HQ, 2 points at max in the low quality range) but ",(0,o.jsx)(t.strong,{children:"preset 2"})," is ",(0,o.jsx)(t.strong,{children:"2x slower than preset 4"}),". The quality gap between ",(0,o.jsx)(t.strong,{children:"preset 2"})," and ",(0,o.jsx)(t.strong,{children:"preset 1"})," is even narrower but the speed penalty is also ~2x."]}),"\n",(0,o.jsxs)(t.p,{children:["That makes it hard to recommend ",(0,o.jsx)(t.strong,{children:"preset 1"}),", while ",(0,o.jsx)(t.strong,{children:"preset 3"})," is in a strange middle ground between ",(0,o.jsx)(t.strong,{children:"2"})," and ",(0,o.jsx)(t.strong,{children:"4"})," where it makes little sense to choose it over those two: it's better to choose ",(0,o.jsx)(t.strong,{children:"preset 2"})," for the higher efficiency at 1.5x slower speeds, or ",(0,o.jsx)(t.strong,{children:"preset 4"})," for the 1.33 to 1.5x higher speeds. At least the option exists."]}),"\n",(0,o.jsxs)(t.p,{children:["A similar observation can be made between ",(0,o.jsx)(t.strong,{children:"preset 5"})," and ",(0,o.jsx)(t.strong,{children:"6"}),". They can be so close in scores in many samples (especially at HQ) while also being close in speeds that ",(0,o.jsx)(t.strong,{children:"preset 5"})," becomes rather obsolete most of the time."]}),"\n",(0,o.jsx)(t.h3,{id:"tldr",children:"TLDR"}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.strong,{children:"Clear quality gains can be observed as we decrease presets, until the very last one, however the effectiveness of dropping presets becomes less and less impressive the higher in quality you go."})}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:["\n",(0,o.jsxs)(t.p,{children:["For instance, in worst-case scenario, we observe that (for the CRF23 to CRF8 range), ",(0,o.jsx)(t.strong,{children:(0,o.jsx)(t.strong,{children:"preset 4"})})," only loses at maximum ",(0,o.jsx)(t.strong,{children:"2"})," SSIMU2 ",(0,o.jsx)(t.strong,{children:"points"})," compared to ",(0,o.jsx)(t.strong,{children:(0,o.jsx)(t.strong,{children:"preset -1"})})," while being 50-60x faster. Though to be fair, the speed loss from ",(0,o.jsx)(t.strong,{children:(0,o.jsx)(t.strong,{children:"preset 4"})})," to ",(0,o.jsx)(t.strong,{children:(0,o.jsx)(t.strong,{children:"preset 0"})}),' is "only" 5-10x for a maximum SSIMU2 difference close to ',(0,o.jsx)(t.strong,{children:"1.5 point"}),"."]}),"\n"]}),"\n",(0,o.jsxs)(t.li,{children:["\n",(0,o.jsxs)(t.p,{children:["From CRF43 to CRF28, the difference between ",(0,o.jsx)(t.strong,{children:(0,o.jsx)(t.strong,{children:"preset 4"})})," and ",(0,o.jsx)(t.strong,{children:(0,o.jsx)(t.strong,{children:"preset -1"})})," can be as much as ",(0,o.jsx)(t.strong,{children:"5"})," SSIMU2 ",(0,o.jsx)(t.strong,{children:"points"}),", so lower presets become more attractive."]}),"\n"]}),"\n"]}),"\n",(0,o.jsx)(t.h2,{id:"tunes-comparisons",children:"Tunes comparisons"}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsxs)(t.strong,{children:["In the following graphs, you may find comparisons between SVT-AV1 tunes, from the default ",(0,o.jsx)(t.code,{children:"--tune 1"})," (PSNR) to the other two tunes: ",(0,o.jsx)(t.code,{children:"--tune 0"})," (VQ) and ",(0,o.jsx)(t.code,{children:"--tune 2"})," (SSIM)."]})}),"\n",(0,o.jsxs)(t.p,{children:["Except for the tunes, ",(0,o.jsx)(t.code,{children:"--preset 4"})," is set due to its good balance of quality and speed, in conjunction with the CRF values. That means everything else is default. The defaults have been mentioned earlier above."]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:(0,o.jsx)(t.strong,{children:"Let's compare the efficiency of every tunes:"})}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:'Now let\'s focus on the "high quality" range (CRF8 -> 23):'}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-highq/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-highq/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-highq/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-highq/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-highq/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:'And the "low quality" range (CRF28 -> 43):'}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-lowq/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-lowq/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-lowq/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-lowq/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-efficiency-lowq/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"And here is the speed difference:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tunes-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Graphs comparing the tunes individually between each others will be made available soon."}),"\n",(0,o.jsx)(t.li,{children:"The image comparisons will make the conclusion quite more nuanced, stay tuned (heheh) for that."}),"\n"]}),"\n",(0,o.jsx)(t.h3,{id:"tldr-1",children:"TLDR"}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsxs)(t.strong,{children:["SSIMU2 favors ",(0,o.jsx)(t.strong,{children:"tune 1 and 2"})," above ",(0,o.jsx)(t.strong,{children:"tune 0"}),". At high quality, ",(0,o.jsx)(t.strong,{children:"tune 1 and 2"})," are matched, while at low quality ",(0,o.jsx)(t.strong,{children:"tune 2"})," takes the edge. ",(0,o.jsx)(t.strong,{children:"Tune 0"})," is sometimes a match for the other two on certain clips and other times fare pretty badly."]}),"\n",(0,o.jsxs)(t.strong,{children:["For some reason, ",(0,o.jsx)(t.strong,{children:"tune 0"})," is quite a bit faster now, compared to 1 and 2 which are basically the same."]})]}),"\n",(0,o.jsxs)(t.p,{children:["Keep in mind that I have observed multiple times in the past that ",(0,o.jsx)(t.strong,{children:"tune 0"})," kept more fine detail and was sharper than the other tunes, at the expense of potential artifacting, like ringing and distortion. It may very well explain why the metric doesn't like its results. The image comparisons may give a different interpretation than what we concluded here, please stay ",(0,o.jsx)(t.em,{children:"tuned"})," for these subjective comparisons."]}),"\n",(0,o.jsx)(t.h2,{id:"parameters-comparisons",children:"Parameters comparisons"}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.strong,{children:"In the following graphs, you may find comparisons between many SVT-AV1 parameters."}),"\n",(0,o.jsx)(t.em,{children:"Additional graphs focusing on the high and low qualities will be made available later down the line"})]}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.code,{children:"--preset 4"})," is used here due to its good balance of quality and speed, in conjunction with the CRF values. That means everything else is default. The defaults have been mentioned earlier above."]}),"\n",(0,o.jsxs)(t.h3,{id:"--tile-rows-1---tile-columns-1-vs-default---tile-rows-0---tile-columns-0",children:[(0,o.jsx)(t.code,{children:"--tile-rows 1 --tile-columns 1"})," vs default ",(0,o.jsx)(t.code,{children:"--tile-rows 0 --tile-columns 0"})]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tile-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.strong,{children:"tiles"})," here are both slightly harmful and slower."]}),"\n"]}),"\n",(0,o.jsxs)(t.h3,{id:"--aq-mode-0-vs-default---aq-mode-2",children:[(0,o.jsx)(t.code,{children:"--aq-mode 0"})," vs default ",(0,o.jsx)(t.code,{children:"--aq-mode 2"})]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:["Except for the Jigokuraku clip, ",(0,o.jsx)(t.strong,{children:"aq-mode 0"})," is harmful in the eyes of SSIMU2, while being slower at low CRF levels, and sometimes a match or faster at high CRF levels."]}),"\n"]}),"\n",(0,o.jsxs)(t.h3,{id:"--aq-mode-1-vs-default---aq-mode-2",children:[(0,o.jsx)(t.code,{children:"--aq-mode 1"})," vs default ",(0,o.jsx)(t.code,{children:"--aq-mode 2"})]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/aq-mode1-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.strong,{children:"aq-mode 1"})," fares closer to ",(0,o.jsx)(t.strong,{children:"aq-mode 2"})," than ",(0,o.jsx)(t.strong,{children:"aq-mode 0"})," did, both in quality and speed, but is still overall inferior according to SSIMU2"]}),"\n"]}),"\n",(0,o.jsxs)(t.h3,{id:"--enable-cdef-0-vs-default---enable-cdef-1",children:[(0,o.jsx)(t.code,{children:"--enable-cdef 0"})," vs default ",(0,o.jsx)(t.code,{children:"--enable-cdef 1"})]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/cdef-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:["According to SSIMU2, disabling CDEF barely impact efficiency. But as its a pretty demanding tool, there's a slight speed benefit of having it disabled too. I advise you to take these results with a grain of salt until the image comparisons, because in anime particularly, CDEF ",(0,o.jsx)(t.em,{children:"can"})," be beneficial for the line-art."]}),"\n"]}),"\n",(0,o.jsxs)(t.h3,{id:"--enable-dg-0-vs-default---enable-dg-1",children:[(0,o.jsx)(t.code,{children:"--enable-dg 0"})," vs default ",(0,o.jsx)(t.code,{children:"--enable-dg 1"})]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dg-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.strong,{children:"Dynamic GoP control"})," yields bit-perfect results in all clips except for Blue Lock and Jigokuraku. There is no speed benefit to disabling it except in clips where it is in use. Let's not jump to conclusions too easily, the image comparisons will tell if it's \"safe\" to keep the setting disabled at all times or not."]}),"\n"]}),"\n",(0,o.jsxs)(t.h3,{id:"--enable-dlf-0-vs-default---enable-dlf-1",children:[(0,o.jsx)(t.code,{children:"--enable-dlf 0"})," vs default ",(0,o.jsx)(t.code,{children:"--enable-dlf 1"})]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/dlf-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.strong,{children:"Deblocking loop filter"})," can be slightly beneficial in some scenarios. In reverse, it is never harmful, so it is recommended to keep it default."]}),"\n"]}),"\n",(0,o.jsxs)(t.h3,{id:"--fast-decode-1-vs-default---fast-decode-0",children:[(0,o.jsx)(t.code,{children:"--fast-decode 1"})," vs default ",(0,o.jsx)(t.code,{children:"--fast-decode 0"})]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/fast-decode-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.strong,{children:"fast-decode 1"})," is pretty harmful in the Fate clip and slightly harmful in the rest. There is a speed benefit of enabling it though."]}),"\n"]}),"\n",(0,o.jsxs)(t.h3,{id:"--irefresh-type-1-vs-default---irefresh-type-2",children:[(0,o.jsx)(t.code,{children:"--irefresh-type 1"})," vs default ",(0,o.jsx)(t.code,{children:"--irefresh-type 2"})]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/irefresh-type1-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsx)(t.p,{children:"Finally something interesting to analyse!"}),"\n"]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.strong,{children:"irefresh-type 1"})," is either a match or beneficial compared to ",(0,o.jsx)(t.strong,{children:"irefresh-type 2"})," at high CRF levels."]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.strong,{children:"irefresh-type 1"})," either wins or lose to ",(0,o.jsx)(t.strong,{children:"irefresh-type 2"})," at low CRF levels depending on the clip. As such, it is NOT recommended to blindly set ",(0,o.jsx)(t.strong,{children:"irefresh-type"})," to ",(0,o.jsx)(t.strong,{children:"1"}),' at "high quality" as it might be harmful depending on the content.']}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.strong,{children:"irefresh-type 1"})," is always slower compared to ",(0,o.jsx)(t.strong,{children:"irefresh-type 2"}),", so I might argue it is more safe to leave ",(0,o.jsx)(t.strong,{children:"irefresh-type"}),' default at "high quality" than not.']}),"\n",(0,o.jsxs)(t.li,{children:["According to the content type of those clips, it appears that ",(0,o.jsx)(t.strong,{children:"irefresh-type 1"})," may benefit ",(0,o.jsx)(t.em,{children:"extremely grainy"})," content while default ",(0,o.jsx)(t.strong,{children:"irefresh-type 2"})," is better suited for ",(0,o.jsx)(t.em,{children:"cleanish"})," content. This needs to be confirmed with ",(0,o.jsx)(t.em,{children:"moar"})," testing though."]}),"\n"]}),"\n",(0,o.jsxs)(t.h3,{id:"--lookahead-0-vs-default---lookahead--1-auto",children:[(0,o.jsx)(t.code,{children:"--lookahead 0"})," vs default ",(0,o.jsx)(t.code,{children:"--lookahead -1"})," (auto)"]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.h3,{id:"--lookahead-60-vs-default---lookahead--1-auto",children:[(0,o.jsx)(t.code,{children:"--lookahead 60"})," vs default ",(0,o.jsx)(t.code,{children:"--lookahead -1"})," (auto)"]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead60-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.h3,{id:"--lookahead-120-max-vs-default---lookahead--1-auto",children:[(0,o.jsx)(t.code,{children:"--lookahead 120"})," (max) vs default ",(0,o.jsx)(t.code,{children:"--lookahead -1"})," (auto)"]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/lookahead120-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.strong,{children:"lookahead"})," seems to behave strangely when set..."]}),"\n"]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.strong,{children:"lookahead 0"})," shifts quality around a lot and it is difficult to draw conclusions but there's a clear speed drawback of disabling lookahead."]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.strong,{children:"lookahead 60"})," is perfectly bit-perfect to every clips EXCEPT for some damn reason in Jigokuraku at CRF23"]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.strong,{children:"lookahead 120"})," is somehow also bit-perfect, but this time in every clips and every CRF levels. Both 60 and 120 don't see much speed differences."]}),"\n"]}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsx)(t.p,{children:"Soooo.... this behavior is so odd I don't advise to set any lookahead value. Let the encoder decide."}),"\n"]}),"\n",(0,o.jsxs)(t.h3,{id:"--enable-overlays-1-vs-default---enable-overlays-0",children:[(0,o.jsx)(t.code,{children:"--enable-overlays 1"})," vs default ",(0,o.jsx)(t.code,{children:"--enable-overlays 0"})]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/overlays-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.strong,{children:"overlays"})," do not seem to either improve efficiency or performance."]}),"\n"]}),"\n",(0,o.jsxs)(t.h3,{id:"--enable-qm-1-vs-default---enable-qm-0",children:[(0,o.jsx)(t.code,{children:"--enable-qm 1"})," vs default ",(0,o.jsx)(t.code,{children:"--enable-qm 0"})]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:["Enabling ",(0,o.jsx)(t.strong,{children:"quantization matrices"}),' alone increase efficiency at "high quality" with no real speed impact.']}),"\n"]}),"\n",(0,o.jsxs)(t.h3,{id:"--enable-qm-1---qm-min-0-vs---enable-qm-1",children:[(0,o.jsx)(t.code,{children:"--enable-qm 1 --qm-min 0"})," vs ",(0,o.jsx)(t.code,{children:"--enable-qm 1"})]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-efficiency/SVT4_qm1_blame.webp",alt:"SVT4_qm1_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-efficiency/SVT4_qm1_bluelock.webp",alt:"SVT4_qm1_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-efficiency/SVT4_qm1_fate.webp",alt:"SVT4_qm1_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-efficiency/SVT4_qm1_jigokuraku.webp",alt:"SVT4_qm1_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-efficiency/SVT4_qm1_kaguya.webp",alt:"SVT4_qm1_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-speed/SVT4_qm1_blame.webp",alt:"SVT4_qm1_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-speed/SVT4_qm1_bluelock.webp",alt:"SVT4_qm1_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-speed/SVT4_qm1_fate.webp",alt:"SVT4_qm1_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-speed/SVT4_qm1_jigokuraku.webp",alt:"SVT4_qm1_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/qm-min-speed/SVT4_qm1_kaguya.webp",alt:"SVT4_qm1_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:["Setting ",(0,o.jsx)(t.strong,{children:"qm-min"})," to ",(0,o.jsx)(t.strong,{children:"0"})," on top of enabling ",(0,o.jsx)(t.strong,{children:"quantization matrices"})," can be beneficial in some clips at no added compute time."]}),"\n"]}),"\n",(0,o.jsx)(t.p,{children:"I will re-tests many QMs ranges in the future, but I doubt it changed much from v1.7.0 where 0 was the most appropriate choice for most content."}),"\n",(0,o.jsxs)(t.h3,{id:"--enable-restoration-0-vs-default---enable-restoration-1",children:[(0,o.jsx)(t.code,{children:"--enable-restoration 0"})," vs default ",(0,o.jsx)(t.code,{children:"--enable-restoration 1"})]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/restoration-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:["Even though the efficiencies are very similar, nothing is bit-perfect here. So according to SSIMU2, the ",(0,o.jsx)(t.strong,{children:"loop restoration filter"})," isn't necessarily useful. However, just like CDEF, it's a pretty demanding tool, so disabling it yields some performance improvements. Let's take these with a grain of salt until the image comparisons."]}),"\n"]}),"\n",(0,o.jsxs)(t.h3,{id:"--scm-0-vs-default---scm-2-content-adaptive",children:[(0,o.jsx)(t.code,{children:"--scm 0"})," vs default ",(0,o.jsx)(t.code,{children:"--scm 2"})," (content adaptive)"]}),"\n",(0,o.jsx)(t.p,{children:"In all the clips, the results are bit-perfect and there is no notable performance difference."}),"\n",(0,o.jsxs)(t.h3,{id:"--scm-1-vs-default---scm-2-content-adaptive",children:[(0,o.jsx)(t.code,{children:"--scm 1"})," vs default ",(0,o.jsx)(t.code,{children:"--scm 2"})," (content adaptive)"]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/scm1-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:["Interestingly enough, ",(0,o.jsx)(t.strong,{children:"screen content tools"})," seem to improve efficiency according to SSIMU2, at the cost of a huge performance regression. After the image comparisons are published, I will conduct additional testing on this."]}),"\n"]}),"\n",(0,o.jsxs)(t.h3,{id:"--enable-tf-0-vs-default---enable-tf-1",children:[(0,o.jsx)(t.code,{children:"--enable-tf 0"})," vs default ",(0,o.jsx)(t.code,{children:"--enable-tf 1"})]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Efficiency graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-efficiency/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-efficiency/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-efficiency/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-efficiency/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-efficiency/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Speed graphs:"}),"\n"]}),"\n",(0,o.jsx)(a.Ck,{imageData:[{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-speed/SVT4_blame.webp",alt:"SVT4_blame"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-speed/SVT4_bluelock.webp",alt:"SVT4_bluelock"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-speed/SVT4_fate.webp",alt:"SVT4_fate"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-speed/SVT4_jigokuraku.webp",alt:"SVT4_jigokuraku"},{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/tf-speed/SVT4_kaguya.webp",alt:"SVT4_kaguya"}],pixelsAbove:0,pixelsBelow:24}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.p,{children:["Disabled ",(0,o.jsx)(t.strong,{children:"temporal filtering"})," ",(0,o.jsx)(t.em,{children:"can"}),' sometimes improve efficiency slightly at "high quality", however it is very much clip dependent. It also improves performance slightly. The image comparisons will give another perspective to these results.']}),"\n"]}),"\n",(0,o.jsxs)(t.h3,{id:"--enable-tpl-la-0-vs-default---enable-tpl-la-1",children:[(0,o.jsx)(t.code,{children:"--enable-tpl-la 0"})," vs default ",(0,o.jsx)(t.code,{children:"--enable-tpl-la 1"})]}),"\n",(0,o.jsx)(t.p,{children:"In all the clips, the results are bit-perfect and there is no notable performance difference."}),"\n",(0,o.jsxs)(t.h3,{id:"superres",children:[(0,o.jsx)(t.code,{children:"superres"}),":"]}),"\n",(0,o.jsx)(t.p,{children:"Kinda lazy to make, share and comment so much graphs for something that can be told in two lines..."}),"\n",(0,o.jsx)(t.p,{children:"All superres variants are freaking useless as they:"}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"do not improve efficiency"}),"\n",(0,o.jsx)(t.li,{children:"decrease encoding speeds"}),"\n",(0,o.jsx)(t.li,{children:"decrease decoding speeds when either bitrate or quality normalized."}),"\n"]}),"\n",(0,o.jsx)(t.h3,{id:"early-tldr-on-parameters-results",children:(0,o.jsx)(t.strong,{children:"Early TLDR on parameters results:"})}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.em,{children:(0,o.jsxs)(t.strong,{children:["For a previous test with SVT-AV1 1.7.0 I did all parameters tests with ",(0,o.jsx)(t.code,{children:"--preset 6 --tune 2"}),", now I did them with ",(0,o.jsx)(t.code,{children:"--preset 4 --tune 1"}),". Mostly everything tested on v1.7.0 still stands today, but now we have more valuable data. Images comparisons are still needed to give more context to some results, so the conclusion presented here remains early as they are 100% based on SSIMU2 results and will require more analysis down the line."]})})}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.strong,{children:"Here is a quick run down of how each parameter affect encoding:"})}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"--tile-rows --tile-columns"})," should never be used (except for decreasing decode complexity)"]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"--aq-mode 2"})," is the most efficient / fastest"]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"--enable-cdef 0"})," ",(0,o.jsx)(t.em,{children:"might"})," improve performance at almost no efficiency loss ",(0,o.jsx)(t.em,{children:"(needs more thorough testing)"})]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"--enable-dg"})," and ",(0,o.jsx)(t.code,{children:"--enable-dlf"})," barely do anything"]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"--fast-decode 1"})," decreases efficiency, improves encoding times, and the decoding gains still need to be determined."]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"--irefresh-type"})," should be kept default at high CRF values and for cleanish content at low CRF values, but can be set to 1 at low CRF values for extremely grainy content"]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"--lookahead"})," should be kept default"]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"--enable-overlays 1"})," does not improve efficiency, slight speed regression as well"]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"--enable-qm 1 --qm-min 0"})," should be set for increased efficiency especially at low CRF values at no perf cost"]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"--enable-restoration"})," barely does anything but disabling yields better performance ",(0,o.jsx)(t.em,{children:"(needs visual confirmation)"})]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"--scm 1"})," screen content tools can improve efficiency with a big performance trade-off ",(0,o.jsx)(t.em,{children:"(needs more thorough testing)"})]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"--enable-tf 0"})," is a mixed bag efficiency wise but improves performance"]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"superres & resize"})," please don't."]}),"\n"]}),"\n",(0,o.jsx)(t.h2,{id:"conclusion",children:"Conclusion"}),"\n",(0,o.jsx)(t.p,{children:"The extensive benchmarking reveals that obviously the slower presets provide better efficiency, with diminishing returns past preset 2. However, preset 4 provides a good balance of quality and speed for most use cases. Presets 6 and 8 are good options for the people that find 4 to be too slow for their liking."}),"\n",(0,o.jsx)(t.p,{children:"The default settings tend to provide good results, but some tweaks like enabling quantization matrices can further optimize efficiency. Parameters like tile encoding and super resolution modes are not beneficial. Overall, SVT-AV1 continues to be a competitive option for encoding animation in AV1, with its speed being a notable strength."}),"\n",(0,o.jsx)(t.p,{children:"Further testing with more content samples would help solidify these findings. The image comparisons will also provide additional subjective evaluation to complement the objective metrics used here, and we can discover the potential usefulness of Tune 0 that may betray what the metrics suggest. Overall, this comprehensive deep dive should give encoders a helpful starting point for choosing settings when encoding animation with the latest SVT-AV1 1.8.0. Thanks for reading!"}),"\n"]})}function h(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(m,{...e})}):m(e)}},5255:e=>{e.exports=JSON.parse('{"permalink":"/blog/svt-av1-deep-dive","source":"@site/blog/2023-12-30-svt-av1-deep-dive.mdx","title":"Encoding Animation with SVT-AV1: A Deep Dive","description":"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?","date":"2023-12-30T00:00:00.000Z","tags":[{"inline":true,"label":"video","permalink":"/blog/tags/video"},{"inline":true,"label":"compression","permalink":"/blog/tags/compression"},{"inline":true,"label":"benchmarks","permalink":"/blog/tags/benchmarks"}],"readingTime":22.78,"hasTruncateMarker":true,"authors":[{"name":"Trix","title":"Encoder","url":"https://github.com/trixoniisama/","image_url":"https://avatars.githubusercontent.com/u/93526043","imageURL":"https://avatars.githubusercontent.com/u/93526043","socials":{},"key":null,"page":null}],"frontMatter":{"title":"Encoding Animation with SVT-AV1: A Deep Dive","description":"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?","slug":"svt-av1-deep-dive","authors":[{"name":"Trix","title":"Encoder","url":"https://github.com/trixoniisama/","image_url":"https://avatars.githubusercontent.com/u/93526043","imageURL":"https://avatars.githubusercontent.com/u/93526043"}],"tags":["video","compression","benchmarks"],"image":"/img/svt-1.8.0-testing-blog-image.webp","hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"Observing SVT-AV1 v2.1.0\'s improvements: A New Deep Dive","permalink":"/blog/svt-av1-second-deep-dive"},"nextItem":{"title":"Embedding the Un-Embeddable","permalink":"/blog/embedding-the-un-embeddable"}}')}}]); \ No newline at end of file diff --git a/assets/js/7385c97b.052a7324.js b/assets/js/7385c97b.052a7324.js deleted file mode 100644 index 3026f83f4..000000000 --- a/assets/js/7385c97b.052a7324.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8415],{5322:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>l,contentTitle:()=>r,default:()=>h,frontMatter:()=>o,metadata:()=>a,toc:()=>c});var n=s(4848),t=s(8453);const o={title:"AVIF",sidebar_position:6},r="AVIF",a={id:"images/AVIF",title:"AVIF",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/images/AVIF.mdx",sourceDirName:"images",slug:"/images/AVIF",permalink:"/docs/images/AVIF",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/AVIF.mdx",tags:[],version:"current",sidebarPosition:6,frontMatter:{title:"AVIF",sidebar_position:6},sidebar:"tutorialSidebar",previous:{title:"JPEG 2000",permalink:"/docs/images/JPEG2000"},next:{title:"JPEG XL",permalink:"/docs/images/JXL"}},l={},c=[{value:"Performance Checklist",id:"performance-checklist",level:2},{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"Advantages",id:"advantages",level:3},{value:"Limitations",id:"limitations",level:3},{value:"Conclusion",id:"conclusion",level:2}];function d(e){const i={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,t.R)(),...e.components},{Details:s}=i;return s||function(e,i){throw new Error("Expected "+(i?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"avif",children:"AVIF"})}),"\n",(0,n.jsx)(i.admonition,{title:"Under Maintenance",type:"info",children:(0,n.jsx)(i.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,n.jsxs)(i.p,{children:["AVIF, which stands for AV1 Image File Format, is a newer image codec that is based on the ",(0,n.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," video codec. AVIF supersedes ",(0,n.jsx)(i.a,{href:"/docs/images/HEIC",children:"HEIC"}),", & uses the same HEIF container as HEIC. AVIF is designed to have a better featureset & better general lossy compression than older image codecs, including ",(0,n.jsx)(i.a,{href:"/docs/images/WebP",children:"WebP"}),", HEIC, & ",(0,n.jsx)(i.a,{href:"/docs/images/JPEG",children:"JPEG"}),". AVIF is often compared to ",(0,n.jsx)(i.a,{href:"/docs/images/JXL",children:"JPEG-XL"}),", though in practice, the two have very different strengths."]}),"\n",(0,n.jsx)(i.p,{children:"There are two AVIF profiles available for encoding: Baseline & Advanced, which are based on AV1's Main & High profiles respectively. The AVIF Baseline profile supports up to 8,192*4,352 resolution specified by the requirement of using AV1 Level 5.1 or lower. Using tiling, it is possible to increase the maximum resolution of the AVIF Baseline profile to 65536*65536, although this hurts coding efficiency as visual anomalies may be encountered along the edges of the tile boundaries. AVIF is also limited to 10 bit color precision in its Baseline profile."}),"\n",(0,n.jsx)(i.p,{children:"In the AVIF Advanced profile, the maximum image dimensions extend to 16,384*8,704. Tiling may be used in the Advanced profile to create larger images, but the same limitations regarding visual artifacts apply. The AVIF Advanced profile extends the allowed AV1 Level to 6.0 or lower, & the highest bit depth offered by this profile is 12 BPC. It is worth noting that while it is currently a near certainty that AVIF implementations will support both the Baseline & Advanced profiles, this may not always be the case. This is a problem that affects HEIC currently, & is a known potential weakness of video-based image codecs."}),"\n",(0,n.jsx)(i.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,n.jsxs)(i.p,{children:["Lossless? ",(0,n.jsx)(i.em,{children:"Poorly"})]}),"\n",(0,n.jsxs)(i.p,{children:["Lossy? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:["Supported Bit Depths:\n",(0,n.jsx)(i.em,{children:"8 BPC, 10 BPC, 12 BPC"})]}),"\n",(0,n.jsxs)(i.p,{children:["HDR/Wide Gamut? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:["Animation? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:["Transparency? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:["Progressive Decode? ",(0,n.jsx)(i.em,{children:"No"})]}),"\n",(0,n.jsxs)(i.p,{children:["Royalty Free? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"Compatible Browsers"})," (full support)"]}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:["\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.a,{href:"https://www.google.com/chrome/",children:"Google Chrome"})," 85+"]}),"\n"]}),"\n",(0,n.jsxs)(i.li,{children:["\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.a,{href:"https://www.apple.com/safari/",children:"Safari"})," 16.4+"]}),"\n"]}),"\n",(0,n.jsxs)(i.li,{children:["\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.a,{href:"https://www.mozilla.org/en-US/firefox/new/",children:"Firefox"})," 113+"]}),"\n"]}),"\n",(0,n.jsxs)(i.li,{children:["\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.a,{href:"https://www.opera.com/",children:"Opera"})," 71+"]}),"\n"]}),"\n",(0,n.jsxs)(i.li,{children:["\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.a,{href:"https://apps.gnome.org/app/org.gnome.Epiphany/",children:"GNOME Web"})}),"\n"]}),"\n",(0,n.jsxs)(i.li,{children:["\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.a,{href:"https://thorium.rocks/",children:"Thorium"})}),"\n"]}),"\n",(0,n.jsxs)(i.li,{children:["\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.a,{href:"https://thorium.rocks/mercury",children:"Mercury"})}),"\n"]}),"\n"]}),"\n",(0,n.jsx)(i.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,n.jsx)(i.h3,{id:"advantages",children:"Advantages"}),"\n",(0,n.jsx)(i.p,{children:"AVIF is known for its extremely strong lossy compression performance for non-photographic images as well as photographic images in the low to medium fidelity range. AVIF is consistently better than JPEG visually, except for with complex images that contain a lot of highly entropic data like random noise."}),"\n",(0,n.jsx)(i.p,{children:"AVIF compatibility has grown rapidly since its adoption in Google Chrome in 2020. For a relatively new image format, its level of penetration has been stellar, especially in the browser market. At this point in time, it would be a safe bet to ship AVIF images for your site given they compress better than JPEG & have older formats provided as fallbacks."}),"\n",(0,n.jsx)(i.p,{children:"AVIF's wider featureset enables new experiences through images, including HDR. AVIF also presents astonishing animation prowess, as it is capable of using AV1's inter-frame coding techniques which make it easily the best animated image format for most use cases where it is compatible."}),"\n",(0,n.jsx)(i.h3,{id:"limitations",children:"Limitations"}),"\n",(0,n.jsx)(i.p,{children:"AVIF encoding implementations are difficult to use, and images require much longer encoding times for what can be considered competitive quality. Making encoding more difficult, AVIF's use of intra-frame coding techniques that share data between blocks reduces parallelization capability & worsens generation loss. Theoretically, this improves coding efficiency, though. Via the AVIF Encoding section of the aomenc page:"}),"\n",(0,n.jsxs)(s,{children:[(0,n.jsx)("summary",{children:"AVIF Encoding with aomenc through avifenc"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:"Using aomenc through avifenc is widely considered to be the best way to encode AVIF images, as SVT-AV1 only supports 4:2:0 chroma subsampling, rav1e isn't fast enough for still images, & the libaom team have put more effort into intra coding than the teams responsible for producing the other prominent open source AV1 encoders."}),(0,n.jsx)("p",{children:"A sample command for encoding AVIF looks like this:"}),(0,n.jsx)("pre",{children:(0,n.jsx)("code",{children:"avifenc -c aom -s 4 -j 8 -d 10 -y 444 --min 1 --max 63 -a end-usage=q -a cq-level=16 -a tune=ssim [input] output.avif"})}),(0,n.jsx)("p",{children:"Where:"}),(0,n.jsxs)("ul",{children:[(0,n.jsxs)("li",{children:[(0,n.jsx)(i.code,{children:"-c aom"})," is the encoder"]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.code,{children:"-s 4"})," is the speed. Speeds 4 & below offer the best compression quality at the expense of longer encode times."]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.code,{children:"-j 8"})," is the number of threads the encoder is allowed to use. Increasing this past 12 will sometimes hurt encode times, as AVIF encoding via aomenc doesn't paralellize perfectly. Test using a speed benchmark to verify which value works best for you."]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.code,{children:"-d 10"})," is the bit depth. Specifying a value below 10 isn't recommended, as it will hurt coding efficiency even with an 8 bit source image."]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.code,{children:"-y 444"})," is the chroma subsampling mode. 4:4:4 chroma subsampling tends to provide better compression than 4:2:0 with AVIF, though on some images 4:2:0 chroma subsampling might be the better choice."]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.code,{children:"cq-level=16"})," is how you specify quality. Lower values correspond to higher quality & filesize, while higher values mean a smaller, lower-quality output is desired. This is preceded by ",(0,n.jsx)(i.code,{children:"-a"})," because it is an aomenc option, not an avifenc one."]}),(0,n.jsxs)("li",{children:[(0,n.jsx)(i.code,{children:"tune=ssim"})," is how the encoder handles RDO (rate-distortion optimization). This may be redundant with the default aomenc parameters, but specifying doesn't hurt to avoid an unintended change if a default is modified sometime in the future."]})]})]})]}),"\n",(0,n.jsx)(i.p,{children:"Additionally, AVIF tends to be underwhelming at high fidelity with photographic images. Compared to older codecs it usually outperforms the competition, but since medium to high fidelity tends to be the target for a lot of modern web delivery, it is disappointing to see AVIF not performing as well here."}),"\n",(0,n.jsx)(i.p,{children:"AVIF also does not have progressive decode. This is a common weakness of video-based image codecs. While there is a hacky way to do progressive AVIF by encoding a low fidelity frame & then a high fidelity frame in an animated AVIF at a high framerate so the low fidelity frame is loaded & plays first, this is far from ideal for the average user & adds to an already burdensome encoding process. Additionally, this has issues with Firefox, which only recently got support for animated AVIF."}),"\n",(0,n.jsx)(i.p,{children:"Finally, AVIF's lossless mode is incredibly underwhelming, often producing larger files than PNG. When compressing losslessly, avoid AVIF entirely."}),"\n",(0,n.jsx)(i.h2,{id:"conclusion",children:"Conclusion"}),"\n",(0,n.jsx)(i.p,{children:"While AVIF is certainly promising, its shortcomings"})]})}function h(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},8453:(e,i,s)=>{s.d(i,{R:()=>r,x:()=>a});var n=s(6540);const t={},o=n.createContext(t);function r(e){const i=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),n.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/7385c97b.9ee263a4.js b/assets/js/7385c97b.9ee263a4.js new file mode 100644 index 000000000..df2b8d0e8 --- /dev/null +++ b/assets/js/7385c97b.9ee263a4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8415],{5795:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>l,contentTitle:()=>a,default:()=>h,frontMatter:()=>r,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"images/AVIF","title":"AVIF","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/images/AVIF.mdx","sourceDirName":"images","slug":"/images/AVIF","permalink":"/docs/images/AVIF","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/AVIF.mdx","tags":[],"version":"current","sidebarPosition":6,"frontMatter":{"title":"AVIF","sidebar_position":6},"sidebar":"tutorialSidebar","previous":{"title":"JPEG 2000","permalink":"/docs/images/JPEG2000"},"next":{"title":"JPEG XL","permalink":"/docs/images/JXL"}}');var t=s(4848),o=s(8453);const r={title:"AVIF",sidebar_position:6},a="AVIF",l={},c=[{value:"Performance Checklist",id:"performance-checklist",level:2},{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"Advantages",id:"advantages",level:3},{value:"Limitations",id:"limitations",level:3},{value:"Conclusion",id:"conclusion",level:2}];function d(e){const i={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components},{Details:s}=i;return s||function(e,i){throw new Error("Expected "+(i?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"avif",children:"AVIF"})}),"\n",(0,t.jsx)(i.admonition,{title:"Under Maintenance",type:"info",children:(0,t.jsx)(i.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,t.jsxs)(i.p,{children:["AVIF, which stands for AV1 Image File Format, is a newer image codec that is based on the ",(0,t.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," video codec. AVIF supersedes ",(0,t.jsx)(i.a,{href:"/docs/images/HEIC",children:"HEIC"}),", & uses the same HEIF container as HEIC. AVIF is designed to have a better featureset & better general lossy compression than older image codecs, including ",(0,t.jsx)(i.a,{href:"/docs/images/WebP",children:"WebP"}),", HEIC, & ",(0,t.jsx)(i.a,{href:"/docs/images/JPEG",children:"JPEG"}),". AVIF is often compared to ",(0,t.jsx)(i.a,{href:"/docs/images/JXL",children:"JPEG-XL"}),", though in practice, the two have very different strengths."]}),"\n",(0,t.jsx)(i.p,{children:"There are two AVIF profiles available for encoding: Baseline & Advanced, which are based on AV1's Main & High profiles respectively. The AVIF Baseline profile supports up to 8,192*4,352 resolution specified by the requirement of using AV1 Level 5.1 or lower. Using tiling, it is possible to increase the maximum resolution of the AVIF Baseline profile to 65536*65536, although this hurts coding efficiency as visual anomalies may be encountered along the edges of the tile boundaries. AVIF is also limited to 10 bit color precision in its Baseline profile."}),"\n",(0,t.jsx)(i.p,{children:"In the AVIF Advanced profile, the maximum image dimensions extend to 16,384*8,704. Tiling may be used in the Advanced profile to create larger images, but the same limitations regarding visual artifacts apply. The AVIF Advanced profile extends the allowed AV1 Level to 6.0 or lower, & the highest bit depth offered by this profile is 12 BPC. It is worth noting that while it is currently a near certainty that AVIF implementations will support both the Baseline & Advanced profiles, this may not always be the case. This is a problem that affects HEIC currently, & is a known potential weakness of video-based image codecs."}),"\n",(0,t.jsx)(i.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,t.jsxs)(i.p,{children:["Lossless? ",(0,t.jsx)(i.em,{children:"Poorly"})]}),"\n",(0,t.jsxs)(i.p,{children:["Lossy? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Supported Bit Depths:\n",(0,t.jsx)(i.em,{children:"8 BPC, 10 BPC, 12 BPC"})]}),"\n",(0,t.jsxs)(i.p,{children:["HDR/Wide Gamut? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Animation? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Transparency? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Progressive Decode? ",(0,t.jsx)(i.em,{children:"No"})]}),"\n",(0,t.jsxs)(i.p,{children:["Royalty Free? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.strong,{children:"Compatible Browsers"})," (full support)"]}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsxs)(i.li,{children:["\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.a,{href:"https://www.google.com/chrome/",children:"Google Chrome"})," 85+"]}),"\n"]}),"\n",(0,t.jsxs)(i.li,{children:["\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.a,{href:"https://www.apple.com/safari/",children:"Safari"})," 16.4+"]}),"\n"]}),"\n",(0,t.jsxs)(i.li,{children:["\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.a,{href:"https://www.mozilla.org/en-US/firefox/new/",children:"Firefox"})," 113+"]}),"\n"]}),"\n",(0,t.jsxs)(i.li,{children:["\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.a,{href:"https://www.opera.com/",children:"Opera"})," 71+"]}),"\n"]}),"\n",(0,t.jsxs)(i.li,{children:["\n",(0,t.jsx)(i.p,{children:(0,t.jsx)(i.a,{href:"https://apps.gnome.org/app/org.gnome.Epiphany/",children:"GNOME Web"})}),"\n"]}),"\n",(0,t.jsxs)(i.li,{children:["\n",(0,t.jsx)(i.p,{children:(0,t.jsx)(i.a,{href:"https://thorium.rocks/",children:"Thorium"})}),"\n"]}),"\n",(0,t.jsxs)(i.li,{children:["\n",(0,t.jsx)(i.p,{children:(0,t.jsx)(i.a,{href:"https://thorium.rocks/mercury",children:"Mercury"})}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(i.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,t.jsx)(i.h3,{id:"advantages",children:"Advantages"}),"\n",(0,t.jsx)(i.p,{children:"AVIF is known for its extremely strong lossy compression performance for non-photographic images as well as photographic images in the low to medium fidelity range. AVIF is consistently better than JPEG visually, except for with complex images that contain a lot of highly entropic data like random noise."}),"\n",(0,t.jsx)(i.p,{children:"AVIF compatibility has grown rapidly since its adoption in Google Chrome in 2020. For a relatively new image format, its level of penetration has been stellar, especially in the browser market. At this point in time, it would be a safe bet to ship AVIF images for your site given they compress better than JPEG & have older formats provided as fallbacks."}),"\n",(0,t.jsx)(i.p,{children:"AVIF's wider featureset enables new experiences through images, including HDR. AVIF also presents astonishing animation prowess, as it is capable of using AV1's inter-frame coding techniques which make it easily the best animated image format for most use cases where it is compatible."}),"\n",(0,t.jsx)(i.h3,{id:"limitations",children:"Limitations"}),"\n",(0,t.jsx)(i.p,{children:"AVIF encoding implementations are difficult to use, and images require much longer encoding times for what can be considered competitive quality. Making encoding more difficult, AVIF's use of intra-frame coding techniques that share data between blocks reduces parallelization capability & worsens generation loss. Theoretically, this improves coding efficiency, though. Via the AVIF Encoding section of the aomenc page:"}),"\n",(0,t.jsxs)(s,{children:[(0,t.jsx)("summary",{children:"AVIF Encoding with aomenc through avifenc"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:"Using aomenc through avifenc is widely considered to be the best way to encode AVIF images, as SVT-AV1 only supports 4:2:0 chroma subsampling, rav1e isn't fast enough for still images, & the libaom team have put more effort into intra coding than the teams responsible for producing the other prominent open source AV1 encoders."}),(0,t.jsx)("p",{children:"A sample command for encoding AVIF looks like this:"}),(0,t.jsx)("pre",{children:(0,t.jsx)("code",{children:"avifenc -c aom -s 4 -j 8 -d 10 -y 444 --min 1 --max 63 -a end-usage=q -a cq-level=16 -a tune=ssim [input] output.avif"})}),(0,t.jsx)("p",{children:"Where:"}),(0,t.jsxs)("ul",{children:[(0,t.jsxs)("li",{children:[(0,t.jsx)(i.code,{children:"-c aom"})," is the encoder"]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(i.code,{children:"-s 4"})," is the speed. Speeds 4 & below offer the best compression quality at the expense of longer encode times."]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(i.code,{children:"-j 8"})," is the number of threads the encoder is allowed to use. Increasing this past 12 will sometimes hurt encode times, as AVIF encoding via aomenc doesn't paralellize perfectly. Test using a speed benchmark to verify which value works best for you."]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(i.code,{children:"-d 10"})," is the bit depth. Specifying a value below 10 isn't recommended, as it will hurt coding efficiency even with an 8 bit source image."]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(i.code,{children:"-y 444"})," is the chroma subsampling mode. 4:4:4 chroma subsampling tends to provide better compression than 4:2:0 with AVIF, though on some images 4:2:0 chroma subsampling might be the better choice."]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(i.code,{children:"cq-level=16"})," is how you specify quality. Lower values correspond to higher quality & filesize, while higher values mean a smaller, lower-quality output is desired. This is preceded by ",(0,t.jsx)(i.code,{children:"-a"})," because it is an aomenc option, not an avifenc one."]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(i.code,{children:"tune=ssim"})," is how the encoder handles RDO (rate-distortion optimization). This may be redundant with the default aomenc parameters, but specifying doesn't hurt to avoid an unintended change if a default is modified sometime in the future."]})]})]})]}),"\n",(0,t.jsx)(i.p,{children:"Additionally, AVIF tends to be underwhelming at high fidelity with photographic images. Compared to older codecs it usually outperforms the competition, but since medium to high fidelity tends to be the target for a lot of modern web delivery, it is disappointing to see AVIF not performing as well here."}),"\n",(0,t.jsx)(i.p,{children:"AVIF also does not have progressive decode. This is a common weakness of video-based image codecs. While there is a hacky way to do progressive AVIF by encoding a low fidelity frame & then a high fidelity frame in an animated AVIF at a high framerate so the low fidelity frame is loaded & plays first, this is far from ideal for the average user & adds to an already burdensome encoding process. Additionally, this has issues with Firefox, which only recently got support for animated AVIF."}),"\n",(0,t.jsx)(i.p,{children:"Finally, AVIF's lossless mode is incredibly underwhelming, often producing larger files than PNG. When compressing losslessly, avoid AVIF entirely."}),"\n",(0,t.jsx)(i.h2,{id:"conclusion",children:"Conclusion"}),"\n",(0,t.jsx)(i.p,{children:"While AVIF is certainly promising, its shortcomings"})]})}function h(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},8453:(e,i,s)=>{s.d(i,{R:()=>r,x:()=>a});var n=s(6540);const t={},o=n.createContext(t);function r(e){const i=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),n.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/75936cdf.b36d710c.js b/assets/js/75936cdf.b36d710c.js deleted file mode 100644 index 29719bfde..000000000 --- a/assets/js/75936cdf.b36d710c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7564],{9613:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>s,default:()=>l,frontMatter:()=>r,metadata:()=>a,toc:()=>d});var t=i(4848),o=i(8453);const r={title:"Graining",sidebar_position:12},s="Graining",a={id:"filtering/graining",title:"Graining",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/filtering/graining.mdx",sourceDirName:"filtering",slug:"/filtering/graining",permalink:"/docs/filtering/graining",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/graining.mdx",tags:[],version:"current",sidebarPosition:12,frontMatter:{title:"Graining",sidebar_position:12},sidebar:"tutorialSidebar",previous:{title:"Deband",permalink:"/docs/filtering/deband"},next:{title:"Intro",permalink:"/docs/colorimetry/intro"}},c={},d=[];function u(e){const n={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"graining",children:"Graining"})}),"\n",(0,t.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function l(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>a});var t=i(6540);const o={},r=t.createContext(o);function s(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/75936cdf.f2d00a0a.js b/assets/js/75936cdf.f2d00a0a.js new file mode 100644 index 000000000..87df56460 --- /dev/null +++ b/assets/js/75936cdf.f2d00a0a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7564],{4703:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>s,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"filtering/graining","title":"Graining","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/filtering/graining.mdx","sourceDirName":"filtering","slug":"/filtering/graining","permalink":"/docs/filtering/graining","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/graining.mdx","tags":[],"version":"current","sidebarPosition":12,"frontMatter":{"title":"Graining","sidebar_position":12},"sidebar":"tutorialSidebar","previous":{"title":"Deband","permalink":"/docs/filtering/deband"},"next":{"title":"Intro","permalink":"/docs/colorimetry/intro"}}');var o=i(4848),r=i(8453);const s={title:"Graining",sidebar_position:12},a="Graining",c={},d=[];function l(e){const n={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"graining",children:"Graining"})}),"\n",(0,o.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>a});var t=i(6540);const o={},r=t.createContext(o);function s(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/76096a15.2d7f04b6.js b/assets/js/76096a15.2d7f04b6.js deleted file mode 100644 index 048dab312..000000000 --- a/assets/js/76096a15.2d7f04b6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8924],{8560:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var i=s(4848),n=s(8453);const r={title:"SRT"},o="SRT",l={id:"subtitles/SRT",title:"SRT",description:"SubRip Text (SRT) is a text format for subtitles, described as 'the most basic of all subtitle formats'. SRT files are plain text with the extension .srt.",source:"@site/docs/subtitles/SRT.mdx",sourceDirName:"subtitles",slug:"/subtitles/SRT",permalink:"/docs/subtitles/SRT",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/subtitles/SRT.mdx",tags:[],version:"current",frontMatter:{title:"SRT"},sidebar:"tutorialSidebar",previous:{title:"Mediacodec",permalink:"/docs/encoders_hw/mediacodec"},next:{title:"SubStation Alpha",permalink:"/docs/subtitles/SSA"}},c={},d=[{value:"Format",id:"format",level:2},{value:"Unoffical features",id:"unoffical-features",level:3},{value:"Example",id:"example",level:2}];function a(e){const t={code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"srt",children:"SRT"})}),"\n",(0,i.jsxs)(t.p,{children:["SubRip Text (SRT) is a text format for subtitles, described as 'the most basic of all subtitle formats'. SRT files are plain text with the extension ",(0,i.jsx)(t.code,{children:".srt"}),"."]}),"\n",(0,i.jsx)(t.h2,{id:"format",children:"Format"}),"\n",(0,i.jsxs)(t.p,{children:["Subtitles are placed into sequentially ordered groups, called cues, with a starting and ending timestamp, encoded ",(0,i.jsx)(t.code,{children:"hours:minutes:seconds,milliseconds"}),". Note the seperator for the millisecond value is a comma. The starting and ending value are seperated by ",(0,i.jsx)(t.code,{children:"--\x3e"}),"."]}),"\n",(0,i.jsx)(t.h3,{id:"unoffical-features",children:"Unoffical features"}),"\n",(0,i.jsx)(t.p,{children:"Some basic HTML tags are supported by some viewers, such as:"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"bold"})," ",(0,i.jsx)(t.strong,{children:"bold"})]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"italics"})," ",(0,i.jsx)(t.em,{children:"italics"})]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:""})," underlined"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:'Blue'})," colored text."]}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"Note these will be displayed verbatim on viewers that don't support these features."}),"\n",(0,i.jsx)(t.h2,{id:"example",children:"Example"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{children:"1\n00:00:00,000 --\x3e 00:01:00,000\nThis subtitle will be visible for the first minute of the stream\n\n2\n00:01:00,000 --\x3e 00:01:30,000\nand this one for thirty seconds after that.\n"})})]})}function u(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(a,{...e})}):a(e)}},8453:(e,t,s)=>{s.d(t,{R:()=>o,x:()=>l});var i=s(6540);const n={},r=i.createContext(n);function o(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:o(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/76096a15.f48bc36b.js b/assets/js/76096a15.f48bc36b.js new file mode 100644 index 000000000..8f7786de7 --- /dev/null +++ b/assets/js/76096a15.f48bc36b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8924],{3065:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>l,metadata:()=>i,toc:()=>a});const i=JSON.parse('{"id":"subtitles/SRT","title":"SRT","description":"SubRip Text (SRT) is a text format for subtitles, described as \'the most basic of all subtitle formats\'. SRT files are plain text with the extension .srt.","source":"@site/docs/subtitles/SRT.mdx","sourceDirName":"subtitles","slug":"/subtitles/SRT","permalink":"/docs/subtitles/SRT","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/subtitles/SRT.mdx","tags":[],"version":"current","frontMatter":{"title":"SRT"},"sidebar":"tutorialSidebar","previous":{"title":"Mediacodec","permalink":"/docs/encoders_hw/mediacodec"},"next":{"title":"SubStation Alpha","permalink":"/docs/subtitles/SSA"}}');var n=s(4848),r=s(8453);const l={title:"SRT"},o="SRT",c={},a=[{value:"Format",id:"format",level:2},{value:"Unoffical features",id:"unoffical-features",level:3},{value:"Example",id:"example",level:2}];function d(e){const t={code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"srt",children:"SRT"})}),"\n",(0,n.jsxs)(t.p,{children:["SubRip Text (SRT) is a text format for subtitles, described as 'the most basic of all subtitle formats'. SRT files are plain text with the extension ",(0,n.jsx)(t.code,{children:".srt"}),"."]}),"\n",(0,n.jsx)(t.h2,{id:"format",children:"Format"}),"\n",(0,n.jsxs)(t.p,{children:["Subtitles are placed into sequentially ordered groups, called cues, with a starting and ending timestamp, encoded ",(0,n.jsx)(t.code,{children:"hours:minutes:seconds,milliseconds"}),". Note the seperator for the millisecond value is a comma. The starting and ending value are seperated by ",(0,n.jsx)(t.code,{children:"--\x3e"}),"."]}),"\n",(0,n.jsx)(t.h3,{id:"unoffical-features",children:"Unoffical features"}),"\n",(0,n.jsx)(t.p,{children:"Some basic HTML tags are supported by some viewers, such as:"}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.code,{children:"bold"})," ",(0,n.jsx)(t.strong,{children:"bold"})]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.code,{children:"italics"})," ",(0,n.jsx)(t.em,{children:"italics"})]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.code,{children:""})," underlined"]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.code,{children:'Blue'})," colored text."]}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:"Note these will be displayed verbatim on viewers that don't support these features."}),"\n",(0,n.jsx)(t.h2,{id:"example",children:"Example"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{children:"1\n00:00:00,000 --\x3e 00:01:00,000\nThis subtitle will be visible for the first minute of the stream\n\n2\n00:01:00,000 --\x3e 00:01:30,000\nand this one for thirty seconds after that.\n"})})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},8453:(e,t,s)=>{s.d(t,{R:()=>l,x:()=>o});var i=s(6540);const n={},r=i.createContext(n);function l(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:l(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/7d09a242.ce991e50.js b/assets/js/7d09a242.ce991e50.js deleted file mode 100644 index 33bbf1753..000000000 --- a/assets/js/7d09a242.ce991e50.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6692],{1586:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>m,frontMatter:()=>l,metadata:()=>c,toc:()=>h});var s=i(4848),t=i(8453),a=i(1470),r=i(9365);const l={title:"aomenc",sidebar_position:4,keywords:["AV1","encoding","video encoding","AOM AV1"]},o="aomenc",c={id:"encoders/aomenc",title:"aomenc",description:"aomenc, AOM-AV1, or just libaom is a command line application for encoding AV1 written in C and Assembly developed by AOMedia, which is also the reference encoder for AV1.",source:"@site/docs/encoders/aomenc.mdx",sourceDirName:"encoders",slug:"/encoders/aomenc",permalink:"/docs/encoders/aomenc",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/aomenc.mdx",tags:[],version:"current",sidebarPosition:4,frontMatter:{title:"aomenc",sidebar_position:4,keywords:["AV1","encoding","video encoding","AOM AV1"]},sidebar:"tutorialSidebar",previous:{title:"x266",permalink:"/docs/encoders/x266"},next:{title:"SVT-AV1-PSY",permalink:"/docs/encoders/SVT-AV1-PSY"}},d={},h=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"AV1 Encoding",id:"av1-encoding",level:3},{value:"AVIF Encoding",id:"avif-encoding",level:3},{value:"Recommendations",id:"recommendations",level:2},{value:"Community Forks",id:"community-forks",level:2}];function u(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"aomenc",children:"aomenc"})}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"https://aomedia.googlesource.com/aom/",children:"aomenc"}),", AOM-AV1, or just ",(0,s.jsx)(n.strong,{children:"libaom"})," is a command line application for encoding AV1 written in C and Assembly developed by AOMedia, which is also the reference encoder for AV1."]}),"\n",(0,s.jsx)(n.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,s.jsxs)(n.p,{children:["aomenc is available in FFmpeg via ",(0,s.jsx)(n.code,{children:"libaom-av1"}),", check if you have it by running ",(0,s.jsx)(n.code,{children:"ffmpeg -h encoder=libaom-av1"}),". You can input non-FFmpeg standard aomenc parameters via ",(0,s.jsx)(n.code,{children:"-aom-params"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,s.jsx)(n.p,{children:"aomenc supports the following color spaces:"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Format"}),(0,s.jsx)(n.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,s.jsx)(n.th,{children:"Supported Bit Depth(s)"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV420P"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,s.jsx)(n.td,{children:"8-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV422P"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,s.jsx)(n.td,{children:"8-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV444P"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,s.jsx)(n.td,{children:"8-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"GBRP"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,s.jsx)(n.td,{children:"8-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"GRAY8"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,s.jsx)(n.td,{children:"8-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV420P10LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,s.jsx)(n.td,{children:"10-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV422P10LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,s.jsx)(n.td,{children:"10-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV444P10LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,s.jsx)(n.td,{children:"10-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"GBRP10LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,s.jsx)(n.td,{children:"10-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"GRAY10LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,s.jsx)(n.td,{children:"10-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV420P12LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,s.jsx)(n.td,{children:"12-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV422P12LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,s.jsx)(n.td,{children:"12-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"YUV444P12LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,s.jsx)(n.td,{children:"12-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"GBRP12LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,s.jsx)(n.td,{children:"12-bit"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:"GRAY12LE"}),(0,s.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,s.jsx)(n.td,{children:"12-bit"})]})]})]}),"\n",(0,s.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsxs)(a.A,{children:[(0,s.jsxs)(r.A,{value:"unixlike",label:"Linux & macOS",default:!0,children:[(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsx)(n.li,{children:"Clone the mainline aom repo:"}),"\n"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Clone the aom repo"',children:"git clone https://aomedia.googlesource.com/aom\ncd aom && mkdir aom_build && cd aom_build\n"})}),(0,s.jsxs)(n.ol,{start:"2",children:["\n",(0,s.jsxs)(n.li,{children:["Configure compilation. The following flags are set to ensure the ",(0,s.jsx)(n.code,{children:"aomenc"})," binary is build for optimal performance:"]}),"\n"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Set CMake flags"',children:'cmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt" -DCMAKE_LD_FLAGS="-flto -O3 -march=native"\n'})}),(0,s.jsxs)(n.ol,{start:"3",children:["\n",(0,s.jsx)(n.li,{children:"Compile:"}),"\n"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Compile"',children:"make -j$(nproc)\n"})}),(0,s.jsxs)(n.ol,{start:"4",children:["\n",(0,s.jsx)(n.li,{children:"Install to your system. This may require elevated privileges:"}),"\n"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Install"',children:"make install\n"})})]}),(0,s.jsxs)(r.A,{value:"wind",label:"Windows",children:[(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"MSYS2"})," is the best option for building in Windows, as it provides a Unix-like environment for compilation."]}),(0,s.jsxs)(n.ol,{start:"0",children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Make sure you have downloaded & installed MSYS2 from ",(0,s.jsx)(n.a,{href:"https://www.msys2.org/",children:"the MSYS2 website"})," before beginning the build process."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:"Start the UCRT64 console & install the required dependencies:"}),"\n"]}),"\n"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"pacman -S cmake git perl yasm nasm python3 doxygen mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake base-devel\n"})}),(0,s.jsxs)(n.ol,{start:"2",children:["\n",(0,s.jsx)(n.li,{children:"Clone the mainline aom repo:"}),"\n"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Clone the aom repo"',children:"git clone https://aomedia.googlesource.com/aom\ncd aom && mkdir aom_build && cd aom_build\n"})}),(0,s.jsxs)(n.ol,{start:"2",children:["\n",(0,s.jsxs)(n.li,{children:["Configure compilation. The following flags are set to ensure the ",(0,s.jsx)(n.code,{children:"aomenc"})," binary is build for optimal performance:"]}),"\n"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Set CMake flags"',children:'cmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt" -DCMAKE_LD_FLAGS="-flto -O3 -march=native"\n'})}),(0,s.jsxs)(n.ol,{start:"3",children:["\n",(0,s.jsx)(n.li,{children:"Compile:"}),"\n"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Compile"',children:"make -j$(nproc)\n"})}),(0,s.jsxs)(n.p,{children:["The resulting binary will be available within the home folder of the location where you installed MSYS2 (usually ",(0,s.jsx)(n.code,{children:"C:"}),"). Navigate there, and then to the ",(0,s.jsx)(n.code,{children:"aom"})," folder; the binary should be there."]}),(0,s.jsx)(n.p,{children:'Built files should be in the "Debug" folder.'})]})]}),"\n",(0,s.jsx)(n.admonition,{title:"Sharing Native Binaries",type:"warning",children:(0,s.jsx)(n.p,{children:"Avoid sharing binaries compiled with native CPU optimizations unless the person you're sharing to has the same CPU architecture, as this can lead to incorrect encoder behavior."})}),"\n",(0,s.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(n.h3,{id:"av1-encoding",children:"AV1 Encoding"}),"\n",(0,s.jsx)(n.admonition,{title:"2-Pass Encoding",type:"note",children:(0,s.jsx)(n.p,{children:"The way aomenc was developed requires 2-pass to take full advantage of its efficiency which include better rate controls and encoding features. So always specify the encoder to use 2 passes when encoding."})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Simple Y4M input with CQ 22, 1 pass, and raw ivf bitstream output"',children:"aomenc --end-usage=q --cq-level=32 --bit-depth=10 --passes=1 --ivf -o output.ivf input.y4m\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Pipe from FFmpeg"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | aomenc - --end-usage=q --cq-level=32 --bit-depth=10 --passes=1 --ivf -o output.ivf\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Pipe from FFmpeg, 2-pass, pass 1"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | aomenc - --end-usage=q --cq-level=32 --bit-depth=10 --passes=2 --pass=1 --fpf-log=aom-pass.log --ivf -o output.ivf\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Pipe from FFmpeg, 2-pass, pass 2"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | aomenc - --end-usage=q --cq-level=32 --bit-depth=10 --passes=2 --pass=2 --fpf-log=aom-pass.log --ivf -o output.ivf\n"})}),"\n",(0,s.jsx)(n.h3,{id:"avif-encoding",children:"AVIF Encoding"}),"\n",(0,s.jsx)(n.p,{children:"Using aomenc through avifenc is widely considered to be the best way to encode AVIF images, as SVT-AV1 only supports 4:2:0 chroma subsampling, rav1e isn't fast enough for still images, & the libaom team have put more effort into intra coding than the teams responsible for producing the other prominent open source AV1 encoders. A sample command for encoding AVIF looks like this:"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"avifenc -c aom -s 4 -j 8 -d 10 -y 444 --min 1 --max 63 -a end-usage=q -a cq-level=16 -a tune=ssim [input] output.avif"})}),"\n",(0,s.jsx)(n.p,{children:"Where:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"-c aom"})," is the encoder"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"-s 4"})," is the speed. Speeds 4 & below offer the best compression quality at the expense of longer encode times."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"-j 8"})," is the number of threads the encoder is allowed to use. Increasing this past 12 will sometimes hurt encode times, as AVIF encoding via aomenc doesn't parallelize perfectly. Test using a speed benchmark to verify which value works best for you."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"-d 10"})," is the bit depth. Specifying a value below 10 isn't recommended, as it will hurt coding efficiency even with an 8-bit source image."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"-y 444"})," is the chroma subsampling mode. 4:4:4 chroma subsampling tends to provide better compression than 4:2:0 with AVIF, though on some images 4:2:0 chroma subsampling might be the better choice."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"cq-level=16"})," is how you specify quality. Lower values correspond to higher quality & filesize, while higher values mean a smaller, lower-quality output is desired. This is preceded by ",(0,s.jsx)(n.code,{children:"-a"})," because it is an aomenc option, not an avifenc one."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"tune=ssim"})," is how the encoder handles RDO (rate-distortion optimization). This may be redundant with the default aomenc parameters, but specifying doesn't hurt to avoid an unintended change if a default is modified sometime in the future."]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"recommendations",children:"Recommendations"}),"\n",(0,s.jsxs)(n.p,{children:["aomenc is largely lacking in its ability to take advantage of multiple threads, so a tool like ",(0,s.jsx)(n.a,{href:"/docs/utilities/av1an",children:"Av1an"})," should be utilized for effective parallelization. The parameters shown will be biased towards Av1an and ",(0,s.jsx)(n.a,{href:"/docs/encoders/aom-av1-lavish",children:"aom-av1-lavish"})," usage, so if you plan on using standalone aomenc please adjust as needed."]}),"\n",(0,s.jsx)(n.p,{children:"Here are some recommended parameters:"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"--bit-depth=10 --cpu-used=4 --end-usage=q --cq-level=24 --threads=2 --tile-columns=0 --tile-rows=0 --lag-in-frames=64 --tune=ssim --enable-keyframe-filtering=1 --disable-kf --kf-max-dist=9999 --enable-qm=1 --deltaq-mode=0 --aq-mode=0 --enable-fwd-kf=0 --arnr-strength=1 --sb-size=dynamic --enable-dnl-denoising=0 --denoise-noise-level=8"})}),"\n",(0,s.jsx)(n.p,{children:"Now let's break it down."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--bit-depth=10"})," We're using 10bit because weird linear algebra allows the video to become smaller and reduces banding."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--cpu-used=4"})," This is the preset which ranges from 0-9, you can go to 3 if you want more efficiency, 2 if you have a lot of time, 4 is the sweet spot, and 6 if you want speed. Don't go above 6 (Worst efficiency) or even 0 (It would take WEEKS to finish)."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--end-usage=q --cq-level=24"})," This specifies that we are going to use a knockoff version of CRF level similar to x264/x265 encoders, in this case CRF 24."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--tile-columns=0 --tile-rows=0"})," This is the tiles options, where the encoder splits the videos into tiles to encode faster. See the image below (Yellow lines):"]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/tiling_av1.avif?token=GHSAT0AAAAAACEZPDXIZARY5MGSTJW4SI22ZHY636A",type:"image/avif"}),(0,s.jsx)("img",{src:"https://autumn.revolt.chat/attachments/HwhZjoDsdzLZsJM2mjzX7lEDmJn1xcYNdrQqmOxPYW/tiling_av1.jpeg",alt:"Tiling",loading:"lazy"})]}),"\n",(0,s.jsxs)(n.admonition,{title:"Tile usage",type:"note",children:[(0,s.jsxs)(n.p,{children:["Do NOT use tiles for 1080p and below, use 1 ",(0,s.jsx)(n.code,{children:"tile-columns"})," at 1440p (2K), 2 ",(0,s.jsx)(n.code,{children:"tile-columns"})," and 1 ",(0,s.jsx)(n.code,{children:"tile-rows"})," for 2160p (4K)."]}),(0,s.jsxs)(n.p,{children:["If you would like an easy way to calculate the necessary number of tiles for your video, you can use ",(0,s.jsx)(n.a,{href:"https://autocompressor.net/tools/av1-calculator",children:"the AV1 Encoding Calculator"})," online or run ",(0,s.jsx)(n.a,{href:"https://github.com/gianni-rosato/av1-tile-calc",children:"this local tile calculator"}),"."]})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--lag-in-frames=64"})," Similar to x264/x265 ",(0,s.jsx)(n.code,{children:"rc-lookahead"}),". Sets a number of frames to look ahead for frametype and ratecontrol, allowing for better compression decision making. Setting to a value greater than 64 is generally not considered useful."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--aq-mode=0"})," adaptive quantization mode, a mostly debatable area nowadays. 0 is better most of the time but some say 1 is also good."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-keyframe-filtering=1"})," We're setting it to 1 because of compatibility reasons, 2 is more efficient but there are seeking issues and FFmpeg can't input it."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--sb-size=dynamic"})," Allows the encoder to use 128x128 block partitioning besides 64x64 which gives an efficiency boost."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--deltaq-mode=0"})," This value has been tested to be more perceptually efficient."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--arnr-strength=1"})," Controls how strong the filtering (smoothing) will be, always been a hot topic. Most agree on the default of 4. Others think 1 is good for 3D Pixar CGI-like and 2D animation and 4 for live action content, and a higher value for lower bitrate encodes."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--disable-kf --enable-fwd-kf=0"})," We're disabling keyframes cause Av1an already did scene detection, so we wont have to. Plus it speeds things up."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--kf-max-dist=9999"})," Maximum keyframe interval, we're setting it at the highest possible value since Av1an's scene detection keyframe interval is already 240 by default"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-chroma-deltaq=1 --enable-qm=1"})," Parameters that give you free efficiency boost discovered via testing."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-dnl-denoising=0"})," Disables the encoder's built-in denoising technique when grain synthesis is enabled, you can optionally set it to 1 when you have a pretty noisy video since it works quite well (NLMeans is the denoiser used)."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--denoise-noise-level=8"})," AV1 grain synthesis, which is a technique where the encoder puts fake grain in so it looks more natural and potentially hiding video artifacts (cause grain is hard to encode and explodes bitrate usage because of their randomness). Don't attempt to use it at high values (>12) since it creates noticeable grain patterns."]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["You can use photon noise tables as an alternative via ",(0,s.jsx)(n.code,{children:"--film-grain-table"}),", which is also conveniently available in Av1an as ",(0,s.jsx)(n.code,{children:"--photon-noise=X"})]})}),"\n",(0,s.jsx)(n.h2,{id:"community-forks",children:"Community Forks"}),"\n",(0,s.jsxs)(n.p,{children:["Mainline aomenc is unfortunately not perfect. It suffers from bad defaults, a heavy focus on the perceptually flawed ",(0,s.jsx)(n.a,{href:"/docs/metrics/PSNR",children:"PSNR"})," metric, misleading settings, and other issues. Fortunately, there are a couple of forks developed by the encoding community that were created to combat aomenc's underlying issues."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"https://github.com/BlueSwordM/aom-av1-psy",children:"aom-av1-psy"})," ",(0,s.jsx)(n.em,{children:"No longer maintained as of 13th January 2023"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"/docs/encoders/aom-av1-lavish",children:"aom-av1-lavish"})," ",(0,s.jsx)(n.em,{children:"No longer maintained as of 4th June 2024"})]}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/docs/encoders/aom-psy101",children:"aom-psy101"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/porcino/aom-av1ador",children:"aom-av1ador"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"These forks fix up the poor decisions made by the original AOM devs and most importantly introduce new parameters and tunes to help fine-tune the encoder even more."})]})}function m(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},9365:(e,n,i)=>{i.d(n,{A:()=>r});i(6540);var s=i(4164);const t={tabItem:"tabItem_Ymn6"};var a=i(4848);function r(e){let{children:n,hidden:i,className:r}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,s.A)(t.tabItem,r),hidden:i,children:n})}},1470:(e,n,i)=>{i.d(n,{A:()=>w});var s=i(6540),t=i(4164),a=i(3104),r=i(6347),l=i(205),o=i(7485),c=i(1682),d=i(679);function h(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:n,children:i}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return h(e).map((e=>{let{props:{value:n,label:i,attributes:s,default:t}}=e;return{value:n,label:i,attributes:s,default:t}}))}(i);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,i])}function m(e){let{value:n,tabValues:i}=e;return i.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:i}=e;const t=(0,r.W6)(),a=function(e){let{queryString:n=!1,groupId:i}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:n,groupId:i});return[(0,o.aZ)(a),(0,s.useCallback)((e=>{if(!a)return;const n=new URLSearchParams(t.location.search);n.set(a,e),t.replace({...t.location,search:n.toString()})}),[a,t])]}function x(e){const{defaultValue:n,queryString:i=!1,groupId:t}=e,a=u(e),[r,o]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=i.find((e=>e.default))??i[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:a}))),[c,h]=p({queryString:i,groupId:t}),[x,f]=function(e){let{groupId:n}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,a]=(0,d.Dv)(i);return[t,(0,s.useCallback)((e=>{i&&a.set(e)}),[i,a])]}({groupId:t}),g=(()=>{const e=c??x;return m({value:e,tabValues:a})?e:null})();(0,l.A)((()=>{g&&o(g)}),[g]);return{selectedValue:r,selectValue:(0,s.useCallback)((e=>{if(!m({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);o(e),h(e),f(e)}),[h,f,a]),tabValues:a}}var f=i(2303);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var j=i(4848);function b(e){let{className:n,block:i,selectedValue:s,selectValue:r,tabValues:l}=e;const o=[],{blockElementScrollPositionUntilNextRender:c}=(0,a.a_)(),d=e=>{const n=e.currentTarget,i=o.indexOf(n),t=l[i].value;t!==s&&(c(n),r(t))},h=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=o.indexOf(e.currentTarget)+1;n=o[i]??o[0];break}case"ArrowLeft":{const i=o.indexOf(e.currentTarget)-1;n=o[i]??o[o.length-1];break}}n?.focus()};return(0,j.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.A)("tabs",{"tabs--block":i},n),children:l.map((e=>{let{value:n,label:i,attributes:a}=e;return(0,j.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>o.push(e),onKeyDown:h,onClick:d,...a,className:(0,t.A)("tabs__item",g.tabItem,a?.className,{"tabs__item--active":s===n}),children:i??n},n)}))})}function v(e){let{lazy:n,children:i,selectedValue:a}=e;const r=(Array.isArray(i)?i:[i]).filter(Boolean);if(n){const e=r.find((e=>e.props.value===a));return e?(0,s.cloneElement)(e,{className:(0,t.A)("margin-top--md",e.props.className)}):null}return(0,j.jsx)("div",{className:"margin-top--md",children:r.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function y(e){const n=x(e);return(0,j.jsxs)("div",{className:(0,t.A)("tabs-container",g.tabList),children:[(0,j.jsx)(b,{...n,...e}),(0,j.jsx)(v,{...n,...e})]})}function w(e){const n=(0,f.A)();return(0,j.jsx)(y,{...e,children:h(e.children)},String(n))}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>l});var s=i(6540);const t={},a=s.createContext(t);function r(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/7d09a242.fce803dc.js b/assets/js/7d09a242.fce803dc.js new file mode 100644 index 000000000..55189f733 --- /dev/null +++ b/assets/js/7d09a242.fce803dc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6692],{1720:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>m,frontMatter:()=>o,metadata:()=>s,toc:()=>h});const s=JSON.parse('{"id":"encoders/aomenc","title":"aomenc","description":"aomenc, AOM-AV1, or just libaom is a command line application for encoding AV1 written in C and Assembly developed by AOMedia, which is also the reference encoder for AV1.","source":"@site/docs/encoders/aomenc.mdx","sourceDirName":"encoders","slug":"/encoders/aomenc","permalink":"/docs/encoders/aomenc","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/aomenc.mdx","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"title":"aomenc","sidebar_position":4,"keywords":["AV1","encoding","video encoding","AOM AV1"]},"sidebar":"tutorialSidebar","previous":{"title":"x266","permalink":"/docs/encoders/x266"},"next":{"title":"SVT-AV1-PSY","permalink":"/docs/encoders/SVT-AV1-PSY"}}');var t=i(4848),a=i(8453),r=i(1470),l=i(9365);const o={title:"aomenc",sidebar_position:4,keywords:["AV1","encoding","video encoding","AOM AV1"]},c="aomenc",d={},h=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"AV1 Encoding",id:"av1-encoding",level:3},{value:"AVIF Encoding",id:"avif-encoding",level:3},{value:"Recommendations",id:"recommendations",level:2},{value:"Community Forks",id:"community-forks",level:2}];function u(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"aomenc",children:"aomenc"})}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://aomedia.googlesource.com/aom/",children:"aomenc"}),", AOM-AV1, or just ",(0,t.jsx)(n.strong,{children:"libaom"})," is a command line application for encoding AV1 written in C and Assembly developed by AOMedia, which is also the reference encoder for AV1."]}),"\n",(0,t.jsx)(n.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,t.jsxs)(n.p,{children:["aomenc is available in FFmpeg via ",(0,t.jsx)(n.code,{children:"libaom-av1"}),", check if you have it by running ",(0,t.jsx)(n.code,{children:"ffmpeg -h encoder=libaom-av1"}),". You can input non-FFmpeg standard aomenc parameters via ",(0,t.jsx)(n.code,{children:"-aom-params"}),"."]}),"\n",(0,t.jsx)(n.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,t.jsx)(n.p,{children:"aomenc supports the following color spaces:"}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.th,{children:"Format"}),(0,t.jsx)(n.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,t.jsx)(n.th,{children:"Supported Bit Depth(s)"})]})}),(0,t.jsxs)(n.tbody,{children:[(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV420P"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,t.jsx)(n.td,{children:"8-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV422P"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,t.jsx)(n.td,{children:"8-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV444P"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,t.jsx)(n.td,{children:"8-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"GBRP"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,t.jsx)(n.td,{children:"8-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"GRAY8"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,t.jsx)(n.td,{children:"8-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV420P10LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,t.jsx)(n.td,{children:"10-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV422P10LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,t.jsx)(n.td,{children:"10-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV444P10LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,t.jsx)(n.td,{children:"10-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"GBRP10LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,t.jsx)(n.td,{children:"10-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"GRAY10LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,t.jsx)(n.td,{children:"10-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV420P12LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,t.jsx)(n.td,{children:"12-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV422P12LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,t.jsx)(n.td,{children:"12-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"YUV444P12LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,t.jsx)(n.td,{children:"12-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"GBRP12LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,t.jsx)(n.td,{children:"12-bit"})]}),(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{children:"GRAY12LE"}),(0,t.jsx)(n.td,{style:{textAlign:"center"},children:"-"}),(0,t.jsx)(n.td,{children:"12-bit"})]})]})]}),"\n",(0,t.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsxs)(r.A,{children:[(0,t.jsxs)(l.A,{value:"unixlike",label:"Linux & macOS",default:!0,children:[(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsx)(n.li,{children:"Clone the mainline aom repo:"}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Clone the aom repo"',children:"git clone https://aomedia.googlesource.com/aom\ncd aom && mkdir aom_build && cd aom_build\n"})}),(0,t.jsxs)(n.ol,{start:"2",children:["\n",(0,t.jsxs)(n.li,{children:["Configure compilation. The following flags are set to ensure the ",(0,t.jsx)(n.code,{children:"aomenc"})," binary is build for optimal performance:"]}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Set CMake flags"',children:'cmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt" -DCMAKE_LD_FLAGS="-flto -O3 -march=native"\n'})}),(0,t.jsxs)(n.ol,{start:"3",children:["\n",(0,t.jsx)(n.li,{children:"Compile:"}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Compile"',children:"make -j$(nproc)\n"})}),(0,t.jsxs)(n.ol,{start:"4",children:["\n",(0,t.jsx)(n.li,{children:"Install to your system. This may require elevated privileges:"}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Install"',children:"make install\n"})})]}),(0,t.jsxs)(l.A,{value:"wind",label:"Windows",children:[(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"MSYS2"})," is the best option for building in Windows, as it provides a Unix-like environment for compilation."]}),(0,t.jsxs)(n.ol,{start:"0",children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Make sure you have downloaded & installed MSYS2 from ",(0,t.jsx)(n.a,{href:"https://www.msys2.org/",children:"the MSYS2 website"})," before beginning the build process."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:"Start the UCRT64 console & install the required dependencies:"}),"\n"]}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"pacman -S cmake git perl yasm nasm python3 doxygen mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake base-devel\n"})}),(0,t.jsxs)(n.ol,{start:"2",children:["\n",(0,t.jsx)(n.li,{children:"Clone the mainline aom repo:"}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Clone the aom repo"',children:"git clone https://aomedia.googlesource.com/aom\ncd aom && mkdir aom_build && cd aom_build\n"})}),(0,t.jsxs)(n.ol,{start:"2",children:["\n",(0,t.jsxs)(n.li,{children:["Configure compilation. The following flags are set to ensure the ",(0,t.jsx)(n.code,{children:"aomenc"})," binary is build for optimal performance:"]}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Set CMake flags"',children:'cmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt" -DCMAKE_LD_FLAGS="-flto -O3 -march=native"\n'})}),(0,t.jsxs)(n.ol,{start:"3",children:["\n",(0,t.jsx)(n.li,{children:"Compile:"}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Compile"',children:"make -j$(nproc)\n"})}),(0,t.jsxs)(n.p,{children:["The resulting binary will be available within the home folder of the location where you installed MSYS2 (usually ",(0,t.jsx)(n.code,{children:"C:"}),"). Navigate there, and then to the ",(0,t.jsx)(n.code,{children:"aom"})," folder; the binary should be there."]}),(0,t.jsx)(n.p,{children:'Built files should be in the "Debug" folder.'})]})]}),"\n",(0,t.jsx)(n.admonition,{title:"Sharing Native Binaries",type:"warning",children:(0,t.jsx)(n.p,{children:"Avoid sharing binaries compiled with native CPU optimizations unless the person you're sharing to has the same CPU architecture, as this can lead to incorrect encoder behavior."})}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsx)(n.h3,{id:"av1-encoding",children:"AV1 Encoding"}),"\n",(0,t.jsx)(n.admonition,{title:"2-Pass Encoding",type:"note",children:(0,t.jsx)(n.p,{children:"The way aomenc was developed requires 2-pass to take full advantage of its efficiency which include better rate controls and encoding features. So always specify the encoder to use 2 passes when encoding."})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Simple Y4M input with CQ 22, 1 pass, and raw ivf bitstream output"',children:"aomenc --end-usage=q --cq-level=32 --bit-depth=10 --passes=1 --ivf -o output.ivf input.y4m\n"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Pipe from FFmpeg"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | aomenc - --end-usage=q --cq-level=32 --bit-depth=10 --passes=1 --ivf -o output.ivf\n"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Pipe from FFmpeg, 2-pass, pass 1"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | aomenc - --end-usage=q --cq-level=32 --bit-depth=10 --passes=2 --pass=1 --fpf-log=aom-pass.log --ivf -o output.ivf\n"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Pipe from FFmpeg, 2-pass, pass 2"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | aomenc - --end-usage=q --cq-level=32 --bit-depth=10 --passes=2 --pass=2 --fpf-log=aom-pass.log --ivf -o output.ivf\n"})}),"\n",(0,t.jsx)(n.h3,{id:"avif-encoding",children:"AVIF Encoding"}),"\n",(0,t.jsx)(n.p,{children:"Using aomenc through avifenc is widely considered to be the best way to encode AVIF images, as SVT-AV1 only supports 4:2:0 chroma subsampling, rav1e isn't fast enough for still images, & the libaom team have put more effort into intra coding than the teams responsible for producing the other prominent open source AV1 encoders. A sample command for encoding AVIF looks like this:"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.code,{children:"avifenc -c aom -s 4 -j 8 -d 10 -y 444 --min 1 --max 63 -a end-usage=q -a cq-level=16 -a tune=ssim [input] output.avif"})}),"\n",(0,t.jsx)(n.p,{children:"Where:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"-c aom"})," is the encoder"]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"-s 4"})," is the speed. Speeds 4 & below offer the best compression quality at the expense of longer encode times."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"-j 8"})," is the number of threads the encoder is allowed to use. Increasing this past 12 will sometimes hurt encode times, as AVIF encoding via aomenc doesn't parallelize perfectly. Test using a speed benchmark to verify which value works best for you."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"-d 10"})," is the bit depth. Specifying a value below 10 isn't recommended, as it will hurt coding efficiency even with an 8-bit source image."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"-y 444"})," is the chroma subsampling mode. 4:4:4 chroma subsampling tends to provide better compression than 4:2:0 with AVIF, though on some images 4:2:0 chroma subsampling might be the better choice."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"cq-level=16"})," is how you specify quality. Lower values correspond to higher quality & filesize, while higher values mean a smaller, lower-quality output is desired. This is preceded by ",(0,t.jsx)(n.code,{children:"-a"})," because it is an aomenc option, not an avifenc one."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"tune=ssim"})," is how the encoder handles RDO (rate-distortion optimization). This may be redundant with the default aomenc parameters, but specifying doesn't hurt to avoid an unintended change if a default is modified sometime in the future."]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"recommendations",children:"Recommendations"}),"\n",(0,t.jsxs)(n.p,{children:["aomenc is largely lacking in its ability to take advantage of multiple threads, so a tool like ",(0,t.jsx)(n.a,{href:"/docs/utilities/av1an",children:"Av1an"})," should be utilized for effective parallelization. The parameters shown will be biased towards Av1an and ",(0,t.jsx)(n.a,{href:"/docs/encoders/aom-av1-lavish",children:"aom-av1-lavish"})," usage, so if you plan on using standalone aomenc please adjust as needed."]}),"\n",(0,t.jsx)(n.p,{children:"Here are some recommended parameters:"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.code,{children:"--bit-depth=10 --cpu-used=4 --end-usage=q --cq-level=24 --threads=2 --tile-columns=0 --tile-rows=0 --lag-in-frames=64 --tune=ssim --enable-keyframe-filtering=1 --disable-kf --kf-max-dist=9999 --enable-qm=1 --deltaq-mode=0 --aq-mode=0 --enable-fwd-kf=0 --arnr-strength=1 --sb-size=dynamic --enable-dnl-denoising=0 --denoise-noise-level=8"})}),"\n",(0,t.jsx)(n.p,{children:"Now let's break it down."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--bit-depth=10"})," We're using 10bit because weird linear algebra allows the video to become smaller and reduces banding."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--cpu-used=4"})," This is the preset which ranges from 0-9, you can go to 3 if you want more efficiency, 2 if you have a lot of time, 4 is the sweet spot, and 6 if you want speed. Don't go above 6 (Worst efficiency) or even 0 (It would take WEEKS to finish)."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--end-usage=q --cq-level=24"})," This specifies that we are going to use a knockoff version of CRF level similar to x264/x265 encoders, in this case CRF 24."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--tile-columns=0 --tile-rows=0"})," This is the tiles options, where the encoder splits the videos into tiles to encode faster. See the image below (Yellow lines):"]}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/tiling_av1.avif?token=GHSAT0AAAAAACEZPDXIZARY5MGSTJW4SI22ZHY636A",type:"image/avif"}),(0,t.jsx)("img",{src:"https://autumn.revolt.chat/attachments/HwhZjoDsdzLZsJM2mjzX7lEDmJn1xcYNdrQqmOxPYW/tiling_av1.jpeg",alt:"Tiling",loading:"lazy"})]}),"\n",(0,t.jsxs)(n.admonition,{title:"Tile usage",type:"note",children:[(0,t.jsxs)(n.p,{children:["Do NOT use tiles for 1080p and below, use 1 ",(0,t.jsx)(n.code,{children:"tile-columns"})," at 1440p (2K), 2 ",(0,t.jsx)(n.code,{children:"tile-columns"})," and 1 ",(0,t.jsx)(n.code,{children:"tile-rows"})," for 2160p (4K)."]}),(0,t.jsxs)(n.p,{children:["If you would like an easy way to calculate the necessary number of tiles for your video, you can use ",(0,t.jsx)(n.a,{href:"https://autocompressor.net/tools/av1-calculator",children:"the AV1 Encoding Calculator"})," online or run ",(0,t.jsx)(n.a,{href:"https://github.com/gianni-rosato/av1-tile-calc",children:"this local tile calculator"}),"."]})]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--lag-in-frames=64"})," Similar to x264/x265 ",(0,t.jsx)(n.code,{children:"rc-lookahead"}),". Sets a number of frames to look ahead for frametype and ratecontrol, allowing for better compression decision making. Setting to a value greater than 64 is generally not considered useful."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--aq-mode=0"})," adaptive quantization mode, a mostly debatable area nowadays. 0 is better most of the time but some say 1 is also good."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-keyframe-filtering=1"})," We're setting it to 1 because of compatibility reasons, 2 is more efficient but there are seeking issues and FFmpeg can't input it."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--sb-size=dynamic"})," Allows the encoder to use 128x128 block partitioning besides 64x64 which gives an efficiency boost."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--deltaq-mode=0"})," This value has been tested to be more perceptually efficient."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--arnr-strength=1"})," Controls how strong the filtering (smoothing) will be, always been a hot topic. Most agree on the default of 4. Others think 1 is good for 3D Pixar CGI-like and 2D animation and 4 for live action content, and a higher value for lower bitrate encodes."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--disable-kf --enable-fwd-kf=0"})," We're disabling keyframes cause Av1an already did scene detection, so we wont have to. Plus it speeds things up."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--kf-max-dist=9999"})," Maximum keyframe interval, we're setting it at the highest possible value since Av1an's scene detection keyframe interval is already 240 by default"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-chroma-deltaq=1 --enable-qm=1"})," Parameters that give you free efficiency boost discovered via testing."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-dnl-denoising=0"})," Disables the encoder's built-in denoising technique when grain synthesis is enabled, you can optionally set it to 1 when you have a pretty noisy video since it works quite well (NLMeans is the denoiser used)."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--denoise-noise-level=8"})," AV1 grain synthesis, which is a technique where the encoder puts fake grain in so it looks more natural and potentially hiding video artifacts (cause grain is hard to encode and explodes bitrate usage because of their randomness). Don't attempt to use it at high values (>12) since it creates noticeable grain patterns."]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["You can use photon noise tables as an alternative via ",(0,t.jsx)(n.code,{children:"--film-grain-table"}),", which is also conveniently available in Av1an as ",(0,t.jsx)(n.code,{children:"--photon-noise=X"})]})}),"\n",(0,t.jsx)(n.h2,{id:"community-forks",children:"Community Forks"}),"\n",(0,t.jsxs)(n.p,{children:["Mainline aomenc is unfortunately not perfect. It suffers from bad defaults, a heavy focus on the perceptually flawed ",(0,t.jsx)(n.a,{href:"/docs/metrics/PSNR",children:"PSNR"})," metric, misleading settings, and other issues. Fortunately, there are a couple of forks developed by the encoding community that were created to combat aomenc's underlying issues."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.a,{href:"https://github.com/BlueSwordM/aom-av1-psy",children:"aom-av1-psy"})," ",(0,t.jsx)(n.em,{children:"No longer maintained as of 13th January 2023"})]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.a,{href:"/docs/encoders/aom-av1-lavish",children:"aom-av1-lavish"})," ",(0,t.jsx)(n.em,{children:"No longer maintained as of 4th June 2024"})]}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"/docs/encoders/aom-psy101",children:"aom-psy101"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://github.com/porcino/aom-av1ador",children:"aom-av1ador"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"These forks fix up the poor decisions made by the original AOM devs and most importantly introduce new parameters and tunes to help fine-tune the encoder even more."})]})}function m(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},9365:(e,n,i)=>{i.d(n,{A:()=>r});i(6540);var s=i(4164);const t={tabItem:"tabItem_Ymn6"};var a=i(4848);function r(e){let{children:n,hidden:i,className:r}=e;return(0,a.jsx)("div",{role:"tabpanel",className:(0,s.A)(t.tabItem,r),hidden:i,children:n})}},1470:(e,n,i)=>{i.d(n,{A:()=>w});var s=i(6540),t=i(4164),a=i(3104),r=i(6347),l=i(205),o=i(7485),c=i(1682),d=i(679);function h(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:n,children:i}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return h(e).map((e=>{let{props:{value:n,label:i,attributes:s,default:t}}=e;return{value:n,label:i,attributes:s,default:t}}))}(i);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,i])}function m(e){let{value:n,tabValues:i}=e;return i.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:i}=e;const t=(0,r.W6)(),a=function(e){let{queryString:n=!1,groupId:i}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:n,groupId:i});return[(0,o.aZ)(a),(0,s.useCallback)((e=>{if(!a)return;const n=new URLSearchParams(t.location.search);n.set(a,e),t.replace({...t.location,search:n.toString()})}),[a,t])]}function x(e){const{defaultValue:n,queryString:i=!1,groupId:t}=e,a=u(e),[r,o]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=i.find((e=>e.default))??i[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:a}))),[c,h]=p({queryString:i,groupId:t}),[x,f]=function(e){let{groupId:n}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(n),[t,a]=(0,d.Dv)(i);return[t,(0,s.useCallback)((e=>{i&&a.set(e)}),[i,a])]}({groupId:t}),g=(()=>{const e=c??x;return m({value:e,tabValues:a})?e:null})();(0,l.A)((()=>{g&&o(g)}),[g]);return{selectedValue:r,selectValue:(0,s.useCallback)((e=>{if(!m({value:e,tabValues:a}))throw new Error(`Can't select invalid tab value=${e}`);o(e),h(e),f(e)}),[h,f,a]),tabValues:a}}var f=i(2303);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var j=i(4848);function b(e){let{className:n,block:i,selectedValue:s,selectValue:r,tabValues:l}=e;const o=[],{blockElementScrollPositionUntilNextRender:c}=(0,a.a_)(),d=e=>{const n=e.currentTarget,i=o.indexOf(n),t=l[i].value;t!==s&&(c(n),r(t))},h=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=o.indexOf(e.currentTarget)+1;n=o[i]??o[0];break}case"ArrowLeft":{const i=o.indexOf(e.currentTarget)-1;n=o[i]??o[o.length-1];break}}n?.focus()};return(0,j.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.A)("tabs",{"tabs--block":i},n),children:l.map((e=>{let{value:n,label:i,attributes:a}=e;return(0,j.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>o.push(e),onKeyDown:h,onClick:d,...a,className:(0,t.A)("tabs__item",g.tabItem,a?.className,{"tabs__item--active":s===n}),children:i??n},n)}))})}function v(e){let{lazy:n,children:i,selectedValue:a}=e;const r=(Array.isArray(i)?i:[i]).filter(Boolean);if(n){const e=r.find((e=>e.props.value===a));return e?(0,s.cloneElement)(e,{className:(0,t.A)("margin-top--md",e.props.className)}):null}return(0,j.jsx)("div",{className:"margin-top--md",children:r.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==a})))})}function y(e){const n=x(e);return(0,j.jsxs)("div",{className:(0,t.A)("tabs-container",g.tabList),children:[(0,j.jsx)(b,{...n,...e}),(0,j.jsx)(v,{...n,...e})]})}function w(e){const n=(0,f.A)();return(0,j.jsx)(y,{...e,children:h(e.children)},String(n))}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>l});var s=i(6540);const t={},a=s.createContext(t);function r(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/7eff0f1a.47606ae6.js b/assets/js/7eff0f1a.47606ae6.js deleted file mode 100644 index 194e498c2..000000000 --- a/assets/js/7eff0f1a.47606ae6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2515],{7199:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>d,contentTitle:()=>r,default:()=>u,frontMatter:()=>s,metadata:()=>a,toc:()=>c});var n=o(4848),t=o(8453);const s={title:"AVC / H.264",sidebar_position:1},r="H.264",a={id:"video/AVC",title:"AVC / H.264",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/video/AVC.mdx",sourceDirName:"video",slug:"/video/AVC",permalink:"/docs/video/AVC",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/AVC.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"AVC / H.264",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"WavPack",permalink:"/docs/audio/WavPack"},next:{title:"HEVC / H.265",permalink:"/docs/video/HEVC"}},d={},c=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"h264",children:"H.264"})}),"\n",(0,n.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(i.p,{children:["H.264, also known as AVC (Advanced Video Coding), is a video compression standard that has played a significant role in multimedia codec technology. H.264 revolutionized video encoding by offering vastly more efficient compression than predecessors, and has been the nearly universal defacto video compression standard since. Its history is marked by continuous refinement and widespread adoption, especially as it pertains to the highly optimized ",(0,n.jsx)(i.a,{href:"/docs/encoders/x264",children:"x264"})," video encoder. Despite being over a decade old, H.264 remains relevant today. Newer codecs like ",(0,n.jsx)(i.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,n.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"}),", and ",(0,n.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," aim to provide more efficient compression than H.264 but are currently not as universal. The choice between these codecs largely depends on the specific requirements of the application, compatibility and support, and the balance between compression efficiency and computational complexity."]})]})}function u(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>r,x:()=>a});var n=o(6540);const t={},s=n.createContext(t);function r(e){const i=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),n.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/7eff0f1a.9a5d601b.js b/assets/js/7eff0f1a.9a5d601b.js new file mode 100644 index 000000000..9d4f1240e --- /dev/null +++ b/assets/js/7eff0f1a.9a5d601b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2515],{4592:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>d,contentTitle:()=>a,default:()=>u,frontMatter:()=>r,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"video/AVC","title":"AVC / H.264","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/video/AVC.mdx","sourceDirName":"video","slug":"/video/AVC","permalink":"/docs/video/AVC","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/AVC.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"AVC / H.264","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"WavPack","permalink":"/docs/audio/WavPack"},"next":{"title":"HEVC / H.265","permalink":"/docs/video/HEVC"}}');var t=o(4848),s=o(8453);const r={title:"AVC / H.264",sidebar_position:1},a="H.264",d={},c=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"h264",children:"H.264"})}),"\n",(0,t.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsxs)(i.p,{children:["H.264, also known as AVC (Advanced Video Coding), is a video compression standard that has played a significant role in multimedia codec technology. H.264 revolutionized video encoding by offering vastly more efficient compression than predecessors, and has been the nearly universal defacto video compression standard since. Its history is marked by continuous refinement and widespread adoption, especially as it pertains to the highly optimized ",(0,t.jsx)(i.a,{href:"/docs/encoders/x264",children:"x264"})," video encoder. Despite being over a decade old, H.264 remains relevant today. Newer codecs like ",(0,t.jsx)(i.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,t.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"}),", and ",(0,t.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," aim to provide more efficient compression than H.264 but are currently not as universal. The choice between these codecs largely depends on the specific requirements of the application, compatibility and support, and the balance between compression efficiency and computational complexity."]})]})}function u(e={}){const{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>r,x:()=>a});var n=o(6540);const t={},s=n.createContext(t);function r(e){const i=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),n.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/7f76a12e.4b9d38ae.js b/assets/js/7f76a12e.4b9d38ae.js deleted file mode 100644 index 59bc74261..000000000 --- a/assets/js/7f76a12e.4b9d38ae.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1502],{2225:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>l,contentTitle:()=>a,default:()=>h,frontMatter:()=>o,metadata:()=>r,toc:()=>c});var s=i(4848),t=i(8453);const o={title:"AV1 Encoding for Dummies",description:"This guide will show you how to encode in AV1 the *right* and *optimal* way.",slug:"av1-encoding-for-dummies",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"},{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4"}],tags:["video","compression"],image:"/img/compare-guide.webp",hide_table_of_contents:!1},a=void 0,r={permalink:"/blog/av1-encoding-for-dummies",source:"@site/blog/2023-09-03-av1-for-dummies.mdx",title:"AV1 Encoding for Dummies",description:"This guide will show you how to encode in AV1 the *right* and *optimal* way.",date:"2023-09-03T00:00:00.000Z",tags:[{inline:!0,label:"video",permalink:"/blog/tags/video"},{inline:!0,label:"compression",permalink:"/blog/tags/compression"}],readingTime:16.09,hasTruncateMarker:!0,authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4",key:null,page:null},{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4",imageURL:"https://avatars.githubusercontent.com/u/35711760?v=4",key:null,page:null}],frontMatter:{title:"AV1 Encoding for Dummies",description:"This guide will show you how to encode in AV1 the *right* and *optimal* way.",slug:"av1-encoding-for-dummies",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4"},{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4",imageURL:"https://avatars.githubusercontent.com/u/35711760?v=4"}],tags:["video","compression"],image:"/img/compare-guide.webp",hide_table_of_contents:!1},unlisted:!1,prevItem:{title:"Embedding the Un-Embeddable",permalink:"/blog/embedding-the-un-embeddable"},nextItem:{title:"Reducing Image Load Online",permalink:"/blog/site-optimization"}},l={authorsImageUrls:[void 0,void 0]},c=[{value:"Installing the Tools",id:"installing-the-tools",level:2},{value:"Microsoft Windows",id:"microsoft-windows",level:2},{value:"The GUI Way",id:"the-gui-way",level:3},{value:"The WSL2 Way",id:"the-wsl2-way",level:3},{value:"The Automated Way",id:"the-automated-way",level:3},{value:"The Manual Way",id:"the-manual-way",level:3},{value:"macOS",id:"macos",level:2},{value:"Linux",id:"linux",level:2},{value:"The GUI Way",id:"the-gui-way-1",level:3},{value:"The TUI Way",id:"the-tui-way",level:3},{value:"The Compiling Route",id:"the-compiling-route",level:3},{value:"Ubuntu",id:"ubuntu",level:4},{value:"Arch",id:"arch",level:3},{value:"Compiling aom-av1-lavish",id:"compiling-aom-av1-lavish",level:4},{value:"Encoding",id:"encoding",level:2},{value:"Merging Everything",id:"merging-everything",level:2},{value:"Tips & Tricks",id:"tips--tricks",level:2},{value:"Final Thoughts",id:"final-thoughts",level:2}];function d(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",img:"img",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.p,{children:["This guide will show you how to encode in AV1 the ",(0,s.jsx)(n.em,{children:"right"})," and ",(0,s.jsx)(n.em,{children:"optimal"})," way. Yes, you using standalone ",(0,s.jsx)(n.code,{children:"libaom"}),", ",(0,s.jsx)(n.code,{children:"libsvtav1"}),", and ",(0,s.jsx)(n.code,{children:"librav1e"})," from FFmpeg or even piping ",(0,s.jsx)(n.code,{children:"yuv4mpeg"})," into ",(0,s.jsx)(n.strong,{children:"mainline"})," aomenc are all unoptimal."]}),"\n",(0,s.jsx)(n.admonition,{title:"Outdated Information",type:"danger",children:(0,s.jsxs)(n.p,{children:["While a lot of the information presented in this guide is still relevant and correct, the AV1 ecosystem has changed dramatically since this guide's inception which has demanded a rewrite. Please see the ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/blog/av1-for-dummies",children:"AV1 for Dummies"})," blog post for more information."]})}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.img,{alt:"Compare",src:i(8602).A+"",width:"1045",height:"588"})}),"\n",(0,s.jsxs)(n.p,{children:["In this guide, we'll be installing Av1an for chunked encoding and infinite threading, because the current state of AV1 encoders, except for ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/SVT-AV1",children:"SVT-AV1"}),", unfortunately lacks threading and will only use very low amount of cores, which hampers speeds. The only caveat to this approach is ",(0,s.jsx)(n.strong,{children:"RAM consumption"}),", encoding 2160p (4K) with ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/aomenc",children:"aomenc"})," with 4 workers could take upwards of ",(0,s.jsx)(n.strong,{children:"16GB"})," of RAM! So do keep this in mind."]}),"\n",(0,s.jsx)(n.h2,{id:"installing-the-tools",children:"Installing the Tools"}),"\n",(0,s.jsx)(n.p,{children:"Given all of the different operating systems that people use on a day to day basis and the various different encoding workflows that exist, there are a number of ways to do this."}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Jump to"}),": ",(0,s.jsx)(n.a,{href:"#microsoft-windows",children:"Windows"})," | ",(0,s.jsx)(n.a,{href:"#macos",children:"macOS"})," | ",(0,s.jsx)(n.a,{href:"#linux",children:"Linux"})]}),"\n",(0,s.jsx)(n.h2,{id:"microsoft-windows",children:"Microsoft Windows"}),"\n",(0,s.jsx)(n.h3,{id:"the-gui-way",children:"The GUI Way"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["Install ",(0,s.jsx)(n.a,{href:"https://github.com/n00mkrad/nmkoder",children:"NMKODER"})," which is a GUI front-end to av1an with all dependencies installed."]}),"\n",(0,s.jsx)(n.li,{children:"You're done, you can skip to the encoding part"}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{title:"Almost abandonware",type:"danger",children:(0,s.jsx)(n.p,{children:"Since Nmkoder already ships everything by default and its last release was 29th March 2022. You need to manually update all encoders and tools to get better encoding speeds. Missing out on updates will result in your encodes being sub-optimal."})}),"\n",(0,s.jsx)(n.h3,{id:"the-wsl2-way",children:"The WSL2 Way"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.em,{children:"(Recommended)"})}),"\n",(0,s.jsx)(n.p,{children:"If you're not already familiar with WSL2, the The Windows Subsystem for Linux (WSL) is a feature of the Windows operating system that allows you to run a Linux file system, along with Linux command-line tools and GUI apps, directly on Windows. This lets Linux distributions run on bare metal without managing any virtual machines, so encoding performance is very good."}),"\n",(0,s.jsxs)(n.p,{children:["The easiest way to encode with WSL2 is to use ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"}),", an interactive TUI for ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/av1an",children:"Av1an"}),". An ArchWSL2 installation tutorial is provided ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/rav1ator-cli#windows",children:"here"}),"."]}),"\n",(0,s.jsx)(n.h3,{id:"the-automated-way",children:"The Automated Way"}),"\n",(0,s.jsxs)(n.p,{children:["There is now a batch script for automating the install process, which can be found ",(0,s.jsx)(n.a,{href:"https://github.com/Hishiro64/av1an-win-script",children:"here"}),". The instructions are in the README file."]}),"\n",(0,s.jsx)(n.admonition,{type:"caution",children:(0,s.jsxs)(n.p,{children:["The script will download outdated version encoders and tools such as ",(0,s.jsx)(n.code,{children:"aom-av1-psy"})," and MKVToolNix v76.0, if you are fine with these you can proceed."]})}),"\n",(0,s.jsx)(n.h3,{id:"the-manual-way",children:"The Manual Way"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Install ",(0,s.jsx)(n.strong,{children:"Python 3.10.x, this will change so consult from the"})," ",(0,s.jsx)(n.a,{href:"http://www.vapoursynth.com/doc/installation.html",children:"Vapoursynth website"})," ",(0,s.jsx)(n.strong,{children:"if you're reading this from the future"})," from ",(0,s.jsx)(n.a,{href:"https://www.python.org/downloads/windows/",children:"here"}),' and select "Windows Installer 64-bit". Upon installation check the tick for adding Python to PATH like so\n',(0,s.jsx)(n.img,{alt:"Python PATH",src:i(9658).A+"",width:"672",height:"417"}),")"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Download and install Vapoursynth from ",(0,s.jsx)(n.a,{href:"https://github.com/vapoursynth/vapoursynth/releases",children:"here"}),' and select "VapourSynth64-RXX.exe"']}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Open the terminal and type ",(0,s.jsx)(n.code,{children:"vsrepo.py install lsmas ffms2"})," to install some plugins for Av1an to work."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Download MKVToolNix from ",(0,s.jsx)(n.a,{href:"https://mkvtoolnix.download/downloads.html#windows",children:"here"}),', select "mkvtoolnix-64bit-XX.X.X-setup.exe", and install ',(0,s.jsx)(n.strong,{children:"(Also available on winget!)"})]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Download Av1an from ",(0,s.jsx)(n.a,{href:"https://github.com/master-of-zen/Av1an/releases",children:"here"}),' (SELECT LATEST AND CLICK THE "ASSETS" DROPDOWN)']}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Download ",(0,s.jsx)(n.strong,{children:"shared libraries"})," FFmpeg from ",(0,s.jsx)(n.a,{href:"https://www.gyan.dev/ffmpeg/builds",children:"gyan.dev"})]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:["Download a pre-built fork of Aomenc (",(0,s.jsx)(n.a,{href:"https://github.com/Clybius/aom-av1-lavish/tree/Endless_Merging",children:"aom-av1-lavish"}),") which has neat stuff such as sane defaults, new tunes, optimizations, etc. This can be downloaded for Windows ",(0,s.jsx)(n.a,{href:"https://autumn.revolt.chat/attachments/download/-2EiZW1edcT9anApFZ1PJBEber-pJ6z02NiQBjbr28",children:"here"})," ",(0,s.jsx)(n.em,{children:"(Current as of Sept 6, 2023)"})]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["If you opt to compile aomenc yourself, you can view the instructions on how to do that ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/aomenc/#installation",children:"here"}),"."]})}),"\n",(0,s.jsxs)(n.ol,{start:"8",children:["\n",(0,s.jsxs)(n.li,{children:["Move Av1an, FFmpeg ",(0,s.jsx)(n.strong,{children:"(Including the FFmpeg DLLs)"}),", and aomenc to somewhere preferable, eg ",(0,s.jsx)(n.code,{children:"C:\\Encoding"}),"."]}),"\n",(0,s.jsxs)(n.li,{children:["Add the folder ",(0,s.jsx)(n.strong,{children:"AND MKVTOOLNIX INSTALLATION FOLDER"})," to the ",(0,s.jsx)(n.a,{href:"https://www.maketecheasier.com/what-is-the-windows-path/",children:"Windows PATH environment"}),"."]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"macos",children:"macOS"}),"\n",(0,s.jsx)(n.p,{children:"macOS is very similar to Linux, although there aren't any GUI tools for AV1 encoding that I can comfortably recommend."}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Homebrew + Macports for Av1an + rav1e:"}),"\n",(0,s.jsxs)(n.em,{children:["Note that some commands may have to be run with ",(0,s.jsx)(n.code,{children:"sudo"}),", which I won't explicitly include for security reasons."]})]}),"\n",(0,s.jsx)(n.p,{children:"Installing the Homebrew package manager is a well documented process at this point:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"\n'})}),"\n",(0,s.jsxs)(n.p,{children:["As is installing MacPorts. Install the relevent ",(0,s.jsx)(n.code,{children:".pkg"})," for your macOS version from the MacPorts Project website:\n",(0,s.jsx)(n.a,{href:"https://www.macports.org/install.php",children:"www.macports.org/install.php"})]}),"\n",(0,s.jsx)(n.p,{children:"Now, you can run the following commands:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"brew update && brew upgrade\nbrew install rav1e aom mkvtoolnix ffmpeg\n# Usually you must run MacPorts commands for package installations as root\nport upgrade outdated\nport install av1an\n"})}),"\n",(0,s.jsxs)(n.p,{children:["This is the easiest way to get everything set up & working to produce AV1 video with ",(0,s.jsx)(n.code,{children:"rav1e"})," or mainline ",(0,s.jsx)(n.code,{children:"aomenc"})," & Av1an. You can check that things are installed by running the following commands & parsing their output:"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"% av1an --version\nav1an 0.4.1-unstable (rev e10880d) (Release)\n\n* Compiler\n rustc 1.70.0 (LLVM 16.0)\n\n* Target Triple\n aarch64-apple-darwin\n\n* Date Info\n Commit Date: 2023-06-25\n\n* VapourSynth Plugins\n systems.innocent.lsmas : Not found\n com.vapoursynth.ffms2 : Not found\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'% rav1e --version | grep "release" -C 1\nrav1e 0.6.6 () (release)\nrustc 1.69.0 (84c898d65 2023-04-16) (built from a source tarball) aarch64-apple-darwin\n'})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'% aomenc --help | grep "AOMedia" -C 3\n\nIncluded encoders:\n\n av1 - AOMedia Project AV1 Encoder 3.6.1 (default)\n\n Use --codec to switch to a non-default encoder.\n'})}),"\n",(0,s.jsxs)(n.p,{children:["Notice ",(0,s.jsx)(n.code,{children:"systems.innocent.lsmas : Not found"})," in the Av1an output. This means you won't be able to use the lsmash chunking method through vapoursynth & may instead have to rely on hybrid chunking, through ",(0,s.jsx)(n.code,{children:"-m hybrid"}),". This is slower & takes up disk space while encoding, but still works. A sample Av1an command with this basic installation may look like this:"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'av1an -i "input" -y --resume --verbose --split-method av-scenechange -m hybrid -c mkvmerge -e rav1e --force -v " --tiles 8 -s 4 --quantizer 80 --no-scene-detection" --photon-noise 7 --chroma-noise --pix-format yuv420p10le -w 8 -o "output.mkv"\n'})}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Building From Source"})}),"\n",(0,s.jsx)(n.p,{children:"If you want lsmash support, aom-av1-lavish instead of mainline, or anything else that isn't covered by the more basic installation, you'll have to compile from source. Things are very similar to Linux, with a few oddities:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["macOS sometimes doesn't have a ",(0,s.jsx)(n.code,{children:"/usr/local/bin"})," by default. You can fix this by doing ",(0,s.jsx)(n.code,{children:"mkdir /usr/local/bin"}),"."]}),"\n",(0,s.jsxs)(n.li,{children:["Homebrew installs ",(0,s.jsx)(n.em,{children:"everything"})," in its own directory structure. If you're building things from source that rely on libraries from vapoursynth, zimg, lsmash, etc, make sure to copy them from ",(0,s.jsx)(n.code,{children:"/opt/homebrew/lib"})," to ",(0,s.jsx)(n.code,{children:"/usr/local/lib"}),". Finding them is a matter of ",(0,s.jsx)(n.code,{children:'ls | grep "keyword"'})," & copying what looks reasonable to be associated with the tool you're using."]}),"\n",(0,s.jsx)(n.li,{children:"Building most things from source will have instructions for *nix which work for both macOS & Linux. Even if it says Linux, there's a good chance it'll work on macOS as well, & it is always worth trying Linux build instructions on Mac. I won't be going through building every encoding tool & dependency from source, as it is generally much more intuitive than Windows, but building Av1an is worth detailing here just as an example."}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'brew install git rust nasm\ngit clone https://github.com/master-of-zen/Av1an\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\ncd .. && cd target/release\ncp av1an /usr/local/bin\n'})}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"More Difficult: Building aom-av1-lavish from Source"})}),"\n",(0,s.jsx)(n.p,{children:"If you want to make the most out of your hardware & eke out every last drop of quality, it may be worth building aom-av1-lavish from source. The first step is to clone it from the Endless Merging branch:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/Clybius/aom-av1-lavish -b Endless_Merging\ncd aom-av1-lavish\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Now, you need to make some manual changes to the source code until Clybius merges ",(0,s.jsx)(n.a,{href:"https://github.com/Clybius/aom-av1-lavish/pull/1/files",children:"this commit"}),"."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Add the line ",(0,s.jsx)(n.code,{children:'#include "aq_variance.h"'})," at line 19 in ",(0,s.jsx)(n.code,{children:"av1/encoder/encodeframe_utils.c"})]}),"\n",(0,s.jsxs)(n.li,{children:["Comment out line 2546 in ",(0,s.jsx)(n.code,{children:"av1/encoder/speed_features.c"}),". This line is ",(0,s.jsx)(n.code,{children:"const int qindex_thresh_cdef_sf_s1_s3_l2[2] = { 92, 48 };"})," & becomes ",(0,s.jsx)(n.code,{children:"// const int qindex_thresh_cdef_sf_s1_s3_l2[2] = { 92, 48 };"}),"."]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["Now you can continue to build according to the Linux instructions below. Obviously you'll need cmake, which you can install with homebrew along with any other tools you may need. While still in the ",(0,s.jsx)(n.code,{children:"aom-av1-lavish"})," directory:"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'mkdir -p aom_build && cd aom_build\ncmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt" -DCMAKE_LD_FLAGS="-flto -O3 -march=native"\nmake -j$(nproc)\n# This may need to be run as root:\nmake install\n'})}),"\n",(0,s.jsxs)(n.p,{children:["Now you can run ",(0,s.jsx)(n.code,{children:'aomenc --help | grep "AOMedia" -C 3'})," to see if lavish installed. If you're getting the same output as above, you may need to copy the ",(0,s.jsx)(n.code,{children:"aomenc"})," executable to ",(0,s.jsx)(n.code,{children:"/opt/local/bin"}),", ",(0,s.jsx)(n.code,{children:"/usr/local/bin"}),", & ",(0,s.jsx)(n.code,{children:"/opt/homebrew/bin"})," if you already installed mainline aomenc. Running the version info command again, the correct output should look something like this:"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"% aomenc --help | grep AOMedia -C 3\n\nIncluded encoders:\n\n av1 - AOMedia Project AV1 Encoder Psy v3.6.0 (default)\n\n Use --codec to switch to a non-default encoder.\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Notice how it says ",(0,s.jsx)(n.code,{children:"AOMedia Project AV1 Encoder Psy"})," instead of ",(0,s.jsx)(n.code,{children:"AOMedia Project AV1 Encoder"}),". You should be all set after this to start using aom-av1-lavish & following the current parameter meta as outlined below."]}),"\n",(0,s.jsx)(n.h2,{id:"linux",children:"Linux"}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsx)(n.p,{children:"Yet again, try using Arch. It's way easier."})}),"\n",(0,s.jsx)(n.h3,{id:"the-gui-way-1",children:"The GUI Way"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Install ",(0,s.jsx)(n.a,{href:"https://github.com/gianni-rosato/aviator",children:"Aviator"})," (",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/SVT-AV1",children:"SVT-AV1"})," + ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/FFmpeg",children:"FFmpeg"}),") or ",(0,s.jsx)(n.a,{href:"https://giannirosato.com/blog/post/aviator-1/",children:"rAV1ator"})," basically same thing but ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/av1an.mdx",children:"Av1an"})," + ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/rav1e",children:"rav1e"}),". Both are only available as ",(0,s.jsx)(n.a,{href:"https://beta.flathub.org/apps/net.natesales.Aviator",children:"Flatpaks"}),". Keep in mind Aviator ships with ",(0,s.jsx)(n.strong,{children:"SVT-AV1"})," and rAV1ator with ",(0,s.jsx)(n.strong,{children:"rav1e"})," instead of aomenc/AOM-AV1, which I will not be covering here."]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"the-tui-way",children:"The TUI Way"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.em,{children:"(Recommended)"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Install ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/rav1ator-cli",children:"rav1ator-cli"}),", a TUI for using Av1an meant to be easy to use. Much more flexible than the GUI options & can work with a number of encoders. See ",(0,s.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/rav1ator-cli/#installation",children:"this page"})," for more info. Can be easily used on any distro."]}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"the-compiling-route",children:"The Compiling Route"}),"\n",(0,s.jsx)(n.h4,{id:"ubuntu",children:"Ubuntu"}),"\n",(0,s.jsxs)(n.p,{children:["The guide below is targeted towards 22.04, packages and other things may be different on other versions. First Install Rust via ",(0,s.jsx)(n.code,{children:"rustup"})," first, as apt version of Rust is severely outdated, then you can continue."]}),"\n",(0,s.jsx)(n.p,{children:"Install dependencies:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"sudo apt install wget python unzip unrar build-essential meson autoconf automake libtool git nasm yasm python3-dev python3-pip cython3 libass-dev libqt5websockets5-dev libfftw3-dev libtesseract-dev ffmpeg libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libswresample-dev libmediainfo-dev mkvtoolnix mediainfo perl nasm yasm git cmake libavutil-dev libavcodec-dev libavformat-dev libavdevice-dev libavfilter-dev libswscale-dev libswresample-dev libpostproc-dev llvm libclang-dev libssl-dev\n"})}),"\n",(0,s.jsx)(n.p,{children:"Install l-smash:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/l-smash/l-smash.git\ncd l-smash\n./configure --enable-shared --extra-cflags="-march=native"\nmake -j$(nproc)\nsudo make install\n'})}),"\n",(0,s.jsx)(n.p,{children:"Install zimg:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"git clone --recursive https://github.com/sekrit-twc/zimg.git\ncd zimg\n./autogen.sh\n./configure\nmake -j$(nproc)\nsudo make install\n"})}),"\n",(0,s.jsx)(n.p,{children:"Install ImageMagick:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/ImageMagick/ImageMagick\ncd ImageMagick\n./configure\nmake -j$(nproc)\nsudo make install\n"})}),"\n",(0,s.jsx)(n.p,{children:"Install Vapoursynth R63:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'wget https://github.com/vapoursynth/vapoursynth/archive/refs/tags/R63.zip\nunzip R63.zip\ncd vapoursynth-R63\n./autogen.sh\n./configure CFLAGS="-march=native" CXXFLAGS="-march=native" --libdir=/usr/lib\nmake -j$(nproc)\nsudo make install\nsudo mkdir /usr/lib/vapoursynth\nsudo ldconfig\n'})}),"\n",(0,s.jsxs)(n.p,{children:["The plugin directory will be located in ",(0,s.jsx)(n.code,{children:"/usr/lib/vapoursynth"}),"."]}),"\n",(0,s.jsx)(n.p,{children:"Install L-SMASH-Works Vapoursynth Plugin:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/AkarinVS/L-SMASH-Works -b ffmpeg-4.5\ncd L-SMASH-Works/VapourSynth && mkdir build && cd build\nmeson .. --optimization=3 --default-library=static -Db_lto=true -Dc_args="-march=native" -Dcpp_args="-march=native"\nninja -j$(nproc)\nsudo cp libvslsmashsource.so /usr/lib/vapoursynth/\n'})}),"\n",(0,s.jsx)(n.admonition,{type:"danger",children:(0,s.jsxs)(n.p,{children:["L-SMASH-Works doesn't work on ",(0,s.jsx)(n.strong,{children:"aarch64"}),", it is recommended to use other plugins instead."]})}),"\n",(0,s.jsx)(n.p,{children:"Install FFMS2 Vapoursynth Plugin:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/FFMS/ffms2\ncd ffms2\n./autogen.sh\n./configure CFLAGS="-O3 -march=native" CXXFLAGS="-O3 -march=native"\nmake -j$(nproc)\nsudo cp src/core/.libs/libffms2.so src/core/.libs/libffms2.so.5 src/core/.libs/libffms2.so.5.0.0 /usr/lib/vapoursynth\n'})}),"\n",(0,s.jsx)(n.p,{children:"Install Av1an:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/master-of-zen/Av1an\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\nsudo cp target/release/av1an /usr/local/bin\n'})}),"\n",(0,s.jsxs)(n.p,{children:["When there's no errors, proceed to compiling ",(0,s.jsx)(n.code,{children:"aom-av1-lavish"}),"."]}),"\n",(0,s.jsx)(n.h3,{id:"arch",children:"Arch"}),"\n",(0,s.jsx)(n.p,{children:"Install dependencies:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"sudo pacman -S vapoursynth ffmpeg av1an mkvtoolnix-gui git perl cmake ninja meson nasm vapoursynth-plugin-lsmashsource ffms2\n"})}),"\n",(0,s.jsx)(n.p,{children:"you're done, proceed."}),"\n",(0,s.jsx)(n.h4,{id:"compiling-aom-av1-lavish",children:"Compiling aom-av1-lavish"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/Clybius/aom-av1-lavish -b Endless_Merging\ncd aom-av1-lavish && mkdir -p aom_build && cd aom_build\ncmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt"\nmake -j$(nproc)\nsudo make install\n'})}),"\n",(0,s.jsx)(n.h2,{id:"encoding",children:"Encoding"}),"\n",(0,s.jsxs)(n.p,{children:["The moment you've all been waiting for, let's just get into it. Here's an example ",(0,s.jsx)(n.em,{children:"recommended"})," parameter as of now (09/03/23) [MM/DD/YY]:"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'av1an -x 300 -i input.mkv -w 4 -e aom -c mkvmerge --resume -m lsmash --photon-noise=10 --set-thread-affinity=2 --verbose -a " -an " -f " -an " -v " --bit-depth=10 --cpu-used=4 --end-usage=q --cq-level=24 --threads=2 --tile-columns=0 --tile-rows=0 --lag-in-frames=64 --tune-content=psy --tune=ssim --enable-keyframe-filtering=1 --disable-kf --kf-max-dist=9999 --enable-qm=1 --deltaq-mode=0 --aq-mode=0 --quant-b-adapt=1 --enable-fwd-kf=0 --arnr-strength=1 --sb-size=dynamic --enable-dnl-denoising=0 " -o "output.mkv"\n'})}),"\n",(0,s.jsx)(n.admonition,{title:"Parameter Meta",type:"info",children:(0,s.jsxs)(n.p,{children:["It is strongly recommended to join the ",(0,s.jsx)(n.a,{href:"https://discord.gg/vpREHAvYvh",children:"AV1 Discord server"})," to get the latest updates on what to use and which to set, as it's the only easily reachable place for everything AV1 & encoding tips in general."]})}),"\n",(0,s.jsx)(n.p,{children:"Now let's dissect it one-by-one"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Av1an parameters:"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"-i"})," Input."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"-x 300"})," Sets scene split length to 300 frames, you can increase it for more quality at the tradeoff of video seekability."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"-w 4"}),' Specifies the amount of "workers" or amount of encoders working on the video.']}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--verbose"})," Sets logging to verbose."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--resume"})," Resumes the encode even when you haven't encoded yet. I strongly recommend leaving this if you resume a lot since you can accidentally delete your whole progress (There's no delete confirmation feature.. yet) if you \"resumed\" without the parameter in place."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"-e aom"})," Specifies we're using aomenc encoder which should be the default option."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"-c mkvmerge"})," Specifies we're using mkvmerge (MKVToolNix) to concatenate the parts when done, you can specify with ffmpeg if you want to but this is the best method."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"-m lsmash"})," Specifies we're using l-smash (Vapoursynth plugin) to split the videos, this is also the best method because ffms2 causes video lag (Tested a year ago, might change now) and other methods just suck (Slow and not worth it, learned the hard way). You can attempt to use ffms2 when inputting VC-1 videos as it is not possible with l-smash (Or convert it to lossless with x264 qp 0)."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:'-f " -an "'})," ",(0,s.jsx)(n.code,{children:"-f"})," Stands for ffmpeg parameters, ",(0,s.jsx)(n.code,{children:"-an"})," is to remove all audio since its better to encode and merge it separately. To crop use ",(0,s.jsx)(n.code,{children:'-f " -an -vf crop=1920:800 "'})," for example to crop the video to 1920x800."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:'-v " "'})," Is where you put the encoder's parameters in."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:'-a " -an "'})," FFmpeg audio encoding options, we're removing it cause we can always add it later. But if you want to, you can also encode directly. Here's an example for encoding to Opus using libopus assuming stereo: ",(0,s.jsx)(n.code,{children:'-a " -c:a libopus -b:a 128k "'}),"."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--photon-noise=10"})," AV1 grain synthesis, which is a technique where the encoder puts fake grain in so it looks more natural and potentially hiding video artifacts (cause grain is hard to encode and explodes bitrate usage because of their randomness), 5-8 for almost none to little grain, 10-14 for medium, 15+ heavy, 20+ extremely heavy, 30+ for extremely grainy 90s live action films."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--set-thread-affinity=2"})," Pins the thread to the encoder, aligns with ",(0,s.jsx)(n.code,{children:"--threads=2"})," in the encoder parameter so set them accordingly."]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"aomenc parameters:"})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--bit-depth=10"})," We're using 10bit because it makes the video smaller and reduces ",(0,s.jsx)(n.a,{href:"https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Video_codecs#contouring",children:"banding"}),"."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--cpu-used=4"})," This is the preset which ranges from 0-9, you can go to 3 if you want more efficiency, 2 if you have a lot of time, 4 is the sweet spot, and 6 if you want speed. Don't go above 6 (Worst efficiency) or even 0 (It would take WEEKS to finish)."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--end-usage=q --cq-level=24"})," This specifies that we are going to use a knockoff version of CRF level similar to x264/x265 encoders, in this case CRF 24."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--threads=2"})," Sets the amount of threads the encoder can use, aligns with ",(0,s.jsx)(n.code,{children:"--set-thread-affinity"})," in Av1an."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--tile-columns=0 --tile-rows=0"})," This is the tiles options, where the encoder splits the videos into tiles to encode faster, see the image below (Yellow lines):"]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/tiling_av1.avif?token=GHSAT0AAAAAACEZPDXIZARY5MGSTJW4SI22ZHY636A",type:"image/avif"}),(0,s.jsx)("img",{src:"https://autumn.revolt.chat/attachments/HwhZjoDsdzLZsJM2mjzX7lEDmJn1xcYNdrQqmOxPYW/tiling_av1.jpeg",alt:"Tiling",width:"1280",height:"768",loading:"lazy"})]}),"\n",(0,s.jsx)(n.admonition,{title:"Tile usage",type:"note",children:(0,s.jsxs)(n.p,{children:["Do NOT use tiles for 1080p and below, use 1 ",(0,s.jsx)(n.code,{children:"tile-columns"})," at 1440p (2K), 2 ",(0,s.jsx)(n.code,{children:"tile-columns"})," and 1 ",(0,s.jsx)(n.code,{children:"tile-rows"})," for 2160p (4K)"]})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--lag-in-frames=64"})," Similar to x264/x265 ",(0,s.jsx)(n.code,{children:"rc-lookahead"}),". Sets a number of frames to look ahead for frametype and ratecontrol, allowing for better compression decision making. Setting to a value greater than 64 is generally not considered useful."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--aq-mode"})," adaptive quantization mode, 0 is better most of the time"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--tune-content=psy --tune=ssim"})," As the name suggests they are tunes that affect the video output, for the better, and for the worst"]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{title:"Tunes to use",type:"info",children:(0,s.jsxs)(n.p,{children:["Set ",(0,s.jsx)(n.code,{children:"tune-content"})," to ",(0,s.jsx)(n.code,{children:"animation"})," if you're encoding above ",(0,s.jsx)(n.code,{children:"cq-level=30"})," A.K.A lower quality, despite it's name\nSet ",(0,s.jsx)(n.code,{children:"tune-content"})," to ",(0,s.jsx)(n.code,{children:"psy"})," for everything else, ",(0,s.jsxs)(n.strong,{children:["do not use if you encode above ",(0,s.jsx)(n.code,{children:"cq-level=30"})]}),"\nFor ",(0,s.jsx)(n.code,{children:"tune"}),", this is a bit tricky. For now, the meta seems to be ",(0,s.jsx)(n.code,{children:"ssim"}),", but back then it was ",(0,s.jsx)(n.code,{children:"lavish"})," which is considered THE best tune because it's based on ",(0,s.jsx)(n.a,{href:"https://github.com/google/butteraugli",children:"butteraugli"}),". Now it's fallen behind because its more blurry than ",(0,s.jsx)(n.code,{children:"ssim"}),", and before that it was ",(0,s.jsx)(n.code,{children:"butteraugli"}),", and then ",(0,s.jsx)(n.code,{children:"ipq_vmaf_psy"}),", and finally just ",(0,s.jsx)(n.code,{children:"ipq"}),".\nIf you use any of the VMAF tunes, ",(0,s.jsxs)(n.strong,{children:["you need to specify ",(0,s.jsx)(n.code,{children:"--vmaf-model-path="})," to where you put it"]}),"."]})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-keyframe-filtering=1"})," We're setting it to 1 because of compatibility reasons, 2 is more efficient but there are seeking issues and FFmpeg for some reason can't input it."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--sb-size=dynamic"})," Allows the encoder to use 128x128 block partitioning besides 64x64 which gives an efficiency boost, ignore it."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--deltaq-mode"})," set to 0 because its just better."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--arnr-strength=1"})," Controls how strong the filtering will be, 1 is good for 3D Pixar CGI-like and 2D animation, use 4 if you're doing live action content. Using maximum at higher bitrates would just result in a blurry mess."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--disable-kf --enable-fwd-kf=0"})," We're disabling keyframes cause ",(0,s.jsx)(n.strong,{children:"Av1an already did scene detection, so we wont have to."}),". And it speeds things up."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--kf-max-dist=9999"})," Maximum keyframe interval, we're setting it at the highest possible value since av1an's scene detection keyframe interval is already 240 by default"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-chroma-deltaq=1 --enable-qm=1 --quant-b-adapt=1"})," Parameters that give you free efficiency boost."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-dnl-denoising=0"})," Disables the encoder's built-in denoising technique when grain synthesis is enabled, you can optionally set it to 1 when you have a pretty noisy video since it works quite well."]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{title:"Concatenation Error on Linux",type:"info",children:(0,s.jsxs)(n.p,{children:["Run ",(0,s.jsx)(n.code,{children:"ulimit -n 200000"}),", resume, and it should concatenate just fine. If it still errors, head to the encode directory > encode, and run ",(0,s.jsx)(n.code,{children:"mkvmerge @../options.json"})]})}),"\n",(0,s.jsx)(n.h2,{id:"merging-everything",children:"Merging Everything"}),"\n",(0,s.jsxs)(n.p,{children:["Once you're done just encode your audio using ffmpeg (or just passthrough it), subtitles should be carried along with your video output, and merge them in MKVToolNix! Don't want Matroska files? That's fine, you can use FFmpeg or MP4Box to output into ",(0,s.jsx)(n.code,{children:"mp4"}),", just keep in mind that PGS/SUP/VOBSUB subtitles are not supported and Opus audio support is still experimental."]}),"\n",(0,s.jsx)(n.h2,{id:"tips--tricks",children:"Tips & Tricks"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--denoise-noise-level=10"})," Alternative to ",(0,s.jsx)(n.code,{children:"photon-noise"}),", slower than photon-noise and is the OG grain synthesis method, performs okay and just serves as an alternative. Don't attempt to use it at high values (>12) since it creates noticeable grain patterns."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--arnr-maxframes"})," to set max reference frames that will be used to filter the encode, higher values would make the video blurrier at high fidelity but look better at lower bitrates."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--butteraugli-resize-factor=2"})," if you use any of the butteraugli-based tunes (lavish, butteraugli) to speed it up without much losses and ",(0,s.jsx)(n.code,{children:"--butteraugli-intensity-target=250"})," to match the content light level."]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"final-thoughts",children:"Final Thoughts"}),"\n",(0,s.jsx)(n.p,{children:'Encoding has always been about experimentation for the best, there is really no "One size fits all" for encoding content, as they differ from scene complexity, how it\'s captured (2D/Real life), film grain, dark scenes, etc. So experiment away for your specific type of content!'}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.strong,{children:["Guide originally hosted on ",(0,s.jsx)(n.a,{href:"https://rentry.co/AV1",children:"https://rentry.co/AV1"}),", rewrite and migration by Simulping."]})}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},8602:(e,n,i)=>{i.d(n,{A:()=>s});const s=i.p+"assets/images/compare-guide-6feb966fbd9d73be4a3097c41691c4ad.webp"},9658:(e,n,i)=>{i.d(n,{A:()=>s});const s=i.p+"assets/images/python-path-a89fc4fe6c6eb4c2ea0a7610dd2cf09a.webp"},8453:(e,n,i)=>{i.d(n,{R:()=>a,x:()=>r});var s=i(6540);const t={},o=s.createContext(t);function a(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/7f76a12e.e417c56d.js b/assets/js/7f76a12e.e417c56d.js new file mode 100644 index 000000000..5aa492477 --- /dev/null +++ b/assets/js/7f76a12e.e417c56d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1502],{2225:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>l,contentTitle:()=>r,default:()=>h,frontMatter:()=>a,metadata:()=>s,toc:()=>c});var s=i(7233),t=i(4848),o=i(8453);const a={title:"AV1 Encoding for Dummies",description:"This guide will show you how to encode in AV1 the *right* and *optimal* way.",slug:"av1-encoding-for-dummies",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"},{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4"}],tags:["video","compression"],image:"/img/compare-guide.webp",hide_table_of_contents:!1},r=void 0,l={authorsImageUrls:[void 0,void 0]},c=[{value:"Installing the Tools",id:"installing-the-tools",level:2},{value:"Microsoft Windows",id:"microsoft-windows",level:2},{value:"The GUI Way",id:"the-gui-way",level:3},{value:"The WSL2 Way",id:"the-wsl2-way",level:3},{value:"The Automated Way",id:"the-automated-way",level:3},{value:"The Manual Way",id:"the-manual-way",level:3},{value:"macOS",id:"macos",level:2},{value:"Linux",id:"linux",level:2},{value:"The GUI Way",id:"the-gui-way-1",level:3},{value:"The TUI Way",id:"the-tui-way",level:3},{value:"The Compiling Route",id:"the-compiling-route",level:3},{value:"Ubuntu",id:"ubuntu",level:4},{value:"Arch",id:"arch",level:3},{value:"Compiling aom-av1-lavish",id:"compiling-aom-av1-lavish",level:4},{value:"Encoding",id:"encoding",level:2},{value:"Merging Everything",id:"merging-everything",level:2},{value:"Tips & Tricks",id:"tips--tricks",level:2},{value:"Final Thoughts",id:"final-thoughts",level:2}];function d(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",img:"img",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.p,{children:["This guide will show you how to encode in AV1 the ",(0,t.jsx)(n.em,{children:"right"})," and ",(0,t.jsx)(n.em,{children:"optimal"})," way. Yes, you using standalone ",(0,t.jsx)(n.code,{children:"libaom"}),", ",(0,t.jsx)(n.code,{children:"libsvtav1"}),", and ",(0,t.jsx)(n.code,{children:"librav1e"})," from FFmpeg or even piping ",(0,t.jsx)(n.code,{children:"yuv4mpeg"})," into ",(0,t.jsx)(n.strong,{children:"mainline"})," aomenc are all unoptimal."]}),"\n",(0,t.jsx)(n.admonition,{title:"Outdated Information",type:"danger",children:(0,t.jsxs)(n.p,{children:["While a lot of the information presented in this guide is still relevant and correct, the AV1 ecosystem has changed dramatically since this guide's inception which has demanded a rewrite. Please see the ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/blog/av1-for-dummies",children:"AV1 for Dummies"})," blog post for more information."]})}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.img,{alt:"Compare",src:i(1679).A+"",width:"1045",height:"588"})}),"\n",(0,t.jsxs)(n.p,{children:["In this guide, we'll be installing Av1an for chunked encoding and infinite threading, because the current state of AV1 encoders, except for ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/SVT-AV1",children:"SVT-AV1"}),", unfortunately lacks threading and will only use very low amount of cores, which hampers speeds. The only caveat to this approach is ",(0,t.jsx)(n.strong,{children:"RAM consumption"}),", encoding 2160p (4K) with ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/aomenc",children:"aomenc"})," with 4 workers could take upwards of ",(0,t.jsx)(n.strong,{children:"16GB"})," of RAM! So do keep this in mind."]}),"\n",(0,t.jsx)(n.h2,{id:"installing-the-tools",children:"Installing the Tools"}),"\n",(0,t.jsx)(n.p,{children:"Given all of the different operating systems that people use on a day to day basis and the various different encoding workflows that exist, there are a number of ways to do this."}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Jump to"}),": ",(0,t.jsx)(n.a,{href:"#microsoft-windows",children:"Windows"})," | ",(0,t.jsx)(n.a,{href:"#macos",children:"macOS"})," | ",(0,t.jsx)(n.a,{href:"#linux",children:"Linux"})]}),"\n",(0,t.jsx)(n.h2,{id:"microsoft-windows",children:"Microsoft Windows"}),"\n",(0,t.jsx)(n.h3,{id:"the-gui-way",children:"The GUI Way"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["Install ",(0,t.jsx)(n.a,{href:"https://github.com/n00mkrad/nmkoder",children:"NMKODER"})," which is a GUI front-end to av1an with all dependencies installed."]}),"\n",(0,t.jsx)(n.li,{children:"You're done, you can skip to the encoding part"}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{title:"Almost abandonware",type:"danger",children:(0,t.jsx)(n.p,{children:"Since Nmkoder already ships everything by default and its last release was 29th March 2022. You need to manually update all encoders and tools to get better encoding speeds. Missing out on updates will result in your encodes being sub-optimal."})}),"\n",(0,t.jsx)(n.h3,{id:"the-wsl2-way",children:"The WSL2 Way"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.em,{children:"(Recommended)"})}),"\n",(0,t.jsx)(n.p,{children:"If you're not already familiar with WSL2, the The Windows Subsystem for Linux (WSL) is a feature of the Windows operating system that allows you to run a Linux file system, along with Linux command-line tools and GUI apps, directly on Windows. This lets Linux distributions run on bare metal without managing any virtual machines, so encoding performance is very good."}),"\n",(0,t.jsxs)(n.p,{children:["The easiest way to encode with WSL2 is to use ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"}),", an interactive TUI for ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/av1an",children:"Av1an"}),". An ArchWSL2 installation tutorial is provided ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/rav1ator-cli#windows",children:"here"}),"."]}),"\n",(0,t.jsx)(n.h3,{id:"the-automated-way",children:"The Automated Way"}),"\n",(0,t.jsxs)(n.p,{children:["There is now a batch script for automating the install process, which can be found ",(0,t.jsx)(n.a,{href:"https://github.com/Hishiro64/av1an-win-script",children:"here"}),". The instructions are in the README file."]}),"\n",(0,t.jsx)(n.admonition,{type:"caution",children:(0,t.jsxs)(n.p,{children:["The script will download outdated version encoders and tools such as ",(0,t.jsx)(n.code,{children:"aom-av1-psy"})," and MKVToolNix v76.0, if you are fine with these you can proceed."]})}),"\n",(0,t.jsx)(n.h3,{id:"the-manual-way",children:"The Manual Way"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Install ",(0,t.jsx)(n.strong,{children:"Python 3.10.x, this will change so consult from the"})," ",(0,t.jsx)(n.a,{href:"http://www.vapoursynth.com/doc/installation.html",children:"Vapoursynth website"})," ",(0,t.jsx)(n.strong,{children:"if you're reading this from the future"})," from ",(0,t.jsx)(n.a,{href:"https://www.python.org/downloads/windows/",children:"here"}),' and select "Windows Installer 64-bit". Upon installation check the tick for adding Python to PATH like so\n',(0,t.jsx)(n.img,{alt:"Python PATH",src:i(8547).A+"",width:"672",height:"417"}),")"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Download and install Vapoursynth from ",(0,t.jsx)(n.a,{href:"https://github.com/vapoursynth/vapoursynth/releases",children:"here"}),' and select "VapourSynth64-RXX.exe"']}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Open the terminal and type ",(0,t.jsx)(n.code,{children:"vsrepo.py install lsmas ffms2"})," to install some plugins for Av1an to work."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Download MKVToolNix from ",(0,t.jsx)(n.a,{href:"https://mkvtoolnix.download/downloads.html#windows",children:"here"}),', select "mkvtoolnix-64bit-XX.X.X-setup.exe", and install ',(0,t.jsx)(n.strong,{children:"(Also available on winget!)"})]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Download Av1an from ",(0,t.jsx)(n.a,{href:"https://github.com/master-of-zen/Av1an/releases",children:"here"}),' (SELECT LATEST AND CLICK THE "ASSETS" DROPDOWN)']}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Download ",(0,t.jsx)(n.strong,{children:"shared libraries"})," FFmpeg from ",(0,t.jsx)(n.a,{href:"https://www.gyan.dev/ffmpeg/builds",children:"gyan.dev"})]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Download a pre-built fork of Aomenc (",(0,t.jsx)(n.a,{href:"https://github.com/Clybius/aom-av1-lavish/tree/Endless_Merging",children:"aom-av1-lavish"}),") which has neat stuff such as sane defaults, new tunes, optimizations, etc. This can be downloaded for Windows ",(0,t.jsx)(n.a,{href:"https://autumn.revolt.chat/attachments/download/-2EiZW1edcT9anApFZ1PJBEber-pJ6z02NiQBjbr28",children:"here"})," ",(0,t.jsx)(n.em,{children:"(Current as of Sept 6, 2023)"})]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsxs)(n.p,{children:["If you opt to compile aomenc yourself, you can view the instructions on how to do that ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/aomenc/#installation",children:"here"}),"."]})}),"\n",(0,t.jsxs)(n.ol,{start:"8",children:["\n",(0,t.jsxs)(n.li,{children:["Move Av1an, FFmpeg ",(0,t.jsx)(n.strong,{children:"(Including the FFmpeg DLLs)"}),", and aomenc to somewhere preferable, eg ",(0,t.jsx)(n.code,{children:"C:\\Encoding"}),"."]}),"\n",(0,t.jsxs)(n.li,{children:["Add the folder ",(0,t.jsx)(n.strong,{children:"AND MKVTOOLNIX INSTALLATION FOLDER"})," to the ",(0,t.jsx)(n.a,{href:"https://www.maketecheasier.com/what-is-the-windows-path/",children:"Windows PATH environment"}),"."]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"macos",children:"macOS"}),"\n",(0,t.jsx)(n.p,{children:"macOS is very similar to Linux, although there aren't any GUI tools for AV1 encoding that I can comfortably recommend."}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Homebrew + Macports for Av1an + rav1e:"}),"\n",(0,t.jsxs)(n.em,{children:["Note that some commands may have to be run with ",(0,t.jsx)(n.code,{children:"sudo"}),", which I won't explicitly include for security reasons."]})]}),"\n",(0,t.jsx)(n.p,{children:"Installing the Homebrew package manager is a well documented process at this point:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"\n'})}),"\n",(0,t.jsxs)(n.p,{children:["As is installing MacPorts. Install the relevent ",(0,t.jsx)(n.code,{children:".pkg"})," for your macOS version from the MacPorts Project website:\n",(0,t.jsx)(n.a,{href:"https://www.macports.org/install.php",children:"www.macports.org/install.php"})]}),"\n",(0,t.jsx)(n.p,{children:"Now, you can run the following commands:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"brew update && brew upgrade\nbrew install rav1e aom mkvtoolnix ffmpeg\n# Usually you must run MacPorts commands for package installations as root\nport upgrade outdated\nport install av1an\n"})}),"\n",(0,t.jsxs)(n.p,{children:["This is the easiest way to get everything set up & working to produce AV1 video with ",(0,t.jsx)(n.code,{children:"rav1e"})," or mainline ",(0,t.jsx)(n.code,{children:"aomenc"})," & Av1an. You can check that things are installed by running the following commands & parsing their output:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"% av1an --version\nav1an 0.4.1-unstable (rev e10880d) (Release)\n\n* Compiler\n rustc 1.70.0 (LLVM 16.0)\n\n* Target Triple\n aarch64-apple-darwin\n\n* Date Info\n Commit Date: 2023-06-25\n\n* VapourSynth Plugins\n systems.innocent.lsmas : Not found\n com.vapoursynth.ffms2 : Not found\n"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'% rav1e --version | grep "release" -C 1\nrav1e 0.6.6 () (release)\nrustc 1.69.0 (84c898d65 2023-04-16) (built from a source tarball) aarch64-apple-darwin\n'})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'% aomenc --help | grep "AOMedia" -C 3\n\nIncluded encoders:\n\n av1 - AOMedia Project AV1 Encoder 3.6.1 (default)\n\n Use --codec to switch to a non-default encoder.\n'})}),"\n",(0,t.jsxs)(n.p,{children:["Notice ",(0,t.jsx)(n.code,{children:"systems.innocent.lsmas : Not found"})," in the Av1an output. This means you won't be able to use the lsmash chunking method through vapoursynth & may instead have to rely on hybrid chunking, through ",(0,t.jsx)(n.code,{children:"-m hybrid"}),". This is slower & takes up disk space while encoding, but still works. A sample Av1an command with this basic installation may look like this:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'av1an -i "input" -y --resume --verbose --split-method av-scenechange -m hybrid -c mkvmerge -e rav1e --force -v " --tiles 8 -s 4 --quantizer 80 --no-scene-detection" --photon-noise 7 --chroma-noise --pix-format yuv420p10le -w 8 -o "output.mkv"\n'})}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Building From Source"})}),"\n",(0,t.jsx)(n.p,{children:"If you want lsmash support, aom-av1-lavish instead of mainline, or anything else that isn't covered by the more basic installation, you'll have to compile from source. Things are very similar to Linux, with a few oddities:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["macOS sometimes doesn't have a ",(0,t.jsx)(n.code,{children:"/usr/local/bin"})," by default. You can fix this by doing ",(0,t.jsx)(n.code,{children:"mkdir /usr/local/bin"}),"."]}),"\n",(0,t.jsxs)(n.li,{children:["Homebrew installs ",(0,t.jsx)(n.em,{children:"everything"})," in its own directory structure. If you're building things from source that rely on libraries from vapoursynth, zimg, lsmash, etc, make sure to copy them from ",(0,t.jsx)(n.code,{children:"/opt/homebrew/lib"})," to ",(0,t.jsx)(n.code,{children:"/usr/local/lib"}),". Finding them is a matter of ",(0,t.jsx)(n.code,{children:'ls | grep "keyword"'})," & copying what looks reasonable to be associated with the tool you're using."]}),"\n",(0,t.jsx)(n.li,{children:"Building most things from source will have instructions for *nix which work for both macOS & Linux. Even if it says Linux, there's a good chance it'll work on macOS as well, & it is always worth trying Linux build instructions on Mac. I won't be going through building every encoding tool & dependency from source, as it is generally much more intuitive than Windows, but building Av1an is worth detailing here just as an example."}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'brew install git rust nasm\ngit clone https://github.com/master-of-zen/Av1an\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\ncd .. && cd target/release\ncp av1an /usr/local/bin\n'})}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"More Difficult: Building aom-av1-lavish from Source"})}),"\n",(0,t.jsx)(n.p,{children:"If you want to make the most out of your hardware & eke out every last drop of quality, it may be worth building aom-av1-lavish from source. The first step is to clone it from the Endless Merging branch:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/Clybius/aom-av1-lavish -b Endless_Merging\ncd aom-av1-lavish\n"})}),"\n",(0,t.jsxs)(n.p,{children:["Now, you need to make some manual changes to the source code until Clybius merges ",(0,t.jsx)(n.a,{href:"https://github.com/Clybius/aom-av1-lavish/pull/1/files",children:"this commit"}),"."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Add the line ",(0,t.jsx)(n.code,{children:'#include "aq_variance.h"'})," at line 19 in ",(0,t.jsx)(n.code,{children:"av1/encoder/encodeframe_utils.c"})]}),"\n",(0,t.jsxs)(n.li,{children:["Comment out line 2546 in ",(0,t.jsx)(n.code,{children:"av1/encoder/speed_features.c"}),". This line is ",(0,t.jsx)(n.code,{children:"const int qindex_thresh_cdef_sf_s1_s3_l2[2] = { 92, 48 };"})," & becomes ",(0,t.jsx)(n.code,{children:"// const int qindex_thresh_cdef_sf_s1_s3_l2[2] = { 92, 48 };"}),"."]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["Now you can continue to build according to the Linux instructions below. Obviously you'll need cmake, which you can install with homebrew along with any other tools you may need. While still in the ",(0,t.jsx)(n.code,{children:"aom-av1-lavish"})," directory:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'mkdir -p aom_build && cd aom_build\ncmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt" -DCMAKE_LD_FLAGS="-flto -O3 -march=native"\nmake -j$(nproc)\n# This may need to be run as root:\nmake install\n'})}),"\n",(0,t.jsxs)(n.p,{children:["Now you can run ",(0,t.jsx)(n.code,{children:'aomenc --help | grep "AOMedia" -C 3'})," to see if lavish installed. If you're getting the same output as above, you may need to copy the ",(0,t.jsx)(n.code,{children:"aomenc"})," executable to ",(0,t.jsx)(n.code,{children:"/opt/local/bin"}),", ",(0,t.jsx)(n.code,{children:"/usr/local/bin"}),", & ",(0,t.jsx)(n.code,{children:"/opt/homebrew/bin"})," if you already installed mainline aomenc. Running the version info command again, the correct output should look something like this:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"% aomenc --help | grep AOMedia -C 3\n\nIncluded encoders:\n\n av1 - AOMedia Project AV1 Encoder Psy v3.6.0 (default)\n\n Use --codec to switch to a non-default encoder.\n"})}),"\n",(0,t.jsxs)(n.p,{children:["Notice how it says ",(0,t.jsx)(n.code,{children:"AOMedia Project AV1 Encoder Psy"})," instead of ",(0,t.jsx)(n.code,{children:"AOMedia Project AV1 Encoder"}),". You should be all set after this to start using aom-av1-lavish & following the current parameter meta as outlined below."]}),"\n",(0,t.jsx)(n.h2,{id:"linux",children:"Linux"}),"\n",(0,t.jsx)(n.admonition,{type:"info",children:(0,t.jsx)(n.p,{children:"Yet again, try using Arch. It's way easier."})}),"\n",(0,t.jsx)(n.h3,{id:"the-gui-way-1",children:"The GUI Way"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Install ",(0,t.jsx)(n.a,{href:"https://github.com/gianni-rosato/aviator",children:"Aviator"})," (",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/SVT-AV1",children:"SVT-AV1"})," + ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/FFmpeg",children:"FFmpeg"}),") or ",(0,t.jsx)(n.a,{href:"https://giannirosato.com/blog/post/aviator-1/",children:"rAV1ator"})," basically same thing but ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/av1an.mdx",children:"Av1an"})," + ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/encoders/rav1e",children:"rav1e"}),". Both are only available as ",(0,t.jsx)(n.a,{href:"https://beta.flathub.org/apps/net.natesales.Aviator",children:"Flatpaks"}),". Keep in mind Aviator ships with ",(0,t.jsx)(n.strong,{children:"SVT-AV1"})," and rAV1ator with ",(0,t.jsx)(n.strong,{children:"rav1e"})," instead of aomenc/AOM-AV1, which I will not be covering here."]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"the-tui-way",children:"The TUI Way"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.em,{children:"(Recommended)"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Install ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/rav1ator-cli",children:"rav1ator-cli"}),", a TUI for using Av1an meant to be easy to use. Much more flexible than the GUI options & can work with a number of encoders. See ",(0,t.jsx)(n.a,{href:"https://wiki.x266.mov/docs/utilities/rav1ator-cli/#installation",children:"this page"})," for more info. Can be easily used on any distro."]}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"the-compiling-route",children:"The Compiling Route"}),"\n",(0,t.jsx)(n.h4,{id:"ubuntu",children:"Ubuntu"}),"\n",(0,t.jsxs)(n.p,{children:["The guide below is targeted towards 22.04, packages and other things may be different on other versions. First Install Rust via ",(0,t.jsx)(n.code,{children:"rustup"})," first, as apt version of Rust is severely outdated, then you can continue."]}),"\n",(0,t.jsx)(n.p,{children:"Install dependencies:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"sudo apt install wget python unzip unrar build-essential meson autoconf automake libtool git nasm yasm python3-dev python3-pip cython3 libass-dev libqt5websockets5-dev libfftw3-dev libtesseract-dev ffmpeg libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libswresample-dev libmediainfo-dev mkvtoolnix mediainfo perl nasm yasm git cmake libavutil-dev libavcodec-dev libavformat-dev libavdevice-dev libavfilter-dev libswscale-dev libswresample-dev libpostproc-dev llvm libclang-dev libssl-dev\n"})}),"\n",(0,t.jsx)(n.p,{children:"Install l-smash:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/l-smash/l-smash.git\ncd l-smash\n./configure --enable-shared --extra-cflags="-march=native"\nmake -j$(nproc)\nsudo make install\n'})}),"\n",(0,t.jsx)(n.p,{children:"Install zimg:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone --recursive https://github.com/sekrit-twc/zimg.git\ncd zimg\n./autogen.sh\n./configure\nmake -j$(nproc)\nsudo make install\n"})}),"\n",(0,t.jsx)(n.p,{children:"Install ImageMagick:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/ImageMagick/ImageMagick\ncd ImageMagick\n./configure\nmake -j$(nproc)\nsudo make install\n"})}),"\n",(0,t.jsx)(n.p,{children:"Install Vapoursynth R63:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'wget https://github.com/vapoursynth/vapoursynth/archive/refs/tags/R63.zip\nunzip R63.zip\ncd vapoursynth-R63\n./autogen.sh\n./configure CFLAGS="-march=native" CXXFLAGS="-march=native" --libdir=/usr/lib\nmake -j$(nproc)\nsudo make install\nsudo mkdir /usr/lib/vapoursynth\nsudo ldconfig\n'})}),"\n",(0,t.jsxs)(n.p,{children:["The plugin directory will be located in ",(0,t.jsx)(n.code,{children:"/usr/lib/vapoursynth"}),"."]}),"\n",(0,t.jsx)(n.p,{children:"Install L-SMASH-Works Vapoursynth Plugin:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/AkarinVS/L-SMASH-Works -b ffmpeg-4.5\ncd L-SMASH-Works/VapourSynth && mkdir build && cd build\nmeson .. --optimization=3 --default-library=static -Db_lto=true -Dc_args="-march=native" -Dcpp_args="-march=native"\nninja -j$(nproc)\nsudo cp libvslsmashsource.so /usr/lib/vapoursynth/\n'})}),"\n",(0,t.jsx)(n.admonition,{type:"danger",children:(0,t.jsxs)(n.p,{children:["L-SMASH-Works doesn't work on ",(0,t.jsx)(n.strong,{children:"aarch64"}),", it is recommended to use other plugins instead."]})}),"\n",(0,t.jsx)(n.p,{children:"Install FFMS2 Vapoursynth Plugin:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/FFMS/ffms2\ncd ffms2\n./autogen.sh\n./configure CFLAGS="-O3 -march=native" CXXFLAGS="-O3 -march=native"\nmake -j$(nproc)\nsudo cp src/core/.libs/libffms2.so src/core/.libs/libffms2.so.5 src/core/.libs/libffms2.so.5.0.0 /usr/lib/vapoursynth\n'})}),"\n",(0,t.jsx)(n.p,{children:"Install Av1an:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/master-of-zen/Av1an\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\nsudo cp target/release/av1an /usr/local/bin\n'})}),"\n",(0,t.jsxs)(n.p,{children:["When there's no errors, proceed to compiling ",(0,t.jsx)(n.code,{children:"aom-av1-lavish"}),"."]}),"\n",(0,t.jsx)(n.h3,{id:"arch",children:"Arch"}),"\n",(0,t.jsx)(n.p,{children:"Install dependencies:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"sudo pacman -S vapoursynth ffmpeg av1an mkvtoolnix-gui git perl cmake ninja meson nasm vapoursynth-plugin-lsmashsource ffms2\n"})}),"\n",(0,t.jsx)(n.p,{children:"you're done, proceed."}),"\n",(0,t.jsx)(n.h4,{id:"compiling-aom-av1-lavish",children:"Compiling aom-av1-lavish"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/Clybius/aom-av1-lavish -b Endless_Merging\ncd aom-av1-lavish && mkdir -p aom_build && cd aom_build\ncmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt"\nmake -j$(nproc)\nsudo make install\n'})}),"\n",(0,t.jsx)(n.h2,{id:"encoding",children:"Encoding"}),"\n",(0,t.jsxs)(n.p,{children:["The moment you've all been waiting for, let's just get into it. Here's an example ",(0,t.jsx)(n.em,{children:"recommended"})," parameter as of now (09/03/23) [MM/DD/YY]:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'av1an -x 300 -i input.mkv -w 4 -e aom -c mkvmerge --resume -m lsmash --photon-noise=10 --set-thread-affinity=2 --verbose -a " -an " -f " -an " -v " --bit-depth=10 --cpu-used=4 --end-usage=q --cq-level=24 --threads=2 --tile-columns=0 --tile-rows=0 --lag-in-frames=64 --tune-content=psy --tune=ssim --enable-keyframe-filtering=1 --disable-kf --kf-max-dist=9999 --enable-qm=1 --deltaq-mode=0 --aq-mode=0 --quant-b-adapt=1 --enable-fwd-kf=0 --arnr-strength=1 --sb-size=dynamic --enable-dnl-denoising=0 " -o "output.mkv"\n'})}),"\n",(0,t.jsx)(n.admonition,{title:"Parameter Meta",type:"info",children:(0,t.jsxs)(n.p,{children:["It is strongly recommended to join the ",(0,t.jsx)(n.a,{href:"https://discord.gg/vpREHAvYvh",children:"AV1 Discord server"})," to get the latest updates on what to use and which to set, as it's the only easily reachable place for everything AV1 & encoding tips in general."]})}),"\n",(0,t.jsx)(n.p,{children:"Now let's dissect it one-by-one"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Av1an parameters:"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"-i"})," Input."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"-x 300"})," Sets scene split length to 300 frames, you can increase it for more quality at the tradeoff of video seekability."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"-w 4"}),' Specifies the amount of "workers" or amount of encoders working on the video.']}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--verbose"})," Sets logging to verbose."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--resume"})," Resumes the encode even when you haven't encoded yet. I strongly recommend leaving this if you resume a lot since you can accidentally delete your whole progress (There's no delete confirmation feature.. yet) if you \"resumed\" without the parameter in place."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"-e aom"})," Specifies we're using aomenc encoder which should be the default option."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"-c mkvmerge"})," Specifies we're using mkvmerge (MKVToolNix) to concatenate the parts when done, you can specify with ffmpeg if you want to but this is the best method."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"-m lsmash"})," Specifies we're using l-smash (Vapoursynth plugin) to split the videos, this is also the best method because ffms2 causes video lag (Tested a year ago, might change now) and other methods just suck (Slow and not worth it, learned the hard way). You can attempt to use ffms2 when inputting VC-1 videos as it is not possible with l-smash (Or convert it to lossless with x264 qp 0)."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:'-f " -an "'})," ",(0,t.jsx)(n.code,{children:"-f"})," Stands for ffmpeg parameters, ",(0,t.jsx)(n.code,{children:"-an"})," is to remove all audio since its better to encode and merge it separately. To crop use ",(0,t.jsx)(n.code,{children:'-f " -an -vf crop=1920:800 "'})," for example to crop the video to 1920x800."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:'-v " "'})," Is where you put the encoder's parameters in."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:'-a " -an "'})," FFmpeg audio encoding options, we're removing it cause we can always add it later. But if you want to, you can also encode directly. Here's an example for encoding to Opus using libopus assuming stereo: ",(0,t.jsx)(n.code,{children:'-a " -c:a libopus -b:a 128k "'}),"."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--photon-noise=10"})," AV1 grain synthesis, which is a technique where the encoder puts fake grain in so it looks more natural and potentially hiding video artifacts (cause grain is hard to encode and explodes bitrate usage because of their randomness), 5-8 for almost none to little grain, 10-14 for medium, 15+ heavy, 20+ extremely heavy, 30+ for extremely grainy 90s live action films."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--set-thread-affinity=2"})," Pins the thread to the encoder, aligns with ",(0,t.jsx)(n.code,{children:"--threads=2"})," in the encoder parameter so set them accordingly."]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"aomenc parameters:"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--bit-depth=10"})," We're using 10bit because it makes the video smaller and reduces ",(0,t.jsx)(n.a,{href:"https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Video_codecs#contouring",children:"banding"}),"."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--cpu-used=4"})," This is the preset which ranges from 0-9, you can go to 3 if you want more efficiency, 2 if you have a lot of time, 4 is the sweet spot, and 6 if you want speed. Don't go above 6 (Worst efficiency) or even 0 (It would take WEEKS to finish)."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--end-usage=q --cq-level=24"})," This specifies that we are going to use a knockoff version of CRF level similar to x264/x265 encoders, in this case CRF 24."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--threads=2"})," Sets the amount of threads the encoder can use, aligns with ",(0,t.jsx)(n.code,{children:"--set-thread-affinity"})," in Av1an."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--tile-columns=0 --tile-rows=0"})," This is the tiles options, where the encoder splits the videos into tiles to encode faster, see the image below (Yellow lines):"]}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/tiling_av1.avif?token=GHSAT0AAAAAACEZPDXIZARY5MGSTJW4SI22ZHY636A",type:"image/avif"}),(0,t.jsx)("img",{src:"https://autumn.revolt.chat/attachments/HwhZjoDsdzLZsJM2mjzX7lEDmJn1xcYNdrQqmOxPYW/tiling_av1.jpeg",alt:"Tiling",width:"1280",height:"768",loading:"lazy"})]}),"\n",(0,t.jsx)(n.admonition,{title:"Tile usage",type:"note",children:(0,t.jsxs)(n.p,{children:["Do NOT use tiles for 1080p and below, use 1 ",(0,t.jsx)(n.code,{children:"tile-columns"})," at 1440p (2K), 2 ",(0,t.jsx)(n.code,{children:"tile-columns"})," and 1 ",(0,t.jsx)(n.code,{children:"tile-rows"})," for 2160p (4K)"]})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--lag-in-frames=64"})," Similar to x264/x265 ",(0,t.jsx)(n.code,{children:"rc-lookahead"}),". Sets a number of frames to look ahead for frametype and ratecontrol, allowing for better compression decision making. Setting to a value greater than 64 is generally not considered useful."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--aq-mode"})," adaptive quantization mode, 0 is better most of the time"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--tune-content=psy --tune=ssim"})," As the name suggests they are tunes that affect the video output, for the better, and for the worst"]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{title:"Tunes to use",type:"info",children:(0,t.jsxs)(n.p,{children:["Set ",(0,t.jsx)(n.code,{children:"tune-content"})," to ",(0,t.jsx)(n.code,{children:"animation"})," if you're encoding above ",(0,t.jsx)(n.code,{children:"cq-level=30"})," A.K.A lower quality, despite it's name\nSet ",(0,t.jsx)(n.code,{children:"tune-content"})," to ",(0,t.jsx)(n.code,{children:"psy"})," for everything else, ",(0,t.jsxs)(n.strong,{children:["do not use if you encode above ",(0,t.jsx)(n.code,{children:"cq-level=30"})]}),"\nFor ",(0,t.jsx)(n.code,{children:"tune"}),", this is a bit tricky. For now, the meta seems to be ",(0,t.jsx)(n.code,{children:"ssim"}),", but back then it was ",(0,t.jsx)(n.code,{children:"lavish"})," which is considered THE best tune because it's based on ",(0,t.jsx)(n.a,{href:"https://github.com/google/butteraugli",children:"butteraugli"}),". Now it's fallen behind because its more blurry than ",(0,t.jsx)(n.code,{children:"ssim"}),", and before that it was ",(0,t.jsx)(n.code,{children:"butteraugli"}),", and then ",(0,t.jsx)(n.code,{children:"ipq_vmaf_psy"}),", and finally just ",(0,t.jsx)(n.code,{children:"ipq"}),".\nIf you use any of the VMAF tunes, ",(0,t.jsxs)(n.strong,{children:["you need to specify ",(0,t.jsx)(n.code,{children:"--vmaf-model-path="})," to where you put it"]}),"."]})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-keyframe-filtering=1"})," We're setting it to 1 because of compatibility reasons, 2 is more efficient but there are seeking issues and FFmpeg for some reason can't input it."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--sb-size=dynamic"})," Allows the encoder to use 128x128 block partitioning besides 64x64 which gives an efficiency boost, ignore it."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--deltaq-mode"})," set to 0 because its just better."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--arnr-strength=1"})," Controls how strong the filtering will be, 1 is good for 3D Pixar CGI-like and 2D animation, use 4 if you're doing live action content. Using maximum at higher bitrates would just result in a blurry mess."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--disable-kf --enable-fwd-kf=0"})," We're disabling keyframes cause ",(0,t.jsx)(n.strong,{children:"Av1an already did scene detection, so we wont have to."}),". And it speeds things up."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--kf-max-dist=9999"})," Maximum keyframe interval, we're setting it at the highest possible value since av1an's scene detection keyframe interval is already 240 by default"]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-chroma-deltaq=1 --enable-qm=1 --quant-b-adapt=1"})," Parameters that give you free efficiency boost."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--enable-dnl-denoising=0"})," Disables the encoder's built-in denoising technique when grain synthesis is enabled, you can optionally set it to 1 when you have a pretty noisy video since it works quite well."]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.admonition,{title:"Concatenation Error on Linux",type:"info",children:(0,t.jsxs)(n.p,{children:["Run ",(0,t.jsx)(n.code,{children:"ulimit -n 200000"}),", resume, and it should concatenate just fine. If it still errors, head to the encode directory > encode, and run ",(0,t.jsx)(n.code,{children:"mkvmerge @../options.json"})]})}),"\n",(0,t.jsx)(n.h2,{id:"merging-everything",children:"Merging Everything"}),"\n",(0,t.jsxs)(n.p,{children:["Once you're done just encode your audio using ffmpeg (or just passthrough it), subtitles should be carried along with your video output, and merge them in MKVToolNix! Don't want Matroska files? That's fine, you can use FFmpeg or MP4Box to output into ",(0,t.jsx)(n.code,{children:"mp4"}),", just keep in mind that PGS/SUP/VOBSUB subtitles are not supported and Opus audio support is still experimental."]}),"\n",(0,t.jsx)(n.h2,{id:"tips--tricks",children:"Tips & Tricks"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--denoise-noise-level=10"})," Alternative to ",(0,t.jsx)(n.code,{children:"photon-noise"}),", slower than photon-noise and is the OG grain synthesis method, performs okay and just serves as an alternative. Don't attempt to use it at high values (>12) since it creates noticeable grain patterns."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--arnr-maxframes"})," to set max reference frames that will be used to filter the encode, higher values would make the video blurrier at high fidelity but look better at lower bitrates."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"--butteraugli-resize-factor=2"})," if you use any of the butteraugli-based tunes (lavish, butteraugli) to speed it up without much losses and ",(0,t.jsx)(n.code,{children:"--butteraugli-intensity-target=250"})," to match the content light level."]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"final-thoughts",children:"Final Thoughts"}),"\n",(0,t.jsx)(n.p,{children:'Encoding has always been about experimentation for the best, there is really no "One size fits all" for encoding content, as they differ from scene complexity, how it\'s captured (2D/Real life), film grain, dark scenes, etc. So experiment away for your specific type of content!'}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsxs)(n.strong,{children:["Guide originally hosted on ",(0,t.jsx)(n.a,{href:"https://rentry.co/AV1",children:"https://rentry.co/AV1"}),", rewrite and migration by Simulping."]})}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},1679:(e,n,i)=>{i.d(n,{A:()=>s});const s=i.p+"assets/images/compare-guide-6feb966fbd9d73be4a3097c41691c4ad.webp"},8547:(e,n,i)=>{i.d(n,{A:()=>s});const s=i.p+"assets/images/python-path-a89fc4fe6c6eb4c2ea0a7610dd2cf09a.webp"},8453:(e,n,i)=>{i.d(n,{R:()=>a,x:()=>r});var s=i(6540);const t={},o=s.createContext(t);function a(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),s.createElement(o.Provider,{value:n},e.children)}},7233:e=>{e.exports=JSON.parse('{"permalink":"/blog/av1-encoding-for-dummies","source":"@site/blog/2023-09-03-av1-for-dummies.mdx","title":"AV1 Encoding for Dummies","description":"This guide will show you how to encode in AV1 the *right* and *optimal* way.","date":"2023-09-03T00:00:00.000Z","tags":[{"inline":true,"label":"video","permalink":"/blog/tags/video"},{"inline":true,"label":"compression","permalink":"/blog/tags/compression"}],"readingTime":16.09,"hasTruncateMarker":true,"authors":[{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4","socials":{},"key":null,"page":null},{"name":"Gianni Rosato","title":"Maintainer","url":"https://github.com/gianni-rosato","image_url":"https://avatars.githubusercontent.com/u/35711760?v=4","imageURL":"https://avatars.githubusercontent.com/u/35711760?v=4","socials":{},"key":null,"page":null}],"frontMatter":{"title":"AV1 Encoding for Dummies","description":"This guide will show you how to encode in AV1 the *right* and *optimal* way.","slug":"av1-encoding-for-dummies","authors":[{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4"},{"name":"Gianni Rosato","title":"Maintainer","url":"https://github.com/gianni-rosato","image_url":"https://avatars.githubusercontent.com/u/35711760?v=4","imageURL":"https://avatars.githubusercontent.com/u/35711760?v=4"}],"tags":["video","compression"],"image":"/img/compare-guide.webp","hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"Embedding the Un-Embeddable","permalink":"/blog/embedding-the-un-embeddable"},"nextItem":{"title":"Reducing Image Load Online","permalink":"/blog/site-optimization"}}')}}]); \ No newline at end of file diff --git a/assets/js/7fa695a7.4039b6b8.js b/assets/js/7fa695a7.4039b6b8.js deleted file mode 100644 index 93fd282b1..000000000 --- a/assets/js/7fa695a7.4039b6b8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1363],{6046:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>c,contentTitle:()=>o,default:()=>m,frontMatter:()=>r,metadata:()=>a,toc:()=>d});var s=n(4848),t=n(8453);const r={title:"GIF",sidebar_position:3},o="GIF",a={id:"images/GIF",title:"GIF",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/images/GIF.mdx",sourceDirName:"images",slug:"/images/GIF",permalink:"/docs/images/GIF",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/GIF.mdx",tags:[],version:"current",sidebarPosition:3,frontMatter:{title:"GIF",sidebar_position:3},sidebar:"tutorialSidebar",previous:{title:"PNG",permalink:"/docs/images/PNG"},next:{title:"HEIC",permalink:"/docs/images/HEIC"}},c={},d=[{value:"Performance Checklist",id:"performance-checklist",level:2}];function l(e){const i={a:"a",admonition:"admonition",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"gif",children:"GIF"})}),"\n",(0,s.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,s.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,s.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,s.jsxs)(i.p,{children:["Graphics Interchange Format (GIF) is an image file format first released by CompuServe in 1987. It remains popular due to it's widespread support for animated images despite its obsolete efficency. Other animated image formats like Animated ",(0,s.jsx)(i.a,{href:"/docs/images/AVIF",children:"AVIF"})," & Animated ",(0,s.jsx)(i.a,{href:"/docs/images/WebP",children:"WebP"})," have since surpassed GIF in functionality, as has the animated ",(0,s.jsx)(i.a,{href:"/docs/images/PNG",children:"PNG"})," variant APNG."]}),"\n",(0,s.jsx)(i.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,s.jsxs)(i.p,{children:["Lossless? ",(0,s.jsx)(i.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(i.p,{children:["Lossy? ",(0,s.jsx)(i.em,{children:"No"})]}),"\n",(0,s.jsxs)(i.p,{children:["Supported Bit Depth:\n",(0,s.jsx)(i.em,{children:"256 colors"})]}),"\n",(0,s.jsxs)(i.p,{children:["HDR/Wide Gamut? ",(0,s.jsx)(i.em,{children:"No"})]}),"\n",(0,s.jsxs)(i.p,{children:["Animation? ",(0,s.jsx)(i.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(i.p,{children:["Transparency? ",(0,s.jsx)(i.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(i.p,{children:["Progressive Decode? ",(0,s.jsx)(i.em,{children:"No"})]}),"\n",(0,s.jsxs)(i.p,{children:["Royalty Free? ",(0,s.jsx)(i.em,{children:"Yes"})]})]})}function m(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>o,x:()=>a});var s=n(6540);const t={},r=s.createContext(t);function o(e){const i=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),s.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/7fa695a7.ac5844c6.js b/assets/js/7fa695a7.ac5844c6.js new file mode 100644 index 000000000..1e2e37b22 --- /dev/null +++ b/assets/js/7fa695a7.ac5844c6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1363],{3358:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>c,contentTitle:()=>a,default:()=>m,frontMatter:()=>o,metadata:()=>n,toc:()=>d});const n=JSON.parse('{"id":"images/GIF","title":"GIF","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/images/GIF.mdx","sourceDirName":"images","slug":"/images/GIF","permalink":"/docs/images/GIF","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/GIF.mdx","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"title":"GIF","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"PNG","permalink":"/docs/images/PNG"},"next":{"title":"HEIC","permalink":"/docs/images/HEIC"}}');var t=s(4848),r=s(8453);const o={title:"GIF",sidebar_position:3},a="GIF",c={},d=[{value:"Performance Checklist",id:"performance-checklist",level:2}];function l(e){const i={a:"a",admonition:"admonition",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"gif",children:"GIF"})}),"\n",(0,t.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsxs)(i.p,{children:["Graphics Interchange Format (GIF) is an image file format first released by CompuServe in 1987. It remains popular due to it's widespread support for animated images despite its obsolete efficency. Other animated image formats like Animated ",(0,t.jsx)(i.a,{href:"/docs/images/AVIF",children:"AVIF"})," & Animated ",(0,t.jsx)(i.a,{href:"/docs/images/WebP",children:"WebP"})," have since surpassed GIF in functionality, as has the animated ",(0,t.jsx)(i.a,{href:"/docs/images/PNG",children:"PNG"})," variant APNG."]}),"\n",(0,t.jsx)(i.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,t.jsxs)(i.p,{children:["Lossless? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Lossy? ",(0,t.jsx)(i.em,{children:"No"})]}),"\n",(0,t.jsxs)(i.p,{children:["Supported Bit Depth:\n",(0,t.jsx)(i.em,{children:"256 colors"})]}),"\n",(0,t.jsxs)(i.p,{children:["HDR/Wide Gamut? ",(0,t.jsx)(i.em,{children:"No"})]}),"\n",(0,t.jsxs)(i.p,{children:["Animation? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Transparency? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Progressive Decode? ",(0,t.jsx)(i.em,{children:"No"})]}),"\n",(0,t.jsxs)(i.p,{children:["Royalty Free? ",(0,t.jsx)(i.em,{children:"Yes"})]})]})}function m(e={}){const{wrapper:i}={...(0,r.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,i,s)=>{s.d(i,{R:()=>o,x:()=>a});var n=s(6540);const t={},r=n.createContext(t);function o(e){const i=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),n.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/80447496.2ec80bc4.js b/assets/js/80447496.2ec80bc4.js deleted file mode 100644 index 50d94c212..000000000 --- a/assets/js/80447496.2ec80bc4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7715],{6520:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>d,contentTitle:()=>s,default:()=>u,frontMatter:()=>r,metadata:()=>c,toc:()=>a});var n=t(4848),o=t(8453);const r={title:"VVC / H.266",sidebar_position:3},s="H.266",c={id:"video/VVC",title:"VVC / H.266",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/video/VVC.mdx",sourceDirName:"video",slug:"/video/VVC",permalink:"/docs/video/VVC",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/VVC.mdx",tags:[],version:"current",sidebarPosition:3,frontMatter:{title:"VVC / H.266",sidebar_position:3},sidebar:"tutorialSidebar",previous:{title:"HEVC / H.265",permalink:"/docs/video/HEVC"},next:{title:"VP8",permalink:"/docs/video/VP8"}},d={},a=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"h266",children:"H.266"})}),"\n",(0,n.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(i.p,{children:["H.266, or VVC (Versatile Video Coding), is a codec standardized in 2020 by the Joint Video Experts Team (JVET). It succeeds ",(0,n.jsx)(i.a,{href:"/docs/video/HEVC",children:"H.265"}),", and claims to be 40% more efficient. In practice, it is currently about as efficient as ",(0,n.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," when using the ",(0,n.jsx)(i.a,{href:"/docs/encoders/VVenC",children:"VVenC"})," encoder, although it is inherently a more complex format which means it will be more difficult to decode. It is encumbered by royalties."]}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," 7.0 released in April 2024 comes with native VVC decoder."]})]})}function u(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>s,x:()=>c});var n=t(6540);const o={},r=n.createContext(o);function s(e){const i=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function c(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/80447496.ea6304c4.js b/assets/js/80447496.ea6304c4.js new file mode 100644 index 000000000..6699d8eb5 --- /dev/null +++ b/assets/js/80447496.ea6304c4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7715],{6594:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>d,contentTitle:()=>c,default:()=>u,frontMatter:()=>r,metadata:()=>n,toc:()=>a});const n=JSON.parse('{"id":"video/VVC","title":"VVC / H.266","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/video/VVC.mdx","sourceDirName":"video","slug":"/video/VVC","permalink":"/docs/video/VVC","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/VVC.mdx","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"title":"VVC / H.266","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"HEVC / H.265","permalink":"/docs/video/HEVC"},"next":{"title":"VP8","permalink":"/docs/video/VP8"}}');var o=i(4848),s=i(8453);const r={title:"VVC / H.266",sidebar_position:3},c="H.266",d={},a=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"h266",children:"H.266"})}),"\n",(0,o.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsxs)(t.p,{children:["H.266, or VVC (Versatile Video Coding), is a codec standardized in 2020 by the Joint Video Experts Team (JVET). It succeeds ",(0,o.jsx)(t.a,{href:"/docs/video/HEVC",children:"H.265"}),", and claims to be 40% more efficient. In practice, it is currently about as efficient as ",(0,o.jsx)(t.a,{href:"/docs/video/AV1",children:"AV1"})," when using the ",(0,o.jsx)(t.a,{href:"/docs/encoders/VVenC",children:"VVenC"})," encoder, although it is inherently a more complex format which means it will be more difficult to decode. It is encumbered by royalties."]}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," 7.0 released in April 2024 comes with native VVC decoder."]})]})}function u(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>r,x:()=>c});var n=i(6540);const o={},s=n.createContext(o);function r(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/80bfa96b.cd5df282.js b/assets/js/80bfa96b.cd5df282.js new file mode 100644 index 000000000..07ea06b64 --- /dev/null +++ b/assets/js/80bfa96b.cd5df282.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2901],{7261:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>d,contentTitle:()=>c,default:()=>l,frontMatter:()=>r,metadata:()=>n,toc:()=>a});const n=JSON.parse('{"id":"resources","title":"Resources","description":"Encoding resources that you might find useful.","source":"@site/docs/resources.mdx","sourceDirName":".","slug":"/resources","permalink":"/docs/resources","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/resources.mdx","tags":[],"version":"current","sidebarPosition":12,"frontMatter":{"title":"Resources","sidebar_label":"\ud83d\uddc3\ufe0f Resources","sidebar_position":12},"sidebar":"tutorialSidebar","previous":{"title":"\u25b6\ufe0f Video Players","permalink":"/docs/video-players"},"next":{"title":"\u2712\ufe0f Contribution Guide","permalink":"/docs/contribution-guide"}}');var i=s(4848),o=s(8453);const r={title:"Resources",sidebar_label:"\ud83d\uddc3\ufe0f Resources",sidebar_position:12},c="Resources",d={},a=[];function u(e){const t={a:"a",h1:"h1",header:"header",li:"li",p:"p",ul:"ul",...(0,o.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"resources",children:"Resources"})}),"\n",(0,i.jsx)(t.p,{children:"Encoding resources that you might find useful."}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.a,{href:"https://guide.encode.moe",children:"https://guide.encode.moe"})," - Filtering and fansubbing."]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.a,{href:"https://lvsfunc.encode.moe/en/latest",children:"https://lvsfunc.encode.moe/en/latest"})," - lvsfunc documentation."]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.a,{href:"https://silentaperture.gitlab.io/mdbook-guide/introduction.html",children:"https://silentaperture.gitlab.io/mdbook-guide/introduction.html"})," - SilentAperture's Advanced Encoding guide, mostly about filtering."]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.a,{href:"https://x265.readthedocs.io/en/master",children:"https://x265.readthedocs.io/en/master"})," - x265 technical documentation, made by MulticoreWare themselves."]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.a,{href:"http://www.chaneru.com/Roku/HLS/X264_Settings.htm",children:"http://www.chaneru.com/Roku/HLS/X264_Settings.htm"})," - x264 settings."]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.a,{href:"https://kokomins.wordpress.com/2019/10/10/anime-encoding-guide-for-x265-and-why-to-never-use-flac",children:"https://kokomins.wordpress.com/2019/10/10/anime-encoding-guide-for-x265-and-why-to-never-use-flac"})," - Anime encoding guide by Kokomins. Has some pretty good advices regarding psychovisual stuff and x265."]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.a,{href:"https://wiki.xiph.org/Main_Page",children:"https://wiki.xiph.org/Main_Page"})," - Xiph Wiki."]}),"\n"]})]})}function l(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}},8453:(e,t,s)=>{s.d(t,{R:()=>r,x:()=>c});var n=s(6540);const i={},o=n.createContext(i);function r(e){const t=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),n.createElement(o.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/80bfa96b.e5d4b132.js b/assets/js/80bfa96b.e5d4b132.js deleted file mode 100644 index 3eed5ed60..000000000 --- a/assets/js/80bfa96b.e5d4b132.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2901],{9340:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>r,default:()=>l,frontMatter:()=>o,metadata:()=>c,toc:()=>a});var s=n(4848),i=n(8453);const o={title:"Resources",sidebar_label:"\ud83d\uddc3\ufe0f Resources",sidebar_position:12},r="Resources",c={id:"resources",title:"Resources",description:"Encoding resources that you might find useful.",source:"@site/docs/resources.mdx",sourceDirName:".",slug:"/resources",permalink:"/docs/resources",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/resources.mdx",tags:[],version:"current",sidebarPosition:12,frontMatter:{title:"Resources",sidebar_label:"\ud83d\uddc3\ufe0f Resources",sidebar_position:12},sidebar:"tutorialSidebar",previous:{title:"\u25b6\ufe0f Video Players",permalink:"/docs/video-players"},next:{title:"\u2712\ufe0f Contribution Guide",permalink:"/docs/contribution-guide"}},d={},a=[];function u(e){const t={a:"a",h1:"h1",header:"header",li:"li",p:"p",ul:"ul",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"resources",children:"Resources"})}),"\n",(0,s.jsx)(t.p,{children:"Encoding resources that you might find useful."}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.a,{href:"https://guide.encode.moe",children:"https://guide.encode.moe"})," - Filtering and fansubbing."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.a,{href:"https://lvsfunc.encode.moe/en/latest",children:"https://lvsfunc.encode.moe/en/latest"})," - lvsfunc documentation."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.a,{href:"https://silentaperture.gitlab.io/mdbook-guide/introduction.html",children:"https://silentaperture.gitlab.io/mdbook-guide/introduction.html"})," - SilentAperture's Advanced Encoding guide, mostly about filtering."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.a,{href:"https://x265.readthedocs.io/en/master",children:"https://x265.readthedocs.io/en/master"})," - x265 technical documentation, made by MulticoreWare themselves."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.a,{href:"http://www.chaneru.com/Roku/HLS/X264_Settings.htm",children:"http://www.chaneru.com/Roku/HLS/X264_Settings.htm"})," - x264 settings."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.a,{href:"https://kokomins.wordpress.com/2019/10/10/anime-encoding-guide-for-x265-and-why-to-never-use-flac",children:"https://kokomins.wordpress.com/2019/10/10/anime-encoding-guide-for-x265-and-why-to-never-use-flac"})," - Anime encoding guide by Kokomins. Has some pretty good advices regarding psychovisual stuff and x265."]}),"\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.a,{href:"https://wiki.xiph.org/Main_Page",children:"https://wiki.xiph.org/Main_Page"})," - Xiph Wiki."]}),"\n"]})]})}function l(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>r,x:()=>c});var s=n(6540);const i={},o=s.createContext(i);function r(e){const t=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),s.createElement(o.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/814f3328.39af2631.js b/assets/js/814f3328.39af2631.js new file mode 100644 index 000000000..0fdc5f1cd --- /dev/null +++ b/assets/js/814f3328.39af2631.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7472],{5513:e=>{e.exports=JSON.parse('{"title":"Recent posts","items":[{"title":"Better late than never: SVT-AV1 v2.2.x Deep Dive","permalink":"/blog/svt-av1-third-deep-dive","unlisted":false,"date":"2024-11-14T00:00:00.000Z"},{"title":"Codec Wiki: One Year Later","permalink":"/blog/codec-wiki-one-year-later","unlisted":false,"date":"2024-07-20T00:00:00.000Z"},{"title":"AV1 for Dummies","permalink":"/blog/av1-for-dummies","unlisted":false,"date":"2024-06-24T00:00:00.000Z"},{"title":"Observing SVT-AV1 v2.1.0\'s improvements: A New Deep Dive","permalink":"/blog/svt-av1-second-deep-dive","unlisted":false,"date":"2024-05-19T00:00:00.000Z"},{"title":"Encoding Animation with SVT-AV1: A Deep Dive","permalink":"/blog/svt-av1-deep-dive","unlisted":false,"date":"2023-12-30T00:00:00.000Z"}]}')}}]); \ No newline at end of file diff --git a/assets/js/814f3328.ba8e6fdd.js b/assets/js/814f3328.ba8e6fdd.js deleted file mode 100644 index 228471184..000000000 --- a/assets/js/814f3328.ba8e6fdd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7472],{5513:e=>{e.exports=JSON.parse('{"title":"Recent posts","items":[{"title":"Codec Wiki: One Year Later","permalink":"/blog/codec-wiki-one-year-later","unlisted":false,"date":"2024-07-20T00:00:00.000Z"},{"title":"AV1 for Dummies","permalink":"/blog/av1-for-dummies","unlisted":false,"date":"2024-06-24T00:00:00.000Z"},{"title":"Observing SVT-AV1 v2.1.0\'s improvements: A New Deep Dive","permalink":"/blog/svt-av1-second-deep-dive","unlisted":false,"date":"2024-05-19T00:00:00.000Z"},{"title":"Encoding Animation with SVT-AV1: A Deep Dive","permalink":"/blog/svt-av1-deep-dive","unlisted":false,"date":"2023-12-30T00:00:00.000Z"},{"title":"Embedding the Un-Embeddable","permalink":"/blog/embedding-the-un-embeddable","unlisted":false,"date":"2023-10-29T00:00:00.000Z"}]}')}}]); \ No newline at end of file diff --git a/assets/js/81739261.b57112ee.js b/assets/js/81739261.b57112ee.js new file mode 100644 index 000000000..e8fe08638 --- /dev/null +++ b/assets/js/81739261.b57112ee.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4794],{6500:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>a,contentTitle:()=>d,default:()=>h,frontMatter:()=>o,metadata:()=>s,toc:()=>l});const s=JSON.parse('{"id":"video/prores","title":"ProRes","description":"ProRes is a family of lossy video compression codecs developed by Apple Inc. ProRes is designed to serve as a high-quality \\"visually lossless\\" video editing codec that offers superior image quality compared to many other editing codecs while still maintaining a relatively compact file size compared to uncompressed video.","source":"@site/docs/video/prores.mdx","sourceDirName":"video","slug":"/video/prores","permalink":"/docs/video/prores","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/prores.mdx","tags":[],"version":"current","sidebarPosition":14,"frontMatter":{"title":"ProRes","sidebar_position":14},"sidebar":"tutorialSidebar","previous":{"title":"UT Video","permalink":"/docs/video/utvideo"},"next":{"title":"ECM","permalink":"/docs/video/ECM"}}');var r=t(4848),n=t(8453);const o={title:"ProRes",sidebar_position:14},d="ProRes",a={},l=[{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"Usage",id:"usage",level:2}];function c(e){const i={a:"a",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.header,{children:(0,r.jsx)(i.h1,{id:"prores",children:"ProRes"})}),"\n",(0,r.jsx)(i.p,{children:'ProRes is a family of lossy video compression codecs developed by Apple Inc. ProRes is designed to serve as a high-quality "visually lossless" video editing codec that offers superior image quality compared to many other editing codecs while still maintaining a relatively compact file size compared to uncompressed video.'}),"\n",(0,r.jsxs)(i.p,{children:["ProRes uses 4:2:2 or 4:4:4 chroma subsampling depending on the specific subset. This provides greater color fidelity and precision than typical 8-bit 4:2:0 codecs like what can commonly be seen with ",(0,r.jsx)(i.a,{href:"/docs/video/AVC",children:"AVC"}),"."]}),"\n",(0,r.jsxs)(i.p,{children:["ProRes compression uses the ",(0,r.jsx)(i.a,{href:"/docs/introduction/terminology#discrete-cosine-transform-dct",children:"Discrete Cosine Transform"})," and intra-frame compression techniques; there is no inter-frame compression applied, meaning redundancy between frames isn't utilized to increase compression efficiency; this keeps decoding light, and simplifies the codec. ProRes is able to achieve very high quality video with relatively low data rates around 100-400 MB/s depending on the resolution and specific ProRes variant."]}),"\n",(0,r.jsx)(i.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,r.jsx)(i.p,{children:"There are multiple variants of ProRes that offer different combinations of image quality and compression ratios:"}),"\n",(0,r.jsxs)(i.table,{children:[(0,r.jsx)(i.thead,{children:(0,r.jsxs)(i.tr,{children:[(0,r.jsx)(i.th,{children:"Format"}),(0,r.jsx)(i.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,r.jsx)(i.th,{style:{textAlign:"right"},children:"Supported Bit Depth(s)"})]})}),(0,r.jsxs)(i.tbody,{children:[(0,r.jsxs)(i.tr,{children:[(0,r.jsx)(i.td,{children:(0,r.jsx)(i.a,{href:"https://www.apple.com/final-cut-pro/docs/Apple_ProRes_RAW.pdf",children:"ProRes RAW"})}),(0,r.jsx)(i.td,{style:{textAlign:"center"},children:"N/A"}),(0,r.jsx)(i.td,{style:{textAlign:"right"},children:"12-bit"})]}),(0,r.jsxs)(i.tr,{children:[(0,r.jsx)(i.td,{children:"ProRes 4444 XQ"}),(0,r.jsx)(i.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,r.jsx)(i.td,{style:{textAlign:"right"},children:"10-bit, 12-bit*"})]}),(0,r.jsxs)(i.tr,{children:[(0,r.jsx)(i.td,{children:"ProRes 4444"}),(0,r.jsx)(i.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,r.jsx)(i.td,{style:{textAlign:"right"},children:"10-bit, 12-bit*"})]}),(0,r.jsxs)(i.tr,{children:[(0,r.jsx)(i.td,{children:"ProRes HQ"}),(0,r.jsx)(i.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,r.jsx)(i.td,{style:{textAlign:"right"},children:"10-bit"})]}),(0,r.jsxs)(i.tr,{children:[(0,r.jsx)(i.td,{children:"ProRes"}),(0,r.jsx)(i.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,r.jsx)(i.td,{style:{textAlign:"right"},children:"10-bit"})]}),(0,r.jsxs)(i.tr,{children:[(0,r.jsx)(i.td,{children:"ProRes LT"}),(0,r.jsx)(i.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,r.jsx)(i.td,{style:{textAlign:"right"},children:"10-bit"})]}),(0,r.jsxs)(i.tr,{children:[(0,r.jsx)(i.td,{children:"ProRes Proxy"}),(0,r.jsx)(i.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,r.jsx)(i.td,{style:{textAlign:"right"},children:"10-bit"})]})]})]}),"\n",(0,r.jsxs)(i.p,{children:["*",(0,r.jsx)(i.em,{children:"ProRes 4444 XQ and 4444 support 12-bit color depth, but the lossless alpha channel is 16-bit if included."})]}),"\n",(0,r.jsx)(i.p,{children:"The higher data rate variants like 4444 XQ and HQ prioritize maximum fidelity at the expense of larger file sizes. The lower data rate variants trade off some quality for much smaller file sizes suitable for editing where storage space is constrained."}),"\n",(0,r.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,r.jsx)(i.p,{children:"Apple ProRes Raw is available in LUMIX cameras & the Sony Alpha FX3 via Atomos Ninja V. Both cameras are capable of recording 12-bit uncompressed RAW video in the ProRes RAW format."}),"\n",(0,r.jsx)(i.p,{children:"ProRes has become widely adopted in professional video post-production workflows due to its quality, performance, metadata handling, and tight integration with Apple's Final Cut Pro editing software & ecosystem."}),"\n",(0,r.jsx)(i.p,{children:"ProRes is supported by most major non-linear editing systems beyond just Final Cut Pro, including Adobe Premiere Pro & BlackMagic's DaVinci Resolve. This cross-platform compatibility makes it a convenient codec for exchange between different video editing applications."}),"\n",(0,r.jsx)(i.p,{children:"While designed primarily as an editing codec, Apple has also implemented hardware acceleration for ProRes encode & decode in recent Mac devices via Apple Silicon starting with the M2 chip. This hardware acceleration enables higher performance for tasks like playback, transcoding, and export compared to software-only implementations."})]})}function h(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,r.jsx)(i,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>o,x:()=>d});var s=t(6540);const r={},n=s.createContext(r);function o(e){const i=s.useContext(n);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function d(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(n.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/81739261.ec5a3f1a.js b/assets/js/81739261.ec5a3f1a.js deleted file mode 100644 index 05dac9cac..000000000 --- a/assets/js/81739261.ec5a3f1a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4794],{2358:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>a,contentTitle:()=>o,default:()=>h,frontMatter:()=>n,metadata:()=>d,toc:()=>l});var s=t(4848),r=t(8453);const n={title:"ProRes",sidebar_position:14},o="ProRes",d={id:"video/prores",title:"ProRes",description:'ProRes is a family of lossy video compression codecs developed by Apple Inc. ProRes is designed to serve as a high-quality "visually lossless" video editing codec that offers superior image quality compared to many other editing codecs while still maintaining a relatively compact file size compared to uncompressed video.',source:"@site/docs/video/prores.mdx",sourceDirName:"video",slug:"/video/prores",permalink:"/docs/video/prores",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/prores.mdx",tags:[],version:"current",sidebarPosition:14,frontMatter:{title:"ProRes",sidebar_position:14},sidebar:"tutorialSidebar",previous:{title:"UT Video",permalink:"/docs/video/utvideo"},next:{title:"ECM",permalink:"/docs/video/ECM"}},a={},l=[{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"Usage",id:"usage",level:2}];function c(e){const i={a:"a",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"prores",children:"ProRes"})}),"\n",(0,s.jsx)(i.p,{children:'ProRes is a family of lossy video compression codecs developed by Apple Inc. ProRes is designed to serve as a high-quality "visually lossless" video editing codec that offers superior image quality compared to many other editing codecs while still maintaining a relatively compact file size compared to uncompressed video.'}),"\n",(0,s.jsxs)(i.p,{children:["ProRes uses 4:2:2 or 4:4:4 chroma subsampling depending on the specific subset. This provides greater color fidelity and precision than typical 8-bit 4:2:0 codecs like what can commonly be seen with ",(0,s.jsx)(i.a,{href:"/docs/video/AVC",children:"AVC"}),"."]}),"\n",(0,s.jsxs)(i.p,{children:["ProRes compression uses the ",(0,s.jsx)(i.a,{href:"/docs/introduction/terminology#discrete-cosine-transform-dct",children:"Discrete Cosine Transform"})," and intra-frame compression techniques; there is no inter-frame compression applied, meaning redundancy between frames isn't utilized to increase compression efficiency; this keeps decoding light, and simplifies the codec. ProRes is able to achieve very high quality video with relatively low data rates around 100-400 MB/s depending on the resolution and specific ProRes variant."]}),"\n",(0,s.jsx)(i.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,s.jsx)(i.p,{children:"There are multiple variants of ProRes that offer different combinations of image quality and compression ratios:"}),"\n",(0,s.jsxs)(i.table,{children:[(0,s.jsx)(i.thead,{children:(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.th,{children:"Format"}),(0,s.jsx)(i.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,s.jsx)(i.th,{style:{textAlign:"right"},children:"Supported Bit Depth(s)"})]})}),(0,s.jsxs)(i.tbody,{children:[(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:(0,s.jsx)(i.a,{href:"https://www.apple.com/final-cut-pro/docs/Apple_ProRes_RAW.pdf",children:"ProRes RAW"})}),(0,s.jsx)(i.td,{style:{textAlign:"center"},children:"N/A"}),(0,s.jsx)(i.td,{style:{textAlign:"right"},children:"12-bit"})]}),(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:"ProRes 4444 XQ"}),(0,s.jsx)(i.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,s.jsx)(i.td,{style:{textAlign:"right"},children:"10-bit, 12-bit*"})]}),(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:"ProRes 4444"}),(0,s.jsx)(i.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,s.jsx)(i.td,{style:{textAlign:"right"},children:"10-bit, 12-bit*"})]}),(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:"ProRes HQ"}),(0,s.jsx)(i.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,s.jsx)(i.td,{style:{textAlign:"right"},children:"10-bit"})]}),(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:"ProRes"}),(0,s.jsx)(i.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,s.jsx)(i.td,{style:{textAlign:"right"},children:"10-bit"})]}),(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:"ProRes LT"}),(0,s.jsx)(i.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,s.jsx)(i.td,{style:{textAlign:"right"},children:"10-bit"})]}),(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:"ProRes Proxy"}),(0,s.jsx)(i.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,s.jsx)(i.td,{style:{textAlign:"right"},children:"10-bit"})]})]})]}),"\n",(0,s.jsxs)(i.p,{children:["*",(0,s.jsx)(i.em,{children:"ProRes 4444 XQ and 4444 support 12-bit color depth, but the lossless alpha channel is 16-bit if included."})]}),"\n",(0,s.jsx)(i.p,{children:"The higher data rate variants like 4444 XQ and HQ prioritize maximum fidelity at the expense of larger file sizes. The lower data rate variants trade off some quality for much smaller file sizes suitable for editing where storage space is constrained."}),"\n",(0,s.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(i.p,{children:"Apple ProRes Raw is available in LUMIX cameras & the Sony Alpha FX3 via Atomos Ninja V. Both cameras are capable of recording 12-bit uncompressed RAW video in the ProRes RAW format."}),"\n",(0,s.jsx)(i.p,{children:"ProRes has become widely adopted in professional video post-production workflows due to its quality, performance, metadata handling, and tight integration with Apple's Final Cut Pro editing software & ecosystem."}),"\n",(0,s.jsx)(i.p,{children:"ProRes is supported by most major non-linear editing systems beyond just Final Cut Pro, including Adobe Premiere Pro & BlackMagic's DaVinci Resolve. This cross-platform compatibility makes it a convenient codec for exchange between different video editing applications."}),"\n",(0,s.jsx)(i.p,{children:"While designed primarily as an editing codec, Apple has also implemented hardware acceleration for ProRes encode & decode in recent Mac devices via Apple Silicon starting with the M2 chip. This hardware acceleration enables higher performance for tasks like playback, transcoding, and export compared to software-only implementations."})]})}function h(e={}){const{wrapper:i}={...(0,r.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>o,x:()=>d});var s=t(6540);const r={},n=s.createContext(r);function o(e){const i=s.useContext(n);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function d(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(n.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/83732ada.0732b040.js b/assets/js/83732ada.0732b040.js deleted file mode 100644 index fe72bff11..000000000 --- a/assets/js/83732ada.0732b040.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6840],{3387:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>c,contentTitle:()=>r,default:()=>l,frontMatter:()=>s,metadata:()=>d,toc:()=>a});var o=t(4848),n=t(8453);const s={title:"HEVC / H.265",sidebar_position:2},r="H.265",d={id:"video/HEVC",title:"HEVC / H.265",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/video/HEVC.mdx",sourceDirName:"video",slug:"/video/HEVC",permalink:"/docs/video/HEVC",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/HEVC.mdx",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"HEVC / H.265",sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"AVC / H.264",permalink:"/docs/video/AVC"},next:{title:"VVC / H.266",permalink:"/docs/video/VVC"}},c={},a=[];function u(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.header,{children:(0,o.jsx)(i.h1,{id:"h265",children:"H.265"})}),"\n",(0,o.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsxs)(i.p,{children:["H.265, also known as High-Efficiency Video Coding (HEVC), is a video compression standard designed to deliver higher-quality videos with reduced file sizes. It is a successor to the ",(0,o.jsx)(i.a,{href:"/docs/video/AVC",children:"H.264"})," codec and was developed to address the increasing demand for efficient and high-quality video compression, particularly in the context of 4K content. This codec is encumbered by royalties."]})]})}function l(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(u,{...e})}):u(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>r,x:()=>d});var o=t(6540);const n={},s=o.createContext(n);function r(e){const i=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function d(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),o.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/83732ada.1017b5ad.js b/assets/js/83732ada.1017b5ad.js new file mode 100644 index 000000000..7d526fb1e --- /dev/null +++ b/assets/js/83732ada.1017b5ad.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6840],{4167:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>d,default:()=>l,frontMatter:()=>r,metadata:()=>o,toc:()=>a});const o=JSON.parse('{"id":"video/HEVC","title":"HEVC / H.265","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/video/HEVC.mdx","sourceDirName":"video","slug":"/video/HEVC","permalink":"/docs/video/HEVC","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/HEVC.mdx","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"HEVC / H.265","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"AVC / H.264","permalink":"/docs/video/AVC"},"next":{"title":"VVC / H.266","permalink":"/docs/video/VVC"}}');var n=i(4848),s=i(8453);const r={title:"HEVC / H.265",sidebar_position:2},d="H.265",c={},a=[];function u(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"h265",children:"H.265"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(t.p,{children:["H.265, also known as High-Efficiency Video Coding (HEVC), is a video compression standard designed to deliver higher-quality videos with reduced file sizes. It is a successor to the ",(0,n.jsx)(t.a,{href:"/docs/video/AVC",children:"H.264"})," codec and was developed to address the increasing demand for efficient and high-quality video compression, particularly in the context of 4K content. This codec is encumbered by royalties."]})]})}function l(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>r,x:()=>d});var o=i(6540);const n={},s=o.createContext(n);function r(e){const t=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),o.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/841b1305.347f21bf.js b/assets/js/841b1305.347f21bf.js new file mode 100644 index 000000000..f0222376b --- /dev/null +++ b/assets/js/841b1305.347f21bf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9939],{4429:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>u,contentTitle:()=>c,default:()=>p,frontMatter:()=>l,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"encoders/uavs3e","title":"uavs3e","description":"uavs3e is an open-source encoder for the AVS3 codec, developed by Chinese research institutions including Peking University Shenzhen Graduate School, Peng Cheng Laboratory, and Guangdong Bohua UHD Innovation Corporation.","source":"@site/docs/encoders/uavs3e.mdx","sourceDirName":"encoders","slug":"/encoders/uavs3e","permalink":"/docs/encoders/uavs3e","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/uavs3e.mdx","tags":[],"version":"current","sidebarPosition":20,"frontMatter":{"title":"uavs3e","sidebar_position":20,"keywords":["avs3","encoding","video encoding"]},"sidebar":"tutorialSidebar","previous":{"title":"aom-psy101","permalink":"/docs/encoders/aom-psy101"},"next":{"title":"NVENC","permalink":"/docs/encoders_hw/nvenc"}}');var r=s(4848),i=s(8453),a=s(1470),o=s(9365);const l={title:"uavs3e",sidebar_position:20,keywords:["avs3","encoding","video encoding"]},c="uavs3e",u={},d=[{value:"Installation",id:"installation",level:2},{value:"10-bit Support",id:"10-bit-support",level:3},{value:"Usage",id:"usage",level:2},{value:"Notes",id:"notes",level:2}];function h(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"uavs3e",children:"uavs3e"})}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"https://github.com/uavs3/uavs3e/",children:"uavs3e"})," is an open-source encoder for the ",(0,r.jsx)(n.a,{href:"/docs/video/AVS3",children:"AVS3"})," codec, developed by Chinese research institutions including Peking University Shenzhen Graduate School, Peng Cheng Laboratory, and Guangdong Bohua UHD Innovation Corporation."]}),"\n",(0,r.jsx)(n.p,{children:"The encoder receives infrequent updates, which may result in bugs and compilation issues. It supports AMD64 with AVX2, ARM with NEON, and LoongArch CPUs."}),"\n",(0,r.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,r.jsxs)(a.A,{children:[(0,r.jsxs)(o.A,{value:"unixlike",label:"Linux & macOS",children:[(0,r.jsxs)(n.p,{children:["The developers do not provide pre-built binaries, so you'll need to compile it yourself. Compilation requires GNU Make and CMake. As of August 2024, ",(0,r.jsx)(n.code,{children:"uavs3e"})," does not compile with GCC 14, using Clang 18 instead resolves this issue."]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/uavs3/uavs3e.git\ncd uavs3e\nmkdir build/linux && cd build/linux\ncmake ../.. -DCOMPILE_10BIT=0 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++\nmake -j 8\n"})}),(0,r.jsxs)(n.p,{children:["If you encounter undefined calls to ",(0,r.jsx)(n.code,{children:"close"})," or ",(0,r.jsx)(n.code,{children:"lseek64"})," functions, add the following two lines at the top of the ",(0,r.jsx)(n.code,{children:"test/utest.c"})," file:"]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-c",children:"#define _LARGEFILE64_SOURCE\n#include \n"})}),(0,r.jsxs)(n.p,{children:["Binaries will be available in the ",(0,r.jsx)(n.code,{children:"build/linux"})," folder. On Linux, you can run ",(0,r.jsx)(n.code,{children:"make install"})," to install the encoder (may require elevated permissions)."]})]}),(0,r.jsxs)(o.A,{value:"windows",label:"Windows",children:[(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsx)(n.li,{children:"Ensure you have the following prerequisites installed before starting the build process:"}),"\n"]}),(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://visualstudio.microsoft.com/visual-cpp-build-tools/",children:"Microsoft C++ Build Tools"}),': Select "Desktop development with C++".']}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://git-scm.com/download/win",children:"Git"})}),"\n"]}),(0,r.jsxs)(n.ol,{start:"2",children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Open Developer PowerShell for VS 2022."}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Run the following commands:"}),"\n"]}),"\n"]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/uavs3/uavs3e.git\ncd uavs3e\n.\\version.bat\ncd build\\x86_windows\ndevenv uavs3e.sln /Upgrade\nmsbuild uavs3e.sln /p:Configuration=Release /p:WindowsTargetPlatformVersion=10.0\n"})}),(0,r.jsxs)(n.p,{children:["Binaries will be available in the ",(0,r.jsx)(n.code,{children:"bin"})," folder."]})]})]}),"\n",(0,r.jsx)(n.h3,{id:"10-bit-support",children:"10-bit Support"}),"\n",(0,r.jsxs)(a.A,{children:[(0,r.jsx)(o.A,{value:"unixlike",label:"Linux & macOS",children:(0,r.jsxs)(n.p,{children:["To enable 10-bit support, set ",(0,r.jsx)(n.code,{children:"-DCOMPILE_10BIT=1"})," in the CMake command. However, the encoder compiled with this flag has been reported to cause ",(0,r.jsx)(n.a,{href:"https://github.com/uavs3/uavs3e/issues/53",children:"segmentation faults"})," on some systems."]})}),(0,r.jsx)(o.A,{value:"windows",label:"Windows",children:(0,r.jsxs)(n.p,{children:["To enable 10-bit support, change the line ",(0,r.jsx)(n.code,{children:"#define COMPILE_10BIT 0"})," to ",(0,r.jsx)(n.code,{children:"#define COMPILE_10BIT 1"})," in the ",(0,r.jsx)(n.code,{children:"inc/com_api.h"})," file."]})})]}),"\n",(0,r.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,r.jsxs)(n.p,{children:["The encoder cannot parse ",(0,r.jsx)(n.code,{children:".y4m"})," files, they need to be converted to raw video (",(0,r.jsx)(n.code,{children:".yuv"}),") format."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Simple 8-bit FHD 23.976 fps input with QP 20 and raw avs3 bitstream output"',children:"uavs3enc -i input.yuv -w 1920 -h 1080 -d 8 --fps_num 24000 --fps_den 1001 -q 20 -o output.avs3\n"})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Speed 2, CRF 20, intra period 120, multithreaded"',children:"uavs3enc -i input.yuv -w 1920 -h 1080 -d 8 --fps_num 24000 --fps_den 1001 -p 120 --wpp_threads 8 --frm_threads 8 --speed_level 2 --rc_type 1 -q 20 -o output.avs3\n"})}),"\n",(0,r.jsxs)(n.p,{children:["Currently, uavs3e ",(0,r.jsx)(n.a,{href:"https://github.com/uavs3/uavs3e/issues/2",children:"does not support piping"}),"."]}),"\n",(0,r.jsx)(n.h2,{id:"notes",children:"Notes"}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsx)(n.li,{children:"Usable speed presets range from 0 to 4, where 0 is the slowest and 4 is the fastest."}),"\n",(0,r.jsxs)(n.li,{children:["The encoder can be quite competitive, even compared with the newest ",(0,r.jsx)(n.a,{href:"/docs/video/AV1",children:"AV1"})," and ",(0,r.jsx)(n.a,{href:"/docs/video/VVC",children:"VVC"})," encoders in terms of visual fidelity."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"uavs3d"})," can be used to decode the output bitstream. For real-time playback, you need to have ",(0,r.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," compiled with ",(0,r.jsx)(n.code,{children:"--enable-libuavs3d"}),"."]}),"\n"]})]})}function p(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},9365:(e,n,s)=>{s.d(n,{A:()=>a});s(6540);var t=s(4164);const r={tabItem:"tabItem_Ymn6"};var i=s(4848);function a(e){let{children:n,hidden:s,className:a}=e;return(0,i.jsx)("div",{role:"tabpanel",className:(0,t.A)(r.tabItem,a),hidden:s,children:n})}},1470:(e,n,s)=>{s.d(n,{A:()=>y});var t=s(6540),r=s(4164),i=s(3104),a=s(6347),o=s(205),l=s(7485),c=s(1682),u=s(679);function d(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:s}=e;return(0,t.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:s,attributes:t,default:r}}=e;return{value:n,label:s,attributes:t,default:r}}))}(s);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,s])}function p(e){let{value:n,tabValues:s}=e;return s.some((e=>e.value===n))}function v(e){let{queryString:n=!1,groupId:s}=e;const r=(0,a.W6)(),i=function(e){let{queryString:n=!1,groupId:s}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!s)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:n,groupId:s});return[(0,l.aZ)(i),(0,t.useCallback)((e=>{if(!i)return;const n=new URLSearchParams(r.location.search);n.set(i,e),r.replace({...r.location,search:n.toString()})}),[i,r])]}function m(e){const{defaultValue:n,queryString:s=!1,groupId:r}=e,i=h(e),[a,l]=(0,t.useState)((()=>function(e){let{defaultValue:n,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!p({value:n,tabValues:s}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const t=s.find((e=>e.default))??s[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:n,tabValues:i}))),[c,d]=v({queryString:s,groupId:r}),[m,f]=function(e){let{groupId:n}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,i]=(0,u.Dv)(s);return[r,(0,t.useCallback)((e=>{s&&i.set(e)}),[s,i])]}({groupId:r}),b=(()=>{const e=c??m;return p({value:e,tabValues:i})?e:null})();(0,o.A)((()=>{b&&l(b)}),[b]);return{selectedValue:a,selectValue:(0,t.useCallback)((e=>{if(!p({value:e,tabValues:i}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),f(e)}),[d,f,i]),tabValues:i}}var f=s(2303);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=s(4848);function g(e){let{className:n,block:s,selectedValue:t,selectValue:a,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,i.a_)(),u=e=>{const n=e.currentTarget,s=l.indexOf(n),r=o[s].value;r!==t&&(c(n),a(r))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const s=l.indexOf(e.currentTarget)+1;n=l[s]??l[0];break}case"ArrowLeft":{const s=l.indexOf(e.currentTarget)-1;n=l[s]??l[l.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":s},n),children:o.map((e=>{let{value:n,label:s,attributes:i}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:t===n?0:-1,"aria-selected":t===n,ref:e=>l.push(e),onKeyDown:d,onClick:u,...i,className:(0,r.A)("tabs__item",b.tabItem,i?.className,{"tabs__item--active":t===n}),children:s??n},n)}))})}function j(e){let{lazy:n,children:s,selectedValue:i}=e;const a=(Array.isArray(s)?s:[s]).filter(Boolean);if(n){const e=a.find((e=>e.props.value===i));return e?(0,t.cloneElement)(e,{className:(0,r.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:a.map(((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==i})))})}function w(e){const n=m(e);return(0,x.jsxs)("div",{className:(0,r.A)("tabs-container",b.tabList),children:[(0,x.jsx)(g,{...n,...e}),(0,x.jsx)(j,{...n,...e})]})}function y(e){const n=(0,f.A)();return(0,x.jsx)(w,{...e,children:d(e.children)},String(n))}},8453:(e,n,s)=>{s.d(n,{R:()=>a,x:()=>o});var t=s(6540);const r={},i=t.createContext(r);function a(e){const n=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/841b1305.92aedeb8.js b/assets/js/841b1305.92aedeb8.js deleted file mode 100644 index 02fb84549..000000000 --- a/assets/js/841b1305.92aedeb8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9939],{7026:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>u,contentTitle:()=>l,default:()=>p,frontMatter:()=>o,metadata:()=>c,toc:()=>d});var s=t(4848),r=t(8453),i=t(1470),a=t(9365);const o={title:"uavs3e",sidebar_position:20,keywords:["avs3","encoding","video encoding"]},l="uavs3e",c={id:"encoders/uavs3e",title:"uavs3e",description:"uavs3e is an open-source encoder for the AVS3 codec, developed by Chinese research institutions including Peking University Shenzhen Graduate School, Peng Cheng Laboratory, and Guangdong Bohua UHD Innovation Corporation.",source:"@site/docs/encoders/uavs3e.mdx",sourceDirName:"encoders",slug:"/encoders/uavs3e",permalink:"/docs/encoders/uavs3e",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/uavs3e.mdx",tags:[],version:"current",sidebarPosition:20,frontMatter:{title:"uavs3e",sidebar_position:20,keywords:["avs3","encoding","video encoding"]},sidebar:"tutorialSidebar",previous:{title:"aom-psy101",permalink:"/docs/encoders/aom-psy101"},next:{title:"NVENC",permalink:"/docs/encoders_hw/nvenc"}},u={},d=[{value:"Installation",id:"installation",level:2},{value:"10-bit Support",id:"10-bit-support",level:3},{value:"Usage",id:"usage",level:2},{value:"Notes",id:"notes",level:2}];function h(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"uavs3e",children:"uavs3e"})}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"https://github.com/uavs3/uavs3e/",children:"uavs3e"})," is an open-source encoder for the ",(0,s.jsx)(n.a,{href:"/docs/video/AVS3",children:"AVS3"})," codec, developed by Chinese research institutions including Peking University Shenzhen Graduate School, Peng Cheng Laboratory, and Guangdong Bohua UHD Innovation Corporation."]}),"\n",(0,s.jsx)(n.p,{children:"The encoder receives infrequent updates, which may result in bugs and compilation issues. It supports AMD64 with AVX2, ARM with NEON, and LoongArch CPUs."}),"\n",(0,s.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsxs)(i.A,{children:[(0,s.jsxs)(a.A,{value:"unixlike",label:"Linux & macOS",children:[(0,s.jsxs)(n.p,{children:["The developers do not provide pre-built binaries, so you'll need to compile it yourself. Compilation requires GNU Make and CMake. As of August 2024, ",(0,s.jsx)(n.code,{children:"uavs3e"})," does not compile with GCC 14, using Clang 18 instead resolves this issue."]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/uavs3/uavs3e.git\ncd uavs3e\nmkdir build/linux && cd build/linux\ncmake ../.. -DCOMPILE_10BIT=0 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++\nmake -j 8\n"})}),(0,s.jsxs)(n.p,{children:["If you encounter undefined calls to ",(0,s.jsx)(n.code,{children:"close"})," or ",(0,s.jsx)(n.code,{children:"lseek64"})," functions, add the following two lines at the top of the ",(0,s.jsx)(n.code,{children:"test/utest.c"})," file:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-c",children:"#define _LARGEFILE64_SOURCE\n#include \n"})}),(0,s.jsxs)(n.p,{children:["Binaries will be available in the ",(0,s.jsx)(n.code,{children:"build/linux"})," folder. On Linux, you can run ",(0,s.jsx)(n.code,{children:"make install"})," to install the encoder (may require elevated permissions)."]})]}),(0,s.jsxs)(a.A,{value:"windows",label:"Windows",children:[(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsx)(n.li,{children:"Ensure you have the following prerequisites installed before starting the build process:"}),"\n"]}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"https://visualstudio.microsoft.com/visual-cpp-build-tools/",children:"Microsoft C++ Build Tools"}),': Select "Desktop development with C++".']}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://git-scm.com/download/win",children:"Git"})}),"\n"]}),(0,s.jsxs)(n.ol,{start:"2",children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:"Open Developer PowerShell for VS 2022."}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:"Run the following commands:"}),"\n"]}),"\n"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/uavs3/uavs3e.git\ncd uavs3e\n.\\version.bat\ncd build\\x86_windows\ndevenv uavs3e.sln /Upgrade\nmsbuild uavs3e.sln /p:Configuration=Release /p:WindowsTargetPlatformVersion=10.0\n"})}),(0,s.jsxs)(n.p,{children:["Binaries will be available in the ",(0,s.jsx)(n.code,{children:"bin"})," folder."]})]})]}),"\n",(0,s.jsx)(n.h3,{id:"10-bit-support",children:"10-bit Support"}),"\n",(0,s.jsxs)(i.A,{children:[(0,s.jsx)(a.A,{value:"unixlike",label:"Linux & macOS",children:(0,s.jsxs)(n.p,{children:["To enable 10-bit support, set ",(0,s.jsx)(n.code,{children:"-DCOMPILE_10BIT=1"})," in the CMake command. However, the encoder compiled with this flag has been reported to cause ",(0,s.jsx)(n.a,{href:"https://github.com/uavs3/uavs3e/issues/53",children:"segmentation faults"})," on some systems."]})}),(0,s.jsx)(a.A,{value:"windows",label:"Windows",children:(0,s.jsxs)(n.p,{children:["To enable 10-bit support, change the line ",(0,s.jsx)(n.code,{children:"#define COMPILE_10BIT 0"})," to ",(0,s.jsx)(n.code,{children:"#define COMPILE_10BIT 1"})," in the ",(0,s.jsx)(n.code,{children:"inc/com_api.h"})," file."]})})]}),"\n",(0,s.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsxs)(n.p,{children:["The encoder cannot parse ",(0,s.jsx)(n.code,{children:".y4m"})," files, they need to be converted to raw video (",(0,s.jsx)(n.code,{children:".yuv"}),") format."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Simple 8-bit FHD 23.976 fps input with QP 20 and raw avs3 bitstream output"',children:"uavs3enc -i input.yuv -w 1920 -h 1080 -d 8 --fps_num 24000 --fps_den 1001 -q 20 -o output.avs3\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Speed 2, CRF 20, intra period 120, multithreaded"',children:"uavs3enc -i input.yuv -w 1920 -h 1080 -d 8 --fps_num 24000 --fps_den 1001 -p 120 --wpp_threads 8 --frm_threads 8 --speed_level 2 --rc_type 1 -q 20 -o output.avs3\n"})}),"\n",(0,s.jsxs)(n.p,{children:["Currently, uavs3e ",(0,s.jsx)(n.a,{href:"https://github.com/uavs3/uavs3e/issues/2",children:"does not support piping"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"notes",children:"Notes"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsx)(n.li,{children:"Usable speed presets range from 0 to 4, where 0 is the slowest and 4 is the fastest."}),"\n",(0,s.jsxs)(n.li,{children:["The encoder can be quite competitive, even compared with the newest ",(0,s.jsx)(n.a,{href:"/docs/video/AV1",children:"AV1"})," and ",(0,s.jsx)(n.a,{href:"/docs/video/VVC",children:"VVC"})," encoders in terms of visual fidelity."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"uavs3d"})," can be used to decode the output bitstream. For real-time playback, you need to have ",(0,s.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," compiled with ",(0,s.jsx)(n.code,{children:"--enable-libuavs3d"}),"."]}),"\n"]})]})}function p(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},9365:(e,n,t)=>{t.d(n,{A:()=>a});t(6540);var s=t(4164);const r={tabItem:"tabItem_Ymn6"};var i=t(4848);function a(e){let{children:n,hidden:t,className:a}=e;return(0,i.jsx)("div",{role:"tabpanel",className:(0,s.A)(r.tabItem,a),hidden:t,children:n})}},1470:(e,n,t)=>{t.d(n,{A:()=>y});var s=t(6540),r=t(4164),i=t(3104),a=t(6347),o=t(205),l=t(7485),c=t(1682),u=t(679);function d(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:t}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:s,default:r}}=e;return{value:n,label:t,attributes:s,default:r}}))}(t);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,t])}function p(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function v(e){let{queryString:n=!1,groupId:t}=e;const r=(0,a.W6)(),i=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,l.aZ)(i),(0,s.useCallback)((e=>{if(!i)return;const n=new URLSearchParams(r.location.search);n.set(i,e),r.replace({...r.location,search:n.toString()})}),[i,r])]}function m(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,i=h(e),[a,l]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!p({value:n,tabValues:t}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=t.find((e=>e.default))??t[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:i}))),[c,d]=v({queryString:t,groupId:r}),[m,b]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,i]=(0,u.Dv)(t);return[r,(0,s.useCallback)((e=>{t&&i.set(e)}),[t,i])]}({groupId:r}),f=(()=>{const e=c??m;return p({value:e,tabValues:i})?e:null})();(0,o.A)((()=>{f&&l(f)}),[f]);return{selectedValue:a,selectValue:(0,s.useCallback)((e=>{if(!p({value:e,tabValues:i}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),b(e)}),[d,b,i]),tabValues:i}}var b=t(2303);const f={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=t(4848);function g(e){let{className:n,block:t,selectedValue:s,selectValue:a,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,i.a_)(),u=e=>{const n=e.currentTarget,t=l.indexOf(n),r=o[t].value;r!==s&&(c(n),a(r))},d=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const t=l.indexOf(e.currentTarget)+1;n=l[t]??l[0];break}case"ArrowLeft":{const t=l.indexOf(e.currentTarget)-1;n=l[t]??l[l.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":t},n),children:o.map((e=>{let{value:n,label:t,attributes:i}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>l.push(e),onKeyDown:d,onClick:u,...i,className:(0,r.A)("tabs__item",f.tabItem,i?.className,{"tabs__item--active":s===n}),children:t??n},n)}))})}function j(e){let{lazy:n,children:t,selectedValue:i}=e;const a=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=a.find((e=>e.props.value===i));return e?(0,s.cloneElement)(e,{className:(0,r.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:a.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==i})))})}function w(e){const n=m(e);return(0,x.jsxs)("div",{className:(0,r.A)("tabs-container",f.tabList),children:[(0,x.jsx)(g,{...n,...e}),(0,x.jsx)(j,{...n,...e})]})}function y(e){const n=(0,b.A)();return(0,x.jsx)(w,{...e,children:d(e.children)},String(n))}},8453:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>o});var s=t(6540);const r={},i=s.createContext(r);function a(e){const n=s.useContext(i);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),s.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/842a7beb.3c1f9079.js b/assets/js/842a7beb.3c1f9079.js deleted file mode 100644 index 8dcc4058f..000000000 --- a/assets/js/842a7beb.3c1f9079.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6866],{7216:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>s,default:()=>u,frontMatter:()=>r,metadata:()=>a,toc:()=>d});var n=i(4848),o=i(8453);const r={title:"rAV1ator",sidebar_position:5},s="rAV1ator",a={id:"utilities/rAV1ator",title:"rAV1ator",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/utilities/rAV1ator.mdx",sourceDirName:"utilities",slug:"/utilities/rAV1ator",permalink:"/docs/utilities/rAV1ator",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/rAV1ator.mdx",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"rAV1ator",sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"MKVToolNix",permalink:"/docs/utilities/MKVToolNix"},next:{title:"rav1ator-cli",permalink:"/docs/utilities/rav1ator-cli"}},c={},d=[];function l(e){const t={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",header:"header",p:"p",pre:"pre",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"rav1ator",children:"rAV1ator"})}),"\n",(0,n.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,n.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,n.jsxs)(t.p,{children:["rAV1ator is a fork of ",(0,n.jsx)(t.a,{href:"/docs/utilities/Aviator",children:"Aviator"})," designed to use ",(0,n.jsx)(t.a,{href:"/docs/utilities/av1an",children:"Av1an"})," & ",(0,n.jsx)(t.a,{href:"/docs/encoders/rav1e",children:"rav1e"})," instead of ",(0,n.jsx)(t.a,{href:"/docs/encoders/SVT-AV1",children:"SVT-AV1"}),". It is also distributed as a Flatpak with bundled dependencies outside of Flathub; running the following command will allow you to install it:"]}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"flatpak --user remote-add --no-gpg-verify project-volo https://giannirosato.com/repo && flatpak --user install project-volo net.natesales.rAV1ator\n"})}),"\n",(0,n.jsxs)(t.p,{children:["Initially, Aviator was supposed to switch to using the Av1an + rav1e backend that currently serves rAV1ator, but the decision was made to split the two projects due to their fundamentally different goals & Flathub's trouble with Rust dependencies. Aviator is designed to allow easy, painless AV1 encoding, while rAV1ator is designed to make accessing ",(0,n.jsx)(t.em,{children:"specifically"})," Av1an & rav1e easier for interested codec enthusiasts. rAV1ator is maintained by Gianni Rosato & Trix."]})]})}function u(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>a});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/842a7beb.f5e11ae0.js b/assets/js/842a7beb.f5e11ae0.js new file mode 100644 index 000000000..0ebbdd8dc --- /dev/null +++ b/assets/js/842a7beb.f5e11ae0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6866],{7247:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>s,metadata:()=>n,toc:()=>l});const n=JSON.parse('{"id":"utilities/rAV1ator","title":"rAV1ator","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/utilities/rAV1ator.mdx","sourceDirName":"utilities","slug":"/utilities/rAV1ator","permalink":"/docs/utilities/rAV1ator","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/rAV1ator.mdx","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"title":"rAV1ator","sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"MKVToolNix","permalink":"/docs/utilities/MKVToolNix"},"next":{"title":"rav1ator-cli","permalink":"/docs/utilities/rav1ator-cli"}}');var o=i(4848),r=i(8453);const s={title:"rAV1ator",sidebar_position:5},a="rAV1ator",c={},l=[];function d(e){const t={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",header:"header",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"rav1ator",children:"rAV1ator"})}),"\n",(0,o.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,o.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,o.jsxs)(t.p,{children:["rAV1ator is a fork of ",(0,o.jsx)(t.a,{href:"/docs/utilities/Aviator",children:"Aviator"})," designed to use ",(0,o.jsx)(t.a,{href:"/docs/utilities/av1an",children:"Av1an"})," & ",(0,o.jsx)(t.a,{href:"/docs/encoders/rav1e",children:"rav1e"})," instead of ",(0,o.jsx)(t.a,{href:"/docs/encoders/SVT-AV1",children:"SVT-AV1"}),". It is also distributed as a Flatpak with bundled dependencies outside of Flathub; running the following command will allow you to install it:"]}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-bash",children:"flatpak --user remote-add --no-gpg-verify project-volo https://giannirosato.com/repo && flatpak --user install project-volo net.natesales.rAV1ator\n"})}),"\n",(0,o.jsxs)(t.p,{children:["Initially, Aviator was supposed to switch to using the Av1an + rav1e backend that currently serves rAV1ator, but the decision was made to split the two projects due to their fundamentally different goals & Flathub's trouble with Rust dependencies. Aviator is designed to allow easy, painless AV1 encoding, while rAV1ator is designed to make accessing ",(0,o.jsx)(t.em,{children:"specifically"})," Av1an & rav1e easier for interested codec enthusiasts. rAV1ator is maintained by Gianni Rosato & Trix."]})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>a});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/84e198a2.18879c5b.js b/assets/js/84e198a2.18879c5b.js new file mode 100644 index 000000000..e60c01f2b --- /dev/null +++ b/assets/js/84e198a2.18879c5b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6711],{8671:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>d,contentTitle:()=>l,default:()=>u,frontMatter:()=>s,metadata:()=>n,toc:()=>r});const n=JSON.parse('{"id":"utilities/eac3to","title":"eac3to","description":"eac3to is a command line tool written by madshi to mostly work with audios (conversion) and raw, unencrypted Blu-rays (BDMV).","source":"@site/docs/utilities/eac3to.mdx","sourceDirName":"utilities","slug":"/utilities/eac3to","permalink":"/docs/utilities/eac3to","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/eac3to.mdx","tags":[],"version":"current","sidebarPosition":10,"frontMatter":{"title":"eac3to","sidebar_position":10},"sidebar":"tutorialSidebar","previous":{"title":"dovi_tool","permalink":"/docs/utilities/dovi_tool"},"next":{"title":"hdr10plus_tool","permalink":"/docs/utilities/hdr10plus_tool"}}');var o=t(4848),a=t(8453);const s={title:"eac3to",sidebar_position:10},l="eac3to",d={},r=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Audio conversion",id:"audio-conversion",level:3},{value:"Get BDMV info",id:"get-bdmv-info",level:3},{value:"Demux",id:"demux",level:3},{value:"Delay audio",id:"delay-audio",level:3}];function c(e){const i={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,a.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.header,{children:(0,o.jsx)(i.h1,{id:"eac3to",children:"eac3to"})}),"\n",(0,o.jsx)(i.p,{children:"eac3to is a command line tool written by madshi to mostly work with audios (conversion) and raw, unencrypted Blu-rays (BDMV)."}),"\n",(0,o.jsx)(i.admonition,{title:"Compatibility",type:"info",children:(0,o.jsx)(i.p,{children:"This is a Windows only software, although usage with Wine is possible."})}),"\n",(0,o.jsx)(i.admonition,{title:"Avoid using when possible",type:"caution",children:(0,o.jsxs)(i.p,{children:["There is absolutely no reason whatsoever to use this software unless required by paleolithic ",(0,o.jsx)(i.a,{href:"https://wiki.installgentoo.com/wiki/Private_trackers",children:"private trackers"}),", due to a bajillion dependencies needed that aren't bundled with the download itself. Use something like FFmpeg instead."]})}),"\n",(0,o.jsx)(i.h2,{id:"installation",children:"Installation"}),"\n",(0,o.jsxs)(i.ul,{children:["\n",(0,o.jsxs)(i.li,{children:["Download from ",(0,o.jsx)(i.a,{href:"https://www.videohelp.com/software/eac3to",children:"VideoHelp"}),", drag and drop into your designated folder, add to PATH when necessary."]}),"\n"]}),"\n",(0,o.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,o.jsx)(i.h3,{id:"audio-conversion",children:"Audio conversion"}),"\n",(0,o.jsx)(i.p,{children:"Examples:"}),"\n",(0,o.jsx)(i.pre,{children:(0,o.jsx)(i.code,{className:"language-bash",metastring:'title="Convert PCM audio to FLAC"',children:"eac3to source.pcm destination.flac\n"})}),"\n",(0,o.jsx)(i.pre,{children:(0,o.jsx)(i.code,{className:"language-bash",metastring:'title="Convert TrueHD to FLAC while also extracting the AC-3 compatibility layer"',children:"eac3to source.thd destination.flac destination.ac3\n"})}),"\n",(0,o.jsx)(i.h3,{id:"get-bdmv-info",children:"Get BDMV info"}),"\n",(0,o.jsx)(i.pre,{children:(0,o.jsx)(i.code,{className:"language-bash",children:"eac3to Movie.2024.Bluray/BDMV\n"})}),"\n",(0,o.jsx)(i.h3,{id:"demux",children:"Demux"}),"\n",(0,o.jsx)(i.pre,{children:(0,o.jsx)(i.code,{className:"language-bash",children:"eac3to Movie.2024.Bluray/BDMV -demux\n"})}),"\n",(0,o.jsx)(i.h3,{id:"delay-audio",children:"Delay audio"}),"\n",(0,o.jsx)(i.pre,{children:(0,o.jsx)(i.code,{className:"language-bash",children:"eac3to input.eac3 output.eac3 1000ms\n"})})]})}function u(e={}){const{wrapper:i}={...(0,a.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(c,{...e})}):c(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>s,x:()=>l});var n=t(6540);const o={},a=n.createContext(o);function s(e){const i=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function l(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(a.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/84e198a2.91ffddfe.js b/assets/js/84e198a2.91ffddfe.js deleted file mode 100644 index ac5ced2cb..000000000 --- a/assets/js/84e198a2.91ffddfe.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6711],{2955:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>d,contentTitle:()=>s,default:()=>u,frontMatter:()=>a,metadata:()=>l,toc:()=>r});var n=t(4848),o=t(8453);const a={title:"eac3to",sidebar_position:10},s="eac3to",l={id:"utilities/eac3to",title:"eac3to",description:"eac3to is a command line tool written by madshi to mostly work with audios (conversion) and raw, unencrypted Blu-rays (BDMV).",source:"@site/docs/utilities/eac3to.mdx",sourceDirName:"utilities",slug:"/utilities/eac3to",permalink:"/docs/utilities/eac3to",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/eac3to.mdx",tags:[],version:"current",sidebarPosition:10,frontMatter:{title:"eac3to",sidebar_position:10},sidebar:"tutorialSidebar",previous:{title:"dovi_tool",permalink:"/docs/utilities/dovi_tool"},next:{title:"hdr10plus_tool",permalink:"/docs/utilities/hdr10plus_tool"}},d={},r=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Audio conversion",id:"audio-conversion",level:3},{value:"Get BDMV info",id:"get-bdmv-info",level:3},{value:"Demux",id:"demux",level:3},{value:"Delay audio",id:"delay-audio",level:3}];function c(e){const i={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"eac3to",children:"eac3to"})}),"\n",(0,n.jsx)(i.p,{children:"eac3to is a command line tool written by madshi to mostly work with audios (conversion) and raw, unencrypted Blu-rays (BDMV)."}),"\n",(0,n.jsx)(i.admonition,{title:"Compatibility",type:"info",children:(0,n.jsx)(i.p,{children:"This is a Windows only software, although usage with Wine is possible."})}),"\n",(0,n.jsx)(i.admonition,{title:"Avoid using when possible",type:"caution",children:(0,n.jsxs)(i.p,{children:["There is absolutely no reason whatsoever to use this software unless required by paleolithic ",(0,n.jsx)(i.a,{href:"https://wiki.installgentoo.com/wiki/Private_trackers",children:"private trackers"}),", due to a bajillion dependencies needed that aren't bundled with the download itself. Use something like FFmpeg instead."]})}),"\n",(0,n.jsx)(i.h2,{id:"installation",children:"Installation"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:["Download from ",(0,n.jsx)(i.a,{href:"https://www.videohelp.com/software/eac3to",children:"VideoHelp"}),", drag and drop into your designated folder, add to PATH when necessary."]}),"\n"]}),"\n",(0,n.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsx)(i.h3,{id:"audio-conversion",children:"Audio conversion"}),"\n",(0,n.jsx)(i.p,{children:"Examples:"}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",metastring:'title="Convert PCM audio to FLAC"',children:"eac3to source.pcm destination.flac\n"})}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",metastring:'title="Convert TrueHD to FLAC while also extracting the AC-3 compatibility layer"',children:"eac3to source.thd destination.flac destination.ac3\n"})}),"\n",(0,n.jsx)(i.h3,{id:"get-bdmv-info",children:"Get BDMV info"}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",children:"eac3to Movie.2024.Bluray/BDMV\n"})}),"\n",(0,n.jsx)(i.h3,{id:"demux",children:"Demux"}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",children:"eac3to Movie.2024.Bluray/BDMV -demux\n"})}),"\n",(0,n.jsx)(i.h3,{id:"delay-audio",children:"Delay audio"}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",children:"eac3to input.eac3 output.eac3 1000ms\n"})})]})}function u(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(c,{...e})}):c(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>s,x:()=>l});var n=t(6540);const o={},a=n.createContext(o);function s(e){const i=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function l(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(a.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/86ba2311.85a01566.js b/assets/js/86ba2311.85a01566.js new file mode 100644 index 000000000..dee59c47a --- /dev/null +++ b/assets/js/86ba2311.85a01566.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8141],{4288:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>d,contentTitle:()=>c,default:()=>l,frontMatter:()=>r,metadata:()=>i,toc:()=>a});const i=JSON.parse('{"id":"video/VP9","title":"VP9","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/video/VP9.mdx","sourceDirName":"video","slug":"/video/VP9","permalink":"/docs/video/VP9","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/VP9.mdx","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"title":"VP9","sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"VP8","permalink":"/docs/video/VP8"},"next":{"title":"AV1","permalink":"/docs/video/AV1"}}');var n=o(4848),s=o(8453);const r={title:"VP9",sidebar_position:5},c="VP9",d={},a=[];function u(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"vp9",children:"VP9"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(t.p,{children:["VP9, famous for being YouTube's codec of choice for many years, is a royalty free video compression format that competes with ",(0,n.jsx)(t.a,{href:"/docs/video/HEVC",children:"HEVC"})," and ",(0,n.jsx)(t.a,{href:"/docs/video/AVC",children:"AVC"}),". It is slightly less efficient than HEVC in terms of visual quality, but VP9 is a computationally much simpler codec and therefore is very easy on system resources when decoding. If you're interested in VP9 encoding, please see the ",(0,n.jsx)(t.a,{href:"/docs/encoders/vpxenc",children:"vpxenc"})," or ",(0,n.jsx)(t.a,{href:"/docs/encoders/SVT-VP9",children:"SVT-VP9"})," sections."]})]})}function l(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>r,x:()=>c});var i=o(6540);const n={},s=i.createContext(n);function r(e){const t=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),i.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/86ba2311.bdcf75f1.js b/assets/js/86ba2311.bdcf75f1.js deleted file mode 100644 index a5cc9ddd4..000000000 --- a/assets/js/86ba2311.bdcf75f1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8141],{4632:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>d,contentTitle:()=>r,default:()=>l,frontMatter:()=>s,metadata:()=>c,toc:()=>a});var i=o(4848),n=o(8453);const s={title:"VP9",sidebar_position:5},r="VP9",c={id:"video/VP9",title:"VP9",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/video/VP9.mdx",sourceDirName:"video",slug:"/video/VP9",permalink:"/docs/video/VP9",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/VP9.mdx",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"VP9",sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"VP8",permalink:"/docs/video/VP8"},next:{title:"AV1",permalink:"/docs/video/AV1"}},d={},a=[];function u(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"vp9",children:"VP9"})}),"\n",(0,i.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,i.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,i.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,i.jsxs)(t.p,{children:["VP9, famous for being YouTube's codec of choice for many years, is a royalty free video compression format that competes with ",(0,i.jsx)(t.a,{href:"/docs/video/HEVC",children:"HEVC"})," and ",(0,i.jsx)(t.a,{href:"/docs/video/AVC",children:"AVC"}),". It is slightly less efficient than HEVC in terms of visual quality, but VP9 is a computationally much simpler codec and therefore is very easy on system resources when decoding. If you're interested in VP9 encoding, please see the ",(0,i.jsx)(t.a,{href:"/docs/encoders/vpxenc",children:"vpxenc"})," or ",(0,i.jsx)(t.a,{href:"/docs/encoders/SVT-VP9",children:"SVT-VP9"})," sections."]})]})}function l(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>r,x:()=>c});var i=o(6540);const n={},s=i.createContext(n);function r(e){const t=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),i.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8793.6c976fe1.js b/assets/js/8793.6c976fe1.js deleted file mode 100644 index 80e7450aa..000000000 --- a/assets/js/8793.6c976fe1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8793],{4096:(e,t,a)=>{a.d(t,{in:()=>c,OU:()=>y,Ki:()=>k,kJ:()=>p,x:()=>i,e7:()=>m,J_:()=>f,Gx:()=>_});var n=a(6540),s=a(9532),r=a(6803),l=a(4848);function i(){const e=(0,r.A)(),t=e?.data?.blogMetadata;if(!t)throw new Error("useBlogMetadata() can't be called on the current route because the blog metadata could not be found in route context");return t}const o=n.createContext(null);function c(e){let{children:t,content:a,isBlogPostPage:s=!1}=e;const r=function(e){let{content:t,isBlogPostPage:a}=e;return(0,n.useMemo)((()=>({metadata:t.metadata,frontMatter:t.frontMatter,assets:t.assets,toc:t.toc,isBlogPostPage:a})),[t,a])}({content:a,isBlogPostPage:s});return(0,l.jsx)(o.Provider,{value:r,children:t})}function m(){const e=(0,n.useContext)(o);if(null===e)throw new s.dV("BlogPostProvider");return e}var u=a(6025),d=a(4586);const h=e=>new Date(e).toISOString();function g(e){const t=e.map(j);return{author:1===t.length?t[0]:t}}function x(e,t,a){return e?{image:v({imageUrl:t(e,{absolute:!0}),caption:`title image for the blog post: ${a}`})}:{}}function p(e){const{siteConfig:t}=(0,d.A)(),{withBaseUrl:a}=(0,u.hH)(),{metadata:{blogDescription:n,blogTitle:s,permalink:r}}=e,l=`${t.url}${r}`;return{"@context":"https://schema.org","@type":"Blog","@id":l,mainEntityOfPage:l,headline:s,description:n,blogPost:e.items.map((e=>function(e,t,a){const{assets:n,frontMatter:s,metadata:r}=e,{date:l,title:i,description:o,lastUpdatedAt:c}=r,m=n.image??s.image,u=s.keywords??[],d=`${t.url}${r.permalink}`,p=c?h(c):void 0;return{"@type":"BlogPosting","@id":d,mainEntityOfPage:d,url:d,headline:i,name:i,description:o,datePublished:l,...p?{dateModified:p}:{},...g(r.authors),...x(m,a,i),...u?{keywords:u}:{}}}(e.content,t,a)))}}function f(){const e=i(),{assets:t,metadata:a}=m(),{siteConfig:n}=(0,d.A)(),{withBaseUrl:s}=(0,u.hH)(),{date:r,title:l,description:o,frontMatter:c,lastUpdatedAt:p}=a,f=t.image??c.image,j=c.keywords??[],v=p?h(p):void 0,b=`${n.url}${a.permalink}`;return{"@context":"https://schema.org","@type":"BlogPosting","@id":b,mainEntityOfPage:b,url:b,headline:l,name:l,description:o,datePublished:r,...v?{dateModified:v}:{},...g(a.authors),...x(f,s,l),...j?{keywords:j}:{},isPartOf:{"@type":"Blog","@id":`${n.url}${e.blogBasePath}`,name:e.blogTitle}}}function j(e){return{"@type":"Person",...e.name?{name:e.name}:{},...e.title?{description:e.title}:{},...e.url?{url:e.url}:{},...e.email?{email:e.email}:{},...e.imageURL?{image:e.imageURL}:{}}}function v(e){let{imageUrl:t,caption:a}=e;return{"@type":"ImageObject","@id":t,url:t,contentUrl:t,caption:a}}var b=a(6347),N=a(8774),w=a(1682),A=a(9169);function _(e){const{pathname:t}=(0,b.zy)();return(0,n.useMemo)((()=>e.filter((e=>function(e,t){return!(e.unlisted&&!(0,A.ys)(e.permalink,t))}(e,t)))),[e,t])}function k(e){const t=(0,w.$z)(e,(e=>`${new Date(e.date).getFullYear()}`)),a=Object.entries(t);return a.reverse(),a}function y(e){let{items:t,ulClassName:a,liClassName:n,linkClassName:s,linkActiveClassName:r}=e;return(0,l.jsx)("ul",{className:a,children:t.map((e=>(0,l.jsx)("li",{className:n,children:(0,l.jsx)(N.A,{isNavLink:!0,to:e.permalink,className:s,activeClassName:r,children:e.title})},e.permalink)))})}},8027:(e,t,a)=>{a.d(t,{A:()=>T});var n=a(6540),s=a(4164),r=a(263),l=a(4581),i=a(1312),o=a(4096),c=a(6342),m=a(1107),u=a(4848);function d(e){let{year:t,yearGroupHeadingClassName:a,children:n}=e;return(0,u.jsxs)("div",{role:"group",children:[(0,u.jsx)(m.A,{as:"h3",className:a,children:t}),n]})}function h(e){let{items:t,yearGroupHeadingClassName:a,ListComponent:n}=e;if((0,c.p)().blog.sidebar.groupByYear){const e=(0,o.Ki)(t);return(0,u.jsx)(u.Fragment,{children:e.map((e=>{let[t,s]=e;return(0,u.jsx)(d,{year:t,yearGroupHeadingClassName:a,children:(0,u.jsx)(n,{items:s})},t)}))})}return(0,u.jsx)(n,{items:t})}const g=(0,n.memo)(h),x="sidebar_re4s",p="sidebarItemTitle_pO2u",f="sidebarItemList_Yudw",j="sidebarItem__DBe",v="sidebarItemLink_mo7H",b="sidebarItemLinkActive_I1ZP",N="yearGroupHeading_rMGB",w=e=>{let{items:t}=e;return(0,u.jsx)(o.OU,{items:t,ulClassName:(0,s.A)(f,"clean-list"),liClassName:j,linkClassName:v,linkActiveClassName:b})};function A(e){let{sidebar:t}=e;const a=(0,o.Gx)(t.items);return(0,u.jsx)("aside",{className:"col col--3",children:(0,u.jsxs)("nav",{className:(0,s.A)(x,"thin-scrollbar"),"aria-label":(0,i.T)({id:"theme.blog.sidebar.navAriaLabel",message:"Blog recent posts navigation",description:"The ARIA label for recent posts in the blog sidebar"}),children:[(0,u.jsx)("div",{className:(0,s.A)(p,"margin-bottom--md"),children:t.title}),(0,u.jsx)(g,{items:a,ListComponent:w,yearGroupHeadingClassName:N})]})})}const _=(0,n.memo)(A);var k=a(5600);const y={yearGroupHeading:"yearGroupHeading_QT03"},C=e=>{let{items:t}=e;return(0,u.jsx)(o.OU,{items:t,ulClassName:"menu__list",liClassName:"menu__list-item",linkClassName:"menu__link",linkActiveClassName:"menu__link--active"})};function M(e){let{sidebar:t}=e;const a=(0,o.Gx)(t.items);return(0,u.jsx)(g,{items:a,ListComponent:C,yearGroupHeadingClassName:y.yearGroupHeading})}function P(e){return(0,u.jsx)(k.GX,{component:M,props:e})}const B=(0,n.memo)(P);function L(e){let{sidebar:t}=e;const a=(0,l.l)();return t?.items.length?"mobile"===a?(0,u.jsx)(B,{sidebar:t}):(0,u.jsx)(_,{sidebar:t}):null}function T(e){const{sidebar:t,toc:a,children:n,...l}=e,i=t&&t.items.length>0;return(0,u.jsx)(r.A,{...l,children:(0,u.jsx)("div",{className:"container margin-vert--lg",children:(0,u.jsxs)("div",{className:"row",children:[(0,u.jsx)(L,{sidebar:t}),(0,u.jsx)("main",{className:(0,s.A)("col",{"col--7":i,"col--9 col--offset-1":!i}),children:n}),a&&(0,u.jsx)("div",{className:"col col--2",children:a})]})})})}},1240:(e,t,a)=>{a.d(t,{A:()=>z});a(6540);var n=a(4164),s=a(4096),r=a(4848);function l(e){let{children:t,className:a}=e;return(0,r.jsx)("article",{className:a,children:t})}var i=a(8774);const o={title:"title_f1Hy"};function c(e){let{className:t}=e;const{metadata:a,isBlogPostPage:l}=(0,s.e7)(),{permalink:c,title:m}=a,u=l?"h1":"h2";return(0,r.jsx)(u,{className:(0,n.A)(o.title,t),children:l?m:(0,r.jsx)(i.A,{to:c,children:m})})}var m=a(1312),u=a(5846),d=a(6266);const h={container:"container_mt6G"};function g(e){let{readingTime:t}=e;const a=function(){const{selectMessage:e}=(0,u.W)();return t=>{const a=Math.ceil(t);return e(a,(0,m.T)({id:"theme.blog.post.readingTime.plurals",description:'Pluralized label for "{readingTime} min read". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)',message:"One min read|{readingTime} min read"},{readingTime:a}))}}();return(0,r.jsx)(r.Fragment,{children:a(t)})}function x(e){let{date:t,formattedDate:a}=e;return(0,r.jsx)("time",{dateTime:t,children:a})}function p(){return(0,r.jsx)(r.Fragment,{children:" \xb7 "})}function f(e){let{className:t}=e;const{metadata:a}=(0,s.e7)(),{date:l,readingTime:i}=a,o=(0,d.i)({day:"numeric",month:"long",year:"numeric",timeZone:"UTC"});return(0,r.jsxs)("div",{className:(0,n.A)(h.container,"margin-vert--md",t),children:[(0,r.jsx)(x,{date:l,formattedDate:(c=l,o.format(new Date(c)))}),void 0!==i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p,{}),(0,r.jsx)(g,{readingTime:i})]})]});var c}const j="githubSvg_Uu4N";const v="xSvg_y3PF";const b=function(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,r.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,r.jsx)("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),(0,r.jsx)("path",{d:"M3.6 9h16.8"}),(0,r.jsx)("path",{d:"M3.6 15h16.8"}),(0,r.jsx)("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),(0,r.jsx)("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]})},N={authorSocials:"authorSocials_rSDt",authorSocialLink:"authorSocialLink_owbf",authorSocialIcon:"authorSocialIcon_XYv3"},w={twitter:{Icon:function(e){return(0,r.jsx)("svg",{viewBox:"0 0 256 209",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",...e,children:(0,r.jsx)("path",{d:"M256 25.45c-9.42 4.177-19.542 7-30.166 8.27 10.845-6.5 19.172-16.793 23.093-29.057a105.183 105.183 0 0 1-33.351 12.745C205.995 7.201 192.346.822 177.239.822c-29.006 0-52.523 23.516-52.523 52.52 0 4.117.465 8.125 1.36 11.97-43.65-2.191-82.35-23.1-108.255-54.876-4.52 7.757-7.11 16.78-7.11 26.404 0 18.222 9.273 34.297 23.365 43.716a52.312 52.312 0 0 1-23.79-6.57c-.003.22-.003.44-.003.661 0 25.447 18.104 46.675 42.13 51.5a52.592 52.592 0 0 1-23.718.9c6.683 20.866 26.08 36.05 49.062 36.475-17.975 14.086-40.622 22.483-65.228 22.483-4.24 0-8.42-.249-12.529-.734 23.243 14.902 50.85 23.597 80.51 23.597 96.607 0 149.434-80.031 149.434-149.435 0-2.278-.05-4.543-.152-6.795A106.748 106.748 0 0 0 256 25.45",fill:"#55acee"})})},label:"Twitter"},github:{Icon:function(e){return(0,r.jsx)("svg",{viewBox:"0 0 256 250",width:"1em",height:"1em",...e,className:(0,n.A)(e.className,j),xmlns:"http://www.w3.org/2000/svg",style:{"--dark":"#000","--light":"#fff"},preserveAspectRatio:"xMidYMid",children:(0,r.jsx)("path",{d:"M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46 6.397 1.185 8.746-2.777 8.746-6.158 0-3.052-.12-13.135-.174-23.83-35.61 7.742-43.124-15.103-43.124-15.103-5.823-14.795-14.213-18.73-14.213-18.73-11.613-7.944.876-7.78.876-7.78 12.853.902 19.621 13.19 19.621 13.19 11.417 19.568 29.945 13.911 37.249 10.64 1.149-8.272 4.466-13.92 8.127-17.116-28.431-3.236-58.318-14.212-58.318-63.258 0-13.975 5-25.394 13.188-34.358-1.329-3.224-5.71-16.242 1.24-33.874 0 0 10.749-3.44 35.21 13.121 10.21-2.836 21.16-4.258 32.038-4.307 10.878.049 21.837 1.47 32.066 4.307 24.431-16.56 35.165-13.12 35.165-13.12 6.967 17.63 2.584 30.65 1.255 33.873 8.207 8.964 13.173 20.383 13.173 34.358 0 49.163-29.944 59.988-58.447 63.157 4.591 3.972 8.682 11.762 8.682 23.704 0 17.126-.148 30.91-.148 35.126 0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002 256 57.307 198.691 0 128.001 0Zm-80.06 182.34c-.282.636-1.283.827-2.194.39-.929-.417-1.45-1.284-1.15-1.922.276-.655 1.279-.838 2.205-.399.93.418 1.46 1.293 1.139 1.931Zm6.296 5.618c-.61.566-1.804.303-2.614-.591-.837-.892-.994-2.086-.375-2.66.63-.566 1.787-.301 2.626.591.838.903 1 2.088.363 2.66Zm4.32 7.188c-.785.545-2.067.034-2.86-1.104-.784-1.138-.784-2.503.017-3.05.795-.547 2.058-.055 2.861 1.075.782 1.157.782 2.522-.019 3.08Zm7.304 8.325c-.701.774-2.196.566-3.29-.49-1.119-1.032-1.43-2.496-.726-3.27.71-.776 2.213-.558 3.315.49 1.11 1.03 1.45 2.505.701 3.27Zm9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033-1.448-.439-2.395-1.613-2.103-2.626.301-1.01 1.747-1.484 3.207-1.028 1.446.436 2.396 1.602 2.095 2.622Zm10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95-1.53.034-2.769-.82-2.786-1.86 0-1.065 1.202-1.932 2.733-1.958 1.522-.03 2.768.818 2.768 1.868Zm10.555-.405c.182 1.03-.875 2.088-2.387 2.37-1.485.271-2.861-.365-3.05-1.386-.184-1.056.893-2.114 2.376-2.387 1.514-.263 2.868.356 3.061 1.403Z"})})},label:"GitHub"},stackoverflow:{Icon:function(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 169.61 200",width:"1em",height:"1em",...e,children:[(0,r.jsx)("path",{d:"M140.44 178.38v-48.65h21.61V200H0v-70.27h21.61v48.65z",fill:"#bcbbbb"}),(0,r.jsx)("path",{d:"M124.24 140.54l4.32-16.22-86.97-17.83-3.78 17.83zM49.7 82.16L130.72 120l7.56-16.22-81.02-37.83zm22.68-40l68.06 57.3 11.35-13.51-68.6-57.3-11.35 13.51zM116.14 0l-14.59 10.81 53.48 71.89 14.58-10.81zM37.81 162.16h86.43v-16.21H37.81z",fill:"#f48024"})]})},label:"Stack Overflow"},linkedin:{Icon:function(e){return(0,r.jsx)("svg",{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 256",...e,children:(0,r.jsx)("path",{d:"M218.123 218.127h-37.931v-59.403c0-14.165-.253-32.4-19.728-32.4-19.756 0-22.779 15.434-22.779 31.369v60.43h-37.93V95.967h36.413v16.694h.51a39.907 39.907 0 0 1 35.928-19.733c38.445 0 45.533 25.288 45.533 58.186l-.016 67.013ZM56.955 79.27c-12.157.002-22.014-9.852-22.016-22.009-.002-12.157 9.851-22.014 22.008-22.016 12.157-.003 22.014 9.851 22.016 22.008A22.013 22.013 0 0 1 56.955 79.27m18.966 138.858H37.95V95.967h37.97v122.16ZM237.033.018H18.89C8.58-.098.125 8.161-.001 18.471v219.053c.122 10.315 8.576 18.582 18.89 18.474h218.144c10.336.128 18.823-8.139 18.966-18.474V18.454c-.147-10.33-8.635-18.588-18.966-18.453",fill:"#0A66C2"})})},label:"LinkedIn"},x:{Icon:function(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 1200 1227",...e,className:(0,n.A)(e.className,v),style:{"--dark":"#000","--light":"#fff"},children:(0,r.jsx)("path",{d:"M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z"})})},label:"X"}};function A(e){let{platform:t,link:a}=e;const{Icon:s,label:l}=w[o=t]??{Icon:b,label:o};var o;return(0,r.jsx)(i.A,{className:N.authorSocialLink,href:a,title:l,children:(0,r.jsx)(s,{className:(0,n.A)(N.authorSocialLink)})})}function _(e){let{author:t}=e;const a=Object.entries(t.socials??{});return(0,r.jsx)("div",{className:N.authorSocials,children:a.map((e=>{let[t,a]=e;return(0,r.jsx)(A,{platform:t,link:a},t)}))})}var k=a(1107);const y={authorImage:"authorImage_XqGP","author-as-h1":"author-as-h1_n9oJ","author-as-h2":"author-as-h2_gXvM",authorDetails:"authorDetails_lV9A",authorName:"authorName_yefp",authorTitle:"authorTitle_nd0D",authorBlogPostCount:"authorBlogPostCount_iiJ5"};function C(e){return e.href?(0,r.jsx)(i.A,{...e}):(0,r.jsx)(r.Fragment,{children:e.children})}function M(e){let{title:t}=e;return(0,r.jsx)("small",{className:y.authorTitle,title:t,children:t})}function P(e){let{name:t,as:a}=e;return a?(0,r.jsx)(k.A,{as:a,className:y.authorName,children:t}):(0,r.jsx)("span",{className:y.authorName,children:t})}function B(e){let{count:t}=e;return(0,r.jsx)("span",{className:(0,n.A)(y.authorBlogPostCount),children:t})}function L(e){let{as:t,author:a,className:s,count:l}=e;const{name:i,title:o,url:c,imageURL:m,email:u,page:d}=a,h=d?.permalink||c||u&&`mailto:${u}`||void 0;return(0,r.jsxs)("div",{className:(0,n.A)("avatar margin-bottom--sm",s,y[`author-as-${t}`]),children:[m&&(0,r.jsx)(C,{href:h,className:"avatar__photo-link",children:(0,r.jsx)("img",{className:(0,n.A)("avatar__photo",y.authorImage),src:m,alt:i})}),(i||o)&&(0,r.jsxs)("div",{className:(0,n.A)("avatar__intro",y.authorDetails),children:[(0,r.jsxs)("div",{className:"avatar__name",children:[i&&(0,r.jsx)(C,{href:h,children:(0,r.jsx)(P,{name:i,as:t})}),l&&(0,r.jsx)(B,{count:l})]}),!!o&&(0,r.jsx)(M,{title:o}),(0,r.jsx)(_,{author:a})]})]})}const T={authorCol:"authorCol_Hf19",imageOnlyAuthorRow:"imageOnlyAuthorRow_pa_O",imageOnlyAuthorCol:"imageOnlyAuthorCol_G86a"};function I(e){let{className:t}=e;const{metadata:{authors:a},assets:l}=(0,s.e7)();if(0===a.length)return null;const i=a.every((e=>{let{name:t}=e;return!t})),o=1===a.length;return(0,r.jsx)("div",{className:(0,n.A)("margin-top--md margin-bottom--sm",i?T.imageOnlyAuthorRow:"row",t),children:a.map(((e,t)=>(0,r.jsx)("div",{className:(0,n.A)(!i&&(o?"col col--12":"col col--6"),i?T.imageOnlyAuthorCol:T.authorCol),children:(0,r.jsx)(L,{author:{...e,imageURL:l.authorsImageUrls[t]??e.imageURL}})},t)))})}function U(){return(0,r.jsxs)("header",{children:[(0,r.jsx)(c,{}),(0,r.jsx)(f,{}),(0,r.jsx)(I,{})]})}var H=a(440),O=a(8509);function R(e){let{children:t,className:a}=e;const{isBlogPostPage:l}=(0,s.e7)();return(0,r.jsx)("div",{id:l?H.LU:void 0,className:(0,n.A)("markdown",a),children:(0,r.jsx)(O.A,{children:t})})}var G=a(7559),$=a(4336),F=a(2053);function S(){return(0,r.jsx)("b",{children:(0,r.jsx)(m.A,{id:"theme.blog.post.readMore",description:"The label used in blog post item excerpts to link to full blog posts",children:"Read more"})})}function Z(e){const{blogPostTitle:t,...a}=e;return(0,r.jsx)(i.A,{"aria-label":(0,m.T)({message:"Read more about {title}",id:"theme.blog.post.readMoreLabel",description:"The ARIA label for the link to full blog posts from excerpts"},{title:t}),...a,children:(0,r.jsx)(S,{})})}function D(){const{metadata:e,isBlogPostPage:t}=(0,s.e7)(),{tags:a,title:l,editUrl:i,hasTruncateMarker:o,lastUpdatedBy:c,lastUpdatedAt:m}=e,u=!t&&o,d=a.length>0;if(!(d||u||i))return null;if(t){const e=!!(i||m||c);return(0,r.jsxs)("footer",{className:"docusaurus-mt-lg",children:[d&&(0,r.jsx)("div",{className:(0,n.A)("row","margin-top--sm",G.G.blog.blogFooterEditMetaRow),children:(0,r.jsx)("div",{className:"col",children:(0,r.jsx)(F.A,{tags:a})})}),e&&(0,r.jsx)($.A,{className:(0,n.A)("margin-top--sm",G.G.blog.blogFooterEditMetaRow),editUrl:i,lastUpdatedAt:m,lastUpdatedBy:c})]})}return(0,r.jsxs)("footer",{className:"row docusaurus-mt-lg",children:[d&&(0,r.jsx)("div",{className:(0,n.A)("col",{"col--9":u}),children:(0,r.jsx)(F.A,{tags:a})}),u&&(0,r.jsx)("div",{className:(0,n.A)("col text--right",{"col--3":d}),children:(0,r.jsx)(Z,{blogPostTitle:l,to:e.permalink})})]})}function z(e){let{children:t,className:a}=e;const i=function(){const{isBlogPostPage:e}=(0,s.e7)();return e?void 0:"margin-bottom--xl"}();return(0,r.jsxs)(l,{className:(0,n.A)(i,a),children:[(0,r.jsx)(U,{}),(0,r.jsx)(R,{children:t}),(0,r.jsx)(D,{})]})}},9022:(e,t,a)=>{a.d(t,{A:()=>l});a(6540);var n=a(4164),s=a(8774),r=a(4848);function l(e){const{permalink:t,title:a,subLabel:l,isNext:i}=e;return(0,r.jsxs)(s.A,{className:(0,n.A)("pagination-nav__link",i?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[l&&(0,r.jsx)("div",{className:"pagination-nav__sublabel",children:l}),(0,r.jsx)("div",{className:"pagination-nav__label",children:a})]})}},6133:(e,t,a)=>{a.d(t,{A:()=>i});a(6540);var n=a(4164),s=a(8774);const r={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var l=a(4848);function i(e){let{permalink:t,label:a,count:i,description:o}=e;return(0,l.jsxs)(s.A,{href:t,title:o,className:(0,n.A)(r.tag,i?r.tagWithCount:r.tagRegular),children:[a,i&&(0,l.jsx)("span",{children:i})]})}},2053:(e,t,a)=>{a.d(t,{A:()=>o});a(6540);var n=a(4164),s=a(1312),r=a(6133);const l={tags:"tags_jXut",tag:"tag_QGVx"};var i=a(4848);function o(e){let{tags:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("b",{children:(0,i.jsx)(s.A,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,i.jsx)("ul",{className:(0,n.A)(l.tags,"padding--none","margin-left--sm"),children:t.map((e=>(0,i.jsx)("li",{className:l.tag,children:(0,i.jsx)(r.A,{...e})},e.permalink)))})]})}},5846:(e,t,a)=>{a.d(t,{W:()=>c});var n=a(6540),s=a(4586);const r=["zero","one","two","few","many","other"];function l(e){return r.filter((t=>e.includes(t)))}const i={locale:"en",pluralForms:l(["one","other"]),select:e=>1===e?"one":"other"};function o(){const{i18n:{currentLocale:e}}=(0,s.A)();return(0,n.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:l(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),i}}),[e])}function c(){const e=o();return{selectMessage:(t,a)=>function(e,t,a){const n=e.split("|");if(1===n.length)return n[0];n.length>a.pluralForms.length&&console.error(`For locale=${a.locale}, a maximum of ${a.pluralForms.length} plural forms are expected (${a.pluralForms.join(",")}), but the message contains ${n.length}: ${e}`);const s=a.select(t),r=a.pluralForms.indexOf(s);return n[Math.min(r,n.length-1)]}(a,t,e)}}}}]); \ No newline at end of file diff --git a/assets/js/8793.ddc5836a.js b/assets/js/8793.ddc5836a.js new file mode 100644 index 000000000..5e61b7fca --- /dev/null +++ b/assets/js/8793.ddc5836a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8793],{4096:(e,t,a)=>{a.d(t,{in:()=>c,OU:()=>y,Ki:()=>k,kJ:()=>p,x:()=>i,e7:()=>m,J_:()=>f,Gx:()=>_});var n=a(6540),s=a(9532),r=a(6803),l=a(4848);function i(){const e=(0,r.A)(),t=e?.data?.blogMetadata;if(!t)throw new Error("useBlogMetadata() can't be called on the current route because the blog metadata could not be found in route context");return t}const o=n.createContext(null);function c(e){let{children:t,content:a,isBlogPostPage:s=!1}=e;const r=function(e){let{content:t,isBlogPostPage:a}=e;return(0,n.useMemo)((()=>({metadata:t.metadata,frontMatter:t.frontMatter,assets:t.assets,toc:t.toc,isBlogPostPage:a})),[t,a])}({content:a,isBlogPostPage:s});return(0,l.jsx)(o.Provider,{value:r,children:t})}function m(){const e=(0,n.useContext)(o);if(null===e)throw new s.dV("BlogPostProvider");return e}var u=a(6025),d=a(4586);const h=e=>new Date(e).toISOString();function g(e){const t=e.map(j);return{author:1===t.length?t[0]:t}}function x(e,t,a){return e?{image:v({imageUrl:t(e,{absolute:!0}),caption:`title image for the blog post: ${a}`})}:{}}function p(e){const{siteConfig:t}=(0,d.A)(),{withBaseUrl:a}=(0,u.hH)(),{metadata:{blogDescription:n,blogTitle:s,permalink:r}}=e,l=`${t.url}${r}`;return{"@context":"https://schema.org","@type":"Blog","@id":l,mainEntityOfPage:l,headline:s,description:n,blogPost:e.items.map((e=>function(e,t,a){const{assets:n,frontMatter:s,metadata:r}=e,{date:l,title:i,description:o,lastUpdatedAt:c}=r,m=n.image??s.image,u=s.keywords??[],d=`${t.url}${r.permalink}`,p=c?h(c):void 0;return{"@type":"BlogPosting","@id":d,mainEntityOfPage:d,url:d,headline:i,name:i,description:o,datePublished:l,...p?{dateModified:p}:{},...g(r.authors),...x(m,a,i),...u?{keywords:u}:{}}}(e.content,t,a)))}}function f(){const e=i(),{assets:t,metadata:a}=m(),{siteConfig:n}=(0,d.A)(),{withBaseUrl:s}=(0,u.hH)(),{date:r,title:l,description:o,frontMatter:c,lastUpdatedAt:p}=a,f=t.image??c.image,j=c.keywords??[],v=p?h(p):void 0,b=`${n.url}${a.permalink}`;return{"@context":"https://schema.org","@type":"BlogPosting","@id":b,mainEntityOfPage:b,url:b,headline:l,name:l,description:o,datePublished:r,...v?{dateModified:v}:{},...g(a.authors),...x(f,s,l),...j?{keywords:j}:{},isPartOf:{"@type":"Blog","@id":`${n.url}${e.blogBasePath}`,name:e.blogTitle}}}function j(e){return{"@type":"Person",...e.name?{name:e.name}:{},...e.title?{description:e.title}:{},...e.url?{url:e.url}:{},...e.email?{email:e.email}:{},...e.imageURL?{image:e.imageURL}:{}}}function v(e){let{imageUrl:t,caption:a}=e;return{"@type":"ImageObject","@id":t,url:t,contentUrl:t,caption:a}}var b=a(6347),N=a(8774),w=a(1682),A=a(9169);function _(e){const{pathname:t}=(0,b.zy)();return(0,n.useMemo)((()=>e.filter((e=>function(e,t){return!(e.unlisted&&!(0,A.ys)(e.permalink,t))}(e,t)))),[e,t])}function k(e){const t=(0,w.$z)(e,(e=>`${new Date(e.date).getFullYear()}`)),a=Object.entries(t);return a.reverse(),a}function y(e){let{items:t,ulClassName:a,liClassName:n,linkClassName:s,linkActiveClassName:r}=e;return(0,l.jsx)("ul",{className:a,children:t.map((e=>(0,l.jsx)("li",{className:n,children:(0,l.jsx)(N.A,{isNavLink:!0,to:e.permalink,className:s,activeClassName:r,children:e.title})},e.permalink)))})}},8027:(e,t,a)=>{a.d(t,{A:()=>T});var n=a(6540),s=a(4164),r=a(7823),l=a(4581),i=a(1312),o=a(4096),c=a(6342),m=a(1107),u=a(4848);function d(e){let{year:t,yearGroupHeadingClassName:a,children:n}=e;return(0,u.jsxs)("div",{role:"group",children:[(0,u.jsx)(m.A,{as:"h3",className:a,children:t}),n]})}function h(e){let{items:t,yearGroupHeadingClassName:a,ListComponent:n}=e;if((0,c.p)().blog.sidebar.groupByYear){const e=(0,o.Ki)(t);return(0,u.jsx)(u.Fragment,{children:e.map((e=>{let[t,s]=e;return(0,u.jsx)(d,{year:t,yearGroupHeadingClassName:a,children:(0,u.jsx)(n,{items:s})},t)}))})}return(0,u.jsx)(n,{items:t})}const g=(0,n.memo)(h),x="sidebar_re4s",p="sidebarItemTitle_pO2u",f="sidebarItemList_Yudw",j="sidebarItem__DBe",v="sidebarItemLink_mo7H",b="sidebarItemLinkActive_I1ZP",N="yearGroupHeading_rMGB",w=e=>{let{items:t}=e;return(0,u.jsx)(o.OU,{items:t,ulClassName:(0,s.A)(f,"clean-list"),liClassName:j,linkClassName:v,linkActiveClassName:b})};function A(e){let{sidebar:t}=e;const a=(0,o.Gx)(t.items);return(0,u.jsx)("aside",{className:"col col--3",children:(0,u.jsxs)("nav",{className:(0,s.A)(x,"thin-scrollbar"),"aria-label":(0,i.T)({id:"theme.blog.sidebar.navAriaLabel",message:"Blog recent posts navigation",description:"The ARIA label for recent posts in the blog sidebar"}),children:[(0,u.jsx)("div",{className:(0,s.A)(p,"margin-bottom--md"),children:t.title}),(0,u.jsx)(g,{items:a,ListComponent:w,yearGroupHeadingClassName:N})]})})}const _=(0,n.memo)(A);var k=a(5600);const y={yearGroupHeading:"yearGroupHeading_QT03"},C=e=>{let{items:t}=e;return(0,u.jsx)(o.OU,{items:t,ulClassName:"menu__list",liClassName:"menu__list-item",linkClassName:"menu__link",linkActiveClassName:"menu__link--active"})};function M(e){let{sidebar:t}=e;const a=(0,o.Gx)(t.items);return(0,u.jsx)(g,{items:a,ListComponent:C,yearGroupHeadingClassName:y.yearGroupHeading})}function P(e){return(0,u.jsx)(k.GX,{component:M,props:e})}const B=(0,n.memo)(P);function L(e){let{sidebar:t}=e;const a=(0,l.l)();return t?.items.length?"mobile"===a?(0,u.jsx)(B,{sidebar:t}):(0,u.jsx)(_,{sidebar:t}):null}function T(e){const{sidebar:t,toc:a,children:n,...l}=e,i=t&&t.items.length>0;return(0,u.jsx)(r.A,{...l,children:(0,u.jsx)("div",{className:"container margin-vert--lg",children:(0,u.jsxs)("div",{className:"row",children:[(0,u.jsx)(L,{sidebar:t}),(0,u.jsx)("main",{className:(0,s.A)("col",{"col--7":i,"col--9 col--offset-1":!i}),children:n}),a&&(0,u.jsx)("div",{className:"col col--2",children:a})]})})})}},1240:(e,t,a)=>{a.d(t,{A:()=>z});a(6540);var n=a(4164),s=a(4096),r=a(4848);function l(e){let{children:t,className:a}=e;return(0,r.jsx)("article",{className:a,children:t})}var i=a(8774);const o={title:"title_f1Hy"};function c(e){let{className:t}=e;const{metadata:a,isBlogPostPage:l}=(0,s.e7)(),{permalink:c,title:m}=a,u=l?"h1":"h2";return(0,r.jsx)(u,{className:(0,n.A)(o.title,t),children:l?m:(0,r.jsx)(i.A,{to:c,children:m})})}var m=a(1312),u=a(5846),d=a(6266);const h={container:"container_mt6G"};function g(e){let{readingTime:t}=e;const a=function(){const{selectMessage:e}=(0,u.W)();return t=>{const a=Math.ceil(t);return e(a,(0,m.T)({id:"theme.blog.post.readingTime.plurals",description:'Pluralized label for "{readingTime} min read". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)',message:"One min read|{readingTime} min read"},{readingTime:a}))}}();return(0,r.jsx)(r.Fragment,{children:a(t)})}function x(e){let{date:t,formattedDate:a}=e;return(0,r.jsx)("time",{dateTime:t,children:a})}function p(){return(0,r.jsx)(r.Fragment,{children:" \xb7 "})}function f(e){let{className:t}=e;const{metadata:a}=(0,s.e7)(),{date:l,readingTime:i}=a,o=(0,d.i)({day:"numeric",month:"long",year:"numeric",timeZone:"UTC"});return(0,r.jsxs)("div",{className:(0,n.A)(h.container,"margin-vert--md",t),children:[(0,r.jsx)(x,{date:l,formattedDate:(c=l,o.format(new Date(c)))}),void 0!==i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p,{}),(0,r.jsx)(g,{readingTime:i})]})]});var c}const j="githubSvg_Uu4N";const v="xSvg_y3PF";const b=function(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,r.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,r.jsx)("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),(0,r.jsx)("path",{d:"M3.6 9h16.8"}),(0,r.jsx)("path",{d:"M3.6 15h16.8"}),(0,r.jsx)("path",{d:"M11.5 3a17 17 0 0 0 0 18"}),(0,r.jsx)("path",{d:"M12.5 3a17 17 0 0 1 0 18"})]})},N={authorSocials:"authorSocials_rSDt",authorSocialLink:"authorSocialLink_owbf",authorSocialIcon:"authorSocialIcon_XYv3"},w={twitter:{Icon:function(e){return(0,r.jsx)("svg",{viewBox:"0 0 256 209",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",...e,children:(0,r.jsx)("path",{d:"M256 25.45c-9.42 4.177-19.542 7-30.166 8.27 10.845-6.5 19.172-16.793 23.093-29.057a105.183 105.183 0 0 1-33.351 12.745C205.995 7.201 192.346.822 177.239.822c-29.006 0-52.523 23.516-52.523 52.52 0 4.117.465 8.125 1.36 11.97-43.65-2.191-82.35-23.1-108.255-54.876-4.52 7.757-7.11 16.78-7.11 26.404 0 18.222 9.273 34.297 23.365 43.716a52.312 52.312 0 0 1-23.79-6.57c-.003.22-.003.44-.003.661 0 25.447 18.104 46.675 42.13 51.5a52.592 52.592 0 0 1-23.718.9c6.683 20.866 26.08 36.05 49.062 36.475-17.975 14.086-40.622 22.483-65.228 22.483-4.24 0-8.42-.249-12.529-.734 23.243 14.902 50.85 23.597 80.51 23.597 96.607 0 149.434-80.031 149.434-149.435 0-2.278-.05-4.543-.152-6.795A106.748 106.748 0 0 0 256 25.45",fill:"#55acee"})})},label:"Twitter"},github:{Icon:function(e){return(0,r.jsx)("svg",{viewBox:"0 0 256 250",width:"1em",height:"1em",...e,className:(0,n.A)(e.className,j),xmlns:"http://www.w3.org/2000/svg",style:{"--dark":"#000","--light":"#fff"},preserveAspectRatio:"xMidYMid",children:(0,r.jsx)("path",{d:"M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46 6.397 1.185 8.746-2.777 8.746-6.158 0-3.052-.12-13.135-.174-23.83-35.61 7.742-43.124-15.103-43.124-15.103-5.823-14.795-14.213-18.73-14.213-18.73-11.613-7.944.876-7.78.876-7.78 12.853.902 19.621 13.19 19.621 13.19 11.417 19.568 29.945 13.911 37.249 10.64 1.149-8.272 4.466-13.92 8.127-17.116-28.431-3.236-58.318-14.212-58.318-63.258 0-13.975 5-25.394 13.188-34.358-1.329-3.224-5.71-16.242 1.24-33.874 0 0 10.749-3.44 35.21 13.121 10.21-2.836 21.16-4.258 32.038-4.307 10.878.049 21.837 1.47 32.066 4.307 24.431-16.56 35.165-13.12 35.165-13.12 6.967 17.63 2.584 30.65 1.255 33.873 8.207 8.964 13.173 20.383 13.173 34.358 0 49.163-29.944 59.988-58.447 63.157 4.591 3.972 8.682 11.762 8.682 23.704 0 17.126-.148 30.91-.148 35.126 0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002 256 57.307 198.691 0 128.001 0Zm-80.06 182.34c-.282.636-1.283.827-2.194.39-.929-.417-1.45-1.284-1.15-1.922.276-.655 1.279-.838 2.205-.399.93.418 1.46 1.293 1.139 1.931Zm6.296 5.618c-.61.566-1.804.303-2.614-.591-.837-.892-.994-2.086-.375-2.66.63-.566 1.787-.301 2.626.591.838.903 1 2.088.363 2.66Zm4.32 7.188c-.785.545-2.067.034-2.86-1.104-.784-1.138-.784-2.503.017-3.05.795-.547 2.058-.055 2.861 1.075.782 1.157.782 2.522-.019 3.08Zm7.304 8.325c-.701.774-2.196.566-3.29-.49-1.119-1.032-1.43-2.496-.726-3.27.71-.776 2.213-.558 3.315.49 1.11 1.03 1.45 2.505.701 3.27Zm9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033-1.448-.439-2.395-1.613-2.103-2.626.301-1.01 1.747-1.484 3.207-1.028 1.446.436 2.396 1.602 2.095 2.622Zm10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95-1.53.034-2.769-.82-2.786-1.86 0-1.065 1.202-1.932 2.733-1.958 1.522-.03 2.768.818 2.768 1.868Zm10.555-.405c.182 1.03-.875 2.088-2.387 2.37-1.485.271-2.861-.365-3.05-1.386-.184-1.056.893-2.114 2.376-2.387 1.514-.263 2.868.356 3.061 1.403Z"})})},label:"GitHub"},stackoverflow:{Icon:function(e){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 169.61 200",width:"1em",height:"1em",...e,children:[(0,r.jsx)("path",{d:"M140.44 178.38v-48.65h21.61V200H0v-70.27h21.61v48.65z",fill:"#bcbbbb"}),(0,r.jsx)("path",{d:"M124.24 140.54l4.32-16.22-86.97-17.83-3.78 17.83zM49.7 82.16L130.72 120l7.56-16.22-81.02-37.83zm22.68-40l68.06 57.3 11.35-13.51-68.6-57.3-11.35 13.51zM116.14 0l-14.59 10.81 53.48 71.89 14.58-10.81zM37.81 162.16h86.43v-16.21H37.81z",fill:"#f48024"})]})},label:"Stack Overflow"},linkedin:{Icon:function(e){return(0,r.jsx)("svg",{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 256",...e,children:(0,r.jsx)("path",{d:"M218.123 218.127h-37.931v-59.403c0-14.165-.253-32.4-19.728-32.4-19.756 0-22.779 15.434-22.779 31.369v60.43h-37.93V95.967h36.413v16.694h.51a39.907 39.907 0 0 1 35.928-19.733c38.445 0 45.533 25.288 45.533 58.186l-.016 67.013ZM56.955 79.27c-12.157.002-22.014-9.852-22.016-22.009-.002-12.157 9.851-22.014 22.008-22.016 12.157-.003 22.014 9.851 22.016 22.008A22.013 22.013 0 0 1 56.955 79.27m18.966 138.858H37.95V95.967h37.97v122.16ZM237.033.018H18.89C8.58-.098.125 8.161-.001 18.471v219.053c.122 10.315 8.576 18.582 18.89 18.474h218.144c10.336.128 18.823-8.139 18.966-18.474V18.454c-.147-10.33-8.635-18.588-18.966-18.453",fill:"#0A66C2"})})},label:"LinkedIn"},x:{Icon:function(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 1200 1227",...e,className:(0,n.A)(e.className,v),style:{"--dark":"#000","--light":"#fff"},children:(0,r.jsx)("path",{d:"M714.163 519.284 1160.89 0h-105.86L667.137 450.887 357.328 0H0l468.492 681.821L0 1226.37h105.866l409.625-476.152 327.181 476.152H1200L714.137 519.284h.026ZM569.165 687.828l-47.468-67.894-377.686-540.24h162.604l304.797 435.991 47.468 67.894 396.2 566.721H892.476L569.165 687.854v-.026Z"})})},label:"X"}};function A(e){let{platform:t,link:a}=e;const{Icon:s,label:l}=w[o=t]??{Icon:b,label:o};var o;return(0,r.jsx)(i.A,{className:N.authorSocialLink,href:a,title:l,children:(0,r.jsx)(s,{className:(0,n.A)(N.authorSocialLink)})})}function _(e){let{author:t}=e;const a=Object.entries(t.socials??{});return(0,r.jsx)("div",{className:N.authorSocials,children:a.map((e=>{let[t,a]=e;return(0,r.jsx)(A,{platform:t,link:a},t)}))})}var k=a(1107);const y={authorImage:"authorImage_XqGP","author-as-h1":"author-as-h1_n9oJ","author-as-h2":"author-as-h2_gXvM",authorDetails:"authorDetails_lV9A",authorName:"authorName_yefp",authorTitle:"authorTitle_nd0D",authorBlogPostCount:"authorBlogPostCount_iiJ5"};function C(e){return e.href?(0,r.jsx)(i.A,{...e}):(0,r.jsx)(r.Fragment,{children:e.children})}function M(e){let{title:t}=e;return(0,r.jsx)("small",{className:y.authorTitle,title:t,children:t})}function P(e){let{name:t,as:a}=e;return a?(0,r.jsx)(k.A,{as:a,className:y.authorName,children:t}):(0,r.jsx)("span",{className:y.authorName,children:t})}function B(e){let{count:t}=e;return(0,r.jsx)("span",{className:(0,n.A)(y.authorBlogPostCount),children:t})}function L(e){let{as:t,author:a,className:s,count:l}=e;const{name:i,title:o,url:c,imageURL:m,email:u,page:d}=a,h=d?.permalink||c||u&&`mailto:${u}`||void 0;return(0,r.jsxs)("div",{className:(0,n.A)("avatar margin-bottom--sm",s,y[`author-as-${t}`]),children:[m&&(0,r.jsx)(C,{href:h,className:"avatar__photo-link",children:(0,r.jsx)("img",{className:(0,n.A)("avatar__photo",y.authorImage),src:m,alt:i})}),(i||o)&&(0,r.jsxs)("div",{className:(0,n.A)("avatar__intro",y.authorDetails),children:[(0,r.jsxs)("div",{className:"avatar__name",children:[i&&(0,r.jsx)(C,{href:h,children:(0,r.jsx)(P,{name:i,as:t})}),void 0!==l&&(0,r.jsx)(B,{count:l})]}),!!o&&(0,r.jsx)(M,{title:o}),(0,r.jsx)(_,{author:a})]})]})}const T={authorCol:"authorCol_Hf19",imageOnlyAuthorRow:"imageOnlyAuthorRow_pa_O",imageOnlyAuthorCol:"imageOnlyAuthorCol_G86a"};function I(e){let{className:t}=e;const{metadata:{authors:a},assets:l}=(0,s.e7)();if(0===a.length)return null;const i=a.every((e=>{let{name:t}=e;return!t})),o=1===a.length;return(0,r.jsx)("div",{className:(0,n.A)("margin-top--md margin-bottom--sm",i?T.imageOnlyAuthorRow:"row",t),children:a.map(((e,t)=>(0,r.jsx)("div",{className:(0,n.A)(!i&&(o?"col col--12":"col col--6"),i?T.imageOnlyAuthorCol:T.authorCol),children:(0,r.jsx)(L,{author:{...e,imageURL:l.authorsImageUrls[t]??e.imageURL}})},t)))})}function U(){return(0,r.jsxs)("header",{children:[(0,r.jsx)(c,{}),(0,r.jsx)(f,{}),(0,r.jsx)(I,{})]})}var H=a(440),O=a(8509);function R(e){let{children:t,className:a}=e;const{isBlogPostPage:l}=(0,s.e7)();return(0,r.jsx)("div",{id:l?H.LU:void 0,className:(0,n.A)("markdown",a),children:(0,r.jsx)(O.A,{children:t})})}var G=a(7559),$=a(4336),F=a(2053);function S(){return(0,r.jsx)("b",{children:(0,r.jsx)(m.A,{id:"theme.blog.post.readMore",description:"The label used in blog post item excerpts to link to full blog posts",children:"Read more"})})}function Z(e){const{blogPostTitle:t,...a}=e;return(0,r.jsx)(i.A,{"aria-label":(0,m.T)({message:"Read more about {title}",id:"theme.blog.post.readMoreLabel",description:"The ARIA label for the link to full blog posts from excerpts"},{title:t}),...a,children:(0,r.jsx)(S,{})})}function D(){const{metadata:e,isBlogPostPage:t}=(0,s.e7)(),{tags:a,title:l,editUrl:i,hasTruncateMarker:o,lastUpdatedBy:c,lastUpdatedAt:m}=e,u=!t&&o,d=a.length>0;if(!(d||u||i))return null;if(t){const e=!!(i||m||c);return(0,r.jsxs)("footer",{className:"docusaurus-mt-lg",children:[d&&(0,r.jsx)("div",{className:(0,n.A)("row","margin-top--sm",G.G.blog.blogFooterEditMetaRow),children:(0,r.jsx)("div",{className:"col",children:(0,r.jsx)(F.A,{tags:a})})}),e&&(0,r.jsx)($.A,{className:(0,n.A)("margin-top--sm",G.G.blog.blogFooterEditMetaRow),editUrl:i,lastUpdatedAt:m,lastUpdatedBy:c})]})}return(0,r.jsxs)("footer",{className:"row docusaurus-mt-lg",children:[d&&(0,r.jsx)("div",{className:(0,n.A)("col",{"col--9":u}),children:(0,r.jsx)(F.A,{tags:a})}),u&&(0,r.jsx)("div",{className:(0,n.A)("col text--right",{"col--3":d}),children:(0,r.jsx)(Z,{blogPostTitle:l,to:e.permalink})})]})}function z(e){let{children:t,className:a}=e;const i=function(){const{isBlogPostPage:e}=(0,s.e7)();return e?void 0:"margin-bottom--xl"}();return(0,r.jsxs)(l,{className:(0,n.A)(i,a),children:[(0,r.jsx)(U,{}),(0,r.jsx)(R,{children:t}),(0,r.jsx)(D,{})]})}},9022:(e,t,a)=>{a.d(t,{A:()=>l});a(6540);var n=a(4164),s=a(8774),r=a(4848);function l(e){const{permalink:t,title:a,subLabel:l,isNext:i}=e;return(0,r.jsxs)(s.A,{className:(0,n.A)("pagination-nav__link",i?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[l&&(0,r.jsx)("div",{className:"pagination-nav__sublabel",children:l}),(0,r.jsx)("div",{className:"pagination-nav__label",children:a})]})}},6133:(e,t,a)=>{a.d(t,{A:()=>i});a(6540);var n=a(4164),s=a(8774);const r={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};var l=a(4848);function i(e){let{permalink:t,label:a,count:i,description:o}=e;return(0,l.jsxs)(s.A,{href:t,title:o,className:(0,n.A)(r.tag,i?r.tagWithCount:r.tagRegular),children:[a,i&&(0,l.jsx)("span",{children:i})]})}},2053:(e,t,a)=>{a.d(t,{A:()=>o});a(6540);var n=a(4164),s=a(1312),r=a(6133);const l={tags:"tags_jXut",tag:"tag_QGVx"};var i=a(4848);function o(e){let{tags:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("b",{children:(0,i.jsx)(s.A,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,i.jsx)("ul",{className:(0,n.A)(l.tags,"padding--none","margin-left--sm"),children:t.map((e=>(0,i.jsx)("li",{className:l.tag,children:(0,i.jsx)(r.A,{...e})},e.permalink)))})]})}},5846:(e,t,a)=>{a.d(t,{W:()=>c});var n=a(6540),s=a(4586);const r=["zero","one","two","few","many","other"];function l(e){return r.filter((t=>e.includes(t)))}const i={locale:"en",pluralForms:l(["one","other"]),select:e=>1===e?"one":"other"};function o(){const{i18n:{currentLocale:e}}=(0,s.A)();return(0,n.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:l(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),i}}),[e])}function c(){const e=o();return{selectMessage:(t,a)=>function(e,t,a){const n=e.split("|");if(1===n.length)return n[0];n.length>a.pluralForms.length&&console.error(`For locale=${a.locale}, a maximum of ${a.pluralForms.length} plural forms are expected (${a.pluralForms.join(",")}), but the message contains ${n.length}: ${e}`);const s=a.select(t),r=a.pluralForms.indexOf(s);return n[Math.min(r,n.length-1)]}(a,t,e)}}}}]); \ No newline at end of file diff --git a/assets/js/8a894f7b.61cfc55c.js b/assets/js/8a894f7b.61cfc55c.js new file mode 100644 index 000000000..e4d06fdbb --- /dev/null +++ b/assets/js/8a894f7b.61cfc55c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[538],{2101:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>r,default:()=>d,frontMatter:()=>a,metadata:()=>o,toc:()=>l});const o=JSON.parse('{"id":"introduction/video-artifacts","title":"Spotting Video Artifacts","description":"https://xkcd.com/2414","source":"@site/docs/introduction/video-artifacts.mdx","sourceDirName":"introduction","slug":"/introduction/video-artifacts","permalink":"/docs/introduction/video-artifacts","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/video-artifacts.mdx","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"sidebar_position":4},"sidebar":"tutorialSidebar","previous":{"title":"Lossy Compression","permalink":"/docs/introduction/lossy"},"next":{"title":"Psychovisual","permalink":"/docs/introduction/psychovisual"}}');var s=i(4848),n=i(8453);const a={sidebar_position:4},r="Spotting Video Artifacts",c={},l=[{value:"Moir\xe9 Pattern",id:"moir\xe9-pattern",level:2},{value:"Staircase Effect",id:"staircase-effect",level:2},{value:"Color Bleed",id:"color-bleed",level:2},{value:"Ringing",id:"ringing",level:2},{value:"Blocking",id:"blocking",level:2},{value:"Banding/Contouring",id:"bandingcontouring",level:2},{value:"Mosquito Noise",id:"mosquito-noise",level:2}];function h(e){const t={a:"a",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"spotting-video-artifacts",children:"Spotting Video Artifacts"})}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/solar_system_compression_artifacts_2x.avif",type:"image/avif"}),(0,s.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/solar_system_compression_artifacts_2x.png",alt:"XKCD about compression artifacts",width:"659",height:"540"})]}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.em,{children:(0,s.jsx)(t.a,{href:"https://xkcd.com/2414",children:"https://xkcd.com/2414"})})}),"\n",(0,s.jsx)(t.p,{children:"Video artifacts are visual distortions or anomalies that appear in a video, which can affect the quality of the image. Artifacts are first categorized by whether they\u2019re time/sequence-based (temporal) or location-based (spatial). If you can see the artifact when the video is paused, then it\u2019s probably a spatial artifact. If it\u2019s much more visible while the video plays, then it\u2019s likely temporal."}),"\n",(0,s.jsx)(t.h2,{id:"moir\xe9-pattern",children:"Moir\xe9 Pattern"}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/moire-pattern.jxl",type:"image/jxl"}),(0,s.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/moire-pattern.jpeg",alt:"Moir\xe9 pattern on a brick building",width:"205",height:"250"})]}),"\n",(0,s.jsx)(t.p,{children:"Moir\xe9 patterns are large-scale spatial interference pattern produced when a pattern in the source image and the manner in which the encoder operates are slightly out of alignment spatially. The artifacts generated by the encoder then introduce strange, swirling effects in the source image's pattern upon decoding. and"}),"\n",(0,s.jsx)(t.h2,{id:"staircase-effect",children:"Staircase Effect"}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/staircase-effect.jxl",type:"image/jxl"}),(0,s.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/staircase-effect.jpeg",alt:"Staircase Effect",width:"452",height:"548",loading:"lazy"})]}),"\n",(0,s.jsx)(t.p,{children:'The staircase effect is a spatial artifact that occurs when diagonal straight or curved edges that should be smooth take on a jagged appearance, looking somewhat like a set of stair steps. This is the effect that is being reduced by "anti-aliasing" filters.'}),"\n",(0,s.jsx)(t.h2,{id:"color-bleed",children:"Color Bleed"}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/color-bleed.jxl",type:"image/jxl"}),(0,s.jsx)("img",{src:"https://github.com/av1-community-contributors/images/raw/main/color-bleed.jpeg",alt:"Color Bleed",width:"624",height:"276",loading:"lazy"})]}),"\n",(0,s.jsx)(t.p,{children:"Color bleeding, as its name suggests, occurs when the edges of one color in the image unintentionally bleeds or overlaps into another color. The cause of color bleeding is usually related to the compression algorithm's handling of chrominance information. Chrominance refers to the color information in an image or video, and it's usually compressed separately from the luminance (brightness) information. In some compression algorithms, the chrominance information may be compressed more aggressively than the luminance information, resulting in a loss of color accuracy and detail."}),"\n",(0,s.jsx)(t.h2,{id:"ringing",children:"Ringing"}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/ringing-artifact.jxl",type:"image/jxl"}),(0,s.jsx)("img",{src:"https://github.com/av1-community-contributors/images/raw/main/ringing-artifact.jpeg",alt:"Ringing artifact on a star symbol",width:"684",height:"599",loading:"lazy"})]}),"\n",(0,s.jsx)(t.p,{children:"Note the blue and pink fringes around the edges of the star above (as well as the stepping and other significant compression artifacts). Those fringes are the ringing effect. It is very similar to mosquito noise which will be talked about down below."}),"\n",(0,s.jsx)(t.h2,{id:"blocking",children:"Blocking"}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/blocking_on_cat.jxl",type:"image/jxl"}),(0,s.jsx)("img",{src:"https://github.com/av1-community-contributors/images/raw/main/blocking_on_cat.jpeg",alt:"Blocking artifacts on a cat",loading:"lazy"})]}),"\n",(0,s.jsx)(t.p,{children:'To understand this artifact, we first need to know what DCT (Discrete Cosine Transform)-based compression is. It\'s a way of reducing the size of a digital image or video file by analyzing the data in small chunks (called "blocks") and then using mathematical formulas to transform that data into a more compact representation. This transformed data can then be stored or transmitted more efficiently.'}),"\n",(0,s.jsx)(t.p,{children:'However, this compression technique can sometimes lead to visible "distortions" in the compressed image or video. One of the most common types of distortion is the "blocking artifact," which occurs when the edges of the compressed blocks become visible, creating a grid-like pattern over the image or video.'}),"\n",(0,s.jsx)(t.p,{children:"In simpler terms, imagine if you take a picture and then try to compress it to make the file size smaller. The compression algorithm divides the picture into small blocks and tries to simplify the information in each block. But when there's not enough bitrate/data, the algorithm simplifies the information too much, resulting in visible blocks or a grid pattern on the picture. This is what we call the DCT blocking compression artifact."}),"\n",(0,s.jsx)(t.h2,{id:"bandingcontouring",children:"Banding/Contouring"}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/colorbanding_ex1.jxl",type:"image/jxl"}),(0,s.jsx)("img",{src:"https://github.com/av1-community-contributors/images/raw/main/colorbanding_ex1.jpeg",alt:"Banding",width:"418",height:"303",loading:"lazy"})]}),"\n",(0,s.jsx)(t.p,{children:"Banding or contouring is a specific form of posterization in which the color blocks form bands or stripes in the image. This occurs when the video is encoded with too coarse a quantization (Technique used in video compression that reduces the amount of data needed to store or transmit a video by rounding off certain values in the video's signal) configuration and a lack of available color gradient. As a result, the video's contents show a \"layered\" look, where instead of smooth gradients and transitions, the transitions from color to color are abrupt, causing strips of color to appear."}),"\n",(0,s.jsx)(t.h2,{id:"mosquito-noise",children:"Mosquito Noise"}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/mosquito-noise.jxl",type:"image/jxl"}),(0,s.jsx)("img",{src:"https://github.com/av1-community-contributors/images/raw/main/mosquito-noise.jpeg",alt:"Mosquito noise surrounding an iron fence",width:"505",height:"353",loading:"lazy"})]}),"\n",(0,s.jsx)(t.p,{children:"Mosquito noise appears as small, moving, and blocky artifacts around sharp edges or fine details in videos or images. They are mostly found in videos that are compressed using the DCT algorithm we talked about earlier, such as MPEG videos or JPEG images."})]})}function d(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>a,x:()=>r});var o=i(6540);const s={},n=o.createContext(s);function a(e){const t=o.useContext(n);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),o.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8a894f7b.ed44ed07.js b/assets/js/8a894f7b.ed44ed07.js deleted file mode 100644 index ee96f8c2a..000000000 --- a/assets/js/8a894f7b.ed44ed07.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[538],{8245:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>d,frontMatter:()=>s,metadata:()=>r,toc:()=>l});var o=i(4848),n=i(8453);const s={sidebar_position:4},a="Spotting Video Artifacts",r={id:"introduction/video-artifacts",title:"Spotting Video Artifacts",description:"https://xkcd.com/2414",source:"@site/docs/introduction/video-artifacts.mdx",sourceDirName:"introduction",slug:"/introduction/video-artifacts",permalink:"/docs/introduction/video-artifacts",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/video-artifacts.mdx",tags:[],version:"current",sidebarPosition:4,frontMatter:{sidebar_position:4},sidebar:"tutorialSidebar",previous:{title:"Lossy Compression",permalink:"/docs/introduction/lossy"},next:{title:"Psychovisual",permalink:"/docs/introduction/psychovisual"}},c={},l=[{value:"Moir\xe9 Pattern",id:"moir\xe9-pattern",level:2},{value:"Staircase Effect",id:"staircase-effect",level:2},{value:"Color Bleed",id:"color-bleed",level:2},{value:"Ringing",id:"ringing",level:2},{value:"Blocking",id:"blocking",level:2},{value:"Banding/Contouring",id:"bandingcontouring",level:2},{value:"Mosquito Noise",id:"mosquito-noise",level:2}];function h(e){const t={a:"a",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"spotting-video-artifacts",children:"Spotting Video Artifacts"})}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/solar_system_compression_artifacts_2x.avif",type:"image/avif"}),(0,o.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/solar_system_compression_artifacts_2x.png",alt:"XKCD about compression artifacts",width:"659",height:"540"})]}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.em,{children:(0,o.jsx)(t.a,{href:"https://xkcd.com/2414",children:"https://xkcd.com/2414"})})}),"\n",(0,o.jsx)(t.p,{children:"Video artifacts are visual distortions or anomalies that appear in a video, which can affect the quality of the image. Artifacts are first categorized by whether they\u2019re time/sequence-based (temporal) or location-based (spatial). If you can see the artifact when the video is paused, then it\u2019s probably a spatial artifact. If it\u2019s much more visible while the video plays, then it\u2019s likely temporal."}),"\n",(0,o.jsx)(t.h2,{id:"moir\xe9-pattern",children:"Moir\xe9 Pattern"}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/moire-pattern.jxl",type:"image/jxl"}),(0,o.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/moire-pattern.jpeg",alt:"Moir\xe9 pattern on a brick building",width:"205",height:"250"})]}),"\n",(0,o.jsx)(t.p,{children:"Moir\xe9 patterns are large-scale spatial interference pattern produced when a pattern in the source image and the manner in which the encoder operates are slightly out of alignment spatially. The artifacts generated by the encoder then introduce strange, swirling effects in the source image's pattern upon decoding. and"}),"\n",(0,o.jsx)(t.h2,{id:"staircase-effect",children:"Staircase Effect"}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/staircase-effect.jxl",type:"image/jxl"}),(0,o.jsx)("img",{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/staircase-effect.jpeg",alt:"Staircase Effect",width:"452",height:"548",loading:"lazy"})]}),"\n",(0,o.jsx)(t.p,{children:'The staircase effect is a spatial artifact that occurs when diagonal straight or curved edges that should be smooth take on a jagged appearance, looking somewhat like a set of stair steps. This is the effect that is being reduced by "anti-aliasing" filters.'}),"\n",(0,o.jsx)(t.h2,{id:"color-bleed",children:"Color Bleed"}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/color-bleed.jxl",type:"image/jxl"}),(0,o.jsx)("img",{src:"https://github.com/av1-community-contributors/images/raw/main/color-bleed.jpeg",alt:"Color Bleed",width:"624",height:"276",loading:"lazy"})]}),"\n",(0,o.jsx)(t.p,{children:"Color bleeding, as its name suggests, occurs when the edges of one color in the image unintentionally bleeds or overlaps into another color. The cause of color bleeding is usually related to the compression algorithm's handling of chrominance information. Chrominance refers to the color information in an image or video, and it's usually compressed separately from the luminance (brightness) information. In some compression algorithms, the chrominance information may be compressed more aggressively than the luminance information, resulting in a loss of color accuracy and detail."}),"\n",(0,o.jsx)(t.h2,{id:"ringing",children:"Ringing"}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/ringing-artifact.jxl",type:"image/jxl"}),(0,o.jsx)("img",{src:"https://github.com/av1-community-contributors/images/raw/main/ringing-artifact.jpeg",alt:"Ringing artifact on a star symbol",width:"684",height:"599",loading:"lazy"})]}),"\n",(0,o.jsx)(t.p,{children:"Note the blue and pink fringes around the edges of the star above (as well as the stepping and other significant compression artifacts). Those fringes are the ringing effect. It is very similar to mosquito noise which will be talked about down below."}),"\n",(0,o.jsx)(t.h2,{id:"blocking",children:"Blocking"}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/blocking_on_cat.jxl",type:"image/jxl"}),(0,o.jsx)("img",{src:"https://github.com/av1-community-contributors/images/raw/main/blocking_on_cat.jpeg",alt:"Blocking artifacts on a cat",loading:"lazy"})]}),"\n",(0,o.jsx)(t.p,{children:'To understand this artifact, we first need to know what DCT (Discrete Cosine Transform)-based compression is. It\'s a way of reducing the size of a digital image or video file by analyzing the data in small chunks (called "blocks") and then using mathematical formulas to transform that data into a more compact representation. This transformed data can then be stored or transmitted more efficiently.'}),"\n",(0,o.jsx)(t.p,{children:'However, this compression technique can sometimes lead to visible "distortions" in the compressed image or video. One of the most common types of distortion is the "blocking artifact," which occurs when the edges of the compressed blocks become visible, creating a grid-like pattern over the image or video.'}),"\n",(0,o.jsx)(t.p,{children:"In simpler terms, imagine if you take a picture and then try to compress it to make the file size smaller. The compression algorithm divides the picture into small blocks and tries to simplify the information in each block. But when there's not enough bitrate/data, the algorithm simplifies the information too much, resulting in visible blocks or a grid pattern on the picture. This is what we call the DCT blocking compression artifact."}),"\n",(0,o.jsx)(t.h2,{id:"bandingcontouring",children:"Banding/Contouring"}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/colorbanding_ex1.jxl",type:"image/jxl"}),(0,o.jsx)("img",{src:"https://github.com/av1-community-contributors/images/raw/main/colorbanding_ex1.jpeg",alt:"Banding",width:"418",height:"303",loading:"lazy"})]}),"\n",(0,o.jsx)(t.p,{children:"Banding or contouring is a specific form of posterization in which the color blocks form bands or stripes in the image. This occurs when the video is encoded with too coarse a quantization (Technique used in video compression that reduces the amount of data needed to store or transmit a video by rounding off certain values in the video's signal) configuration and a lack of available color gradient. As a result, the video's contents show a \"layered\" look, where instead of smooth gradients and transitions, the transitions from color to color are abrupt, causing strips of color to appear."}),"\n",(0,o.jsx)(t.h2,{id:"mosquito-noise",children:"Mosquito Noise"}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"https://github.com/av1-community-contributors/images/raw/main/mosquito-noise.jxl",type:"image/jxl"}),(0,o.jsx)("img",{src:"https://github.com/av1-community-contributors/images/raw/main/mosquito-noise.jpeg",alt:"Mosquito noise surrounding an iron fence",width:"505",height:"353",loading:"lazy"})]}),"\n",(0,o.jsx)(t.p,{children:"Mosquito noise appears as small, moving, and blocky artifacts around sharp edges or fine details in videos or images. They are mostly found in videos that are compressed using the DCT algorithm we talked about earlier, such as MPEG videos or JPEG images."})]})}function d(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>a,x:()=>r});var o=i(6540);const n={},s=o.createContext(n);function a(e){const t=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),o.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8aacd032.7172a8bf.js b/assets/js/8aacd032.7172a8bf.js new file mode 100644 index 000000000..b5d67df82 --- /dev/null +++ b/assets/js/8aacd032.7172a8bf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2897],{2458:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>a,contentTitle:()=>d,default:()=>u,frontMatter:()=>s,metadata:()=>t,toc:()=>c});const t=JSON.parse('{"id":"video/AV1","title":"AV1","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/video/AV1.mdx","sourceDirName":"video","slug":"/video/AV1","permalink":"/docs/video/AV1","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/AV1.mdx","tags":[],"version":"current","sidebarPosition":6,"frontMatter":{"title":"AV1","sidebar_position":6},"sidebar":"tutorialSidebar","previous":{"title":"VP9","permalink":"/docs/video/VP9"},"next":{"title":"AVS3","permalink":"/docs/video/AVS3"}}');var n=o(4848),r=o(8453);const s={title:"AV1",sidebar_position:6},d="AV1",a={},c=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"av1",children:"AV1"})}),"\n",(0,n.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(i.p,{children:["AV1 is a royalty-free video compression format designed to succeed ",(0,n.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"}),". It presently competes with ",(0,n.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"}),", ",(0,n.jsx)(i.a,{href:"/docs/video/VVC",children:"VVC"}),", and ",(0,n.jsx)(i.a,{href:"/docs/video/HEVC",children:"HEVC"}),". AV1 is computationally more complex than VP9, but is fast to decode due to the mature and efficient dav1d AV1 decoder. AV1 hardware accelerated decoding is also available on a variety of different consumer hardware devices, all of which are enumerated ",(0,n.jsx)(i.a,{href:"https://en.wikipedia.org/wiki/AV1#Hardware",children:"on Wikipedia"}),". Standout entries include modern Intel, AMD, & Nvidia integrated & discrete GPUs, Google's Tensor SoC powering the Pixel line, Apple's A17 Pro in the iPhone 15 Pro series, and modern Mediatek & Qualcomm chips. YouTube is currently in the process of transitioning their videos to use AV1."]}),"\n",(0,n.jsxs)(i.p,{children:["There are a number of viable AV1 encoding solutions available today. The three best, most ubiquitous, and free implementations are ",(0,n.jsx)(i.a,{href:"/docs/encoders/aomenc",children:"aomenc"}),", ",(0,n.jsx)(i.a,{href:"/docs/encoders/SVT-AV1",children:"SVT-AV1"}),", & ",(0,n.jsx)(i.a,{href:"/docs/encoders/rav1e",children:"rav1e"}),"."]})]})}function u(e={}){const{wrapper:i}={...(0,r.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>s,x:()=>d});var t=o(6540);const n={},r=t.createContext(n);function s(e){const i=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function d(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:s(e.components),t.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8aacd032.b71489f2.js b/assets/js/8aacd032.b71489f2.js deleted file mode 100644 index 82f75e30d..000000000 --- a/assets/js/8aacd032.b71489f2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2897],{6669:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>a,contentTitle:()=>s,default:()=>u,frontMatter:()=>r,metadata:()=>d,toc:()=>c});var t=o(4848),n=o(8453);const r={title:"AV1",sidebar_position:6},s="AV1",d={id:"video/AV1",title:"AV1",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/video/AV1.mdx",sourceDirName:"video",slug:"/video/AV1",permalink:"/docs/video/AV1",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/AV1.mdx",tags:[],version:"current",sidebarPosition:6,frontMatter:{title:"AV1",sidebar_position:6},sidebar:"tutorialSidebar",previous:{title:"VP9",permalink:"/docs/video/VP9"},next:{title:"AVS3",permalink:"/docs/video/AVS3"}},a={},c=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"av1",children:"AV1"})}),"\n",(0,t.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsxs)(i.p,{children:["AV1 is a royalty-free video compression format designed to succeed ",(0,t.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"}),". It presently competes with ",(0,t.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"}),", ",(0,t.jsx)(i.a,{href:"/docs/video/VVC",children:"VVC"}),", and ",(0,t.jsx)(i.a,{href:"/docs/video/HEVC",children:"HEVC"}),". AV1 is computationally more complex than VP9, but is fast to decode due to the mature and efficient dav1d AV1 decoder. AV1 hardware accelerated decoding is also available on a variety of different consumer hardware devices, all of which are enumerated ",(0,t.jsx)(i.a,{href:"https://en.wikipedia.org/wiki/AV1#Hardware",children:"on Wikipedia"}),". Standout entries include modern Intel, AMD, & Nvidia integrated & discrete GPUs, Google's Tensor SoC powering the Pixel line, Apple's A17 Pro in the iPhone 15 Pro series, and modern Mediatek & Qualcomm chips. YouTube is currently in the process of transitioning their videos to use AV1."]}),"\n",(0,t.jsxs)(i.p,{children:["There are a number of viable AV1 encoding solutions available today. The three best, most ubiquitous, and free implementations are ",(0,t.jsx)(i.a,{href:"/docs/encoders/aomenc",children:"aomenc"}),", ",(0,t.jsx)(i.a,{href:"/docs/encoders/SVT-AV1",children:"SVT-AV1"}),", & ",(0,t.jsx)(i.a,{href:"/docs/encoders/rav1e",children:"rav1e"}),"."]})]})}function u(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>s,x:()=>d});var t=o(6540);const n={},r=t.createContext(n);function s(e){const i=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function d(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:s(e.components),t.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8bdabb45.7ff3db00.js b/assets/js/8bdabb45.7ff3db00.js deleted file mode 100644 index 3e04f4789..000000000 --- a/assets/js/8bdabb45.7ff3db00.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7957],{5575:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>t,default:()=>h,frontMatter:()=>r,metadata:()=>c,toc:()=>l});var o=i(4848),s=i(8453);const r={label:"AVM",sidebar_position:15},t="AVM",c={id:"encoders/AVM",title:"AVM",description:"AVM (AOM Video Model) is the reference software for next codec from Alliance for Open Media.",source:"@site/docs/encoders/AVM.mdx",sourceDirName:"encoders",slug:"/encoders/AVM",permalink:"/docs/encoders/AVM",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/AVM.mdx",tags:[],version:"current",sidebarPosition:15,frontMatter:{label:"AVM",sidebar_position:15},sidebar:"tutorialSidebar",previous:{title:"VTM",permalink:"/docs/encoders/VTM"},next:{title:"HM",permalink:"/docs/encoders/HM"}},d={},l=[{value:"Rumors",id:"rumors",level:2},{value:"Installation",id:"installation",level:2},{value:"Arch Linux",id:"arch-linux",level:3},{value:"Compiling",id:"compiling",level:3},{value:"Usage",id:"usage",level:2},{value:"aomdec",id:"aomdec",level:2}];function a(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"avm",children:"AVM"})}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsx)(n.p,{children:"AVM (AOM Video Model) is the reference software for next codec from Alliance for Open Media."}),"\n"]}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.a,{href:"https://gitlab.com/AOMediaCodec/avm",children:"AVM"}),", or ",(0,o.jsx)(n.strong,{children:"A"}),"OM ",(0,o.jsx)(n.strong,{children:"V"}),"ideo ",(0,o.jsx)(n.strong,{children:"M"}),"odel is the reference implementation for a future codec from the Alliance for Open Media, the organization behind ",(0,o.jsx)(n.a,{href:"/docs/video/AV1",children:"AV1"}),".\nThe codebase is under the Clear BSD license and currently only produces ",(0,o.jsx)(n.code,{children:"av01"})," bitstreams."]}),"\n",(0,o.jsx)(n.p,{children:"The AVM codec is currently in development and is not yet ready for production use. Not much has been documented or tested."}),"\n",(0,o.jsx)(n.h2,{id:"rumors",children:"Rumors"}),"\n",(0,o.jsx)(n.p,{children:"Some things about the new encoding implementation can be confirmed via the codebase, but none of those changes are final until the codec is standardized and officially released."}),"\n",(0,o.jsx)(n.p,{children:"Some rumors about the codec include:"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:"The name of the codec is going to be AV2, superseding AV1"}),"\n",(0,o.jsx)(n.li,{children:"The codec will be based on AV1, with certain backwards compatibility features available"}),"\n",(0,o.jsx)(n.li,{children:"Hardware decoding implementations could be implemented at no cost (no royalties) by utilizing GPU shaders and existing AV1 decoding hardware."}),"\n",(0,o.jsxs)(n.li,{children:['AOM\'s strategy will be to release codecs "mid-cycle" relative to ISO/ITU\'s release schedule, meaning it is likely that "AV2" will compete with ',(0,o.jsx)(n.a,{href:"/docs/video/VVC",children:"VVC"}),", not ",(0,o.jsx)(n.a,{href:"/docs/video/ECM",children:"ECM"}),"."]}),"\n",(0,o.jsx)(n.li,{children:"A quantizer scale of 0-255 will be standard."}),"\n",(0,o.jsxs)(n.li,{children:["AVM tries to address some issues with high-fidelity AV1 encoding by introducing a better denoiser to mitigate ",(0,o.jsx)(n.a,{href:"/docs/introduction/video-artifacts#mosquito-noise",children:"mosquito noise"}),"."]}),"\n"]}),"\n",(0,o.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,o.jsx)(n.h3,{id:"arch-linux",children:"Arch Linux"}),"\n",(0,o.jsxs)(n.p,{children:["AVM is available in the Arch User Repository (AUR) as ",(0,o.jsx)(n.code,{children:"avm"})," and ",(0,o.jsx)(n.code,{children:"avm-git"}),"."]}),"\n",(0,o.jsx)(n.h3,{id:"compiling",children:"Compiling"}),"\n",(0,o.jsxs)(n.p,{children:["Since this encoder is under heavy development, there are no pre-built binaries provided, so you will need to compile yourself.\nWindows users are recommended to compile via MinGW-W64 which comes with ",(0,o.jsx)(n.a,{href:"https://msys2.org/",children:"MSYS2"}),"."]}),"\n",(0,o.jsx)(n.admonition,{type:"caution",children:(0,o.jsx)(n.p,{children:"Compilation requires CMake, Nasm, and Perl."})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"git clone https://gitlab.com/AOMediaCodec/avm.git\ncd avm/build\ncmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=0\nmake -j$(nproc)\n"})}),"\n",(0,o.jsx)(n.p,{children:"Since this is a huge project, compiling will take a while depending on your CPU."}),"\n",(0,o.jsxs)(n.p,{children:["The resulting binary will be called ",(0,o.jsx)(n.code,{children:"aomenc"}),", the same name that encodes content to AV1.\nIt will be available in the same folder (",(0,o.jsx)(n.code,{children:"build"}),"), or you can run ",(0,o.jsx)(n.code,{children:"make install"})," on Linux to install (May need elevated permissions)."]}),"\n",(0,o.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,o.jsx)(n.admonition,{type:"tip",children:(0,o.jsxs)(n.p,{children:["To convert ",(0,o.jsx)(n.code,{children:"cq-level"})," in aomenc and ",(0,o.jsx)(n.code,{children:"crf"})," in SVT-AV1 to AVM's QP values, multiply by 4. For example, ",(0,o.jsx)(n.code,{children:"--cq-level 20"})," equals to ",(0,o.jsx)(n.code,{children:"--quantizer 60"}),"."]})}),"\n",(0,o.jsxs)(n.p,{children:["Simple Y4M input with QP 65, and ",(0,o.jsx)(n.code,{children:"ivf"})," output:"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"aomenc --qp=65 -o output.ivf input.y4m\n"})}),"\n",(0,o.jsx)(n.p,{children:"Preset level 6 (higher is faster), QP 65, Y4M input:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"aomenc --qp=65 --cpu-used=6 -o output.ivf input.y4m\n"})}),"\n",(0,o.jsx)(n.p,{children:"FFmpeg piping:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | aomenc --qp=65 --cpu-used=6 -o output.ivf -\n"})}),"\n",(0,o.jsx)(n.h2,{id:"aomdec",children:"aomdec"}),"\n",(0,o.jsxs)(n.p,{children:["You will need the ",(0,o.jsx)(n.code,{children:"aomdec"})," binary you also compiled to be able to play your encoded video, as there are ",(0,o.jsx)(n.strong,{children:"zero"})," video players currently in the whole world that can play your encoded content."]})]})}function h(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(a,{...e})}):a(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>t,x:()=>c});var o=i(6540);const s={},r=o.createContext(s);function t(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:t(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8bdabb45.ddb8e58e.js b/assets/js/8bdabb45.ddb8e58e.js new file mode 100644 index 000000000..886be3c2c --- /dev/null +++ b/assets/js/8bdabb45.ddb8e58e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7957],{130:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>h,frontMatter:()=>t,metadata:()=>o,toc:()=>l});const o=JSON.parse('{"id":"encoders/AVM","title":"AVM","description":"AVM (AOM Video Model) is the reference software for next codec from Alliance for Open Media.","source":"@site/docs/encoders/AVM.mdx","sourceDirName":"encoders","slug":"/encoders/AVM","permalink":"/docs/encoders/AVM","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/AVM.mdx","tags":[],"version":"current","sidebarPosition":15,"frontMatter":{"label":"AVM","sidebar_position":15},"sidebar":"tutorialSidebar","previous":{"title":"VTM","permalink":"/docs/encoders/VTM"},"next":{"title":"HM","permalink":"/docs/encoders/HM"}}');var s=i(4848),r=i(8453);const t={label:"AVM",sidebar_position:15},c="AVM",d={},l=[{value:"Rumors",id:"rumors",level:2},{value:"Installation",id:"installation",level:2},{value:"Arch Linux",id:"arch-linux",level:3},{value:"Compiling",id:"compiling",level:3},{value:"Usage",id:"usage",level:2},{value:"aomdec",id:"aomdec",level:2}];function a(e){const n={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"avm",children:"AVM"})}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:"AVM (AOM Video Model) is the reference software for next codec from Alliance for Open Media."}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"https://gitlab.com/AOMediaCodec/avm",children:"AVM"}),", or ",(0,s.jsx)(n.strong,{children:"A"}),"OM ",(0,s.jsx)(n.strong,{children:"V"}),"ideo ",(0,s.jsx)(n.strong,{children:"M"}),"odel is the reference implementation for a future codec from the Alliance for Open Media, the organization behind ",(0,s.jsx)(n.a,{href:"/docs/video/AV1",children:"AV1"}),".\nThe codebase is under the Clear BSD license and currently only produces ",(0,s.jsx)(n.code,{children:"av01"})," bitstreams."]}),"\n",(0,s.jsx)(n.p,{children:"The AVM codec is currently in development and is not yet ready for production use. Not much has been documented or tested."}),"\n",(0,s.jsx)(n.h2,{id:"rumors",children:"Rumors"}),"\n",(0,s.jsx)(n.p,{children:"Some things about the new encoding implementation can be confirmed via the codebase, but none of those changes are final until the codec is standardized and officially released."}),"\n",(0,s.jsx)(n.p,{children:"Some rumors about the codec include:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"The name of the codec is going to be AV2, superseding AV1"}),"\n",(0,s.jsx)(n.li,{children:"The codec will be based on AV1, with certain backwards compatibility features available"}),"\n",(0,s.jsx)(n.li,{children:"Hardware decoding implementations could be implemented at no cost (no royalties) by utilizing GPU shaders and existing AV1 decoding hardware."}),"\n",(0,s.jsxs)(n.li,{children:['AOM\'s strategy will be to release codecs "mid-cycle" relative to ISO/ITU\'s release schedule, meaning it is likely that "AV2" will compete with ',(0,s.jsx)(n.a,{href:"/docs/video/VVC",children:"VVC"}),", not ",(0,s.jsx)(n.a,{href:"/docs/video/ECM",children:"ECM"}),"."]}),"\n",(0,s.jsx)(n.li,{children:"A quantizer scale of 0-255 will be standard."}),"\n",(0,s.jsxs)(n.li,{children:["AVM tries to address some issues with high-fidelity AV1 encoding by introducing a better denoiser to mitigate ",(0,s.jsx)(n.a,{href:"/docs/introduction/video-artifacts#mosquito-noise",children:"mosquito noise"}),"."]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsx)(n.h3,{id:"arch-linux",children:"Arch Linux"}),"\n",(0,s.jsxs)(n.p,{children:["AVM is available in the Arch User Repository (AUR) as ",(0,s.jsx)(n.code,{children:"avm"})," and ",(0,s.jsx)(n.code,{children:"avm-git"}),"."]}),"\n",(0,s.jsx)(n.h3,{id:"compiling",children:"Compiling"}),"\n",(0,s.jsxs)(n.p,{children:["Since this encoder is under heavy development, there are no pre-built binaries provided, so you will need to compile yourself.\nWindows users are recommended to compile via MinGW-W64 which comes with ",(0,s.jsx)(n.a,{href:"https://msys2.org/",children:"MSYS2"}),"."]}),"\n",(0,s.jsx)(n.admonition,{type:"caution",children:(0,s.jsx)(n.p,{children:"Compilation requires CMake, Nasm, and Perl."})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"git clone https://gitlab.com/AOMediaCodec/avm.git\ncd avm/build\ncmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=0\nmake -j$(nproc)\n"})}),"\n",(0,s.jsx)(n.p,{children:"Since this is a huge project, compiling will take a while depending on your CPU."}),"\n",(0,s.jsxs)(n.p,{children:["The resulting binary will be called ",(0,s.jsx)(n.code,{children:"aomenc"}),", the same name that encodes content to AV1.\nIt will be available in the same folder (",(0,s.jsx)(n.code,{children:"build"}),"), or you can run ",(0,s.jsx)(n.code,{children:"make install"})," on Linux to install (May need elevated permissions)."]}),"\n",(0,s.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(n.admonition,{type:"tip",children:(0,s.jsxs)(n.p,{children:["To convert ",(0,s.jsx)(n.code,{children:"cq-level"})," in aomenc and ",(0,s.jsx)(n.code,{children:"crf"})," in SVT-AV1 to AVM's QP values, multiply by 4. For example, ",(0,s.jsx)(n.code,{children:"--cq-level 20"})," equals to ",(0,s.jsx)(n.code,{children:"--quantizer 60"}),"."]})}),"\n",(0,s.jsxs)(n.p,{children:["Simple Y4M input with QP 65, and ",(0,s.jsx)(n.code,{children:"ivf"})," output:"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"aomenc --qp=65 -o output.ivf input.y4m\n"})}),"\n",(0,s.jsx)(n.p,{children:"Preset level 6 (higher is faster), QP 65, Y4M input:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"aomenc --qp=65 --cpu-used=6 -o output.ivf input.y4m\n"})}),"\n",(0,s.jsx)(n.p,{children:"FFmpeg piping:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | aomenc --qp=65 --cpu-used=6 -o output.ivf -\n"})}),"\n",(0,s.jsx)(n.h2,{id:"aomdec",children:"aomdec"}),"\n",(0,s.jsxs)(n.p,{children:["You will need the ",(0,s.jsx)(n.code,{children:"aomdec"})," binary you also compiled to be able to play your encoded video, as there are ",(0,s.jsx)(n.strong,{children:"zero"})," video players currently in the whole world that can play your encoded content."]})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>t,x:()=>c});var o=i(6540);const s={},r=o.createContext(s);function t(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:t(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8eb2df80.1b3bf215.js b/assets/js/8eb2df80.1b3bf215.js new file mode 100644 index 000000000..83b81ffac --- /dev/null +++ b/assets/js/8eb2df80.1b3bf215.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7796],{1683:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>d,frontMatter:()=>a,metadata:()=>i,toc:()=>c});const i=JSON.parse('{"id":"utilities/rav1ator-cli","title":"rav1ator-cli","description":"rAV1ator CLI, or just rav1ator-cli, is a TUI tool that provides an interactive command line interface for encoding videos with Av1an using various different encoders including rav1e, aomenc (specifically aom-av1-lavish, as mentioned in the aomenc page), SVT-AV1, x265, and x264.","source":"@site/docs/utilities/rav1ator-cli.mdx","sourceDirName":"utilities","slug":"/utilities/rav1ator-cli","permalink":"/docs/utilities/rav1ator-cli","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/rav1ator-cli.mdx","tags":[],"version":"current","sidebarPosition":6,"frontMatter":{"title":"rav1ator-cli","sidebar_position":6,"templating":true},"sidebar":"tutorialSidebar","previous":{"title":"rAV1ator","permalink":"/docs/utilities/rAV1ator"},"next":{"title":"NMKODER","permalink":"/docs/utilities/nmkoder"}}');var r=t(4848),s=t(8453);t(1470),t(9365);const a={title:"rav1ator-cli",sidebar_position:6,templating:!0},o="rAV1ator CLI",l={},c=[{value:"Installation",id:"installation",level:2},{value:"Linux (Arch)",id:"linux-arch",level:2},{value:"Linux (Other)",id:"linux-other",level:2},{value:"Windows",id:"windows",level:2},{value:"Basic installtion",id:"basic-installtion",level:3},{value:"After the Installation and Cleanup, How Do I Start Arch?",id:"after-the-installation-and-cleanup-how-do-i-start-arch",level:3},{value:"Unlock WSL RAM Usage (Optional)",id:"unlock-wsl-ram-usage-optional",level:3},{value:"macOS",id:"macos",level:2},{value:"Troubleshooting",id:"troubleshooting",level:3}];function h(e){const n={a:"a",admonition:"admonition",br:"br",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",img:"img",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"rav1ator-cli",children:"rAV1ator CLI"})}),"\n",(0,r.jsxs)(n.p,{children:["rAV1ator CLI, or just ",(0,r.jsx)(n.code,{children:"rav1ator-cli"}),", is a TUI tool that provides an interactive command line interface for encoding videos with ",(0,r.jsx)(n.a,{href:"/docs/utilities/av1an",children:"Av1an"})," using various different encoders including ",(0,r.jsx)(n.a,{href:"/docs/encoders/rav1e",children:"rav1e"}),", ",(0,r.jsx)(n.a,{href:"/docs/encoders/aomenc",children:"aomenc"})," (specifically aom-av1-lavish, as mentioned in the aomenc page), ",(0,r.jsx)(n.a,{href:"/docs/encoders/SVT-AV1",children:"SVT-AV1"}),", ",(0,r.jsx)(n.a,{href:"/docs/encoders/x265",children:"x265"}),", and ",(0,r.jsx)(n.a,{href:"/docs/encoders/x264",children:"x264"}),"."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'~ > rav1ator-cli -h\nrAV1ator: CLI Edition_ v0.2.0\n\nUsage:\n\trav1ator-cli [input] [output] [--offline]\n\nDependencies (Arch): \n\trust ffmpeg python mkvtoolnix-cli vapoursynth gum numactl l-smash vapoursynth-plugin-lsmashsource av1an ffms2\n\nOptions: (Currently, only one option is useful at a time)\n\t-h, --help\t\t\tPrint this help section\n\t-l, --last-used\t\tPrint last used encode settings from history\n\t-f, --full-history\tPrint full history from ".rav1ator-cli-history" file\n\t-b, --binaries\t\tJust install binaries, then exit\n\t-x, --offline\t\tDon\'t check for updates.\n\t-a, --batch\t\t\tBatch encode. All video files in a directory specified after this flag are encoded.\n'})}),"\n",(0,r.jsx)(n.p,{children:"rAV1ator CLI can:"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Check if it is installed & up to date on its own without a package manager"}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Download AVX2-optimized encoder binaries compiled with -O3 -flto in most cases & allow the user to install them with detailed instructions"}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Remember encoding history and let you view your whole history or your most recent command"}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Allow you to encode an entire directory of video files with the same settings"}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Encode with x264, x265, aomenc, SVT-AV1, or rav1e, set a speed preset, CRF/quality value, FFmpeg parameters, and encoder parameters"}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Generate Av1an encoding commands with the user's chosen settings & run them to encode a provided input video to an MKV output."}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Encode from scratch, or resume a previous rAV1ator CLI encode"}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Engage with rich interactivity features like spinners, prompts, & dropdowns"}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Automatically error check binaries with SHA256 hashes for security & convenience"}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Overall, it aims to provide an easy way to encode videos on the command line with helpful visual feedback. The interactive prompts help users pick encoding settings without needing deep encoding knowledge."}),"\n",(0,r.jsx)("img",{width:"640",height:"360",src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/rav1ator_cli_demo1.avif",alt:"rAV1ator-cli: Demo 1"}),"\n",(0,r.jsx)("img",{width:"640",height:"360",src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/rav1ator_cli_demo2.avif",alt:"rAV1ator-cli: Demo 2"}),"\n",(0,r.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,r.jsx)(n.p,{children:"rAV1ator CLI is natively supported on Linux, & is supported on Windows via WSL2. A tutorial for setting up WSL2 is provided below. macOS is not supported."}),"\n",(0,r.jsx)(n.h2,{id:"linux-arch",children:"Linux (Arch)"}),"\n",(0,r.jsxs)(n.p,{children:["These instructions are for Arch Linux specifically. Other distros should be very similar, and packages that are Arch-specific will be labelled. If you're on Ubuntu, you should see the relevant section of the ",(0,r.jsx)(n.a,{href:"https://wiki.x266.mov/blog/av1-encoding-for-dummies",children:"AV1 for Dummies"})," blog post on this site."]}),"\n",(0,r.jsxs)(n.p,{children:["If you're on another distro and you want to be able to follow these instructions specifically, see the ",(0,r.jsx)(n.a,{href:"#linux-other",children:"Linux (Other)"})," section."]}),"\n",(0,r.jsxs)(n.ol,{start:"0",children:["\n",(0,r.jsx)(n.li,{children:"Update your system before doing anything. On Arch:"}),"\n"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"sudo pacman -Syu\n"})}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsxs)(n.li,{children:["Install ",(0,r.jsx)(n.code,{children:"yay"})," (Arch only) by running the following commands:"]}),"\n"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"sudo pacman -S --needed base-devel git\ngit clone https://aur.archlinux.org/yay.git\ncd yay && makepkg -si\n"})}),"\n",(0,r.jsxs)(n.ol,{start:"2",children:["\n",(0,r.jsx)(n.li,{children:"Next, you'll want to install all of rav1ator-cli's dependencies. You can do that by running:"}),"\n"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"yay -Syu openssl ffmpeg python mkvtoolnix-cli vapoursynth gum numactl l-smash vapoursynth-plugin-lsmashsource av1an ffms2\n"})}),"\n",(0,r.jsxs)(n.ol,{start:"3",children:["\n",(0,r.jsx)(n.li,{children:"Install rav1ator-cli:"}),"\n"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"curl -sOJ https://raw.githubusercontent.com/gianni-rosato/rav1ator-cli/main/rav1ator-cli && chmod +x rav1ator-cli\nsudo cp rav1ator-cli /usr/local/bin\n"})}),"\n",(0,r.jsxs)(n.p,{children:["You're done! Run ",(0,r.jsx)(n.code,{children:"rav1ator-cli -h"})," to get some help getting started. Happy encoding!"]}),"\n",(0,r.jsx)(n.h2,{id:"linux-other",children:"Linux (Other)"}),"\n",(0,r.jsxs)(n.p,{children:["If you're on Ubuntu, you can see the relevant section of the ",(0,r.jsx)(n.a,{href:"https://wiki.x266.mov/blog/av1-encoding-for-dummies",children:"AV1 for Dummies"})," blog post on this site for more information about doing this ",(0,r.jsx)(n.em,{children:"without"})," a distrobox. However, a distrobox is valuable because you can use Arch's fast-paced package management on other distros. Distroboxes are generally easier than Docker for beginners, and use Docker or Podman behind the scenes anyway. This tutorial will focus on using Distrobox with Podman."]}),"\n",(0,r.jsxs)(n.ol,{start:"0",children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Install Distrobox and Podman on your distro of choice. Please look up how to do this for your respective distro, and how to get everything set up properly."}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["If you already use Podman, are re-creating a Distrobox, or you already have other Distroboxes running from long enough ago where your Arch image is outdated, you might want to run ",(0,r.jsx)(n.code,{children:"podman image rm docker.io/archlinux/archlinux:latest"}),". It won't hurt to run it anyway if you're not sure. ",(0,r.jsx)(n.strong,{children:"Do this every time you make a new Distrobox if you're experiencing issues with Distrobox creation"}),"."]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["Now, run ",(0,r.jsx)(n.code,{children:"distrobox-create --name rvcli-box --image archlinux:latest"}),". You do not need to name yours \"rvcli-box\", but that's what we're going to call the box in this tutorial."]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"distrobox enter rvcli-box"})," to go inside. You are now using Arch Linux from within your existing distro!"]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["First, run ",(0,r.jsx)(n.code,{children:"sudo pacman -Syu"})," to update your system."]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["Next, run ",(0,r.jsx)(n.code,{children:"sudo pacman -S --needed base-devel git && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si"}),"."]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["Finally, ",(0,r.jsx)(n.code,{children:"yay -Syu openssl ffmpeg python mkvtoolnix-cli vapoursynth gum numactl l-smash vapoursynth-plugin-lsmashsource av1an ffms2"})," to install the necessary dependencies."]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["Download rav1ator-cli: ",(0,r.jsx)(n.code,{children:"curl -sOJ https://raw.githubusercontent.com/gianni-rosato/rav1ator-cli/main/rav1ator-cli && chmod +x rav1ator-cli"})]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["Copy rav1ator-cli to your /usr/local/bin: ",(0,r.jsx)(n.code,{children:"sudo cp rav1ator-cli /usr/local/bin"})]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["If you'd like to exit the distrobox, just do ",(0,r.jsx)(n.code,{children:"Ctrl"})," + ",(0,r.jsx)(n.code,{children:"D"}),"."]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["You're done! Run ",(0,r.jsx)(n.code,{children:"rav1ator-cli -h"})," to get some help getting started. Happy encoding!"]}),"\n",(0,r.jsx)(n.h2,{id:"windows",children:"Windows"}),"\n",(0,r.jsx)(n.admonition,{title:"Windows",type:"note",children:(0,r.jsxs)(n.p,{children:["The content in this entry was written by pat-e, or ",(0,r.jsx)(n.code,{children:"pate"})," on Discord. This tutorial focuses on Windows 11."]})}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:'Enable WSL2 on Windows 11 and Install "ArchWSL2"'})," by pat-e"]}),"\n",(0,r.jsx)(n.h3,{id:"basic-installtion",children:"Basic installtion"}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["Open the Terminal as Administrator:",(0,r.jsx)(n.br,{}),"\n",(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/01_wsl_rv-cli.avif",alt:""})]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"In the Command-Prompt, enter the following to install WSL:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-pwsh",children:"wsl.exe --install --no-distribution\n"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/02_wsl_rv-cli.avif",alt:""})}),"\n",(0,r.jsxs)(n.p,{children:['If the "Host Process for Windows Services" asks for allowing changes, approve it (Press "Yes"):',(0,r.jsx)(n.br,{}),"\n",(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/03_wsl_rv-cli.avif",alt:""})]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Once the installation of WSL is finished, restart your Computer:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-pwsh",children:"shutdown -r -f -t 1\n"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/04_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["From ",(0,r.jsx)(n.a,{href:"https://github.com/sileshn/ArchWSL2",children:"This GitHub link"}),", download the latest release of ArchWSL2 in the Releases section:",(0,r.jsx)(n.br,{}),"\n",(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/06_wsl_rv-cli.avif",alt:""})]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["On your SSD, create a folder where we will place the ArchWSL2 files. This folder ",(0,r.jsx)(n.strong,{children:"must be kept and never deleted"})," as this will contain the base files for this distribution. It is advised to use an SSD instead of an HDD. The storage must be local storage, not a network-share or a removable disk. In our example, we will create a folder located at C:\\Stuff\\ArchWSL2;",(0,r.jsx)(n.br,{}),"\n",(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/07_wsl_rv-cli.avif",alt:""})]}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/08_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:'Extract the downloaded ZIP of "ArchWSL2" into your newly created folder:'}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/09_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:'Once extracted, start the extracted "Arch.exe":'}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/10_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:'On first start, the program will create a virtual disk (VHDx). Once finished, press "Enter" to continue (it will close the window)'}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/11_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:['Once the virtual hard disk is created, restart the "arch.exe" again. It will finish some steps and ask for creating a new user-account. ',(0,r.jsx)(n.strong,{children:"This account is completely separate from your Windows user."})," Please remember the username and password you use."]}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/12_wsl_rv-cli.avif",alt:""})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/13_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"The Window will close and reopen again. As first step, update all packages. As your account you created earlier is in the sudo-group, you have to enter your password again as confirmation."}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"sudo pacman -Syu\n"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/14_wsl_rv-cli.avif",alt:""})}),"\n",(0,r.jsxs)(n.ol,{start:"11",children:["\n",(0,r.jsx)(n.li,{children:'Approve the installation of all the updates (Type "y"):'}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/15_wsl_rv-cli.avif",alt:""})}),"\n",(0,r.jsxs)(n.ol,{start:"12",children:["\n",(0,r.jsx)(n.li,{children:"Done... You can now use ArchWSL2."}),"\n"]}),"\n",(0,r.jsx)(n.h3,{id:"after-the-installation-and-cleanup-how-do-i-start-arch",children:"After the Installation and Cleanup, How Do I Start Arch?"}),"\n",(0,r.jsx)(n.p,{children:"For the start of Arch, there are 2 steps possible:"}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:'You can just start "wsl" form the command prompt, terminal or "Windows Search":'}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/20_wsl_rv-cli.avif",alt:""})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/21_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:'As another option, you can create a Shortcut to the "arch.exe" in the Installation-Folder:'}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/22_wsl_rv-cli.avif",alt:""})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/23_wsl_rv-cli.avif",alt:""})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/24_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Hint"}),': When you open the "arch.exe", you will be placed into the directory where also the "arch.exe" is located. To change to your home directory, just enter the command below:']}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"cd ~\n"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/25_wsl_rv-cli.avif",alt:""})}),"\n",(0,r.jsx)(n.h3,{id:"unlock-wsl-ram-usage-optional",children:"Unlock WSL RAM Usage (Optional)"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Hint"}),": WSL caps RAM usage at 50% of the total RAM available on your system."]}),"\n",(0,r.jsx)(n.p,{children:"When you start the VM, you will see that you only will only have 50% of your total memory available:"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/26_wsl_rv-cli.avif",alt:""})}),"\n",(0,r.jsx)(n.p,{children:"To allow more memory, you need to place a config-file in your profile-folder in Windows. See the instructions below:"}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:'Open "notepad.exe" and enter the following:'}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-txt",children:"[wsl2]\nmemory=12GB\n"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/27_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"The amount of memory should never be more than current memory. Set it to total memory minus 4GB to leave enough left over for Windows. In my example, Windows has 16GB of RAM available, so I select the memory to be 12GB."}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"When saving the file, enter the following as filename:"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"%userprofile%"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/28_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"When pressing enter, the directory will switch to your user-profile folder:"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/29_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:'Select the "Save as type" to "All files (*.*)" and save as the following filename:'}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:".wslconfig"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/30_wsl_rv-cli.avif",alt:""})}),"\n",(0,r.jsxs)(n.p,{children:["Make sure the file is saved as ",(0,r.jsx)(n.code,{children:".wslconfig"}),". Then exit notepad."]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Exit any current running WSL / Arch (exit):"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/31_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:'Open the Terminal as Administrator and "shutdown" any running WSL:'}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-pwsh",children:"wsl --shutdown\n"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/32_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Restart WSL again and check the memory settings from within Arch by running the following command:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"free -h\n"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/33_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"If you've made it this far, you should be more than ready to encode. We hope you enjoy rAV1ator CLI!"}),"\n",(0,r.jsx)(n.h2,{id:"macos",children:"macOS"}),"\n",(0,r.jsx)(n.p,{children:"No macOS support is provided at this time. It is definitely technically feasible, and I may produce a separate tool in the future with proper macOS binaries, though this would be a burden to keep up considering I don't currently see any demand for a port."}),"\n",(0,r.jsx)(n.h3,{id:"troubleshooting",children:"Troubleshooting"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["If your encode features a grey screen flashing occaisonally in the output, create a lossless intermediary of your source with x264 ",(0,r.jsx)(n.code,{children:"-qp 0"}),". This happens because of VC-1 decoding errors, and is not something I can fix."]}),"\n",(0,r.jsxs)(n.li,{children:["If you have any more questions, please join the ",(0,r.jsx)(n.a,{href:"https://discord.gg/bbQD5MjDr3",children:"AV1 for Dummies Discord server"}),". There is a rAV1ator CLI channel over there, and I am always happy to talk!"]}),"\n"]})]})}function d(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},9365:(e,n,t)=>{t.d(n,{A:()=>a});t(6540);var i=t(4164);const r={tabItem:"tabItem_Ymn6"};var s=t(4848);function a(e){let{children:n,hidden:t,className:a}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,i.A)(r.tabItem,a),hidden:t,children:n})}},1470:(e,n,t)=>{t.d(n,{A:()=>w});var i=t(6540),r=t(4164),s=t(3104),a=t(6347),o=t(205),l=t(7485),c=t(1682),h=t(679);function d(e){return i.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,i.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:n,children:t}=e;return(0,i.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:i,default:r}}=e;return{value:n,label:t,attributes:i,default:r}}))}(t);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:t}=e;const r=(0,a.W6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,l.aZ)(s),(0,i.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(r.location.search);n.set(s,e),r.replace({...r.location,search:n.toString()})}),[s,r])]}function x(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,s=u(e),[a,l]=(0,i.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const i=t.find((e=>e.default))??t[0];if(!i)throw new Error("Unexpected error: 0 tabValues");return i.value}({defaultValue:n,tabValues:s}))),[c,d]=p({queryString:t,groupId:r}),[x,g]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,s]=(0,h.Dv)(t);return[r,(0,i.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:r}),v=(()=>{const e=c??x;return m({value:e,tabValues:s})?e:null})();(0,o.A)((()=>{v&&l(v)}),[v]);return{selectedValue:a,selectValue:(0,i.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),g(e)}),[d,g,s]),tabValues:s}}var g=t(2303);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var j=t(4848);function f(e){let{className:n,block:t,selectedValue:i,selectValue:a,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.a_)(),h=e=>{const n=e.currentTarget,t=l.indexOf(n),r=o[t].value;r!==i&&(c(n),a(r))},d=e=>{let n=null;switch(e.key){case"Enter":h(e);break;case"ArrowRight":{const t=l.indexOf(e.currentTarget)+1;n=l[t]??l[0];break}case"ArrowLeft":{const t=l.indexOf(e.currentTarget)-1;n=l[t]??l[l.length-1];break}}n?.focus()};return(0,j.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":t},n),children:o.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,j.jsx)("li",{role:"tab",tabIndex:i===n?0:-1,"aria-selected":i===n,ref:e=>l.push(e),onKeyDown:d,onClick:h,...s,className:(0,r.A)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":i===n}),children:t??n},n)}))})}function b(e){let{lazy:n,children:t,selectedValue:s}=e;const a=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=a.find((e=>e.props.value===s));return e?(0,i.cloneElement)(e,{className:(0,r.A)("margin-top--md",e.props.className)}):null}return(0,j.jsx)("div",{className:"margin-top--md",children:a.map(((e,n)=>(0,i.cloneElement)(e,{key:n,hidden:e.props.value!==s})))})}function y(e){const n=x(e);return(0,j.jsxs)("div",{className:(0,r.A)("tabs-container",v.tabList),children:[(0,j.jsx)(f,{...n,...e}),(0,j.jsx)(b,{...n,...e})]})}function w(e){const n=(0,g.A)();return(0,j.jsx)(y,{...e,children:d(e.children)},String(n))}},8453:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>o});var i=t(6540);const r={},s=i.createContext(r);function a(e){const n=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),i.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8eb2df80.251d8abd.js b/assets/js/8eb2df80.251d8abd.js deleted file mode 100644 index 81714876f..000000000 --- a/assets/js/8eb2df80.251d8abd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7796],{5101:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>a,default:()=>d,frontMatter:()=>s,metadata:()=>o,toc:()=>c});var i=t(4848),r=t(8453);t(1470),t(9365);const s={title:"rav1ator-cli",sidebar_position:6,templating:!0},a="rAV1ator CLI",o={id:"utilities/rav1ator-cli",title:"rav1ator-cli",description:"rAV1ator CLI, or just rav1ator-cli, is a TUI tool that provides an interactive command line interface for encoding videos with Av1an using various different encoders including rav1e, aomenc (specifically aom-av1-lavish, as mentioned in the aomenc page), SVT-AV1, x265, and x264.",source:"@site/docs/utilities/rav1ator-cli.mdx",sourceDirName:"utilities",slug:"/utilities/rav1ator-cli",permalink:"/docs/utilities/rav1ator-cli",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/rav1ator-cli.mdx",tags:[],version:"current",sidebarPosition:6,frontMatter:{title:"rav1ator-cli",sidebar_position:6,templating:!0},sidebar:"tutorialSidebar",previous:{title:"rAV1ator",permalink:"/docs/utilities/rAV1ator"},next:{title:"NMKODER",permalink:"/docs/utilities/nmkoder"}},l={},c=[{value:"Installation",id:"installation",level:2},{value:"Linux (Arch)",id:"linux-arch",level:2},{value:"Linux (Other)",id:"linux-other",level:2},{value:"Windows",id:"windows",level:2},{value:"Basic installtion",id:"basic-installtion",level:3},{value:"After the Installation and Cleanup, How Do I Start Arch?",id:"after-the-installation-and-cleanup-how-do-i-start-arch",level:3},{value:"Unlock WSL RAM Usage (Optional)",id:"unlock-wsl-ram-usage-optional",level:3},{value:"macOS",id:"macos",level:2},{value:"Troubleshooting",id:"troubleshooting",level:3}];function h(e){const n={a:"a",admonition:"admonition",br:"br",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",img:"img",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"rav1ator-cli",children:"rAV1ator CLI"})}),"\n",(0,i.jsxs)(n.p,{children:["rAV1ator CLI, or just ",(0,i.jsx)(n.code,{children:"rav1ator-cli"}),", is a TUI tool that provides an interactive command line interface for encoding videos with ",(0,i.jsx)(n.a,{href:"/docs/utilities/av1an",children:"Av1an"})," using various different encoders including ",(0,i.jsx)(n.a,{href:"/docs/encoders/rav1e",children:"rav1e"}),", ",(0,i.jsx)(n.a,{href:"/docs/encoders/aomenc",children:"aomenc"})," (specifically aom-av1-lavish, as mentioned in the aomenc page), ",(0,i.jsx)(n.a,{href:"/docs/encoders/SVT-AV1",children:"SVT-AV1"}),", ",(0,i.jsx)(n.a,{href:"/docs/encoders/x265",children:"x265"}),", and ",(0,i.jsx)(n.a,{href:"/docs/encoders/x264",children:"x264"}),"."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:'~ > rav1ator-cli -h\nrAV1ator: CLI Edition_ v0.2.0\n\nUsage:\n\trav1ator-cli [input] [output] [--offline]\n\nDependencies (Arch): \n\trust ffmpeg python mkvtoolnix-cli vapoursynth gum numactl l-smash vapoursynth-plugin-lsmashsource av1an ffms2\n\nOptions: (Currently, only one option is useful at a time)\n\t-h, --help\t\t\tPrint this help section\n\t-l, --last-used\t\tPrint last used encode settings from history\n\t-f, --full-history\tPrint full history from ".rav1ator-cli-history" file\n\t-b, --binaries\t\tJust install binaries, then exit\n\t-x, --offline\t\tDon\'t check for updates.\n\t-a, --batch\t\t\tBatch encode. All video files in a directory specified after this flag are encoded.\n'})}),"\n",(0,i.jsx)(n.p,{children:"rAV1ator CLI can:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"Check if it is installed & up to date on its own without a package manager"}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"Download AVX2-optimized encoder binaries compiled with -O3 -flto in most cases & allow the user to install them with detailed instructions"}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"Remember encoding history and let you view your whole history or your most recent command"}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"Allow you to encode an entire directory of video files with the same settings"}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"Encode with x264, x265, aomenc, SVT-AV1, or rav1e, set a speed preset, CRF/quality value, FFmpeg parameters, and encoder parameters"}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"Generate Av1an encoding commands with the user's chosen settings & run them to encode a provided input video to an MKV output."}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"Encode from scratch, or resume a previous rAV1ator CLI encode"}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"Engage with rich interactivity features like spinners, prompts, & dropdowns"}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"Automatically error check binaries with SHA256 hashes for security & convenience"}),"\n"]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Overall, it aims to provide an easy way to encode videos on the command line with helpful visual feedback. The interactive prompts help users pick encoding settings without needing deep encoding knowledge."}),"\n",(0,i.jsx)("img",{width:"640",height:"360",src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/rav1ator_cli_demo1.avif",alt:"rAV1ator-cli: Demo 1"}),"\n",(0,i.jsx)("img",{width:"640",height:"360",src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/rav1ator_cli_demo2.avif",alt:"rAV1ator-cli: Demo 2"}),"\n",(0,i.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,i.jsx)(n.p,{children:"rAV1ator CLI is natively supported on Linux, & is supported on Windows via WSL2. A tutorial for setting up WSL2 is provided below. macOS is not supported."}),"\n",(0,i.jsx)(n.h2,{id:"linux-arch",children:"Linux (Arch)"}),"\n",(0,i.jsxs)(n.p,{children:["These instructions are for Arch Linux specifically. Other distros should be very similar, and packages that are Arch-specific will be labelled. If you're on Ubuntu, you should see the relevant section of the ",(0,i.jsx)(n.a,{href:"https://wiki.x266.mov/blog/av1-encoding-for-dummies",children:"AV1 for Dummies"})," blog post on this site."]}),"\n",(0,i.jsxs)(n.p,{children:["If you're on another distro and you want to be able to follow these instructions specifically, see the ",(0,i.jsx)(n.a,{href:"#linux-other",children:"Linux (Other)"})," section."]}),"\n",(0,i.jsxs)(n.ol,{start:"0",children:["\n",(0,i.jsx)(n.li,{children:"Update your system before doing anything. On Arch:"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"sudo pacman -Syu\n"})}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:["Install ",(0,i.jsx)(n.code,{children:"yay"})," (Arch only) by running the following commands:"]}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"sudo pacman -S --needed base-devel git\ngit clone https://aur.archlinux.org/yay.git\ncd yay && makepkg -si\n"})}),"\n",(0,i.jsxs)(n.ol,{start:"2",children:["\n",(0,i.jsx)(n.li,{children:"Next, you'll want to install all of rav1ator-cli's dependencies. You can do that by running:"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"yay -Syu openssl ffmpeg python mkvtoolnix-cli vapoursynth gum numactl l-smash vapoursynth-plugin-lsmashsource av1an ffms2\n"})}),"\n",(0,i.jsxs)(n.ol,{start:"3",children:["\n",(0,i.jsx)(n.li,{children:"Install rav1ator-cli:"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"curl -sOJ https://raw.githubusercontent.com/gianni-rosato/rav1ator-cli/main/rav1ator-cli && chmod +x rav1ator-cli\nsudo cp rav1ator-cli /usr/local/bin\n"})}),"\n",(0,i.jsxs)(n.p,{children:["You're done! Run ",(0,i.jsx)(n.code,{children:"rav1ator-cli -h"})," to get some help getting started. Happy encoding!"]}),"\n",(0,i.jsx)(n.h2,{id:"linux-other",children:"Linux (Other)"}),"\n",(0,i.jsxs)(n.p,{children:["If you're on Ubuntu, you can see the relevant section of the ",(0,i.jsx)(n.a,{href:"https://wiki.x266.mov/blog/av1-encoding-for-dummies",children:"AV1 for Dummies"})," blog post on this site for more information about doing this ",(0,i.jsx)(n.em,{children:"without"})," a distrobox. However, a distrobox is valuable because you can use Arch's fast-paced package management on other distros. Distroboxes are generally easier than Docker for beginners, and use Docker or Podman behind the scenes anyway. This tutorial will focus on using Distrobox with Podman."]}),"\n",(0,i.jsxs)(n.ol,{start:"0",children:["\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"Install Distrobox and Podman on your distro of choice. Please look up how to do this for your respective distro, and how to get everything set up properly."}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:["If you already use Podman, are re-creating a Distrobox, or you already have other Distroboxes running from long enough ago where your Arch image is outdated, you might want to run ",(0,i.jsx)(n.code,{children:"podman image rm docker.io/archlinux/archlinux:latest"}),". It won't hurt to run it anyway if you're not sure. ",(0,i.jsx)(n.strong,{children:"Do this every time you make a new Distrobox if you're experiencing issues with Distrobox creation"}),"."]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:["Now, run ",(0,i.jsx)(n.code,{children:"distrobox-create --name rvcli-box --image archlinux:latest"}),". You do not need to name yours \"rvcli-box\", but that's what we're going to call the box in this tutorial."]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"distrobox enter rvcli-box"})," to go inside. You are now using Arch Linux from within your existing distro!"]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:["First, run ",(0,i.jsx)(n.code,{children:"sudo pacman -Syu"})," to update your system."]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:["Next, run ",(0,i.jsx)(n.code,{children:"sudo pacman -S --needed base-devel git && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si"}),"."]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:["Finally, ",(0,i.jsx)(n.code,{children:"yay -Syu openssl ffmpeg python mkvtoolnix-cli vapoursynth gum numactl l-smash vapoursynth-plugin-lsmashsource av1an ffms2"})," to install the necessary dependencies."]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:["Download rav1ator-cli: ",(0,i.jsx)(n.code,{children:"curl -sOJ https://raw.githubusercontent.com/gianni-rosato/rav1ator-cli/main/rav1ator-cli && chmod +x rav1ator-cli"})]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:["Copy rav1ator-cli to your /usr/local/bin: ",(0,i.jsx)(n.code,{children:"sudo cp rav1ator-cli /usr/local/bin"})]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:["If you'd like to exit the distrobox, just do ",(0,i.jsx)(n.code,{children:"Ctrl"})," + ",(0,i.jsx)(n.code,{children:"D"}),"."]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["You're done! Run ",(0,i.jsx)(n.code,{children:"rav1ator-cli -h"})," to get some help getting started. Happy encoding!"]}),"\n",(0,i.jsx)(n.h2,{id:"windows",children:"Windows"}),"\n",(0,i.jsx)(n.admonition,{title:"Windows",type:"note",children:(0,i.jsxs)(n.p,{children:["The content in this entry was written by pat-e, or ",(0,i.jsx)(n.code,{children:"pate"})," on Discord. This tutorial focuses on Windows 11."]})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:'Enable WSL2 on Windows 11 and Install "ArchWSL2"'})," by pat-e"]}),"\n",(0,i.jsx)(n.h3,{id:"basic-installtion",children:"Basic installtion"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:["Open the Terminal as Administrator:",(0,i.jsx)(n.br,{}),"\n",(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/01_wsl_rv-cli.avif",alt:""})]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"In the Command-Prompt, enter the following to install WSL:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-pwsh",children:"wsl.exe --install --no-distribution\n"})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/02_wsl_rv-cli.avif",alt:""})}),"\n",(0,i.jsxs)(n.p,{children:['If the "Host Process for Windows Services" asks for allowing changes, approve it (Press "Yes"):',(0,i.jsx)(n.br,{}),"\n",(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/03_wsl_rv-cli.avif",alt:""})]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"Once the installation of WSL is finished, restart your Computer:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-pwsh",children:"shutdown -r -f -t 1\n"})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/04_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:["From ",(0,i.jsx)(n.a,{href:"https://github.com/sileshn/ArchWSL2",children:"This GitHub link"}),", download the latest release of ArchWSL2 in the Releases section:",(0,i.jsx)(n.br,{}),"\n",(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/06_wsl_rv-cli.avif",alt:""})]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:["On your SSD, create a folder where we will place the ArchWSL2 files. This folder ",(0,i.jsx)(n.strong,{children:"must be kept and never deleted"})," as this will contain the base files for this distribution. It is advised to use an SSD instead of an HDD. The storage must be local storage, not a network-share or a removable disk. In our example, we will create a folder located at C:\\Stuff\\ArchWSL2;",(0,i.jsx)(n.br,{}),"\n",(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/07_wsl_rv-cli.avif",alt:""})]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/08_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:'Extract the downloaded ZIP of "ArchWSL2" into your newly created folder:'}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/09_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:'Once extracted, start the extracted "Arch.exe":'}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/10_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:'On first start, the program will create a virtual disk (VHDx). Once finished, press "Enter" to continue (it will close the window)'}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/11_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:['Once the virtual hard disk is created, restart the "arch.exe" again. It will finish some steps and ask for creating a new user-account. ',(0,i.jsx)(n.strong,{children:"This account is completely separate from your Windows user."})," Please remember the username and password you use."]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/12_wsl_rv-cli.avif",alt:""})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/13_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"The Window will close and reopen again. As first step, update all packages. As your account you created earlier is in the sudo-group, you have to enter your password again as confirmation."}),"\n"]}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"sudo pacman -Syu\n"})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/14_wsl_rv-cli.avif",alt:""})}),"\n",(0,i.jsxs)(n.ol,{start:"11",children:["\n",(0,i.jsx)(n.li,{children:'Approve the installation of all the updates (Type "y"):'}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/15_wsl_rv-cli.avif",alt:""})}),"\n",(0,i.jsxs)(n.ol,{start:"12",children:["\n",(0,i.jsx)(n.li,{children:"Done... You can now use ArchWSL2."}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"after-the-installation-and-cleanup-how-do-i-start-arch",children:"After the Installation and Cleanup, How Do I Start Arch?"}),"\n",(0,i.jsx)(n.p,{children:"For the start of Arch, there are 2 steps possible:"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:'You can just start "wsl" form the command prompt, terminal or "Windows Search":'}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/20_wsl_rv-cli.avif",alt:""})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/21_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:'As another option, you can create a Shortcut to the "arch.exe" in the Installation-Folder:'}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/22_wsl_rv-cli.avif",alt:""})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/23_wsl_rv-cli.avif",alt:""})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/24_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Hint"}),': When you open the "arch.exe", you will be placed into the directory where also the "arch.exe" is located. To change to your home directory, just enter the command below:']}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"cd ~\n"})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/25_wsl_rv-cli.avif",alt:""})}),"\n",(0,i.jsx)(n.h3,{id:"unlock-wsl-ram-usage-optional",children:"Unlock WSL RAM Usage (Optional)"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"Hint"}),": WSL caps RAM usage at 50% of the total RAM available on your system."]}),"\n",(0,i.jsx)(n.p,{children:"When you start the VM, you will see that you only will only have 50% of your total memory available:"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/26_wsl_rv-cli.avif",alt:""})}),"\n",(0,i.jsx)(n.p,{children:"To allow more memory, you need to place a config-file in your profile-folder in Windows. See the instructions below:"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:'Open "notepad.exe" and enter the following:'}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-txt",children:"[wsl2]\nmemory=12GB\n"})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/27_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"The amount of memory should never be more than current memory. Set it to total memory minus 4GB to leave enough left over for Windows. In my example, Windows has 16GB of RAM available, so I select the memory to be 12GB."}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"When saving the file, enter the following as filename:"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.code,{children:"%userprofile%"})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/28_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"When pressing enter, the directory will switch to your user-profile folder:"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/29_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:'Select the "Save as type" to "All files (*.*)" and save as the following filename:'}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.code,{children:".wslconfig"})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/30_wsl_rv-cli.avif",alt:""})}),"\n",(0,i.jsxs)(n.p,{children:["Make sure the file is saved as ",(0,i.jsx)(n.code,{children:".wslconfig"}),". Then exit notepad."]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"Exit any current running WSL / Arch (exit):"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/31_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:'Open the Terminal as Administrator and "shutdown" any running WSL:'}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-pwsh",children:"wsl --shutdown\n"})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/32_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsx)(n.p,{children:"Restart WSL again and check the memory settings from within Arch by running the following command:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-bash",children:"free -h\n"})}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{src:"https://raw.githubusercontent.com/av1-community-contributors/images/main/33_wsl_rv-cli.avif",alt:""})}),"\n"]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"If you've made it this far, you should be more than ready to encode. We hope you enjoy rAV1ator CLI!"}),"\n",(0,i.jsx)(n.h2,{id:"macos",children:"macOS"}),"\n",(0,i.jsx)(n.p,{children:"No macOS support is provided at this time. It is definitely technically feasible, and I may produce a separate tool in the future with proper macOS binaries, though this would be a burden to keep up considering I don't currently see any demand for a port."}),"\n",(0,i.jsx)(n.h3,{id:"troubleshooting",children:"Troubleshooting"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["If your encode features a grey screen flashing occaisonally in the output, create a lossless intermediary of your source with x264 ",(0,i.jsx)(n.code,{children:"-qp 0"}),". This happens because of VC-1 decoding errors, and is not something I can fix."]}),"\n",(0,i.jsxs)(n.li,{children:["If you have any more questions, please join the ",(0,i.jsx)(n.a,{href:"https://discord.gg/bbQD5MjDr3",children:"AV1 for Dummies Discord server"}),". There is a rAV1ator CLI channel over there, and I am always happy to talk!"]}),"\n"]})]})}function d(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},9365:(e,n,t)=>{t.d(n,{A:()=>a});t(6540);var i=t(4164);const r={tabItem:"tabItem_Ymn6"};var s=t(4848);function a(e){let{children:n,hidden:t,className:a}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,i.A)(r.tabItem,a),hidden:t,children:n})}},1470:(e,n,t)=>{t.d(n,{A:()=>w});var i=t(6540),r=t(4164),s=t(3104),a=t(6347),o=t(205),l=t(7485),c=t(1682),h=t(679);function d(e){return i.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,i.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:n,children:t}=e;return(0,i.useMemo)((()=>{const e=n??function(e){return d(e).map((e=>{let{props:{value:n,label:t,attributes:i,default:r}}=e;return{value:n,label:t,attributes:i,default:r}}))}(t);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,t])}function m(e){let{value:n,tabValues:t}=e;return t.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:t}=e;const r=(0,a.W6)(),s=function(e){let{queryString:n=!1,groupId:t}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!t)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:n,groupId:t});return[(0,l.aZ)(s),(0,i.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(r.location.search);n.set(s,e),r.replace({...r.location,search:n.toString()})}),[s,r])]}function x(e){const{defaultValue:n,queryString:t=!1,groupId:r}=e,s=u(e),[a,l]=(0,i.useState)((()=>function(e){let{defaultValue:n,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:t}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const i=t.find((e=>e.default))??t[0];if(!i)throw new Error("Unexpected error: 0 tabValues");return i.value}({defaultValue:n,tabValues:s}))),[c,d]=p({queryString:t,groupId:r}),[x,g]=function(e){let{groupId:n}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,s]=(0,h.Dv)(t);return[r,(0,i.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:r}),v=(()=>{const e=c??x;return m({value:e,tabValues:s})?e:null})();(0,o.A)((()=>{v&&l(v)}),[v]);return{selectedValue:a,selectValue:(0,i.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),g(e)}),[d,g,s]),tabValues:s}}var g=t(2303);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var j=t(4848);function f(e){let{className:n,block:t,selectedValue:i,selectValue:a,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.a_)(),h=e=>{const n=e.currentTarget,t=l.indexOf(n),r=o[t].value;r!==i&&(c(n),a(r))},d=e=>{let n=null;switch(e.key){case"Enter":h(e);break;case"ArrowRight":{const t=l.indexOf(e.currentTarget)+1;n=l[t]??l[0];break}case"ArrowLeft":{const t=l.indexOf(e.currentTarget)-1;n=l[t]??l[l.length-1];break}}n?.focus()};return(0,j.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":t},n),children:o.map((e=>{let{value:n,label:t,attributes:s}=e;return(0,j.jsx)("li",{role:"tab",tabIndex:i===n?0:-1,"aria-selected":i===n,ref:e=>l.push(e),onKeyDown:d,onClick:h,...s,className:(0,r.A)("tabs__item",v.tabItem,s?.className,{"tabs__item--active":i===n}),children:t??n},n)}))})}function b(e){let{lazy:n,children:t,selectedValue:s}=e;const a=(Array.isArray(t)?t:[t]).filter(Boolean);if(n){const e=a.find((e=>e.props.value===s));return e?(0,i.cloneElement)(e,{className:(0,r.A)("margin-top--md",e.props.className)}):null}return(0,j.jsx)("div",{className:"margin-top--md",children:a.map(((e,n)=>(0,i.cloneElement)(e,{key:n,hidden:e.props.value!==s})))})}function y(e){const n=x(e);return(0,j.jsxs)("div",{className:(0,r.A)("tabs-container",v.tabList),children:[(0,j.jsx)(f,{...n,...e}),(0,j.jsx)(b,{...n,...e})]})}function w(e){const n=(0,g.A)();return(0,j.jsx)(y,{...e,children:d(e.children)},String(n))}},8453:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>o});var i=t(6540);const r={},s=i.createContext(r);function a(e){const n=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),i.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8ee2fdd1.82e49d7c.js b/assets/js/8ee2fdd1.82e49d7c.js new file mode 100644 index 000000000..1ad3ac2ee --- /dev/null +++ b/assets/js/8ee2fdd1.82e49d7c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8420],{4954:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>m,frontMatter:()=>r,metadata:()=>s,toc:()=>h});const s=JSON.parse('{"id":"encoders/aom-av1-lavish","title":"aom-av1-lavish","description":"This entry is about a fork of aomenc called aom-psy101. If you\'d like to learn about the mainline aomenc encoder before reading, visit our aomenc wiki entry.","source":"@site/docs/encoders/aom-av1-lavish.mdx","sourceDirName":"encoders","slug":"/encoders/aom-av1-lavish","permalink":"/docs/encoders/aom-av1-lavish","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/aom-av1-lavish.mdx","tags":[],"version":"current","sidebarPosition":18,"frontMatter":{"title":"aom-av1-lavish","sidebar_position":18,"keywords":["AV1","encoding","video encoding","AOM AV1"]},"sidebar":"tutorialSidebar","previous":{"title":"JM","permalink":"/docs/encoders/JM"},"next":{"title":"aom-psy101","permalink":"/docs/encoders/aom-psy101"}}');var a=i(4848),t=i(8453),o=i(1470),l=i(9365);const r={title:"aom-av1-lavish",sidebar_position:18,keywords:["AV1","encoding","video encoding","AOM AV1"]},c="aom-av1-lavish",d={},h=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"AV1 Encoding",id:"av1-encoding",level:3},{value:"AVIF Encoding",id:"avif-encoding",level:3},{value:"Recommendations",id:"recommendations",level:2},{value:"Tips & Tricks",id:"tips--tricks",level:2}];function u(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.header,{children:(0,a.jsx)(n.h1,{id:"aom-av1-lavish",children:"aom-av1-lavish"})}),"\n",(0,a.jsx)(n.admonition,{title:"Community Fork",type:"info",children:(0,a.jsxs)(n.p,{children:["This entry is about a fork of aomenc called aom-psy101. If you'd like to learn about the mainline aomenc encoder before reading, visit our ",(0,a.jsx)(n.a,{href:"/docs/encoders/aomenc",children:"aomenc wiki entry"}),"."]})}),"\n",(0,a.jsxs)(n.p,{children:["Mainline aomenc is unfortunately not perfect. It suffers from bad defaults, a heavy focus on the perceptually flawed ",(0,a.jsx)(n.a,{href:"/docs/metrics/PSNR",children:"PSNR"})," metric, misleading settings, and other issues. Fortunately, there are a couple of forks developed by the encoding community that were created to combat aomenc's underlying issues."]}),"\n",(0,a.jsx)(n.admonition,{title:"No Longer Maintained",type:"warning",children:(0,a.jsx)(n.p,{children:"aom-av1-lavish is no longer maintained as of 4th June 2024. The information in this entry is unaffected by this, but the fact that the project is no longer maintained should be taken into consideration as a user."})}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.a,{href:"https://github.com/BlueSwordM/aom-av1-psy",children:"aom-av1-psy"})," ",(0,a.jsx)(n.em,{children:"No longer maintained as of 13th January 2023"})]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.a,{href:"https://github.com/Clybius/aom-av1-lavish",children:"aom-av1-lavish"})," ",(0,a.jsx)(n.em,{children:"No longer maintained as of 4th June 2024"})]}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/docs/encoders/aom-psy101",children:"aom-psy101"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"https://github.com/porcino/aom-av1ador",children:"aom-av1ador"})}),"\n"]}),"\n",(0,a.jsx)(n.p,{children:"These forks fix up the poor decisions made by the original AOM devs and most importantly introduce new parameters and tunes to help fine-tune the encoder even more."}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.a,{href:"https://github.com/Clybius/aom-av1-lavish",children:"aom-av1-lavish"})," is a fork of aomenc that aims to improve the encoding quality and speed of AV1. It is developed by ",(0,a.jsx)(n.a,{href:"https://github.com/Clybius",children:"Clybius"}),", a talented AV1 community developer also well-known for working on ",(0,a.jsx)(n.a,{href:"/docs/encoders/SVT-AV1-PSY",children:"SVT-AV1-PSY"}),"."]}),"\n",(0,a.jsx)(n.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,a.jsxs)(n.p,{children:["aomenc is available in FFmpeg via ",(0,a.jsx)(n.code,{children:"libaom-av1"}),", check if you have it by running ",(0,a.jsx)(n.code,{children:"ffmpeg -h encoder=libaom-av1"}),". You can input non-FFmpeg standard aomenc parameters via ",(0,a.jsx)(n.code,{children:"-aom-params"}),"."]}),"\n",(0,a.jsx)(n.admonition,{title:"Mainline aomenc",type:"caution",children:(0,a.jsx)(n.p,{children:"Unless you compile FFmpeg yourself with aom-av1-lavish, you will be using the mainline aomenc. Compiling from source yourself with the aomenc libraries provided by aom-av1-lavish is the only way to use it with FFmpeg."})}),"\n",(0,a.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,a.jsxs)(o.A,{children:[(0,a.jsxs)(l.A,{value:"linux",label:"Linux",default:!0,children:[(0,a.jsx)(n.p,{children:(0,a.jsxs)(n.em,{children:["A precompiled AVX2-optimized binary of aom-av1-lavish can be installed for x86_64 Linux via ",(0,a.jsx)(n.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"}),". However, it is always recommended to build from source."]})}),(0,a.jsx)(n.p,{children:"But if you want to compile the community forks, you can also do that. CMake, Perl, GNU Make, and nasm (assuming x64, if x86 use yasm) will be needed for compilation."}),(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",metastring:'title="Clone the aom-av1-lavish repo Endless_Merging branch, cd and create build folder"',children:"git clone https://github.com/Clybius/aom-av1-lavish -b Endless_Merging\ncd aom-av1-lavish && mkdir -p aom_build && cd aom_build\n"})}),(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",metastring:'title="CMake configuration"',children:'cmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt" -DCMAKE_LD_FLAGS="-flto -O3 -march=native"\n'})}),(0,a.jsx)(n.p,{children:"The CMake config above will statically build aomenc while disabling docs (which requires Doxygen), extra tunes, tests, and decoders. While also applying native CPU optimizations to help speed up the encoder."}),(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",metastring:'title="Compile the encoder"',children:"make -j$(nproc)\n"})}),(0,a.jsxs)(n.p,{children:["The resulting binary will be in the same folder you are on (",(0,a.jsx)(n.code,{children:"aom_build"}),")."]}),(0,a.jsx)(n.p,{children:"Or, optionally, you can install it to your system, which may need elevated permissions."}),(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"make install\n"})})]}),(0,a.jsxs)(l.A,{value:"mac",label:"macOS",children:[(0,a.jsxs)(n.p,{children:["macOS is very similar to Linux. Note that some commands may have to be run with ",(0,a.jsx)(n.code,{children:"sudo"}),", which I won't explicitly include for security reasons."]}),(0,a.jsx)(n.p,{children:(0,a.jsx)(n.strong,{children:"Homebrew"})}),(0,a.jsx)(n.p,{children:"Installing the Homebrew package manager is a well documented process at this point:"}),(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"\n'})}),(0,a.jsx)(n.p,{children:"Installing mainline libaom is as simple as running the following:"}),(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"brew update && brew upgrade\nbrew install aom\n"})}),(0,a.jsx)(n.p,{children:"FFmpeg can also be installed via brew."}),(0,a.jsx)(n.p,{children:(0,a.jsx)(n.strong,{children:"Building From Source"})}),(0,a.jsx)(n.p,{children:"If you want aom-av1-lavish instead of mainline, you'll have to compile from source. Things are very similar to Linux, with a few oddities:"}),(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:["macOS sometimes doesn't have a ",(0,a.jsx)(n.code,{children:"/usr/local/bin"})," by default. You can fix this by doing ",(0,a.jsx)(n.code,{children:"mkdir /usr/local/bin"}),"."]}),"\n",(0,a.jsxs)(n.li,{children:["Homebrew installs ",(0,a.jsx)(n.em,{children:"everything"})," in its own directory structure. If you're building things from source that rely on libraries from libvmaf, libjxl, etc, make sure to copy them from ",(0,a.jsx)(n.code,{children:"/opt/homebrew/lib"})," to ",(0,a.jsx)(n.code,{children:"/usr/local/lib"}),". Finding them is a matter of ",(0,a.jsx)(n.code,{children:'ls | grep "keyword"'})," & copying what looks reasonable to be associated with the tool you're using."]}),"\n",(0,a.jsx)(n.li,{children:"Building most things from source will have instructions for *nix which work for both macOS & Linux. Even if it says Linux, there's a good chance it'll work on macOS as well, & it is always worth trying Linux build instructions on Mac. aom-av1-lavish requires some additional steps, though."}),"\n"]}),(0,a.jsx)(n.p,{children:"If you want to make the most out of your hardware & eke out every last drop of quality, it may be worth building aom-av1-lavish from source. The first step is to clone it from the Endless Merging branch, which contains all of the latest lavish improvements:"}),(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/Clybius/aom-av1-lavish -b Endless_Merging\ncd aom-av1-lavish\n"})}),(0,a.jsxs)(n.p,{children:["Now, you need to make some manual changes to the source code until ",(0,a.jsx)(n.a,{href:"https://github.com/Clybius/aom-av1-lavish/pull/1/files",children:"this commit"})," is merged to fix build errors."]}),(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:["Add the line ",(0,a.jsx)(n.code,{children:'#include "aq_variance.h"'})," at line 19 in ",(0,a.jsx)(n.code,{children:"av1/encoder/encodeframe_utils.c"})]}),"\n",(0,a.jsxs)(n.li,{children:["Comment out line 2546 in ",(0,a.jsx)(n.code,{children:"av1/encoder/speed_features.c"}),". This line is ",(0,a.jsx)(n.code,{children:"const int qindex_thresh_cdef_sf_s1_s3_l2[2] = { 92, 48 };"})," & becomes ",(0,a.jsx)(n.code,{children:"// const int qindex_thresh_cdef_sf_s1_s3_l2[2] = { 92, 48 };"}),"."]}),"\n"]}),(0,a.jsxs)(n.p,{children:["Now you can continue to build according to the Linux instructions below. Obviously you'll need cmake, which you can install with homebrew along with any other tools. While still in the ",(0,a.jsx)(n.code,{children:"aom-av1-lavish"})," directory:"]}),(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'mkdir -p aom_build && cd aom_build\ncmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt" -DCMAKE_LD_FLAGS="-flto -O3 -march=native"\nmake -j$(nproc)\n# This may need to be run as root. If it doesn\'t work properly, you can always copy the binary into /usr/local/bin manually:\nmake install\n'})}),(0,a.jsxs)(n.p,{children:["Now you can run ",(0,a.jsx)(n.code,{children:'aomenc --help | grep "AOMedia" -C 3'})," to see if lavish installed. If you're getting the same output as above, you may need to copy the ",(0,a.jsx)(n.code,{children:"aomenc"})," executable to ",(0,a.jsx)(n.code,{children:"/opt/local/bin"}),", ",(0,a.jsx)(n.code,{children:"/usr/local/bin"}),", & ",(0,a.jsx)(n.code,{children:"/opt/homebrew/bin"})," if you already installed mainline aomenc. Running the version info command again, the correct output should look something like this:"]}),(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"% aomenc --help | grep AOMedia -C 3\n\nIncluded encoders:\n\n av1 - AOMedia Project AV1 Encoder Psy v3.6.0 (default)\n\n Use --codec to switch to a non-default encoder.\n"})}),(0,a.jsxs)(n.p,{children:["Notice how it says ",(0,a.jsx)(n.code,{children:"AOMedia Project AV1 Encoder Psy"})," instead of ",(0,a.jsx)(n.code,{children:"AOMedia Project AV1 Encoder"}),". You should be all set after this to start using aom-av1-lavish."]})]}),(0,a.jsxs)(l.A,{value:"wind",label:"Windows",children:[(0,a.jsx)(n.p,{children:"You can download the pre-built versions, which can be found below (Current as of Sept 6, 2023):"}),(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://autumn.revolt.chat/attachments/download/-2EiZW1edcT9anApFZ1PJBEber-pJ6z02NiQBjbr28",children:"https://autumn.revolt.chat/attachments/download/-2EiZW1edcT9anApFZ1PJBEber-pJ6z02NiQBjbr28"})}),(0,a.jsxs)(n.p,{children:["Join the ",(0,a.jsx)(n.a,{href:"https://discord.gg/vpREHAvYvh",children:"AV1 Discord server"})," and head to #community-builds for updated versions, you can opt to compile it yourself with the instructions below."]}),(0,a.jsx)(n.p,{children:(0,a.jsx)(n.strong,{children:"The Compiling Route:"})}),(0,a.jsxs)(n.p,{children:["Full credits to u/Turbulent-Bend-7416 on Reddit for ",(0,a.jsx)(n.a,{href:"https://www.reddit.com/r/AV1/comments/s6eh5f/how_to_compile_av1_in_windows_without_crying",children:"this post"})," on how to compile aomenc."]}),(0,a.jsxs)(n.p,{children:["This guide requires ",(0,a.jsx)(n.strong,{children:"MSYS2"}),", specifically ",(0,a.jsx)(n.strong,{children:"MinGW-W64"}),". Install it if you haven't yet."]}),(0,a.jsx)(n.p,{children:"First, install the required dependencies:"}),(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"pacman -S cmake git perl yasm nasm python3 doxygen mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake base-devel\n"})}),(0,a.jsx)(n.p,{children:"Now, clone the aom-av1-lavish repo in the Endless_Merging branch and create the folders:"}),(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/Clybius/aom-av1-lavish -b Endless_Merging\ncd aom-av1-lavish && mkdir -p aom_build && cd aom_build\n"})}),(0,a.jsx)(n.p,{children:"Then we can start compiling with some build optimizations for your CPU:"}),(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'cmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt" -DCMAKE_LD_FLAGS="-flto -O3 -march=native"\nmake -j$(nproc)\n'})}),(0,a.jsxs)(n.p,{children:["The resulting binary will be available within your home folder of the location where you installed MSYS2 (usually ",(0,a.jsx)(n.code,{children:"C:"}),"), navigate there and the to the aom-av1-lavish folder and it should be there."]}),(0,a.jsx)(n.p,{children:'Built files should be in the "Debug" folder'}),(0,a.jsx)(n.p,{children:"Don't share binaries compiled with native CPU optimizations unless the person you're sharing to has the same CPU architecture, as this will lead to missing instructions being used and slowing down encode speeds."})]})]}),"\n",(0,a.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,a.jsx)(n.h3,{id:"av1-encoding",children:"AV1 Encoding"}),"\n",(0,a.jsx)(n.admonition,{type:"info",children:(0,a.jsx)(n.p,{children:"The way aomenc was developed requires 2-pass to take full advantage of its efficiency which include better rate controls and encoding features. So always use 2 passes when encoding."})}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",metastring:'title="Simple Y4M input with CQ 22, 1 pass, and raw ivf bitstream output"',children:"aomenc --end-usage=q --cq-level=32 --bit-depth=10 --passes=1 --ivf -o output.ivf input.y4m\n"})}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",metastring:'title="Pipe from FFmpeg"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | aomenc - --end-usage=q --cq-level=32 --bit-depth=10 --passes=1 --ivf -o output.ivf\n"})}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",metastring:'title="Pipe from FFmpeg, 2-pass, pass 1"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | aomenc - --end-usage=q --cq-level=32 --bit-depth=10 --passes=2 --pass=1 --fpf-log=aom-pass.log --ivf -o output.ivf\n"})}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",metastring:'title="Pipe from FFmpeg, 2-pass, pass 2"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | aomenc - --end-usage=q --cq-level=32 --bit-depth=10 --passes=2 --pass=2 --fpf-log=aom-pass.log --ivf -o output.ivf\n"})}),"\n",(0,a.jsx)(n.h3,{id:"avif-encoding",children:"AVIF Encoding"}),"\n",(0,a.jsx)(n.p,{children:"Using aomenc through avifenc is widely considered to be the best way to encode AVIF images, as SVT-AV1 only supports 4:2:0 chroma subsampling, rav1e isn't fast enough for still images, & the libaom team have put more effort into intra coding than the teams responsible for producing the other prominent open source AV1 encoders. A sample command for encoding AVIF looks like this:"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.code,{children:"avifenc -c aom -s 4 -j 8 -d 10 -y 444 --min 1 --max 63 -a end-usage=q -a cq-level=16 -a tune=ssim [input] output.avif"})}),"\n",(0,a.jsx)(n.p,{children:"Where:"}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"-c aom"})," is the encoder"]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"-s 4"})," is the speed. Speeds 4 & below offer the best compression quality at the expense of longer encode times."]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"-j 8"})," is the number of threads the encoder is allowed to use. Increasing this past 12 will sometimes hurt encode times, as AVIF encoding via aomenc doesn't parallelize perfectly. Test using a speed benchmark to verify which value works best for you."]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"-d 10"})," is the bit depth. Specifying a value below 10 isn't recommended, as it will hurt coding efficiency even with an 8-bit source image."]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"-y 444"})," is the chroma subsampling mode. 4:4:4 chroma subsampling tends to provide better compression than 4:2:0 with AVIF, though on some images 4:2:0 chroma subsampling might be the better choice."]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"cq-level=16"})," is how you specify quality. Lower values correspond to higher quality & filesize, while higher values mean a smaller, lower-quality output is desired. This is preceded by ",(0,a.jsx)(n.code,{children:"-a"})," because it is an aomenc option, not an avifenc one."]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"tune=ssim"})," is how the encoder handles RDO (rate-distortion optimization). This may be redundant with the default aomenc parameters, but specifying doesn't hurt to avoid an unintended change if a default is modified sometime in the future."]}),"\n"]}),"\n",(0,a.jsx)(n.h2,{id:"recommendations",children:"Recommendations"}),"\n",(0,a.jsxs)(n.p,{children:["aomenc unfortunately lacks the ability to take advantage of multiple threads, so therefore a tool like ",(0,a.jsx)(n.a,{href:"/docs/utilities/av1an",children:"Av1an"})," will be needed for parallelization. The parameters shown will be biased towards Av1an and aom-av1-lavish usage, so if you plan on using standalone aomenc then adjust as needed."]}),"\n",(0,a.jsx)(n.p,{children:"Here are some recommended parameters:"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.code,{children:"--bit-depth=10 --cpu-used=4 --end-usage=q --cq-level=24 --threads=2 --tile-columns=0 --tile-rows=0 --lag-in-frames=64 --tune-content=psy --tune=ssim --enable-keyframe-filtering=1 --disable-kf --kf-max-dist=9999 --enable-qm=1 --deltaq-mode=0 --aq-mode=0 --quant-b-adapt=1 --enable-fwd-kf=0 --arnr-strength=1 --sb-size=dynamic --enable-dnl-denoising=0 --denoise-noise-level=8"})}),"\n",(0,a.jsx)(n.p,{children:"Now let's break it down."}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--bit-depth=10"})," We're using 10bit because weird linear algebra allows the video to become smaller and reduces banding."]}),"\n"]}),"\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--cpu-used=4"})," This is the preset which ranges from 0-9, you can go to 3 if you want more efficiency, 2 if you have a lot of time, 4 is the sweet spot, and 6 if you want speed. Don't go above 6 (Worst efficiency) or even 0 (It would take WEEKS to finish)."]}),"\n"]}),"\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--end-usage=q --cq-level=24"})," This specifies that we are going to use a knockoff version of CRF level similar to x264/x265 encoders, in this case CRF 24."]}),"\n"]}),"\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--tile-columns=0 --tile-rows=0"})," This is the tiles options, where the encoder splits the videos into tiles to encode faster. See the image below (Yellow lines):"]}),"\n"]}),"\n"]}),"\n",(0,a.jsxs)("picture",{children:[(0,a.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/tiling_av1.avif?token=GHSAT0AAAAAACEZPDXIZARY5MGSTJW4SI22ZHY636A",type:"image/avif"}),(0,a.jsx)("img",{src:"https://autumn.revolt.chat/attachments/HwhZjoDsdzLZsJM2mjzX7lEDmJn1xcYNdrQqmOxPYW/tiling_av1.jpeg",alt:"Tiling",loading:"lazy"})]}),"\n",(0,a.jsxs)(n.admonition,{title:"Tile usage",type:"note",children:[(0,a.jsxs)(n.p,{children:["Do NOT use tiles for 1080p and below, use 1 ",(0,a.jsx)(n.code,{children:"tile-columns"})," at 1440p (2K), 2 ",(0,a.jsx)(n.code,{children:"tile-columns"})," and 1 ",(0,a.jsx)(n.code,{children:"tile-rows"})," for 2160p (4K)."]}),(0,a.jsxs)(n.p,{children:["If you would like an easy way to calculate the necessary number of tiles for your video, you can use ",(0,a.jsx)(n.a,{href:"https://autocompressor.net/tools/av1-calculator",children:"the AV1 Encoding Calculator"})," online or run ",(0,a.jsx)(n.a,{href:"https://github.com/gianni-rosato/av1-tile-calc",children:"this local tile calculator"}),"."]})]}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--lag-in-frames=64"})," Similar to x264/x265 ",(0,a.jsx)(n.code,{children:"rc-lookahead"}),". Sets a number of frames to look ahead for frametype and ratecontrol, allowing for better compression decision making. Setting to a value greater than 64 is generally not considered useful."]}),"\n"]}),"\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--aq-mode=0"})," adaptive quantization mode, a mostly debatable area nowadays. 0 is better most of the time but some say 1 is also good."]}),"\n"]}),"\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--tune-content=psy --tune=ssim"})," As the name suggests they are tunes that affect the video output, for the better, and for the worst."]}),"\n"]}),"\n"]}),"\n",(0,a.jsx)(n.admonition,{type:"info",children:(0,a.jsxs)(n.p,{children:["Do not use ",(0,a.jsx)(n.code,{children:"tune-content=psy"})," if you encode live action above ",(0,a.jsx)(n.code,{children:"cq-level=30"}),"."]})}),"\n",(0,a.jsx)(n.admonition,{type:"info",children:(0,a.jsxs)(n.p,{children:["If you use any of the VMAF tunes, you need to specify ",(0,a.jsx)(n.code,{children:"--vmaf-model-path="})," to where you put VMAF models in."]})}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--enable-keyframe-filtering=1"})," We're setting it to 1 because of compatibility reasons, 2 is more efficient but there are seeking issues and FFmpeg can't input it."]}),"\n"]}),"\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--sb-size=dynamic"})," Allows the encoder to use 128x128 block partitioning besides 64x64 which gives an efficiency boost."]}),"\n"]}),"\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--deltaq-mode=0"})," set to 0 b its better"]}),"\n"]}),"\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--arnr-strength=1"})," Controls how strong the filtering (smoothing) will be, always been a hot topic. Most agree on the default of 4. Others think 1 is good for 3D Pixar CGI-like and 2D animation and 4 for live action content, and a higher value for lower bitrate encodes."]}),"\n"]}),"\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--disable-kf --enable-fwd-kf=0"})," We're disabling keyframes cause Av1an already did scene detection, so we wont have to. Plus it speeds things up."]}),"\n"]}),"\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--kf-max-dist=9999"})," Maximum keyframe interval, we're setting it at the highest possible value since Av1an's scene detection keyframe interval is already 240 by default"]}),"\n"]}),"\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--enable-chroma-deltaq=1"})," --enable-qm=1 --quant-b-adapt=1`` Parameters that give you free efficiency boost, ignore it."]}),"\n"]}),"\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--enable-dnl-denoising=0"})," Disables the encoder's built-in denoising technique when grain synthesis is enabled, you can optionally set it to 1 when you have a pretty noisy video since it works quite well (NLMeans is the denoiser used)."]}),"\n"]}),"\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"--denoise-noise-level=8"})," AV1 grain synthesis, which is a technique where the encoder puts fake grain in so it looks more natural and potentially hiding video artifacts (cause grain is hard to encode and explodes bitrate usage because of their randomness). Don't attempt to use it at high values (>12) since it creates noticeable grain patterns."]}),"\n"]}),"\n"]}),"\n",(0,a.jsx)(n.admonition,{type:"info",children:(0,a.jsxs)(n.p,{children:["You can use photon noise tables as an alternative via ",(0,a.jsx)(n.code,{children:"--film-grain-table"}),", which is also conveniently available in Av1an as ",(0,a.jsx)(n.code,{children:"--photon-noise=X"})]})}),"\n",(0,a.jsx)(n.h2,{id:"tips--tricks",children:"Tips & Tricks"}),"\n",(0,a.jsxs)(n.ol,{children:["\n",(0,a.jsxs)(n.li,{children:["Use ",(0,a.jsx)(n.code,{children:"--butteraugli-resize-factor=2"})," if you use any of the butteraugli-based tunes to speed it up without much losses (lavish, butteraugli) and ",(0,a.jsx)(n.code,{children:"--butteraugli-intensity-target=250"})," to match the content light level."]}),"\n",(0,a.jsxs)(n.li,{children:["Use ",(0,a.jsx)(n.code,{children:"--arnr-maxframes"})," to set max reference frames that will be used to filter the encode, higher values would make the video blurrier at high fidelity but look better at lower bitrates."]}),"\n"]})]})}function m(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(u,{...e})}):u(e)}},9365:(e,n,i)=>{i.d(n,{A:()=>o});i(6540);var s=i(4164);const a={tabItem:"tabItem_Ymn6"};var t=i(4848);function o(e){let{children:n,hidden:i,className:o}=e;return(0,t.jsx)("div",{role:"tabpanel",className:(0,s.A)(a.tabItem,o),hidden:i,children:n})}},1470:(e,n,i)=>{i.d(n,{A:()=>w});var s=i(6540),a=i(4164),t=i(3104),o=i(6347),l=i(205),r=i(7485),c=i(1682),d=i(679);function h(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:n,children:i}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return h(e).map((e=>{let{props:{value:n,label:i,attributes:s,default:a}}=e;return{value:n,label:i,attributes:s,default:a}}))}(i);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,i])}function m(e){let{value:n,tabValues:i}=e;return i.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:i}=e;const a=(0,o.W6)(),t=function(e){let{queryString:n=!1,groupId:i}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:n,groupId:i});return[(0,r.aZ)(t),(0,s.useCallback)((e=>{if(!t)return;const n=new URLSearchParams(a.location.search);n.set(t,e),a.replace({...a.location,search:n.toString()})}),[t,a])]}function f(e){const{defaultValue:n,queryString:i=!1,groupId:a}=e,t=u(e),[o,r]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=i.find((e=>e.default))??i[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:t}))),[c,h]=p({queryString:i,groupId:a}),[f,g]=function(e){let{groupId:n}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,t]=(0,d.Dv)(i);return[a,(0,s.useCallback)((e=>{i&&t.set(e)}),[i,t])]}({groupId:a}),b=(()=>{const e=c??f;return m({value:e,tabValues:t})?e:null})();(0,l.A)((()=>{b&&r(b)}),[b]);return{selectedValue:o,selectValue:(0,s.useCallback)((e=>{if(!m({value:e,tabValues:t}))throw new Error(`Can't select invalid tab value=${e}`);r(e),h(e),g(e)}),[h,g,t]),tabValues:t}}var g=i(2303);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=i(4848);function v(e){let{className:n,block:i,selectedValue:s,selectValue:o,tabValues:l}=e;const r=[],{blockElementScrollPositionUntilNextRender:c}=(0,t.a_)(),d=e=>{const n=e.currentTarget,i=r.indexOf(n),a=l[i].value;a!==s&&(c(n),o(a))},h=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=r.indexOf(e.currentTarget)+1;n=r[i]??r[0];break}case"ArrowLeft":{const i=r.indexOf(e.currentTarget)-1;n=r[i]??r[r.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.A)("tabs",{"tabs--block":i},n),children:l.map((e=>{let{value:n,label:i,attributes:t}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>r.push(e),onKeyDown:h,onClick:d,...t,className:(0,a.A)("tabs__item",b.tabItem,t?.className,{"tabs__item--active":s===n}),children:i??n},n)}))})}function j(e){let{lazy:n,children:i,selectedValue:t}=e;const o=(Array.isArray(i)?i:[i]).filter(Boolean);if(n){const e=o.find((e=>e.props.value===t));return e?(0,s.cloneElement)(e,{className:(0,a.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:o.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function y(e){const n=f(e);return(0,x.jsxs)("div",{className:(0,a.A)("tabs-container",b.tabList),children:[(0,x.jsx)(v,{...n,...e}),(0,x.jsx)(j,{...n,...e})]})}function w(e){const n=(0,g.A)();return(0,x.jsx)(y,{...e,children:h(e.children)},String(n))}},8453:(e,n,i)=>{i.d(n,{R:()=>o,x:()=>l});var s=i(6540);const a={},t=s.createContext(a);function o(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8ee2fdd1.a6b4589f.js b/assets/js/8ee2fdd1.a6b4589f.js deleted file mode 100644 index 1413bbf13..000000000 --- a/assets/js/8ee2fdd1.a6b4589f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8420],{4335:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>r,default:()=>m,frontMatter:()=>l,metadata:()=>c,toc:()=>h});var s=i(4848),a=i(8453),t=i(1470),o=i(9365);const l={title:"aom-av1-lavish",sidebar_position:18,keywords:["AV1","encoding","video encoding","AOM AV1"]},r="aom-av1-lavish",c={id:"encoders/aom-av1-lavish",title:"aom-av1-lavish",description:"This entry is about a fork of aomenc called aom-psy101. If you'd like to learn about the mainline aomenc encoder before reading, visit our aomenc wiki entry.",source:"@site/docs/encoders/aom-av1-lavish.mdx",sourceDirName:"encoders",slug:"/encoders/aom-av1-lavish",permalink:"/docs/encoders/aom-av1-lavish",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/aom-av1-lavish.mdx",tags:[],version:"current",sidebarPosition:18,frontMatter:{title:"aom-av1-lavish",sidebar_position:18,keywords:["AV1","encoding","video encoding","AOM AV1"]},sidebar:"tutorialSidebar",previous:{title:"JM",permalink:"/docs/encoders/JM"},next:{title:"aom-psy101",permalink:"/docs/encoders/aom-psy101"}},d={},h=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"AV1 Encoding",id:"av1-encoding",level:3},{value:"AVIF Encoding",id:"avif-encoding",level:3},{value:"Recommendations",id:"recommendations",level:2},{value:"Tips & Tricks",id:"tips--tricks",level:2}];function u(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"aom-av1-lavish",children:"aom-av1-lavish"})}),"\n",(0,s.jsx)(n.admonition,{title:"Community Fork",type:"info",children:(0,s.jsxs)(n.p,{children:["This entry is about a fork of aomenc called aom-psy101. If you'd like to learn about the mainline aomenc encoder before reading, visit our ",(0,s.jsx)(n.a,{href:"/docs/encoders/aomenc",children:"aomenc wiki entry"}),"."]})}),"\n",(0,s.jsxs)(n.p,{children:["Mainline aomenc is unfortunately not perfect. It suffers from bad defaults, a heavy focus on the perceptually flawed ",(0,s.jsx)(n.a,{href:"/docs/metrics/PSNR",children:"PSNR"})," metric, misleading settings, and other issues. Fortunately, there are a couple of forks developed by the encoding community that were created to combat aomenc's underlying issues."]}),"\n",(0,s.jsx)(n.admonition,{title:"No Longer Maintained",type:"warning",children:(0,s.jsx)(n.p,{children:"aom-av1-lavish is no longer maintained as of 4th June 2024. The information in this entry is unaffected by this, but the fact that the project is no longer maintained should be taken into consideration as a user."})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"https://github.com/BlueSwordM/aom-av1-psy",children:"aom-av1-psy"})," ",(0,s.jsx)(n.em,{children:"No longer maintained as of 13th January 2023"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"https://github.com/Clybius/aom-av1-lavish",children:"aom-av1-lavish"})," ",(0,s.jsx)(n.em,{children:"No longer maintained as of 4th June 2024"})]}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/docs/encoders/aom-psy101",children:"aom-psy101"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"https://github.com/porcino/aom-av1ador",children:"aom-av1ador"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"These forks fix up the poor decisions made by the original AOM devs and most importantly introduce new parameters and tunes to help fine-tune the encoder even more."}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"https://github.com/Clybius/aom-av1-lavish",children:"aom-av1-lavish"})," is a fork of aomenc that aims to improve the encoding quality and speed of AV1. It is developed by ",(0,s.jsx)(n.a,{href:"https://github.com/Clybius",children:"Clybius"}),", a talented AV1 community developer also well-known for working on ",(0,s.jsx)(n.a,{href:"/docs/encoders/SVT-AV1-PSY",children:"SVT-AV1-PSY"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,s.jsxs)(n.p,{children:["aomenc is available in FFmpeg via ",(0,s.jsx)(n.code,{children:"libaom-av1"}),", check if you have it by running ",(0,s.jsx)(n.code,{children:"ffmpeg -h encoder=libaom-av1"}),". You can input non-FFmpeg standard aomenc parameters via ",(0,s.jsx)(n.code,{children:"-aom-params"}),"."]}),"\n",(0,s.jsx)(n.admonition,{title:"Mainline aomenc",type:"caution",children:(0,s.jsx)(n.p,{children:"Unless you compile FFmpeg yourself with aom-av1-lavish, you will be using the mainline aomenc. Compiling from source yourself with the aomenc libraries provided by aom-av1-lavish is the only way to use it with FFmpeg."})}),"\n",(0,s.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsxs)(t.A,{children:[(0,s.jsxs)(o.A,{value:"linux",label:"Linux",default:!0,children:[(0,s.jsx)(n.p,{children:(0,s.jsxs)(n.em,{children:["A precompiled AVX2-optimized binary of aom-av1-lavish can be installed for x86_64 Linux via ",(0,s.jsx)(n.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"}),". However, it is always recommended to build from source."]})}),(0,s.jsx)(n.p,{children:"But if you want to compile the community forks, you can also do that. CMake, Perl, GNU Make, and nasm (assuming x64, if x86 use yasm) will be needed for compilation."}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Clone the aom-av1-lavish repo Endless_Merging branch, cd and create build folder"',children:"git clone https://github.com/Clybius/aom-av1-lavish -b Endless_Merging\ncd aom-av1-lavish && mkdir -p aom_build && cd aom_build\n"})}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="CMake configuration"',children:'cmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt" -DCMAKE_LD_FLAGS="-flto -O3 -march=native"\n'})}),(0,s.jsx)(n.p,{children:"The CMake config above will statically build aomenc while disabling docs (which requires Doxygen), extra tunes, tests, and decoders. While also applying native CPU optimizations to help speed up the encoder."}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Compile the encoder"',children:"make -j$(nproc)\n"})}),(0,s.jsxs)(n.p,{children:["The resulting binary will be in the same folder you are on (",(0,s.jsx)(n.code,{children:"aom_build"}),")."]}),(0,s.jsx)(n.p,{children:"Or, optionally, you can install it to your system, which may need elevated permissions."}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"make install\n"})})]}),(0,s.jsxs)(o.A,{value:"mac",label:"macOS",children:[(0,s.jsxs)(n.p,{children:["macOS is very similar to Linux. Note that some commands may have to be run with ",(0,s.jsx)(n.code,{children:"sudo"}),", which I won't explicitly include for security reasons."]}),(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Homebrew"})}),(0,s.jsx)(n.p,{children:"Installing the Homebrew package manager is a well documented process at this point:"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"\n'})}),(0,s.jsx)(n.p,{children:"Installing mainline libaom is as simple as running the following:"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"brew update && brew upgrade\nbrew install aom\n"})}),(0,s.jsx)(n.p,{children:"FFmpeg can also be installed via brew."}),(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"Building From Source"})}),(0,s.jsx)(n.p,{children:"If you want aom-av1-lavish instead of mainline, you'll have to compile from source. Things are very similar to Linux, with a few oddities:"}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["macOS sometimes doesn't have a ",(0,s.jsx)(n.code,{children:"/usr/local/bin"})," by default. You can fix this by doing ",(0,s.jsx)(n.code,{children:"mkdir /usr/local/bin"}),"."]}),"\n",(0,s.jsxs)(n.li,{children:["Homebrew installs ",(0,s.jsx)(n.em,{children:"everything"})," in its own directory structure. If you're building things from source that rely on libraries from libvmaf, libjxl, etc, make sure to copy them from ",(0,s.jsx)(n.code,{children:"/opt/homebrew/lib"})," to ",(0,s.jsx)(n.code,{children:"/usr/local/lib"}),". Finding them is a matter of ",(0,s.jsx)(n.code,{children:'ls | grep "keyword"'})," & copying what looks reasonable to be associated with the tool you're using."]}),"\n",(0,s.jsx)(n.li,{children:"Building most things from source will have instructions for *nix which work for both macOS & Linux. Even if it says Linux, there's a good chance it'll work on macOS as well, & it is always worth trying Linux build instructions on Mac. aom-av1-lavish requires some additional steps, though."}),"\n"]}),(0,s.jsx)(n.p,{children:"If you want to make the most out of your hardware & eke out every last drop of quality, it may be worth building aom-av1-lavish from source. The first step is to clone it from the Endless Merging branch, which contains all of the latest lavish improvements:"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/Clybius/aom-av1-lavish -b Endless_Merging\ncd aom-av1-lavish\n"})}),(0,s.jsxs)(n.p,{children:["Now, you need to make some manual changes to the source code until ",(0,s.jsx)(n.a,{href:"https://github.com/Clybius/aom-av1-lavish/pull/1/files",children:"this commit"})," is merged to fix build errors."]}),(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Add the line ",(0,s.jsx)(n.code,{children:'#include "aq_variance.h"'})," at line 19 in ",(0,s.jsx)(n.code,{children:"av1/encoder/encodeframe_utils.c"})]}),"\n",(0,s.jsxs)(n.li,{children:["Comment out line 2546 in ",(0,s.jsx)(n.code,{children:"av1/encoder/speed_features.c"}),". This line is ",(0,s.jsx)(n.code,{children:"const int qindex_thresh_cdef_sf_s1_s3_l2[2] = { 92, 48 };"})," & becomes ",(0,s.jsx)(n.code,{children:"// const int qindex_thresh_cdef_sf_s1_s3_l2[2] = { 92, 48 };"}),"."]}),"\n"]}),(0,s.jsxs)(n.p,{children:["Now you can continue to build according to the Linux instructions below. Obviously you'll need cmake, which you can install with homebrew along with any other tools. While still in the ",(0,s.jsx)(n.code,{children:"aom-av1-lavish"})," directory:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'mkdir -p aom_build && cd aom_build\ncmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt" -DCMAKE_LD_FLAGS="-flto -O3 -march=native"\nmake -j$(nproc)\n# This may need to be run as root. If it doesn\'t work properly, you can always copy the binary into /usr/local/bin manually:\nmake install\n'})}),(0,s.jsxs)(n.p,{children:["Now you can run ",(0,s.jsx)(n.code,{children:'aomenc --help | grep "AOMedia" -C 3'})," to see if lavish installed. If you're getting the same output as above, you may need to copy the ",(0,s.jsx)(n.code,{children:"aomenc"})," executable to ",(0,s.jsx)(n.code,{children:"/opt/local/bin"}),", ",(0,s.jsx)(n.code,{children:"/usr/local/bin"}),", & ",(0,s.jsx)(n.code,{children:"/opt/homebrew/bin"})," if you already installed mainline aomenc. Running the version info command again, the correct output should look something like this:"]}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"% aomenc --help | grep AOMedia -C 3\n\nIncluded encoders:\n\n av1 - AOMedia Project AV1 Encoder Psy v3.6.0 (default)\n\n Use --codec to switch to a non-default encoder.\n"})}),(0,s.jsxs)(n.p,{children:["Notice how it says ",(0,s.jsx)(n.code,{children:"AOMedia Project AV1 Encoder Psy"})," instead of ",(0,s.jsx)(n.code,{children:"AOMedia Project AV1 Encoder"}),". You should be all set after this to start using aom-av1-lavish."]})]}),(0,s.jsxs)(o.A,{value:"wind",label:"Windows",children:[(0,s.jsx)(n.p,{children:"You can download the pre-built versions, which can be found below (Current as of Sept 6, 2023):"}),(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://autumn.revolt.chat/attachments/download/-2EiZW1edcT9anApFZ1PJBEber-pJ6z02NiQBjbr28",children:"https://autumn.revolt.chat/attachments/download/-2EiZW1edcT9anApFZ1PJBEber-pJ6z02NiQBjbr28"})}),(0,s.jsxs)(n.p,{children:["Join the ",(0,s.jsx)(n.a,{href:"https://discord.gg/vpREHAvYvh",children:"AV1 Discord server"})," and head to #community-builds for updated versions, you can opt to compile it yourself with the instructions below."]}),(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:"The Compiling Route:"})}),(0,s.jsxs)(n.p,{children:["Full credits to u/Turbulent-Bend-7416 on Reddit for ",(0,s.jsx)(n.a,{href:"https://www.reddit.com/r/AV1/comments/s6eh5f/how_to_compile_av1_in_windows_without_crying",children:"this post"})," on how to compile aomenc."]}),(0,s.jsxs)(n.p,{children:["This guide requires ",(0,s.jsx)(n.strong,{children:"MSYS2"}),", specifically ",(0,s.jsx)(n.strong,{children:"MinGW-W64"}),". Install it if you haven't yet."]}),(0,s.jsx)(n.p,{children:"First, install the required dependencies:"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"pacman -S cmake git perl yasm nasm python3 doxygen mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake base-devel\n"})}),(0,s.jsx)(n.p,{children:"Now, clone the aom-av1-lavish repo in the Endless_Merging branch and create the folders:"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/Clybius/aom-av1-lavish -b Endless_Merging\ncd aom-av1-lavish && mkdir -p aom_build && cd aom_build\n"})}),(0,s.jsx)(n.p,{children:"Then we can start compiling with some build optimizations for your CPU:"}),(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'cmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt" -DCMAKE_LD_FLAGS="-flto -O3 -march=native"\nmake -j$(nproc)\n'})}),(0,s.jsxs)(n.p,{children:["The resulting binary will be available within your home folder of the location where you installed MSYS2 (usually ",(0,s.jsx)(n.code,{children:"C:"}),"), navigate there and the to the aom-av1-lavish folder and it should be there."]}),(0,s.jsx)(n.p,{children:'Built files should be in the "Debug" folder'}),(0,s.jsx)(n.p,{children:"Don't share binaries compiled with native CPU optimizations unless the person you're sharing to has the same CPU architecture, as this will lead to missing instructions being used and slowing down encode speeds."})]})]}),"\n",(0,s.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(n.h3,{id:"av1-encoding",children:"AV1 Encoding"}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsx)(n.p,{children:"The way aomenc was developed requires 2-pass to take full advantage of its efficiency which include better rate controls and encoding features. So always use 2 passes when encoding."})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Simple Y4M input with CQ 22, 1 pass, and raw ivf bitstream output"',children:"aomenc --end-usage=q --cq-level=32 --bit-depth=10 --passes=1 --ivf -o output.ivf input.y4m\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Pipe from FFmpeg"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | aomenc - --end-usage=q --cq-level=32 --bit-depth=10 --passes=1 --ivf -o output.ivf\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Pipe from FFmpeg, 2-pass, pass 1"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | aomenc - --end-usage=q --cq-level=32 --bit-depth=10 --passes=2 --pass=1 --fpf-log=aom-pass.log --ivf -o output.ivf\n"})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",metastring:'title="Pipe from FFmpeg, 2-pass, pass 2"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | aomenc - --end-usage=q --cq-level=32 --bit-depth=10 --passes=2 --pass=2 --fpf-log=aom-pass.log --ivf -o output.ivf\n"})}),"\n",(0,s.jsx)(n.h3,{id:"avif-encoding",children:"AVIF Encoding"}),"\n",(0,s.jsx)(n.p,{children:"Using aomenc through avifenc is widely considered to be the best way to encode AVIF images, as SVT-AV1 only supports 4:2:0 chroma subsampling, rav1e isn't fast enough for still images, & the libaom team have put more effort into intra coding than the teams responsible for producing the other prominent open source AV1 encoders. A sample command for encoding AVIF looks like this:"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"avifenc -c aom -s 4 -j 8 -d 10 -y 444 --min 1 --max 63 -a end-usage=q -a cq-level=16 -a tune=ssim [input] output.avif"})}),"\n",(0,s.jsx)(n.p,{children:"Where:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"-c aom"})," is the encoder"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"-s 4"})," is the speed. Speeds 4 & below offer the best compression quality at the expense of longer encode times."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"-j 8"})," is the number of threads the encoder is allowed to use. Increasing this past 12 will sometimes hurt encode times, as AVIF encoding via aomenc doesn't parallelize perfectly. Test using a speed benchmark to verify which value works best for you."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"-d 10"})," is the bit depth. Specifying a value below 10 isn't recommended, as it will hurt coding efficiency even with an 8-bit source image."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"-y 444"})," is the chroma subsampling mode. 4:4:4 chroma subsampling tends to provide better compression than 4:2:0 with AVIF, though on some images 4:2:0 chroma subsampling might be the better choice."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"cq-level=16"})," is how you specify quality. Lower values correspond to higher quality & filesize, while higher values mean a smaller, lower-quality output is desired. This is preceded by ",(0,s.jsx)(n.code,{children:"-a"})," because it is an aomenc option, not an avifenc one."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"tune=ssim"})," is how the encoder handles RDO (rate-distortion optimization). This may be redundant with the default aomenc parameters, but specifying doesn't hurt to avoid an unintended change if a default is modified sometime in the future."]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"recommendations",children:"Recommendations"}),"\n",(0,s.jsxs)(n.p,{children:["aomenc unfortunately lacks the ability to take advantage of multiple threads, so therefore a tool like ",(0,s.jsx)(n.a,{href:"/docs/utilities/av1an",children:"Av1an"})," will be needed for parallelization. The parameters shown will be biased towards Av1an and aom-av1-lavish usage, so if you plan on using standalone aomenc then adjust as needed."]}),"\n",(0,s.jsx)(n.p,{children:"Here are some recommended parameters:"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"--bit-depth=10 --cpu-used=4 --end-usage=q --cq-level=24 --threads=2 --tile-columns=0 --tile-rows=0 --lag-in-frames=64 --tune-content=psy --tune=ssim --enable-keyframe-filtering=1 --disable-kf --kf-max-dist=9999 --enable-qm=1 --deltaq-mode=0 --aq-mode=0 --quant-b-adapt=1 --enable-fwd-kf=0 --arnr-strength=1 --sb-size=dynamic --enable-dnl-denoising=0 --denoise-noise-level=8"})}),"\n",(0,s.jsx)(n.p,{children:"Now let's break it down."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--bit-depth=10"})," We're using 10bit because weird linear algebra allows the video to become smaller and reduces banding."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--cpu-used=4"})," This is the preset which ranges from 0-9, you can go to 3 if you want more efficiency, 2 if you have a lot of time, 4 is the sweet spot, and 6 if you want speed. Don't go above 6 (Worst efficiency) or even 0 (It would take WEEKS to finish)."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--end-usage=q --cq-level=24"})," This specifies that we are going to use a knockoff version of CRF level similar to x264/x265 encoders, in this case CRF 24."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--tile-columns=0 --tile-rows=0"})," This is the tiles options, where the encoder splits the videos into tiles to encode faster. See the image below (Yellow lines):"]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/images/main/tiling_av1.avif?token=GHSAT0AAAAAACEZPDXIZARY5MGSTJW4SI22ZHY636A",type:"image/avif"}),(0,s.jsx)("img",{src:"https://autumn.revolt.chat/attachments/HwhZjoDsdzLZsJM2mjzX7lEDmJn1xcYNdrQqmOxPYW/tiling_av1.jpeg",alt:"Tiling",loading:"lazy"})]}),"\n",(0,s.jsxs)(n.admonition,{title:"Tile usage",type:"note",children:[(0,s.jsxs)(n.p,{children:["Do NOT use tiles for 1080p and below, use 1 ",(0,s.jsx)(n.code,{children:"tile-columns"})," at 1440p (2K), 2 ",(0,s.jsx)(n.code,{children:"tile-columns"})," and 1 ",(0,s.jsx)(n.code,{children:"tile-rows"})," for 2160p (4K)."]}),(0,s.jsxs)(n.p,{children:["If you would like an easy way to calculate the necessary number of tiles for your video, you can use ",(0,s.jsx)(n.a,{href:"https://autocompressor.net/tools/av1-calculator",children:"the AV1 Encoding Calculator"})," online or run ",(0,s.jsx)(n.a,{href:"https://github.com/gianni-rosato/av1-tile-calc",children:"this local tile calculator"}),"."]})]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--lag-in-frames=64"})," Similar to x264/x265 ",(0,s.jsx)(n.code,{children:"rc-lookahead"}),". Sets a number of frames to look ahead for frametype and ratecontrol, allowing for better compression decision making. Setting to a value greater than 64 is generally not considered useful."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--aq-mode=0"})," adaptive quantization mode, a mostly debatable area nowadays. 0 is better most of the time but some say 1 is also good."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--tune-content=psy --tune=ssim"})," As the name suggests they are tunes that affect the video output, for the better, and for the worst."]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["Do not use ",(0,s.jsx)(n.code,{children:"tune-content=psy"})," if you encode live action above ",(0,s.jsx)(n.code,{children:"cq-level=30"}),"."]})}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["If you use any of the VMAF tunes, you need to specify ",(0,s.jsx)(n.code,{children:"--vmaf-model-path="})," to where you put VMAF models in."]})}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-keyframe-filtering=1"})," We're setting it to 1 because of compatibility reasons, 2 is more efficient but there are seeking issues and FFmpeg can't input it."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--sb-size=dynamic"})," Allows the encoder to use 128x128 block partitioning besides 64x64 which gives an efficiency boost."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--deltaq-mode=0"})," set to 0 b its better"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--arnr-strength=1"})," Controls how strong the filtering (smoothing) will be, always been a hot topic. Most agree on the default of 4. Others think 1 is good for 3D Pixar CGI-like and 2D animation and 4 for live action content, and a higher value for lower bitrate encodes."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--disable-kf --enable-fwd-kf=0"})," We're disabling keyframes cause Av1an already did scene detection, so we wont have to. Plus it speeds things up."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--kf-max-dist=9999"})," Maximum keyframe interval, we're setting it at the highest possible value since Av1an's scene detection keyframe interval is already 240 by default"]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-chroma-deltaq=1"})," --enable-qm=1 --quant-b-adapt=1`` Parameters that give you free efficiency boost, ignore it."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--enable-dnl-denoising=0"})," Disables the encoder's built-in denoising technique when grain synthesis is enabled, you can optionally set it to 1 when you have a pretty noisy video since it works quite well (NLMeans is the denoiser used)."]}),"\n"]}),"\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"--denoise-noise-level=8"})," AV1 grain synthesis, which is a technique where the encoder puts fake grain in so it looks more natural and potentially hiding video artifacts (cause grain is hard to encode and explodes bitrate usage because of their randomness). Don't attempt to use it at high values (>12) since it creates noticeable grain patterns."]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.admonition,{type:"info",children:(0,s.jsxs)(n.p,{children:["You can use photon noise tables as an alternative via ",(0,s.jsx)(n.code,{children:"--film-grain-table"}),", which is also conveniently available in Av1an as ",(0,s.jsx)(n.code,{children:"--photon-noise=X"})]})}),"\n",(0,s.jsx)(n.h2,{id:"tips--tricks",children:"Tips & Tricks"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{children:["Use ",(0,s.jsx)(n.code,{children:"--butteraugli-resize-factor=2"})," if you use any of the butteraugli-based tunes to speed it up without much losses (lavish, butteraugli) and ",(0,s.jsx)(n.code,{children:"--butteraugli-intensity-target=250"})," to match the content light level."]}),"\n",(0,s.jsxs)(n.li,{children:["Use ",(0,s.jsx)(n.code,{children:"--arnr-maxframes"})," to set max reference frames that will be used to filter the encode, higher values would make the video blurrier at high fidelity but look better at lower bitrates."]}),"\n"]})]})}function m(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},9365:(e,n,i)=>{i.d(n,{A:()=>o});i(6540);var s=i(4164);const a={tabItem:"tabItem_Ymn6"};var t=i(4848);function o(e){let{children:n,hidden:i,className:o}=e;return(0,t.jsx)("div",{role:"tabpanel",className:(0,s.A)(a.tabItem,o),hidden:i,children:n})}},1470:(e,n,i)=>{i.d(n,{A:()=>w});var s=i(6540),a=i(4164),t=i(3104),o=i(6347),l=i(205),r=i(7485),c=i(1682),d=i(679);function h(e){return s.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,s.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:n,children:i}=e;return(0,s.useMemo)((()=>{const e=n??function(e){return h(e).map((e=>{let{props:{value:n,label:i,attributes:s,default:a}}=e;return{value:n,label:i,attributes:s,default:a}}))}(i);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,i])}function m(e){let{value:n,tabValues:i}=e;return i.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:i}=e;const a=(0,o.W6)(),t=function(e){let{queryString:n=!1,groupId:i}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:n,groupId:i});return[(0,r.aZ)(t),(0,s.useCallback)((e=>{if(!t)return;const n=new URLSearchParams(a.location.search);n.set(t,e),a.replace({...a.location,search:n.toString()})}),[t,a])]}function f(e){const{defaultValue:n,queryString:i=!1,groupId:a}=e,t=u(e),[o,r]=(0,s.useState)((()=>function(e){let{defaultValue:n,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const s=i.find((e=>e.default))??i[0];if(!s)throw new Error("Unexpected error: 0 tabValues");return s.value}({defaultValue:n,tabValues:t}))),[c,h]=p({queryString:i,groupId:a}),[f,g]=function(e){let{groupId:n}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,t]=(0,d.Dv)(i);return[a,(0,s.useCallback)((e=>{i&&t.set(e)}),[i,t])]}({groupId:a}),b=(()=>{const e=c??f;return m({value:e,tabValues:t})?e:null})();(0,l.A)((()=>{b&&r(b)}),[b]);return{selectedValue:o,selectValue:(0,s.useCallback)((e=>{if(!m({value:e,tabValues:t}))throw new Error(`Can't select invalid tab value=${e}`);r(e),h(e),g(e)}),[h,g,t]),tabValues:t}}var g=i(2303);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=i(4848);function v(e){let{className:n,block:i,selectedValue:s,selectValue:o,tabValues:l}=e;const r=[],{blockElementScrollPositionUntilNextRender:c}=(0,t.a_)(),d=e=>{const n=e.currentTarget,i=r.indexOf(n),a=l[i].value;a!==s&&(c(n),o(a))},h=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=r.indexOf(e.currentTarget)+1;n=r[i]??r[0];break}case"ArrowLeft":{const i=r.indexOf(e.currentTarget)-1;n=r[i]??r[r.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.A)("tabs",{"tabs--block":i},n),children:l.map((e=>{let{value:n,label:i,attributes:t}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:s===n?0:-1,"aria-selected":s===n,ref:e=>r.push(e),onKeyDown:h,onClick:d,...t,className:(0,a.A)("tabs__item",b.tabItem,t?.className,{"tabs__item--active":s===n}),children:i??n},n)}))})}function j(e){let{lazy:n,children:i,selectedValue:t}=e;const o=(Array.isArray(i)?i:[i]).filter(Boolean);if(n){const e=o.find((e=>e.props.value===t));return e?(0,s.cloneElement)(e,{className:(0,a.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:o.map(((e,n)=>(0,s.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function y(e){const n=f(e);return(0,x.jsxs)("div",{className:(0,a.A)("tabs-container",b.tabList),children:[(0,x.jsx)(v,{...n,...e}),(0,x.jsx)(j,{...n,...e})]})}function w(e){const n=(0,g.A)();return(0,x.jsx)(y,{...e,children:h(e.children)},String(n))}},8453:(e,n,i)=>{i.d(n,{R:()=>o,x:()=>l});var s=i(6540);const a={},t=s.createContext(a);function o(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8f6f5e4c.428525cb.js b/assets/js/8f6f5e4c.428525cb.js deleted file mode 100644 index 702117a6b..000000000 --- a/assets/js/8f6f5e4c.428525cb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8760],{4216:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>a,contentTitle:()=>t,default:()=>h,frontMatter:()=>i,metadata:()=>l,toc:()=>d});var o=r(4848),s=r(8453);const i={title:"Color Formats",sidebar_position:2},t="Color Formats",l={id:"colorimetry/format",title:"Color Formats",description:"To represent color values, a format is agreed upon. Color formats are",source:"@site/docs/colorimetry/format.mdx",sourceDirName:"colorimetry",slug:"/colorimetry/format",permalink:"/docs/colorimetry/format",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/colorimetry/format.mdx",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"Color Formats",sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"Intro",permalink:"/docs/colorimetry/intro"},next:{title:"Color Range",permalink:"/docs/colorimetry/range"}},a={},d=[{value:"Color Models",id:"color-models",level:2},{value:"RGB",id:"rgb",level:3},{value:"YUV",id:"yuv",level:3},{value:"Component order",id:"component-order",level:3},{value:"Bit depth",id:"bit-depth",level:2},{value:"Packed vs planar",id:"packed-vs-planar",level:2},{value:"Endianness",id:"endianness",level:2},{value:"Chroma subsampling",id:"chroma-subsampling",level:2},{value:"Common formats",id:"common-formats",level:2},{value:"References",id:"references",level:2}];function c(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",section:"section",sup:"sup",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"color-formats",children:"Color Formats"})}),"\n",(0,o.jsxs)(n.p,{children:["To represent color values, a format is agreed upon. Color formats are\nmade up of three things, the ",(0,o.jsx)(n.a,{href:"#color-models",children:"color model"}),"--which includes the\n",(0,o.jsx)(n.a,{href:"#component-order",children:"order of the components"})," and sometimes ",(0,o.jsx)(n.a,{href:"#chroma-subsampling",children:"chroma subsampling"}),"--\nthe ",(0,o.jsx)(n.a,{href:"#bit-depth",children:"bit depth"}),", and whether it is a ",(0,o.jsx)(n.a,{href:"#packed-vs-planar",children:"packed or a planar format"}),".\nIn some cases, ",(0,o.jsx)(n.a,{href:"#endianness",children:"endianness"})," may be important."]}),"\n",(0,o.jsx)(n.h2,{id:"color-models",children:"Color Models"}),"\n",(0,o.jsx)(n.p,{children:"A color model is a method of representing colors in a video or image using data.\nDifferent color models store color and brightness information in different ways.\nThere are many different color models, but this section will cover the\nmodels most commonly used for images and video."}),"\n",(0,o.jsx)(n.h3,{id:"rgb",children:"RGB"}),"\n",(0,o.jsx)(n.p,{children:"RGB is probably the most well-known color model, and is primarily used\nin image encoding. RGB consists of three color channels, Red, Green,\nand Blue, which are then combined to determine the final color of each\npixel. Typically, RGB is the final model that a monitor or TV\nwill use to display images, because the pixels on a screen are made up\nof red, green, and blue LEDs, although it is not commonly used for video\nencoding because other models can provide better compression."}),"\n",(0,o.jsx)(n.h3,{id:"yuv",children:"YUV"}),"\n",(0,o.jsx)(n.p,{children:"YUV, also known as YCbCr, is the most widely used color model for\nvideo encoding. It consists of three components: Y aka Luma, which\nrepresents luminance or brightness, and two chroma planes, which\nrepresent color. Generally a video player will have to convert a YUV\nvideo into RGB before it can be rendered, but there are significant\ncompression benefits to using YUV over RGB for video."}),"\n",(0,o.jsxs)(n.p,{children:["The most notable reason to use YCbCr is an optimization called chroma\nsubsampling. This means that the chroma components can be encoded at a\nlower resolution than the luma components, which results in a smaller\noutput file. You can read more about chroma subsampling ",(0,o.jsx)(n.a,{href:"#chroma-subsampling",children:"further below"}),"."]}),"\n",(0,o.jsx)(n.h3,{id:"component-order",children:"Component order"}),"\n",(0,o.jsxs)(n.p,{children:["The order in which the components in a color model are arranged is simply\nrepresented by writing them out. For example, ",(0,o.jsx)(n.code,{children:"RGB"})," for red first,\nthen green, then blue, or ",(0,o.jsx)(n.code,{children:"BGR"})," for blue, green, red."]}),"\n",(0,o.jsx)(n.h2,{id:"bit-depth",children:"Bit depth"}),"\n",(0,o.jsx)(n.p,{children:"A bit depth is how many bits are available to store the sample\nvalue. There are two main ways to specify the bit depth in a :"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["bits per component. Here, ",(0,o.jsx)(n.code,{children:"RGB888"})," reads as ",(0,o.jsx)(n.code,{children:"RGB color model, with 8 bits for the red component, 8 bits for the green component, and 8 bits for the blue component"})," and ",(0,o.jsx)(n.code,{children:"RGB565"})," reads as ",(0,o.jsx)(n.code,{children:"RGB color model, with 5 bits for the red component, 6 bits for the green component, and 5 bits for the blue component"}),"."]}),"\n",(0,o.jsxs)(n.li,{children:["bits per sample. Here, ",(0,o.jsx)(n.code,{children:"RGB24"})," reads as ",(0,o.jsx)(n.code,{children:"RGB color model, with 24 bits in total for the red, green, and blue components"}),". This is\nambiguous, because one does not know exactly how many bits are\nallocated to each component. ",(0,o.jsx)(n.code,{children:"RGB565"}),", ",(0,o.jsx)(n.code,{children:"RGB556"}),", and ",(0,o.jsx)(n.code,{children:"RGB655"})," (even\nthough the latter ones do not make much sense as the eye is most\nsensitive to green light) all become ",(0,o.jsx)(n.code,{children:"RGB16"}),"."]}),"\n"]}),"\n",(0,o.jsx)(n.h2,{id:"packed-vs-planar",children:"Packed vs planar"}),"\n",(0,o.jsxs)(n.p,{children:["Components can be stored either packed, where all\ncomponents are interleaved (here, ",(0,o.jsx)(n.code,{children:"RGB"}),"):"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{children:"Sample number: 1 2 3 4 5\nData: RGB RGB RGB RGB RGB\n"})}),"\n",(0,o.jsx)(n.p,{children:"or stored separately for each component:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{children:"Sample number: 1 2 3 4 5\nData: R R R R R...\nData: G G G G G...\nData: B B B B B...\n"})}),"\n",(0,o.jsxs)(n.p,{children:["In planar formats, many operations can be easier to implement, as it\nis possible to implement the algorithm once and then operate on all\nplanes. On the other hand, packed formats are simpler and often used\nin hardware.",(0,o.jsx)(n.sup,{children:(0,o.jsx)(n.a,{href:"#user-content-fn-vlc-wiki-yuv",id:"user-content-fnref-vlc-wiki-yuv","data-footnote-ref":!0,"aria-describedby":"footnote-label",children:"1"})})]}),"\n",(0,o.jsx)(n.h2,{id:"endianness",children:"Endianness"}),"\n",(0,o.jsxs)(n.p,{children:["Different computer architectures store numbers differently. For more\ninformation, visit ",(0,o.jsx)(n.a,{href:"//wikipedia.org/wiki/Endianness",children:"the Wikipedia article on\nendianness"}),". There are two main ways\nto store numbers with more than 8 bits (1 is the least significant\nbyte and 4 is the most significant byte, here 4 bytes):"]}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["Most significant byte first, little endian, ",(0,o.jsx)(n.code,{children:"4321"}),". This is what\nx86-family processors use."]}),"\n",(0,o.jsxs)(n.li,{children:["Least significant byte first, big endian, ",(0,o.jsx)(n.code,{children:"1234"}),". This is what\nPowerPC-family processors use."]}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:"This can be important for color formats, as some computers might store\nit in their native endianness. VapourSynth doesn't seem to care about\nendianness, but FFmpeg does."}),"\n",(0,o.jsxs)(n.p,{children:["For example, ",(0,o.jsx)(n.code,{children:"RGB565"})," might store its two bytes in ",(0,o.jsx)(n.code,{children:"12"})," or ",(0,o.jsx)(n.code,{children:"21"})," order,\nand if they are read in the wrong order, it will produce garbage."]}),"\n",(0,o.jsx)(n.h2,{id:"chroma-subsampling",children:"Chroma subsampling"}),"\n",(0,o.jsxs)(n.p,{children:["In ",(0,o.jsx)(n.a,{href:"#yuv",children:"Y'CbCr"})," signals, there are three widely used\nvariants of chroma subsampling:"]}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsx)(n.li,{children:"4:2:0 which has half the vertical and horizontal chroma resolution"}),"\n",(0,o.jsx)(n.li,{children:"4:2:2 which has half the horizontal chroma resolution but full\nvertical resolution"}),"\n",(0,o.jsx)(n.li,{children:"4:4:4 which has full chroma resolution (no subsampling)"}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:"4:2:2 is not particularly useful over the other options, so this guide\nwill focus on 4:2:0 and 4:4:4."}),"\n",(0,o.jsx)(n.p,{children:"4:2:0 is the most commonly used format for videos. Nearly every DVD,\nblu-ray, camera recording, etc. uses 4:2:0 subsampling. This is because,\nin the majority of cases, human eyes do not notice the reduction in\nchroma resolution. There is very little benefit to using 4:4:4 in the\naverage case."}),"\n",(0,o.jsx)(n.p,{children:"However, there are some exceptions. The most notable is screen\nrecordings. Things like text overlays, video game UI overlays,\netc. have very fine, color-dependent detail that can be destroyed by\nchroma subsampling and result in an aliased look to the\nvideo. Therefore, it is recommended to use 4:4:4 subsampling when\nrecording your screen, and 4:2:0 subsampling in most other cases."}),"\n",(0,o.jsx)(n.h2,{id:"common-formats",children:"Common formats"}),"\n",(0,o.jsxs)(n.table,{children:[(0,o.jsx)(n.thead,{children:(0,o.jsxs)(n.tr,{children:[(0,o.jsx)(n.th,{children:"VS name"}),(0,o.jsx)(n.th,{children:"FFmpeg name"}),(0,o.jsx)(n.th,{children:"Meaning"})]})}),(0,o.jsxs)(n.tbody,{children:[(0,o.jsxs)(n.tr,{children:[(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"GRAY8"})}),(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"gray8"})}),(0,o.jsx)(n.td,{children:"Brightness only, 8 bits, packed"})]}),(0,o.jsxs)(n.tr,{children:[(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"GRAY16"})}),(0,o.jsxs)(n.td,{children:[(0,o.jsx)(n.code,{children:"gray16le"}),", ",(0,o.jsx)(n.code,{children:"gray16be"})," (the suffix specifies the ",(0,o.jsx)(n.a,{href:"#endianness",children:"endianness"}),")"]}),(0,o.jsx)(n.td,{children:"Brightness only, 16 bits"})]}),(0,o.jsxs)(n.tr,{children:[(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"RGB888"})}),(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"rgb24"})}),(0,o.jsx)(n.td,{children:"red, green, blue, 8 bits per component"})]}),(0,o.jsxs)(n.tr,{children:[(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"YUV420P8"})}),(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"yuv420p"})}),(0,o.jsxs)(n.td,{children:["luma, chroma blue, chroma red, 8 bits per component, planar, 4:2:0 ",(0,o.jsx)(n.a,{href:"#chroma-subsampling",children:"subsampling"})]})]}),(0,o.jsxs)(n.tr,{children:[(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"YUV422P8"})}),(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"yuv422p"})}),(0,o.jsx)(n.td,{children:"luma, chroma blue, chroma red, 8 bits per component, planar, 4:2:2 subsampling"})]}),(0,o.jsxs)(n.tr,{children:[(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"YUV444P8"})}),(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"yuv444p"})}),(0,o.jsx)(n.td,{children:"luma, chroma blue, chroma red, 8 bits per component, planar, no subsampling"})]}),(0,o.jsxs)(n.tr,{children:[(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"YUV420P10"})}),(0,o.jsxs)(n.td,{children:[(0,o.jsx)(n.code,{children:"yuv420p10le"}),", ",(0,o.jsx)(n.code,{children:"yuv420p10le"})]}),(0,o.jsx)(n.td,{children:"luma, chroma blue, chroma red, 10 bits per component, planar, 4:2:0 subsampling"})]}),(0,o.jsxs)(n.tr,{children:[(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"YUV422P10"})}),(0,o.jsxs)(n.td,{children:[(0,o.jsx)(n.code,{children:"yuv422p10le"}),", ",(0,o.jsx)(n.code,{children:"yuv422p10le"})]}),(0,o.jsx)(n.td,{children:"luma, chroma blue, chroma red, 10 bits per component, planar, 4:2:2 subsampling"})]}),(0,o.jsxs)(n.tr,{children:[(0,o.jsx)(n.td,{children:(0,o.jsx)(n.code,{children:"YUV444P10"})}),(0,o.jsxs)(n.td,{children:[(0,o.jsx)(n.code,{children:"yuv444p10le"}),", ",(0,o.jsx)(n.code,{children:"yuv444p10le"})]}),(0,o.jsx)(n.td,{children:"luma, chroma blue, chroma red, 10 bits per component, planar, no subsampling"})]})]})]}),"\n",(0,o.jsx)(n.h2,{id:"references",children:"References"}),"\n","\n",(0,o.jsxs)(n.section,{"data-footnotes":!0,className:"footnotes",children:[(0,o.jsx)(n.h2,{className:"sr-only",id:"footnote-label",children:"Footnotes"}),"\n",(0,o.jsxs)(n.ol,{children:["\n",(0,o.jsxs)(n.li,{id:"user-content-fn-vlc-wiki-yuv",children:["\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.a,{href:"https://wiki.videolan.org/YUV/#Packed_formats",children:"YUV - VideoLAN Wiki"})," ",(0,o.jsx)(n.a,{href:"#user-content-fnref-vlc-wiki-yuv","data-footnote-backref":"","aria-label":"Back to reference 1",className:"data-footnote-backref",children:"\u21a9"})]}),"\n"]}),"\n"]}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(c,{...e})}):c(e)}},8453:(e,n,r)=>{r.d(n,{R:()=>t,x:()=>l});var o=r(6540);const s={},i=o.createContext(s);function t(e){const n=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:t(e.components),o.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8f6f5e4c.7fa5ae9c.js b/assets/js/8f6f5e4c.7fa5ae9c.js new file mode 100644 index 000000000..015296d17 --- /dev/null +++ b/assets/js/8f6f5e4c.7fa5ae9c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8760],{9600:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>a,contentTitle:()=>l,default:()=>h,frontMatter:()=>t,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"colorimetry/format","title":"Color Formats","description":"To represent color values, a format is agreed upon. Color formats are","source":"@site/docs/colorimetry/format.mdx","sourceDirName":"colorimetry","slug":"/colorimetry/format","permalink":"/docs/colorimetry/format","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/colorimetry/format.mdx","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"Color Formats","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"Intro","permalink":"/docs/colorimetry/intro"},"next":{"title":"Color Range","permalink":"/docs/colorimetry/range"}}');var s=r(4848),i=r(8453);const t={title:"Color Formats",sidebar_position:2},l="Color Formats",a={},d=[{value:"Color Models",id:"color-models",level:2},{value:"RGB",id:"rgb",level:3},{value:"YUV",id:"yuv",level:3},{value:"Component order",id:"component-order",level:3},{value:"Bit depth",id:"bit-depth",level:2},{value:"Packed vs planar",id:"packed-vs-planar",level:2},{value:"Endianness",id:"endianness",level:2},{value:"Chroma subsampling",id:"chroma-subsampling",level:2},{value:"Common formats",id:"common-formats",level:2},{value:"References",id:"references",level:2}];function c(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",section:"section",sup:"sup",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"color-formats",children:"Color Formats"})}),"\n",(0,s.jsxs)(n.p,{children:["To represent color values, a format is agreed upon. Color formats are\nmade up of three things, the ",(0,s.jsx)(n.a,{href:"#color-models",children:"color model"}),"--which includes the\n",(0,s.jsx)(n.a,{href:"#component-order",children:"order of the components"})," and sometimes ",(0,s.jsx)(n.a,{href:"#chroma-subsampling",children:"chroma subsampling"}),"--\nthe ",(0,s.jsx)(n.a,{href:"#bit-depth",children:"bit depth"}),", and whether it is a ",(0,s.jsx)(n.a,{href:"#packed-vs-planar",children:"packed or a planar format"}),".\nIn some cases, ",(0,s.jsx)(n.a,{href:"#endianness",children:"endianness"})," may be important."]}),"\n",(0,s.jsx)(n.h2,{id:"color-models",children:"Color Models"}),"\n",(0,s.jsx)(n.p,{children:"A color model is a method of representing colors in a video or image using data.\nDifferent color models store color and brightness information in different ways.\nThere are many different color models, but this section will cover the\nmodels most commonly used for images and video."}),"\n",(0,s.jsx)(n.h3,{id:"rgb",children:"RGB"}),"\n",(0,s.jsx)(n.p,{children:"RGB is probably the most well-known color model, and is primarily used\nin image encoding. RGB consists of three color channels, Red, Green,\nand Blue, which are then combined to determine the final color of each\npixel. Typically, RGB is the final model that a monitor or TV\nwill use to display images, because the pixels on a screen are made up\nof red, green, and blue LEDs, although it is not commonly used for video\nencoding because other models can provide better compression."}),"\n",(0,s.jsx)(n.h3,{id:"yuv",children:"YUV"}),"\n",(0,s.jsx)(n.p,{children:"YUV, also known as YCbCr, is the most widely used color model for\nvideo encoding. It consists of three components: Y aka Luma, which\nrepresents luminance or brightness, and two chroma planes, which\nrepresent color. Generally a video player will have to convert a YUV\nvideo into RGB before it can be rendered, but there are significant\ncompression benefits to using YUV over RGB for video."}),"\n",(0,s.jsxs)(n.p,{children:["The most notable reason to use YCbCr is an optimization called chroma\nsubsampling. This means that the chroma components can be encoded at a\nlower resolution than the luma components, which results in a smaller\noutput file. You can read more about chroma subsampling ",(0,s.jsx)(n.a,{href:"#chroma-subsampling",children:"further below"}),"."]}),"\n",(0,s.jsx)(n.h3,{id:"component-order",children:"Component order"}),"\n",(0,s.jsxs)(n.p,{children:["The order in which the components in a color model are arranged is simply\nrepresented by writing them out. For example, ",(0,s.jsx)(n.code,{children:"RGB"})," for red first,\nthen green, then blue, or ",(0,s.jsx)(n.code,{children:"BGR"})," for blue, green, red."]}),"\n",(0,s.jsx)(n.h2,{id:"bit-depth",children:"Bit depth"}),"\n",(0,s.jsx)(n.p,{children:"A bit depth is how many bits are available to store the sample\nvalue. There are two main ways to specify the bit depth in a :"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["bits per component. Here, ",(0,s.jsx)(n.code,{children:"RGB888"})," reads as ",(0,s.jsx)(n.code,{children:"RGB color model, with 8 bits for the red component, 8 bits for the green component, and 8 bits for the blue component"})," and ",(0,s.jsx)(n.code,{children:"RGB565"})," reads as ",(0,s.jsx)(n.code,{children:"RGB color model, with 5 bits for the red component, 6 bits for the green component, and 5 bits for the blue component"}),"."]}),"\n",(0,s.jsxs)(n.li,{children:["bits per sample. Here, ",(0,s.jsx)(n.code,{children:"RGB24"})," reads as ",(0,s.jsx)(n.code,{children:"RGB color model, with 24 bits in total for the red, green, and blue components"}),". This is\nambiguous, because one does not know exactly how many bits are\nallocated to each component. ",(0,s.jsx)(n.code,{children:"RGB565"}),", ",(0,s.jsx)(n.code,{children:"RGB556"}),", and ",(0,s.jsx)(n.code,{children:"RGB655"})," (even\nthough the latter ones do not make much sense as the eye is most\nsensitive to green light) all become ",(0,s.jsx)(n.code,{children:"RGB16"}),"."]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"packed-vs-planar",children:"Packed vs planar"}),"\n",(0,s.jsxs)(n.p,{children:["Components can be stored either packed, where all\ncomponents are interleaved (here, ",(0,s.jsx)(n.code,{children:"RGB"}),"):"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{children:"Sample number: 1 2 3 4 5\nData: RGB RGB RGB RGB RGB\n"})}),"\n",(0,s.jsx)(n.p,{children:"or stored separately for each component:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{children:"Sample number: 1 2 3 4 5\nData: R R R R R...\nData: G G G G G...\nData: B B B B B...\n"})}),"\n",(0,s.jsxs)(n.p,{children:["In planar formats, many operations can be easier to implement, as it\nis possible to implement the algorithm once and then operate on all\nplanes. On the other hand, packed formats are simpler and often used\nin hardware.",(0,s.jsx)(n.sup,{children:(0,s.jsx)(n.a,{href:"#user-content-fn-vlc-wiki-yuv",id:"user-content-fnref-vlc-wiki-yuv","data-footnote-ref":!0,"aria-describedby":"footnote-label",children:"1"})})]}),"\n",(0,s.jsx)(n.h2,{id:"endianness",children:"Endianness"}),"\n",(0,s.jsxs)(n.p,{children:["Different computer architectures store numbers differently. For more\ninformation, visit ",(0,s.jsx)(n.a,{href:"//wikipedia.org/wiki/Endianness",children:"the Wikipedia article on\nendianness"}),". There are two main ways\nto store numbers with more than 8 bits (1 is the least significant\nbyte and 4 is the most significant byte, here 4 bytes):"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Most significant byte first, little endian, ",(0,s.jsx)(n.code,{children:"4321"}),". This is what\nx86-family processors use."]}),"\n",(0,s.jsxs)(n.li,{children:["Least significant byte first, big endian, ",(0,s.jsx)(n.code,{children:"1234"}),". This is what\nPowerPC-family processors use."]}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"This can be important for color formats, as some computers might store\nit in their native endianness. VapourSynth doesn't seem to care about\nendianness, but FFmpeg does."}),"\n",(0,s.jsxs)(n.p,{children:["For example, ",(0,s.jsx)(n.code,{children:"RGB565"})," might store its two bytes in ",(0,s.jsx)(n.code,{children:"12"})," or ",(0,s.jsx)(n.code,{children:"21"})," order,\nand if they are read in the wrong order, it will produce garbage."]}),"\n",(0,s.jsx)(n.h2,{id:"chroma-subsampling",children:"Chroma subsampling"}),"\n",(0,s.jsxs)(n.p,{children:["In ",(0,s.jsx)(n.a,{href:"#yuv",children:"Y'CbCr"})," signals, there are three widely used\nvariants of chroma subsampling:"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"4:2:0 which has half the vertical and horizontal chroma resolution"}),"\n",(0,s.jsx)(n.li,{children:"4:2:2 which has half the horizontal chroma resolution but full\nvertical resolution"}),"\n",(0,s.jsx)(n.li,{children:"4:4:4 which has full chroma resolution (no subsampling)"}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"4:2:2 is not particularly useful over the other options, so this guide\nwill focus on 4:2:0 and 4:4:4."}),"\n",(0,s.jsx)(n.p,{children:"4:2:0 is the most commonly used format for videos. Nearly every DVD,\nblu-ray, camera recording, etc. uses 4:2:0 subsampling. This is because,\nin the majority of cases, human eyes do not notice the reduction in\nchroma resolution. There is very little benefit to using 4:4:4 in the\naverage case."}),"\n",(0,s.jsx)(n.p,{children:"However, there are some exceptions. The most notable is screen\nrecordings. Things like text overlays, video game UI overlays,\netc. have very fine, color-dependent detail that can be destroyed by\nchroma subsampling and result in an aliased look to the\nvideo. Therefore, it is recommended to use 4:4:4 subsampling when\nrecording your screen, and 4:2:0 subsampling in most other cases."}),"\n",(0,s.jsx)(n.h2,{id:"common-formats",children:"Common formats"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"VS name"}),(0,s.jsx)(n.th,{children:"FFmpeg name"}),(0,s.jsx)(n.th,{children:"Meaning"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"GRAY8"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"gray8"})}),(0,s.jsx)(n.td,{children:"Brightness only, 8 bits, packed"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"GRAY16"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"gray16le"}),", ",(0,s.jsx)(n.code,{children:"gray16be"})," (the suffix specifies the ",(0,s.jsx)(n.a,{href:"#endianness",children:"endianness"}),")"]}),(0,s.jsx)(n.td,{children:"Brightness only, 16 bits"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"RGB888"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"rgb24"})}),(0,s.jsx)(n.td,{children:"red, green, blue, 8 bits per component"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"YUV420P8"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"yuv420p"})}),(0,s.jsxs)(n.td,{children:["luma, chroma blue, chroma red, 8 bits per component, planar, 4:2:0 ",(0,s.jsx)(n.a,{href:"#chroma-subsampling",children:"subsampling"})]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"YUV422P8"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"yuv422p"})}),(0,s.jsx)(n.td,{children:"luma, chroma blue, chroma red, 8 bits per component, planar, 4:2:2 subsampling"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"YUV444P8"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"yuv444p"})}),(0,s.jsx)(n.td,{children:"luma, chroma blue, chroma red, 8 bits per component, planar, no subsampling"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"YUV420P10"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"yuv420p10le"}),", ",(0,s.jsx)(n.code,{children:"yuv420p10le"})]}),(0,s.jsx)(n.td,{children:"luma, chroma blue, chroma red, 10 bits per component, planar, 4:2:0 subsampling"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"YUV422P10"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"yuv422p10le"}),", ",(0,s.jsx)(n.code,{children:"yuv422p10le"})]}),(0,s.jsx)(n.td,{children:"luma, chroma blue, chroma red, 10 bits per component, planar, 4:2:2 subsampling"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"YUV444P10"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"yuv444p10le"}),", ",(0,s.jsx)(n.code,{children:"yuv444p10le"})]}),(0,s.jsx)(n.td,{children:"luma, chroma blue, chroma red, 10 bits per component, planar, no subsampling"})]})]})]}),"\n",(0,s.jsx)(n.h2,{id:"references",children:"References"}),"\n","\n",(0,s.jsxs)(n.section,{"data-footnotes":!0,className:"footnotes",children:[(0,s.jsx)(n.h2,{className:"sr-only",id:"footnote-label",children:"Footnotes"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsxs)(n.li,{id:"user-content-fn-vlc-wiki-yuv",children:["\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"https://wiki.videolan.org/YUV/#Packed_formats",children:"YUV - VideoLAN Wiki"})," ",(0,s.jsx)(n.a,{href:"#user-content-fnref-vlc-wiki-yuv","data-footnote-backref":"","aria-label":"Back to reference 1",className:"data-footnote-backref",children:"\u21a9"})]}),"\n"]}),"\n"]}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}},8453:(e,n,r)=>{r.d(n,{R:()=>t,x:()=>l});var o=r(6540);const s={},i=o.createContext(s);function t(e){const n=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:t(e.components),o.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9060e84a.4d74a2c8.js b/assets/js/9060e84a.4d74a2c8.js deleted file mode 100644 index eed69cfb8..000000000 --- a/assets/js/9060e84a.4d74a2c8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8320],{4e3:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>a,contentTitle:()=>o,default:()=>h,frontMatter:()=>r,metadata:()=>c,toc:()=>d});var t=i(4848),s=i(8453);const r={title:"HM",sidebar_position:16},o="HM",c={id:"encoders/HM",title:"HM",description:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information.",source:"@site/docs/encoders/HM.mdx",sourceDirName:"encoders",slug:"/encoders/HM",permalink:"/docs/encoders/HM",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/HM.mdx",tags:[],version:"current",sidebarPosition:16,frontMatter:{title:"HM",sidebar_position:16},sidebar:"tutorialSidebar",previous:{title:"AVM",permalink:"/docs/encoders/AVM"},next:{title:"JM",permalink:"/docs/encoders/JM"}},a={},d=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2}];function l(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"hm",children:"HM"})}),"\n",(0,t.jsx)(n.admonition,{title:"Pending Review",type:"caution",children:(0,t.jsx)(n.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,t.jsxs)(n.p,{children:["HM is the original ",(0,t.jsx)(n.a,{href:"/docs/video/HEVC",children:"H.265"})," reference encoder, predating alternatives like ",(0,t.jsx)(n.a,{href:"/docs/encoders/x265",children:"x265"}),". In the modern day, it joins other MPEG reference encoders such as ",(0,t.jsx)(n.a,{href:"/docs/encoders/JM",children:"JM"})," & ",(0,t.jsx)(n.a,{href:"/docs/encoders/VTM",children:"VTM"})," in their reputations for being highly niche offerings that are used rarely due to their usage complexity & speed disadvantages. x264 is more efficient than JM."]}),"\n",(0,t.jsxs)(n.p,{children:["HM is capable of producing higher quality streams than highly tuned x265, even at excruciatingly slow speeds. This is only a theoretical advantage, though, as HM is incapable of placing keyframes automatically with scene detection & would need a chunking too reminiscent of ",(0,t.jsx)(n.a,{href:"/docs/utilities/av1an",children:"Av1an"})," to do this. For videos containing few enough frames where keyframe placement isn't a concern, HM is better in practice than x265 at the expense of a massive dropoff in speed. HM doesn't have any threading capabilities & is much slower than even x265 placebo."]}),"\n",(0,t.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(n.p,{children:"These build instructions are valid for Linux & macOS."}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone https://vcgit.hhi.fraunhofer.de/jvet/HM\ncd HM/\nmkdir build && cd build\ncmake .. -DCMAKE_BUILD_TYPE=Release\nmake -j$(nproc)\n"})}),"\n",(0,t.jsxs)(n.p,{children:["The binary ",(0,t.jsx)(n.code,{children:"TAppEncoderStatic"})," or ",(0,t.jsx)(n.code,{children:"TAppEncoder"})," can be found within the cloned directories, & can be copied to ",(0,t.jsx)(n.code,{children:"/usr/local/bin"})," for encoding. Decoding & other functions of the reference codec implementation aren't covered in this entry."]}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsxs)(n.p,{children:["Here is a sample command: ",(0,t.jsx)(n.code,{children:"TAppEncoderStatic -i input.yuv -b out.265 -c ~/HM/cfg/encoder_randomaccess_main10.cfg -wdt 1280 -hgt 720 -fr 50 -f 500 -q 27 -xPS 0"})]}),"\n",(0,t.jsx)(n.p,{children:"Make sure only to use only YUV input when encoding with HM. Each parameter does the following:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"-i input.yuv -b out.265"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["Specifies a raw YUV input file & an output raw h265 bitstream. To mux into an MP4 container, it is recommended that you use ",(0,t.jsx)(n.a,{href:"/docs/utilities/mp4box",children:"mp4box"})," instead of muxing with ",(0,t.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),"."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"-c [path/to/config]"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Specifies the desired path to your HM configuration file. This makes it easier to encode without having to manually specify a plethora of settings."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"-wdt 1280 -hgt 720"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Sets the input & output width & height."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"-fr 50 -f 500"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Sets the framerate (FPS) & the number of frames to encode. In this case, we are encoding 500 frames of a video that is to be played back at 50fps."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"-q 27"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Sets a quality target for the encoder."}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.code,{children:"-xPS 0"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"Zero clue what this does. If someone has an idea, please contribute!"})]})}function h(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>o,x:()=>c});var t=i(6540);const s={},r=t.createContext(s);function o(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9060e84a.d53e734a.js b/assets/js/9060e84a.d53e734a.js new file mode 100644 index 000000000..4b65794bc --- /dev/null +++ b/assets/js/9060e84a.d53e734a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8320],{7443:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>h,frontMatter:()=>o,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"encoders/HM","title":"HM","description":"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information.","source":"@site/docs/encoders/HM.mdx","sourceDirName":"encoders","slug":"/encoders/HM","permalink":"/docs/encoders/HM","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/HM.mdx","tags":[],"version":"current","sidebarPosition":16,"frontMatter":{"title":"HM","sidebar_position":16},"sidebar":"tutorialSidebar","previous":{"title":"AVM","permalink":"/docs/encoders/AVM"},"next":{"title":"JM","permalink":"/docs/encoders/JM"}}');var s=i(4848),r=i(8453);const o={title:"HM",sidebar_position:16},c="HM",a={},d=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2}];function l(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"hm",children:"HM"})}),"\n",(0,s.jsx)(n.admonition,{title:"Pending Review",type:"caution",children:(0,s.jsx)(n.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,s.jsxs)(n.p,{children:["HM is the original ",(0,s.jsx)(n.a,{href:"/docs/video/HEVC",children:"H.265"})," reference encoder, predating alternatives like ",(0,s.jsx)(n.a,{href:"/docs/encoders/x265",children:"x265"}),". In the modern day, it joins other MPEG reference encoders such as ",(0,s.jsx)(n.a,{href:"/docs/encoders/JM",children:"JM"})," & ",(0,s.jsx)(n.a,{href:"/docs/encoders/VTM",children:"VTM"})," in their reputations for being highly niche offerings that are used rarely due to their usage complexity & speed disadvantages. x264 is more efficient than JM."]}),"\n",(0,s.jsxs)(n.p,{children:["HM is capable of producing higher quality streams than highly tuned x265, even at excruciatingly slow speeds. This is only a theoretical advantage, though, as HM is incapable of placing keyframes automatically with scene detection & would need a chunking too reminiscent of ",(0,s.jsx)(n.a,{href:"/docs/utilities/av1an",children:"Av1an"})," to do this. For videos containing few enough frames where keyframe placement isn't a concern, HM is better in practice than x265 at the expense of a massive dropoff in speed. HM doesn't have any threading capabilities & is much slower than even x265 placebo."]}),"\n",(0,s.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsx)(n.p,{children:"These build instructions are valid for Linux & macOS."}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"git clone https://vcgit.hhi.fraunhofer.de/jvet/HM\ncd HM/\nmkdir build && cd build\ncmake .. -DCMAKE_BUILD_TYPE=Release\nmake -j$(nproc)\n"})}),"\n",(0,s.jsxs)(n.p,{children:["The binary ",(0,s.jsx)(n.code,{children:"TAppEncoderStatic"})," or ",(0,s.jsx)(n.code,{children:"TAppEncoder"})," can be found within the cloned directories, & can be copied to ",(0,s.jsx)(n.code,{children:"/usr/local/bin"})," for encoding. Decoding & other functions of the reference codec implementation aren't covered in this entry."]}),"\n",(0,s.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsxs)(n.p,{children:["Here is a sample command: ",(0,s.jsx)(n.code,{children:"TAppEncoderStatic -i input.yuv -b out.265 -c ~/HM/cfg/encoder_randomaccess_main10.cfg -wdt 1280 -hgt 720 -fr 50 -f 500 -q 27 -xPS 0"})]}),"\n",(0,s.jsx)(n.p,{children:"Make sure only to use only YUV input when encoding with HM. Each parameter does the following:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"-i input.yuv -b out.265"})}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["Specifies a raw YUV input file & an output raw h265 bitstream. To mux into an MP4 container, it is recommended that you use ",(0,s.jsx)(n.a,{href:"/docs/utilities/mp4box",children:"mp4box"})," instead of muxing with ",(0,s.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),"."]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"-c [path/to/config]"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Specifies the desired path to your HM configuration file. This makes it easier to encode without having to manually specify a plethora of settings."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"-wdt 1280 -hgt 720"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Sets the input & output width & height."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"-fr 50 -f 500"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Sets the framerate (FPS) & the number of frames to encode. In this case, we are encoding 500 frames of a video that is to be played back at 50fps."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"-q 27"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Sets a quality target for the encoder."}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"-xPS 0"})}),"\n"]}),"\n",(0,s.jsx)(n.p,{children:"Zero clue what this does. If someone has an idea, please contribute!"})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>o,x:()=>c});var t=i(6540);const s={},r=t.createContext(s);function o(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/90aedb84.6dac006e.js b/assets/js/90aedb84.6dac006e.js deleted file mode 100644 index 881d9e1e0..000000000 --- a/assets/js/90aedb84.6dac006e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1691],{8872:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>a,contentTitle:()=>r,default:()=>h,frontMatter:()=>s,metadata:()=>c,toc:()=>d});var n=i(4848),o=i(8453);const s={sidebar_position:5},r="Psychovisual",c={id:"introduction/psychovisual",title:"Psychovisual",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/introduction/psychovisual.mdx",sourceDirName:"introduction",slug:"/introduction/psychovisual",permalink:"/docs/introduction/psychovisual",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/psychovisual.mdx",tags:[],version:"current",sidebarPosition:5,frontMatter:{sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"Spotting Video Artifacts",permalink:"/docs/introduction/video-artifacts"},next:{title:"High Dynamic Range",permalink:"/docs/introduction/high-dynamic-range"}},a={},d=[{value:"Breakdown",id:"breakdown",level:2}];function l(e){const t={a:"a",admonition:"admonition",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"psychovisual",children:"Psychovisual"})}),"\n",(0,n.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,n.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,n.jsx)(t.admonition,{title:"Pending Review",type:"danger",children:(0,n.jsx)(t.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,n.jsxs)(t.p,{children:['"',(0,n.jsx)(t.em,{children:"Traditionally, the encoder tends to favor blurred reconstructed blocks over blocks which have wrong motion. The human eye generally prefers the wrong motion over the blur. Psycho-visual options combat this. While technically less \u201ccorrect\u201d, which is why they are disabled for research purposes, they should be enabled for content intended for \u201chuman eyes\u201d."}),' "']}),"\n",(0,n.jsxs)(t.p,{children:["-- Kokomins' x265 ",(0,n.jsx)(t.a,{href:"https://kokomins.wordpress.com/2019/10/10/anime-encoding-guide-for-x265-and-why-to-never-use-flac",children:"guide"})]}),"\n",(0,n.jsx)(t.h2,{id:"breakdown",children:"Breakdown"}),"\n",(0,n.jsxs)(t.p,{children:["Traditionally, encoders prioritize blurring out fine details to maintain performance on simple metrics like ",(0,n.jsx)(t.a,{href:"/docs/metrics/PSNR",children:"PSNR"}),", but the human visual system is much more complex. This discrepancy can lead to encoders rejecting sharp blocks that don't fit perfectly with adjacent blocks, resulting in a loss of detail. Psychovisual options address this issue by providing the encoder with the necessary \"confidence\" to incorporate these sharper blocks, even if they don't strictly adhere to metric performance."]}),"\n",(0,n.jsx)(t.p,{children:"Blurring can be beneficial at lower bitrates to help reduce the visibility of blocking artifacts, and it is generally preferable to view a slightly blurry image rather than a blocky one with distracting artifacts. However, it is essential to strike a balance when setting psychovisual options, as over-reliance on these settings can also have negative consequences. Experimentation is key to finding the optimal sweet spot for specific types of content."})]})}function h(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>r,x:()=>c});var n=i(6540);const o={},s=n.createContext(o);function r(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/90aedb84.99d3ef73.js b/assets/js/90aedb84.99d3ef73.js new file mode 100644 index 000000000..896606f6e --- /dev/null +++ b/assets/js/90aedb84.99d3ef73.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1691],{829:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>a,contentTitle:()=>c,default:()=>h,frontMatter:()=>r,metadata:()=>n,toc:()=>d});const n=JSON.parse('{"id":"introduction/psychovisual","title":"Psychovisual","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/introduction/psychovisual.mdx","sourceDirName":"introduction","slug":"/introduction/psychovisual","permalink":"/docs/introduction/psychovisual","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/psychovisual.mdx","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"Spotting Video Artifacts","permalink":"/docs/introduction/video-artifacts"},"next":{"title":"High Dynamic Range","permalink":"/docs/introduction/high-dynamic-range"}}');var o=i(4848),s=i(8453);const r={sidebar_position:5},c="Psychovisual",a={},d=[{value:"Breakdown",id:"breakdown",level:2}];function l(e){const t={a:"a",admonition:"admonition",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"psychovisual",children:"Psychovisual"})}),"\n",(0,o.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,o.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,o.jsx)(t.admonition,{title:"Pending Review",type:"danger",children:(0,o.jsx)(t.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,o.jsxs)(t.p,{children:['"',(0,o.jsx)(t.em,{children:"Traditionally, the encoder tends to favor blurred reconstructed blocks over blocks which have wrong motion. The human eye generally prefers the wrong motion over the blur. Psycho-visual options combat this. While technically less \u201ccorrect\u201d, which is why they are disabled for research purposes, they should be enabled for content intended for \u201chuman eyes\u201d."}),' "']}),"\n",(0,o.jsxs)(t.p,{children:["-- Kokomins' x265 ",(0,o.jsx)(t.a,{href:"https://kokomins.wordpress.com/2019/10/10/anime-encoding-guide-for-x265-and-why-to-never-use-flac",children:"guide"})]}),"\n",(0,o.jsx)(t.h2,{id:"breakdown",children:"Breakdown"}),"\n",(0,o.jsxs)(t.p,{children:["Traditionally, encoders prioritize blurring out fine details to maintain performance on simple metrics like ",(0,o.jsx)(t.a,{href:"/docs/metrics/PSNR",children:"PSNR"}),", but the human visual system is much more complex. This discrepancy can lead to encoders rejecting sharp blocks that don't fit perfectly with adjacent blocks, resulting in a loss of detail. Psychovisual options address this issue by providing the encoder with the necessary \"confidence\" to incorporate these sharper blocks, even if they don't strictly adhere to metric performance."]}),"\n",(0,o.jsx)(t.p,{children:"Blurring can be beneficial at lower bitrates to help reduce the visibility of blocking artifacts, and it is generally preferable to view a slightly blurry image rather than a blocky one with distracting artifacts. However, it is essential to strike a balance when setting psychovisual options, as over-reliance on these settings can also have negative consequences. Experimentation is key to finding the optimal sweet spot for specific types of content."})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>r,x:()=>c});var n=i(6540);const o={},s=n.createContext(o);function r(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/915a111c.13149dda.js b/assets/js/915a111c.13149dda.js new file mode 100644 index 000000000..e828586d9 --- /dev/null +++ b/assets/js/915a111c.13149dda.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5889],{608:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>s,metadata:()=>n,toc:()=>l});const n=JSON.parse('{"id":"filtering/dehalo","title":"Dehalo","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/filtering/dehalo.mdx","sourceDirName":"filtering","slug":"/filtering/dehalo","permalink":"/docs/filtering/dehalo","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/dehalo.mdx","tags":[],"version":"current","sidebarPosition":9,"frontMatter":{"title":"Dehalo","sidebar_position":9},"sidebar":"tutorialSidebar","previous":{"title":"Denoise","permalink":"/docs/filtering/denoise"},"next":{"title":"Antialiasing","permalink":"/docs/filtering/antialiasing"}}');var o=i(4848),r=i(8453);const s={title:"Dehalo",sidebar_position:9},a="Dehalo",c={},l=[];function d(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"dehalo",children:"Dehalo"})}),"\n",(0,o.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>a});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/915a111c.2e85eec2.js b/assets/js/915a111c.2e85eec2.js deleted file mode 100644 index af1dff132..000000000 --- a/assets/js/915a111c.2e85eec2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5889],{1389:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>s,default:()=>u,frontMatter:()=>r,metadata:()=>a,toc:()=>d});var n=i(4848),o=i(8453);const r={title:"Dehalo",sidebar_position:9},s="Dehalo",a={id:"filtering/dehalo",title:"Dehalo",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/filtering/dehalo.mdx",sourceDirName:"filtering",slug:"/filtering/dehalo",permalink:"/docs/filtering/dehalo",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/dehalo.mdx",tags:[],version:"current",sidebarPosition:9,frontMatter:{title:"Dehalo",sidebar_position:9},sidebar:"tutorialSidebar",previous:{title:"Denoise",permalink:"/docs/filtering/denoise"},next:{title:"Antialiasing",permalink:"/docs/filtering/antialiasing"}},c={},d=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"dehalo",children:"Dehalo"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>a});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/939f23de.2a2acb57.js b/assets/js/939f23de.2a2acb57.js new file mode 100644 index 000000000..6a5378433 --- /dev/null +++ b/assets/js/939f23de.2a2acb57.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2590],{7848:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>c,contentTitle:()=>r,default:()=>d,frontMatter:()=>a,metadata:()=>s,toc:()=>l});const s=JSON.parse('{"id":"filtering/basics","title":"Basics of Filtering","description":"Intro to Filters","source":"@site/docs/filtering/basics.mdx","sourceDirName":"filtering","slug":"/filtering/basics","permalink":"/docs/filtering/basics","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/basics.mdx","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"title":"Basics of Filtering","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"Vapoursynth","permalink":"/docs/filtering/vapoursynth"},"next":{"title":"Inverse Telecine","permalink":"/docs/filtering/ivtc"}}');var n=t(4848),o=t(8453);const a={title:"Basics of Filtering",sidebar_position:3},r="Basics of Filtering with Vapoursynth",c={},l=[{value:"Intro to Filters",id:"intro-to-filters",level:2},{value:"Filter Order",id:"filter-order",level:2},{value:"Bit Depth and Colorimetry",id:"bit-depth-and-colorimetry",level:2},{value:"Cropping",id:"cropping",level:2},{value:"Resizing",id:"resizing",level:2},{value:"Trimming",id:"trimming",level:2}];function h(e){const i={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",header:"header",img:"img",p:"p",pre:"pre",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"basics-of-filtering-with-vapoursynth",children:"Basics of Filtering with Vapoursynth"})}),"\n",(0,n.jsx)(i.h2,{id:"intro-to-filters",children:"Intro to Filters"}),"\n",(0,n.jsx)(i.p,{children:"In order to do filtering, we are going to need some filters. Vapoursynth includes some basic filters, but there are a lot more useful filters\nbuilt by the community that can be incredibly useful to us."}),"\n",(0,n.jsxs)(i.p,{children:["For example, we are going to make use of some of the functions in ",(0,n.jsx)(i.a,{href:"https://github.com/Jaded-Encoding-Thaumaturgy/vs-tools",children:"vs-tools"}),".\nIf you are on Arch, the recommended way to install this is via the AUR, using the ",(0,n.jsx)(i.code,{children:"vapoursynth-plugin-vstools-git"})," package.\nFor other operating systems, it is simpler to install all of the JET plugins at once, using the ",(0,n.jsx)(i.a,{href:"https://github.com/Jaded-Encoding-Thaumaturgy/vs-jet",children:"vs-jet utility"}),".\nNote that these do require Python, which you should already have installed if you've installed Vapoursynth. You may have noticed in the previous section\nthat all Vapoursynth scripts use Python syntax. It is not necessary to know Python in order to write Vapoursynth scripts, although it can be helpful\nfor some more advanced techniques."]}),"\n",(0,n.jsx)(i.h2,{id:"filter-order",children:"Filter Order"}),"\n",(0,n.jsx)(i.p,{children:"Order matters when applying filters to a video. There are certain actions that must be taken at the very start, and certain actions that are better to be done\nlater in a filter chain. The following image shows a recommended order for many of the most common filter actions:"}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.img,{alt:"filter chain",src:t(5090).A+"",width:"720",height:"409"})}),"\n",(0,n.jsx)(i.p,{children:"If this seems a bit complicated at first, that's okay. We will learn about each of these steps one at a time, and when\neach of these filters might be needed."}),"\n",(0,n.jsx)(i.h2,{id:"bit-depth-and-colorimetry",children:"Bit Depth and Colorimetry"}),"\n",(0,n.jsxs)(i.p,{children:["In most cases, the first action we want to take on a video is to ensure the correct ",(0,n.jsx)(i.a,{href:"/docs/colorimetry/intro",children:"matrix, primaries, and transfer characteristics"})," are set, and convert the video to 16-bit.\nThe colorimetry properties are important for ensuring accurate colors, and 16-bit helps filters to work in higher quality and create fewer artifacts."]}),"\n",(0,n.jsxs)(i.p,{children:["The currently recommended way to handle this is with the ",(0,n.jsx)(i.code,{children:"vstools.initialize_clip"})," function. This function will handle both ensuring that colorimetry is set, and converting to 16-bit with appropriate dithering if needed.\nWe can add it to a script in the following way:"]}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-python",children:'import vapoursynth as vs\ncore = vs.core\nclip = core.lsmas.LWLibavSource(source="myinput.mkv")\n\nimport vstools\nclip = vstools.initialize_clip(clip)\n\nclip.set_output(0)\n'})}),"\n",(0,n.jsxs)(i.p,{children:["If the video has existing colorimetry data set on it, ",(0,n.jsx)(i.code,{children:"initialize_clip"})," will keep the existing data. Otherwise, it will assume colorimetry based on the video resolution.\nUsually, those assumptions will be correct. However, there may be cases where we know that the assumptions are incorrect, and we need to set them manually.\nFor example, we may have a 4k video that we know was upscaled from a 1080p video, and we want to force BT.709 colorimetry. In that case, we can specify the properties to ",(0,n.jsx)(i.code,{children:"initialize_clip"}),",\nand it will use the properties we specify instead of making guesses."]}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-python",children:"from vstools import Primaries, Matrix, Transfer\nclip = vstools.initialize_clip(clip, primaries=Primaries.BT709, matrix=Matrix.BT709, transfer=Transfer.BT709)\n"})}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.code,{children:"initialize_clip"})," also has a companion function called ",(0,n.jsx)(i.code,{children:"finalize_clip"})," which will, by default, convert the video down to 10-bit with dithering, and if the video is in limited color range,\nclip all pixels to fit within the limited color range (this would be done by the player on playback, but if we do it now, we can save a few bits for the encoder). The function also takes\na ",(0,n.jsx)(i.code,{children:"bits"})," parameter in case you would like to finalize to 8-bits instead."]}),"\n",(0,n.jsx)(i.p,{children:"As a result, a very basic template for a Vapoursynth script would be something like this:"}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-python",children:'import vapoursynth as vs\ncore = vs.core\nclip = core.lsmas.LWLibavSource(source="myinput.mkv")\n\nimport vstools\nclip = vstools.initialize_clip(clip)\n//\n// Add filters inside this section\n//\nclip = vstools.finalize_clip(clip)\n\n\nclip.set_output(0)\n'})}),"\n",(0,n.jsx)(i.h2,{id:"cropping",children:"Cropping"}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.img,{alt:"screenshot",src:t(4312).A+"",width:"1920",height:"1080"})}),"\n",(0,n.jsx)(i.p,{children:'Sometimes, you may encounter a source that has black bars on the sides or on the top and bottom. Generally, we don\'t like to keep these, and want to remove them. This process is called "cropping".'}),"\n",(0,n.jsx)(i.p,{children:'First, we need to figure out how many pixels to crop from each side. Fortunately, vs-preview has a tool to make this easy. Using this tool, which is found under the "Misc" section in the bottom right\nof the app, allows us to experiment with crop values and find the correct ones without having to reload the Vapoursynth script.'}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.img,{alt:"crop tool",src:t(9096).A+"",width:"789",height:"285"})}),"\n",(0,n.jsx)(i.p,{children:'Once we flip the tool to "On", we can adjust each of the dimensions until we see the black borders disappear. We want to try to get as exact as possible, although the crop values must be a multiple of 2\nwhen working with YUV420 video (which is the most common). In this case, we know we want to remove from the top and bottom, so we will adjust those values until we find the right ones. Note that the size of the bars\nmay often be the same on both sides, but not always, so do be careful to check both sides.'}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.img,{alt:"zoom tool",src:t(489).A+"",width:"1241",height:"256"})}),"\n",(0,n.jsx)(i.p,{children:"vs-preview's zoom tool shown here can also be helpful to ensure we've gotten the right values."}),"\n",(0,n.jsx)(i.p,{children:'Once we\'ve found the correct values, we can click "Copy cropping command" to copy our value to the clipboard. We can then paste it into our Vapoursynth script, being sure to add the appropriate variable name for our clip.'}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-python",children:"clip = clip.std.Crop(0, 0, 138, 138)\n"})}),"\n",(0,n.jsx)(i.p,{children:"Remember to turn off the crop tool in vs-preview, or else we'll be doubling the crops from here on. Now, go ahead and reload the preview with Ctrl+R. No more black bars."}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.img,{alt:"screenshot",src:t(4887).A+"",width:"1920",height:"804"})}),"\n",(0,n.jsx)(i.h2,{id:"resizing",children:"Resizing"}),"\n",(0,n.jsx)(i.p,{children:"Resizing is the process of changing the resolution of a video, whether that's making it bigger or smaller. Note that although the general idea is that \"higher resolution is better\",\nwe generally don't want to upscale content. This simply makes output videos larger in file size, but doesn't result in an increase in quality, because the higher resolution is artificial.\nHowever, there are times when you may want or need to resize a video. Unfortunately, this is not as simple as it sounds, because we want to select a high-quality resizing method."}),"\n",(0,n.jsxs)(i.p,{children:["With this section, we'll introduce ",(0,n.jsx)(i.a,{href:"https://slow.pics/",children:"slow.pics"}),", a very useful tool for comparing screenshots. Here, we'll be using it to show the differences between various resizers."]}),"\n",(0,n.jsx)(i.p,{children:"Vapoursynth comes with several resizers built-in, which will be the easiest to use. Of these, we'll be showcasing the following:"}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-python",children:"clip = clip.resize.Bicubic(1920, 1080)\nclip = clip.resize.Lanczos(1920, 1080)\nclip = clip.resize.Spline36(1920, 1080)\n"})}),"\n",(0,n.jsxs)(i.p,{children:["Bicubic is the most widely used resizer. It is very fast and produces decent quality, but may produce less sharpness than more advanced scalers.\nLanczos produces more sharpness, but may also produce more ",(0,n.jsx)(i.a,{href:"/docs/filtering/dehalo",children:"ringing"}),".\nSpline36 uses a spline-based resizing method, and produces results somewhere between Bicubic and Lanczos."]}),"\n",(0,n.jsx)(i.p,{children:"However, using plugins, we have access to some more advanced scalers."}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-python",children:"clip = vskernels.Catrom().scale(clip, 1920, 1080)\nclip = vskernels.Catrom(sigmoid=True).scale(clip, 1920, 1080)\nclip = vskernels.Hermite(linear=True).scale(clip, 1920, 1080)\nclip = vsscale.SSIM().scale(clip, 1920, 1080)\n"})}),"\n",(0,n.jsx)(i.p,{children:"Here we will look at downscalers."}),"\n",(0,n.jsx)(i.p,{children:"Catrom, short for Catmull-Rom, is a variant of Bicubic which uses different parameters in order to achieve a better balance between sharpness and ringing.\nIt is often considered the best of the Bicubic kernels for image quality."}),"\n",(0,n.jsxs)(i.p,{children:["In the second example, you can see that we pass an additional ",(0,n.jsx)(i.code,{children:"sigmoid=True"})," parameter to ",(0,n.jsx)(i.code,{children:"Catrom"}),". This performs the scaling using a sigmoid function, which flattens the ends of the scaling curve to reduce ringing."]}),"\n",(0,n.jsxs)(i.p,{children:["The third example here, Hermite, is another variant of Bicubic, and we are passing ",(0,n.jsx)(i.code,{children:"linear=True"})," to perform the rescaling in linear light rather than in gamma light. This kernel is very good in regard to\nnot producing ringing, but it does have the effect of thinning line art. Therefore, although some users prefer it, other users dislike it."]}),"\n",(0,n.jsx)(i.p,{children:"Fourth, we have SSIM, which is a downscaler tuned around the SSIM video quality metric. This downscaler is intended to prioritize preserving detail and sharpness when downscaling."}),"\n",(0,n.jsxs)(i.p,{children:["In ",(0,n.jsx)(i.a,{href:"https://slow.pics/c/mb5Rm3k3",children:"this comparison"}),", we can see the differences between the different scalers, on an image that was upscaled to 4k by nnedi3, then downscaled back using the scaler noted in the image title.\nHere we have a couple of other ",(0,n.jsx)(i.a,{href:"https://slow.pics/c/kQvDOMYh",children:"examples"})," comparing in particular the ",(0,n.jsx)(i.a,{href:"https://slow.pics/c/UVwS62Vs",children:"higher-quality scalers"}),"."]}),"\n",(0,n.jsxs)(i.p,{children:["Of these, my current recommendation would be ",(0,n.jsx)(i.code,{children:"Catrom(sigmoid=True)"})," for anime, and ",(0,n.jsx)(i.code,{children:"SSIM"})," for live action. Some users may prefer ",(0,n.jsx)(i.code,{children:"Hermite(linear=True)"})," for anime."]}),"\n",(0,n.jsx)(i.p,{children:"For upscaling, we have the following high quality options:"}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-python",children:"clip = vskernels.EwaLanczos().scale(clip, 3840, 2160)\nclip = vsaa.Nnedi3().scale(clip, 3840, 2160)\nclip = vsscale.Waifu2x().scale(clip, 3840, 2160)\n"})}),"\n",(0,n.jsx)(i.p,{children:"Ewa-Lanczos is a variant of lanczos intended for high sharpness, making it good for upscaling, where we want an image to look sharper so that it does not appear upscaled."}),"\n",(0,n.jsx)(i.p,{children:"Nnedi3 is a neural-network-based upscaler which attempts to interpolate every second line to produce a sharp, upscaled image. It is generally safe for use on all content, and produces good results."}),"\n",(0,n.jsx)(i.p,{children:"Waifu2x is another AI-assisted upscaler, this one tuned specifically on anime. It produces very high quality and sharp images. However, the results of using it on live action content are unknown, so it is recommended to only use it on anime."}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.a,{href:"https://slow.pics/c/CpISIk1z",children:"Here"})," we can see the effects of these upscalers. My current recommendation would be ",(0,n.jsx)(i.code,{children:"EwaLanczos"})," for live action, and ",(0,n.jsx)(i.code,{children:"Waifu2x"})," for anime."]}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-python",children:"clip = soifunc.good_resize(clip, 1920, 1080)\nclip = soifunc.good_resize(clip, 1920, 1080, anime=True)\n"})}),"\n",(0,n.jsxs)(i.p,{children:["Lastly, we have ",(0,n.jsx)(i.code,{children:"soifunc.good_resize"}),", which is a smart hybrid scaler which automatically chooses the best scaler depending on whether we are upscaling or downscaling,\nand may use a different scaler for chroma than it does for luma for even better quality.\nNote that the scalers chosen by this function may change over time as new knowledge surfaces, and are based on the above recommendations.\nWe can also add the ",(0,n.jsx)(i.code,{children:"anime=True"})," parameter (false by default) to change the scalers to be tuned\nmore toward the fine line art that is present in anime, rather than the highly detailed elements such as skin and hair that are present in live action.\nWith these features, it is intended to be an easy-to-use general purpose high-quality upscaler."]}),"\n",(0,n.jsx)(i.h2,{id:"trimming",children:"Trimming"}),"\n",(0,n.jsx)(i.p,{children:"Sometimes, we may need to cut out a portion of the video, for example, if we want to encode only the opening theme, or if our source has commercials that we want to remove.\nVapoursynth supports this using Python's slice syntax."}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-python",children:"clip = clip[1805:3185]\n"})}),"\n",(0,n.jsxs)(i.p,{children:["This snippet will trim the clip to include frames 1805-3184. Note that frame 3185 is ",(0,n.jsx)(i.em,{children:"not"})," included."]}),"\n",(0,n.jsxs)(i.p,{children:["Now, let's say we wanted to ",(0,n.jsx)(i.em,{children:"exclude"})," this segment. We can do this by making clips of the segments we'd like to keep, and joining them together."]}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-python",children:"clip = clip[:1805] + clip[3185:]\n"})}),"\n",(0,n.jsx)(i.p,{children:"This snippet will create trims for the start of the clip to and including frame 1804, and from frame 3185 to the end of the clip. It then joins them together into one clip, in the order we specify.\nIf we wanted to reverse the segments, so that segment 2 comes first, we could do that simply by changing the order:"}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-python",children:"clip = clip[3185:] + clip[:1805]\n"})})]})}function d(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},4312:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/crop_1-73affad30171f53704bec5d92be8e16b.jpg"},4887:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/crop_2-312cf367bf3cbfb3dd3a0cff94d84811.jpg"},9096:(e,i,t)=>{t.d(i,{A:()=>s});const s="data:image/webp;base64,UklGRq4bAABXRUJQVlA4TKEbAAAvFANHAPUKgrZtk/CH/a3fdwIRMQG0prz2EsA208LdBbt6wj3T1Cplx0OfJsagggoqU6Hb6e8Yti7OrL8ZV0ZVVMFGBJRxayqP4WShMug5YX7DD6GBPTElCYATSc5jPL4xNHMPNAz0dNV5fd6T/4Hv8Sv8iP3KRE+pqisrM9W9jonQMjNXmpl54AEbUxvRUWZmz+yA2b5hw4lk27ZShQRwgX8VhOQI+MOemb1TIEWS5EjSursioiDs9/ijOTL9l8S2kSRJct/nlDd7EdNdGVEduy/Pzva/buRs21YJ3oM4siHnnO1hdXAQnO073zenmvrWHmhW4x7msAnclPr/ruv3D2uRVEfhXg4VAMmFJIAglsAbt2rQucU7C12ochCxbtbNalh3CSx3ElSkbrDvUBDABTj8IRC2a1uKogpxxg2HZ3d745v5gHF3xR0KqaQt1LTLBbJt22mbJUi5fZIbZmbmpNxx/rxgOxq+jEvhpFxrtf+0INsO2zaHHTZkRPniEQ94AGgTEf2VCIbJJqVmx2QkFqN7+jjcEjGO4iBSSqN7JNKUwiaGIs0xE5rHLw0TliIWTeI4FnVMdU2vnl80okb6BzL9CS34z7L/LPsPl5kRR9W36cdqb4b5824ViFnmSncG1FAFNVMHw1zjLMYqTIf1kMm9PjUTBRIQY5wvmIYZsX7vcyDGxZydNQQb0jAeyHbTGssP5eaUnKr6RmKU5JeblE5OPpvBlcW7ZuwBuWZEo7ptUvCxr9vqajoUDfWvLOlGonUvVueMiqkxZd8YOm8MNiRiPJSLsxnYqqbyQztGYoLZMNue95kZpDPLOPlsBkfdr81ER7Aa57p3Q0YY5yIir2+AYUxJqNqxf8Lw1ZXah7NNgodkjAewUy3lh8neTL1OK8XxzYIFQqYkn81gfz1Yq6WzXV2RKevAqq/dr4/hAdiQEB1gTRI8JGQ8GGPVUH7QnD1Xwkd6PzEDJ5+/gP0VOjHGHEoN47lA68KwrtLmk56LqQASPCRiPJAG5/wAmXIzt7RrxjmYgZPPX8DjJVQKgniiT7x2ri42JPVKl+hOSfCQgPFAhpOGdO3kB3JAtamuNm/U5LMZ/FCMUp9LQuUcSKHIRQ8FHpIxHqBza+qZH2BiP4FjbLeEW1msV59jZu5oyUkHQIGHBIwHiwjX/AAdh80ss+8OtCo3pyCGeiSm9RGL0bE7ozHY0ON4QBiv/BAsTPItZvB5SWvRtKFnBWK79t4+FBqT3lDE1tGGpJaRpeO7MdiQivFgxibEbn75AfBNFu/4PrrX/Hl0qIzJYPI1M3jRhRFNGqiKERRNYPSxnhJl6Q1hiDRvFDZsDPmh1cWRdK/8AJh2xPTJedxDx8TkK2Z4mqslxsfpbRjjsv887TtPK7X8LeJPHCwL/rPsP0+jTH9Cy/6z7D/L/rPsP8v+w3/yuWUTDNU0Jc78+Di0pQDkBlS9/Z8W3rkRdxBjbm0EWXZ8lRGfPXn8R85SSQGjGXIcHD9egLYUgNwArP9SeZ8gV0It97zvJZ89ucDYXSYsEjiaUCceh7YUgNyAzPv/jf9XePFr5DQYx3Z86bcn+/hK3QSSsuHQehdoSwHIDdjqKXyWkSsBlzL47clBttJGUFTUAVyWYhgUbircTWRI2r/6zZCt5KniVYX6kopXa+aj41FYCcmHOZk08SOOmaWFBz88x+MTN46/lEY+dEYNic4ooMDHrpz8cTRLFXA2I1PHX563JDUPHuPssfRk4b5283wIlETEhTii1ETpoInTz9w6+WhTxh+FZsTculHtkio8zfkMo+Oe2Ks/mAPwXD0GgF2wU4XlseR7yuhIlp+l1w8uMT0Yq+THWv0qISPAzwJHt7c8ub1lrHvzfC3w6P7LHDKQxZdMDATYDEqb4c8fSzCs/pCFOKaLsvuXCQwVbgVEe0XSgE1qgEf3eZV5/5vg/woqeNTgJ/DYsNv2scXGCDNWisCclUbKKln+rH5yT+yb6qQf3eSr8LQoZcJApeFjGE7+GOJpqQ5QlKHsUoh9FGNEN1tDBR1UOrAzvDzSsiwF6EfYHIF0aA2T4eXBkZ6YkXEYH0SqfAFJyyCHBELjZA0aKccO+12wCyXRFU4E2ZIScfO8ZkzdMLePSX2jYCDnAqyxFiG9YqxOHClWtyJhWqsKTxdIAG5ALBfjYmRq+JtmpcqQGOMrdtaU6peMEgegZjZzfVlM0OHW5kIc4dzw+8zaQhzBlaAcx4zbefCYPWjilpFicuPw51vQSpHcPsjzhfuQAG0DtyY5/hFlnTyO11ugt+yaVHUkY6/FARNPcmJEaic6AzKJB03PgJJedlG0ZcVJdASrAkm3MYmRUXZJgWJM3TBGgWnmvT3A0uXkgx9LtI7hQZMN8lyxuhP7p8Dvqsz7aQL/6u1Fz3Rl5Za89JYDHaVuJQOsyflYi2LrEwk/CaYx/HYEjToeA6eaNihPY+7o3EYv4mAH6wlFhEHay/bDqOrQGiCom1R0qIeNGaEqKfbBDM6Q/2p+1iHjiHupqEl0PcxIAxODQEkEJEwzpm4Y6ljQG1LDy+CaqtXdWIH/3fOZOPHFmP1T2BGGXrqy4oiWMkrpGtaHVLHCScGyickPNFIDuIiREJTEA8zmkOOVuEVyJmNc1WUkgv8w0Bz8SMlGnRG5Em9gqrj947gRKV7kDcqs7L8jFTWJbhtQ/ot0TC0pKLuaMXXDkK8jHE+dlIaHZnVHTHD2CjigtqrCO7T5b+2c9oQiOLLFGnfRA7JBBRuXL0Ykq2LVgf5x87xO2YX6YYA5hxx34DM81xF3OclvCYsP7Aw+u3MHym6ERUdJoit43FrEhWBjejO8DAWUMFCs7gq+4vqeghECf2MaOS7YuvSOHnOghTyQsTujXGOgxTpHWr49igNXUCJkH0t/VJq4vUVOkef2lddhoEvpQNNX/kCQyChWd+fWzt8EoyZCU5H3uL1yyw10sEArshXHwQi9/M1fHsXkpMtuzAuIyX+ac3RG0hr14Dc/g3Kf/MmbsosKQtA9CVaCzmsH1H5on5XpeLUCxgzDWgQ0qztCQyM2VkyVZcI51/GRjvK/ssu7NbTd2ExjNsPL8CrMA7/FvBuxp4V7k+IABt7pMNE1cBkfwZ60ETqXHEYOvnCEPuQdPCwIIBAb/ScNx19c5yGDskAliR676XUnD7YUNGN6QO+uwFZ3g+ojjf171FfS04qvOB0m1sIu6gdN3OLDBrkL2BV2QLh9ccdHA5SzIzVjebgBxgkOMbDD7qPOCL1VgdNKUg5vICzEUek4cIeVDcJsHEumcFREaXGDcqNEEokeLbp8rrnShjoY1ZgeLwHdZsCCUazuyn61+35a51SM8Ta+TYxw0IFep1tO1ho1xZw2YGSI76us4zhWTV5P21lzvRTO0WCjvmSddwvX4aqr9oD6gE8wfG54EtdNDf0Gx6m5CStDrzSK7w1PmiG3s4jw9SE19fM6lJbGiFLhlUbxU0SS5iBf8021XY7mm/oaMWrn5031KTITalAO232qbLH7oC0FHDdwyWH7D02bTZIwKWuVzFfHIPZfQxdh9cEhtKUA5AZE/d+Lz1mT9w5RvFcQH+LEgffyxt8lbJPhQdOf0IL/LPvPsv8s+8+y//CIYrRIQOmNorBvDCCiCUsn7dVcWljMdPhZNSxW/BgfFPNJueZ/ZZ3GnwcCqlgUP0aYy3EVGy9RXszljVRjDByMef4Ny9Kr/4V1Gn0eCDBKVWfs6Szhfym26aqBhUnLBoCjxp4HMMFsS9ahu0Bkkww0TBM/Y1yxzpcMLuSC8AKU0lB4fCyMK+v8MTIkQ+pIN+MFhldLMo8B5xggg5EB3cRASDQVadNGOf/s/GPlHDE6xNyjqtYYRdZ0uc/AqbGy2GhOp95MZD+BcJ9FUYfMvsTaR+CXmjnolx4mysOLwWW+YAbki81ihYGi+NDOIun8w1cuVZj3mWNYMq7gcXtkmS+2E/6hv1LRa5DQI8+IMcRDCFEe4UuYgi8dzIjx77XChVkqDH3XvvaA5d3l2CyFKStNkNfe1Sx8T32fsUOjpA2e07oXq5CEOcdpoQnhQs+DSy/P2GHJzHU439crDL3YEIFn1RL+HNcW4Gt+LAE3xhCe4OPmiubBnzmhHP+ueaUyhbCb4kaTFnhCVjj1jmy11lC+U0MerS48O5i9fcO9wPoSePddaeLbBGbjslqLSDJh14HHOjOWAqrVlcYIPhcyKb6m+DTUjBo8e/DY1KTVkoNa0TOnn1VhOtRRHhZZN7eUe5SK7fU88OqL7pUEDEVRNJnrBfTA/PoFaOoYeVoBSgqTJqyBw3v6IXm0OYPAo3vCiMWPaWNcjV87p3EvMPG7iTjZ9npfuBcC8PRzpoZ7fay6UvtQkBFS0U8Ux5pEG3BKUYJa7pWbKDY4q+J+l0wQXV5pIjNi/Hstgkq03RBkgyhWmOSG8tNf4pDn7sbZjyRsr089V4nvxph+luHpAW8Sp1GeklhviAUZsbcvCvtZNu7DedUhTfA6tdwTB8WEhjwMaiIuGcXjcIPyhYYIg7pMU5j47qpa1LmeEHm0uk747W7EUKxGIlhCmx5zH3gXb5Bmfl5cNvA40K2dYvbbvf2gu81+iNOu/Q6zAoLv80X3Sj0M9Py6MqUXNYUJolqjlOKD/3fcuNRYD2tbdoNfhcWUZ66IoPZr51TKzQhLaChYK3BByisQmqmA+0kpqilMwWErJaDxbmPLbiws3fj1CzQ+0vguL6FaWsV19do5hTwYIg1eq5Z7435S4yM/hnpHKykhS9iA10kgJwrT9kZU3g0fXxU0S3Mng2OTMnw0LLHyzRJEPx8Z7+1baHX13VgtQWMFPddKuYkKXJjszelne/uZWu5Z+ogDH/byjB1MGGbneqEj7/ehTena7+B9llrjIxA4UCMW+jjdDb4qFzU0zEvWy030s3tBmXbJNNMOg9f1huRo7fjaOSjNrKDKSXSh1ZUvqZZ7KDubhD8MrvRZlXxQ3sVv9I4tgxSZBAnJWOGS6+pcDD/S+81NFmE8uWmCV0nJsxXULpzCCO5jtRwNipiNud4ZFmRWUHXfZQO6kPVyjwvD184FBw+5BFdfUUNztSiuzRzXsZ8Lx0eU98syUrhEY+nzbbBqBwgd4OnPLhGZ1vyp0UvWHyvg/GYJwYytsqhN9BiQ8YI39WBAJG24+KQ3dOtjbiRwMt8UkUxchzzaoqWR0IvKTKhz1G3jf4A5bHvASdjesQhetnOL3ukBp+s0DZIZF1ZdjBmdG1E6mdhZLyooUR5C60IJAGNMWMjRbFgMRGsHN0LDOd6xCJliMTJhpjeoU/I3HmXFntyObExnD7EYKCKqSUaMZoj8EBoDDeo4fMb0J7TgPw58fxbclpDg6U9Pg0vHZTuXIfAtISnkmoVisS2b1PdScFiaTD1rUROVPm6hxcpfDdsIij+9DM5G5YK+JSQ5OSIz2JQvxbWmodS9fc/I/d5wP84aue+b7xS8UyiLcTD86WUg29BXv6xY1NJZFU+d2TMyY6nujfvzj0Ij93NXZ1qiqgTDH9qCZ+ZFy/Im7BX1kzJR0ibpglrjrXf+UZ4oNlKT1SD4Q1zwjJghOBLCntK1aY/RJ90gsthc94DyRGJnpSZB8Ie44BkxQ3DE+I3DlFaMDJyulUi6pKjs/KPeyeEA+ENd8IyYIYgCtPBBTqSbyjfq3VoUw/eHuuAZMUMoRJ/Sipppk67qjj3qO0zjInx/qAueETMET4AWUyumRN3kk/e+Vu6WpZDg/aEueEbMEAqxTmnFmQsiTs3J2vX/PKfjiQl+eBivylLd4mxWykMvf3HnDzNP2a76aEobBt4f6oJnxAxBhLnGmblxhSuQCzTb6NT2lF2vz3OvvXyWFh789FS3y2Opd8EcB8v+h5/+7cfESZb7jfrq/I6FIWB/AgP1/5MLYkEpRdEy3qXHcQYCvnSWCClenrFDin4eo1MPQz6d97L72fP/7YHITXeU3HxHSgDdH5eb89Eb4nmygnHwjJIhQcfpp8rD72iJFx0F1+C2U6mj4+U3/2kWEuhFpqtk5L4tdkw9+gORPt6WxY/NAZ7BM06G4EtHrTW4vVqqcHjVOf0EHlhUatRnWzhRHv0BiXrWkiHE3S4U9WtRCErVCdjBG4ItNDMGmD1MenA67/BL/NGJTQ/Wxx01x5ro0R+oZOPkoDt8wRwO6G6UpqZLhruahQ/tLNQZWtEdtq/9TotYA1sV067WuqzCjVAGuV4UxRSFhDYIDmyv0+3YYoyvLXaaMcbYdwfL/PB3FXaXyagLUGfXvLvd+/zvDdj+eKzmC6Yy4QhzouYL080+/hrmyBm037jCQTjdv7k3pGRYKTdzbyhfo2Wv/Q6MLPeXh/vRaxFrWuF7b/gaBO9U+esX5L9VvIOlZhAEkSljQAYJs4JTnsAcYlqTTJoLeST4Bmx/3MC7DQOgQBr9gjT7W92+/0Yb/HQCM2PhO0OGRJumBPDrty+Sed81j74LaSyDtIg1DWRZ5oGfQZQQ4RIWFTA3BM0guMFfAG+0Hpprv0t65fHifwv9Etj+OB/G95Unn2l1gSnezN8T1je+1ze9Fwf6mPmTwdxNvrzSQ8NqVoY6QItY046fQcgU4Hl0X/bVpmYQ/FBy03zBDL9K9WHPhX4j2P64raAdgvBtymGDxfiBngu5mefCAA5ANyA2tHEGdzi5or19jyaDhRd6CmrEGqCocUC3QWYNTHGWRyCIbONtELQDrwIbJPBMaOp7FkLsThE2uvl85JdboQcNvfkDE/AnRFrk4QGtxtdMVACCkTborQLRVusUTntCxf/1wkANCLUcChCUOtPG+NMamOLt/CTQ5N0eULLBB2n3td+FNQgSB1mWhaK8krrepAsuPkk3x7msur96SXkl1YeB6ySGVrOZOYBIuAzQ6S43VXKMojzBJn35vRngShrUesQaamUpk7E9Rkm2B6ZtnqFRUJp8WGCDBBmeNFzg8ZFVGndITwd4MSVSrXP1ep5b8bwiInB/PA6jcGtCM/cIhzbZITjPohX17+3bd9OUQLzAFjXMwQC4VDSzTK0IEtit2ACTbA9M2zzZkLArKRehmFANgt3dcFAYfreiiHKz7wVYVSY5mfA83ECtsj6ti/D9cTlf1EoHyk08TAfyq+8pb3WnIHT82jmknRxZpvjfatHTI9YEaUdcplwHuxNotxgAdbBBcCNSK22C3TiEyOi7w2NTzYQvqoE2uQm0P16UmzDYh+ev97HaoXWj1Y1+f2jjzAO31+dKe1qAlCBU6JuS58cXrRFrkitUkyzXf0yHGQNQeRHYIIhObkrZPNx8mQZbDvU+2XE7Dba25gsX+D7ySh5fNMMYDCz6+f8PEfK6Vjc87H6Q+60Rq3dQ6o6WWEtgGpzyCo2PaKvABqF+GqwxNbHRt4QJv9ljTVGYUIA+ExKowOYLJk7OQG3+8GHw8oDMiPG75kSOf3lfpmtqjViDBKXWw1QbwG8ykSUwtZCN/bvjZOychvhfgN3NgAbBltTOwy0pNZENWffKurTGW/e4Sa1T01XI/gQBp7+MPcOBlzGNOsY+OQJP0hRfux5fOxeOP/KVTasFLDgdrqJo+gelXoOG8NfSr6cHpjpkG/eq03oxWHkFLwsLZxByMcbtPMfD0Sx6T8KW2usiCds0RoeD4U+YJuF8wazzwXOwwLReGITUqfo5WZSfPvaSrnPNRbrO/M6zshgHZOZ+I/w22GCBaa0ZhOrMhO4SO8+OU+D0g53rWmdqotKxzsTOgcnx0giD51CBad0wCLnpv8Lr8UQ1cdK6onAzvp6MAGUDozB4DhSYBs8QFLOdSwXglfJH1J8eRr6pdNoYbT8ZAivlj6g/PYzMhCYjZ8GV8sfUH77nsMVRzww3BoBK+RPoD7VB6VkJtXVDWYgOnjGLlnVU9Aall85q64ayUBw8IxYtL/jf3JW+c3NXdBJeNndFJ+Flc1c08libm7uSzy0hVok/oE9N/uoWHwqfdKFjp8df8uUXi4RYpeBBLehxc1euCauUDUpp8P+ats94xXAOPW7uivCKmBf4/A09tRM2Nnelh42/3/pZU9j59njw8+Puhw8QUNOJkdr6cFdI4pvDRGGWCqNn7TKNnPkTUc8acmmI6/1JLf8p/wrfPpLEh7vCDQ6Lb1o6z/NZGvqT4c5jKuiu7F4k8uGu8IJPrVMVDF9BTro3luwk8uGusIJ/+pOhfzd/LIb6YSfATSxpjihz+hnOFAVl4C15XvuYemuUTUuYSQrZzV3x5biCd440ZmmmMoCiKO4EBwQc3DlMiASIvEDHM0qFVhTFQf7NYWL3sNjZwGbQjbPi03eCc1gUxS6mRNQc0Mbhzqw9VKI2VPkVJCoDeMaaTIv6prSq/r2CAfUc7szaM0baM6KrwugNSDQL3QVpLP6Dnb8PcuGbiLTx7+YLpmWl/HP4p/Rv4h/3zCc0cuUq9Oau0MKdw4TasD8snpEM/01LC3/Cwp3ggA4p+1GdKu3Q8CcifFPS4Ag3zhoP2tkwPLsLmoU/Yf0Hed4sDoji6pERuCuuduOs+A76Nau8U3Ys6o2oa2f+o4L1Rn4ousHhm1c7z6Dm/JtD/1GeH0KCCkjRgYgHA1F8t36GN8LHOaJo4CQSLJ/IyPY6VWmwm7tCFFA/QAiEzkOiTFjHsZ36ZU4AcptUfaGzoGZwD3wFcUDJO6RaBuDEOKgHP0ZVoBl8FQIzxTqQbJJ2Bg1E8Zkx3fAZp6Cjov1GG/eGIgEmlYDAbu4KOagRHDmcbJBfijCO7RSXgGgOvJdFGAnUW0AiRS9tbKBgLQLUexbs6jFxDPscwIEeuCApZQORCx3XdmXsDtXNXfH5V+PDq06Iz0gdorgusQt+FRapkRA1xaA+HP9UFgf5P5U6/17B0Jghv0vJ6hl23I18w2sFbfhdrENAiIp9RdIVbpx1R0lm8FUTg7WlxGp73XH3pMe7FRr7h7sivpy9eqT4pb5bCc4Od74iJHc2bIMpijdYdmO1BI0V9BnrRhMVFM+o7SKb+hBIt4AOefhhoi9WDpvqH9IOaYJ3s0J1c1f8WrnkQHyhMtAbfNid4ECbgXquoAeMh1BIyuEBwv1V8LrimZyFXz0C97BiVOqHgUr9sBtn/TmE7UKHuuFWqV7nShsIoTmi8ExR2jizRTtUN3dFfBCPOhS72uCH8BW08ydDf4E5nN9O8SAZqyDENYqCIjgeFPn3v/+ULShDFhu5FRzKMCMez+gJvnqkqfcnbxqdn7IJywYa4mO/znBwcpNFpE5u4t1KV22QAXm9SeSdpPpxyTobp8GSiqULIDVQW3wpToP/cFc+A0lzZyMt/Pu/4Jjhkvx7wxv8h7tSN4A0i52NPBXwiF9RT64FPqjP+abaLqvyTe1+kJmwbhv/620O28Qf0Ccrm7uC37+qJ7FK+AF9crK5K7u/VVBiZHNX+hNa9p9l/0EUAwA="},5090:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/vs2-bafcc8e7dc68430ca2784ef3f66237c8.webp"},489:(e,i,t)=>{t.d(i,{A:()=>s});const s="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUEAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAIvwAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAABNkAAAEAAAAAEHBpeGkAAAAAAwoKCgAAAAxhdjFDgSRAAAAAABNjb2xybmNseAABAA0ABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAIwRtZGF0EgAKCjkp5sf7OAhoNIAy60VMXALeehH34DSO1KOqmz7MCPjQuOHswOwa78SwKAzLA3jxphdNsxXhWIDeJXHmSkzRCUQIM7G3Wr/5sPcE/b+sQe2ehR4BRhVQJY34/3Qnl6YE0OTHdYipjlB1rR0BIVVAFCZLt2+BXxZbTm+UveKIXJlsNO+xHx2TpqBhaAXwOk1Cp2+qeeGqa0KLlkdV4Wo1ZPZ5b7gTOJr+EkxaF4kRfzgNDDf1p1iM1IYrSvmLK5MOqF1MTAFZZO2+Rmx4pBKU/PiG+OoeR0a3dY/030pJs4hn3pWAz6786g/lp6a1Vdk1iYBX7pibBI/cnDb7Td2i6Jphk65gmYKcdUL/hEB7Xv6LWZRi3ZBvRCHop4YCOq1Ct1uzkrlQB6m/E8CHC3+5j4yJAuBJGXdZN5Vy60m7/rxxLaIeKu4Ensi9UKS9mJWPeHZPON9w1tJzYuBLYEvtlxN99gJaPo8zSoEaRNk0QxbOxa3xN5EQPaDOx+7nUAL45qucOnAYc6n6U33+mSuEE6THceMlxOK8KTePKN6bXwi4W9QobTevqOI65XTvUzCPIPpzCg/9npzXX6kME4D9Z4ff/C1b97o1Ii4YE3OiXX1beVCg6vuK5IaBLIbvi0r2AbZTukCo1+dGYKtD6/PHVIjDJWJthadEI1p3651Uimj+q0O4aSZP/BYduCKEmL+ZBfgBRETuw7PSsx5fj09KKV6L653poPmpcq/CR9wupY5L0KQb2ZowQKAA6w84qXfV0MN3Yq1tkdy8PHDWhs8WXxk8O0pWdwWvCyoPS49/lUu8CjnWoRYvej2tj6BWrFryPt9sVyu0BC0v7H2Zm4k6XeZ2GkbSQOqGInSFWx2g27zNUfxtmPjikkGhMy8PinoTtzjvCQRpBgDPgssOt/2OjTLJUklUXicdeA68Sotz3jz2C6m74qTWi5y2Ibx+gHQ4E05zT5CXbd1ESqDeOK48I3dKwJo/42PPXGwpOv03UWEPpRiO3nLcLrFhhaLX4e4JEYYpqF0PaPjowAmCmTuy294c4YQWx3K5WvQ6ug/wYdVbMpaAtbYQ89CjeT5ayyTfbYtRfL0dimiPcIKnhz0LEfDa+nJhXI4A3uYoDnP7ncO/AN7T4MF1wRwWOAWMCOV0VV0s6R5JFMNwAOThfw54vFk4dJm4+zlqw0ibDRFa9n/W0VOouvf4YUrJokFnVlh5P7jRXN4v5N9/+dsnbc1gTCIcrfbgRaYDwprlro90g9D+JGdkjA8Jp0a/4fr3hJSqY6mVfRWBmdcj7oE6EAJyEb0MIi2jeiYVkndsNb9EuHEvz4pyHam23Th+9xAsmt20yjbKZ5MlSO9EEAT3a+mSWD0+5vG/fBr7CJGVEiXa9wiw17r+1zIDoggtNyst3AD7plGGmbYMhR77EFHnOrV1bH9UFfi7A/5Vaypz+4ChGbsNvxri6Uh1Jth5DHzanyqD7zjSktCFHCezXrAEzeRyaU1D90BWv5Yu+uL45QFEcidZd6D8YLXu+aCp9e+xAnWtil0oFXx9WsWAR4QkQWp/nLWdwsyUlNV5nfuFg6nb4ztALEj9Rkt9ewixjr0MhPaTTKQPtI99lLJR2zSyHK0Vd7TITqsoHeLmkG5rT6A77382LZI69knPz1uFodO1Xe+fe/7Pq7bn4KDi94+4FhzCKiZGDNwhBMkGyr+1jvwCQvUNOtzscB3KVU9pDoUSAGL1H3Dd28s9H6aqehFzTgNtbmuDbjEnaaqPzAnwSgE+N0wN66rUqbEVAK7sz3YLauaztO87H23YPb5hHds0UK83isTHMueCf70xU3hIhdKKkz1ec/fMKJsgfAzYkivN6rID3xgiuHCigtfka9XOZP+O4tfcLJaM0N66XEsBPYbpyia7BD3nuZKRzYJUJkgf1YJAqkHw99zfCLK/Fl6Hf8Hu9zNHsJIqh/CouA1h/JTFN2OMdPtKe8iyId0q9ddON6Ot1mNq8Cc2IV0pfY8g88G+51bi517UQihi5BqQhuwruT71t26BIGfr0XEXAqb3OnTquZJ1EUR/HvU4xNCPwQMLLPzBMIf5rZLOGvwm6D6rrxRV37PbaAUBzlx29w8Qux6wvqo1EkQXIzhH0AHv37J/wIzaxeNn4QhYGB0b2PVYsy9zjHTaijwiJSI/Y029+YeoE1PcDwaLXes/hA17Cl3DB0Zejx3K1zZq3z4lDS+83DhvuY+OFgDtWvFNoR4JwNfG9Res2MLG7o3vzUg52scQiBpTwBqiLigyf75V/GW5BiYYlHecuLubpMY3TaHC8GvsYa+JPbMb7JP+wV2YqmoWaitderD2a3Sa3xW0yBjKf/xTO6zuyl2zj1pCnOrlH+Z/XdL/kzwecrAlaVmHhPOsWuI3+77PaWYVKjphWNRDh9fDrnT3rMQe8beUu6vaD3PBh5KZyYe4bc0LTuZ0ankMKet/FAqJfaQ6iHDYGZIQ4voqmavnWEWWz+WRmiS67rwrBa16ddTjUd5IXvc+bwXfWROAQYQJO/2OLEEuRCetJ+YbWh3R6cKELAsg3wNdfbgb9jNLMbvl9/AqqkdESRnswX+5MCtNaH/kyf/94kRlSmmV/bQ/2XjlP5zH1ponXKh/tABkWujsZNzQlHghq/HE09gBOpwqjII6DDS9nIh16wjn7pSy7oJjmer7Shqw478BsfSL0p46jaPW/Y+G2corWa7si4v7rYxUj/TtxKaPHDoZJzttH0XNbG3m9rGZP5L1+waseodL5JqSyHH44gLBExkqJ+7bDGRc0/RTTWgYPEgQ9Gu8sEANEGCZQQfyWFJDbxuV1Qx+hVWDyURZGmd/xPOtNGpahcEwbD13Yi16q8h/TizVM0eXGlOVd9d6b4loXWGT+i9ceFhU0fb0eW9aERIgbnyBGCOFDOBU3Wqy00t8RY8RMhdOQn8m4nDoIxtvWLF/mBCzjvbu7x/s3ucjMmwdn+/yFrKIj+/NBFs+XfL+tGNTnL7T/4Cvpf5lo0fxv/zZngW7vtfczztnk0uDbOv4W8U94RM2q3fSIpNHFI/1+mAOTEuJfwpZpzjcnOOwXus6xIi6t3lkvYa5EOAKEjlOf/9jA3qO+UuP2u6zIWLThTq+yQEP3kTirku81T6337D/Ged0PY6n3gAU/77ZrW9irYIPvqL8LjVk3MolNuF5QG/8NqnrJs+OiasEp0TCkVAcW8cRLeZKxCi8WgoMYPQbK5pPm1hdj+YU8NTw6UZR24JD81FssE3qLDdgU9WWRnuWNfXt3HTMbbYfMohMeXxkYxD+qegUHuwYoNpTe2uZgD+232ff8E7CAKcyqGrpJ9l7q5hwBEaUQVp9P12P7mL1Y4pX2Qe6+P7GgaxqMvWMHrqW85Ub0qWdydLOgcvv1RnHgbz+OCZQ9opCpfwYgJUIOl5sNlCqxh+cbmUE1Qq4T00CzOpdi+9hYWxKTOh3AOeqNblNWVUBZjv3UMU/19H+ZeljkBtqFlxqHjR6sXx3ENB9/2j8GsYlOgrxuD1nYbQFfwMMLy0hVbuU+mc0r4b8JfAa8xaXQ4NWbeEhio/l9R52a4sKdIh1k/+8rgpu/6RF/zLgMLK6vBm6HHDJ7IH+suxR5HBQTRFq0AQ+cTomBOHzXn2U2ctUhDPtdEbKh/0Hcr27keL1nX1MUIQCWUWiquEJzU3+XIRMzmpfOCW6j2Lz7ao+aPVjLKX3ruT9Ax9lbti3gu8qVMojPMb+mmemW2U9zHuN/Stxkdp4eOzKixTfI3ZJ4iugFsWGnsOl7MDiS+5v5mlXdlwBRtx7xj0HEYWesMURFsKBR3CpRYrJPYdvpgtzX+GNu9QxppwDicKeZR/KloiviK3R31I0ACnwCl6T8YuQqVJJ/IceQ193N7B9Hm8GA4LJo1d/wlhXrLO+Lc8oWYGnB9MF+wHeDM1BIvhRXcD8mhlBGdOxHQOn7Ai3H+rQUVH/jDa7WaXESs2kDaQ7RyCcWr3el0KQS0iEN/3AevWHmlw9Zrwy0x23YUcOYjWKoFnK/3/MH7k4rANMOGPl6t1PUQ1gev5gasFsrqcLCpwnHUJv2nz0CEQduNoMLA7U4q6IjZiRflSvQMAfLF1GfE4jjQf9J3D8MTE27f3r4L8LNaoycwzSkjw3MFC37mBiAn8T9qa8TXGmR3Vkc4nXdsf3frqbKS9IY1uvpr4pnjnUxnQtNAb0E97PXq9SHki7l3v9PFQe27mue2aS3X9ZUEEdNNAaawWPsM4dXGrngpW4nHwOZ19yRtFkfRGdgo0XjByVfXI9LP/WMPD288LCLRcGHhJ/2MhkaMO1esY8aM7QY1R6q65ZkhbWyVmm3U8XV1ADUX+vGX6wchENf6VLdnZPEJkQF6iAkcTj/d/qaLuxouoV77YtEzPBE2UuS7nqbCIYw4A3Dlhy1lDH2gchYsyn4B0AqpkqlJGL+rcp6DGf7e2lwhbXuzKChwoz7HjcXAM/fWFAXmQFOwkIxVDu9CCSpR/BW2a7oc0qnKjxKioSLhkQqBG7AChHLHyqIRjJh9kk5Q+YaJqjo/GhQbnEl70TMinS4kLuWNT+e2AGisURU2mMxU5+p96rbfsmQjulK6K0Rmam89/QtVRwwZ5dJzwgsIpH4UkevA7CsHtgH8j5P3xI+3gPt3ZroCVICIyNqm16Lcs60TvbmTh0XWlLqjWfdJbtQvrr5wS3WcZy9/F4UtZfLsS4wcINcjXyX1mfBFpks7jWQPeYuAsAAPc35bFPeP4MvTqvUksdh+3aHisyiizRapngiDAP9TDVtcaOpCAWeiV1nG1727qK1OgtDB5XsiUKncpuV4LoA2CsFYgtNoIK40B/jL92/2mL7D07r6IwFf4oLY6F7k3e8ETzfsrzRPE6kFzpH733Jh/O1BEVq/BNP6a7VpNfNWC8kUmLS+wW3J+aZKoByInKM/EI6GF4UaD6C4hKRZth0rhhtN08aB8cfBvi5JJSMm5JAiWEO5faeBYLmaHaeqUn21ShpmQdSlzyXhSokZ1BFTHnxYyiiZUQT8ybvR++01csRW08jLS1lX8ui+q/xqQLYay0fPYhQUChjKXmUYNsz3uxohwJ9n9OtiNYbBKgB7YBV0BzAVhUSYF7lPon9X81KcQXxNyjy9G607rk10BFgT2lQQqKKLDOJ80qEcSXaHbgXSvWSs3JTAkoirZzs6gdIzxrNTVPXJA+KNAcv8d5FykcRm48rnGsQzBGHK96ldA4UumEmPIGVPaw/uI3oMoGXup79dHn29r0xGa4SMq93B79A0F+rSTwJY5gBWOFhSR3o67b1dV+0dEIDNvyGafoCdGYyhbHtPmFC55uoFf17SOhyeF8XBXafLpj8rLUkVKPi5WhU8M2CW0opaYmhKh0EtBcAvPlGIEAfh2EVvv+i/82hDdFqoOVg2nbLalXDL6N2lCKr8lR4s8Hw41VqR7TfzB+iuz62UmXEps0SzofZinXA6lTFZxpl5D2p2t6vaXHuZ97L9GKGbte9EkeXxERGfFskMzJniv/a8U0nG/HkrlFd2o9UjEJkkK2EvvWxabx/8AJ61WHu8oPQ815vmT2WjHs1DHGl2TPLfO0T89b0vVR9jx4bGvUiNS1LE5dPyDq923GTMH4iRUkqtfMR5bJf0OitcSfT9pPnPtyWZwZl/6LUEt0uGA/kYIfzKqf8LTUhBA49soSdjx8ycoh9xDloSYw/2+gSGktGiKyMSLpIR78AiJ/AeQ3eB6IJKxsLAoGwgdU0AB44jAFyqKG+qrF8oN7c7RN5uKlSjrZVFjQ4dm3Z8b8wweNZGuKul7NoMwcHrn0TwTAfzE3sVNWYkZou/UReDdeGuxki1J8Ho7ZuF5/4jNnI3seVRxZZOfOAc0dkLSL/klsbVM7VbFNOFlcjvHbSDWfbbHVOarsWEEJwWvRDvWiUt7XjyrdXqF4DHrjMd3hqpYakOD4JelIlQ9Hmr12UB9tPxdgLk/8T+bGtkCoUO9ZagsKzFTvp6mzI5VZODqutnS7g8fWLi9B7DTGHLKFmIwL0NbmB7qthhhTJSYjA3/0km7O6YwO7tgYDeQwSDWJ4fOHubIqRHi2qZMsc0Ux3iLIXD+XEyMkVpXIEWzyiKJFVLtV2VBM25depeLOwMvoQTkpEAuCAei6JWotoqCniK2HQQ5czbBGurBRJIBgDSWBM7dD3olC7/C5r83Odx1XcCp6QC04J3nnQ8z2eQExVWJZGhp8Ohu50mPJCIEdZHv1501fBw3rfyLZ2aWdRwYkGTtywt33Rf8GeeCWmlovaF0IpSLYUC3ZwxcQFvVOtnRFncHwWhe4LWHy3Eq3WatF+N8dcQoBs0X7Kic9jVBND2Q/bYGsJEZo6dQrKhn8Egzltzotj2658dLIBQGNP5Xxu3OsijCrVwWOVOU+1Zu3+YXu/itrcYpnH0+FjVO/LnD05afVRgfSMbJ2YGf0j3iuqtchTq446gFZmXfqitbH6hQsJ3edbn5NoN94VJVf+dNR9ndfdb5/CUlZkdxFKtngcOvG/5/RhrlPrdW7VaP52DxISG5+5t97IYqZm7klDQBNl2q3oaGp236/uKkLHzCRuppxCR5ZhZU5ax88yBTVyPH9BPydhpcu9SaUw9ioYk5eKnuzCApshiIRsjR73mOh/bRdM7qPWwwHB1t/cj7Kk7yZT0GdWu/tF4q4TFg00jy0sdGsIbk8Ip6JLiLOoY3gyVEr291xjO6X5XcCEXEe4Gf5NqGmpiJadR6nj5cPNcJB83ostaSv7JpfJcPsDRK9j7whYJT6pYWzV59vvql2hR4wmNsKqs1TPP7v21KvNsGKfa9hjAiziD8kb18DDGOQBvrGSBw7Ar4ZfSZG3YyYORAoBSNwb4eXbWgeQxgUTxas/2kDR+0Td2JQrtyM1WJvMXZLFjaBE3hMeLXXS3Z5kmayRMsu1mxU6batMEd92Z6DTfRxvYQ1x4RbgMz3c9RdN5+02zq4+l825fHssNnLHZH7c+T4MBpqVqXNiQbd1EaKjwFGt7JlNXhnJQDkCMG8jOx5e5YVq0OE7J4JnoLWgQfxvJMLWXXb4F2KgCQmhoigkQfo4nn//0aUXZnbQotbGknXLxbqQO3fcRheyoC9B1B0kFBCl2krN7C6SzXXUjZ8Vts0jm6dDZztNX3WTOpLW/GZ1NwQI9490/6CFoqZIIVRDwcxpHxjSFkGrLrcBPbdevRNYotzbPoUM7GtXzNTGLKHHd3oeMiUEwjCvzCb9tEKapUVqFjWFaFuawXprUkIHMyGB/qoEvAr4Tkd+dM4w8vXxt47sWuapHjFahqZ7AYiSkl1KRnpJVnAIn2hfyK01r4zX6fsGLjmGwgC3STAsK/rvVY4vGqX2pNDxFC/ZdLjNbUwPM92+dMgIADI0d3IESsXZP7fChPwlySSJdP2gkpzTcdHTt/kehTecL4jzVN5HcM/y4Ybv3d3Uq8fjLU/nPhIzmKYtkwWtAvRn4Wm+mUzY50kpl8OMtbvYS6jBMlWzwJVLwRKSGu2v4ixlxLvtsWKXNJN67HPpWuQZsTPEY9kfuM20AoKGfvp7IOnkyYrQnEYfHqfmOI/hD1KxW4Uc8qb3mL+gGDJJHRFA50xTzcyYVE2V65wcwikEvI1wvABRZSD4tlogqOzQtYOQSebtRsixcFq7dx3yitSXcg3GMBx0kZ0z2PYVeF9ONOvk48TUxiodvmXh1Gj3dmzWR0fBcwivjH70FthvE07VqtxJ4OAXQJvEIqt+WqAUqEJLJFb1Hpu5V2UYyu8gdEZ9gcV9xEmC6MZ1C1WnYsmUQonJnEzvAg+KikFTh/sPwuu7FeTyEP6yZlJ6vTvj/CUg1/cfkSBCRsHALIrpwxZp+dhdsClP0HEPGHRX1utz1B19N7+sDU8sbQHcpZ1Tq50EevAzkilLT8IVe2r+YsLGLGRPLAPvmeANP6AgP/aWRyeAZhQjFSdddPrgpqcUGV8ZoKaGe7sqCpqfb0U7cck4lMnekdOSvdHUnh6D6gvuvK1KArPbAY6QuBkiV2bH1jxuFe9myfYZJcSUJy/Ml6TULplZBQIARaIyWV/i91tYxZm/wgTILQ3xII2Ca6Mk/QpvDGdF1U5aSjTEzH0QKXjwmC7pTJPTP7ByoSI4vhFaoaCOX12426UJI3FeWb3cCWTR7qP0TETuCOyInzOZHrrBLLjtyOKu3ctcIMwBrtmdocg3gZPWTe9k1eS2vDgddL+CmTlJ8VaxL2In/u8AkS0FAWhO6LN04bUYDyGY6J4nb7ogZ73S1+FB/x5z4cAloo5frnrgqgVxXLom55jkoxZKffhta7ObQjcLrCusxVXVoWwIAnePJ+VekW3Z7ip3k8ekF+mGt5/n/pyKkT9kXUC9Nu50ET+YxCrLNaT8BwByh1895oqcj0rSbYGT8dAGkD4k5n/9Z7rBIENGB1pcjBJHbLujys514JYPVPTLVqLqCzCd4pmvOTcNVYHsLyNZYXnFJ4oMeWez8fdNPnmhFBJpuZCNSwfC2EGn+bnduyao7GXEKzV78gLWwgdIS36UTWTPFVvrZqAX8xYkIlfU8kJRKVjaHN1Dis7VwEFYE3+H94TZd8T7bGqm1549HfwFPH3nIsxYZ+R4VClLSaENh8VapxRxKMpK7BJ5XebkloaBMGIBPPkaEqMgnKi1vhd993284Mf/VCN+Xvw087MDkWXIJgOepWWfaptwsjesMYvF4O/06/mko5yZDMRj06IQOiq3e8RVwuWOfmBjSzRH55rCNSMZCxUNnt3lDiwk6j62f/72Ga4ECAiPWrkkA6zvyR7xs6yAtMBRdTC+hS0/aWP4AaVseNR0oo8GG+qe4uM4Cv2OEbgbfuYqZNuStGs1T7wlVtm/c5vh2alJ20qQPGz+2YJrP1O7pZvsT4qxACMdLAoEBK/E7aS2llx4HQVih1pYvcOhIwpQwrbbtnq8Ee/kq7b3v/6R/J5aTJJeJTVYb2+JrlJIwV3M/Obbq/wlY5tGrphLdACgci4WEvZi4YOp43DcDGdBohGafM56r1UVwiMVhYoqoamqRMQPfDfHfbrQV9pV6bM9TdQdC2ZeX8CQd3oklK27D3L/PCY1dxVjt989/2qMYhvxAhxGthDrGD2D7nd3SZG1oXMplb2nyGPrK0wOrUoGjDuzM0ii9C6QhDyFwB6Y4BF+5E35nJlDopr/YDcy/L7zk09Zk+brdhvPpLjTOHqgpbIB4/NuUZ2tJCnp3dQurpQlYCmSaDK7Wk6RZFMvahcsECVsauTkDRK9tg9V4bG3AmQe9ePMz0t4WWDuDCn1ApSGGhEoqat5rjlLuLeIzFpL4Z5nmKQv9n7QrP0I1xPrUWnGfOK8NfE8Lo5A864o7apdTtx+j5LOlanlgRpG0nONEIY2lQ9EIUUTx7ii2Yh/rYnDOMCOXJ+h8e5pGMWeZMmJszx47W8kiUyX0wpZr3pVaGbe6TJ3LU5VGTDaWHpUPSpDjyVYsG03u5f3XZk2dG7liP1MlsG7msTLNXXZWdJ205Hp/8uA5pTJjR/T+vkYCcd3WUbUmtusbTW01DlFmxy/WUi22+YmusAcYqDvfzu0rjmW1kZ7Gp30NeYWu0eY82tpj8LPFoSxyohzJIubR6hxpb3JhuCsHoxzk4DFz8JWlRtRP4eD5ZJfOrFUyoZyxCNXAzlv+ZUzDY0qBQR/Um7K2hjPIs4xa2HxzFxKUn73Ib+fc5J5p6mCapAcgWPR63l8w/IhBLU61swwNPqoxD/LgMwP8rGr66V//JGVcqIhHC3ag3P0xOzwouiUwpAjYAGVBDCd93Rf7a65xGVc/lzO6zAZxbk6pFycjNuqEOZQoGPri7K8wkdQW61KTJJxfdgILcNuvI8hAkm3EkotEJBP6eFSovOBCa2jIEWNISiVl7W4UfLHh9DXye47evYz3NFgLpqsqIJR5WfZA1dHRStTT6IN1BY+Xgz5sV5wxcUNJOU9KaGOiMy5wieMZzi0yh6Ma83fSA3BgiZO51BZPF8mb8rt3cIM3HnUGqxMp78cbnPP+n/6UQDivWw04EmdyK1npKedx7x5DTPedMvRLsDq8/dBzKarDJ3qNLF4NulaUrlNhsl0ixBoJKS9dS0SnevINlYoOvri7Pr4OucUQLOJDMsIZDyolYTlBJUiHzvzPsWQfHkbCj6Ci4ZpcWsUitXfGLpfjz3kopJLxdGoxyJKUdM0ekNC/nAhWuFV7LlF3UFPcJCUxIDxUn2iaP7gkDQKIN4jBgkzkt2ZrUayQGHDisL0mWgxCU84F9QDayV1wDwlV5rz35XSQ0DtHeqyBc1v6rcatjigeqr8ykoeoDSv/HVzyuSayUwt7cLuFxFaBP9LcAB5NdnHvGSCVvZMP207zHmaG7S8Cv+OrLVHPdEIMbqzroiOZR7ZSDJId+BJA82jNIggmHgfwFyN+QCApL/M1F2x899LJUjBHCOU/QWThb9IDYoxG9aaJKIcSAiWYWLf6nztcS66ccpJGTqqWk+6sRuEGXtsAxQb6BN6sEvMQHsVyYZ88KLeUgM71gLlRVBG3rLvNcflYqXI5B03LDcJYm0ZzBRrIAEmVw0PY+/XQQyCPsNvuv+7oPs/k95h12xr5pOvKWeySqDOjYlSh2lRNUfzXZ34uVV8tFkCeQfU04cwXUCoJG+jPHksE19YaoKpc54G4naFUP+15xh1W9CDPeFbIRjHftTXF19h1OB0PnMiItrnp/MO7mIwDX3o/4HsKmzYq2XWPjm6CrisA/RWec8RpdDsCSuA4qjxdf7PyLcfuAQvUkkU7WjUiBkS7rrElVbeLT7dDwidYGctp1hWiQ1ksJum0CZmwwuLzzJUvMvpm1TJSr3iswtKREPFaaTEYIZrK2V1uKvzPNbFXxVFoiS3pU3X2zeYi57tMsgrnipeHY/jZEvz9jg7WT+Eme5fnmEmWdLoCM/FiXNC7RyZ60PRmNY5JMxQJjql2zb6xF78P12QMrAmbQuu8r/9SGtJ6vCsTAXQkdNUdWYHtPnpuIAvUXrcPqmlQFaNQhFe+65IaaO0ctjusuVvxnyJuRYwvI1sqoyxuFhlePbkzcmEEzllJwHIeKGNu1c/OUlZhv5oxMMHvWb3UNcvLRdID83NzPBud5XVTMiT21Cgx4EmpUw5n5Wo4JbmYjCxtNGeZG9ZaoG1N40A1r3h+HvmB/7/7sBWwnu02nnfm4O0waAZy2aEo1w3+FMNvH059nxSU54GQXs4xzcsXyoGK36Zo5V8inoKjKZzRuetCp4hg10PnwItpyKVS02yWtn8O1KtT+nEB7mcZCEAJrl4PIEbqaoW6peQMfLbkVQQJWjgf1qviz8Rgt4w9ZIG7gfbWR248uzGBJWt1qoDxDBLwyzwUbR0ro5ReDoJbYoYRM3PaOwA52NAk+duUScu72zvreSPPjDBoZKBPqRLASmzuFbuXEsADCmxZdMg40+/AlGHBVybajEB3Ect6yjI4GvaD95tU+U5NHUfpxHTByiGF7NNEIM4WhwHdv27ptU1QJrSBzq8T9HKLHcLv/UuwdsZi3hs7muaKOwPDasfX0QVYKsncRSIo9S0c1eQ5E5ov6OJ5vZyRuGNYeie6Cd3fR4J+ApJdrh3GYiFE2TSg6/fHSq/OVaF04OkdvVln97nC8X16eb4p+Ah8xlGwF5tp7rdNeN0P+QoVmQk4OXjJAWl/jhOHrMgbAbKHEK9D3XiyAjZqwbwOdMG7/3i7H5vEvd++vpmqR9uMhL4oASyugdvQFBLcGKsBMekgn+R5eNdbNvIGwqODrNYAEzckXpe9j527Uo91iGXT/yt7o9XHi3cJy5XJZpYz4KA4HLOWzCcIoWQ5RGHJmIXX1jnfpS8ePWVMPD+Os9g+F8fYES2Pu7t5ajZCTl4DW6KsabGAJ5aiqJf07SELzJZdMVrlTISaFtkf23fgq1opf61l3HI7X7JQ=="},8453:(e,i,t)=>{t.d(i,{R:()=>a,x:()=>r});var s=t(6540);const n={},o=s.createContext(n);function a(e){const i=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),s.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/939f23de.7f243198.js b/assets/js/939f23de.7f243198.js deleted file mode 100644 index 76c7a2465..000000000 --- a/assets/js/939f23de.7f243198.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2590],{631:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>c,contentTitle:()=>a,default:()=>d,frontMatter:()=>o,metadata:()=>r,toc:()=>l});var s=t(4848),n=t(8453);const o={title:"Basics of Filtering",sidebar_position:3},a="Basics of Filtering with Vapoursynth",r={id:"filtering/basics",title:"Basics of Filtering",description:"Intro to Filters",source:"@site/docs/filtering/basics.mdx",sourceDirName:"filtering",slug:"/filtering/basics",permalink:"/docs/filtering/basics",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/basics.mdx",tags:[],version:"current",sidebarPosition:3,frontMatter:{title:"Basics of Filtering",sidebar_position:3},sidebar:"tutorialSidebar",previous:{title:"Vapoursynth",permalink:"/docs/filtering/vapoursynth"},next:{title:"Inverse Telecine",permalink:"/docs/filtering/ivtc"}},c={},l=[{value:"Intro to Filters",id:"intro-to-filters",level:2},{value:"Filter Order",id:"filter-order",level:2},{value:"Bit Depth and Colorimetry",id:"bit-depth-and-colorimetry",level:2},{value:"Cropping",id:"cropping",level:2},{value:"Resizing",id:"resizing",level:2},{value:"Trimming",id:"trimming",level:2}];function h(e){const i={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",header:"header",img:"img",p:"p",pre:"pre",...(0,n.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"basics-of-filtering-with-vapoursynth",children:"Basics of Filtering with Vapoursynth"})}),"\n",(0,s.jsx)(i.h2,{id:"intro-to-filters",children:"Intro to Filters"}),"\n",(0,s.jsx)(i.p,{children:"In order to do filtering, we are going to need some filters. Vapoursynth includes some basic filters, but there are a lot more useful filters\nbuilt by the community that can be incredibly useful to us."}),"\n",(0,s.jsxs)(i.p,{children:["For example, we are going to make use of some of the functions in ",(0,s.jsx)(i.a,{href:"https://github.com/Jaded-Encoding-Thaumaturgy/vs-tools",children:"vs-tools"}),".\nIf you are on Arch, the recommended way to install this is via the AUR, using the ",(0,s.jsx)(i.code,{children:"vapoursynth-plugin-vstools-git"})," package.\nFor other operating systems, it is simpler to install all of the JET plugins at once, using the ",(0,s.jsx)(i.a,{href:"https://github.com/Jaded-Encoding-Thaumaturgy/vs-jet",children:"vs-jet utility"}),".\nNote that these do require Python, which you should already have installed if you've installed Vapoursynth. You may have noticed in the previous section\nthat all Vapoursynth scripts use Python syntax. It is not necessary to know Python in order to write Vapoursynth scripts, although it can be helpful\nfor some more advanced techniques."]}),"\n",(0,s.jsx)(i.h2,{id:"filter-order",children:"Filter Order"}),"\n",(0,s.jsx)(i.p,{children:"Order matters when applying filters to a video. There are certain actions that must be taken at the very start, and certain actions that are better to be done\nlater in a filter chain. The following image shows a recommended order for many of the most common filter actions:"}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"filter chain",src:t(9419).A+"",width:"720",height:"409"})}),"\n",(0,s.jsx)(i.p,{children:"If this seems a bit complicated at first, that's okay. We will learn about each of these steps one at a time, and when\neach of these filters might be needed."}),"\n",(0,s.jsx)(i.h2,{id:"bit-depth-and-colorimetry",children:"Bit Depth and Colorimetry"}),"\n",(0,s.jsxs)(i.p,{children:["In most cases, the first action we want to take on a video is to ensure the correct ",(0,s.jsx)(i.a,{href:"/docs/colorimetry/intro",children:"matrix, primaries, and transfer characteristics"})," are set, and convert the video to 16-bit.\nThe colorimetry properties are important for ensuring accurate colors, and 16-bit helps filters to work in higher quality and create fewer artifacts."]}),"\n",(0,s.jsxs)(i.p,{children:["The currently recommended way to handle this is with the ",(0,s.jsx)(i.code,{children:"vstools.initialize_clip"})," function. This function will handle both ensuring that colorimetry is set, and converting to 16-bit with appropriate dithering if needed.\nWe can add it to a script in the following way:"]}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:'import vapoursynth as vs\ncore = vs.core\nclip = core.lsmas.LWLibavSource(source="myinput.mkv")\n\nimport vstools\nclip = vstools.initialize_clip(clip)\n\nclip.set_output(0)\n'})}),"\n",(0,s.jsxs)(i.p,{children:["If the video has existing colorimetry data set on it, ",(0,s.jsx)(i.code,{children:"initialize_clip"})," will keep the existing data. Otherwise, it will assume colorimetry based on the video resolution.\nUsually, those assumptions will be correct. However, there may be cases where we know that the assumptions are incorrect, and we need to set them manually.\nFor example, we may have a 4k video that we know was upscaled from a 1080p video, and we want to force BT.709 colorimetry. In that case, we can specify the properties to ",(0,s.jsx)(i.code,{children:"initialize_clip"}),",\nand it will use the properties we specify instead of making guesses."]}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:"from vstools import Primaries, Matrix, Transfer\nclip = vstools.initialize_clip(clip, primaries=Primaries.BT709, matrix=Matrix.BT709, transfer=Transfer.BT709)\n"})}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.code,{children:"initialize_clip"})," also has a companion function called ",(0,s.jsx)(i.code,{children:"finalize_clip"})," which will, by default, convert the video down to 10-bit with dithering, and if the video is in limited color range,\nclip all pixels to fit within the limited color range (this would be done by the player on playback, but if we do it now, we can save a few bits for the encoder). The function also takes\na ",(0,s.jsx)(i.code,{children:"bits"})," parameter in case you would like to finalize to 8-bits instead."]}),"\n",(0,s.jsx)(i.p,{children:"As a result, a very basic template for a Vapoursynth script would be something like this:"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:'import vapoursynth as vs\ncore = vs.core\nclip = core.lsmas.LWLibavSource(source="myinput.mkv")\n\nimport vstools\nclip = vstools.initialize_clip(clip)\n//\n// Add filters inside this section\n//\nclip = vstools.finalize_clip(clip)\n\n\nclip.set_output(0)\n'})}),"\n",(0,s.jsx)(i.h2,{id:"cropping",children:"Cropping"}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"screenshot",src:t(5145).A+"",width:"1920",height:"1080"})}),"\n",(0,s.jsx)(i.p,{children:'Sometimes, you may encounter a source that has black bars on the sides or on the top and bottom. Generally, we don\'t like to keep these, and want to remove them. This process is called "cropping".'}),"\n",(0,s.jsx)(i.p,{children:'First, we need to figure out how many pixels to crop from each side. Fortunately, vs-preview has a tool to make this easy. Using this tool, which is found under the "Misc" section in the bottom right\nof the app, allows us to experiment with crop values and find the correct ones without having to reload the Vapoursynth script.'}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"crop tool",src:t(9145).A+"",width:"789",height:"285"})}),"\n",(0,s.jsx)(i.p,{children:'Once we flip the tool to "On", we can adjust each of the dimensions until we see the black borders disappear. We want to try to get as exact as possible, although the crop values must be a multiple of 2\nwhen working with YUV420 video (which is the most common). In this case, we know we want to remove from the top and bottom, so we will adjust those values until we find the right ones. Note that the size of the bars\nmay often be the same on both sides, but not always, so do be careful to check both sides.'}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"zoom tool",src:t(8240).A+"",width:"1241",height:"256"})}),"\n",(0,s.jsx)(i.p,{children:"vs-preview's zoom tool shown here can also be helpful to ensure we've gotten the right values."}),"\n",(0,s.jsx)(i.p,{children:'Once we\'ve found the correct values, we can click "Copy cropping command" to copy our value to the clipboard. We can then paste it into our Vapoursynth script, being sure to add the appropriate variable name for our clip.'}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:"clip = clip.std.Crop(0, 0, 138, 138)\n"})}),"\n",(0,s.jsx)(i.p,{children:"Remember to turn off the crop tool in vs-preview, or else we'll be doubling the crops from here on. Now, go ahead and reload the preview with Ctrl+R. No more black bars."}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.img,{alt:"screenshot",src:t(4878).A+"",width:"1920",height:"804"})}),"\n",(0,s.jsx)(i.h2,{id:"resizing",children:"Resizing"}),"\n",(0,s.jsx)(i.p,{children:"Resizing is the process of changing the resolution of a video, whether that's making it bigger or smaller. Note that although the general idea is that \"higher resolution is better\",\nwe generally don't want to upscale content. This simply makes output videos larger in file size, but doesn't result in an increase in quality, because the higher resolution is artificial.\nHowever, there are times when you may want or need to resize a video. Unfortunately, this is not as simple as it sounds, because we want to select a high-quality resizing method."}),"\n",(0,s.jsxs)(i.p,{children:["With this section, we'll introduce ",(0,s.jsx)(i.a,{href:"https://slow.pics/",children:"slow.pics"}),", a very useful tool for comparing screenshots. Here, we'll be using it to show the differences between various resizers."]}),"\n",(0,s.jsx)(i.p,{children:"Vapoursynth comes with several resizers built-in, which will be the easiest to use. Of these, we'll be showcasing the following:"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:"clip = clip.resize.Bicubic(1920, 1080)\nclip = clip.resize.Lanczos(1920, 1080)\nclip = clip.resize.Spline36(1920, 1080)\n"})}),"\n",(0,s.jsxs)(i.p,{children:["Bicubic is the most widely used resizer. It is very fast and produces decent quality, but may produce less sharpness than more advanced scalers.\nLanczos produces more sharpness, but may also produce more ",(0,s.jsx)(i.a,{href:"/docs/filtering/dehalo",children:"ringing"}),".\nSpline36 uses a spline-based resizing method, and produces results somewhere between Bicubic and Lanczos."]}),"\n",(0,s.jsx)(i.p,{children:"However, using plugins, we have access to some more advanced scalers."}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:"clip = vskernels.Catrom().scale(clip, 1920, 1080)\nclip = vskernels.Catrom(sigmoid=True).scale(clip, 1920, 1080)\nclip = vskernels.Hermite(linear=True).scale(clip, 1920, 1080)\nclip = vsscale.SSIM().scale(clip, 1920, 1080)\n"})}),"\n",(0,s.jsx)(i.p,{children:"Here we will look at downscalers."}),"\n",(0,s.jsx)(i.p,{children:"Catrom, short for Catmull-Rom, is a variant of Bicubic which uses different parameters in order to achieve a better balance between sharpness and ringing.\nIt is often considered the best of the Bicubic kernels for image quality."}),"\n",(0,s.jsxs)(i.p,{children:["In the second example, you can see that we pass an additional ",(0,s.jsx)(i.code,{children:"sigmoid=True"})," parameter to ",(0,s.jsx)(i.code,{children:"Catrom"}),". This performs the scaling using a sigmoid function, which flattens the ends of the scaling curve to reduce ringing."]}),"\n",(0,s.jsxs)(i.p,{children:["The third example here, Hermite, is another variant of Bicubic, and we are passing ",(0,s.jsx)(i.code,{children:"linear=True"})," to perform the rescaling in linear light rather than in gamma light. This kernel is very good in regard to\nnot producing ringing, but it does have the effect of thinning line art. Therefore, although some users prefer it, other users dislike it."]}),"\n",(0,s.jsx)(i.p,{children:"Fourth, we have SSIM, which is a downscaler tuned around the SSIM video quality metric. This downscaler is intended to prioritize preserving detail and sharpness when downscaling."}),"\n",(0,s.jsxs)(i.p,{children:["In ",(0,s.jsx)(i.a,{href:"https://slow.pics/c/mb5Rm3k3",children:"this comparison"}),", we can see the differences between the different scalers, on an image that was upscaled to 4k by nnedi3, then downscaled back using the scaler noted in the image title.\nHere we have a couple of other ",(0,s.jsx)(i.a,{href:"https://slow.pics/c/kQvDOMYh",children:"examples"})," comparing in particular the ",(0,s.jsx)(i.a,{href:"https://slow.pics/c/UVwS62Vs",children:"higher-quality scalers"}),"."]}),"\n",(0,s.jsxs)(i.p,{children:["Of these, my current recommendation would be ",(0,s.jsx)(i.code,{children:"Catrom(sigmoid=True)"})," for anime, and ",(0,s.jsx)(i.code,{children:"SSIM"})," for live action. Some users may prefer ",(0,s.jsx)(i.code,{children:"Hermite(linear=True)"})," for anime."]}),"\n",(0,s.jsx)(i.p,{children:"For upscaling, we have the following high quality options:"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:"clip = vskernels.EwaLanczos().scale(clip, 3840, 2160)\nclip = vsaa.Nnedi3().scale(clip, 3840, 2160)\nclip = vsscale.Waifu2x().scale(clip, 3840, 2160)\n"})}),"\n",(0,s.jsx)(i.p,{children:"Ewa-Lanczos is a variant of lanczos intended for high sharpness, making it good for upscaling, where we want an image to look sharper so that it does not appear upscaled."}),"\n",(0,s.jsx)(i.p,{children:"Nnedi3 is a neural-network-based upscaler which attempts to interpolate every second line to produce a sharp, upscaled image. It is generally safe for use on all content, and produces good results."}),"\n",(0,s.jsx)(i.p,{children:"Waifu2x is another AI-assisted upscaler, this one tuned specifically on anime. It produces very high quality and sharp images. However, the results of using it on live action content are unknown, so it is recommended to only use it on anime."}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.a,{href:"https://slow.pics/c/CpISIk1z",children:"Here"})," we can see the effects of these upscalers. My current recommendation would be ",(0,s.jsx)(i.code,{children:"EwaLanczos"})," for live action, and ",(0,s.jsx)(i.code,{children:"Waifu2x"})," for anime."]}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:"clip = soifunc.good_resize(clip, 1920, 1080)\nclip = soifunc.good_resize(clip, 1920, 1080, anime=True)\n"})}),"\n",(0,s.jsxs)(i.p,{children:["Lastly, we have ",(0,s.jsx)(i.code,{children:"soifunc.good_resize"}),", which is a smart hybrid scaler which automatically chooses the best scaler depending on whether we are upscaling or downscaling,\nand may use a different scaler for chroma than it does for luma for even better quality.\nNote that the scalers chosen by this function may change over time as new knowledge surfaces, and are based on the above recommendations.\nWe can also add the ",(0,s.jsx)(i.code,{children:"anime=True"})," parameter (false by default) to change the scalers to be tuned\nmore toward the fine line art that is present in anime, rather than the highly detailed elements such as skin and hair that are present in live action.\nWith these features, it is intended to be an easy-to-use general purpose high-quality upscaler."]}),"\n",(0,s.jsx)(i.h2,{id:"trimming",children:"Trimming"}),"\n",(0,s.jsx)(i.p,{children:"Sometimes, we may need to cut out a portion of the video, for example, if we want to encode only the opening theme, or if our source has commercials that we want to remove.\nVapoursynth supports this using Python's slice syntax."}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:"clip = clip[1805:3185]\n"})}),"\n",(0,s.jsxs)(i.p,{children:["This snippet will trim the clip to include frames 1805-3184. Note that frame 3185 is ",(0,s.jsx)(i.em,{children:"not"})," included."]}),"\n",(0,s.jsxs)(i.p,{children:["Now, let's say we wanted to ",(0,s.jsx)(i.em,{children:"exclude"})," this segment. We can do this by making clips of the segments we'd like to keep, and joining them together."]}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:"clip = clip[:1805] + clip[3185:]\n"})}),"\n",(0,s.jsx)(i.p,{children:"This snippet will create trims for the start of the clip to and including frame 1804, and from frame 3185 to the end of the clip. It then joins them together into one clip, in the order we specify.\nIf we wanted to reverse the segments, so that segment 2 comes first, we could do that simply by changing the order:"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-python",children:"clip = clip[3185:] + clip[:1805]\n"})})]})}function d(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},5145:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/crop_1-73affad30171f53704bec5d92be8e16b.jpg"},4878:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/crop_2-312cf367bf3cbfb3dd3a0cff94d84811.jpg"},9145:(e,i,t)=>{t.d(i,{A:()=>s});const s="data:image/webp;base64,UklGRq4bAABXRUJQVlA4TKEbAAAvFANHAPUKgrZtk/CH/a3fdwIRMQG0prz2EsA208LdBbt6wj3T1Cplx0OfJsagggoqU6Hb6e8Yti7OrL8ZV0ZVVMFGBJRxayqP4WShMug5YX7DD6GBPTElCYATSc5jPL4xNHMPNAz0dNV5fd6T/4Hv8Sv8iP3KRE+pqisrM9W9jonQMjNXmpl54AEbUxvRUWZmz+yA2b5hw4lk27ZShQRwgX8VhOQI+MOemb1TIEWS5EjSursioiDs9/ijOTL9l8S2kSRJct/nlDd7EdNdGVEduy/Pzva/buRs21YJ3oM4siHnnO1hdXAQnO073zenmvrWHmhW4x7msAnclPr/ruv3D2uRVEfhXg4VAMmFJIAglsAbt2rQucU7C12ochCxbtbNalh3CSx3ElSkbrDvUBDABTj8IRC2a1uKogpxxg2HZ3d745v5gHF3xR0KqaQt1LTLBbJt22mbJUi5fZIbZmbmpNxx/rxgOxq+jEvhpFxrtf+0INsO2zaHHTZkRPniEQ94AGgTEf2VCIbJJqVmx2QkFqN7+jjcEjGO4iBSSqN7JNKUwiaGIs0xE5rHLw0TliIWTeI4FnVMdU2vnl80okb6BzL9CS34z7L/LPsPl5kRR9W36cdqb4b5824ViFnmSncG1FAFNVMHw1zjLMYqTIf1kMm9PjUTBRIQY5wvmIYZsX7vcyDGxZydNQQb0jAeyHbTGssP5eaUnKr6RmKU5JeblE5OPpvBlcW7ZuwBuWZEo7ptUvCxr9vqajoUDfWvLOlGonUvVueMiqkxZd8YOm8MNiRiPJSLsxnYqqbyQztGYoLZMNue95kZpDPLOPlsBkfdr81ER7Aa57p3Q0YY5yIir2+AYUxJqNqxf8Lw1ZXah7NNgodkjAewUy3lh8neTL1OK8XxzYIFQqYkn81gfz1Yq6WzXV2RKevAqq/dr4/hAdiQEB1gTRI8JGQ8GGPVUH7QnD1Xwkd6PzEDJ5+/gP0VOjHGHEoN47lA68KwrtLmk56LqQASPCRiPJAG5/wAmXIzt7RrxjmYgZPPX8DjJVQKgniiT7x2ri42JPVKl+hOSfCQgPFAhpOGdO3kB3JAtamuNm/U5LMZ/FCMUp9LQuUcSKHIRQ8FHpIxHqBza+qZH2BiP4FjbLeEW1msV59jZu5oyUkHQIGHBIwHiwjX/AAdh80ss+8OtCo3pyCGeiSm9RGL0bE7ozHY0ON4QBiv/BAsTPItZvB5SWvRtKFnBWK79t4+FBqT3lDE1tGGpJaRpeO7MdiQivFgxibEbn75AfBNFu/4PrrX/Hl0qIzJYPI1M3jRhRFNGqiKERRNYPSxnhJl6Q1hiDRvFDZsDPmh1cWRdK/8AJh2xPTJedxDx8TkK2Z4mqslxsfpbRjjsv887TtPK7X8LeJPHCwL/rPsP0+jTH9Cy/6z7D/L/rPsP8v+w3/yuWUTDNU0Jc78+Di0pQDkBlS9/Z8W3rkRdxBjbm0EWXZ8lRGfPXn8R85SSQGjGXIcHD9egLYUgNwArP9SeZ8gV0It97zvJZ89ucDYXSYsEjiaUCceh7YUgNyAzPv/jf9XePFr5DQYx3Z86bcn+/hK3QSSsuHQehdoSwHIDdjqKXyWkSsBlzL47clBttJGUFTUAVyWYhgUbircTWRI2r/6zZCt5KniVYX6kopXa+aj41FYCcmHOZk08SOOmaWFBz88x+MTN46/lEY+dEYNic4ooMDHrpz8cTRLFXA2I1PHX563JDUPHuPssfRk4b5283wIlETEhTii1ETpoInTz9w6+WhTxh+FZsTculHtkio8zfkMo+Oe2Ks/mAPwXD0GgF2wU4XlseR7yuhIlp+l1w8uMT0Yq+THWv0qISPAzwJHt7c8ub1lrHvzfC3w6P7LHDKQxZdMDATYDEqb4c8fSzCs/pCFOKaLsvuXCQwVbgVEe0XSgE1qgEf3eZV5/5vg/woqeNTgJ/DYsNv2scXGCDNWisCclUbKKln+rH5yT+yb6qQf3eSr8LQoZcJApeFjGE7+GOJpqQ5QlKHsUoh9FGNEN1tDBR1UOrAzvDzSsiwF6EfYHIF0aA2T4eXBkZ6YkXEYH0SqfAFJyyCHBELjZA0aKccO+12wCyXRFU4E2ZIScfO8ZkzdMLePSX2jYCDnAqyxFiG9YqxOHClWtyJhWqsKTxdIAG5ALBfjYmRq+JtmpcqQGOMrdtaU6peMEgegZjZzfVlM0OHW5kIc4dzw+8zaQhzBlaAcx4zbefCYPWjilpFicuPw51vQSpHcPsjzhfuQAG0DtyY5/hFlnTyO11ugt+yaVHUkY6/FARNPcmJEaic6AzKJB03PgJJedlG0ZcVJdASrAkm3MYmRUXZJgWJM3TBGgWnmvT3A0uXkgx9LtI7hQZMN8lyxuhP7p8Dvqsz7aQL/6u1Fz3Rl5Za89JYDHaVuJQOsyflYi2LrEwk/CaYx/HYEjToeA6eaNihPY+7o3EYv4mAH6wlFhEHay/bDqOrQGiCom1R0qIeNGaEqKfbBDM6Q/2p+1iHjiHupqEl0PcxIAxODQEkEJEwzpm4Y6ljQG1LDy+CaqtXdWIH/3fOZOPHFmP1T2BGGXrqy4oiWMkrpGtaHVLHCScGyickPNFIDuIiREJTEA8zmkOOVuEVyJmNc1WUkgv8w0Bz8SMlGnRG5Em9gqrj947gRKV7kDcqs7L8jFTWJbhtQ/ot0TC0pKLuaMXXDkK8jHE+dlIaHZnVHTHD2CjigtqrCO7T5b+2c9oQiOLLFGnfRA7JBBRuXL0Ykq2LVgf5x87xO2YX6YYA5hxx34DM81xF3OclvCYsP7Aw+u3MHym6ERUdJoit43FrEhWBjejO8DAWUMFCs7gq+4vqeghECf2MaOS7YuvSOHnOghTyQsTujXGOgxTpHWr49igNXUCJkH0t/VJq4vUVOkef2lddhoEvpQNNX/kCQyChWd+fWzt8EoyZCU5H3uL1yyw10sEArshXHwQi9/M1fHsXkpMtuzAuIyX+ac3RG0hr14Dc/g3Kf/MmbsosKQtA9CVaCzmsH1H5on5XpeLUCxgzDWgQ0qztCQyM2VkyVZcI51/GRjvK/ssu7NbTd2ExjNsPL8CrMA7/FvBuxp4V7k+IABt7pMNE1cBkfwZ60ETqXHEYOvnCEPuQdPCwIIBAb/ScNx19c5yGDskAliR676XUnD7YUNGN6QO+uwFZ3g+ojjf171FfS04qvOB0m1sIu6gdN3OLDBrkL2BV2QLh9ccdHA5SzIzVjebgBxgkOMbDD7qPOCL1VgdNKUg5vICzEUek4cIeVDcJsHEumcFREaXGDcqNEEokeLbp8rrnShjoY1ZgeLwHdZsCCUazuyn61+35a51SM8Ta+TYxw0IFep1tO1ho1xZw2YGSI76us4zhWTV5P21lzvRTO0WCjvmSddwvX4aqr9oD6gE8wfG54EtdNDf0Gx6m5CStDrzSK7w1PmiG3s4jw9SE19fM6lJbGiFLhlUbxU0SS5iBf8021XY7mm/oaMWrn5031KTITalAO232qbLH7oC0FHDdwyWH7D02bTZIwKWuVzFfHIPZfQxdh9cEhtKUA5AZE/d+Lz1mT9w5RvFcQH+LEgffyxt8lbJPhQdOf0IL/LPvPsv8s+8+y//CIYrRIQOmNorBvDCCiCUsn7dVcWljMdPhZNSxW/BgfFPNJueZ/ZZ3GnwcCqlgUP0aYy3EVGy9RXszljVRjDByMef4Ny9Kr/4V1Gn0eCDBKVWfs6Szhfym26aqBhUnLBoCjxp4HMMFsS9ahu0Bkkww0TBM/Y1yxzpcMLuSC8AKU0lB4fCyMK+v8MTIkQ+pIN+MFhldLMo8B5xggg5EB3cRASDQVadNGOf/s/GPlHDE6xNyjqtYYRdZ0uc/AqbGy2GhOp95MZD+BcJ9FUYfMvsTaR+CXmjnolx4mysOLwWW+YAbki81ihYGi+NDOIun8w1cuVZj3mWNYMq7gcXtkmS+2E/6hv1LRa5DQI8+IMcRDCFEe4UuYgi8dzIjx77XChVkqDH3XvvaA5d3l2CyFKStNkNfe1Sx8T32fsUOjpA2e07oXq5CEOcdpoQnhQs+DSy/P2GHJzHU439crDL3YEIFn1RL+HNcW4Gt+LAE3xhCe4OPmiubBnzmhHP+ueaUyhbCb4kaTFnhCVjj1jmy11lC+U0MerS48O5i9fcO9wPoSePddaeLbBGbjslqLSDJh14HHOjOWAqrVlcYIPhcyKb6m+DTUjBo8e/DY1KTVkoNa0TOnn1VhOtRRHhZZN7eUe5SK7fU88OqL7pUEDEVRNJnrBfTA/PoFaOoYeVoBSgqTJqyBw3v6IXm0OYPAo3vCiMWPaWNcjV87p3EvMPG7iTjZ9npfuBcC8PRzpoZ7fay6UvtQkBFS0U8Ux5pEG3BKUYJa7pWbKDY4q+J+l0wQXV5pIjNi/Hstgkq03RBkgyhWmOSG8tNf4pDn7sbZjyRsr089V4nvxph+luHpAW8Sp1GeklhviAUZsbcvCvtZNu7DedUhTfA6tdwTB8WEhjwMaiIuGcXjcIPyhYYIg7pMU5j47qpa1LmeEHm0uk747W7EUKxGIlhCmx5zH3gXb5Bmfl5cNvA40K2dYvbbvf2gu81+iNOu/Q6zAoLv80X3Sj0M9Py6MqUXNYUJolqjlOKD/3fcuNRYD2tbdoNfhcWUZ66IoPZr51TKzQhLaChYK3BByisQmqmA+0kpqilMwWErJaDxbmPLbiws3fj1CzQ+0vguL6FaWsV19do5hTwYIg1eq5Z7435S4yM/hnpHKykhS9iA10kgJwrT9kZU3g0fXxU0S3Mng2OTMnw0LLHyzRJEPx8Z7+1baHX13VgtQWMFPddKuYkKXJjszelne/uZWu5Z+ogDH/byjB1MGGbneqEj7/ehTena7+B9llrjIxA4UCMW+jjdDb4qFzU0zEvWy030s3tBmXbJNNMOg9f1huRo7fjaOSjNrKDKSXSh1ZUvqZZ7KDubhD8MrvRZlXxQ3sVv9I4tgxSZBAnJWOGS6+pcDD/S+81NFmE8uWmCV0nJsxXULpzCCO5jtRwNipiNud4ZFmRWUHXfZQO6kPVyjwvD184FBw+5BFdfUUNztSiuzRzXsZ8Lx0eU98syUrhEY+nzbbBqBwgd4OnPLhGZ1vyp0UvWHyvg/GYJwYytsqhN9BiQ8YI39WBAJG24+KQ3dOtjbiRwMt8UkUxchzzaoqWR0IvKTKhz1G3jf4A5bHvASdjesQhetnOL3ukBp+s0DZIZF1ZdjBmdG1E6mdhZLyooUR5C60IJAGNMWMjRbFgMRGsHN0LDOd6xCJliMTJhpjeoU/I3HmXFntyObExnD7EYKCKqSUaMZoj8EBoDDeo4fMb0J7TgPw58fxbclpDg6U9Pg0vHZTuXIfAtISnkmoVisS2b1PdScFiaTD1rUROVPm6hxcpfDdsIij+9DM5G5YK+JSQ5OSIz2JQvxbWmodS9fc/I/d5wP84aue+b7xS8UyiLcTD86WUg29BXv6xY1NJZFU+d2TMyY6nujfvzj0Ij93NXZ1qiqgTDH9qCZ+ZFy/Im7BX1kzJR0ibpglrjrXf+UZ4oNlKT1SD4Q1zwjJghOBLCntK1aY/RJ90gsthc94DyRGJnpSZB8Ie44BkxQ3DE+I3DlFaMDJyulUi6pKjs/KPeyeEA+ENd8IyYIYgCtPBBTqSbyjfq3VoUw/eHuuAZMUMoRJ/Sipppk67qjj3qO0zjInx/qAueETMET4AWUyumRN3kk/e+Vu6WpZDg/aEueEbMEAqxTmnFmQsiTs3J2vX/PKfjiQl+eBivylLd4mxWykMvf3HnDzNP2a76aEobBt4f6oJnxAxBhLnGmblxhSuQCzTb6NT2lF2vz3OvvXyWFh789FS3y2Opd8EcB8v+h5/+7cfESZb7jfrq/I6FIWB/AgP1/5MLYkEpRdEy3qXHcQYCvnSWCClenrFDin4eo1MPQz6d97L72fP/7YHITXeU3HxHSgDdH5eb89Eb4nmygnHwjJIhQcfpp8rD72iJFx0F1+C2U6mj4+U3/2kWEuhFpqtk5L4tdkw9+gORPt6WxY/NAZ7BM06G4EtHrTW4vVqqcHjVOf0EHlhUatRnWzhRHv0BiXrWkiHE3S4U9WtRCErVCdjBG4ItNDMGmD1MenA67/BL/NGJTQ/Wxx01x5ro0R+oZOPkoDt8wRwO6G6UpqZLhruahQ/tLNQZWtEdtq/9TotYA1sV067WuqzCjVAGuV4UxRSFhDYIDmyv0+3YYoyvLXaaMcbYdwfL/PB3FXaXyagLUGfXvLvd+/zvDdj+eKzmC6Yy4QhzouYL080+/hrmyBm037jCQTjdv7k3pGRYKTdzbyhfo2Wv/Q6MLPeXh/vRaxFrWuF7b/gaBO9U+esX5L9VvIOlZhAEkSljQAYJs4JTnsAcYlqTTJoLeST4Bmx/3MC7DQOgQBr9gjT7W92+/0Yb/HQCM2PhO0OGRJumBPDrty+Sed81j74LaSyDtIg1DWRZ5oGfQZQQ4RIWFTA3BM0guMFfAG+0Hpprv0t65fHifwv9Etj+OB/G95Unn2l1gSnezN8T1je+1ze9Fwf6mPmTwdxNvrzSQ8NqVoY6QItY046fQcgU4Hl0X/bVpmYQ/FBy03zBDL9K9WHPhX4j2P64raAdgvBtymGDxfiBngu5mefCAA5ANyA2tHEGdzi5or19jyaDhRd6CmrEGqCocUC3QWYNTHGWRyCIbONtELQDrwIbJPBMaOp7FkLsThE2uvl85JdboQcNvfkDE/AnRFrk4QGtxtdMVACCkTborQLRVusUTntCxf/1wkANCLUcChCUOtPG+NMamOLt/CTQ5N0eULLBB2n3td+FNQgSB1mWhaK8krrepAsuPkk3x7msur96SXkl1YeB6ySGVrOZOYBIuAzQ6S43VXKMojzBJn35vRngShrUesQaamUpk7E9Rkm2B6ZtnqFRUJp8WGCDBBmeNFzg8ZFVGndITwd4MSVSrXP1ep5b8bwiInB/PA6jcGtCM/cIhzbZITjPohX17+3bd9OUQLzAFjXMwQC4VDSzTK0IEtit2ACTbA9M2zzZkLArKRehmFANgt3dcFAYfreiiHKz7wVYVSY5mfA83ECtsj6ti/D9cTlf1EoHyk08TAfyq+8pb3WnIHT82jmknRxZpvjfatHTI9YEaUdcplwHuxNotxgAdbBBcCNSK22C3TiEyOi7w2NTzYQvqoE2uQm0P16UmzDYh+ev97HaoXWj1Y1+f2jjzAO31+dKe1qAlCBU6JuS58cXrRFrkitUkyzXf0yHGQNQeRHYIIhObkrZPNx8mQZbDvU+2XE7Dba25gsX+D7ySh5fNMMYDCz6+f8PEfK6Vjc87H6Q+60Rq3dQ6o6WWEtgGpzyCo2PaKvABqF+GqwxNbHRt4QJv9ljTVGYUIA+ExKowOYLJk7OQG3+8GHw8oDMiPG75kSOf3lfpmtqjViDBKXWw1QbwG8ykSUwtZCN/bvjZOychvhfgN3NgAbBltTOwy0pNZENWffKurTGW/e4Sa1T01XI/gQBp7+MPcOBlzGNOsY+OQJP0hRfux5fOxeOP/KVTasFLDgdrqJo+gelXoOG8NfSr6cHpjpkG/eq03oxWHkFLwsLZxByMcbtPMfD0Sx6T8KW2usiCds0RoeD4U+YJuF8wazzwXOwwLReGITUqfo5WZSfPvaSrnPNRbrO/M6zshgHZOZ+I/w22GCBaa0ZhOrMhO4SO8+OU+D0g53rWmdqotKxzsTOgcnx0giD51CBad0wCLnpv8Lr8UQ1cdK6onAzvp6MAGUDozB4DhSYBs8QFLOdSwXglfJH1J8eRr6pdNoYbT8ZAivlj6g/PYzMhCYjZ8GV8sfUH77nsMVRzww3BoBK+RPoD7VB6VkJtXVDWYgOnjGLlnVU9Aall85q64ayUBw8IxYtL/jf3JW+c3NXdBJeNndFJ+Flc1c08libm7uSzy0hVok/oE9N/uoWHwqfdKFjp8df8uUXi4RYpeBBLehxc1euCauUDUpp8P+ats94xXAOPW7uivCKmBf4/A09tRM2Nnelh42/3/pZU9j59njw8+Puhw8QUNOJkdr6cFdI4pvDRGGWCqNn7TKNnPkTUc8acmmI6/1JLf8p/wrfPpLEh7vCDQ6Lb1o6z/NZGvqT4c5jKuiu7F4k8uGu8IJPrVMVDF9BTro3luwk8uGusIJ/+pOhfzd/LIb6YSfATSxpjihz+hnOFAVl4C15XvuYemuUTUuYSQrZzV3x5biCd440ZmmmMoCiKO4EBwQc3DlMiASIvEDHM0qFVhTFQf7NYWL3sNjZwGbQjbPi03eCc1gUxS6mRNQc0Mbhzqw9VKI2VPkVJCoDeMaaTIv6prSq/r2CAfUc7szaM0baM6KrwugNSDQL3QVpLP6Dnb8PcuGbiLTx7+YLpmWl/HP4p/Rv4h/3zCc0cuUq9Oau0MKdw4TasD8snpEM/01LC3/Cwp3ggA4p+1GdKu3Q8CcifFPS4Ag3zhoP2tkwPLsLmoU/Yf0Hed4sDoji6pERuCuuduOs+A76Nau8U3Ys6o2oa2f+o4L1Rn4ousHhm1c7z6Dm/JtD/1GeH0KCCkjRgYgHA1F8t36GN8LHOaJo4CQSLJ/IyPY6VWmwm7tCFFA/QAiEzkOiTFjHsZ36ZU4AcptUfaGzoGZwD3wFcUDJO6RaBuDEOKgHP0ZVoBl8FQIzxTqQbJJ2Bg1E8Zkx3fAZp6Cjov1GG/eGIgEmlYDAbu4KOagRHDmcbJBfijCO7RSXgGgOvJdFGAnUW0AiRS9tbKBgLQLUexbs6jFxDPscwIEeuCApZQORCx3XdmXsDtXNXfH5V+PDq06Iz0gdorgusQt+FRapkRA1xaA+HP9UFgf5P5U6/17B0Jghv0vJ6hl23I18w2sFbfhdrENAiIp9RdIVbpx1R0lm8FUTg7WlxGp73XH3pMe7FRr7h7sivpy9eqT4pb5bCc4Od74iJHc2bIMpijdYdmO1BI0V9BnrRhMVFM+o7SKb+hBIt4AOefhhoi9WDpvqH9IOaYJ3s0J1c1f8WrnkQHyhMtAbfNid4ECbgXquoAeMh1BIyuEBwv1V8LrimZyFXz0C97BiVOqHgUr9sBtn/TmE7UKHuuFWqV7nShsIoTmi8ExR2jizRTtUN3dFfBCPOhS72uCH8BW08ydDf4E5nN9O8SAZqyDENYqCIjgeFPn3v/+ULShDFhu5FRzKMCMez+gJvnqkqfcnbxqdn7IJywYa4mO/znBwcpNFpE5u4t1KV22QAXm9SeSdpPpxyTobp8GSiqULIDVQW3wpToP/cFc+A0lzZyMt/Pu/4Jjhkvx7wxv8h7tSN4A0i52NPBXwiF9RT64FPqjP+abaLqvyTe1+kJmwbhv/620O28Qf0Ccrm7uC37+qJ7FK+AF9crK5K7u/VVBiZHNX+hNa9p9l/0EUAwA="},9419:(e,i,t)=>{t.d(i,{A:()=>s});const s=t.p+"assets/images/vs2-bafcc8e7dc68430ca2784ef3f66237c8.webp"},8240:(e,i,t)=>{t.d(i,{A:()=>s});const s="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUEAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAIvwAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAABNkAAAEAAAAAEHBpeGkAAAAAAwoKCgAAAAxhdjFDgSRAAAAAABNjb2xybmNseAABAA0ABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAIwRtZGF0EgAKCjkp5sf7OAhoNIAy60VMXALeehH34DSO1KOqmz7MCPjQuOHswOwa78SwKAzLA3jxphdNsxXhWIDeJXHmSkzRCUQIM7G3Wr/5sPcE/b+sQe2ehR4BRhVQJY34/3Qnl6YE0OTHdYipjlB1rR0BIVVAFCZLt2+BXxZbTm+UveKIXJlsNO+xHx2TpqBhaAXwOk1Cp2+qeeGqa0KLlkdV4Wo1ZPZ5b7gTOJr+EkxaF4kRfzgNDDf1p1iM1IYrSvmLK5MOqF1MTAFZZO2+Rmx4pBKU/PiG+OoeR0a3dY/030pJs4hn3pWAz6786g/lp6a1Vdk1iYBX7pibBI/cnDb7Td2i6Jphk65gmYKcdUL/hEB7Xv6LWZRi3ZBvRCHop4YCOq1Ct1uzkrlQB6m/E8CHC3+5j4yJAuBJGXdZN5Vy60m7/rxxLaIeKu4Ensi9UKS9mJWPeHZPON9w1tJzYuBLYEvtlxN99gJaPo8zSoEaRNk0QxbOxa3xN5EQPaDOx+7nUAL45qucOnAYc6n6U33+mSuEE6THceMlxOK8KTePKN6bXwi4W9QobTevqOI65XTvUzCPIPpzCg/9npzXX6kME4D9Z4ff/C1b97o1Ii4YE3OiXX1beVCg6vuK5IaBLIbvi0r2AbZTukCo1+dGYKtD6/PHVIjDJWJthadEI1p3651Uimj+q0O4aSZP/BYduCKEmL+ZBfgBRETuw7PSsx5fj09KKV6L653poPmpcq/CR9wupY5L0KQb2ZowQKAA6w84qXfV0MN3Yq1tkdy8PHDWhs8WXxk8O0pWdwWvCyoPS49/lUu8CjnWoRYvej2tj6BWrFryPt9sVyu0BC0v7H2Zm4k6XeZ2GkbSQOqGInSFWx2g27zNUfxtmPjikkGhMy8PinoTtzjvCQRpBgDPgssOt/2OjTLJUklUXicdeA68Sotz3jz2C6m74qTWi5y2Ibx+gHQ4E05zT5CXbd1ESqDeOK48I3dKwJo/42PPXGwpOv03UWEPpRiO3nLcLrFhhaLX4e4JEYYpqF0PaPjowAmCmTuy294c4YQWx3K5WvQ6ug/wYdVbMpaAtbYQ89CjeT5ayyTfbYtRfL0dimiPcIKnhz0LEfDa+nJhXI4A3uYoDnP7ncO/AN7T4MF1wRwWOAWMCOV0VV0s6R5JFMNwAOThfw54vFk4dJm4+zlqw0ibDRFa9n/W0VOouvf4YUrJokFnVlh5P7jRXN4v5N9/+dsnbc1gTCIcrfbgRaYDwprlro90g9D+JGdkjA8Jp0a/4fr3hJSqY6mVfRWBmdcj7oE6EAJyEb0MIi2jeiYVkndsNb9EuHEvz4pyHam23Th+9xAsmt20yjbKZ5MlSO9EEAT3a+mSWD0+5vG/fBr7CJGVEiXa9wiw17r+1zIDoggtNyst3AD7plGGmbYMhR77EFHnOrV1bH9UFfi7A/5Vaypz+4ChGbsNvxri6Uh1Jth5DHzanyqD7zjSktCFHCezXrAEzeRyaU1D90BWv5Yu+uL45QFEcidZd6D8YLXu+aCp9e+xAnWtil0oFXx9WsWAR4QkQWp/nLWdwsyUlNV5nfuFg6nb4ztALEj9Rkt9ewixjr0MhPaTTKQPtI99lLJR2zSyHK0Vd7TITqsoHeLmkG5rT6A77382LZI69knPz1uFodO1Xe+fe/7Pq7bn4KDi94+4FhzCKiZGDNwhBMkGyr+1jvwCQvUNOtzscB3KVU9pDoUSAGL1H3Dd28s9H6aqehFzTgNtbmuDbjEnaaqPzAnwSgE+N0wN66rUqbEVAK7sz3YLauaztO87H23YPb5hHds0UK83isTHMueCf70xU3hIhdKKkz1ec/fMKJsgfAzYkivN6rID3xgiuHCigtfka9XOZP+O4tfcLJaM0N66XEsBPYbpyia7BD3nuZKRzYJUJkgf1YJAqkHw99zfCLK/Fl6Hf8Hu9zNHsJIqh/CouA1h/JTFN2OMdPtKe8iyId0q9ddON6Ot1mNq8Cc2IV0pfY8g88G+51bi517UQihi5BqQhuwruT71t26BIGfr0XEXAqb3OnTquZJ1EUR/HvU4xNCPwQMLLPzBMIf5rZLOGvwm6D6rrxRV37PbaAUBzlx29w8Qux6wvqo1EkQXIzhH0AHv37J/wIzaxeNn4QhYGB0b2PVYsy9zjHTaijwiJSI/Y029+YeoE1PcDwaLXes/hA17Cl3DB0Zejx3K1zZq3z4lDS+83DhvuY+OFgDtWvFNoR4JwNfG9Res2MLG7o3vzUg52scQiBpTwBqiLigyf75V/GW5BiYYlHecuLubpMY3TaHC8GvsYa+JPbMb7JP+wV2YqmoWaitderD2a3Sa3xW0yBjKf/xTO6zuyl2zj1pCnOrlH+Z/XdL/kzwecrAlaVmHhPOsWuI3+77PaWYVKjphWNRDh9fDrnT3rMQe8beUu6vaD3PBh5KZyYe4bc0LTuZ0ankMKet/FAqJfaQ6iHDYGZIQ4voqmavnWEWWz+WRmiS67rwrBa16ddTjUd5IXvc+bwXfWROAQYQJO/2OLEEuRCetJ+YbWh3R6cKELAsg3wNdfbgb9jNLMbvl9/AqqkdESRnswX+5MCtNaH/kyf/94kRlSmmV/bQ/2XjlP5zH1ponXKh/tABkWujsZNzQlHghq/HE09gBOpwqjII6DDS9nIh16wjn7pSy7oJjmer7Shqw478BsfSL0p46jaPW/Y+G2corWa7si4v7rYxUj/TtxKaPHDoZJzttH0XNbG3m9rGZP5L1+waseodL5JqSyHH44gLBExkqJ+7bDGRc0/RTTWgYPEgQ9Gu8sEANEGCZQQfyWFJDbxuV1Qx+hVWDyURZGmd/xPOtNGpahcEwbD13Yi16q8h/TizVM0eXGlOVd9d6b4loXWGT+i9ceFhU0fb0eW9aERIgbnyBGCOFDOBU3Wqy00t8RY8RMhdOQn8m4nDoIxtvWLF/mBCzjvbu7x/s3ucjMmwdn+/yFrKIj+/NBFs+XfL+tGNTnL7T/4Cvpf5lo0fxv/zZngW7vtfczztnk0uDbOv4W8U94RM2q3fSIpNHFI/1+mAOTEuJfwpZpzjcnOOwXus6xIi6t3lkvYa5EOAKEjlOf/9jA3qO+UuP2u6zIWLThTq+yQEP3kTirku81T6337D/Ged0PY6n3gAU/77ZrW9irYIPvqL8LjVk3MolNuF5QG/8NqnrJs+OiasEp0TCkVAcW8cRLeZKxCi8WgoMYPQbK5pPm1hdj+YU8NTw6UZR24JD81FssE3qLDdgU9WWRnuWNfXt3HTMbbYfMohMeXxkYxD+qegUHuwYoNpTe2uZgD+232ff8E7CAKcyqGrpJ9l7q5hwBEaUQVp9P12P7mL1Y4pX2Qe6+P7GgaxqMvWMHrqW85Ub0qWdydLOgcvv1RnHgbz+OCZQ9opCpfwYgJUIOl5sNlCqxh+cbmUE1Qq4T00CzOpdi+9hYWxKTOh3AOeqNblNWVUBZjv3UMU/19H+ZeljkBtqFlxqHjR6sXx3ENB9/2j8GsYlOgrxuD1nYbQFfwMMLy0hVbuU+mc0r4b8JfAa8xaXQ4NWbeEhio/l9R52a4sKdIh1k/+8rgpu/6RF/zLgMLK6vBm6HHDJ7IH+suxR5HBQTRFq0AQ+cTomBOHzXn2U2ctUhDPtdEbKh/0Hcr27keL1nX1MUIQCWUWiquEJzU3+XIRMzmpfOCW6j2Lz7ao+aPVjLKX3ruT9Ax9lbti3gu8qVMojPMb+mmemW2U9zHuN/Stxkdp4eOzKixTfI3ZJ4iugFsWGnsOl7MDiS+5v5mlXdlwBRtx7xj0HEYWesMURFsKBR3CpRYrJPYdvpgtzX+GNu9QxppwDicKeZR/KloiviK3R31I0ACnwCl6T8YuQqVJJ/IceQ193N7B9Hm8GA4LJo1d/wlhXrLO+Lc8oWYGnB9MF+wHeDM1BIvhRXcD8mhlBGdOxHQOn7Ai3H+rQUVH/jDa7WaXESs2kDaQ7RyCcWr3el0KQS0iEN/3AevWHmlw9Zrwy0x23YUcOYjWKoFnK/3/MH7k4rANMOGPl6t1PUQ1gev5gasFsrqcLCpwnHUJv2nz0CEQduNoMLA7U4q6IjZiRflSvQMAfLF1GfE4jjQf9J3D8MTE27f3r4L8LNaoycwzSkjw3MFC37mBiAn8T9qa8TXGmR3Vkc4nXdsf3frqbKS9IY1uvpr4pnjnUxnQtNAb0E97PXq9SHki7l3v9PFQe27mue2aS3X9ZUEEdNNAaawWPsM4dXGrngpW4nHwOZ19yRtFkfRGdgo0XjByVfXI9LP/WMPD288LCLRcGHhJ/2MhkaMO1esY8aM7QY1R6q65ZkhbWyVmm3U8XV1ADUX+vGX6wchENf6VLdnZPEJkQF6iAkcTj/d/qaLuxouoV77YtEzPBE2UuS7nqbCIYw4A3Dlhy1lDH2gchYsyn4B0AqpkqlJGL+rcp6DGf7e2lwhbXuzKChwoz7HjcXAM/fWFAXmQFOwkIxVDu9CCSpR/BW2a7oc0qnKjxKioSLhkQqBG7AChHLHyqIRjJh9kk5Q+YaJqjo/GhQbnEl70TMinS4kLuWNT+e2AGisURU2mMxU5+p96rbfsmQjulK6K0Rmam89/QtVRwwZ5dJzwgsIpH4UkevA7CsHtgH8j5P3xI+3gPt3ZroCVICIyNqm16Lcs60TvbmTh0XWlLqjWfdJbtQvrr5wS3WcZy9/F4UtZfLsS4wcINcjXyX1mfBFpks7jWQPeYuAsAAPc35bFPeP4MvTqvUksdh+3aHisyiizRapngiDAP9TDVtcaOpCAWeiV1nG1727qK1OgtDB5XsiUKncpuV4LoA2CsFYgtNoIK40B/jL92/2mL7D07r6IwFf4oLY6F7k3e8ETzfsrzRPE6kFzpH733Jh/O1BEVq/BNP6a7VpNfNWC8kUmLS+wW3J+aZKoByInKM/EI6GF4UaD6C4hKRZth0rhhtN08aB8cfBvi5JJSMm5JAiWEO5faeBYLmaHaeqUn21ShpmQdSlzyXhSokZ1BFTHnxYyiiZUQT8ybvR++01csRW08jLS1lX8ui+q/xqQLYay0fPYhQUChjKXmUYNsz3uxohwJ9n9OtiNYbBKgB7YBV0BzAVhUSYF7lPon9X81KcQXxNyjy9G607rk10BFgT2lQQqKKLDOJ80qEcSXaHbgXSvWSs3JTAkoirZzs6gdIzxrNTVPXJA+KNAcv8d5FykcRm48rnGsQzBGHK96ldA4UumEmPIGVPaw/uI3oMoGXup79dHn29r0xGa4SMq93B79A0F+rSTwJY5gBWOFhSR3o67b1dV+0dEIDNvyGafoCdGYyhbHtPmFC55uoFf17SOhyeF8XBXafLpj8rLUkVKPi5WhU8M2CW0opaYmhKh0EtBcAvPlGIEAfh2EVvv+i/82hDdFqoOVg2nbLalXDL6N2lCKr8lR4s8Hw41VqR7TfzB+iuz62UmXEps0SzofZinXA6lTFZxpl5D2p2t6vaXHuZ97L9GKGbte9EkeXxERGfFskMzJniv/a8U0nG/HkrlFd2o9UjEJkkK2EvvWxabx/8AJ61WHu8oPQ815vmT2WjHs1DHGl2TPLfO0T89b0vVR9jx4bGvUiNS1LE5dPyDq923GTMH4iRUkqtfMR5bJf0OitcSfT9pPnPtyWZwZl/6LUEt0uGA/kYIfzKqf8LTUhBA49soSdjx8ycoh9xDloSYw/2+gSGktGiKyMSLpIR78AiJ/AeQ3eB6IJKxsLAoGwgdU0AB44jAFyqKG+qrF8oN7c7RN5uKlSjrZVFjQ4dm3Z8b8wweNZGuKul7NoMwcHrn0TwTAfzE3sVNWYkZou/UReDdeGuxki1J8Ho7ZuF5/4jNnI3seVRxZZOfOAc0dkLSL/klsbVM7VbFNOFlcjvHbSDWfbbHVOarsWEEJwWvRDvWiUt7XjyrdXqF4DHrjMd3hqpYakOD4JelIlQ9Hmr12UB9tPxdgLk/8T+bGtkCoUO9ZagsKzFTvp6mzI5VZODqutnS7g8fWLi9B7DTGHLKFmIwL0NbmB7qthhhTJSYjA3/0km7O6YwO7tgYDeQwSDWJ4fOHubIqRHi2qZMsc0Ux3iLIXD+XEyMkVpXIEWzyiKJFVLtV2VBM25depeLOwMvoQTkpEAuCAei6JWotoqCniK2HQQ5czbBGurBRJIBgDSWBM7dD3olC7/C5r83Odx1XcCp6QC04J3nnQ8z2eQExVWJZGhp8Ohu50mPJCIEdZHv1501fBw3rfyLZ2aWdRwYkGTtywt33Rf8GeeCWmlovaF0IpSLYUC3ZwxcQFvVOtnRFncHwWhe4LWHy3Eq3WatF+N8dcQoBs0X7Kic9jVBND2Q/bYGsJEZo6dQrKhn8Egzltzotj2658dLIBQGNP5Xxu3OsijCrVwWOVOU+1Zu3+YXu/itrcYpnH0+FjVO/LnD05afVRgfSMbJ2YGf0j3iuqtchTq446gFZmXfqitbH6hQsJ3edbn5NoN94VJVf+dNR9ndfdb5/CUlZkdxFKtngcOvG/5/RhrlPrdW7VaP52DxISG5+5t97IYqZm7klDQBNl2q3oaGp236/uKkLHzCRuppxCR5ZhZU5ax88yBTVyPH9BPydhpcu9SaUw9ioYk5eKnuzCApshiIRsjR73mOh/bRdM7qPWwwHB1t/cj7Kk7yZT0GdWu/tF4q4TFg00jy0sdGsIbk8Ip6JLiLOoY3gyVEr291xjO6X5XcCEXEe4Gf5NqGmpiJadR6nj5cPNcJB83ostaSv7JpfJcPsDRK9j7whYJT6pYWzV59vvql2hR4wmNsKqs1TPP7v21KvNsGKfa9hjAiziD8kb18DDGOQBvrGSBw7Ar4ZfSZG3YyYORAoBSNwb4eXbWgeQxgUTxas/2kDR+0Td2JQrtyM1WJvMXZLFjaBE3hMeLXXS3Z5kmayRMsu1mxU6batMEd92Z6DTfRxvYQ1x4RbgMz3c9RdN5+02zq4+l825fHssNnLHZH7c+T4MBpqVqXNiQbd1EaKjwFGt7JlNXhnJQDkCMG8jOx5e5YVq0OE7J4JnoLWgQfxvJMLWXXb4F2KgCQmhoigkQfo4nn//0aUXZnbQotbGknXLxbqQO3fcRheyoC9B1B0kFBCl2krN7C6SzXXUjZ8Vts0jm6dDZztNX3WTOpLW/GZ1NwQI9490/6CFoqZIIVRDwcxpHxjSFkGrLrcBPbdevRNYotzbPoUM7GtXzNTGLKHHd3oeMiUEwjCvzCb9tEKapUVqFjWFaFuawXprUkIHMyGB/qoEvAr4Tkd+dM4w8vXxt47sWuapHjFahqZ7AYiSkl1KRnpJVnAIn2hfyK01r4zX6fsGLjmGwgC3STAsK/rvVY4vGqX2pNDxFC/ZdLjNbUwPM92+dMgIADI0d3IESsXZP7fChPwlySSJdP2gkpzTcdHTt/kehTecL4jzVN5HcM/y4Ybv3d3Uq8fjLU/nPhIzmKYtkwWtAvRn4Wm+mUzY50kpl8OMtbvYS6jBMlWzwJVLwRKSGu2v4ixlxLvtsWKXNJN67HPpWuQZsTPEY9kfuM20AoKGfvp7IOnkyYrQnEYfHqfmOI/hD1KxW4Uc8qb3mL+gGDJJHRFA50xTzcyYVE2V65wcwikEvI1wvABRZSD4tlogqOzQtYOQSebtRsixcFq7dx3yitSXcg3GMBx0kZ0z2PYVeF9ONOvk48TUxiodvmXh1Gj3dmzWR0fBcwivjH70FthvE07VqtxJ4OAXQJvEIqt+WqAUqEJLJFb1Hpu5V2UYyu8gdEZ9gcV9xEmC6MZ1C1WnYsmUQonJnEzvAg+KikFTh/sPwuu7FeTyEP6yZlJ6vTvj/CUg1/cfkSBCRsHALIrpwxZp+dhdsClP0HEPGHRX1utz1B19N7+sDU8sbQHcpZ1Tq50EevAzkilLT8IVe2r+YsLGLGRPLAPvmeANP6AgP/aWRyeAZhQjFSdddPrgpqcUGV8ZoKaGe7sqCpqfb0U7cck4lMnekdOSvdHUnh6D6gvuvK1KArPbAY6QuBkiV2bH1jxuFe9myfYZJcSUJy/Ml6TULplZBQIARaIyWV/i91tYxZm/wgTILQ3xII2Ca6Mk/QpvDGdF1U5aSjTEzH0QKXjwmC7pTJPTP7ByoSI4vhFaoaCOX12426UJI3FeWb3cCWTR7qP0TETuCOyInzOZHrrBLLjtyOKu3ctcIMwBrtmdocg3gZPWTe9k1eS2vDgddL+CmTlJ8VaxL2In/u8AkS0FAWhO6LN04bUYDyGY6J4nb7ogZ73S1+FB/x5z4cAloo5frnrgqgVxXLom55jkoxZKffhta7ObQjcLrCusxVXVoWwIAnePJ+VekW3Z7ip3k8ekF+mGt5/n/pyKkT9kXUC9Nu50ET+YxCrLNaT8BwByh1895oqcj0rSbYGT8dAGkD4k5n/9Z7rBIENGB1pcjBJHbLujys514JYPVPTLVqLqCzCd4pmvOTcNVYHsLyNZYXnFJ4oMeWez8fdNPnmhFBJpuZCNSwfC2EGn+bnduyao7GXEKzV78gLWwgdIS36UTWTPFVvrZqAX8xYkIlfU8kJRKVjaHN1Dis7VwEFYE3+H94TZd8T7bGqm1549HfwFPH3nIsxYZ+R4VClLSaENh8VapxRxKMpK7BJ5XebkloaBMGIBPPkaEqMgnKi1vhd993284Mf/VCN+Xvw087MDkWXIJgOepWWfaptwsjesMYvF4O/06/mko5yZDMRj06IQOiq3e8RVwuWOfmBjSzRH55rCNSMZCxUNnt3lDiwk6j62f/72Ga4ECAiPWrkkA6zvyR7xs6yAtMBRdTC+hS0/aWP4AaVseNR0oo8GG+qe4uM4Cv2OEbgbfuYqZNuStGs1T7wlVtm/c5vh2alJ20qQPGz+2YJrP1O7pZvsT4qxACMdLAoEBK/E7aS2llx4HQVih1pYvcOhIwpQwrbbtnq8Ee/kq7b3v/6R/J5aTJJeJTVYb2+JrlJIwV3M/Obbq/wlY5tGrphLdACgci4WEvZi4YOp43DcDGdBohGafM56r1UVwiMVhYoqoamqRMQPfDfHfbrQV9pV6bM9TdQdC2ZeX8CQd3oklK27D3L/PCY1dxVjt989/2qMYhvxAhxGthDrGD2D7nd3SZG1oXMplb2nyGPrK0wOrUoGjDuzM0ii9C6QhDyFwB6Y4BF+5E35nJlDopr/YDcy/L7zk09Zk+brdhvPpLjTOHqgpbIB4/NuUZ2tJCnp3dQurpQlYCmSaDK7Wk6RZFMvahcsECVsauTkDRK9tg9V4bG3AmQe9ePMz0t4WWDuDCn1ApSGGhEoqat5rjlLuLeIzFpL4Z5nmKQv9n7QrP0I1xPrUWnGfOK8NfE8Lo5A864o7apdTtx+j5LOlanlgRpG0nONEIY2lQ9EIUUTx7ii2Yh/rYnDOMCOXJ+h8e5pGMWeZMmJszx47W8kiUyX0wpZr3pVaGbe6TJ3LU5VGTDaWHpUPSpDjyVYsG03u5f3XZk2dG7liP1MlsG7msTLNXXZWdJ205Hp/8uA5pTJjR/T+vkYCcd3WUbUmtusbTW01DlFmxy/WUi22+YmusAcYqDvfzu0rjmW1kZ7Gp30NeYWu0eY82tpj8LPFoSxyohzJIubR6hxpb3JhuCsHoxzk4DFz8JWlRtRP4eD5ZJfOrFUyoZyxCNXAzlv+ZUzDY0qBQR/Um7K2hjPIs4xa2HxzFxKUn73Ib+fc5J5p6mCapAcgWPR63l8w/IhBLU61swwNPqoxD/LgMwP8rGr66V//JGVcqIhHC3ag3P0xOzwouiUwpAjYAGVBDCd93Rf7a65xGVc/lzO6zAZxbk6pFycjNuqEOZQoGPri7K8wkdQW61KTJJxfdgILcNuvI8hAkm3EkotEJBP6eFSovOBCa2jIEWNISiVl7W4UfLHh9DXye47evYz3NFgLpqsqIJR5WfZA1dHRStTT6IN1BY+Xgz5sV5wxcUNJOU9KaGOiMy5wieMZzi0yh6Ma83fSA3BgiZO51BZPF8mb8rt3cIM3HnUGqxMp78cbnPP+n/6UQDivWw04EmdyK1npKedx7x5DTPedMvRLsDq8/dBzKarDJ3qNLF4NulaUrlNhsl0ixBoJKS9dS0SnevINlYoOvri7Pr4OucUQLOJDMsIZDyolYTlBJUiHzvzPsWQfHkbCj6Ci4ZpcWsUitXfGLpfjz3kopJLxdGoxyJKUdM0ekNC/nAhWuFV7LlF3UFPcJCUxIDxUn2iaP7gkDQKIN4jBgkzkt2ZrUayQGHDisL0mWgxCU84F9QDayV1wDwlV5rz35XSQ0DtHeqyBc1v6rcatjigeqr8ykoeoDSv/HVzyuSayUwt7cLuFxFaBP9LcAB5NdnHvGSCVvZMP207zHmaG7S8Cv+OrLVHPdEIMbqzroiOZR7ZSDJId+BJA82jNIggmHgfwFyN+QCApL/M1F2x899LJUjBHCOU/QWThb9IDYoxG9aaJKIcSAiWYWLf6nztcS66ccpJGTqqWk+6sRuEGXtsAxQb6BN6sEvMQHsVyYZ88KLeUgM71gLlRVBG3rLvNcflYqXI5B03LDcJYm0ZzBRrIAEmVw0PY+/XQQyCPsNvuv+7oPs/k95h12xr5pOvKWeySqDOjYlSh2lRNUfzXZ34uVV8tFkCeQfU04cwXUCoJG+jPHksE19YaoKpc54G4naFUP+15xh1W9CDPeFbIRjHftTXF19h1OB0PnMiItrnp/MO7mIwDX3o/4HsKmzYq2XWPjm6CrisA/RWec8RpdDsCSuA4qjxdf7PyLcfuAQvUkkU7WjUiBkS7rrElVbeLT7dDwidYGctp1hWiQ1ksJum0CZmwwuLzzJUvMvpm1TJSr3iswtKREPFaaTEYIZrK2V1uKvzPNbFXxVFoiS3pU3X2zeYi57tMsgrnipeHY/jZEvz9jg7WT+Eme5fnmEmWdLoCM/FiXNC7RyZ60PRmNY5JMxQJjql2zb6xF78P12QMrAmbQuu8r/9SGtJ6vCsTAXQkdNUdWYHtPnpuIAvUXrcPqmlQFaNQhFe+65IaaO0ctjusuVvxnyJuRYwvI1sqoyxuFhlePbkzcmEEzllJwHIeKGNu1c/OUlZhv5oxMMHvWb3UNcvLRdID83NzPBud5XVTMiT21Cgx4EmpUw5n5Wo4JbmYjCxtNGeZG9ZaoG1N40A1r3h+HvmB/7/7sBWwnu02nnfm4O0waAZy2aEo1w3+FMNvH059nxSU54GQXs4xzcsXyoGK36Zo5V8inoKjKZzRuetCp4hg10PnwItpyKVS02yWtn8O1KtT+nEB7mcZCEAJrl4PIEbqaoW6peQMfLbkVQQJWjgf1qviz8Rgt4w9ZIG7gfbWR248uzGBJWt1qoDxDBLwyzwUbR0ro5ReDoJbYoYRM3PaOwA52NAk+duUScu72zvreSPPjDBoZKBPqRLASmzuFbuXEsADCmxZdMg40+/AlGHBVybajEB3Ect6yjI4GvaD95tU+U5NHUfpxHTByiGF7NNEIM4WhwHdv27ptU1QJrSBzq8T9HKLHcLv/UuwdsZi3hs7muaKOwPDasfX0QVYKsncRSIo9S0c1eQ5E5ov6OJ5vZyRuGNYeie6Cd3fR4J+ApJdrh3GYiFE2TSg6/fHSq/OVaF04OkdvVln97nC8X16eb4p+Ah8xlGwF5tp7rdNeN0P+QoVmQk4OXjJAWl/jhOHrMgbAbKHEK9D3XiyAjZqwbwOdMG7/3i7H5vEvd++vpmqR9uMhL4oASyugdvQFBLcGKsBMekgn+R5eNdbNvIGwqODrNYAEzckXpe9j527Uo91iGXT/yt7o9XHi3cJy5XJZpYz4KA4HLOWzCcIoWQ5RGHJmIXX1jnfpS8ePWVMPD+Os9g+F8fYES2Pu7t5ajZCTl4DW6KsabGAJ5aiqJf07SELzJZdMVrlTISaFtkf23fgq1opf61l3HI7X7JQ=="},8453:(e,i,t)=>{t.d(i,{R:()=>a,x:()=>r});var s=t(6540);const n={},o=s.createContext(n);function a(e){const i=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),s.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/94782d2d.2e40e9e1.js b/assets/js/94782d2d.2e40e9e1.js new file mode 100644 index 000000000..c386766a5 --- /dev/null +++ b/assets/js/94782d2d.2e40e9e1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4597],{3539:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>u,frontMatter:()=>a,metadata:()=>o,toc:()=>c});const o=JSON.parse('{"id":"colorimetry/range","title":"Color Range","description":"Range is a concept that describes the valid values for a pixel.","source":"@site/docs/colorimetry/range.mdx","sourceDirName":"colorimetry","slug":"/colorimetry/range","permalink":"/docs/colorimetry/range","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/colorimetry/range.mdx","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"title":"Color Range","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"Color Formats","permalink":"/docs/colorimetry/format"},"next":{"title":"Color Primaries","permalink":"/docs/colorimetry/primaries"}}');var r=n(4848),i=n(8453);const a={title:"Color Range",sidebar_position:3},s="Color Range",l={},c=[];function d(e){const t={h1:"h1",header:"header",p:"p",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"color-range",children:"Color Range"})}),"\n",(0,r.jsx)(t.p,{children:"Range is a concept that describes the valid values for a pixel.\nTypically, RGB will use full range and YUV will use limited range."}),"\n",(0,r.jsx)(t.p,{children:"What does this mean?"}),"\n",(0,r.jsx)(t.p,{children:"For 8-bit video, full range indicates that all values between 0-255\nmay be used to represent a color value. On the other hand, limited range\nindicates that only values between 16-235, or 16-240 for chroma,\nare valid, and any values outside that range will be clamped to fit in\nthat range. These expand to equivalent ranges for high bit depth videos."}),"\n",(0,r.jsx)(t.p,{children:"Why is limited range a thing that exists? Essentially, it's due to\nhistorical reasons, but it's a convention that we are stuck with today.\nEven though full range may provide slightly better color accuracy,\nit is far less meaningful for high bit depth content, and even\nHDR blu-rays use limited color range. Therefore, it is recommended to\nfollow existing conventions."})]})}function u(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>s});var o=n(6540);const r={},i=o.createContext(r);function a(e){const t=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),o.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/94782d2d.d31eacaa.js b/assets/js/94782d2d.d31eacaa.js deleted file mode 100644 index 8d18b45ee..000000000 --- a/assets/js/94782d2d.d31eacaa.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4597],{2774:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>u,frontMatter:()=>i,metadata:()=>s,toc:()=>c});var o=n(4848),r=n(8453);const i={title:"Color Range",sidebar_position:3},a="Color Range",s={id:"colorimetry/range",title:"Color Range",description:"Range is a concept that describes the valid values for a pixel.",source:"@site/docs/colorimetry/range.mdx",sourceDirName:"colorimetry",slug:"/colorimetry/range",permalink:"/docs/colorimetry/range",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/colorimetry/range.mdx",tags:[],version:"current",sidebarPosition:3,frontMatter:{title:"Color Range",sidebar_position:3},sidebar:"tutorialSidebar",previous:{title:"Color Formats",permalink:"/docs/colorimetry/format"},next:{title:"Color Primaries",permalink:"/docs/colorimetry/primaries"}},l={},c=[];function d(e){const t={h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"color-range",children:"Color Range"})}),"\n",(0,o.jsx)(t.p,{children:"Range is a concept that describes the valid values for a pixel.\nTypically, RGB will use full range and YUV will use limited range."}),"\n",(0,o.jsx)(t.p,{children:"What does this mean?"}),"\n",(0,o.jsx)(t.p,{children:"For 8-bit video, full range indicates that all values between 0-255\nmay be used to represent a color value. On the other hand, limited range\nindicates that only values between 16-235, or 16-240 for chroma,\nare valid, and any values outside that range will be clamped to fit in\nthat range. These expand to equivalent ranges for high bit depth videos."}),"\n",(0,o.jsx)(t.p,{children:"Why is limited range a thing that exists? Essentially, it's due to\nhistorical reasons, but it's a convention that we are stuck with today.\nEven though full range may provide slightly better color accuracy,\nit is far less meaningful for high bit depth content, and even\nHDR blu-rays use limited color range. Therefore, it is recommended to\nfollow existing conventions."})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>s});var o=n(6540);const r={},i=o.createContext(r);function a(e){const t=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),o.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/95e9a4c5.9c25a70f.js b/assets/js/95e9a4c5.9c25a70f.js deleted file mode 100644 index 407c6dcda..000000000 --- a/assets/js/95e9a4c5.9c25a70f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3672],{7426:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>l,default:()=>o,frontMatter:()=>r,metadata:()=>d,toc:()=>x});var i=n(4848),s=n(8453);const r={title:"Discord",sidebar_position:14},l="Discord",d={id:"utilities/Discord",title:"Discord",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/utilities/Discord.mdx",sourceDirName:"utilities",slug:"/utilities/Discord",permalink:"/docs/utilities/Discord",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/Discord.mdx",tags:[],version:"current",sidebarPosition:14,frontMatter:{title:"Discord",sidebar_position:14},sidebar:"tutorialSidebar",previous:{title:"YUView",permalink:"/docs/utilities/YUView"},next:{title:"av1an-command-gen",permalink:"/docs/utilities/av1an-command-gen"}},c={},x=[{value:"Key",id:"key",level:2},{value:"Video Codecs & Containers",id:"video-codecs--containers",level:2}];function h(e){const t={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"discord",children:"Discord"})}),"\n",(0,i.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,i.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,i.jsx)(t.admonition,{title:"Pending Review",type:"caution",children:(0,i.jsx)(t.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,i.jsxs)(t.p,{children:["This entry is a bit different from others, and may be moved to a blog post in the future. Below are a number of tables that enumerate the codecs Discord supports for local playback (",(0,i.jsx)(t.em,{children:"not"})," livestreaming). These tables are based on community testing across a number of platforms, and are not exhaustive."]}),"\n",(0,i.jsx)(t.h2,{id:"key",children:"Key"}),"\n",(0,i.jsxs)(t.p,{children:["The key has a number of emojis corresponding to full support, partial support, support with the ",(0,i.jsx)(t.a,{href:"https://wiki.x266.mov/blog/embedding-the-un-embeddable",children:"Discord embed workaround"}),", and no support."]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"\u2705 Full support"}),"\n",(0,i.jsx)(t.li,{children:"\u26a0\ufe0f Partial support"}),"\n",(0,i.jsx)(t.li,{children:"\ud83d\udee0\ufe0f Support with the Discord embed workaround"}),"\n",(0,i.jsx)(t.li,{children:"\u2754 Untested or unknown"}),"\n",(0,i.jsx)(t.li,{children:"\u274c No support"}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"If the browser isn't compatible with a particular platform, it will be marked as N/A."}),"\n",(0,i.jsx)(t.h2,{id:"video-codecs--containers",children:"Video Codecs & Containers"}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:(0,i.jsx)(t.a,{href:"/docs/video/AVC",children:"H.264"})})," 4:2:0 8-bit lossy | .mp4"]}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Browser"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"macOS"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Windows"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"iOS"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Android"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Linux"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Chrome"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Firefox"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Safari"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"App"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"})]})]})]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:(0,i.jsx)(t.a,{href:"/docs/video/HEVC",children:"H.265"})})," 4:2:0 8-bit lossy | .mp4"]}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Browser"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"macOS"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Windows"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"iOS"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Android"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Linux"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Chrome"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f**"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Firefox"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f***"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Safari"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"App"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f**"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]})]})]}),"\n",(0,i.jsxs)(t.p,{children:["* Only supports H.265 with the ",(0,i.jsx)(t.code,{children:"hvcC"})," box in the MP4 container. These streams can be encoded by adding ",(0,i.jsx)(t.code,{children:"-tag:v hvc1"})," to an FFmpeg encoding command."]}),"\n",(0,i.jsx)(t.p,{children:"** Requires you have hardware accelerated HEVC decoding support."}),"\n",(0,i.jsxs)(t.p,{children:["*** Firefox on Windows requires you have hardware accelerated HEVC decoding support and the ",(0,i.jsx)(t.code,{children:"media.wmf.hevc.enabled"})," flag enabled in ",(0,i.jsx)(t.code,{children:"about:config"}),"."]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:(0,i.jsx)(t.a,{href:"/docs/video/HEVC",children:"H.265"})})," 4:2:0 8-bit lossy | .mov"]}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Browser"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"macOS"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Windows"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"iOS"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Android"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Linux"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Chrome"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f**"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Firefox"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f***"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Safari"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"App"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f**"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]})]})]}),"\n",(0,i.jsxs)(t.p,{children:["* Only supports H.265 with the ",(0,i.jsx)(t.code,{children:"hvcC"})," box in the MOV container. These streams can be encoded by adding ",(0,i.jsx)(t.code,{children:"-tag:v hvc1"})," to an FFmpeg encoding command."]}),"\n",(0,i.jsx)(t.p,{children:"** Requires you have hardware accelerated HEVC decoding support."}),"\n",(0,i.jsxs)(t.p,{children:["*** Firefox on Windows requires you have hardware accelerated HEVC decoding support and the ",(0,i.jsx)(t.code,{children:"media.wmf.hevc.enabled"})," flag enabled in ",(0,i.jsx)(t.code,{children:"about:config"}),"."]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:(0,i.jsx)(t.a,{href:"/docs/video/HEVC",children:"H.265"})})," 4:2:0 10-bit lossy | .mp4"]}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Browser"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"macOS"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Windows"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"iOS"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Android"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Linux"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Chrome"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Firefox"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Safari"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"App"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]})]})]}),"\n",(0,i.jsxs)(t.p,{children:["* Only supports H.265 with the ",(0,i.jsx)(t.code,{children:"hvcC"})," box in the MP4 container. These streams can be encoded by adding ",(0,i.jsx)(t.code,{children:"-tag:v hvc1"})," to an FFmpeg encoding command."]}),"\n",(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:(0,i.jsx)(t.a,{href:"/docs/video/HEVC",children:"H.265"})})," 4:2:0 10-bit lossy | .mov"]}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Browser"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"macOS"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Windows"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"iOS"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Android"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Linux"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Chrome"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Firefox"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"Safari"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"App"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]})]})]}),"\n",(0,i.jsxs)(t.p,{children:["* Only supports H.265 with the ",(0,i.jsx)(t.code,{children:"hvcC"})," box in the MOV container. These streams can be encoded by adding ",(0,i.jsx)(t.code,{children:"-tag:v hvc1"})," to an FFmpeg encoding command."]})]})}function o(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>l,x:()=>d});var i=n(6540);const s={},r=i.createContext(s);function l(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/95e9a4c5.df3995e7.js b/assets/js/95e9a4c5.df3995e7.js new file mode 100644 index 000000000..c0b6141cb --- /dev/null +++ b/assets/js/95e9a4c5.df3995e7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3672],{3967:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>d,default:()=>o,frontMatter:()=>l,metadata:()=>i,toc:()=>x});const i=JSON.parse('{"id":"utilities/Discord","title":"Discord","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/utilities/Discord.mdx","sourceDirName":"utilities","slug":"/utilities/Discord","permalink":"/docs/utilities/Discord","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/Discord.mdx","tags":[],"version":"current","sidebarPosition":14,"frontMatter":{"title":"Discord","sidebar_position":14},"sidebar":"tutorialSidebar","previous":{"title":"YUView","permalink":"/docs/utilities/YUView"},"next":{"title":"av1an-command-gen","permalink":"/docs/utilities/av1an-command-gen"}}');var s=n(4848),r=n(8453);const l={title:"Discord",sidebar_position:14},d="Discord",c={},x=[{value:"Key",id:"key",level:2},{value:"Video Codecs & Containers",id:"video-codecs--containers",level:2}];function h(e){const t={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"discord",children:"Discord"})}),"\n",(0,s.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,s.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,s.jsx)(t.admonition,{title:"Pending Review",type:"caution",children:(0,s.jsx)(t.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,s.jsxs)(t.p,{children:["This entry is a bit different from others, and may be moved to a blog post in the future. Below are a number of tables that enumerate the codecs Discord supports for local playback (",(0,s.jsx)(t.em,{children:"not"})," livestreaming). These tables are based on community testing across a number of platforms, and are not exhaustive."]}),"\n",(0,s.jsx)(t.h2,{id:"key",children:"Key"}),"\n",(0,s.jsxs)(t.p,{children:["The key has a number of emojis corresponding to full support, partial support, support with the ",(0,s.jsx)(t.a,{href:"https://wiki.x266.mov/blog/embedding-the-un-embeddable",children:"Discord embed workaround"}),", and no support."]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:"\u2705 Full support"}),"\n",(0,s.jsx)(t.li,{children:"\u26a0\ufe0f Partial support"}),"\n",(0,s.jsx)(t.li,{children:"\ud83d\udee0\ufe0f Support with the Discord embed workaround"}),"\n",(0,s.jsx)(t.li,{children:"\u2754 Untested or unknown"}),"\n",(0,s.jsx)(t.li,{children:"\u274c No support"}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"If the browser isn't compatible with a particular platform, it will be marked as N/A."}),"\n",(0,s.jsx)(t.h2,{id:"video-codecs--containers",children:"Video Codecs & Containers"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:(0,s.jsx)(t.a,{href:"/docs/video/AVC",children:"H.264"})})," 4:2:0 8-bit lossy | .mp4"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Browser"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"macOS"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Windows"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"iOS"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Android"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Linux"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Chrome"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Firefox"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Safari"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"App"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"})]})]})]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:(0,s.jsx)(t.a,{href:"/docs/video/HEVC",children:"H.265"})})," 4:2:0 8-bit lossy | .mp4"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Browser"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"macOS"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Windows"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"iOS"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Android"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Linux"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Chrome"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f**"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Firefox"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f***"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Safari"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"App"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f**"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]})]})]}),"\n",(0,s.jsxs)(t.p,{children:["* Only supports H.265 with the ",(0,s.jsx)(t.code,{children:"hvcC"})," box in the MP4 container. These streams can be encoded by adding ",(0,s.jsx)(t.code,{children:"-tag:v hvc1"})," to an FFmpeg encoding command."]}),"\n",(0,s.jsx)(t.p,{children:"** Requires you have hardware accelerated HEVC decoding support."}),"\n",(0,s.jsxs)(t.p,{children:["*** Firefox on Windows requires you have hardware accelerated HEVC decoding support and the ",(0,s.jsx)(t.code,{children:"media.wmf.hevc.enabled"})," flag enabled in ",(0,s.jsx)(t.code,{children:"about:config"}),"."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:(0,s.jsx)(t.a,{href:"/docs/video/HEVC",children:"H.265"})})," 4:2:0 8-bit lossy | .mov"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Browser"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"macOS"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Windows"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"iOS"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Android"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Linux"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Chrome"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f**"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Firefox"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f***"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Safari"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"App"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f**"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]})]})]}),"\n",(0,s.jsxs)(t.p,{children:["* Only supports H.265 with the ",(0,s.jsx)(t.code,{children:"hvcC"})," box in the MOV container. These streams can be encoded by adding ",(0,s.jsx)(t.code,{children:"-tag:v hvc1"})," to an FFmpeg encoding command."]}),"\n",(0,s.jsx)(t.p,{children:"** Requires you have hardware accelerated HEVC decoding support."}),"\n",(0,s.jsxs)(t.p,{children:["*** Firefox on Windows requires you have hardware accelerated HEVC decoding support and the ",(0,s.jsx)(t.code,{children:"media.wmf.hevc.enabled"})," flag enabled in ",(0,s.jsx)(t.code,{children:"about:config"}),"."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:(0,s.jsx)(t.a,{href:"/docs/video/HEVC",children:"H.265"})})," 4:2:0 10-bit lossy | .mp4"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Browser"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"macOS"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Windows"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"iOS"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Android"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Linux"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Chrome"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Firefox"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Safari"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"App"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]})]})]}),"\n",(0,s.jsxs)(t.p,{children:["* Only supports H.265 with the ",(0,s.jsx)(t.code,{children:"hvcC"})," box in the MP4 container. These streams can be encoded by adding ",(0,s.jsx)(t.code,{children:"-tag:v hvc1"})," to an FFmpeg encoding command."]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:(0,s.jsx)(t.a,{href:"/docs/video/HEVC",children:"H.265"})})," 4:2:0 10-bit lossy | .mov"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Browser"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"macOS"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Windows"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"iOS"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Android"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Linux"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Chrome"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Firefox"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2754"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"Safari"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"N/A"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"App"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u26a0\ufe0f*"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u2705"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"\u274c"})]})]})]}),"\n",(0,s.jsxs)(t.p,{children:["* Only supports H.265 with the ",(0,s.jsx)(t.code,{children:"hvcC"})," box in the MOV container. These streams can be encoded by adding ",(0,s.jsx)(t.code,{children:"-tag:v hvc1"})," to an FFmpeg encoding command."]})]})}function o(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>l,x:()=>d});var i=n(6540);const s={},r=i.createContext(s);function l(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/998d107e.6cbdd3c4.js b/assets/js/998d107e.6cbdd3c4.js deleted file mode 100644 index 5f9040e7c..000000000 --- a/assets/js/998d107e.6cbdd3c4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[274],{7672:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>d,contentTitle:()=>r,default:()=>h,frontMatter:()=>s,metadata:()=>c,toc:()=>a});var t=n(4848),o=n(8453);const s={title:"FFV1",sidebar_position:12},r="FFV1",c={id:"video/FFV1",title:"FFV1",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/video/FFV1.mdx",sourceDirName:"video",slug:"/video/FFV1",permalink:"/docs/video/FFV1",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/FFV1.mdx",tags:[],version:"current",sidebarPosition:12,frontMatter:{title:"FFV1",sidebar_position:12},sidebar:"tutorialSidebar",previous:{title:"Theora",permalink:"/docs/video/Theora"},next:{title:"UT Video",permalink:"/docs/video/utvideo"}},d={},a=[{value:"History",id:"history",level:2},{value:"Usage",id:"usage",level:2},{value:"Options",id:"options",level:3},{value:"Intra-frame only catch",id:"intra-frame-only-catch",level:2}];function l(e){const i={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"ffv1",children:"FFV1"})}),"\n",(0,t.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsxs)(i.p,{children:["FFV1 (",(0,t.jsx)(i.a,{href:"https://datatracker.ietf.org/doc/html/rfc9043",children:"rfc9043"}),") is a lossless intra-frame video codec designed for archival use and preservation. Created by Michael Niedermayer, it is part of the ",(0,t.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," project. The codec supports a wide range of color spaces, works with YUV and RGB content including alpha channel of color depths ranging from 8 to 16 bits (only up to 14 in case of RGB). It has good parallelization support and achieves very high compression ratios compared to other lossless video encoders such as ",(0,t.jsx)(i.a,{href:"/docs/video/utvideo",children:"UT Video"}),", albeit at the cost of being more resource-hungry."]}),"\n",(0,t.jsx)(i.h2,{id:"history",children:"History"}),"\n",(0,t.jsx)(i.p,{children:"In 2003, the codec was merged into FFmpeg; however, the bitstream specification was frozen in 2006 (officially FFV1 version 0). Later, in 2009, version 1 came out, covering more video bit depths. Version 2 never got its release, existing only in experimental form."}),"\n",(0,t.jsx)(i.p,{children:"The third bitstream version was frozen in 2013 and is still the latest as of 2024. It added multithreading support and frame integrity checking."}),"\n",(0,t.jsxs)(i.p,{children:["There is a fourth version ",(0,t.jsx)(i.a,{href:"https://datatracker.ietf.org/doc/draft-ietf-cellar-ffv1-v4/",children:"coming"})," which might bring better support for color spaces, compression improvements, and maybe proper inter-frame prediction."]}),"\n",(0,t.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",metastring:'title="Fast, heavily multithreaded"',children:"ffmpeg -i input.mkv -c:v ffv1 -slices 16 out.mkv\n"})}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",metastring:'title="Slow, highest compression"',children:"ffmpeg -i input.mkv -c:v ffv1 -g 60 -slices 4 -context 1 -coder 2 out.mkv\n"})}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",metastring:'title="Recommended for archival purposes, high compression, multithreaded"',children:"ffmpeg -i input.mkv -c:v ffv1 -g 1 -slices 16 -slicecrc 1 -context 1 -coder 2 out.mkv\n"})}),"\n",(0,t.jsx)(i.h3,{id:"options",children:"Options"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"slices"})," - Slices divide the frame into multiple parts that can be encoded and decoded in parallel. Can only be one of: [",(0,t.jsx)(i.code,{children:"4"}),", ",(0,t.jsx)(i.code,{children:"6"}),", ",(0,t.jsx)(i.code,{children:"9"}),", ",(0,t.jsx)(i.code,{children:"12"}),", ",(0,t.jsx)(i.code,{children:"16"}),", ",(0,t.jsx)(i.code,{children:"24"}),", ",(0,t.jsx)(i.code,{children:"30"}),"], where ",(0,t.jsx)(i.code,{children:"4"})," is the default."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"slicecrc"})," - Setting it to ",(0,t.jsx)(i.code,{children:"1"})," will enable the decoder to detect errors in the bitstream. Must be enabled for archival use. Can be either ",(0,t.jsx)(i.code,{children:"0"})," or ",(0,t.jsx)(i.code,{children:"1"}),"."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"context"})," - Setting it to ",(0,t.jsx)(i.code,{children:"1"})," will make the encoder use a larger context size, which usually leads to better compression. Can be either ",(0,t.jsx)(i.code,{children:"0"})," or ",(0,t.jsx)(i.code,{children:"1"}),"."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"coder"})," - Sets entropy coding method:","\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"0"})," - Golomb-Rice (faster, default)"]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"1"})," - Range Coder (used for higher bit depths and better compression)"]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"2"})," - Range Coder with custom state transition table (almost the same as ",(0,t.jsx)(i.code,{children:"1"}),")"]}),"\n"]}),"\n"]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"g"})," - Sets GOP size. Must be ",(0,t.jsx)(i.code,{children:"1"})," for archival use. ",(0,t.jsx)(i.a,{href:"#intra-frame-only-catch",children:"See below"})]}),"\n"]}),"\n",(0,t.jsx)(i.h2,{id:"intra-frame-only-catch",children:"Intra-frame only catch"}),"\n",(0,t.jsxs)(i.p,{children:["Intra-frame codecs do not use well known inter-frame video coding techniques such as motion compensation, reusing parts of surrounding frames or adapting encoding context based on them. Every frame is independent from one another. Common intra-frame codecs include Motion JPEG (Lossy), Motion JPEG 2000 (Both), and ",(0,t.jsx)(i.a,{href:"/docs/video/utvideo",children:"UT Video"})," (Lossless)."]}),"\n",(0,t.jsxs)(i.p,{children:["If you're a careful reader, you might have noticed that setting ",(0,t.jsx)(i.code,{children:"GOP size"})," isn't a common characteristic among intra-frame codecs."]}),"\n",(0,t.jsxs)(i.p,{children:["In fact, FFV1 can be considered an intra-frame codec only if the ",(0,t.jsx)(i.code,{children:"GOP size"})," is set to ",(0,t.jsx)(i.code,{children:"1"}),". When it's larger than that, its context model depends on other frames found within the GOP, which contradicts the definition of intra-frame video codec. That is why it's highly advised to set ",(0,t.jsx)(i.code,{children:"GOP size"})," to ",(0,t.jsx)(i.code,{children:"1"})," for archiving. This way, if a single frame gets damaged, you'll\nonly lose that frame. If ",(0,t.jsx)(i.code,{children:"GOP size"})," was large, you might lose much bigger part of the video."]}),"\n",(0,t.jsx)(i.p,{children:"References:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"https://en.wikipedia.org/wiki/FFV1",children:"Wikipedia"})}),"\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"https://datatracker.ietf.org/doc/html/rfc9043",children:"RFC9043"})}),"\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"https://trac.ffmpeg.org/wiki/Encode/FFV1",children:"FFmpeg Docs"})}),"\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"https://forum.shotcut.org/t/exporting-as-ffv1-change-form-to-support-lossless-parameters/41230/19?page=2",children:"This Thread"})}),"\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"https://video.stackexchange.com/questions/24874/what-does-the-context-parameter-mean-when-using-ffv1-in-ffmpeg",children:"This Question"})}),"\n"]})]})}function h(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>r,x:()=>c});var t=n(6540);const o={},s=t.createContext(o);function r(e){const i=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function c(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/998d107e.e90e9e41.js b/assets/js/998d107e.e90e9e41.js new file mode 100644 index 000000000..c3a5bac6e --- /dev/null +++ b/assets/js/998d107e.e90e9e41.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[274],{530:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>d,contentTitle:()=>c,default:()=>h,frontMatter:()=>r,metadata:()=>t,toc:()=>a});const t=JSON.parse('{"id":"video/FFV1","title":"FFV1","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/video/FFV1.mdx","sourceDirName":"video","slug":"/video/FFV1","permalink":"/docs/video/FFV1","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/FFV1.mdx","tags":[],"version":"current","sidebarPosition":12,"frontMatter":{"title":"FFV1","sidebar_position":12},"sidebar":"tutorialSidebar","previous":{"title":"Theora","permalink":"/docs/video/Theora"},"next":{"title":"UT Video","permalink":"/docs/video/utvideo"}}');var s=n(4848),o=n(8453);const r={title:"FFV1",sidebar_position:12},c="FFV1",d={},a=[{value:"History",id:"history",level:2},{value:"Usage",id:"usage",level:2},{value:"Options",id:"options",level:3},{value:"Intra-frame only catch",id:"intra-frame-only-catch",level:2}];function l(e){const i={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"ffv1",children:"FFV1"})}),"\n",(0,s.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,s.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,s.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,s.jsxs)(i.p,{children:["FFV1 (",(0,s.jsx)(i.a,{href:"https://datatracker.ietf.org/doc/html/rfc9043",children:"rfc9043"}),") is a lossless intra-frame video codec designed for archival use and preservation. Created by Michael Niedermayer, it is part of the ",(0,s.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," project. The codec supports a wide range of color spaces, works with YUV and RGB content including alpha channel of color depths ranging from 8 to 16 bits (only up to 14 in case of RGB). It has good parallelization support and achieves very high compression ratios compared to other lossless video encoders such as ",(0,s.jsx)(i.a,{href:"/docs/video/utvideo",children:"UT Video"}),", albeit at the cost of being more resource-hungry."]}),"\n",(0,s.jsx)(i.h2,{id:"history",children:"History"}),"\n",(0,s.jsx)(i.p,{children:"In 2003, the codec was merged into FFmpeg; however, the bitstream specification was frozen in 2006 (officially FFV1 version 0). Later, in 2009, version 1 came out, covering more video bit depths. Version 2 never got its release, existing only in experimental form."}),"\n",(0,s.jsx)(i.p,{children:"The third bitstream version was frozen in 2013 and is still the latest as of 2024. It added multithreading support and frame integrity checking."}),"\n",(0,s.jsxs)(i.p,{children:["There is a fourth version ",(0,s.jsx)(i.a,{href:"https://datatracker.ietf.org/doc/draft-ietf-cellar-ffv1-v4/",children:"coming"})," which might bring better support for color spaces, compression improvements, and maybe proper inter-frame prediction."]}),"\n",(0,s.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-bash",metastring:'title="Fast, heavily multithreaded"',children:"ffmpeg -i input.mkv -c:v ffv1 -slices 16 out.mkv\n"})}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-bash",metastring:'title="Slow, highest compression"',children:"ffmpeg -i input.mkv -c:v ffv1 -g 60 -slices 4 -context 1 -coder 2 out.mkv\n"})}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-bash",metastring:'title="Recommended for archival purposes, high compression, multithreaded"',children:"ffmpeg -i input.mkv -c:v ffv1 -g 1 -slices 16 -slicecrc 1 -context 1 -coder 2 out.mkv\n"})}),"\n",(0,s.jsx)(i.h3,{id:"options",children:"Options"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"slices"})," - Slices divide the frame into multiple parts that can be encoded and decoded in parallel. Can only be one of: [",(0,s.jsx)(i.code,{children:"4"}),", ",(0,s.jsx)(i.code,{children:"6"}),", ",(0,s.jsx)(i.code,{children:"9"}),", ",(0,s.jsx)(i.code,{children:"12"}),", ",(0,s.jsx)(i.code,{children:"16"}),", ",(0,s.jsx)(i.code,{children:"24"}),", ",(0,s.jsx)(i.code,{children:"30"}),"], where ",(0,s.jsx)(i.code,{children:"4"})," is the default."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"slicecrc"})," - Setting it to ",(0,s.jsx)(i.code,{children:"1"})," will enable the decoder to detect errors in the bitstream. Must be enabled for archival use. Can be either ",(0,s.jsx)(i.code,{children:"0"})," or ",(0,s.jsx)(i.code,{children:"1"}),"."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"context"})," - Setting it to ",(0,s.jsx)(i.code,{children:"1"})," will make the encoder use a larger context size, which usually leads to better compression. Can be either ",(0,s.jsx)(i.code,{children:"0"})," or ",(0,s.jsx)(i.code,{children:"1"}),"."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"coder"})," - Sets entropy coding method:","\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"0"})," - Golomb-Rice (faster, default)"]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"1"})," - Range Coder (used for higher bit depths and better compression)"]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"2"})," - Range Coder with custom state transition table (almost the same as ",(0,s.jsx)(i.code,{children:"1"}),")"]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"g"})," - Sets GOP size. Must be ",(0,s.jsx)(i.code,{children:"1"})," for archival use. ",(0,s.jsx)(i.a,{href:"#intra-frame-only-catch",children:"See below"})]}),"\n"]}),"\n",(0,s.jsx)(i.h2,{id:"intra-frame-only-catch",children:"Intra-frame only catch"}),"\n",(0,s.jsxs)(i.p,{children:["Intra-frame codecs do not use well known inter-frame video coding techniques such as motion compensation, reusing parts of surrounding frames or adapting encoding context based on them. Every frame is independent from one another. Common intra-frame codecs include Motion JPEG (Lossy), Motion JPEG 2000 (Both), and ",(0,s.jsx)(i.a,{href:"/docs/video/utvideo",children:"UT Video"})," (Lossless)."]}),"\n",(0,s.jsxs)(i.p,{children:["If you're a careful reader, you might have noticed that setting ",(0,s.jsx)(i.code,{children:"GOP size"})," isn't a common characteristic among intra-frame codecs."]}),"\n",(0,s.jsxs)(i.p,{children:["In fact, FFV1 can be considered an intra-frame codec only if the ",(0,s.jsx)(i.code,{children:"GOP size"})," is set to ",(0,s.jsx)(i.code,{children:"1"}),". When it's larger than that, its context model depends on other frames found within the GOP, which contradicts the definition of intra-frame video codec. That is why it's highly advised to set ",(0,s.jsx)(i.code,{children:"GOP size"})," to ",(0,s.jsx)(i.code,{children:"1"})," for archiving. This way, if a single frame gets damaged, you'll\nonly lose that frame. If ",(0,s.jsx)(i.code,{children:"GOP size"})," was large, you might lose much bigger part of the video."]}),"\n",(0,s.jsx)(i.p,{children:"References:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:(0,s.jsx)(i.a,{href:"https://en.wikipedia.org/wiki/FFV1",children:"Wikipedia"})}),"\n",(0,s.jsx)(i.li,{children:(0,s.jsx)(i.a,{href:"https://datatracker.ietf.org/doc/html/rfc9043",children:"RFC9043"})}),"\n",(0,s.jsx)(i.li,{children:(0,s.jsx)(i.a,{href:"https://trac.ffmpeg.org/wiki/Encode/FFV1",children:"FFmpeg Docs"})}),"\n",(0,s.jsx)(i.li,{children:(0,s.jsx)(i.a,{href:"https://forum.shotcut.org/t/exporting-as-ffv1-change-form-to-support-lossless-parameters/41230/19?page=2",children:"This Thread"})}),"\n",(0,s.jsx)(i.li,{children:(0,s.jsx)(i.a,{href:"https://video.stackexchange.com/questions/24874/what-does-the-context-parameter-mean-when-using-ffv1-in-ffmpeg",children:"This Question"})}),"\n"]})]})}function h(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>r,x:()=>c});var t=n(6540);const s={},o=t.createContext(s);function r(e){const i=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function c(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),t.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/99c26446.557aea50.js b/assets/js/99c26446.557aea50.js new file mode 100644 index 000000000..ed7190ba7 --- /dev/null +++ b/assets/js/99c26446.557aea50.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8026],{1151:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>l,frontMatter:()=>s,metadata:()=>n,toc:()=>u});const n=JSON.parse('{"id":"metrics/butteraugli","title":"Butteraugli","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/metrics/butteraugli.mdx","sourceDirName":"metrics","slug":"/metrics/butteraugli","permalink":"/docs/metrics/butteraugli","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/metrics/butteraugli.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"Butteraugli","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"XPSNR","permalink":"/docs/metrics/XPSNR"},"next":{"title":"\u25b6\ufe0f Video Players","permalink":"/docs/video-players"}}');var o=i(4848),r=i(8453);const s={title:"Butteraugli",sidebar_position:1},a="Butteraugli",c={},u=[];function d(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"butteraugli",children:"Butteraugli"})}),"\n",(0,o.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function l(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>a});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/99c26446.f67ebc66.js b/assets/js/99c26446.f67ebc66.js deleted file mode 100644 index a78d8d780..000000000 --- a/assets/js/99c26446.f67ebc66.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8026],{1455:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>u,contentTitle:()=>s,default:()=>l,frontMatter:()=>r,metadata:()=>c,toc:()=>a});var n=i(4848),o=i(8453);const r={title:"Butteraugli",sidebar_position:1},s="Butteraugli",c={id:"metrics/butteraugli",title:"Butteraugli",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/metrics/butteraugli.mdx",sourceDirName:"metrics",slug:"/metrics/butteraugli",permalink:"/docs/metrics/butteraugli",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/metrics/butteraugli.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"Butteraugli",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"XPSNR",permalink:"/docs/metrics/XPSNR"},next:{title:"\u25b6\ufe0f Video Players",permalink:"/docs/video-players"}},u={},a=[];function d(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"butteraugli",children:"Butteraugli"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function l(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>c});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9ba56b79.c96a2fc2.js b/assets/js/9ba56b79.c96a2fc2.js new file mode 100644 index 000000000..09a1f4b16 --- /dev/null +++ b/assets/js/9ba56b79.c96a2fc2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1288],{2748:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>s,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"encoders_hw/amf","title":"AMF","description":"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information.","source":"@site/docs/encoders_hw/amf.mdx","sourceDirName":"encoders_hw","slug":"/encoders_hw/amf","permalink":"/docs/encoders_hw/amf","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders_hw/amf.mdx","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"title":"AMF","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"QSV","permalink":"/docs/encoders_hw/qsv"},"next":{"title":"VideoToolbox","permalink":"/docs/encoders_hw/videotoolbox"}}');var t=n(4848),r=n(8453);const s={title:"AMF",sidebar_position:3},a="AMF",c={},d=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"amf",children:"AMF"})}),"\n",(0,t.jsx)(i.admonition,{title:"Pending Review",type:"caution",children:(0,t.jsx)(i.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,t.jsx)(i.p,{children:"AMF for AMD GPUs allows applications to take advantage of the dedicated video encoding & decoding hardware present in AMD GPUs."}),"\n",(0,t.jsxs)(i.p,{children:["The AMD Advanced Media Framework (AMF) is a low-level API developed by AMD that enables developers to leverage hardware-accelerated video encoding & decoding on AMD GPUs. By utilizing specialized hardware on the GPU's media block, video encoding and decoding tasks can be offloaded from the CPU, resulting in drastic speed & efficiency increases. AMF provides multimedia processing functionality to applications, and competes with Nvidia's ",(0,t.jsx)(i.a,{href:"/docs/encoders_hw/nvenc",children:"NVENC"})," & Intel's ",(0,t.jsx)(i.a,{href:"/docs/encoders_hw/qsv",children:"QSV"})," for similar functionality."]}),"\n",(0,t.jsxs)(i.p,{children:["AMF provides support for various video codecs, including ",(0,t.jsx)(i.a,{href:"/docs/video/AVC",children:"H.264"})," , ",(0,t.jsx)(i.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,t.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"}),", and more recently ",(0,t.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," on the latest supported GPUs. The GPU's encoding capabilities are especially useful for compressing video content in real-time, where speed is of greater importance than coding efficiency."]}),"\n",(0,t.jsx)(i.p,{children:"Hardware-accelerated video encoding using AMF usually significantly improves encoding performance at low compression efficiency compared to software-based encoding solutions. It usually allows for higher-quality output at lower bitrates when encoding much faster than real time, such as at 60-200 fps. This is particularly beneficial for applications that require real-time encoding, such as live streaming, video conferencing, and game recording."}),"\n",(0,t.jsx)(i.p,{children:"However, slower software encoding solutions almost always offer improvements in fidelity per bit compared to hardware encoding. For offline re-encoding & storage, software encoding is generally preferred. AMF in particular is not known for having strong compression efficiency, as it is hampered by AMD's comparably weak media blocks which are usually outperformed by other hardware implementations from Nvidia, Intel, & Apple."}),"\n",(0,t.jsxs)(i.p,{children:["AMF is designed to integrate seamlessly with popular media frameworks and libraries, such as ",(0,t.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," and GStreamer. These frameworks often include AMF support, allowing developers to easily incorporate hardware-accelerated encoding into their applications without the need for low-level API programming."]}),"\n",(0,t.jsx)(i.p,{children:"AMF is compatible with a wide range of AMD GPUs, including both discrete and integrated graphics solutions. It supports various operating systems, including Windows and Linux, making it accessible to developers across different platforms."})]})}function h(e={}){const{wrapper:i}={...(0,r.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>s,x:()=>a});var o=n(6540);const t={},r=o.createContext(t);function s(e){const i=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:s(e.components),o.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9ba56b79.fa7dee29.js b/assets/js/9ba56b79.fa7dee29.js deleted file mode 100644 index 84af7f749..000000000 --- a/assets/js/9ba56b79.fa7dee29.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1288],{5495:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>c,contentTitle:()=>s,default:()=>h,frontMatter:()=>r,metadata:()=>a,toc:()=>d});var o=n(4848),t=n(8453);const r={title:"AMF",sidebar_position:3},s="AMF",a={id:"encoders_hw/amf",title:"AMF",description:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information.",source:"@site/docs/encoders_hw/amf.mdx",sourceDirName:"encoders_hw",slug:"/encoders_hw/amf",permalink:"/docs/encoders_hw/amf",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders_hw/amf.mdx",tags:[],version:"current",sidebarPosition:3,frontMatter:{title:"AMF",sidebar_position:3},sidebar:"tutorialSidebar",previous:{title:"QSV",permalink:"/docs/encoders_hw/qsv"},next:{title:"VideoToolbox",permalink:"/docs/encoders_hw/videotoolbox"}},c={},d=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.header,{children:(0,o.jsx)(i.h1,{id:"amf",children:"AMF"})}),"\n",(0,o.jsx)(i.admonition,{title:"Pending Review",type:"caution",children:(0,o.jsx)(i.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,o.jsx)(i.p,{children:"AMF for AMD GPUs allows applications to take advantage of the dedicated video encoding & decoding hardware present in AMD GPUs."}),"\n",(0,o.jsxs)(i.p,{children:["The AMD Advanced Media Framework (AMF) is a low-level API developed by AMD that enables developers to leverage hardware-accelerated video encoding & decoding on AMD GPUs. By utilizing specialized hardware on the GPU's media block, video encoding and decoding tasks can be offloaded from the CPU, resulting in drastic speed & efficiency increases. AMF provides multimedia processing functionality to applications, and competes with Nvidia's ",(0,o.jsx)(i.a,{href:"/docs/encoders_hw/nvenc",children:"NVENC"})," & Intel's ",(0,o.jsx)(i.a,{href:"/docs/encoders_hw/qsv",children:"QSV"})," for similar functionality."]}),"\n",(0,o.jsxs)(i.p,{children:["AMF provides support for various video codecs, including ",(0,o.jsx)(i.a,{href:"/docs/video/AVC",children:"H.264"})," , ",(0,o.jsx)(i.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,o.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"}),", and more recently ",(0,o.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," on the latest supported GPUs. The GPU's encoding capabilities are especially useful for compressing video content in real-time, where speed is of greater importance than coding efficiency."]}),"\n",(0,o.jsx)(i.p,{children:"Hardware-accelerated video encoding using AMF usually significantly improves encoding performance at low compression efficiency compared to software-based encoding solutions. It usually allows for higher-quality output at lower bitrates when encoding much faster than real time, such as at 60-200 fps. This is particularly beneficial for applications that require real-time encoding, such as live streaming, video conferencing, and game recording."}),"\n",(0,o.jsx)(i.p,{children:"However, slower software encoding solutions almost always offer improvements in fidelity per bit compared to hardware encoding. For offline re-encoding & storage, software encoding is generally preferred. AMF in particular is not known for having strong compression efficiency, as it is hampered by AMD's comparably weak media blocks which are usually outperformed by other hardware implementations from Nvidia, Intel, & Apple."}),"\n",(0,o.jsxs)(i.p,{children:["AMF is designed to integrate seamlessly with popular media frameworks and libraries, such as ",(0,o.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," and GStreamer. These frameworks often include AMF support, allowing developers to easily incorporate hardware-accelerated encoding into their applications without the need for low-level API programming."]}),"\n",(0,o.jsx)(i.p,{children:"AMF is compatible with a wide range of AMD GPUs, including both discrete and integrated graphics solutions. It supports various operating systems, including Windows and Linux, making it accessible to developers across different platforms."})]})}function h(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>s,x:()=>a});var o=n(6540);const t={},r=o.createContext(t);function s(e){const i=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:s(e.components),o.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9c171e5c.2ae1657d.js b/assets/js/9c171e5c.2ae1657d.js new file mode 100644 index 000000000..10c15e34b --- /dev/null +++ b/assets/js/9c171e5c.2ae1657d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8773],{4060:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>a,contentTitle:()=>c,default:()=>l,frontMatter:()=>r,metadata:()=>n,toc:()=>d});const n=JSON.parse('{"id":"metrics/SSIM","title":"SSIM","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/metrics/SSIM.mdx","sourceDirName":"metrics","slug":"/metrics/SSIM","permalink":"/docs/metrics/SSIM","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/metrics/SSIM.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"SSIM","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"PSNR","permalink":"/docs/metrics/PSNR"},"next":{"title":"SSIMULACRA2","permalink":"/docs/metrics/SSIMULACRA2"}}');var o=i(4848),s=i(8453);const r={title:"SSIM",sidebar_position:1},c="SSIM",a={},d=[];function u(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"ssim",children:"SSIM"})}),"\n",(0,o.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function l(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(u,{...e})}):u(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>r,x:()=>c});var n=i(6540);const o={},s=n.createContext(o);function r(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9c171e5c.30eddb11.js b/assets/js/9c171e5c.30eddb11.js deleted file mode 100644 index ce2dc4950..000000000 --- a/assets/js/9c171e5c.30eddb11.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8773],{3061:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>a,contentTitle:()=>s,default:()=>l,frontMatter:()=>r,metadata:()=>c,toc:()=>d});var n=i(4848),o=i(8453);const r={title:"SSIM",sidebar_position:1},s="SSIM",c={id:"metrics/SSIM",title:"SSIM",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/metrics/SSIM.mdx",sourceDirName:"metrics",slug:"/metrics/SSIM",permalink:"/docs/metrics/SSIM",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/metrics/SSIM.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"SSIM",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"PSNR",permalink:"/docs/metrics/PSNR"},next:{title:"SSIMULACRA2",permalink:"/docs/metrics/SSIMULACRA2"}},a={},d=[];function u(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"ssim",children:"SSIM"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function l(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>c});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9cae5962.1ac861f4.js b/assets/js/9cae5962.1ac861f4.js deleted file mode 100644 index 833293ddc..000000000 --- a/assets/js/9cae5962.1ac861f4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[71],{5650:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>c,contentTitle:()=>l,default:()=>p,frontMatter:()=>a,metadata:()=>d,toc:()=>h});var n=s(4848),t=s(8453),r=s(1470),o=s(9365);const a={title:"JPEG XL",sidebar_position:7},l="JPEG XL",d={id:"images/JXL",title:"JPEG XL",description:"JPEG XL (JXL) is a compression format for images that was developed by the Joint Photographic Experts Group (JPEG) in 2020. It is designed to provide improved compression efficiency compared to the traditional JPEG format, while still maintaining image quality. JPEG XL uses a combination of techniques such as perceptual color encoding, advanced entropy coding, and a new image prediction method to achieve its improved compression performance. It also has a lossless JPEG recompression mode, where an existing JPEG file can be turned into a JXL that can be decoded for a bit-for-bit exact replica of the original JPEG.",source:"@site/docs/images/JXL.mdx",sourceDirName:"images",slug:"/images/JXL",permalink:"/docs/images/JXL",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/JXL.mdx",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"JPEG XL",sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"AVIF",permalink:"/docs/images/AVIF"},next:{title:"QOI",permalink:"/docs/images/QOI"}},c={},h=[{value:"Performance Checklist",id:"performance-checklist",level:2},{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"Lossless Compression",id:"lossless-compression",level:3},{value:"Lossy Compression",id:"lossy-compression",level:3},{value:"Supported Bit Depth(s)",id:"supported-bit-depths",level:3},{value:"Progressive Decode",id:"progressive-decode",level:3},{value:"Lossless JPEG Re-compression",id:"lossless-jpeg-re-compression",level:3},{value:"Industry Support",id:"industry-support",level:3},{value:"Other Features",id:"other-features",level:3},{value:"Encoders",id:"encoders",level:2},{value:"libjxl",id:"libjxl",level:3},{value:"libjxl-tiny",id:"libjxl-tiny",level:3},{value:"Hydrium",id:"hydrium",level:3},{value:"zune-jpegxl",id:"zune-jpegxl",level:3},{value:"Decoders",id:"decoders",level:2},{value:"jxl-oxide",id:"jxl-oxide",level:3}];function u(e){const i={a:"a",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"jpeg-xl",children:"JPEG XL"})}),"\n",(0,n.jsxs)(i.p,{children:["JPEG XL (JXL) is a compression format for images that was developed by the Joint Photographic Experts Group (JPEG) in 2020. It is designed to provide improved compression efficiency compared to the traditional ",(0,n.jsx)(i.a,{href:"/docs/images/JPEG",children:"JPEG"})," format, while still maintaining image quality. JPEG XL uses a combination of techniques such as perceptual color encoding, advanced entropy coding, and a new image prediction method to achieve its improved compression performance. It also has a lossless JPEG recompression mode, where an existing JPEG file can be turned into a JXL that can be decoded for a bit-for-bit exact replica of the original JPEG."]}),"\n",(0,n.jsx)(i.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,n.jsxs)(i.p,{children:["Lossless? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:["Lossy? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:["Supported Bit Depths:\n",(0,n.jsx)(i.em,{children:"Up to 32 BPC"})]}),"\n",(0,n.jsxs)(i.p,{children:["HDR/Wide Gamut? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:["Animation? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:["Transparency? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:["Progressive Decode? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:["Royalty Free? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsx)(i.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,n.jsxs)(i.p,{children:["JPEG XL has a number of standout features that make it an appealing image codec to work with for many use cases. From the ",(0,n.jsx)(i.a,{href:"https://jpegxl.info",children:"JPEG XL Info page"}),", JXL has the following features:"]}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Best lossless image compression"}),": It offers about 35% smaller file sizes than PNG (50% smaller for HDR)."]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"High-fidelity lossy image compression"}),": JPEG XL provides about 60% smaller file sizes than JPEG for the same visual quality."]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Progressive decoding"}),": This allows an image to be displayed in lower quality before the entire file has been downloaded, improving user experience on slow connections."]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Lossless JPEG transcoding"}),": JPEG images can be converted to JPEG XL without any mathematical loss, and the resulting file is about 20% smaller."]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Designed for both photographic and synthetic images"}),": JPEG XL works well with a wide range of image types, including photos, graphics, and illustrations."]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Fast software encoding and decoding"}),": The codec is designed to be efficient and fast, enabling quick image loading and saving."]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Full support for wide gamut and HDR"}),": JPEG XL supports a wide range of colors and high dynamic range, making it suitable for modern displays."]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.strong,{children:"Perceptually optimizing reference encoder"}),": The encoder is designed to optimize image quality based on how humans perceive images."]}),"\n"]}),"\n",(0,n.jsx)(i.h3,{id:"lossless-compression",children:"Lossless Compression"}),"\n",(0,n.jsx)(i.p,{children:"JPEG XL offers excellent lossless compression capabilities. While lossless WebP was an improvement over PNG for 8-bit lossless image encoding, JPEG XL manages not only to outdo lossless WebP in encoding efficiency but also be more versatile for bit depths greater than 8-bit (a category PNG previously dominated). 16-bit lossless imagery, especially HDR images that are becoming more popular & rarely utilize 8-bit color depth, are where JPEG XL shines, and it is the only codec to compete with PNG in that regard while providing better coding efficiency."}),"\n",(0,n.jsxs)(i.p,{children:["Example: JPEG XL compresses ",(0,n.jsx)(i.a,{href:"https://imgsaver.com/images/2023/10/03/16bit.png",children:"this 16-bit AdobeRGB PNG"})," better than PNG. Using: ",(0,n.jsx)(i.code,{children:"cjxl 16bit.png 16bit.jxl -d 0.0 -e 9 -I 100 -g 3 -E 11"})]}),"\n",(0,n.jsxs)(i.p,{children:["16-bit PNG: ",(0,n.jsx)(i.code,{children:"1533373"})," bytes.\n16-bit JXL: ",(0,n.jsx)(i.code,{children:"1211029"})," bytes."]}),"\n",(0,n.jsx)(i.h3,{id:"lossy-compression",children:"Lossy Compression"}),"\n",(0,n.jsx)(i.p,{children:"JPEG XL is also adept at lossy compression, especially at quality levels that we as humans care about. It promises to be around 60% better than JPEG. While video-based codecs like AVIF can be competitive when given lots of CPU time, JPEG XL is both fast and efficient for medium to high fidelity photographic imaging."}),"\n",(0,n.jsx)(i.h3,{id:"supported-bit-depths",children:"Supported Bit Depth(s)"}),"\n",(0,n.jsx)(i.p,{children:"JPEG XL supports up to 32 bits per channel of bit depth, making it future proof for the increasingly popular HDR photos coming out of smartphones. There is essentially zero downside to encoding high bit depth with JXL relative to the resulting encode's size. Considering many smartphones take HDR photos now, JXL offers a compelling pipeline for these photos to make their way to the Web in the future especially as companies like Adobe & Apple have already embraced the new codec."}),"\n",(0,n.jsx)(i.h3,{id:"progressive-decode",children:"Progressive Decode"}),"\n",(0,n.jsx)(i.p,{children:"JPEG XL provides actual progressive decode support that you can experiment with here on a supported browser like Safari, Waterfox, Thorium, Mercury, or any browser on iOS."}),"\n",(0,n.jsx)(i.p,{children:"Progressive decode is a feature only JPEG is able to offer a real implementation of, rendering low frequency transform coefficients before the rest of the image arrives to allow an image to display before the entire thing has been sent over the network. Blurhashes do not replace this technology, but rather compliment it, allowing another layer of progressive decode that can be used even before the image begins to load progressively. This is an important feature to improve the user experience on websites featuring large images, or on any website if your Internet connection isn't strong."}),"\n",(0,n.jsx)(i.h3,{id:"lossless-jpeg-re-compression",children:"Lossless JPEG Re-compression"}),"\n",(0,n.jsx)(i.p,{children:"An incredibly unique JPEG XL feature is lossless JPEG re-compression, or the ability to take a JPEG input and provide an output with a smaller filesize (on average, 20% smaller) that is pixel-for-pixel identical. This is why companies like Meta have endorsed JPEG XL, as it offers a path forward for the existing JPEGs on the Internet."}),"\n",(0,n.jsx)(i.h3,{id:"industry-support",children:"Industry Support"}),"\n",(0,n.jsx)(i.p,{children:"From the JPEG XL Wikipedia page:"}),"\n",(0,n.jsxs)(i.blockquote,{children:["\n",(0,n.jsx)(i.p,{children:"Besides Cloudinary and Google originally, throughout JPEG XL's preliminary implementation in web browsers, various representatives of well-known industry brand names have publicly voiced support for JPEG XL as their preferred choice, including Facebook, Adobe, Intel and the Video Electronics Standards Association, The Guardian, Flickr and SmugMug, Shopify, the Krita Foundation, and Serif Ltd."}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:"Apple also features ecosystem-wide JPEG XL support as of iOS 17 & macOS Sonoma."}),"\n",(0,n.jsx)(i.h3,{id:"other-features",children:"Other Features"}),"\n",(0,n.jsx)(i.p,{children:"JPEG XL has the potential to replace popular formats like TIFF for authoring workflows due to its broad feature set. From the JXL Wikipedia, some additional features include:"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsx)(i.li,{children:"Image dimensions of over a billion (2^30-1) pixels on each side."}),"\n",(0,n.jsx)(i.li,{children:"Up to 4099 channels, including support for alpha transparency"}),"\n",(0,n.jsx)(i.li,{children:"There can be multiple frames with zero duration, allowing support for layers in graphics software"}),"\n",(0,n.jsx)(i.li,{children:"Animation support, allowing JXL to rival GIF"}),"\n",(0,n.jsx)(i.li,{children:"Images can be stored in tiles to reduce the time needed to decode them."}),"\n",(0,n.jsx)(i.li,{children:"Graceful quality degradation across a large range of bitrates means quality loss isn't as abrupt as with older formats."}),"\n",(0,n.jsx)(i.li,{children:"Perceptually optimized reference encoder which uses a perceptual color space, adaptive quantization, and conservative default settings."}),"\n",(0,n.jsx)(i.li,{children:"Support for wide color gamut and HDR"}),"\n",(0,n.jsx)(i.li,{children:"Efficient encoding and decoding without requiring specialized hardware: JPEG XL is about as fast to encode and decode as old JPEG using libjpeg-turbo and an order of magnitude faster to encode and decode compared to HEIC with x265. It is also parallelizable."}),"\n",(0,n.jsx)(i.li,{children:"Royalty-free format with an open-source reference implementation available on GitHub."}),"\n"]}),"\n",(0,n.jsx)(i.h2,{id:"encoders",children:"Encoders"}),"\n",(0,n.jsx)(i.p,{children:"JPEG XL has a couple of noteworthy encoders currently available to work with. Because JPEG XL is so new, most encoders aren't yet intelligent enough to take advantage of the whole format yet. Here's a quote from Jon Sneyers in the JPEG XL discord that sums it up nicely:"}),"\n",(0,n.jsxs)(i.blockquote,{children:["\n",(0,n.jsx)(i.p,{children:"Encode side: 80% or so of the coding tools are used in one way or another by the encoder (the 20% is splines and super large VarDCT blocks, and also the things that are not used by default without using special experimental options, such as delta palette and noise). But the coding tools that are used, are typically used in a specific, limited way that doesn't come anywhere close to exhausting the bitstream expressivity."}),"\n"]}),"\n",(0,n.jsxs)(i.p,{children:["Sneyers is talking about libjxl's ",(0,n.jsx)(i.code,{children:"cjxl"})," encoder, which will be discussed further below."]}),"\n",(0,n.jsx)(i.h3,{id:"libjxl",children:"libjxl"}),"\n",(0,n.jsxs)(i.p,{children:["The reference ",(0,n.jsx)(i.a,{href:"https://github.com/libjxl/libjxl",children:"libjxl"})," implementation has the capability to both decode and encode JPEG XL image files. Both are discussed below."]}),"\n",(0,n.jsxs)(r.A,{children:[(0,n.jsxs)(o.A,{value:"enc",label:"Encoding",default:!0,children:[(0,n.jsxs)(i.p,{children:["libjxl's encoder ",(0,n.jsx)(i.code,{children:"cjxl"})," has more options to play around with. It takes a few primary arguments, distance (",(0,n.jsx)(i.code,{children:"-d"}),"), quality (",(0,n.jsx)(i.code,{children:"-q"}),"), and effort (",(0,n.jsx)(i.code,{children:"-e"}),")."]}),(0,n.jsx)(i.p,{children:(0,n.jsx)(i.strong,{children:"Distance and quality"})}),(0,n.jsxs)(i.p,{children:["Distance and quality are two ways of specifying ",(0,n.jsx)(i.em,{children:"how much loss"})," you are willing to tolerate, and as such, they are mutually exclusive, as they pull the same levers under the hood."]}),(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:["Distance is designed to map to how 'close' one must be to the source to notice any loss. It is represented as a scale between 0.0 & 25.0. 0.0 is ",(0,n.jsx)(i.strong,{children:"mathematically lossless"}),", every pixel will have the exact same value as the source. 1.0 is designed to be ",(0,n.jsx)(i.strong,{children:"visually lossless"}),", look the same at a normal viewing distance, and higher values have more loss."]}),"\n",(0,n.jsxs)(i.li,{children:["Quality is designed to roughly map to ",(0,n.jsx)(i.a,{href:"/docs/images/JPEG",children:"JPEG"}),"'s quality argument. A range 0-100, where 100 is ",(0,n.jsx)(i.strong,{children:"mathematically lossless"}),", 90 is intended to be ",(0,n.jsx)(i.strong,{children:"visually lossless"}),", and 0 is almost unrecognizable as the original image."]}),"\n"]}),(0,n.jsx)(i.p,{children:(0,n.jsx)(i.strong,{children:"Effort"})}),(0,n.jsxs)(i.p,{children:["Effort is similar to ",(0,n.jsx)(i.code,{children:"cpu-used"})," in video encoding. It specifies the amount of effort the encoder will make in order to get the smallest file size it can. It takes the form of a range 1-9, where higher numbers will spend more resources to get diminishing returns in terms of smaller size, while lower values do the opposite, leaving file size on the table for faster encoding."]}),(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",metastring:'title="Encoding with effort 9 and distance 1.0"',children:"cjxl -e 9 -d 1.0 example.png example.jxl\n"})}),(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",metastring:'title="This, by default uses lossless JPEG compression."',children:"cjxl example.jpg example.jxl\n"})})]}),(0,n.jsxs)(o.A,{value:"dec",label:"Decoding",children:[(0,n.jsxs)(i.p,{children:["Decoding a ",(0,n.jsx)(i.code,{children:".jxl"})," image is straightforward with libjxl's decoder, ",(0,n.jsx)(i.code,{children:"djxl"}),":"]}),(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",children:"djxl example.jxl example.png\n"})}),(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.code,{children:"djxl"})," can decode to pixels via pipes, png, apng for animated jxl, jpg, ppm, and pfm."]}),(0,n.jsxs)(i.p,{children:["By default, if the ",(0,n.jsx)(i.code,{children:".jxl"})," file was encoded with lossless jpeg recompression, ",(0,n.jsx)(i.code,{children:"djxl"})," will rebuild the exact jpeg file that was originally compressed. To avoid this, and create a new jpeg file:"]}),(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",children:"djxl -j example.jxl example.jpg\n"})}),(0,n.jsx)(i.p,{children:(0,n.jsxs)(i.strong,{children:["Keep in mind this is now a lossy process as ",(0,n.jsx)(i.code,{children:"djxl"})," will decode to pixels, then encode a new ",(0,n.jsx)(i.code,{children:".jpg"})," with those pixels."]})})]}),(0,n.jsxs)(o.A,{value:"build",label:"Building",children:[(0,n.jsxs)(i.p,{children:["A full build guide is provided in the ",(0,n.jsx)(i.a,{href:"https://github.com/libjxl/libjxl/blob/main/BUILDING.md",children:"libjxl build instructions"})," in the GitHub repo. This guide is simplified, and is only focused on building a working efficient encoder & decoder."]}),(0,n.jsx)(i.p,{children:"These instructions should work for macOS and Linux, although macOS support isn't guaranteed."}),(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",metastring:'title="1. Clone the repo"',children:"git clone https://github.com/libjxl/libjxl.git --recursive --shallow-submodules\n"})}),(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",metastring:'title="2. Install dependencies. May have to run these commands with root"',children:"apt install cmake pkg-config libbrotli-dev clang # Debian Linux\npacman -Syu cmake pkgconf brotli clang # Arch Linux\nbrew install cmake pkg-config brotli # macOS\n"})}),(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",metastring:'title="3. Set CC & CXX variables before building (Recommended)"',children:"export CC=clang CXX=clang++\n"})}),(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-bash",metastring:'title="4. cjxl & djxl will be available in the build/tools directory."',children:'cd libjxl && mkdir build && cd build\ncmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -march=native" -DCMAKE_C_FLAGS="-O3 -march=native" -DBUILD_TESTING=OFF -DJPEGXL_WARNINGS_AS_ERRORS=OFF -DJPEGXL_ENABLE_SJPEG=OFF ..\ncmake --build . -- -j$(nproc)\n'})}),(0,n.jsxs)(i.p,{children:["This will build ",(0,n.jsx)(i.code,{children:"cjxl"})," and ",(0,n.jsx)(i.code,{children:"djxl"})," with O3 optimization for your CPU architecture on Linux or macOS. Again, be aware that macOS support is not a priority. Via the libjxl OS X build guide:"]}),(0,n.jsxs)(i.blockquote,{children:["\n",(0,n.jsx)(i.p,{children:'OSX builds have "best effort" support, i.e. build might not work at all, some tests may fail and some sub-projects are excluded from build.'}),"\n"]})]})]}),"\n",(0,n.jsx)(i.h3,{id:"libjxl-tiny",children:"libjxl-tiny"}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.a,{href:"https://github.com/libjxl/libjxl-tiny",children:"libjxl-tiny"})," contains a simpler encoder implementation of JPEG XL, aimed at photographic images without an alpha channel. The goal is to guide hardware implementations of the encoder where support for the full set of encoding tools is not feasible. The color management is outside the scope of this library, the encoder input is given as a portable float map (PFM) in the linear sRGB colorspace, where individual sample values can be outside the [0.0, 1.0] range for out-of-gammut colors. For more details, see the ",(0,n.jsx)(i.a,{href:"https://github.com/libjxl/libjxl-tiny/blob/main/doc/coding_tools.md",children:"overview of the coding tools"}),"."]}),"\n",(0,n.jsx)(i.p,{children:"The last commit was ten months ago, so it is uncertain whether libjxl-tiny could be considered active."}),"\n",(0,n.jsx)(i.h3,{id:"hydrium",children:"Hydrium"}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.a,{href:"https://github.com/Traneptora/hydrium",children:"Hydrium"})," is a fast, ultra-low-memory, streaming JPEG XL encoder written in portable C. It is maintained by Traneptora."]}),"\n",(0,n.jsx)(i.h3,{id:"zune-jpegxl",children:"zune-jpegxl"}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.a,{href:"https://github.com/etemesi254/zune-image/tree/dev/crates/zune-jpegxl",children:"zune-jpegxl"})," is a simple, fast and fully safe modular JXL encoder written in Rust. It is maintained by etemesi254."]}),"\n",(0,n.jsx)(i.p,{children:"zune-jpegxl has the following features:"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsx)(i.li,{children:"Lossless encoding"}),"\n",(0,n.jsx)(i.li,{children:"8 bit and 16 bit support"}),"\n",(0,n.jsx)(i.li,{children:"Grayscale and RGBA encoding"}),"\n",(0,n.jsx)(i.li,{children:"Threading capabilities"}),"\n"]}),"\n",(0,n.jsx)(i.h2,{id:"decoders",children:"Decoders"}),"\n",(0,n.jsx)(i.h3,{id:"jxl-oxide",children:"jxl-oxide"}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.a,{href:"https://github.com/tirr-c/jxl-oxide",children:"jxl-oxide"})," is a spec-conforming JPEG XL decoder written in pure Rust. It is maintained by Wonwoo Choi."]}),"\n","\n",(0,n.jsx)(i.p,{children:"Sources:"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsx)(i.li,{children:(0,n.jsx)(i.a,{href:"https://en.wikipedia.org/wiki/JPEG_XL",children:"JXL Wikipedia"})}),"\n",(0,n.jsx)(i.li,{children:(0,n.jsx)(i.a,{href:"https://jpegxl.info/why-jxl.html",children:"JPEGXL.info: Why JXL"})}),"\n",(0,n.jsx)(i.li,{children:(0,n.jsx)(i.a,{href:"https://webkit.org/blog/14205/news-from-wwdc23-webkit-features-in-safari-17-beta/#images",children:"Apple JXL Announcement"})}),"\n",(0,n.jsx)(i.li,{children:(0,n.jsx)(i.a,{href:"https://cloudinary.com/blog/jpeg-xl-how-it-started-how-its-going",children:"JPEG XL: How It Started, How It's Going"})}),"\n",(0,n.jsx)(i.li,{children:(0,n.jsx)(i.a,{href:"https://cloudinary.com/blog/the-case-for-jpeg-xl",children:"The Case for JPEG XL"})}),"\n",(0,n.jsx)(i.li,{children:(0,n.jsx)(i.a,{href:"https://cloudinary.com/blog/time_for_next_gen_codecs_to_dethrone_jpeg",children:"Time for Next-Gen Codecs to Dethrone JPEG"})}),"\n",(0,n.jsx)(i.li,{children:(0,n.jsx)(i.a,{href:"https://giannirosato.com/blog/post/image-comparison/",children:"Image Codec Comparison"})}),"\n"]})]})}function p(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},9365:(e,i,s)=>{s.d(i,{A:()=>o});s(6540);var n=s(4164);const t={tabItem:"tabItem_Ymn6"};var r=s(4848);function o(e){let{children:i,hidden:s,className:o}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,n.A)(t.tabItem,o),hidden:s,children:i})}},1470:(e,i,s)=>{s.d(i,{A:()=>w});var n=s(6540),t=s(4164),r=s(3104),o=s(6347),a=s(205),l=s(7485),d=s(1682),c=s(679);function h(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:i}=e;return!!i&&"object"==typeof i&&"value"in i}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:i,children:s}=e;return(0,n.useMemo)((()=>{const e=i??function(e){return h(e).map((e=>{let{props:{value:i,label:s,attributes:n,default:t}}=e;return{value:i,label:s,attributes:n,default:t}}))}(s);return function(e){const i=(0,d.XI)(e,((e,i)=>e.value===i.value));if(i.length>0)throw new Error(`Docusaurus error: Duplicate values "${i.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[i,s])}function p(e){let{value:i,tabValues:s}=e;return s.some((e=>e.value===i))}function m(e){let{queryString:i=!1,groupId:s}=e;const t=(0,o.W6)(),r=function(e){let{queryString:i=!1,groupId:s}=e;if("string"==typeof i)return i;if(!1===i)return null;if(!0===i&&!s)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:i,groupId:s});return[(0,l.aZ)(r),(0,n.useCallback)((e=>{if(!r)return;const i=new URLSearchParams(t.location.search);i.set(r,e),t.replace({...t.location,search:i.toString()})}),[r,t])]}function g(e){const{defaultValue:i,queryString:s=!1,groupId:t}=e,r=u(e),[o,l]=(0,n.useState)((()=>function(e){let{defaultValue:i,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the component requires at least one children component");if(i){if(!p({value:i,tabValues:s}))throw new Error(`Docusaurus error: The has a defaultValue "${i}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return i}const n=s.find((e=>e.default))??s[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:i,tabValues:r}))),[d,h]=m({queryString:s,groupId:t}),[g,x]=function(e){let{groupId:i}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(i),[t,r]=(0,c.Dv)(s);return[t,(0,n.useCallback)((e=>{s&&r.set(e)}),[s,r])]}({groupId:t}),f=(()=>{const e=d??g;return p({value:e,tabValues:r})?e:null})();(0,a.A)((()=>{f&&l(f)}),[f]);return{selectedValue:o,selectValue:(0,n.useCallback)((e=>{if(!p({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);l(e),h(e),x(e)}),[h,x,r]),tabValues:r}}var x=s(2303);const f={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var b=s(4848);function j(e){let{className:i,block:s,selectedValue:n,selectValue:o,tabValues:a}=e;const l=[],{blockElementScrollPositionUntilNextRender:d}=(0,r.a_)(),c=e=>{const i=e.currentTarget,s=l.indexOf(i),t=a[s].value;t!==n&&(d(i),o(t))},h=e=>{let i=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const s=l.indexOf(e.currentTarget)+1;i=l[s]??l[0];break}case"ArrowLeft":{const s=l.indexOf(e.currentTarget)-1;i=l[s]??l[l.length-1];break}}i?.focus()};return(0,b.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.A)("tabs",{"tabs--block":s},i),children:a.map((e=>{let{value:i,label:s,attributes:r}=e;return(0,b.jsx)("li",{role:"tab",tabIndex:n===i?0:-1,"aria-selected":n===i,ref:e=>l.push(e),onKeyDown:h,onClick:c,...r,className:(0,t.A)("tabs__item",f.tabItem,r?.className,{"tabs__item--active":n===i}),children:s??i},i)}))})}function y(e){let{lazy:i,children:s,selectedValue:r}=e;const o=(Array.isArray(s)?s:[s]).filter(Boolean);if(i){const e=o.find((e=>e.props.value===r));return e?(0,n.cloneElement)(e,{className:(0,t.A)("margin-top--md",e.props.className)}):null}return(0,b.jsx)("div",{className:"margin-top--md",children:o.map(((e,i)=>(0,n.cloneElement)(e,{key:i,hidden:e.props.value!==r})))})}function v(e){const i=g(e);return(0,b.jsxs)("div",{className:(0,t.A)("tabs-container",f.tabList),children:[(0,b.jsx)(j,{...i,...e}),(0,b.jsx)(y,{...i,...e})]})}function w(e){const i=(0,x.A)();return(0,b.jsx)(v,{...e,children:h(e.children)},String(i))}},8453:(e,i,s)=>{s.d(i,{R:()=>o,x:()=>a});var n=s(6540);const t={},r=n.createContext(t);function o(e){const i=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),n.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9cae5962.7f6f0663.js b/assets/js/9cae5962.7f6f0663.js new file mode 100644 index 000000000..a5e6d4860 --- /dev/null +++ b/assets/js/9cae5962.7f6f0663.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[71],{5084:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>c,contentTitle:()=>d,default:()=>p,frontMatter:()=>l,metadata:()=>n,toc:()=>h});const n=JSON.parse('{"id":"images/JXL","title":"JPEG XL","description":"JPEG XL (JXL) is a compression format for images that was developed by the Joint Photographic Experts Group (JPEG) in 2020. It is designed to provide improved compression efficiency compared to the traditional JPEG format, while still maintaining image quality. JPEG XL uses a combination of techniques such as perceptual color encoding, advanced entropy coding, and a new image prediction method to achieve its improved compression performance. It also has a lossless JPEG recompression mode, where an existing JPEG file can be turned into a JXL that can be decoded for a bit-for-bit exact replica of the original JPEG.","source":"@site/docs/images/JXL.mdx","sourceDirName":"images","slug":"/images/JXL","permalink":"/docs/images/JXL","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/JXL.mdx","tags":[],"version":"current","sidebarPosition":7,"frontMatter":{"title":"JPEG XL","sidebar_position":7},"sidebar":"tutorialSidebar","previous":{"title":"AVIF","permalink":"/docs/images/AVIF"},"next":{"title":"QOI","permalink":"/docs/images/QOI"}}');var t=s(4848),r=s(8453),o=s(1470),a=s(9365);const l={title:"JPEG XL",sidebar_position:7},d="JPEG XL",c={},h=[{value:"Performance Checklist",id:"performance-checklist",level:2},{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"Lossless Compression",id:"lossless-compression",level:3},{value:"Lossy Compression",id:"lossy-compression",level:3},{value:"Supported Bit Depth(s)",id:"supported-bit-depths",level:3},{value:"Progressive Decode",id:"progressive-decode",level:3},{value:"Lossless JPEG Re-compression",id:"lossless-jpeg-re-compression",level:3},{value:"Industry Support",id:"industry-support",level:3},{value:"Other Features",id:"other-features",level:3},{value:"Encoders",id:"encoders",level:2},{value:"libjxl",id:"libjxl",level:3},{value:"libjxl-tiny",id:"libjxl-tiny",level:3},{value:"Hydrium",id:"hydrium",level:3},{value:"zune-jpegxl",id:"zune-jpegxl",level:3},{value:"Decoders",id:"decoders",level:2},{value:"jxl-oxide",id:"jxl-oxide",level:3}];function u(e){const i={a:"a",blockquote:"blockquote",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"jpeg-xl",children:"JPEG XL"})}),"\n",(0,t.jsxs)(i.p,{children:["JPEG XL (JXL) is a compression format for images that was developed by the Joint Photographic Experts Group (JPEG) in 2020. It is designed to provide improved compression efficiency compared to the traditional ",(0,t.jsx)(i.a,{href:"/docs/images/JPEG",children:"JPEG"})," format, while still maintaining image quality. JPEG XL uses a combination of techniques such as perceptual color encoding, advanced entropy coding, and a new image prediction method to achieve its improved compression performance. It also has a lossless JPEG recompression mode, where an existing JPEG file can be turned into a JXL that can be decoded for a bit-for-bit exact replica of the original JPEG."]}),"\n",(0,t.jsx)(i.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,t.jsxs)(i.p,{children:["Lossless? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Lossy? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Supported Bit Depths:\n",(0,t.jsx)(i.em,{children:"Up to 32 BPC"})]}),"\n",(0,t.jsxs)(i.p,{children:["HDR/Wide Gamut? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Animation? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Transparency? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Progressive Decode? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Royalty Free? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsx)(i.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,t.jsxs)(i.p,{children:["JPEG XL has a number of standout features that make it an appealing image codec to work with for many use cases. From the ",(0,t.jsx)(i.a,{href:"https://jpegxl.info",children:"JPEG XL Info page"}),", JXL has the following features:"]}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Best lossless image compression"}),": It offers about 35% smaller file sizes than PNG (50% smaller for HDR)."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"High-fidelity lossy image compression"}),": JPEG XL provides about 60% smaller file sizes than JPEG for the same visual quality."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Progressive decoding"}),": This allows an image to be displayed in lower quality before the entire file has been downloaded, improving user experience on slow connections."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Lossless JPEG transcoding"}),": JPEG images can be converted to JPEG XL without any mathematical loss, and the resulting file is about 20% smaller."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Designed for both photographic and synthetic images"}),": JPEG XL works well with a wide range of image types, including photos, graphics, and illustrations."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Fast software encoding and decoding"}),": The codec is designed to be efficient and fast, enabling quick image loading and saving."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Full support for wide gamut and HDR"}),": JPEG XL supports a wide range of colors and high dynamic range, making it suitable for modern displays."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.strong,{children:"Perceptually optimizing reference encoder"}),": The encoder is designed to optimize image quality based on how humans perceive images."]}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"lossless-compression",children:"Lossless Compression"}),"\n",(0,t.jsx)(i.p,{children:"JPEG XL offers excellent lossless compression capabilities. While lossless WebP was an improvement over PNG for 8-bit lossless image encoding, JPEG XL manages not only to outdo lossless WebP in encoding efficiency but also be more versatile for bit depths greater than 8-bit (a category PNG previously dominated). 16-bit lossless imagery, especially HDR images that are becoming more popular & rarely utilize 8-bit color depth, are where JPEG XL shines, and it is the only codec to compete with PNG in that regard while providing better coding efficiency."}),"\n",(0,t.jsxs)(i.p,{children:["Example: JPEG XL compresses ",(0,t.jsx)(i.a,{href:"https://imgsaver.com/images/2023/10/03/16bit.png",children:"this 16-bit AdobeRGB PNG"})," better than PNG. Using: ",(0,t.jsx)(i.code,{children:"cjxl 16bit.png 16bit.jxl -d 0.0 -e 9 -I 100 -g 3 -E 11"})]}),"\n",(0,t.jsxs)(i.p,{children:["16-bit PNG: ",(0,t.jsx)(i.code,{children:"1533373"})," bytes.\n16-bit JXL: ",(0,t.jsx)(i.code,{children:"1211029"})," bytes."]}),"\n",(0,t.jsx)(i.h3,{id:"lossy-compression",children:"Lossy Compression"}),"\n",(0,t.jsx)(i.p,{children:"JPEG XL is also adept at lossy compression, especially at quality levels that we as humans care about. It promises to be around 60% better than JPEG. While video-based codecs like AVIF can be competitive when given lots of CPU time, JPEG XL is both fast and efficient for medium to high fidelity photographic imaging."}),"\n",(0,t.jsx)(i.h3,{id:"supported-bit-depths",children:"Supported Bit Depth(s)"}),"\n",(0,t.jsx)(i.p,{children:"JPEG XL supports up to 32 bits per channel of bit depth, making it future proof for the increasingly popular HDR photos coming out of smartphones. There is essentially zero downside to encoding high bit depth with JXL relative to the resulting encode's size. Considering many smartphones take HDR photos now, JXL offers a compelling pipeline for these photos to make their way to the Web in the future especially as companies like Adobe & Apple have already embraced the new codec."}),"\n",(0,t.jsx)(i.h3,{id:"progressive-decode",children:"Progressive Decode"}),"\n",(0,t.jsx)(i.p,{children:"JPEG XL provides actual progressive decode support that you can experiment with here on a supported browser like Safari, Waterfox, Thorium, Mercury, or any browser on iOS."}),"\n",(0,t.jsx)(i.p,{children:"Progressive decode is a feature only JPEG is able to offer a real implementation of, rendering low frequency transform coefficients before the rest of the image arrives to allow an image to display before the entire thing has been sent over the network. Blurhashes do not replace this technology, but rather compliment it, allowing another layer of progressive decode that can be used even before the image begins to load progressively. This is an important feature to improve the user experience on websites featuring large images, or on any website if your Internet connection isn't strong."}),"\n",(0,t.jsx)(i.h3,{id:"lossless-jpeg-re-compression",children:"Lossless JPEG Re-compression"}),"\n",(0,t.jsx)(i.p,{children:"An incredibly unique JPEG XL feature is lossless JPEG re-compression, or the ability to take a JPEG input and provide an output with a smaller filesize (on average, 20% smaller) that is pixel-for-pixel identical. This is why companies like Meta have endorsed JPEG XL, as it offers a path forward for the existing JPEGs on the Internet."}),"\n",(0,t.jsx)(i.h3,{id:"industry-support",children:"Industry Support"}),"\n",(0,t.jsx)(i.p,{children:"From the JPEG XL Wikipedia page:"}),"\n",(0,t.jsxs)(i.blockquote,{children:["\n",(0,t.jsx)(i.p,{children:"Besides Cloudinary and Google originally, throughout JPEG XL's preliminary implementation in web browsers, various representatives of well-known industry brand names have publicly voiced support for JPEG XL as their preferred choice, including Facebook, Adobe, Intel and the Video Electronics Standards Association, The Guardian, Flickr and SmugMug, Shopify, the Krita Foundation, and Serif Ltd."}),"\n"]}),"\n",(0,t.jsx)(i.p,{children:"Apple also features ecosystem-wide JPEG XL support as of iOS 17 & macOS Sonoma."}),"\n",(0,t.jsx)(i.h3,{id:"other-features",children:"Other Features"}),"\n",(0,t.jsx)(i.p,{children:"JPEG XL has the potential to replace popular formats like TIFF for authoring workflows due to its broad feature set. From the JXL Wikipedia, some additional features include:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Image dimensions of over a billion (2^30-1) pixels on each side."}),"\n",(0,t.jsx)(i.li,{children:"Up to 4099 channels, including support for alpha transparency"}),"\n",(0,t.jsx)(i.li,{children:"There can be multiple frames with zero duration, allowing support for layers in graphics software"}),"\n",(0,t.jsx)(i.li,{children:"Animation support, allowing JXL to rival GIF"}),"\n",(0,t.jsx)(i.li,{children:"Images can be stored in tiles to reduce the time needed to decode them."}),"\n",(0,t.jsx)(i.li,{children:"Graceful quality degradation across a large range of bitrates means quality loss isn't as abrupt as with older formats."}),"\n",(0,t.jsx)(i.li,{children:"Perceptually optimized reference encoder which uses a perceptual color space, adaptive quantization, and conservative default settings."}),"\n",(0,t.jsx)(i.li,{children:"Support for wide color gamut and HDR"}),"\n",(0,t.jsx)(i.li,{children:"Efficient encoding and decoding without requiring specialized hardware: JPEG XL is about as fast to encode and decode as old JPEG using libjpeg-turbo and an order of magnitude faster to encode and decode compared to HEIC with x265. It is also parallelizable."}),"\n",(0,t.jsx)(i.li,{children:"Royalty-free format with an open-source reference implementation available on GitHub."}),"\n"]}),"\n",(0,t.jsx)(i.h2,{id:"encoders",children:"Encoders"}),"\n",(0,t.jsx)(i.p,{children:"JPEG XL has a couple of noteworthy encoders currently available to work with. Because JPEG XL is so new, most encoders aren't yet intelligent enough to take advantage of the whole format yet. Here's a quote from Jon Sneyers in the JPEG XL discord that sums it up nicely:"}),"\n",(0,t.jsxs)(i.blockquote,{children:["\n",(0,t.jsx)(i.p,{children:"Encode side: 80% or so of the coding tools are used in one way or another by the encoder (the 20% is splines and super large VarDCT blocks, and also the things that are not used by default without using special experimental options, such as delta palette and noise). But the coding tools that are used, are typically used in a specific, limited way that doesn't come anywhere close to exhausting the bitstream expressivity."}),"\n"]}),"\n",(0,t.jsxs)(i.p,{children:["Sneyers is talking about libjxl's ",(0,t.jsx)(i.code,{children:"cjxl"})," encoder, which will be discussed further below."]}),"\n",(0,t.jsx)(i.h3,{id:"libjxl",children:"libjxl"}),"\n",(0,t.jsxs)(i.p,{children:["The reference ",(0,t.jsx)(i.a,{href:"https://github.com/libjxl/libjxl",children:"libjxl"})," implementation has the capability to both decode and encode JPEG XL image files. Both are discussed below."]}),"\n",(0,t.jsxs)(o.A,{children:[(0,t.jsxs)(a.A,{value:"enc",label:"Encoding",default:!0,children:[(0,t.jsxs)(i.p,{children:["libjxl's encoder ",(0,t.jsx)(i.code,{children:"cjxl"})," has more options to play around with. It takes a few primary arguments, distance (",(0,t.jsx)(i.code,{children:"-d"}),"), quality (",(0,t.jsx)(i.code,{children:"-q"}),"), and effort (",(0,t.jsx)(i.code,{children:"-e"}),")."]}),(0,t.jsx)(i.p,{children:(0,t.jsx)(i.strong,{children:"Distance and quality"})}),(0,t.jsxs)(i.p,{children:["Distance and quality are two ways of specifying ",(0,t.jsx)(i.em,{children:"how much loss"})," you are willing to tolerate, and as such, they are mutually exclusive, as they pull the same levers under the hood."]}),(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsxs)(i.li,{children:["Distance is designed to map to how 'close' one must be to the source to notice any loss. It is represented as a scale between 0.0 & 25.0. 0.0 is ",(0,t.jsx)(i.strong,{children:"mathematically lossless"}),", every pixel will have the exact same value as the source. 1.0 is designed to be ",(0,t.jsx)(i.strong,{children:"visually lossless"}),", look the same at a normal viewing distance, and higher values have more loss."]}),"\n",(0,t.jsxs)(i.li,{children:["Quality is designed to roughly map to ",(0,t.jsx)(i.a,{href:"/docs/images/JPEG",children:"JPEG"}),"'s quality argument. A range 0-100, where 100 is ",(0,t.jsx)(i.strong,{children:"mathematically lossless"}),", 90 is intended to be ",(0,t.jsx)(i.strong,{children:"visually lossless"}),", and 0 is almost unrecognizable as the original image."]}),"\n"]}),(0,t.jsx)(i.p,{children:(0,t.jsx)(i.strong,{children:"Effort"})}),(0,t.jsxs)(i.p,{children:["Effort is similar to ",(0,t.jsx)(i.code,{children:"cpu-used"})," in video encoding. It specifies the amount of effort the encoder will make in order to get the smallest file size it can. It takes the form of a range 1-9, where higher numbers will spend more resources to get diminishing returns in terms of smaller size, while lower values do the opposite, leaving file size on the table for faster encoding."]}),(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",metastring:'title="Encoding with effort 9 and distance 1.0"',children:"cjxl -e 9 -d 1.0 example.png example.jxl\n"})}),(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",metastring:'title="This, by default uses lossless JPEG compression."',children:"cjxl example.jpg example.jxl\n"})})]}),(0,t.jsxs)(a.A,{value:"dec",label:"Decoding",children:[(0,t.jsxs)(i.p,{children:["Decoding a ",(0,t.jsx)(i.code,{children:".jxl"})," image is straightforward with libjxl's decoder, ",(0,t.jsx)(i.code,{children:"djxl"}),":"]}),(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",children:"djxl example.jxl example.png\n"})}),(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.code,{children:"djxl"})," can decode to pixels via pipes, png, apng for animated jxl, jpg, ppm, and pfm."]}),(0,t.jsxs)(i.p,{children:["By default, if the ",(0,t.jsx)(i.code,{children:".jxl"})," file was encoded with lossless jpeg recompression, ",(0,t.jsx)(i.code,{children:"djxl"})," will rebuild the exact jpeg file that was originally compressed. To avoid this, and create a new jpeg file:"]}),(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",children:"djxl -j example.jxl example.jpg\n"})}),(0,t.jsx)(i.p,{children:(0,t.jsxs)(i.strong,{children:["Keep in mind this is now a lossy process as ",(0,t.jsx)(i.code,{children:"djxl"})," will decode to pixels, then encode a new ",(0,t.jsx)(i.code,{children:".jpg"})," with those pixels."]})})]}),(0,t.jsxs)(a.A,{value:"build",label:"Building",children:[(0,t.jsxs)(i.p,{children:["A full build guide is provided in the ",(0,t.jsx)(i.a,{href:"https://github.com/libjxl/libjxl/blob/main/BUILDING.md",children:"libjxl build instructions"})," in the GitHub repo. This guide is simplified, and is only focused on building a working efficient encoder & decoder."]}),(0,t.jsx)(i.p,{children:"These instructions should work for macOS and Linux, although macOS support isn't guaranteed."}),(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",metastring:'title="1. Clone the repo"',children:"git clone https://github.com/libjxl/libjxl.git --recursive --shallow-submodules\n"})}),(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",metastring:'title="2. Install dependencies. May have to run these commands with root"',children:"apt install cmake pkg-config libbrotli-dev clang # Debian Linux\npacman -Syu cmake pkgconf brotli clang # Arch Linux\nbrew install cmake pkg-config brotli # macOS\n"})}),(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",metastring:'title="3. Set CC & CXX variables before building (Recommended)"',children:"export CC=clang CXX=clang++\n"})}),(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",metastring:'title="4. cjxl & djxl will be available in the build/tools directory."',children:'cd libjxl && mkdir build && cd build\ncmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -march=native" -DCMAKE_C_FLAGS="-O3 -march=native" -DBUILD_TESTING=OFF -DJPEGXL_WARNINGS_AS_ERRORS=OFF -DJPEGXL_ENABLE_SJPEG=OFF ..\ncmake --build . -- -j$(nproc)\n'})}),(0,t.jsxs)(i.p,{children:["This will build ",(0,t.jsx)(i.code,{children:"cjxl"})," and ",(0,t.jsx)(i.code,{children:"djxl"})," with O3 optimization for your CPU architecture on Linux or macOS. Again, be aware that macOS support is not a priority. Via the libjxl OS X build guide:"]}),(0,t.jsxs)(i.blockquote,{children:["\n",(0,t.jsx)(i.p,{children:'OSX builds have "best effort" support, i.e. build might not work at all, some tests may fail and some sub-projects are excluded from build.'}),"\n"]})]})]}),"\n",(0,t.jsx)(i.h3,{id:"libjxl-tiny",children:"libjxl-tiny"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.a,{href:"https://github.com/libjxl/libjxl-tiny",children:"libjxl-tiny"})," contains a simpler encoder implementation of JPEG XL, aimed at photographic images without an alpha channel. The goal is to guide hardware implementations of the encoder where support for the full set of encoding tools is not feasible. The color management is outside the scope of this library, the encoder input is given as a portable float map (PFM) in the linear sRGB colorspace, where individual sample values can be outside the [0.0, 1.0] range for out-of-gammut colors. For more details, see the ",(0,t.jsx)(i.a,{href:"https://github.com/libjxl/libjxl-tiny/blob/main/doc/coding_tools.md",children:"overview of the coding tools"}),"."]}),"\n",(0,t.jsx)(i.p,{children:"The last commit was ten months ago, so it is uncertain whether libjxl-tiny could be considered active."}),"\n",(0,t.jsx)(i.h3,{id:"hydrium",children:"Hydrium"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.a,{href:"https://github.com/Traneptora/hydrium",children:"Hydrium"})," is a fast, ultra-low-memory, streaming JPEG XL encoder written in portable C. It is maintained by Traneptora."]}),"\n",(0,t.jsx)(i.h3,{id:"zune-jpegxl",children:"zune-jpegxl"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.a,{href:"https://github.com/etemesi254/zune-image/tree/dev/crates/zune-jpegxl",children:"zune-jpegxl"})," is a simple, fast and fully safe modular JXL encoder written in Rust. It is maintained by etemesi254."]}),"\n",(0,t.jsx)(i.p,{children:"zune-jpegxl has the following features:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Lossless encoding"}),"\n",(0,t.jsx)(i.li,{children:"8 bit and 16 bit support"}),"\n",(0,t.jsx)(i.li,{children:"Grayscale and RGBA encoding"}),"\n",(0,t.jsx)(i.li,{children:"Threading capabilities"}),"\n"]}),"\n",(0,t.jsx)(i.h2,{id:"decoders",children:"Decoders"}),"\n",(0,t.jsx)(i.h3,{id:"jxl-oxide",children:"jxl-oxide"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.a,{href:"https://github.com/tirr-c/jxl-oxide",children:"jxl-oxide"})," is a spec-conforming JPEG XL decoder written in pure Rust. It is maintained by Wonwoo Choi."]}),"\n","\n",(0,t.jsx)(i.p,{children:"Sources:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"https://en.wikipedia.org/wiki/JPEG_XL",children:"JXL Wikipedia"})}),"\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"https://jpegxl.info/why-jxl.html",children:"JPEGXL.info: Why JXL"})}),"\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"https://webkit.org/blog/14205/news-from-wwdc23-webkit-features-in-safari-17-beta/#images",children:"Apple JXL Announcement"})}),"\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"https://cloudinary.com/blog/jpeg-xl-how-it-started-how-its-going",children:"JPEG XL: How It Started, How It's Going"})}),"\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"https://cloudinary.com/blog/the-case-for-jpeg-xl",children:"The Case for JPEG XL"})}),"\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"https://cloudinary.com/blog/time_for_next_gen_codecs_to_dethrone_jpeg",children:"Time for Next-Gen Codecs to Dethrone JPEG"})}),"\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"https://giannirosato.com/blog/post/image-comparison/",children:"Image Codec Comparison"})}),"\n"]})]})}function p(e={}){const{wrapper:i}={...(0,r.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},9365:(e,i,s)=>{s.d(i,{A:()=>o});s(6540);var n=s(4164);const t={tabItem:"tabItem_Ymn6"};var r=s(4848);function o(e){let{children:i,hidden:s,className:o}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,n.A)(t.tabItem,o),hidden:s,children:i})}},1470:(e,i,s)=>{s.d(i,{A:()=>w});var n=s(6540),t=s(4164),r=s(3104),o=s(6347),a=s(205),l=s(7485),d=s(1682),c=s(679);function h(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:i}=e;return!!i&&"object"==typeof i&&"value"in i}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:i,children:s}=e;return(0,n.useMemo)((()=>{const e=i??function(e){return h(e).map((e=>{let{props:{value:i,label:s,attributes:n,default:t}}=e;return{value:i,label:s,attributes:n,default:t}}))}(s);return function(e){const i=(0,d.XI)(e,((e,i)=>e.value===i.value));if(i.length>0)throw new Error(`Docusaurus error: Duplicate values "${i.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[i,s])}function p(e){let{value:i,tabValues:s}=e;return s.some((e=>e.value===i))}function m(e){let{queryString:i=!1,groupId:s}=e;const t=(0,o.W6)(),r=function(e){let{queryString:i=!1,groupId:s}=e;if("string"==typeof i)return i;if(!1===i)return null;if(!0===i&&!s)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return s??null}({queryString:i,groupId:s});return[(0,l.aZ)(r),(0,n.useCallback)((e=>{if(!r)return;const i=new URLSearchParams(t.location.search);i.set(r,e),t.replace({...t.location,search:i.toString()})}),[r,t])]}function g(e){const{defaultValue:i,queryString:s=!1,groupId:t}=e,r=u(e),[o,l]=(0,n.useState)((()=>function(e){let{defaultValue:i,tabValues:s}=e;if(0===s.length)throw new Error("Docusaurus error: the component requires at least one children component");if(i){if(!p({value:i,tabValues:s}))throw new Error(`Docusaurus error: The has a defaultValue "${i}" but none of its children has the corresponding value. Available values are: ${s.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return i}const n=s.find((e=>e.default))??s[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:i,tabValues:r}))),[d,h]=m({queryString:s,groupId:t}),[g,x]=function(e){let{groupId:i}=e;const s=function(e){return e?`docusaurus.tab.${e}`:null}(i),[t,r]=(0,c.Dv)(s);return[t,(0,n.useCallback)((e=>{s&&r.set(e)}),[s,r])]}({groupId:t}),f=(()=>{const e=d??g;return p({value:e,tabValues:r})?e:null})();(0,a.A)((()=>{f&&l(f)}),[f]);return{selectedValue:o,selectValue:(0,n.useCallback)((e=>{if(!p({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);l(e),h(e),x(e)}),[h,x,r]),tabValues:r}}var x=s(2303);const f={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var b=s(4848);function j(e){let{className:i,block:s,selectedValue:n,selectValue:o,tabValues:a}=e;const l=[],{blockElementScrollPositionUntilNextRender:d}=(0,r.a_)(),c=e=>{const i=e.currentTarget,s=l.indexOf(i),t=a[s].value;t!==n&&(d(i),o(t))},h=e=>{let i=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const s=l.indexOf(e.currentTarget)+1;i=l[s]??l[0];break}case"ArrowLeft":{const s=l.indexOf(e.currentTarget)-1;i=l[s]??l[l.length-1];break}}i?.focus()};return(0,b.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,t.A)("tabs",{"tabs--block":s},i),children:a.map((e=>{let{value:i,label:s,attributes:r}=e;return(0,b.jsx)("li",{role:"tab",tabIndex:n===i?0:-1,"aria-selected":n===i,ref:e=>l.push(e),onKeyDown:h,onClick:c,...r,className:(0,t.A)("tabs__item",f.tabItem,r?.className,{"tabs__item--active":n===i}),children:s??i},i)}))})}function y(e){let{lazy:i,children:s,selectedValue:r}=e;const o=(Array.isArray(s)?s:[s]).filter(Boolean);if(i){const e=o.find((e=>e.props.value===r));return e?(0,n.cloneElement)(e,{className:(0,t.A)("margin-top--md",e.props.className)}):null}return(0,b.jsx)("div",{className:"margin-top--md",children:o.map(((e,i)=>(0,n.cloneElement)(e,{key:i,hidden:e.props.value!==r})))})}function v(e){const i=g(e);return(0,b.jsxs)("div",{className:(0,t.A)("tabs-container",f.tabList),children:[(0,b.jsx)(j,{...i,...e}),(0,b.jsx)(y,{...i,...e})]})}function w(e){const i=(0,x.A)();return(0,b.jsx)(v,{...e,children:h(e.children)},String(i))}},8453:(e,i,s)=>{s.d(i,{R:()=>o,x:()=>a});var n=s(6540);const t={},r=n.createContext(t);function o(e){const i=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),n.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9e4087bc.ba0deb5f.js b/assets/js/9e4087bc.ba0deb5f.js deleted file mode 100644 index 75fbfeee3..000000000 --- a/assets/js/9e4087bc.ba0deb5f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2711],{9331:(e,r,t)=>{t.r(r),t.d(r,{default:()=>m});t(6540);var a=t(8774),n=t(1312),i=t(1213),s=t(6266),c=t(263),l=t(1107),o=t(4848);function d(e){let{year:r,posts:t}=e;const n=(0,s.i)({day:"numeric",month:"long",timeZone:"UTC"});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.A,{as:"h3",id:r,children:r}),(0,o.jsx)("ul",{children:t.map((e=>{return(0,o.jsx)("li",{children:(0,o.jsxs)(a.A,{to:e.metadata.permalink,children:[(r=e.metadata.date,n.format(new Date(r)))," - ",e.metadata.title]})},e.metadata.date);var r}))})]})}function h(e){let{years:r}=e;return(0,o.jsx)("section",{className:"margin-vert--lg",children:(0,o.jsx)("div",{className:"container",children:(0,o.jsx)("div",{className:"row",children:r.map(((e,r)=>(0,o.jsx)("div",{className:"col col--4 margin-vert--lg",children:(0,o.jsx)(d,{...e})},r)))})})})}function m(e){let{archive:r}=e;const t=(0,n.T)({id:"theme.blog.archive.title",message:"Archive",description:"The page & hero title of the blog archive page"}),a=(0,n.T)({id:"theme.blog.archive.description",message:"Archive",description:"The page & hero description of the blog archive page"}),s=function(e){const r=e.reduce(((e,r)=>{const t=r.metadata.date.split("-")[0],a=e.get(t)??[];return e.set(t,[r,...a])}),new Map);return Array.from(r,(e=>{let[r,t]=e;return{year:r,posts:t}}))}(r.blogPosts);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.be,{title:t,description:a}),(0,o.jsxs)(c.A,{children:[(0,o.jsx)("header",{className:"hero hero--primary",children:(0,o.jsxs)("div",{className:"container",children:[(0,o.jsx)(l.A,{as:"h1",className:"hero__title",children:t}),(0,o.jsx)("p",{className:"hero__subtitle",children:a})]})}),(0,o.jsx)("main",{children:s.length>0&&(0,o.jsx)(h,{years:s})})]})]})}},6266:(e,r,t)=>{t.d(r,{i:()=>n});var a=t(4586);function n(e){void 0===e&&(e={});const{i18n:{currentLocale:r}}=(0,a.A)(),t=function(){const{i18n:{currentLocale:e,localeConfigs:r}}=(0,a.A)();return r[e].calendar}();return new Intl.DateTimeFormat(r,{calendar:t,...e})}}}]); \ No newline at end of file diff --git a/assets/js/9e4087bc.c688eee8.js b/assets/js/9e4087bc.c688eee8.js new file mode 100644 index 000000000..917789bff --- /dev/null +++ b/assets/js/9e4087bc.c688eee8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2711],{9331:(e,r,t)=>{t.r(r),t.d(r,{default:()=>m});t(6540);var a=t(8774),n=t(1312),i=t(1213),s=t(6266),c=t(7823),l=t(1107),o=t(4848);function d(e){let{year:r,posts:t}=e;const n=(0,s.i)({day:"numeric",month:"long",timeZone:"UTC"});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l.A,{as:"h3",id:r,children:r}),(0,o.jsx)("ul",{children:t.map((e=>{return(0,o.jsx)("li",{children:(0,o.jsxs)(a.A,{to:e.metadata.permalink,children:[(r=e.metadata.date,n.format(new Date(r)))," - ",e.metadata.title]})},e.metadata.date);var r}))})]})}function h(e){let{years:r}=e;return(0,o.jsx)("section",{className:"margin-vert--lg",children:(0,o.jsx)("div",{className:"container",children:(0,o.jsx)("div",{className:"row",children:r.map(((e,r)=>(0,o.jsx)("div",{className:"col col--4 margin-vert--lg",children:(0,o.jsx)(d,{...e})},r)))})})})}function m(e){let{archive:r}=e;const t=(0,n.T)({id:"theme.blog.archive.title",message:"Archive",description:"The page & hero title of the blog archive page"}),a=(0,n.T)({id:"theme.blog.archive.description",message:"Archive",description:"The page & hero description of the blog archive page"}),s=function(e){const r=e.reduce(((e,r)=>{const t=r.metadata.date.split("-")[0],a=e.get(t)??[];return e.set(t,[r,...a])}),new Map);return Array.from(r,(e=>{let[r,t]=e;return{year:r,posts:t}}))}(r.blogPosts);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.be,{title:t,description:a}),(0,o.jsxs)(c.A,{children:[(0,o.jsx)("header",{className:"hero hero--primary",children:(0,o.jsxs)("div",{className:"container",children:[(0,o.jsx)(l.A,{as:"h1",className:"hero__title",children:t}),(0,o.jsx)("p",{className:"hero__subtitle",children:a})]})}),(0,o.jsx)("main",{children:s.length>0&&(0,o.jsx)(h,{years:s})})]})]})}},6266:(e,r,t)=>{t.d(r,{i:()=>n});var a=t(4586);function n(e){void 0===e&&(e={});const{i18n:{currentLocale:r}}=(0,a.A)(),t=function(){const{i18n:{currentLocale:e,localeConfigs:r}}=(0,a.A)();return r[e].calendar}();return new Intl.DateTimeFormat(r,{calendar:t,...e})}}}]); \ No newline at end of file diff --git a/assets/js/9efd8a4a.4d2af715.js b/assets/js/9efd8a4a.4d2af715.js new file mode 100644 index 000000000..b489d676c --- /dev/null +++ b/assets/js/9efd8a4a.4d2af715.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5415],{8309:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>d,default:()=>h,frontMatter:()=>r,metadata:()=>i,toc:()=>l});const i=JSON.parse('{"id":"images/WebP","title":"WebP","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/images/WebP.mdx","sourceDirName":"images","slug":"/images/WebP","permalink":"/docs/images/WebP","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/WebP.mdx","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"title":"WebP","sidebar_position":4},"sidebar":"tutorialSidebar","previous":{"title":"HEIC","permalink":"/docs/images/HEIC"},"next":{"title":"JPEG 2000","permalink":"/docs/images/JPEG2000"}}');var t=s(4848),o=s(8453);const r={title:"WebP",sidebar_position:4},d="WebP",c={},l=[{value:"Encoding",id:"encoding",level:2},{value:"Using libwebp",id:"using-libwebp",level:3},{value:"decoding",id:"decoding",level:2},{value:"Performance Checklist",id:"performance-checklist",level:2}];function a(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"webp",children:"WebP"})}),"\n",(0,t.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsxs)(n.p,{children:['WebP is a free image file format first released by Google in 2010. It consists of 2 primary "modes" of operation. A lossy mode derived from the ',(0,t.jsx)(n.a,{href:"/docs/video/VP8",children:"VP8"})," video codec, and a novel lossless mode added in 2011."]}),"\n",(0,t.jsx)(n.h2,{id:"encoding",children:"Encoding"}),"\n",(0,t.jsx)(n.h3,{id:"using-libwebp",children:"Using libwebp"}),"\n",(0,t.jsxs)(n.p,{children:["libwebp supports WebP, JPEG, PNG, PNM (PGM, PPM, PAM), TIFF as input formats, and a quality (",(0,t.jsx)(n.code,{children:"-q"}),") value between 0 (lowest quality, smallest file) and 100 (highest quality, largest file). Should you need the lossless mode, you need to instead use a ",(0,t.jsx)(n.code,{children:"-z"})," argument, with values representing the effort used between 0 (fastest encode, largest file) and 9 (slowest encode, smallest file)."]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"cwebp example.png -q 75 -o example.webp\n"})}),"\n",(0,t.jsx)(n.h2,{id:"decoding",children:"decoding"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"dwebp example.webp -o example.png\n"})}),"\n",(0,t.jsx)(n.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,t.jsxs)(n.p,{children:["Lossless? ",(0,t.jsx)(n.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(n.p,{children:["Lossy? ",(0,t.jsx)(n.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(n.p,{children:["Supported Bit Depth:\n",(0,t.jsx)(n.em,{children:"8 BPC"})]}),"\n",(0,t.jsxs)(n.p,{children:["HDR/Wide Gamut? ",(0,t.jsx)(n.em,{children:"No"})]}),"\n",(0,t.jsxs)(n.p,{children:["Animation? ",(0,t.jsx)(n.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(n.p,{children:["Transparency? ",(0,t.jsx)(n.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(n.p,{children:["Progressive Decode? ",(0,t.jsx)(n.em,{children:"No"})]}),"\n",(0,t.jsxs)(n.p,{children:["Royalty Free? ",(0,t.jsx)(n.em,{children:"Yes"})]})]})}function h(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(a,{...e})}):a(e)}},8453:(e,n,s)=>{s.d(n,{R:()=>r,x:()=>d});var i=s(6540);const t={},o=i.createContext(t);function r(e){const n=i.useContext(o);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),i.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9efd8a4a.99078227.js b/assets/js/9efd8a4a.99078227.js deleted file mode 100644 index 6e01a36c3..000000000 --- a/assets/js/9efd8a4a.99078227.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5415],{1076:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>o,metadata:()=>d,toc:()=>l});var s=i(4848),t=i(8453);const o={title:"WebP",sidebar_position:4},r="WebP",d={id:"images/WebP",title:"WebP",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/images/WebP.mdx",sourceDirName:"images",slug:"/images/WebP",permalink:"/docs/images/WebP",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/WebP.mdx",tags:[],version:"current",sidebarPosition:4,frontMatter:{title:"WebP",sidebar_position:4},sidebar:"tutorialSidebar",previous:{title:"HEIC",permalink:"/docs/images/HEIC"},next:{title:"JPEG 2000",permalink:"/docs/images/JPEG2000"}},c={},l=[{value:"Encoding",id:"encoding",level:2},{value:"Using libwebp",id:"using-libwebp",level:3},{value:"decoding",id:"decoding",level:2},{value:"Performance Checklist",id:"performance-checklist",level:2}];function a(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"webp",children:"WebP"})}),"\n",(0,s.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,s.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,s.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,s.jsxs)(n.p,{children:['WebP is a free image file format first released by Google in 2010. It consists of 2 primary "modes" of operation. A lossy mode derived from the ',(0,s.jsx)(n.a,{href:"/docs/video/VP8",children:"VP8"})," video codec, and a novel lossless mode added in 2011."]}),"\n",(0,s.jsx)(n.h2,{id:"encoding",children:"Encoding"}),"\n",(0,s.jsx)(n.h3,{id:"using-libwebp",children:"Using libwebp"}),"\n",(0,s.jsxs)(n.p,{children:["libwebp supports WebP, JPEG, PNG, PNM (PGM, PPM, PAM), TIFF as input formats, and a quality (",(0,s.jsx)(n.code,{children:"-q"}),") value between 0 (lowest quality, smallest file) and 100 (highest quality, largest file). Should you need the lossless mode, you need to instead use a ",(0,s.jsx)(n.code,{children:"-z"})," argument, with values representing the effort used between 0 (fastest encode, largest file) and 9 (slowest encode, smallest file)."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"cwebp example.png -q 75 -o example.webp\n"})}),"\n",(0,s.jsx)(n.h2,{id:"decoding",children:"decoding"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"dwebp example.webp -o example.png\n"})}),"\n",(0,s.jsx)(n.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,s.jsxs)(n.p,{children:["Lossless? ",(0,s.jsx)(n.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(n.p,{children:["Lossy? ",(0,s.jsx)(n.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(n.p,{children:["Supported Bit Depth:\n",(0,s.jsx)(n.em,{children:"8 BPC"})]}),"\n",(0,s.jsxs)(n.p,{children:["HDR/Wide Gamut? ",(0,s.jsx)(n.em,{children:"No"})]}),"\n",(0,s.jsxs)(n.p,{children:["Animation? ",(0,s.jsx)(n.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(n.p,{children:["Transparency? ",(0,s.jsx)(n.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(n.p,{children:["Progressive Decode? ",(0,s.jsx)(n.em,{children:"No"})]}),"\n",(0,s.jsxs)(n.p,{children:["Royalty Free? ",(0,s.jsx)(n.em,{children:"Yes"})]})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>d});var s=i(6540);const t={},o=s.createContext(t);function r(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9f640ee8.37d95ba0.js b/assets/js/9f640ee8.37d95ba0.js new file mode 100644 index 000000000..74ed5350d --- /dev/null +++ b/assets/js/9f640ee8.37d95ba0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6810],{4799:(e,r,o)=>{o.r(r),o.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>p,frontMatter:()=>s,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"encoders/Aurora1","title":"Aurora1 AV1","description":"Aurora1 AV1 is a proprietary and paid software AV1 encoder developed by Visionular. Although they do provide a contact form to get a free trial, not much is known about this encoder other than cherry-picked claims and proof provided by the company themselves that it is supposedly \\"better\\" than public, FOSS encoders.","source":"@site/docs/encoders/Aurora1.mdx","sourceDirName":"encoders","slug":"/encoders/Aurora1","permalink":"/docs/encoders/Aurora1","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/Aurora1.mdx","tags":[],"version":"current","sidebarPosition":7,"frontMatter":{"label":"Aurora1 AV1","sidebar_position":7},"sidebar":"tutorialSidebar","previous":{"title":"rav1e","permalink":"/docs/encoders/rav1e"},"next":{"title":"vpxenc","permalink":"/docs/encoders/vpxenc"}}');var n=o(4848),a=o(8453);const s={label:"Aurora1 AV1",sidebar_position:7},i="Aurora1 AV1",c={},d=[];function u(e){const r={a:"a",h1:"h1",header:"header",p:"p",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.header,{children:(0,n.jsx)(r.h1,{id:"aurora1-av1",children:"Aurora1 AV1"})}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.a,{href:"https://visionular.ai/aurora1-av1-encoder/",children:"Aurora1 AV1"})," is a proprietary and paid software AV1 encoder developed by ",(0,n.jsx)(r.a,{href:"https://www.visionular.com/en",children:"Visionular"}),'. Although they do provide a contact form to get a free trial, not much is known about this encoder other than cherry-picked claims and proof provided by the company themselves that it is supposedly "better" than public, FOSS encoders.']})]})}function p(e={}){const{wrapper:r}={...(0,a.R)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},8453:(e,r,o)=>{o.d(r,{R:()=>s,x:()=>i});var t=o(6540);const n={},a=t.createContext(n);function s(e){const r=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function i(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:s(e.components),t.createElement(a.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9f640ee8.7839ab16.js b/assets/js/9f640ee8.7839ab16.js deleted file mode 100644 index d34e99205..000000000 --- a/assets/js/9f640ee8.7839ab16.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6810],{5864:(e,r,o)=>{o.r(r),o.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>p,frontMatter:()=>a,metadata:()=>s,toc:()=>d});var t=o(4848),n=o(8453);const a={label:"Aurora1 AV1",sidebar_position:7},i="Aurora1 AV1",s={id:"encoders/Aurora1",title:"Aurora1 AV1",description:'Aurora1 AV1 is a proprietary and paid software AV1 encoder developed by Visionular. Although they do provide a contact form to get a free trial, not much is known about this encoder other than cherry-picked claims and proof provided by the company themselves that it is supposedly "better" than public, FOSS encoders.',source:"@site/docs/encoders/Aurora1.mdx",sourceDirName:"encoders",slug:"/encoders/Aurora1",permalink:"/docs/encoders/Aurora1",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/Aurora1.mdx",tags:[],version:"current",sidebarPosition:7,frontMatter:{label:"Aurora1 AV1",sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"rav1e",permalink:"/docs/encoders/rav1e"},next:{title:"vpxenc",permalink:"/docs/encoders/vpxenc"}},c={},d=[];function u(e){const r={a:"a",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.header,{children:(0,t.jsx)(r.h1,{id:"aurora1-av1",children:"Aurora1 AV1"})}),"\n",(0,t.jsxs)(r.p,{children:[(0,t.jsx)(r.a,{href:"https://visionular.ai/aurora1-av1-encoder/",children:"Aurora1 AV1"})," is a proprietary and paid software AV1 encoder developed by ",(0,t.jsx)(r.a,{href:"https://www.visionular.com/en",children:"Visionular"}),'. Although they do provide a contact form to get a free trial, not much is known about this encoder other than cherry-picked claims and proof provided by the company themselves that it is supposedly "better" than public, FOSS encoders.']})]})}function p(e={}){const{wrapper:r}={...(0,n.R)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(u,{...e})}):u(e)}},8453:(e,r,o)=>{o.d(r,{R:()=>i,x:()=>s});var t=o(6540);const n={},a=t.createContext(n);function i(e){const r=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function s(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),t.createElement(a.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9f709603.998a2a99.js b/assets/js/9f709603.998a2a99.js new file mode 100644 index 000000000..fd1cf33e3 --- /dev/null +++ b/assets/js/9f709603.998a2a99.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5341],{8556:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>a,default:()=>u,frontMatter:()=>s,metadata:()=>i,toc:()=>c});const i=JSON.parse('{"id":"filtering/deband","title":"Deband","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/filtering/deband.mdx","sourceDirName":"filtering","slug":"/filtering/deband","permalink":"/docs/filtering/deband","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/deband.mdx","tags":[],"version":"current","sidebarPosition":11,"frontMatter":{"title":"Deband","sidebar_position":11},"sidebar":"tutorialSidebar","previous":{"title":"Antialiasing","permalink":"/docs/filtering/antialiasing"},"next":{"title":"Graining","permalink":"/docs/filtering/graining"}}');var o=t(4848),r=t(8453);const s={title:"Deband",sidebar_position:11},a="Deband",d={},c=[];function l(e){const n={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"deband",children:"Deband"})}),"\n",(0,o.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>a});var i=t(6540);const o={},r=i.createContext(o);function s(e){const n=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),i.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9f709603.a689513c.js b/assets/js/9f709603.a689513c.js deleted file mode 100644 index 698dc34e4..000000000 --- a/assets/js/9f709603.a689513c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5341],{3414:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>s,default:()=>u,frontMatter:()=>r,metadata:()=>a,toc:()=>c});var i=t(4848),o=t(8453);const r={title:"Deband",sidebar_position:11},s="Deband",a={id:"filtering/deband",title:"Deband",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/filtering/deband.mdx",sourceDirName:"filtering",slug:"/filtering/deband",permalink:"/docs/filtering/deband",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/deband.mdx",tags:[],version:"current",sidebarPosition:11,frontMatter:{title:"Deband",sidebar_position:11},sidebar:"tutorialSidebar",previous:{title:"Antialiasing",permalink:"/docs/filtering/antialiasing"},next:{title:"Graining",permalink:"/docs/filtering/graining"}},d={},c=[];function l(e){const n={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"deband",children:"Deband"})}),"\n",(0,i.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,i.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,i.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>a});var i=t(6540);const o={},r=i.createContext(o);function s(e){const n=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),i.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a8f610c9.46a9e8d4.js b/assets/js/a8f610c9.46a9e8d4.js deleted file mode 100644 index c6759f3dc..000000000 --- a/assets/js/a8f610c9.46a9e8d4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8599],{5860:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>u,frontMatter:()=>s,metadata:()=>r,toc:()=>c});var i=o(4848),n=o(8453);const s={title:"brotli",sidebar_position:6},a="Brotli",r={id:"data/brotli",title:"brotli",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/data/brotli.mdx",sourceDirName:"data",slug:"/data/brotli",permalink:"/docs/data/brotli",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/brotli.mdx",tags:[],version:"current",sidebarPosition:6,frontMatter:{title:"brotli",sidebar_position:6},sidebar:"tutorialSidebar",previous:{title:"xz",permalink:"/docs/data/xz"},next:{title:"zpaq",permalink:"/docs/data/zpaq"}},l={},c=[];function d(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"brotli",children:"Brotli"})}),"\n",(0,i.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,i.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,i.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,i.jsxs)(t.p,{children:["Brotli was released by Google in late 2013, & it is commonly used on the Web for content delivery. It is a core part of the ",(0,i.jsx)(t.code,{children:".woff2"})," Web Open Font Format, allowing web fonts to be smaller when sent to users as part of a website. It is not very common to pass around ",(0,i.jsx)(t.code,{children:".tar.br"})," Brotli archives like you would with ",(0,i.jsx)(t.a,{href:"/docs/data/gzip",children:"gzip"})," or ",(0,i.jsx)(t.a,{href:"/docs/data/xz",children:"xz"}),", so it is perfectly acceptable that such files aren't really compatible anywhere. Brotli is almost universally compatible across the Web, supported by as much as 96% of the World Wide Web's users."]}),"\n",(0,i.jsx)(t.p,{children:"Brotli is based on LZ77 & Huffman coding, much like ZIP. It also uses context modeling to allow the use of multiple Huffman trees for the same alphabet in the same block; this essentially means that based on the context of the data being compressed, it can be compressed more efficiently especially if it contains multiple different kinds of data."}),"\n",(0,i.jsxs)(t.p,{children:["Brotli was co-authored & partially developed by Jyrki Alakuijala, who also worked on ",(0,i.jsx)(t.a,{href:"/docs/images/JXL",children:"JPEG-XL"})," & the efficient ",(0,i.jsx)(t.a,{href:"/docs/images/JPEG",children:"JPEG"})," encoder jpegli. JPEG-XL's metadata information is usually Brotli-compressed."]})]})}function u(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>a,x:()=>r});var i=o(6540);const n={},s=i.createContext(n);function a(e){const t=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),i.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a8f610c9.d16485c4.js b/assets/js/a8f610c9.d16485c4.js new file mode 100644 index 000000000..d2f41ed6b --- /dev/null +++ b/assets/js/a8f610c9.d16485c4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8599],{7772:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>l,contentTitle:()=>r,default:()=>u,frontMatter:()=>a,metadata:()=>i,toc:()=>c});const i=JSON.parse('{"id":"data/brotli","title":"brotli","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/data/brotli.mdx","sourceDirName":"data","slug":"/data/brotli","permalink":"/docs/data/brotli","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/brotli.mdx","tags":[],"version":"current","sidebarPosition":6,"frontMatter":{"title":"brotli","sidebar_position":6},"sidebar":"tutorialSidebar","previous":{"title":"xz","permalink":"/docs/data/xz"},"next":{"title":"zpaq","permalink":"/docs/data/zpaq"}}');var n=o(4848),s=o(8453);const a={title:"brotli",sidebar_position:6},r="Brotli",l={},c=[];function d(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"brotli",children:"Brotli"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(t.p,{children:["Brotli was released by Google in late 2013, & it is commonly used on the Web for content delivery. It is a core part of the ",(0,n.jsx)(t.code,{children:".woff2"})," Web Open Font Format, allowing web fonts to be smaller when sent to users as part of a website. It is not very common to pass around ",(0,n.jsx)(t.code,{children:".tar.br"})," Brotli archives like you would with ",(0,n.jsx)(t.a,{href:"/docs/data/gzip",children:"gzip"})," or ",(0,n.jsx)(t.a,{href:"/docs/data/xz",children:"xz"}),", so it is perfectly acceptable that such files aren't really compatible anywhere. Brotli is almost universally compatible across the Web, supported by as much as 96% of the World Wide Web's users."]}),"\n",(0,n.jsx)(t.p,{children:"Brotli is based on LZ77 & Huffman coding, much like ZIP. It also uses context modeling to allow the use of multiple Huffman trees for the same alphabet in the same block; this essentially means that based on the context of the data being compressed, it can be compressed more efficiently especially if it contains multiple different kinds of data."}),"\n",(0,n.jsxs)(t.p,{children:["Brotli was co-authored & partially developed by Jyrki Alakuijala, who also worked on ",(0,n.jsx)(t.a,{href:"/docs/images/JXL",children:"JPEG-XL"})," & the efficient ",(0,n.jsx)(t.a,{href:"/docs/images/JPEG",children:"JPEG"})," encoder jpegli. JPEG-XL's metadata information is usually Brotli-compressed."]})]})}function u(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>a,x:()=>r});var i=o(6540);const n={},s=i.createContext(n);function a(e){const t=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),i.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/aaf3ff15.cf26fcc3.js b/assets/js/aaf3ff15.38a05c5b.js similarity index 68% rename from assets/js/aaf3ff15.cf26fcc3.js rename to assets/js/aaf3ff15.38a05c5b.js index e819d118b..a25a74cd1 100644 --- a/assets/js/aaf3ff15.cf26fcc3.js +++ b/assets/js/aaf3ff15.38a05c5b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3170],{5890:e=>{e.exports=JSON.parse('{"tag":{"label":"compression","permalink":"/blog/tags/compression","allTagsPath":"/blog/tags","count":5,"unlisted":false},"listMetadata":{"permalink":"/blog/tags/compression","page":1,"postsPerPage":10,"totalPages":1,"totalCount":5,"blogDescription":"Blog","blogTitle":"Blog"}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3170],{5890:e=>{e.exports=JSON.parse('{"tag":{"label":"compression","permalink":"/blog/tags/compression","allTagsPath":"/blog/tags","count":6,"unlisted":false},"listMetadata":{"permalink":"/blog/tags/compression","page":1,"postsPerPage":10,"totalPages":1,"totalCount":6,"blogDescription":"Blog","blogTitle":"Blog"}}')}}]); \ No newline at end of file diff --git a/assets/js/acf4709b.71ce111a.js b/assets/js/acf4709b.71ce111a.js new file mode 100644 index 000000000..d483c372f --- /dev/null +++ b/assets/js/acf4709b.71ce111a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7225],{4843:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>u,frontMatter:()=>o,metadata:()=>i,toc:()=>d});const i=JSON.parse('{"id":"subtitles/SSA","title":"SubStation Alpha","description":"The SubStation Alpha subtitle format.","source":"@site/docs/subtitles/SSA.mdx","sourceDirName":"subtitles","slug":"/subtitles/SSA","permalink":"/docs/subtitles/SSA","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/subtitles/SSA.mdx","tags":[],"version":"current","frontMatter":{"title":"SubStation Alpha","description":"The SubStation Alpha subtitle format.","keywords":["SSA","ASS","subtitles"]},"sidebar":"tutorialSidebar","previous":{"title":"SRT","permalink":"/docs/subtitles/SRT"},"next":{"title":"WebVTT","permalink":"/docs/subtitles/webvtt"}}');var a=n(4848),r=n(8453);const o={title:"SubStation Alpha",description:"The SubStation Alpha subtitle format.",keywords:["SSA","ASS","subtitles"]},s="Overview",l={},d=[{value:"Format",id:"format",level:2},{value:"ASS (SSA v4+) header",id:"ass-ssa-v4-header",level:3},{value:"Further reading:",id:"further-reading",level:2}];function c(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.p,{children:"SubStation Alpha (SSA), also known as Advanced Substation Alpha (ASS) for v4+, is a subtitle format. It was originally used by the Windows program of the same name, aimed at the karaoke and anime communities. It's advanced styling compared to alternatives made it popular with release groups."}),"\n",(0,a.jsx)(t.header,{children:(0,a.jsx)(t.h1,{id:"overview",children:"Overview"})}),"\n",(0,a.jsxs)(t.p,{children:['SSA is a "plain" text format, with Unicode support in ASS. It can either be left as a plain text file with the extension of .ssa or .ass, or muxed into a Matroska (.mkv) or AVI (.avi) file. The original SubStation Alpha software is abandonware, however a wide variety of media authoring, muxing, and playing software supports SSA, including ',(0,a.jsx)(t.a,{href:"/docs/video-players",children:"VLC"}),", ",(0,a.jsx)(t.a,{href:"/docs/video-players",children:"MPV"}),", and ",(0,a.jsx)(t.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),"."]}),"\n",(0,a.jsx)(t.h2,{id:"format",children:"Format"}),"\n",(0,a.jsx)(t.p,{children:"SSA uses the word \"script\" to refer to the subtitles that track a video. The character ';' at the beginning of a line is used to mark comments."}),"\n",(0,a.jsx)(t.h3,{id:"ass-ssa-v4-header",children:"ASS (SSA v4+) header"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{children:"[Script Info]\n; This is an Advanced Sub Station Alpha v4+ script.\n; For Sub Station Alpha info and downloads,\n; go to http://www.eswat.demon.co.uk/\n; or email kotus@eswat.demon.co.uk\n; \n; Advanced Sub Station Alpha script format developed by #Anime-Fansubs@EfNET\n; http://www.anime-fansubs.org\n; \n; For additional info and downloads go to http://vobsub.edensrising.com/\n; or email gabest@freemail.hu\n; \n; Note: This file was saved by Subresync.\n; \nScriptType: v4.00+\nCollisions: Normal\nPlayResX: 384\nPlayResY: 288\nTimer: 100.0000\n\n[V4+ Styles]\nFormat: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding\nStyle: Default,Tahoma,16,&H00000000,&H00ffffff,&H00ffffff,&H00c0c0c0,-1,0,0,0,100,100,0,0.00,1,2,3,2,20,20,20,1\n\n[Events]\nFormat: Layer, Start, End, Style, Actor, MarginL, MarginR, MarginV, Effect, Text\nDialogue: 0,0:01:41.70,0:01:46.84,Default,,0000,0000,0000,,Le rugissement des larmes !\\NTu es mon ami.\nDialogue: 0,0:02:00.99,0:02:02.87,Default,,0000,0000,0000,,Est-ce vraiment Naruto ?\n"})}),"\n",(0,a.jsx)(t.h2,{id:"further-reading",children:"Further reading:"}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.a,{href:"https://wiki.multimedia.cx/index.php/SubStation_Alpha",children:"Multimedia wiki"})}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.a,{href:"http://moodub.free.fr/video/ass-specs.doc",children:"Specification"})}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.a,{href:"https://web.archive.org/web/20030603235926/http://www.eswat.demon.co.uk/substation.html",children:"Archived original software release"})})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(c,{...e})}):c(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>o,x:()=>s});var i=n(6540);const a={},r=i.createContext(a);function o(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/acf4709b.e19f1737.js b/assets/js/acf4709b.e19f1737.js deleted file mode 100644 index b9174d9fa..000000000 --- a/assets/js/acf4709b.e19f1737.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7225],{1918:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>s,toc:()=>d});var i=n(4848),a=n(8453);const r={title:"SubStation Alpha",description:"The SubStation Alpha subtitle format.",keywords:["SSA","ASS","subtitles"]},o="Overview",s={id:"subtitles/SSA",title:"SubStation Alpha",description:"The SubStation Alpha subtitle format.",source:"@site/docs/subtitles/SSA.mdx",sourceDirName:"subtitles",slug:"/subtitles/SSA",permalink:"/docs/subtitles/SSA",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/subtitles/SSA.mdx",tags:[],version:"current",frontMatter:{title:"SubStation Alpha",description:"The SubStation Alpha subtitle format.",keywords:["SSA","ASS","subtitles"]},sidebar:"tutorialSidebar",previous:{title:"SRT",permalink:"/docs/subtitles/SRT"},next:{title:"WebVTT",permalink:"/docs/subtitles/webvtt"}},l={},d=[{value:"Format",id:"format",level:2},{value:"ASS (SSA v4+) header",id:"ass-ssa-v4-header",level:3},{value:"Further reading:",id:"further-reading",level:2}];function c(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,a.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.p,{children:"SubStation Alpha (SSA), also known as Advanced Substation Alpha (ASS) for v4+, is a subtitle format. It was originally used by the Windows program of the same name, aimed at the karaoke and anime communities. It's advanced styling compared to alternatives made it popular with release groups."}),"\n",(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"overview",children:"Overview"})}),"\n",(0,i.jsxs)(t.p,{children:['SSA is a "plain" text format, with Unicode support in ASS. It can either be left as a plain text file with the extension of .ssa or .ass, or muxed into a Matroska (.mkv) or AVI (.avi) file. The original SubStation Alpha software is abandonware, however a wide variety of media authoring, muxing, and playing software supports SSA, including ',(0,i.jsx)(t.a,{href:"/docs/video-players",children:"VLC"}),", ",(0,i.jsx)(t.a,{href:"/docs/video-players",children:"MPV"}),", and ",(0,i.jsx)(t.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),"."]}),"\n",(0,i.jsx)(t.h2,{id:"format",children:"Format"}),"\n",(0,i.jsx)(t.p,{children:"SSA uses the word \"script\" to refer to the subtitles that track a video. The character ';' at the beginning of a line is used to mark comments."}),"\n",(0,i.jsx)(t.h3,{id:"ass-ssa-v4-header",children:"ASS (SSA v4+) header"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{children:"[Script Info]\n; This is an Advanced Sub Station Alpha v4+ script.\n; For Sub Station Alpha info and downloads,\n; go to http://www.eswat.demon.co.uk/\n; or email kotus@eswat.demon.co.uk\n; \n; Advanced Sub Station Alpha script format developed by #Anime-Fansubs@EfNET\n; http://www.anime-fansubs.org\n; \n; For additional info and downloads go to http://vobsub.edensrising.com/\n; or email gabest@freemail.hu\n; \n; Note: This file was saved by Subresync.\n; \nScriptType: v4.00+\nCollisions: Normal\nPlayResX: 384\nPlayResY: 288\nTimer: 100.0000\n\n[V4+ Styles]\nFormat: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding\nStyle: Default,Tahoma,16,&H00000000,&H00ffffff,&H00ffffff,&H00c0c0c0,-1,0,0,0,100,100,0,0.00,1,2,3,2,20,20,20,1\n\n[Events]\nFormat: Layer, Start, End, Style, Actor, MarginL, MarginR, MarginV, Effect, Text\nDialogue: 0,0:01:41.70,0:01:46.84,Default,,0000,0000,0000,,Le rugissement des larmes !\\NTu es mon ami.\nDialogue: 0,0:02:00.99,0:02:02.87,Default,,0000,0000,0000,,Est-ce vraiment Naruto ?\n"})}),"\n",(0,i.jsx)(t.h2,{id:"further-reading",children:"Further reading:"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.a,{href:"https://wiki.multimedia.cx/index.php/SubStation_Alpha",children:"Multimedia wiki"})}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.a,{href:"http://moodub.free.fr/video/ass-specs.doc",children:"Specification"})}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.a,{href:"https://web.archive.org/web/20030603235926/http://www.eswat.demon.co.uk/substation.html",children:"Archived original software release"})})]})}function u(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(c,{...e})}):c(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>o,x:()=>s});var i=n(6540);const a={},r=i.createContext(a);function o(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/afe5e22f.4194e0a2.js b/assets/js/afe5e22f.4194e0a2.js deleted file mode 100644 index 1f7467e1e..000000000 --- a/assets/js/afe5e22f.4194e0a2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8117],{1624:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>l,contentTitle:()=>o,default:()=>h,frontMatter:()=>s,metadata:()=>a,toc:()=>d});var t=n(4848),r=n(8453);const s={title:"x265",sidebar_position:2},o="x265",a={id:"encoders/x265",title:"x265",description:"x265 is a software library and command line application for encoding H.265 / HEVC developed by MulticoreWare, written in C++ and x86 assembly, and released in 2013.",source:"@site/docs/encoders/x265.mdx",sourceDirName:"encoders",slug:"/encoders/x265",permalink:"/docs/encoders/x265",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/x265.mdx",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"x265",sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"x264",permalink:"/docs/encoders/x264"},next:{title:"x266",permalink:"/docs/encoders/x266"}},l={},d=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Installation",id:"installation",level:2},{value:"Parameters",id:"parameters",level:2},{value:"Preset",id:"preset",level:3},{value:"CRF",id:"crf",level:3},{value:"bframes",id:"bframes",level:3},{value:"SAO",id:"sao",level:3},{value:"Deblock",id:"deblock",level:3},{value:"Psy-RD",id:"psy-rd",level:3},{value:"Adaptive Quantization",id:"adaptive-quantization",level:3},{value:"CU-Tree",id:"cu-tree",level:3}];function c(e){const i={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"x265",children:"x265"})}),"\n",(0,t.jsxs)(i.p,{children:["x265 is a software library and command line application for encoding ",(0,t.jsx)(i.a,{href:"/docs/video/HEVC",children:"H.265 / HEVC"})," developed by MulticoreWare, written in C++ and x86 assembly, and released in 2013."]}),"\n",(0,t.jsx)(i.p,{children:"By default, x265 is tuned for low-bitrate content due to the blurring filters it applies. However, it can be tuned using CLI options to be very effective for high-fidelity content as well.\nIt is a more efficient and modern encoder compared to x264, and is currently a popular choice for both high-fidelity and mini encodes."}),"\n",(0,t.jsx)(i.p,{children:"x265 is currently not recommended for lossless encoding. For that niche, x264 is considerably faster without meaningful efficiency loss."}),"\n",(0,t.jsx)(i.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,t.jsxs)(i.p,{children:["x265 is available in FFmpeg via ",(0,t.jsx)(i.code,{children:"libx265"}),", to check if you have it, run ",(0,t.jsx)(i.code,{children:"ffmpeg -h encoder=libx265"}),"."]}),"\n",(0,t.jsx)(i.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(i.p,{children:(0,t.jsx)(i.strong,{children:"Pre-built binary (Recommended):"})}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:(0,t.jsx)(i.a,{href:"http://msystem.waw.pl/x265/",children:"http://msystem.waw.pl/x265/"})}),"\n"]}),"\n",(0,t.jsx)(i.h2,{id:"parameters",children:"Parameters"}),"\n",(0,t.jsxs)(i.p,{children:["This section will overview the most important parameters for controlling output and quality in x265. The parameters will be listed in the format used by the standalone x265 binary,\nbut all of the parameters should also be usable in ffmpeg in the format e.g. ",(0,t.jsx)(i.code,{children:"-x265-params pass=1"}),"."]}),"\n",(0,t.jsx)(i.h3,{id:"preset",children:"Preset"}),"\n",(0,t.jsx)(i.p,{children:(0,t.jsx)(i.code,{children:"--preset slow"})}),"\n",(0,t.jsxs)(i.p,{children:["If encoding speed is a priority, x265 is probably not the best choice. x264 at ",(0,t.jsx)(i.code,{children:"--preset veryslow"})," will likely be faster than x265 at ",(0,t.jsx)(i.code,{children:"--preset fast"}),", while providing comparable efficiency.\nHowever, x265 finds its sweet spot at ",(0,t.jsx)(i.code,{children:"--preset slow"}),", and this is the preset most people should use. This preset provides high quality while not being unreasonably slow."]}),"\n",(0,t.jsxs)(i.p,{children:["The exception where you may want to tax your CPU by going to ",(0,t.jsx)(i.code,{children:"--preset veryslow"})," is when doing lower bitrate encodes (e.g. crf >=22). This is because the ",(0,t.jsx)(i.code,{children:"veryslow"})," preset provides\nbetter motion estimation at low bitrates. However, it is exceptionally slow, so it is not generally recommended for everyday use."]}),"\n",(0,t.jsx)(i.h3,{id:"crf",children:"CRF"}),"\n",(0,t.jsx)(i.p,{children:(0,t.jsx)(i.code,{children:"--crf"})}),"\n",(0,t.jsx)(i.p,{children:"CRF, standing for Constant Rate Factor, is a method for selecting a level of quality-to-filesize tradeoff. CRF is preferable to bitrate targeting because CRF only requires one encoding pass,\nso bitrate targeting should only be used if you need to target a specific filesize. Nowadays, those situations are uncommon and it is preferred to use CRF to target a quality level.\nCRF is preferable to QP because CRF allows the encoder to vary the quality level from frame to frame for better viewing quality in areas of the video that need it the most."}),"\n",(0,t.jsx)(i.p,{children:'What CRF to use will vary depending on your goals. The range of valid CRF values is 0-51, with larger values providing smaller filesize but lower quality. Some amount of experimentation\nmay be needed to find the value you prefer. A decent "balanced" target will be around 17 or 18, providing good quality without inflating filesize too much. For a focus on maximum quality,\na value of 12 or 13 will result in visually lossless output for most videos, but will result in a much larger filesize. For miniature encodes, try raising the CRF as much as you feel comfortable\nbefore the quality becomes unbearable. CRFs of 22 or higher are generally considered "low bitrate", so how high you raise the CRF depends on how low of a filesize you are trying to achieve.'}),"\n",(0,t.jsx)(i.h3,{id:"bframes",children:"bframes"}),"\n",(0,t.jsx)(i.p,{children:(0,t.jsx)(i.code,{children:"--bframes"})}),"\n",(0,t.jsxs)(i.p,{children:["B-frames are bi-directional predictive frames, this means that they can reference frames both before and after themselves, which makes them very efficient.\nThe ",(0,t.jsx)(i.code,{children:"--bframes"})," parameter controls how many B-frames can be used consecutively. Higher values can result in better compression, but this value has diminishing returns,\nas the encoder won't use extra B-frames in situations where it would reduce efficiency."]}),"\n",(0,t.jsxs)(i.p,{children:["The default value at preset slow is ",(0,t.jsx)(i.code,{children:"4"}),". It is recommended to increase this to ",(0,t.jsx)(i.code,{children:"--bframes 5"})," for live action and CGI content, or ",(0,t.jsx)(i.code,{children:"--bframes 8"})," for anime and cartoons.\nContent with little motion benefits more from high B-frames values, but even on anime where there are many still scenes, there is no measurable benefit\nto using a value higher than ",(0,t.jsx)(i.code,{children:"8"}),", and it would just slow down the encoder for no benefit."]}),"\n",(0,t.jsx)(i.h3,{id:"sao",children:"SAO"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.code,{children:"--sao"}),", ",(0,t.jsx)(i.code,{children:"--limit-sao"}),", ",(0,t.jsx)(i.code,{children:"--no-sao"})]}),"\n",(0,t.jsxs)(i.p,{children:["SAO stands for Sample Adaptive Offset, and is a loop filter used by x265 to prevent artifacting. However, it has the side effect of losing sharpness on details.\nIt is recommended to leave this on (default) at high CRF values (>=22). For medium values between 17-21, you can use ",(0,t.jsx)(i.code,{children:"--limit-sao"})," which will limit the effects of SAO to have\nless of a significant effect. For low CRF values (<=16), you can safely use ",(0,t.jsx)(i.code,{children:"--no-sao"})," to prefer detail preservation, as the higher bitrates will naturally lead to fewer artifacts."]}),"\n",(0,t.jsx)(i.h3,{id:"deblock",children:"Deblock"}),"\n",(0,t.jsx)(i.p,{children:(0,t.jsx)(i.code,{children:"--deblock"})}),"\n",(0,t.jsxs)(i.p,{children:["Deblock is another loop filter, this one intended to reduce blocking in videos, but may have a blurring effect at high strengths. For most encodes, it is fine to leave this\nat the default value. At lower CRF values, it may be desirable to lower this to ",(0,t.jsx)(i.code,{children:"--deblock -1:-1"})," for anime or ",(0,t.jsx)(i.code,{children:"--deblock -2:-2"})," for live action, in order to preserve\nmore grain and detail."]}),"\n",(0,t.jsx)(i.h3,{id:"psy-rd",children:"Psy-RD"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.code,{children:"--psy-rd"})," and ",(0,t.jsx)(i.code,{children:"--psy-rdoq"})]}),"\n",(0,t.jsx)(i.p,{children:"The parameters control psychovisual rate distribution. What this means is the redistribution of bits to make a video more pleasing to human eyes. These options may be harmful to metrics\nthat compare videos mathematically, but are better for viewing human eyes because they prioritize facets of the video that humans prefer."}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.code,{children:"--psy-rd"})," biases toward matching the level of energy in the source image, which makes it good for retaining detail. For standard anime, it is recommended to use ",(0,t.jsx)(i.code,{children:"--psy-rd 1.0"}),". The more\ngrain, detail, and dark scenes in a source, the higher this should be raised. Many modern anime tends to have more detailed backgrounds and surfaces, so ",(0,t.jsx)(i.code,{children:"--psy-rd 1.5"})," may be a better\ndefault for modern anime. For live action, a ",(0,t.jsx)(i.code,{children:"--psy-rd 1.5"})," or possibly even ",(0,t.jsx)(i.code,{children:"2.0"})," may be preferred, as live action naturally has more detail and grain than anime."]}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.code,{children:"--psy-rdoq"})," biases toward energy in general, which makes it key for preserving grain. ",(0,t.jsx)(i.code,{children:"--psy-rdoq 1.0"})," is a safe default for anime. Like psy-rd, this value should be increased more\nfor sources with more grain. For grainy anime, ",(0,t.jsx)(i.code,{children:"--psy-rdoq 2.0"})," or even ",(0,t.jsx)(i.code,{children:"3.0"})," can be preferable. Likewise, for many live action series, a default of ",(0,t.jsx)(i.code,{children:"--psy-rdoq 3.0"})," can be preferable,\nor even ",(0,t.jsx)(i.code,{children:"4.0"})," with heavy grain."]}),"\n",(0,t.jsx)(i.p,{children:"These are two settings that should be tweaked according to the source material."}),"\n",(0,t.jsx)(i.h3,{id:"adaptive-quantization",children:"Adaptive Quantization"}),"\n",(0,t.jsx)(i.p,{children:(0,t.jsx)(i.code,{children:"--aq-mode 3 --aq-strength "})}),"\n",(0,t.jsxs)(i.p,{children:["Adaptive quantization, shortened to AQ, is a mechanism to redistribute bitrate within a frame to improve visual quality by reducing artifacts.\nx265 has several different AQ modes, and ",(0,t.jsx)(i.code,{children:"--aq-mode 3"})," is nearly always best, because this mode adds a bias favoring dark scenes, which greatly reduces the effects of banding and blocking.\nThe strength of AQ can also be set with ",(0,t.jsx)(i.code,{children:"--aq-strength"}),". The optimal setting for this may vary depending on the type of content you are encoding.\nFor anime, ",(0,t.jsx)(i.code,{children:"--aq-strength 0.7"})," will typically produce good results. For live action, a slightly higher ",(0,t.jsx)(i.code,{children:"0.8"})," may be a better default.\nHigher values, up to ",(0,t.jsx)(i.code,{children:"--aq-strength 1"}),", can be helpful for sources with heavy grain, although this will also increase overall bitrate."]}),"\n",(0,t.jsx)(i.h3,{id:"cu-tree",children:"CU-Tree"}),"\n",(0,t.jsx)(i.p,{children:(0,t.jsx)(i.code,{children:"--no-cutree"})}),"\n",(0,t.jsxs)(i.p,{children:["CU-Tree is a mechanism very similar to MB-Tree in x264, which is intended to redistribute bitrate in a more optimal psychovisual manner. However, many people find CU-Tree to be harmful to quality,\nespecially when attempting to encode videos with considerable amounts of grain, and therefore many people recommend disabling this with ",(0,t.jsx)(i.code,{children:"--no-cutree"}),"."]})]})}function h(e={}){const{wrapper:i}={...(0,r.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>o,x:()=>a});var t=n(6540);const r={},s=t.createContext(r);function o(e){const i=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/afe5e22f.cb896c65.js b/assets/js/afe5e22f.cb896c65.js new file mode 100644 index 000000000..2f81105c1 --- /dev/null +++ b/assets/js/afe5e22f.cb896c65.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8117],{1220:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>l,contentTitle:()=>a,default:()=>h,frontMatter:()=>o,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"encoders/x265","title":"x265","description":"x265 is a software library and command line application for encoding H.265 / HEVC developed by MulticoreWare, written in C++ and x86 assembly, and released in 2013.","source":"@site/docs/encoders/x265.mdx","sourceDirName":"encoders","slug":"/encoders/x265","permalink":"/docs/encoders/x265","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/x265.mdx","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"x265","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"x264","permalink":"/docs/encoders/x264"},"next":{"title":"x266","permalink":"/docs/encoders/x266"}}');var r=n(4848),s=n(8453);const o={title:"x265",sidebar_position:2},a="x265",l={},d=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Installation",id:"installation",level:2},{value:"Parameters",id:"parameters",level:2},{value:"Preset",id:"preset",level:3},{value:"CRF",id:"crf",level:3},{value:"bframes",id:"bframes",level:3},{value:"SAO",id:"sao",level:3},{value:"Deblock",id:"deblock",level:3},{value:"Psy-RD",id:"psy-rd",level:3},{value:"Adaptive Quantization",id:"adaptive-quantization",level:3},{value:"CU-Tree",id:"cu-tree",level:3}];function c(e){const i={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.header,{children:(0,r.jsx)(i.h1,{id:"x265",children:"x265"})}),"\n",(0,r.jsxs)(i.p,{children:["x265 is a software library and command line application for encoding ",(0,r.jsx)(i.a,{href:"/docs/video/HEVC",children:"H.265 / HEVC"})," developed by MulticoreWare, written in C++ and x86 assembly, and released in 2013."]}),"\n",(0,r.jsx)(i.p,{children:"By default, x265 is tuned for low-bitrate content due to the blurring filters it applies. However, it can be tuned using CLI options to be very effective for high-fidelity content as well.\nIt is a more efficient and modern encoder compared to x264, and is currently a popular choice for both high-fidelity and mini encodes."}),"\n",(0,r.jsx)(i.p,{children:"x265 is currently not recommended for lossless encoding. For that niche, x264 is considerably faster without meaningful efficiency loss."}),"\n",(0,r.jsx)(i.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,r.jsxs)(i.p,{children:["x265 is available in FFmpeg via ",(0,r.jsx)(i.code,{children:"libx265"}),", to check if you have it, run ",(0,r.jsx)(i.code,{children:"ffmpeg -h encoder=libx265"}),"."]}),"\n",(0,r.jsx)(i.h2,{id:"installation",children:"Installation"}),"\n",(0,r.jsx)(i.p,{children:(0,r.jsx)(i.strong,{children:"Pre-built binary (Recommended):"})}),"\n",(0,r.jsxs)(i.ul,{children:["\n",(0,r.jsx)(i.li,{children:(0,r.jsx)(i.a,{href:"http://msystem.waw.pl/x265/",children:"http://msystem.waw.pl/x265/"})}),"\n"]}),"\n",(0,r.jsx)(i.h2,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(i.p,{children:["This section will overview the most important parameters for controlling output and quality in x265. The parameters will be listed in the format used by the standalone x265 binary,\nbut all of the parameters should also be usable in ffmpeg in the format e.g. ",(0,r.jsx)(i.code,{children:"-x265-params pass=1"}),"."]}),"\n",(0,r.jsx)(i.h3,{id:"preset",children:"Preset"}),"\n",(0,r.jsx)(i.p,{children:(0,r.jsx)(i.code,{children:"--preset slow"})}),"\n",(0,r.jsxs)(i.p,{children:["If encoding speed is a priority, x265 is probably not the best choice. x264 at ",(0,r.jsx)(i.code,{children:"--preset veryslow"})," will likely be faster than x265 at ",(0,r.jsx)(i.code,{children:"--preset fast"}),", while providing comparable efficiency.\nHowever, x265 finds its sweet spot at ",(0,r.jsx)(i.code,{children:"--preset slow"}),", and this is the preset most people should use. This preset provides high quality while not being unreasonably slow."]}),"\n",(0,r.jsxs)(i.p,{children:["The exception where you may want to tax your CPU by going to ",(0,r.jsx)(i.code,{children:"--preset veryslow"})," is when doing lower bitrate encodes (e.g. crf >=22). This is because the ",(0,r.jsx)(i.code,{children:"veryslow"})," preset provides\nbetter motion estimation at low bitrates. However, it is exceptionally slow, so it is not generally recommended for everyday use."]}),"\n",(0,r.jsx)(i.h3,{id:"crf",children:"CRF"}),"\n",(0,r.jsx)(i.p,{children:(0,r.jsx)(i.code,{children:"--crf"})}),"\n",(0,r.jsx)(i.p,{children:"CRF, standing for Constant Rate Factor, is a method for selecting a level of quality-to-filesize tradeoff. CRF is preferable to bitrate targeting because CRF only requires one encoding pass,\nso bitrate targeting should only be used if you need to target a specific filesize. Nowadays, those situations are uncommon and it is preferred to use CRF to target a quality level.\nCRF is preferable to QP because CRF allows the encoder to vary the quality level from frame to frame for better viewing quality in areas of the video that need it the most."}),"\n",(0,r.jsx)(i.p,{children:'What CRF to use will vary depending on your goals. The range of valid CRF values is 0-51, with larger values providing smaller filesize but lower quality. Some amount of experimentation\nmay be needed to find the value you prefer. A decent "balanced" target will be around 17 or 18, providing good quality without inflating filesize too much. For a focus on maximum quality,\na value of 12 or 13 will result in visually lossless output for most videos, but will result in a much larger filesize. For miniature encodes, try raising the CRF as much as you feel comfortable\nbefore the quality becomes unbearable. CRFs of 22 or higher are generally considered "low bitrate", so how high you raise the CRF depends on how low of a filesize you are trying to achieve.'}),"\n",(0,r.jsx)(i.h3,{id:"bframes",children:"bframes"}),"\n",(0,r.jsx)(i.p,{children:(0,r.jsx)(i.code,{children:"--bframes"})}),"\n",(0,r.jsxs)(i.p,{children:["B-frames are bi-directional predictive frames, this means that they can reference frames both before and after themselves, which makes them very efficient.\nThe ",(0,r.jsx)(i.code,{children:"--bframes"})," parameter controls how many B-frames can be used consecutively. Higher values can result in better compression, but this value has diminishing returns,\nas the encoder won't use extra B-frames in situations where it would reduce efficiency."]}),"\n",(0,r.jsxs)(i.p,{children:["The default value at preset slow is ",(0,r.jsx)(i.code,{children:"4"}),". It is recommended to increase this to ",(0,r.jsx)(i.code,{children:"--bframes 5"})," for live action and CGI content, or ",(0,r.jsx)(i.code,{children:"--bframes 8"})," for anime and cartoons.\nContent with little motion benefits more from high B-frames values, but even on anime where there are many still scenes, there is no measurable benefit\nto using a value higher than ",(0,r.jsx)(i.code,{children:"8"}),", and it would just slow down the encoder for no benefit."]}),"\n",(0,r.jsx)(i.h3,{id:"sao",children:"SAO"}),"\n",(0,r.jsxs)(i.p,{children:[(0,r.jsx)(i.code,{children:"--sao"}),", ",(0,r.jsx)(i.code,{children:"--limit-sao"}),", ",(0,r.jsx)(i.code,{children:"--no-sao"})]}),"\n",(0,r.jsxs)(i.p,{children:["SAO stands for Sample Adaptive Offset, and is a loop filter used by x265 to prevent artifacting. However, it has the side effect of losing sharpness on details.\nIt is recommended to leave this on (default) at high CRF values (>=22). For medium values between 17-21, you can use ",(0,r.jsx)(i.code,{children:"--limit-sao"})," which will limit the effects of SAO to have\nless of a significant effect. For low CRF values (<=16), you can safely use ",(0,r.jsx)(i.code,{children:"--no-sao"})," to prefer detail preservation, as the higher bitrates will naturally lead to fewer artifacts."]}),"\n",(0,r.jsx)(i.h3,{id:"deblock",children:"Deblock"}),"\n",(0,r.jsx)(i.p,{children:(0,r.jsx)(i.code,{children:"--deblock"})}),"\n",(0,r.jsxs)(i.p,{children:["Deblock is another loop filter, this one intended to reduce blocking in videos, but may have a blurring effect at high strengths. For most encodes, it is fine to leave this\nat the default value. At lower CRF values, it may be desirable to lower this to ",(0,r.jsx)(i.code,{children:"--deblock -1:-1"})," for anime or ",(0,r.jsx)(i.code,{children:"--deblock -2:-2"})," for live action, in order to preserve\nmore grain and detail."]}),"\n",(0,r.jsx)(i.h3,{id:"psy-rd",children:"Psy-RD"}),"\n",(0,r.jsxs)(i.p,{children:[(0,r.jsx)(i.code,{children:"--psy-rd"})," and ",(0,r.jsx)(i.code,{children:"--psy-rdoq"})]}),"\n",(0,r.jsx)(i.p,{children:"The parameters control psychovisual rate distribution. What this means is the redistribution of bits to make a video more pleasing to human eyes. These options may be harmful to metrics\nthat compare videos mathematically, but are better for viewing human eyes because they prioritize facets of the video that humans prefer."}),"\n",(0,r.jsxs)(i.p,{children:[(0,r.jsx)(i.code,{children:"--psy-rd"})," biases toward matching the level of energy in the source image, which makes it good for retaining detail. For standard anime, it is recommended to use ",(0,r.jsx)(i.code,{children:"--psy-rd 1.0"}),". The more\ngrain, detail, and dark scenes in a source, the higher this should be raised. Many modern anime tends to have more detailed backgrounds and surfaces, so ",(0,r.jsx)(i.code,{children:"--psy-rd 1.5"})," may be a better\ndefault for modern anime. For live action, a ",(0,r.jsx)(i.code,{children:"--psy-rd 1.5"})," or possibly even ",(0,r.jsx)(i.code,{children:"2.0"})," may be preferred, as live action naturally has more detail and grain than anime."]}),"\n",(0,r.jsxs)(i.p,{children:[(0,r.jsx)(i.code,{children:"--psy-rdoq"})," biases toward energy in general, which makes it key for preserving grain. ",(0,r.jsx)(i.code,{children:"--psy-rdoq 1.0"})," is a safe default for anime. Like psy-rd, this value should be increased more\nfor sources with more grain. For grainy anime, ",(0,r.jsx)(i.code,{children:"--psy-rdoq 2.0"})," or even ",(0,r.jsx)(i.code,{children:"3.0"})," can be preferable. Likewise, for many live action series, a default of ",(0,r.jsx)(i.code,{children:"--psy-rdoq 3.0"})," can be preferable,\nor even ",(0,r.jsx)(i.code,{children:"4.0"})," with heavy grain."]}),"\n",(0,r.jsx)(i.p,{children:"These are two settings that should be tweaked according to the source material."}),"\n",(0,r.jsx)(i.h3,{id:"adaptive-quantization",children:"Adaptive Quantization"}),"\n",(0,r.jsx)(i.p,{children:(0,r.jsx)(i.code,{children:"--aq-mode 3 --aq-strength "})}),"\n",(0,r.jsxs)(i.p,{children:["Adaptive quantization, shortened to AQ, is a mechanism to redistribute bitrate within a frame to improve visual quality by reducing artifacts.\nx265 has several different AQ modes, and ",(0,r.jsx)(i.code,{children:"--aq-mode 3"})," is nearly always best, because this mode adds a bias favoring dark scenes, which greatly reduces the effects of banding and blocking.\nThe strength of AQ can also be set with ",(0,r.jsx)(i.code,{children:"--aq-strength"}),". The optimal setting for this may vary depending on the type of content you are encoding.\nFor anime, ",(0,r.jsx)(i.code,{children:"--aq-strength 0.7"})," will typically produce good results. For live action, a slightly higher ",(0,r.jsx)(i.code,{children:"0.8"})," may be a better default.\nHigher values, up to ",(0,r.jsx)(i.code,{children:"--aq-strength 1"}),", can be helpful for sources with heavy grain, although this will also increase overall bitrate."]}),"\n",(0,r.jsx)(i.h3,{id:"cu-tree",children:"CU-Tree"}),"\n",(0,r.jsx)(i.p,{children:(0,r.jsx)(i.code,{children:"--no-cutree"})}),"\n",(0,r.jsxs)(i.p,{children:["CU-Tree is a mechanism very similar to MB-Tree in x264, which is intended to redistribute bitrate in a more optimal psychovisual manner. However, many people find CU-Tree to be harmful to quality,\nespecially when attempting to encode videos with considerable amounts of grain, and therefore many people recommend disabling this with ",(0,r.jsx)(i.code,{children:"--no-cutree"}),"."]})]})}function h(e={}){const{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,r.jsx)(i,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>o,x:()=>a});var t=n(6540);const r={},s=t.createContext(r);function o(e){const i=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b0535000.242a35de.js b/assets/js/b0535000.242a35de.js new file mode 100644 index 000000000..52c46bdf5 --- /dev/null +++ b/assets/js/b0535000.242a35de.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7238],{851:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>l,contentTitle:()=>r,default:()=>g,frontMatter:()=>s,metadata:()=>o,toc:()=>c});var o=i(3107),n=i(4848),a=i(8453);const s={title:"Reducing Image Load Online",description:"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.",slug:"site-optimization",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4"}],tags:["image","web","compression"],image:"/img/_DSC8466-smaller.jpg",hide_table_of_contents:!1},r=void 0,l={authorsImageUrls:[void 0]},c=[];function u(e){const t={p:"p",...(0,a.R)(),...e.components};return(0,n.jsx)(t.p,{children:"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery. Compared to other multimedia, images are incredibly popular on the Web & knowing how to serve them properly can be a massive boon to your website's traffic as well as less of a headache for users on slower connections or who are under bandwidth constraints. The most disappointing part is that images are often poorly done on the web; all too frequently will you run into a site serving massive photographic PNGs for no reason, or photography sites serving photographs fresh out of the editing software with no thought put into their final delivery. A little effort, patience, & knowledge will go a long way toward improving the user experience for individuals using your site, & this article will illustrate some of the basics."})}function g(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>r});var o=i(6540);const n={},a=o.createContext(n);function s(e){const t=o.useContext(a);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:s(e.components),o.createElement(a.Provider,{value:t},e.children)}},3107:e=>{e.exports=JSON.parse('{"permalink":"/blog/site-optimization","source":"@site/blog/2023-07-21-site-optimization.mdx","title":"Reducing Image Load Online","description":"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.","date":"2023-07-21T00:00:00.000Z","tags":[{"inline":true,"label":"image","permalink":"/blog/tags/image"},{"inline":true,"label":"web","permalink":"/blog/tags/web"},{"inline":true,"label":"compression","permalink":"/blog/tags/compression"}],"readingTime":9.25,"hasTruncateMarker":true,"authors":[{"name":"Gianni Rosato","title":"Maintainer","url":"https://github.com/gianni-rosato","image_url":"https://avatars.githubusercontent.com/u/35711760?v=4","imageURL":"https://avatars.githubusercontent.com/u/35711760?v=4","socials":{},"key":null,"page":null}],"frontMatter":{"title":"Reducing Image Load Online","description":"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.","slug":"site-optimization","authors":[{"name":"Gianni Rosato","title":"Maintainer","url":"https://github.com/gianni-rosato","image_url":"https://avatars.githubusercontent.com/u/35711760?v=4","imageURL":"https://avatars.githubusercontent.com/u/35711760?v=4"}],"tags":["image","web","compression"],"image":"/img/_DSC8466-smaller.jpg","hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"AV1 Encoding for Dummies","permalink":"/blog/av1-encoding-for-dummies"}}')}}]); \ No newline at end of file diff --git a/assets/js/b0535000.5c531d67.js b/assets/js/b0535000.5c531d67.js deleted file mode 100644 index 57edaa29c..000000000 --- a/assets/js/b0535000.5c531d67.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7238],{851:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>u,frontMatter:()=>a,metadata:()=>r,toc:()=>c});var o=i(4848),n=i(8453);const a={title:"Reducing Image Load Online",description:"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.",slug:"site-optimization",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4"}],tags:["image","web","compression"],image:"/img/_DSC8466-smaller.jpg",hide_table_of_contents:!1},s=void 0,r={permalink:"/blog/site-optimization",source:"@site/blog/2023-07-21-site-optimization.mdx",title:"Reducing Image Load Online",description:"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.",date:"2023-07-21T00:00:00.000Z",tags:[{inline:!0,label:"image",permalink:"/blog/tags/image"},{inline:!0,label:"web",permalink:"/blog/tags/web"},{inline:!0,label:"compression",permalink:"/blog/tags/compression"}],readingTime:9.25,hasTruncateMarker:!0,authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4",imageURL:"https://avatars.githubusercontent.com/u/35711760?v=4",key:null,page:null}],frontMatter:{title:"Reducing Image Load Online",description:"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.",slug:"site-optimization",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4",imageURL:"https://avatars.githubusercontent.com/u/35711760?v=4"}],tags:["image","web","compression"],image:"/img/_DSC8466-smaller.jpg",hide_table_of_contents:!1},unlisted:!1,prevItem:{title:"AV1 Encoding for Dummies",permalink:"/blog/av1-encoding-for-dummies"}},l={authorsImageUrls:[void 0]},c=[];function g(e){const t={p:"p",...(0,n.R)(),...e.components};return(0,o.jsx)(t.p,{children:"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery. Compared to other multimedia, images are incredibly popular on the Web & knowing how to serve them properly can be a massive boon to your website's traffic as well as less of a headache for users on slower connections or who are under bandwidth constraints. The most disappointing part is that images are often poorly done on the web; all too frequently will you run into a site serving massive photographic PNGs for no reason, or photography sites serving photographs fresh out of the editing software with no thought put into their final delivery. A little effort, patience, & knowledge will go a long way toward improving the user experience for individuals using your site, & this article will illustrate some of the basics."})}function u(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(g,{...e})}):g(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>r});var o=i(6540);const n={},a=o.createContext(n);function s(e){const t=o.useContext(a);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:s(e.components),o.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b0839e7f.4fcf9a59.js b/assets/js/b0839e7f.4fcf9a59.js new file mode 100644 index 000000000..32e76aea5 --- /dev/null +++ b/assets/js/b0839e7f.4fcf9a59.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9631],{1165:(e,t,i)=>{i.d(t,{Ck:()=>u,kS:()=>p});var s=i(4848),o=i(8453),n=i(6540),a=i(4016),r=i(3517),c=i(3343),l=i(3864),d=i(8633),h=i(363);const u=({imageData:e,pixelsAbove:t,pixelsBelow:i})=>{const n={div:"div",...(0,o.R)()},l=({currentSlide:e,direction:t,slideCount:i,...o})=>"left"===t?(0,s.jsx)(d.A,{...o,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,left:10}}):(0,s.jsx)(h.A,{...o,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,right:10}});return(!t||t<0)&&(t=0),(!i||i<0)&&(i=0),(0,s.jsxs)(a.A,{justify:"space-between",vertical:!0,children:[(0,s.jsx)(n.div,{style:{height:`${t}px`}}),(0,s.jsx)(r.A,{arrows:!0,prevArrow:(0,s.jsx)(l,{direction:"left"}),nextArrow:(0,s.jsx)(l,{direction:"right"}),children:e.map((e=>(0,s.jsx)(c.A,{src:e.src},e.src)))}),(0,s.jsx)(n.div,{style:{height:`${i}px`}})]})},p=({tabMap:e,pixelsAbove:t,pixelsBelow:i})=>{const r={div:"div",...(0,o.R)()},[c,d]=(0,n.useState)(Object.keys(e)[0]);return(!t||t<0)&&(t=0),(!i||i<0)&&(i=0),(0,s.jsxs)(a.A,{justify:"space-between",vertical:!0,children:[(0,s.jsx)(r.div,{style:{height:`${t}px`}}),(0,s.jsx)(l.A,{tabList:Object.entries(e).map((([e,t])=>({key:e,label:t.label}))),activeTabKey:c,onTabChange:e=>{d(e)},children:e[c].component}),(0,s.jsx)(r.div,{style:{height:`${i}px`}})]})}},5568:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>a,metadata:()=>s,toc:()=>l});var s=i(3788),o=i(4848),n=i(8453);i(1165);const a={title:"Better late than never: SVT-AV1 v2.2.x Deep Dive",description:"How does SVT-AV1 2.2.x stack up against the encoder previous version?",slug:"svt-av1-third-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-2.2.x-testing-blog-image.webp",hide_table_of_contents:!1},r="Introduction",c={authorsImageUrls:[void 0]},l=[];function d(e){const t={p:"p",...(0,n.R)(),...e.components};return(0,o.jsx)(t.p,{children:"SVT-AV1 v2.2.0 was released in late August and a minor version v2.2.1 followed suit to adress some bugs. This blog post will focus on comparing this new encoder version to the last, on the basis of benchmarks and visual comparisons. We will quantify the new trade-offs between compression efficiency and encoding speed, so you can choose the right balance for your projects. Our metrics of choice today will be SSIMULACRA2 and XPSNR, used in conjonction with a revised methodology."})}function h(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},3788:e=>{e.exports=JSON.parse('{"permalink":"/blog/svt-av1-third-deep-dive","source":"@site/blog/2024-11-14-svt-av1-deep-dive3-v2-2-x.mdx","title":"Better late than never: SVT-AV1 v2.2.x Deep Dive","description":"How does SVT-AV1 2.2.x stack up against the encoder previous version?","date":"2024-11-14T00:00:00.000Z","tags":[{"inline":true,"label":"video","permalink":"/blog/tags/video"},{"inline":true,"label":"compression","permalink":"/blog/tags/compression"},{"inline":true,"label":"benchmarks","permalink":"/blog/tags/benchmarks"}],"readingTime":77.835,"hasTruncateMarker":true,"authors":[{"name":"Trix","title":"Encoder","url":"https://github.com/trixoniisama/","image_url":"https://avatars.githubusercontent.com/u/93526043","imageURL":"https://avatars.githubusercontent.com/u/93526043","socials":{},"key":null,"page":null}],"frontMatter":{"title":"Better late than never: SVT-AV1 v2.2.x Deep Dive","description":"How does SVT-AV1 2.2.x stack up against the encoder previous version?","slug":"svt-av1-third-deep-dive","authors":[{"name":"Trix","title":"Encoder","url":"https://github.com/trixoniisama/","image_url":"https://avatars.githubusercontent.com/u/93526043","imageURL":"https://avatars.githubusercontent.com/u/93526043"}],"tags":["video","compression","benchmarks"],"image":"/img/svt-2.2.x-testing-blog-image.webp","hide_table_of_contents":false},"unlisted":false,"nextItem":{"title":"Codec Wiki: One Year Later","permalink":"/blog/codec-wiki-one-year-later"}}')}}]); \ No newline at end of file diff --git a/assets/js/b261517a.eec96f03.js b/assets/js/b261517a.eec96f03.js deleted file mode 100644 index bf16a57ca..000000000 --- a/assets/js/b261517a.eec96f03.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1454],{1165:(e,t,i)=>{i.d(t,{Ck:()=>m,kS:()=>v});var s=i(4848),o=i(8453),n=i(6540),a=i(4016),r=i(3517),l=i(3343),c=i(3864),d=i(8633),p=i(363);const m=({imageData:e,pixelsAbove:t,pixelsBelow:i})=>{const n={div:"div",...(0,o.R)()},c=({currentSlide:e,direction:t,slideCount:i,...o})=>"left"===t?(0,s.jsx)(d.A,{...o,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,left:10}}):(0,s.jsx)(p.A,{...o,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,right:10}});return(!t||t<0)&&(t=0),(!i||i<0)&&(i=0),(0,s.jsxs)(a.A,{justify:"space-between",vertical:!0,children:[(0,s.jsx)(n.div,{style:{height:`${t}px`}}),(0,s.jsx)(r.A,{arrows:!0,prevArrow:(0,s.jsx)(c,{direction:"left"}),nextArrow:(0,s.jsx)(c,{direction:"right"}),children:e.map((e=>(0,s.jsx)(l.A,{src:e.src},e.src)))}),(0,s.jsx)(n.div,{style:{height:`${i}px`}})]})},v=({tabMap:e,pixelsAbove:t,pixelsBelow:i})=>{const r={div:"div",...(0,o.R)()},[l,d]=(0,n.useState)(Object.keys(e)[0]);return(!t||t<0)&&(t=0),(!i||i<0)&&(i=0),(0,s.jsxs)(a.A,{justify:"space-between",vertical:!0,children:[(0,s.jsx)(r.div,{style:{height:`${t}px`}}),(0,s.jsx)(c.A,{tabList:Object.entries(e).map((([e,t])=>({key:e,label:t.label}))),activeTabKey:l,onTabChange:e=>{d(e)},children:e[l].component}),(0,s.jsx)(r.div,{style:{height:`${i}px`}})]})}},3012:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>p,frontMatter:()=>n,metadata:()=>r,toc:()=>c});var s=i(4848),o=i(8453);i(1165);const n={title:"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive",description:"SVT-AV1 2.1.0 just released, how does it compare to the previous version?",slug:"svt-av1-second-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-2.1.0-testing-blog-image.webp",hide_table_of_contents:!1},a="Introduction",r={permalink:"/blog/svt-av1-second-deep-dive",source:"@site/blog/2024-05-19-svt-av1-deep-dive2-v2-1-0.mdx",title:"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive",description:"SVT-AV1 2.1.0 just released, how does it compare to the previous version?",date:"2024-05-19T00:00:00.000Z",tags:[{inline:!0,label:"video",permalink:"/blog/tags/video"},{inline:!0,label:"compression",permalink:"/blog/tags/compression"},{inline:!0,label:"benchmarks",permalink:"/blog/tags/benchmarks"}],readingTime:35.215,hasTruncateMarker:!0,authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043",imageURL:"https://avatars.githubusercontent.com/u/93526043",key:null,page:null}],frontMatter:{title:"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive",description:"SVT-AV1 2.1.0 just released, how does it compare to the previous version?",slug:"svt-av1-second-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043",imageURL:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-2.1.0-testing-blog-image.webp",hide_table_of_contents:!1},unlisted:!1,prevItem:{title:"AV1 for Dummies",permalink:"/blog/av1-for-dummies"},nextItem:{title:"Encoding Animation with SVT-AV1: A Deep Dive",permalink:"/blog/svt-av1-deep-dive"}},l={authorsImageUrls:[void 0]},c=[];function d(e){const t={p:"p",...(0,o.R)(),...e.components};return(0,s.jsx)(t.p,{children:"SVT-AV1, the most scalable AV1 encoder, has received a new update and one may wonder if the old presets recommendation still holds today. We will delve into that in this blog post, based on a series of speed and visual quality benchmarks with SSIMULACRA2 and XPSNR of SVT-AV1 2.1.0 on a corpus of varied animated clips."})}function p(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}}}]); \ No newline at end of file diff --git a/assets/js/b261517a.f7731431.js b/assets/js/b261517a.f7731431.js new file mode 100644 index 000000000..fb615ef02 --- /dev/null +++ b/assets/js/b261517a.f7731431.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1454],{1165:(e,t,i)=>{i.d(t,{Ck:()=>m,kS:()=>v});var s=i(4848),o=i(8453),a=i(6540),r=i(4016),n=i(3517),l=i(3343),c=i(3864),d=i(8633),p=i(363);const m=({imageData:e,pixelsAbove:t,pixelsBelow:i})=>{const a={div:"div",...(0,o.R)()},c=({currentSlide:e,direction:t,slideCount:i,...o})=>"left"===t?(0,s.jsx)(d.A,{...o,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,left:10}}):(0,s.jsx)(p.A,{...o,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,right:10}});return(!t||t<0)&&(t=0),(!i||i<0)&&(i=0),(0,s.jsxs)(r.A,{justify:"space-between",vertical:!0,children:[(0,s.jsx)(a.div,{style:{height:`${t}px`}}),(0,s.jsx)(n.A,{arrows:!0,prevArrow:(0,s.jsx)(c,{direction:"left"}),nextArrow:(0,s.jsx)(c,{direction:"right"}),children:e.map((e=>(0,s.jsx)(l.A,{src:e.src},e.src)))}),(0,s.jsx)(a.div,{style:{height:`${i}px`}})]})},v=({tabMap:e,pixelsAbove:t,pixelsBelow:i})=>{const n={div:"div",...(0,o.R)()},[l,d]=(0,a.useState)(Object.keys(e)[0]);return(!t||t<0)&&(t=0),(!i||i<0)&&(i=0),(0,s.jsxs)(r.A,{justify:"space-between",vertical:!0,children:[(0,s.jsx)(n.div,{style:{height:`${t}px`}}),(0,s.jsx)(c.A,{tabList:Object.entries(e).map((([e,t])=>({key:e,label:t.label}))),activeTabKey:l,onTabChange:e=>{d(e)},children:e[l].component}),(0,s.jsx)(n.div,{style:{height:`${i}px`}})]})}},3012:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>l,contentTitle:()=>n,default:()=>p,frontMatter:()=>r,metadata:()=>s,toc:()=>c});var s=i(3165),o=i(4848),a=i(8453);i(1165);const r={title:"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive",description:"SVT-AV1 2.1.0 just released, how does it compare to the previous version?",slug:"svt-av1-second-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-2.1.0-testing-blog-image.webp",hide_table_of_contents:!1},n="Introduction",l={authorsImageUrls:[void 0]},c=[];function d(e){const t={p:"p",...(0,a.R)(),...e.components};return(0,o.jsx)(t.p,{children:"SVT-AV1, the most scalable AV1 encoder, has received a new update and one may wonder if the old presets recommendation still holds today. We will delve into that in this blog post, based on a series of speed and visual quality benchmarks with SSIMULACRA2 and XPSNR of SVT-AV1 2.1.0 on a corpus of varied animated clips."})}function p(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},3165:e=>{e.exports=JSON.parse('{"permalink":"/blog/svt-av1-second-deep-dive","source":"@site/blog/2024-05-19-svt-av1-deep-dive2-v2-1-0.mdx","title":"Observing SVT-AV1 v2.1.0\'s improvements: A New Deep Dive","description":"SVT-AV1 2.1.0 just released, how does it compare to the previous version?","date":"2024-05-19T00:00:00.000Z","tags":[{"inline":true,"label":"video","permalink":"/blog/tags/video"},{"inline":true,"label":"compression","permalink":"/blog/tags/compression"},{"inline":true,"label":"benchmarks","permalink":"/blog/tags/benchmarks"}],"readingTime":35.215,"hasTruncateMarker":true,"authors":[{"name":"Trix","title":"Encoder","url":"https://github.com/trixoniisama/","image_url":"https://avatars.githubusercontent.com/u/93526043","imageURL":"https://avatars.githubusercontent.com/u/93526043","socials":{},"key":null,"page":null}],"frontMatter":{"title":"Observing SVT-AV1 v2.1.0\'s improvements: A New Deep Dive","description":"SVT-AV1 2.1.0 just released, how does it compare to the previous version?","slug":"svt-av1-second-deep-dive","authors":[{"name":"Trix","title":"Encoder","url":"https://github.com/trixoniisama/","image_url":"https://avatars.githubusercontent.com/u/93526043","imageURL":"https://avatars.githubusercontent.com/u/93526043"}],"tags":["video","compression","benchmarks"],"image":"/img/svt-2.1.0-testing-blog-image.webp","hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"AV1 for Dummies","permalink":"/blog/av1-for-dummies"},"nextItem":{"title":"Encoding Animation with SVT-AV1: A Deep Dive","permalink":"/blog/svt-av1-deep-dive"}}')}}]); \ No newline at end of file diff --git a/assets/js/b4030b4d.7c070528.js b/assets/js/b4030b4d.7c070528.js new file mode 100644 index 000000000..fc0617363 --- /dev/null +++ b/assets/js/b4030b4d.7c070528.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3408],{6528:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>p,frontMatter:()=>l,metadata:()=>i,toc:()=>d});const i=JSON.parse('{"id":"utilities/Aviator","title":"Aviator","description":"Aviator is a GUI application designed for encoding AV1 video & Opus audio with SVT-AV1, libopus, & ffmpeg on Linux systems in a user-friendly, intuitive manner. Aviator\'s primary focus is ease-of-use, while still striving to offer optimal quality per bit through a smart default encoding configuration implemented via the SVT-AV1-PSY encoder.","source":"@site/docs/utilities/Aviator.mdx","sourceDirName":"utilities","slug":"/utilities/Aviator","permalink":"/docs/utilities/Aviator","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/Aviator.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"Aviator","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"Matrix Coefficients","permalink":"/docs/colorimetry/matrix"},"next":{"title":"Av1an","permalink":"/docs/utilities/av1an"}}');var o=a(4848),n=a(8453),s=a(1470),r=a(9365);const l={title:"Aviator",sidebar_position:1},u="Aviator",c={},d=[{value:"Installation",id:"installation",level:2},{value:"Aviator's Defaults",id:"aviators-defaults",level:2},{value:"Perceptual Optimization",id:"perceptual-optimization",level:3},{value:"Video",id:"video",level:3},{value:"Audio",id:"audio",level:3},{value:"Output",id:"output",level:3},{value:"Credits",id:"credits",level:2}];function h(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"aviator",children:"Aviator"})}),"\n",(0,o.jsxs)(t.p,{children:["Aviator is a GUI application designed for encoding ",(0,o.jsx)(t.a,{href:"/docs/video/AV1",children:"AV1"})," video & Opus audio with ",(0,o.jsx)(t.a,{href:"/docs/encoders/SVT-AV1",children:"SVT-AV1"}),", ",(0,o.jsx)(t.a,{href:"/docs/audio/Opus",children:"libopus"}),", & ",(0,o.jsx)(t.a,{href:"/docs/utilities/ffmpeg",children:"ffmpeg"})," on Linux systems in a user-friendly, intuitive manner. Aviator's primary focus is ease-of-use, while still striving to offer optimal quality per bit through a smart default encoding configuration implemented via the SVT-AV1-PSY encoder."]}),"\n",(0,o.jsx)("img",{width:"640",height:"360",src:"https://raw.githubusercontent.com/gianni-rosato/aviator/main/assets/aviator_splash2.avif",alt:"Aviator Splash"}),"\n",(0,o.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,o.jsxs)(s.A,{children:[(0,o.jsxs)(r.A,{value:"unixlike",label:"Linux",children:[(0,o.jsxs)(t.p,{children:["Aviator is available on Linux through Flathub as a Flatpak. You can learn how to set up Flatpak on your distro of choice ",(0,o.jsx)(t.a,{href:"https://flatpak.org/setup/",children:"here"}),". Please do not use Aviator through the AUR."]}),(0,o.jsx)("a",{href:"https://flathub.org/apps/details/net.natesales.Aviator",children:(0,o.jsx)("img",{width:"200",alt:"Download on Flathub",src:"https://flathub.org/assets/badges/flathub-badge-en.png"})}),(0,o.jsx)(t.p,{children:"If Flatpak is already set up and you'd prefer to install Aviator from the terminal, you can run the following commmand:"}),(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-bash",children:"flatpak install flathub net.natesales.Aviator\n"})}),(0,o.jsx)(t.p,{children:"Flatpak was chosen for Aviator because it allows Aviator to ship its own sandboxed dependencies, ensuring every Linux user has a cohesive experience. One major benefit is the latest stable SVT-AV1-PSY implementation is always included, and Flatpak Aviator won't use your system's SVT-AV1 implementation which may be incompatible with Aviator's custom parameters."}),(0,o.jsxs)(t.p,{children:["If you would like to build Aviator from source, you may do so via the following commands. Ensure you have the right dependencies; if not, ",(0,o.jsx)(t.code,{children:"make"})," will warn you and you can install them as you see what you're missing."]}),(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-bash",children:"git clone https://github.com/gianni-rosato/aviator\ncd aviator\nmake\n"})})]}),(0,o.jsxs)(r.A,{value:"windows",label:"Windows",children:[(0,o.jsx)(t.admonition,{title:"Partial Support",type:"caution",children:(0,o.jsxs)(t.p,{children:['Windows support is provided on a "best-effort" basis via ',(0,o.jsx)(t.strong,{children:"WSL2"}),". Compatibility hiccups will almost certainly be encountered should you decide to run Aviator on Windows."]})}),(0,o.jsxs)(t.p,{children:['Aviator is supported on a "best-effort" basis on Windows via WSL2. In order to set up a WSL2 Arch Linux environment, see the ',(0,o.jsx)(t.a,{href:"/docs/utilities/rav1ator-cli#windows",children:"rAV1ator CLI"})," WSL2 tutorial for Windows 11."]}),(0,o.jsxs)(t.p,{children:["Once WSL2 is set up, install Flatpak in your Linux environment by follwing the steps below. ",(0,o.jsxs)(t.strong,{children:["Always be careful when running commands with ",(0,o.jsx)(t.code,{children:"sudo"})," copied from the Internet, including the commands below."]})]}),(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-bash",children:"sudo pacman -Syu # Update your system\nsudo pacman -S flatpak # Install flatpak\nsudo systemctl enable --now dbus # Start dbus\nflatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo # Add flathub repo if it hasn't already been added\n"})}),(0,o.jsxs)(t.p,{children:["Finally, you can verify that Flatpak has actually been installed by running ",(0,o.jsx)(t.code,{children:"flatpak --version"})," and checking that the version string is valid."]}),(0,o.jsx)(t.p,{children:"Now, Aviator requires a couple of special Flatpak dependencies most commonly found on GNOME Linux distros."}),(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-bash",children:"sudo flatpak install org.gnome.Sdk # Select option 15\nsudo flatpak install org.gnome.Platform # Select option 14\n"})}),(0,o.jsx)(t.p,{children:"Finally, you can install Aviator."}),(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-bash",children:"sudo flatpak install flathub net.natesales.Aviator\n"})}),(0,o.jsx)(t.p,{children:"You can run Aviator by executing the following command:"}),(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-bash",children:"flatpak run net.natesales.Aviator\n"})}),(0,o.jsx)(t.p,{children:"Now, you should be all set! Happy encoding!"})]})]}),"\n",(0,o.jsx)(t.h2,{id:"aviators-defaults",children:"Aviator's Defaults"}),"\n",(0,o.jsx)(t.p,{children:"Hovering over most user configurable options in Aviator will produce a helpful tooltip that you can look at to make things more clear."}),"\n",(0,o.jsx)(t.h3,{id:"perceptual-optimization",children:"Perceptual Optimization"}),"\n",(0,o.jsxs)(t.p,{children:["Aviator doesn't use mainline SVT-AV1, but rather uses ",(0,o.jsx)(t.a,{href:"https://github.com/gianni-rosato/svt-av1-psy",children:"a fork"})," dubbed SVT-AV1-PSY maintained for perceptual quality. It includes several unique changes, including a custom ",(0,o.jsx)(t.a,{href:"/docs/metrics/SSIM",children:"SSIM"}),"-based ",(0,o.jsx)(t.a,{href:"/docs/introduction/psychovisual",children:"RDO"})," tune that isn't included in mainline SVT-AV1. You can read more about SVT-AV1-PSY on the ",(0,o.jsx)(t.a,{href:"/docs/encoders/SVT-AV1#community-forks",children:"SVT-AV1"})," entry."]}),"\n",(0,o.jsx)(t.p,{children:"Aviator's default FFmpeg command uses the following encoding parameters, some of which are redundant with defaults:"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-bash",children:"-c:v libsvtav1 -crf X -preset X -pix_fmt yuv420p10le -svtav1-params film-grain=X:irefresh-type=2:input-depth=10:tune=3:sharpness=1:qm-min=0:keyint=300:aq-mode=2:enable-qm=1:film-grain-denoise=X\n"})}),"\n",(0,o.jsx)(t.h3,{id:"video",children:"Video"}),"\n",(0,o.jsx)("img",{width:"678",height:"567",src:"https://raw.githubusercontent.com/gianni-rosato/aviator/main/assets/aviator_video.webp",alt:"Aviator Video Settings",loading:"lazy"}),"\n",(0,o.jsxs)(t.p,{children:["By default, output resolution will match your source's resolution. Manually changing one resolution value will automatically calculate the other based on the video's aspect ratio. Aviator's SVT-AV1 speed preset is set to 6 by default, with a CRF (Constant Rate Factor) level of 32. You can set CRF from 0 to 63 using the slider, with larger numerical values indicating smaller filesize at the expense of visual quality. You can look at the detailed specifications behind each speed preset ",(0,o.jsx)(t.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/CommonQuestions.mdx#what-presets-do",children:"here"}),". Speed 7 offers a good balance between speed & compression efficiency at any CRF level."]}),"\n",(0,o.jsx)(t.p,{children:"Setting values that don't correspond with the source video's aspect ratio means the output will either stretch or crop based on if the \"crop\" option is checked."}),"\n",(0,o.jsx)(t.p,{children:"The Grain Synth slider allows you to add artificial grain to your video to mimic its natural grain. This option applies the artificial grain at decode time as a filter, which makes it easier to encode grainy videos at high fidelity. The Denoise switch removes noise from the video before applying artificial grain."}),"\n",(0,o.jsx)(t.h3,{id:"audio",children:"Audio"}),"\n",(0,o.jsx)("img",{width:"678",height:"567",src:"https://raw.githubusercontent.com/gianni-rosato/aviator/main/assets/aviator_audio.webp",alt:"Aviator Audio Settings",loading:"lazy"}),"\n",(0,o.jsx)(t.p,{children:"The default bitrate for Opus audio is 80kb/s. The audio source can be copied to the output media via that \"Copy Audio\" switch, & audio with >2 channels can be downmixed to stereo via the appropriately labelled switch. Volume adjustment & normalization are also offered in this section as well; the Volume slider allows you to increase or decrease the output's volume & is measured in decibels, & negative values decrease the volume. The Normalize toggle allows you to normalize your audio's perceived loudness."}),"\n",(0,o.jsx)(t.p,{children:'The "Copy Audio" switch disables WebM output due to potential compatibility hiccups & overrides every option on the Audio page to keep the source audio untouched. This option, when enabled, ensures the source audio isn\'t reencoded.'}),"\n",(0,o.jsx)(t.p,{children:"The Volume slider allows you to increase or decrease the output's volume. It is measured in decibels, and negative values decrease the volume. The Normalize switch allows you to normalize the audio's perceived loudness."}),"\n",(0,o.jsx)(t.h3,{id:"output",children:"Output"}),"\n",(0,o.jsx)("img",{width:"678",height:"567",src:"https://raw.githubusercontent.com/gianni-rosato/aviator/main/assets/aviator_output.webp",alt:"Aviator Output UI",loading:"lazy"}),"\n",(0,o.jsxs)(t.p,{children:["The container your video is stored in is associated with the file extension. Aviator offers two options for video output: the ",(0,o.jsx)(t.a,{href:"/docs/introduction/terminology#mkv--mka--mks--mk3d",children:"Matroska"})," video container & the ",(0,o.jsx)(t.a,{href:"/docs/introduction/terminology#webm",children:"WebM"})," container. The open-source Matroska container (.MKV) is used by default in Aviator & is a universal multimedia container with broad video & audio support. WebM is designed for web compatibility. Aviator won't copy subtitles to WebM outputs because WebM is only officially compatible with ",(0,o.jsx)(t.a,{href:"/docs/subtitles/webvtt",children:"WebVTT"})," subtitles. Both containers work out of the box with Aviator's AV1 video & Opus audio, but WebM output will be disabled if the Copy Audio switch is enabled because then we lose this format compliance assurance."]}),"\n",(0,o.jsx)(t.h2,{id:"credits",children:"Credits"}),"\n",(0,o.jsxs)(t.p,{children:["Aviator is actively developed by ",(0,o.jsx)(t.a,{href:"https://github.com/gianni-rosato/",children:"Gianni Rosato"}),"."]})]})}function p(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},9365:(e,t,a)=>{a.d(t,{A:()=>s});a(6540);var i=a(4164);const o={tabItem:"tabItem_Ymn6"};var n=a(4848);function s(e){let{children:t,hidden:a,className:s}=e;return(0,n.jsx)("div",{role:"tabpanel",className:(0,i.A)(o.tabItem,s),hidden:a,children:t})}},1470:(e,t,a)=>{a.d(t,{A:()=>A});var i=a(6540),o=a(4164),n=a(3104),s=a(6347),r=a(205),l=a(7485),u=a(1682),c=a(679);function d(e){return i.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,i.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:t,children:a}=e;return(0,i.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:a,attributes:i,default:o}}=e;return{value:t,label:a,attributes:i,default:o}}))}(a);return function(e){const t=(0,u.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,a])}function p(e){let{value:t,tabValues:a}=e;return a.some((e=>e.value===t))}function m(e){let{queryString:t=!1,groupId:a}=e;const o=(0,s.W6)(),n=function(e){let{queryString:t=!1,groupId:a}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!a)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return a??null}({queryString:t,groupId:a});return[(0,l.aZ)(n),(0,i.useCallback)((e=>{if(!n)return;const t=new URLSearchParams(o.location.search);t.set(n,e),o.replace({...o.location,search:t.toString()})}),[n,o])]}function f(e){const{defaultValue:t,queryString:a=!1,groupId:o}=e,n=h(e),[s,l]=(0,i.useState)((()=>function(e){let{defaultValue:t,tabValues:a}=e;if(0===a.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!p({value:t,tabValues:a}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${a.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const i=a.find((e=>e.default))??a[0];if(!i)throw new Error("Unexpected error: 0 tabValues");return i.value}({defaultValue:t,tabValues:n}))),[u,d]=m({queryString:a,groupId:o}),[f,v]=function(e){let{groupId:t}=e;const a=function(e){return e?`docusaurus.tab.${e}`:null}(t),[o,n]=(0,c.Dv)(a);return[o,(0,i.useCallback)((e=>{a&&n.set(e)}),[a,n])]}({groupId:o}),b=(()=>{const e=u??f;return p({value:e,tabValues:n})?e:null})();(0,r.A)((()=>{b&&l(b)}),[b]);return{selectedValue:s,selectValue:(0,i.useCallback)((e=>{if(!p({value:e,tabValues:n}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),v(e)}),[d,v,n]),tabValues:n}}var v=a(2303);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=a(4848);function x(e){let{className:t,block:a,selectedValue:i,selectValue:s,tabValues:r}=e;const l=[],{blockElementScrollPositionUntilNextRender:u}=(0,n.a_)(),c=e=>{const t=e.currentTarget,a=l.indexOf(t),o=r[a].value;o!==i&&(u(t),s(o))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const a=l.indexOf(e.currentTarget)+1;t=l[a]??l[0];break}case"ArrowLeft":{const a=l.indexOf(e.currentTarget)-1;t=l[a]??l[l.length-1];break}}t?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,o.A)("tabs",{"tabs--block":a},t),children:r.map((e=>{let{value:t,label:a,attributes:n}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:i===t?0:-1,"aria-selected":i===t,ref:e=>l.push(e),onKeyDown:d,onClick:c,...n,className:(0,o.A)("tabs__item",b.tabItem,n?.className,{"tabs__item--active":i===t}),children:a??t},t)}))})}function y(e){let{lazy:t,children:a,selectedValue:n}=e;const s=(Array.isArray(a)?a:[a]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===n));return e?(0,i.cloneElement)(e,{className:(0,o.A)("margin-top--md",e.props.className)}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,i.cloneElement)(e,{key:t,hidden:e.props.value!==n})))})}function w(e){const t=f(e);return(0,g.jsxs)("div",{className:(0,o.A)("tabs-container",b.tabList),children:[(0,g.jsx)(x,{...t,...e}),(0,g.jsx)(y,{...t,...e})]})}function A(e){const t=(0,v.A)();return(0,g.jsx)(w,{...e,children:d(e.children)},String(t))}},8453:(e,t,a)=>{a.d(t,{R:()=>s,x:()=>r});var i=a(6540);const o={},n=i.createContext(o);function s(e){const t=i.useContext(n);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),i.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b4030b4d.d3034021.js b/assets/js/b4030b4d.d3034021.js deleted file mode 100644 index cd73aee6d..000000000 --- a/assets/js/b4030b4d.d3034021.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3408],{6856:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>c,contentTitle:()=>l,default:()=>p,frontMatter:()=>r,metadata:()=>u,toc:()=>d});var i=a(4848),o=a(8453),n=a(1470),s=a(9365);const r={title:"Aviator",sidebar_position:1},l="Aviator",u={id:"utilities/Aviator",title:"Aviator",description:"Aviator is a GUI application designed for encoding AV1 video & Opus audio with SVT-AV1, libopus, & ffmpeg on Linux systems in a user-friendly, intuitive manner. Aviator's primary focus is ease-of-use, while still striving to offer optimal quality per bit through a smart default encoding configuration implemented via the SVT-AV1-PSY encoder.",source:"@site/docs/utilities/Aviator.mdx",sourceDirName:"utilities",slug:"/utilities/Aviator",permalink:"/docs/utilities/Aviator",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/Aviator.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"Aviator",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"Matrix Coefficients",permalink:"/docs/colorimetry/matrix"},next:{title:"Av1an",permalink:"/docs/utilities/av1an"}},c={},d=[{value:"Installation",id:"installation",level:2},{value:"Aviator's Defaults",id:"aviators-defaults",level:2},{value:"Perceptual Optimization",id:"perceptual-optimization",level:3},{value:"Video",id:"video",level:3},{value:"Audio",id:"audio",level:3},{value:"Output",id:"output",level:3},{value:"Credits",id:"credits",level:2}];function h(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",...(0,o.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"aviator",children:"Aviator"})}),"\n",(0,i.jsxs)(t.p,{children:["Aviator is a GUI application designed for encoding ",(0,i.jsx)(t.a,{href:"/docs/video/AV1",children:"AV1"})," video & Opus audio with ",(0,i.jsx)(t.a,{href:"/docs/encoders/SVT-AV1",children:"SVT-AV1"}),", ",(0,i.jsx)(t.a,{href:"/docs/audio/Opus",children:"libopus"}),", & ",(0,i.jsx)(t.a,{href:"/docs/utilities/ffmpeg",children:"ffmpeg"})," on Linux systems in a user-friendly, intuitive manner. Aviator's primary focus is ease-of-use, while still striving to offer optimal quality per bit through a smart default encoding configuration implemented via the SVT-AV1-PSY encoder."]}),"\n",(0,i.jsx)("img",{width:"640",height:"360",src:"https://raw.githubusercontent.com/gianni-rosato/aviator/main/assets/aviator_splash2.avif",alt:"Aviator Splash"}),"\n",(0,i.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,i.jsxs)(n.A,{children:[(0,i.jsxs)(s.A,{value:"unixlike",label:"Linux",children:[(0,i.jsxs)(t.p,{children:["Aviator is available on Linux through Flathub as a Flatpak. You can learn how to set up Flatpak on your distro of choice ",(0,i.jsx)(t.a,{href:"https://flatpak.org/setup/",children:"here"}),". Please do not use Aviator through the AUR."]}),(0,i.jsx)("a",{href:"https://flathub.org/apps/details/net.natesales.Aviator",children:(0,i.jsx)("img",{width:"200",alt:"Download on Flathub",src:"https://flathub.org/assets/badges/flathub-badge-en.png"})}),(0,i.jsx)(t.p,{children:"If Flatpak is already set up and you'd prefer to install Aviator from the terminal, you can run the following commmand:"}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"flatpak install flathub net.natesales.Aviator\n"})}),(0,i.jsx)(t.p,{children:"Flatpak was chosen for Aviator because it allows Aviator to ship its own sandboxed dependencies, ensuring every Linux user has a cohesive experience. One major benefit is the latest stable SVT-AV1-PSY implementation is always included, and Flatpak Aviator won't use your system's SVT-AV1 implementation which may be incompatible with Aviator's custom parameters."}),(0,i.jsxs)(t.p,{children:["If you would like to build Aviator from source, you may do so via the following commands. Ensure you have the right dependencies; if not, ",(0,i.jsx)(t.code,{children:"make"})," will warn you and you can install them as you see what you're missing."]}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"git clone https://github.com/gianni-rosato/aviator\ncd aviator\nmake\n"})})]}),(0,i.jsxs)(s.A,{value:"windows",label:"Windows",children:[(0,i.jsx)(t.admonition,{title:"Partial Support",type:"caution",children:(0,i.jsxs)(t.p,{children:['Windows support is provided on a "best-effort" basis via ',(0,i.jsx)(t.strong,{children:"WSL2"}),". Compatibility hiccups will almost certainly be encountered should you decide to run Aviator on Windows."]})}),(0,i.jsxs)(t.p,{children:['Aviator is supported on a "best-effort" basis on Windows via WSL2. In order to set up a WSL2 Arch Linux environment, see the ',(0,i.jsx)(t.a,{href:"/docs/utilities/rav1ator-cli#windows",children:"rAV1ator CLI"})," WSL2 tutorial for Windows 11."]}),(0,i.jsxs)(t.p,{children:["Once WSL2 is set up, install Flatpak in your Linux environment by follwing the steps below. ",(0,i.jsxs)(t.strong,{children:["Always be careful when running commands with ",(0,i.jsx)(t.code,{children:"sudo"})," copied from the Internet, including the commands below."]})]}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"sudo pacman -Syu # Update your system\nsudo pacman -S flatpak # Install flatpak\nsudo systemctl enable --now dbus # Start dbus\nflatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo # Add flathub repo if it hasn't already been added\n"})}),(0,i.jsxs)(t.p,{children:["Finally, you can verify that Flatpak has actually been installed by running ",(0,i.jsx)(t.code,{children:"flatpak --version"})," and checking that the version string is valid."]}),(0,i.jsx)(t.p,{children:"Now, Aviator requires a couple of special Flatpak dependencies most commonly found on GNOME Linux distros."}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"sudo flatpak install org.gnome.Sdk # Select option 15\nsudo flatpak install org.gnome.Platform # Select option 14\n"})}),(0,i.jsx)(t.p,{children:"Finally, you can install Aviator."}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"sudo flatpak install flathub net.natesales.Aviator\n"})}),(0,i.jsx)(t.p,{children:"You can run Aviator by executing the following command:"}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"flatpak run net.natesales.Aviator\n"})}),(0,i.jsx)(t.p,{children:"Now, you should be all set! Happy encoding!"})]})]}),"\n",(0,i.jsx)(t.h2,{id:"aviators-defaults",children:"Aviator's Defaults"}),"\n",(0,i.jsx)(t.p,{children:"Hovering over most user configurable options in Aviator will produce a helpful tooltip that you can look at to make things more clear."}),"\n",(0,i.jsx)(t.h3,{id:"perceptual-optimization",children:"Perceptual Optimization"}),"\n",(0,i.jsxs)(t.p,{children:["Aviator doesn't use mainline SVT-AV1, but rather uses ",(0,i.jsx)(t.a,{href:"https://github.com/gianni-rosato/svt-av1-psy",children:"a fork"})," dubbed SVT-AV1-PSY maintained for perceptual quality. It includes several unique changes, including a custom ",(0,i.jsx)(t.a,{href:"/docs/metrics/SSIM",children:"SSIM"}),"-based ",(0,i.jsx)(t.a,{href:"/docs/introduction/psychovisual",children:"RDO"})," tune that isn't included in mainline SVT-AV1. You can read more about SVT-AV1-PSY on the ",(0,i.jsx)(t.a,{href:"/docs/encoders/SVT-AV1#community-forks",children:"SVT-AV1"})," entry."]}),"\n",(0,i.jsx)(t.p,{children:"Aviator's default FFmpeg command uses the following encoding parameters, some of which are redundant with defaults:"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"-c:v libsvtav1 -crf X -preset X -pix_fmt yuv420p10le -svtav1-params film-grain=X:irefresh-type=2:input-depth=10:tune=3:sharpness=1:qm-min=0:keyint=300:aq-mode=2:enable-qm=1:film-grain-denoise=X\n"})}),"\n",(0,i.jsx)(t.h3,{id:"video",children:"Video"}),"\n",(0,i.jsx)("img",{width:"678",height:"567",src:"https://raw.githubusercontent.com/gianni-rosato/aviator/main/assets/aviator_video.webp",alt:"Aviator Video Settings",loading:"lazy"}),"\n",(0,i.jsxs)(t.p,{children:["By default, output resolution will match your source's resolution. Manually changing one resolution value will automatically calculate the other based on the video's aspect ratio. Aviator's SVT-AV1 speed preset is set to 6 by default, with a CRF (Constant Rate Factor) level of 32. You can set CRF from 0 to 63 using the slider, with larger numerical values indicating smaller filesize at the expense of visual quality. You can look at the detailed specifications behind each speed preset ",(0,i.jsx)(t.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/CommonQuestions.mdx#what-presets-do",children:"here"}),". Speed 7 offers a good balance between speed & compression efficiency at any CRF level."]}),"\n",(0,i.jsx)(t.p,{children:"Setting values that don't correspond with the source video's aspect ratio means the output will either stretch or crop based on if the \"crop\" option is checked."}),"\n",(0,i.jsx)(t.p,{children:"The Grain Synth slider allows you to add artificial grain to your video to mimic its natural grain. This option applies the artificial grain at decode time as a filter, which makes it easier to encode grainy videos at high fidelity. The Denoise switch removes noise from the video before applying artificial grain."}),"\n",(0,i.jsx)(t.h3,{id:"audio",children:"Audio"}),"\n",(0,i.jsx)("img",{width:"678",height:"567",src:"https://raw.githubusercontent.com/gianni-rosato/aviator/main/assets/aviator_audio.webp",alt:"Aviator Audio Settings",loading:"lazy"}),"\n",(0,i.jsx)(t.p,{children:"The default bitrate for Opus audio is 80kb/s. The audio source can be copied to the output media via that \"Copy Audio\" switch, & audio with >2 channels can be downmixed to stereo via the appropriately labelled switch. Volume adjustment & normalization are also offered in this section as well; the Volume slider allows you to increase or decrease the output's volume & is measured in decibels, & negative values decrease the volume. The Normalize toggle allows you to normalize your audio's perceived loudness."}),"\n",(0,i.jsx)(t.p,{children:'The "Copy Audio" switch disables WebM output due to potential compatibility hiccups & overrides every option on the Audio page to keep the source audio untouched. This option, when enabled, ensures the source audio isn\'t reencoded.'}),"\n",(0,i.jsx)(t.p,{children:"The Volume slider allows you to increase or decrease the output's volume. It is measured in decibels, and negative values decrease the volume. The Normalize switch allows you to normalize the audio's perceived loudness."}),"\n",(0,i.jsx)(t.h3,{id:"output",children:"Output"}),"\n",(0,i.jsx)("img",{width:"678",height:"567",src:"https://raw.githubusercontent.com/gianni-rosato/aviator/main/assets/aviator_output.webp",alt:"Aviator Output UI",loading:"lazy"}),"\n",(0,i.jsxs)(t.p,{children:["The container your video is stored in is associated with the file extension. Aviator offers two options for video output: the ",(0,i.jsx)(t.a,{href:"/docs/introduction/terminology#mkv--mka--mks--mk3d",children:"Matroska"})," video container & the ",(0,i.jsx)(t.a,{href:"/docs/introduction/terminology#webm",children:"WebM"})," container. The open-source Matroska container (.MKV) is used by default in Aviator & is a universal multimedia container with broad video & audio support. WebM is designed for web compatibility. Aviator won't copy subtitles to WebM outputs because WebM is only officially compatible with ",(0,i.jsx)(t.a,{href:"/docs/subtitles/webvtt",children:"WebVTT"})," subtitles. Both containers work out of the box with Aviator's AV1 video & Opus audio, but WebM output will be disabled if the Copy Audio switch is enabled because then we lose this format compliance assurance."]}),"\n",(0,i.jsx)(t.h2,{id:"credits",children:"Credits"}),"\n",(0,i.jsxs)(t.p,{children:["Aviator is actively developed by ",(0,i.jsx)(t.a,{href:"https://github.com/gianni-rosato/",children:"Gianni Rosato"}),"."]})]})}function p(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},9365:(e,t,a)=>{a.d(t,{A:()=>s});a(6540);var i=a(4164);const o={tabItem:"tabItem_Ymn6"};var n=a(4848);function s(e){let{children:t,hidden:a,className:s}=e;return(0,n.jsx)("div",{role:"tabpanel",className:(0,i.A)(o.tabItem,s),hidden:a,children:t})}},1470:(e,t,a)=>{a.d(t,{A:()=>A});var i=a(6540),o=a(4164),n=a(3104),s=a(6347),r=a(205),l=a(7485),u=a(1682),c=a(679);function d(e){return i.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,i.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:t,children:a}=e;return(0,i.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:a,attributes:i,default:o}}=e;return{value:t,label:a,attributes:i,default:o}}))}(a);return function(e){const t=(0,u.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,a])}function p(e){let{value:t,tabValues:a}=e;return a.some((e=>e.value===t))}function m(e){let{queryString:t=!1,groupId:a}=e;const o=(0,s.W6)(),n=function(e){let{queryString:t=!1,groupId:a}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!a)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return a??null}({queryString:t,groupId:a});return[(0,l.aZ)(n),(0,i.useCallback)((e=>{if(!n)return;const t=new URLSearchParams(o.location.search);t.set(n,e),o.replace({...o.location,search:t.toString()})}),[n,o])]}function f(e){const{defaultValue:t,queryString:a=!1,groupId:o}=e,n=h(e),[s,l]=(0,i.useState)((()=>function(e){let{defaultValue:t,tabValues:a}=e;if(0===a.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!p({value:t,tabValues:a}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${a.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const i=a.find((e=>e.default))??a[0];if(!i)throw new Error("Unexpected error: 0 tabValues");return i.value}({defaultValue:t,tabValues:n}))),[u,d]=m({queryString:a,groupId:o}),[f,v]=function(e){let{groupId:t}=e;const a=function(e){return e?`docusaurus.tab.${e}`:null}(t),[o,n]=(0,c.Dv)(a);return[o,(0,i.useCallback)((e=>{a&&n.set(e)}),[a,n])]}({groupId:o}),b=(()=>{const e=u??f;return p({value:e,tabValues:n})?e:null})();(0,r.A)((()=>{b&&l(b)}),[b]);return{selectedValue:s,selectValue:(0,i.useCallback)((e=>{if(!p({value:e,tabValues:n}))throw new Error(`Can't select invalid tab value=${e}`);l(e),d(e),v(e)}),[d,v,n]),tabValues:n}}var v=a(2303);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=a(4848);function x(e){let{className:t,block:a,selectedValue:i,selectValue:s,tabValues:r}=e;const l=[],{blockElementScrollPositionUntilNextRender:u}=(0,n.a_)(),c=e=>{const t=e.currentTarget,a=l.indexOf(t),o=r[a].value;o!==i&&(u(t),s(o))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const a=l.indexOf(e.currentTarget)+1;t=l[a]??l[0];break}case"ArrowLeft":{const a=l.indexOf(e.currentTarget)-1;t=l[a]??l[l.length-1];break}}t?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,o.A)("tabs",{"tabs--block":a},t),children:r.map((e=>{let{value:t,label:a,attributes:n}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:i===t?0:-1,"aria-selected":i===t,ref:e=>l.push(e),onKeyDown:d,onClick:c,...n,className:(0,o.A)("tabs__item",b.tabItem,n?.className,{"tabs__item--active":i===t}),children:a??t},t)}))})}function y(e){let{lazy:t,children:a,selectedValue:n}=e;const s=(Array.isArray(a)?a:[a]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===n));return e?(0,i.cloneElement)(e,{className:(0,o.A)("margin-top--md",e.props.className)}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,i.cloneElement)(e,{key:t,hidden:e.props.value!==n})))})}function w(e){const t=f(e);return(0,g.jsxs)("div",{className:(0,o.A)("tabs-container",b.tabList),children:[(0,g.jsx)(x,{...t,...e}),(0,g.jsx)(y,{...t,...e})]})}function A(e){const t=(0,v.A)();return(0,g.jsx)(w,{...e,children:d(e.children)},String(t))}},8453:(e,t,a)=>{a.d(t,{R:()=>s,x:()=>r});var i=a(6540);const o={},n=i.createContext(o);function s(e){const t=i.useContext(n);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),i.createElement(n.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b4bbde8e.8982fcc9.js b/assets/js/b4bbde8e.8982fcc9.js new file mode 100644 index 000000000..8986a4a46 --- /dev/null +++ b/assets/js/b4bbde8e.8982fcc9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7989],{1660:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>d,contentTitle:()=>s,default:()=>h,frontMatter:()=>r,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"audio/AAC","title":"AAC","description":"Explore the AAC audio codec, including its various profiles, encoders, & use cases.","source":"@site/docs/audio/AAC.mdx","sourceDirName":"audio","slug":"/audio/AAC","permalink":"/docs/audio/AAC","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/AAC.mdx","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"AAC","description":"Explore the AAC audio codec, including its various profiles, encoders, & use cases.","keywords":["AAC","Advanced Audio Coding","audio codec","audio","codec","audio encoding","audio decoding","audio compression","audio quality","audio formats","audio file formats","audio file","audio file type","audio file extension","audio file format","audio file types","audio file extensions","audio file formats"],"sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"Intro","permalink":"/docs/audio/intro"},"next":{"title":"Opus","permalink":"/docs/audio/Opus"}}');var t=o(4848),a=o(8453);const r={title:"AAC",description:"Explore the AAC audio codec, including its various profiles, encoders, & use cases.",keywords:["AAC","Advanced Audio Coding","audio codec","audio","codec","audio encoding","audio decoding","audio compression","audio quality","audio formats","audio file formats","audio file","audio file type","audio file extension","audio file format","audio file types","audio file extensions","audio file formats"],sidebar_position:2},s="AAC",d={},c=[{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"AAC-LC",id:"aac-lc",level:3},{value:"AAC-LD & AAC-ELD",id:"aac-ld--aac-eld",level:3},{value:"HE-AAC",id:"he-aac",level:3},{value:"HE-AACv2",id:"he-aacv2",level:3},{value:"xHE-AAC",id:"xhe-aac",level:3},{value:"Encoders",id:"encoders",level:2},{value:"Fraunhofer FDK AAC",id:"fraunhofer-fdk-aac",level:3},{value:"Core Audio",id:"core-audio",level:3},{value:"FFmpeg AAC",id:"ffmpeg-aac",level:3},{value:"FAAC",id:"faac",level:3},{value:"Nero AAC",id:"nero-aac",level:3},{value:"Exhale",id:"exhale",level:3},{value:"Conclusion",id:"conclusion",level:2}];function l(e){const i={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",ul:"ul",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"aac",children:"AAC"})}),"\n",(0,t.jsx)(i.p,{children:"AAC, or Advanced Audio Coding, is an umbrella for a number of different codecs. When people refer to AAC, they are often referring to the commonly used AAC-LC profile developed as part of the original AAC standard in 1997 (although there is a distinction between this version of AAC-LC, called MPEG-2 AAC, & MPEG-4 AAC which is newer). However, there are a number of other variants that have been created over time. These include:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"AAC-LC (low-complexity AAC)"}),"\n",(0,t.jsx)(i.li,{children:"AAC-LD (low delay AAC)"}),"\n",(0,t.jsx)(i.li,{children:"AAC-ELD (enhanced low delay AAC)"}),"\n",(0,t.jsx)(i.li,{children:"HE-AAC (high efficiency AAC, uses Spectral Band Replication)"}),"\n",(0,t.jsx)(i.li,{children:"HE-AACv2 (high efficiency AAC v2, uses Spectral Band Replication + Parametric Stereo)"}),"\n",(0,t.jsx)(i.li,{children:"xHE-AAC (extended high efficiency AAC (kinda), uses USAC (Unified Speech & Audio Coding))"}),"\n"]}),"\n",(0,t.jsx)(i.p,{children:"AAC is even used as a Bluetooth audio codec for encoding audio streams & sending them to a Bluetooth audio device. Encoding & even decoding some of the above formats can prove to be difficult, so it is worth exploring each codec individually."}),"\n",(0,t.jsx)(i.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,t.jsx)(i.p,{children:"Let's explore each codec individually."}),"\n",(0,t.jsx)(i.h3,{id:"aac-lc",children:"AAC-LC"}),"\n",(0,t.jsx)(i.p,{children:'While AAC-LC was introduced alongside two higher complexity profiles (AAC Main & AAC-SSR), AAC-LC has seen much more widespread adoption through various distribution mediums for video (often paired with AVC video) & audio alike. AAC-LC is ubiquitous within the Apple ecosystem & was (& still is) used on YouTube before their switch to primarily using Opus. Encoding AAC-LC can be done with relative ease, accessible through nearly every encoder in the "Encoders" section.'}),"\n",(0,t.jsx)(i.h3,{id:"aac-ld--aac-eld",children:"AAC-LD & AAC-ELD"}),"\n",(0,t.jsx)(i.p,{children:"AAC-LD & AAC-ELD are both designed to transmit audio in instances where latency is very important. Both are far more efficient than previous low-latency audio coding offerings. Over AAC-LD, AAC-ELD offers better audio quality through Spectral Band Replication, lower latency, & a greater quality range with a lower bitrate minimum & higher maximum."}),"\n",(0,t.jsx)(i.h3,{id:"he-aac",children:"HE-AAC"}),"\n",(0,t.jsx)(i.p,{children:"High Efficiency AAC introduces Spectral Band Replication (SBR) to the AAC specification for the purpose of higher quality audio at lower bitrates. SBR is an encoding technique that allows the decoder to reconstruct higher frequencies from an audio signal given lower frequencies & data that informs the decoder about information in the higher frequencies, allowing them to be effectively restored from this helper data. In short, lower frequencies are encoded with extra detail incorporated to allow the reconstruction of higher frequency information in an audio signal. This feature alone allows HE-AAC to be much more efficient than AAC-LC at lower bitrates; the gap closes substantially at higher bitrates, however."}),"\n",(0,t.jsx)(i.h3,{id:"he-aacv2",children:"HE-AACv2"}),"\n",(0,t.jsx)(i.p,{children:"High Efficiency AAC v2 introduces Parametric Stereo (PS), which further increases audio quality with an emphasis on lower bitrates. PS uses a mono signal downmixed from a multichannel stereo input alongside information about the spatial properties of the stereo input to allow the decoder to reconstruct a left & right channel using salient spatial data from the mono signal. HE-AACv2 combine PS with SBR for greater efficiency gains over HE-AAC & AAC-LC, although again the gap closes at higher bitrates."}),"\n",(0,t.jsx)(i.h3,{id:"xhe-aac",children:"xHE-AAC"}),"\n",(0,t.jsxs)(i.p,{children:["Extended High Efficiency AAC is actually slightly different from xHE-AAC. While Extended High Efficiency AAC specifically includes all of HE-AACv2's coding techniques as well as compression techniques from the USAC specification, the Extended High Efficiency AAC profile was designed in such a manner that building an encoder for the format would allow it to be perfectly backwards compatible with past variations of AAC. xHE-AAC is a codec that combines the Extended High Efficiency AAC profile with further USAC coding techniques, specifically within the ",(0,t.jsx)(i.em,{children:"MPEG-D DRC Loudness Control Profile"}),". For all intents and purposes, when someone refers to \"USAC audio,\" they probably mean xHE-AAC. xHE-AAC further extends performance at lower bitrates compared to past variants of AAC. USAC's specialty & purpose was to create an audio codec that didn't compromise music performance for speech & vice versa, but rather automatically tuned its coding technique selection to perform the best on any given source."]}),"\n",(0,t.jsx)(i.p,{children:"xHE-AAC is not widely supported. On a Mac, playback is only possible through QuickTime Player & other utilities which use CoreAudio for decoding. Windows 11 & Android support xHE-AAC natively, but Windows 10 & Linux will not allow you to play it back without some grief. The most effective way currently is to use an AAC plugin with foobar2000, although this plugin is 32-bit only, so you'll need 32-bit foobar2000. This works on Linux under WINE."}),"\n",(0,t.jsx)(i.h2,{id:"encoders",children:"Encoders"}),"\n",(0,t.jsx)(i.p,{children:"There are a number of ways to encode each format, which I'll outline below."}),"\n",(0,t.jsx)(i.h3,{id:"fraunhofer-fdk-aac",children:"Fraunhofer FDK AAC"}),"\n",(0,t.jsxs)(i.p,{children:["Fraunhofer FDK AAC is a high quality, open-source AAC encoder by ",(0,t.jsx)(i.a,{href:"https://en.wikipedia.org/wiki/Fraunhofer_Society",children:"Fraunhofer IIS"}),". It was introduced with the release of Android 4.1 and has since been forked to a ",(0,t.jsx)(i.a,{href:"https://github.com/mstorsjo/fdk-aac",children:"seperate repository"}),". Issues regarding the legality of its distribution have arisen since the Free Software Foundation declared the license incompatible with the GPL. The license does not grant the user rights to the patented technologies used in the source code, and therefore restricts its use. However, this topic is still debated as Debian does not consider FDK AAC free software while Red Hat does."]}),"\n",(0,t.jsx)(i.p,{children:"Another similar tool, FhG-AAC, performs similarly to FDK-AAC but with greater precision as it performs floating point operations. It can be used through the proprietary Windows media player Winamp."}),"\n",(0,t.jsxs)(i.p,{children:["FDK-AAC can encode the following formats:\n",(0,t.jsx)(i.code,{children:"AAC-LC AAC-LD AAC-ELD HE-AAC HE-AACv2"})]}),"\n",(0,t.jsx)(i.h3,{id:"core-audio",children:"Core Audio"}),"\n",(0,t.jsxs)(i.p,{children:["Apple's proprietary Core Audio Toolbox encoder is a popular, high-quality choice for encoding AAC. This encoder can be used in macOS via Apple's own ",(0,t.jsx)(i.code,{children:"afconvert"})," utility, or in FFmpeg by specifying ",(0,t.jsx)(i.code,{children:"aac_at"})," as the audio encoder. Windows users can also take advantage of Core Audio by using the free ",(0,t.jsx)(i.a,{href:"https://github.com/nu774/qaac",children:"qaac"})," command-line utility, but users will need to either have ",(0,t.jsx)(i.a,{href:"https://support.apple.com/en-ca/HT210384",children:"iTunes"})," installed, or extract the libraries from said installer, using the ",(0,t.jsx)(i.a,{href:"https://github.com/nu774/makeportable",children:"makeportable"})," script."]}),"\n",(0,t.jsxs)(i.p,{children:["Core Audio can encode the following formats: ",(0,t.jsx)(i.code,{children:"AAC-LC, HE-AAC, HE-AACv2"}),"*"]}),"\n",(0,t.jsxs)(i.p,{children:["*",(0,t.jsx)(i.code,{children:"HE-AACv2"})," encoding is only supported on macOS."]}),"\n",(0,t.jsx)(i.h3,{id:"ffmpeg-aac",children:"FFmpeg AAC"}),"\n",(0,t.jsx)(i.p,{children:"FFmpeg's native AAC encoder is known for being completely free & open source, licensed under the GNU General Public License (or LGPL, depending on how FFmpeg is configured). If you want a completely FOSS solution for encoding AAC, FFmpeg AAC is one of the only places you'll find this. It is not known for being particularly feature rich or high quality & doesn't support the entire profile of the AAC variants it can encode, but it gets the job done in most scenarios."}),"\n",(0,t.jsxs)(i.p,{children:["FFmpeg's AAC encoder can be called with a simple ",(0,t.jsx)(i.code,{children:"-c:a aac"})," parameter, but there are more granular options available. By default, the profile is ",(0,t.jsx)(i.code,{children:"aac_low"})," which encodes MPEG-4 AAC-LC. The ",(0,t.jsx)(i.code,{children:"mpeg2_aac_low"})," profile encodes simpler, lower-quality MPEG-2 AAC from 1997, while ",(0,t.jsx)(i.code,{children:"aac_main"})," encodes the more obscure main AAC profile from the 1997 MPEG-2 specification. Finally, ",(0,t.jsx)(i.code,{children:"aac-ltp"})," encodes AAC long-term prediction introduced in MPEG-4."]}),"\n",(0,t.jsxs)(i.p,{children:["Using FFmpeg AAC, we can encode the following formats:\n",(0,t.jsx)(i.code,{children:"AAC-LC"})]}),"\n",(0,t.jsx)(i.h3,{id:"faac",children:"FAAC"}),"\n",(0,t.jsxs)(i.p,{children:["FAAC is an old AAC encoder, name meaning Freeware Advanced Audio Coder. It is one of the lower quality options, & isn't recommended for general use. It only supports ",(0,t.jsx)(i.code,{children:"AAC-LC"}),"."]}),"\n",(0,t.jsx)(i.h3,{id:"nero-aac",children:"Nero AAC"}),"\n",(0,t.jsx)(i.p,{children:"The discontinued Nero AAC audio coder had its last release in 2010. The developer of FAAC worked on Nero AAC, & the Nero AAC encoder & decoder are proprietary. Nero AAC was known to produce decent quality output while it was maintained, although development has since stalled."}),"\n",(0,t.jsxs)(i.p,{children:["Nero AAC can encode the following formats:\n",(0,t.jsx)(i.code,{children:"AAC-LC, HE-AAC, HE-AACv2"})]}),"\n",(0,t.jsx)(i.h3,{id:"exhale",children:"Exhale"}),"\n",(0,t.jsx)(i.p,{children:"Exhale is the only encoder on this list capable of encoding xHE-AAC audio. While it does not excel at this task compared to proprietary competition, there isn't really a straightforward way to encode xHE-AAC outside of using exhale on most platforms right now. Given that fact, it is the only xHE-AAC encoder many can consider using due to the lack of real competition. It can encode Extended HE-AAC audio with or without eSBR, although encoding using eSBR produces higher quality results."}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.code,{children:"exhale"})," can encode the following formats:\n",(0,t.jsx)(i.code,{children:"xHE-AAC"})]}),"\n",(0,t.jsx)(i.h2,{id:"conclusion",children:"Conclusion"}),"\n",(0,t.jsx)(i.p,{children:"Alternatives to AAC include Opus, Vorbis, MP3, & FLAC, among others."}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Vorbis & MP3 are considered to be worse, although Vorbis has its moments & is entirely royalty-free unlike AAC."}),"\n",(0,t.jsx)(i.li,{children:"FLAC is a lossless audio codec with an entirely different use case. It is important to reinforce that lossy audio codecs are not replacements for lossless, as good as they might get."}),"\n",(0,t.jsxs)(i.li,{children:["Opus is competitive with HE-AACv2 & xHE-AAC moreso than the older, worse variants, & is widely supported as well as royalty free. The open source reference encoder ",(0,t.jsx)(i.code,{children:"opusenc"})," is an excellent implementation of the format & the tooling is much easier to use compared to AAC's frankly nightmarish assortment of various options with numerous individual downsides. xHE-AAC is generally better than Opus, especially at lower bitrates, which is a fact that merits consideration."]}),"\n"]})]})}function h(e={}){const{wrapper:i}={...(0,a.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>r,x:()=>s});var n=o(6540);const t={},a=n.createContext(t);function r(e){const i=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function s(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),n.createElement(a.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b4bbde8e.a30040d0.js b/assets/js/b4bbde8e.a30040d0.js deleted file mode 100644 index 098c382d5..000000000 --- a/assets/js/b4bbde8e.a30040d0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7989],{965:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>d,contentTitle:()=>r,default:()=>h,frontMatter:()=>a,metadata:()=>s,toc:()=>c});var n=o(4848),t=o(8453);const a={title:"AAC",description:"Explore the AAC audio codec, including its various profiles, encoders, & use cases.",keywords:["AAC","Advanced Audio Coding","audio codec","audio","codec","audio encoding","audio decoding","audio compression","audio quality","audio formats","audio file formats","audio file","audio file type","audio file extension","audio file format","audio file types","audio file extensions","audio file formats"],sidebar_position:2},r="AAC",s={id:"audio/AAC",title:"AAC",description:"Explore the AAC audio codec, including its various profiles, encoders, & use cases.",source:"@site/docs/audio/AAC.mdx",sourceDirName:"audio",slug:"/audio/AAC",permalink:"/docs/audio/AAC",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/AAC.mdx",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"AAC",description:"Explore the AAC audio codec, including its various profiles, encoders, & use cases.",keywords:["AAC","Advanced Audio Coding","audio codec","audio","codec","audio encoding","audio decoding","audio compression","audio quality","audio formats","audio file formats","audio file","audio file type","audio file extension","audio file format","audio file types","audio file extensions","audio file formats"],sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"Intro",permalink:"/docs/audio/intro"},next:{title:"Opus",permalink:"/docs/audio/Opus"}},d={},c=[{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"AAC-LC",id:"aac-lc",level:3},{value:"AAC-LD & AAC-ELD",id:"aac-ld--aac-eld",level:3},{value:"HE-AAC",id:"he-aac",level:3},{value:"HE-AACv2",id:"he-aacv2",level:3},{value:"xHE-AAC",id:"xhe-aac",level:3},{value:"Encoders",id:"encoders",level:2},{value:"Fraunhofer FDK AAC",id:"fraunhofer-fdk-aac",level:3},{value:"Core Audio",id:"core-audio",level:3},{value:"FFmpeg AAC",id:"ffmpeg-aac",level:3},{value:"FAAC",id:"faac",level:3},{value:"Nero AAC",id:"nero-aac",level:3},{value:"Exhale",id:"exhale",level:3},{value:"Conclusion",id:"conclusion",level:2}];function l(e){const i={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",ul:"ul",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"aac",children:"AAC"})}),"\n",(0,n.jsx)(i.p,{children:"AAC, or Advanced Audio Coding, is an umbrella for a number of different codecs. When people refer to AAC, they are often referring to the commonly used AAC-LC profile developed as part of the original AAC standard in 1997 (although there is a distinction between this version of AAC-LC, called MPEG-2 AAC, & MPEG-4 AAC which is newer). However, there are a number of other variants that have been created over time. These include:"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsx)(i.li,{children:"AAC-LC (low-complexity AAC)"}),"\n",(0,n.jsx)(i.li,{children:"AAC-LD (low delay AAC)"}),"\n",(0,n.jsx)(i.li,{children:"AAC-ELD (enhanced low delay AAC)"}),"\n",(0,n.jsx)(i.li,{children:"HE-AAC (high efficiency AAC, uses Spectral Band Replication)"}),"\n",(0,n.jsx)(i.li,{children:"HE-AACv2 (high efficiency AAC v2, uses Spectral Band Replication + Parametric Stereo)"}),"\n",(0,n.jsx)(i.li,{children:"xHE-AAC (extended high efficiency AAC (kinda), uses USAC (Unified Speech & Audio Coding))"}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:"AAC is even used as a Bluetooth audio codec for encoding audio streams & sending them to a Bluetooth audio device. Encoding & even decoding some of the above formats can prove to be difficult, so it is worth exploring each codec individually."}),"\n",(0,n.jsx)(i.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,n.jsx)(i.p,{children:"Let's explore each codec individually."}),"\n",(0,n.jsx)(i.h3,{id:"aac-lc",children:"AAC-LC"}),"\n",(0,n.jsx)(i.p,{children:'While AAC-LC was introduced alongside two higher complexity profiles (AAC Main & AAC-SSR), AAC-LC has seen much more widespread adoption through various distribution mediums for video (often paired with AVC video) & audio alike. AAC-LC is ubiquitous within the Apple ecosystem & was (& still is) used on YouTube before their switch to primarily using Opus. Encoding AAC-LC can be done with relative ease, accessible through nearly every encoder in the "Encoders" section.'}),"\n",(0,n.jsx)(i.h3,{id:"aac-ld--aac-eld",children:"AAC-LD & AAC-ELD"}),"\n",(0,n.jsx)(i.p,{children:"AAC-LD & AAC-ELD are both designed to transmit audio in instances where latency is very important. Both are far more efficient than previous low-latency audio coding offerings. Over AAC-LD, AAC-ELD offers better audio quality through Spectral Band Replication, lower latency, & a greater quality range with a lower bitrate minimum & higher maximum."}),"\n",(0,n.jsx)(i.h3,{id:"he-aac",children:"HE-AAC"}),"\n",(0,n.jsx)(i.p,{children:"High Efficiency AAC introduces Spectral Band Replication (SBR) to the AAC specification for the purpose of higher quality audio at lower bitrates. SBR is an encoding technique that allows the decoder to reconstruct higher frequencies from an audio signal given lower frequencies & data that informs the decoder about information in the higher frequencies, allowing them to be effectively restored from this helper data. In short, lower frequencies are encoded with extra detail incorporated to allow the reconstruction of higher frequency information in an audio signal. This feature alone allows HE-AAC to be much more efficient than AAC-LC at lower bitrates; the gap closes substantially at higher bitrates, however."}),"\n",(0,n.jsx)(i.h3,{id:"he-aacv2",children:"HE-AACv2"}),"\n",(0,n.jsx)(i.p,{children:"High Efficiency AAC v2 introduces Parametric Stereo (PS), which further increases audio quality with an emphasis on lower bitrates. PS uses a mono signal downmixed from a multichannel stereo input alongside information about the spatial properties of the stereo input to allow the decoder to reconstruct a left & right channel using salient spatial data from the mono signal. HE-AACv2 combine PS with SBR for greater efficiency gains over HE-AAC & AAC-LC, although again the gap closes at higher bitrates."}),"\n",(0,n.jsx)(i.h3,{id:"xhe-aac",children:"xHE-AAC"}),"\n",(0,n.jsxs)(i.p,{children:["Extended High Efficiency AAC is actually slightly different from xHE-AAC. While Extended High Efficiency AAC specifically includes all of HE-AACv2's coding techniques as well as compression techniques from the USAC specification, the Extended High Efficiency AAC profile was designed in such a manner that building an encoder for the format would allow it to be perfectly backwards compatible with past variations of AAC. xHE-AAC is a codec that combines the Extended High Efficiency AAC profile with further USAC coding techniques, specifically within the ",(0,n.jsx)(i.em,{children:"MPEG-D DRC Loudness Control Profile"}),". For all intents and purposes, when someone refers to \"USAC audio,\" they probably mean xHE-AAC. xHE-AAC further extends performance at lower bitrates compared to past variants of AAC. USAC's specialty & purpose was to create an audio codec that didn't compromise music performance for speech & vice versa, but rather automatically tuned its coding technique selection to perform the best on any given source."]}),"\n",(0,n.jsx)(i.p,{children:"xHE-AAC is not widely supported. On a Mac, playback is only possible through QuickTime Player & other utilities which use CoreAudio for decoding. Windows 11 & Android support xHE-AAC natively, but Windows 10 & Linux will not allow you to play it back without some grief. The most effective way currently is to use an AAC plugin with foobar2000, although this plugin is 32-bit only, so you'll need 32-bit foobar2000. This works on Linux under WINE."}),"\n",(0,n.jsx)(i.h2,{id:"encoders",children:"Encoders"}),"\n",(0,n.jsx)(i.p,{children:"There are a number of ways to encode each format, which I'll outline below."}),"\n",(0,n.jsx)(i.h3,{id:"fraunhofer-fdk-aac",children:"Fraunhofer FDK AAC"}),"\n",(0,n.jsxs)(i.p,{children:["Fraunhofer FDK AAC is a high quality, open-source AAC encoder by ",(0,n.jsx)(i.a,{href:"https://en.wikipedia.org/wiki/Fraunhofer_Society",children:"Fraunhofer IIS"}),". It was introduced with the release of Android 4.1 and has since been forked to a ",(0,n.jsx)(i.a,{href:"https://github.com/mstorsjo/fdk-aac",children:"seperate repository"}),". Issues regarding the legality of its distribution have arisen since the Free Software Foundation declared the license incompatible with the GPL. The license does not grant the user rights to the patented technologies used in the source code, and therefore restricts its use. However, this topic is still debated as Debian does not consider FDK AAC free software while Red Hat does."]}),"\n",(0,n.jsx)(i.p,{children:"Another similar tool, FhG-AAC, performs similarly to FDK-AAC but with greater precision as it performs floating point operations. It can be used through the proprietary Windows media player Winamp."}),"\n",(0,n.jsxs)(i.p,{children:["FDK-AAC can encode the following formats:\n",(0,n.jsx)(i.code,{children:"AAC-LC AAC-LD AAC-ELD HE-AAC HE-AACv2"})]}),"\n",(0,n.jsx)(i.h3,{id:"core-audio",children:"Core Audio"}),"\n",(0,n.jsxs)(i.p,{children:["Apple's proprietary Core Audio Toolbox encoder is a popular, high-quality choice for encoding AAC. This encoder can be used in macOS via Apple's own ",(0,n.jsx)(i.code,{children:"afconvert"})," utility, or in FFmpeg by specifying ",(0,n.jsx)(i.code,{children:"aac_at"})," as the audio encoder. Windows users can also take advantage of Core Audio by using the free ",(0,n.jsx)(i.a,{href:"https://github.com/nu774/qaac",children:"qaac"})," command-line utility, but users will need to either have ",(0,n.jsx)(i.a,{href:"https://support.apple.com/en-ca/HT210384",children:"iTunes"})," installed, or extract the libraries from said installer, using the ",(0,n.jsx)(i.a,{href:"https://github.com/nu774/makeportable",children:"makeportable"})," script."]}),"\n",(0,n.jsxs)(i.p,{children:["Core Audio can encode the following formats: ",(0,n.jsx)(i.code,{children:"AAC-LC, HE-AAC, HE-AACv2"}),"*"]}),"\n",(0,n.jsxs)(i.p,{children:["*",(0,n.jsx)(i.code,{children:"HE-AACv2"})," encoding is only supported on macOS."]}),"\n",(0,n.jsx)(i.h3,{id:"ffmpeg-aac",children:"FFmpeg AAC"}),"\n",(0,n.jsx)(i.p,{children:"FFmpeg's native AAC encoder is known for being completely free & open source, licensed under the GNU General Public License (or LGPL, depending on how FFmpeg is configured). If you want a completely FOSS solution for encoding AAC, FFmpeg AAC is one of the only places you'll find this. It is not known for being particularly feature rich or high quality & doesn't support the entire profile of the AAC variants it can encode, but it gets the job done in most scenarios."}),"\n",(0,n.jsxs)(i.p,{children:["FFmpeg's AAC encoder can be called with a simple ",(0,n.jsx)(i.code,{children:"-c:a aac"})," parameter, but there are more granular options available. By default, the profile is ",(0,n.jsx)(i.code,{children:"aac_low"})," which encodes MPEG-4 AAC-LC. The ",(0,n.jsx)(i.code,{children:"mpeg2_aac_low"})," profile encodes simpler, lower-quality MPEG-2 AAC from 1997, while ",(0,n.jsx)(i.code,{children:"aac_main"})," encodes the more obscure main AAC profile from the 1997 MPEG-2 specification. Finally, ",(0,n.jsx)(i.code,{children:"aac-ltp"})," encodes AAC long-term prediction introduced in MPEG-4."]}),"\n",(0,n.jsxs)(i.p,{children:["Using FFmpeg AAC, we can encode the following formats:\n",(0,n.jsx)(i.code,{children:"AAC-LC"})]}),"\n",(0,n.jsx)(i.h3,{id:"faac",children:"FAAC"}),"\n",(0,n.jsxs)(i.p,{children:["FAAC is an old AAC encoder, name meaning Freeware Advanced Audio Coder. It is one of the lower quality options, & isn't recommended for general use. It only supports ",(0,n.jsx)(i.code,{children:"AAC-LC"}),"."]}),"\n",(0,n.jsx)(i.h3,{id:"nero-aac",children:"Nero AAC"}),"\n",(0,n.jsx)(i.p,{children:"The discontinued Nero AAC audio coder had its last release in 2010. The developer of FAAC worked on Nero AAC, & the Nero AAC encoder & decoder are proprietary. Nero AAC was known to produce decent quality output while it was maintained, although development has since stalled."}),"\n",(0,n.jsxs)(i.p,{children:["Nero AAC can encode the following formats:\n",(0,n.jsx)(i.code,{children:"AAC-LC, HE-AAC, HE-AACv2"})]}),"\n",(0,n.jsx)(i.h3,{id:"exhale",children:"Exhale"}),"\n",(0,n.jsx)(i.p,{children:"Exhale is the only encoder on this list capable of encoding xHE-AAC audio. While it does not excel at this task compared to proprietary competition, there isn't really a straightforward way to encode xHE-AAC outside of using exhale on most platforms right now. Given that fact, it is the only xHE-AAC encoder many can consider using due to the lack of real competition. It can encode Extended HE-AAC audio with or without eSBR, although encoding using eSBR produces higher quality results."}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.code,{children:"exhale"})," can encode the following formats:\n",(0,n.jsx)(i.code,{children:"xHE-AAC"})]}),"\n",(0,n.jsx)(i.h2,{id:"conclusion",children:"Conclusion"}),"\n",(0,n.jsx)(i.p,{children:"Alternatives to AAC include Opus, Vorbis, MP3, & FLAC, among others."}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsx)(i.li,{children:"Vorbis & MP3 are considered to be worse, although Vorbis has its moments & is entirely royalty-free unlike AAC."}),"\n",(0,n.jsx)(i.li,{children:"FLAC is a lossless audio codec with an entirely different use case. It is important to reinforce that lossy audio codecs are not replacements for lossless, as good as they might get."}),"\n",(0,n.jsxs)(i.li,{children:["Opus is competitive with HE-AACv2 & xHE-AAC moreso than the older, worse variants, & is widely supported as well as royalty free. The open source reference encoder ",(0,n.jsx)(i.code,{children:"opusenc"})," is an excellent implementation of the format & the tooling is much easier to use compared to AAC's frankly nightmarish assortment of various options with numerous individual downsides. xHE-AAC is generally better than Opus, especially at lower bitrates, which is a fact that merits consideration."]}),"\n"]})]})}function h(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>r,x:()=>s});var n=o(6540);const t={},a=n.createContext(t);function r(e){const i=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function s(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),n.createElement(a.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b59b8cf7.43a6a0c1.js b/assets/js/b59b8cf7.43a6a0c1.js deleted file mode 100644 index 0e93a13de..000000000 --- a/assets/js/b59b8cf7.43a6a0c1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1271],{5423:(e,o,t)=>{t.r(o),t.d(o,{assets:()=>c,contentTitle:()=>r,default:()=>l,frontMatter:()=>s,metadata:()=>a,toc:()=>d});var i=t(4848),n=t(8453);const s={title:"Vorbis",sidebar_position:5},r="Vorbis",a={id:"audio/Vorbis",title:"Vorbis",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/audio/Vorbis.mdx",sourceDirName:"audio",slug:"/audio/Vorbis",permalink:"/docs/audio/Vorbis",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/Vorbis.mdx",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"Vorbis",sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"MP3",permalink:"/docs/audio/MP3"},next:{title:"Speex",permalink:"/docs/audio/Speex"}},c={},d=[];function u(e){const o={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.header,{children:(0,i.jsx)(o.h1,{id:"vorbis",children:"Vorbis"})}),"\n",(0,i.jsx)(o.admonition,{title:"Help Wanted",type:"danger",children:(0,i.jsxs)(o.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,i.jsx)(o.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,i.jsxs)(o.p,{children:["Vorbis is an open-source audio codec that has seen great success in its usage by Spotify, among others. It is the default audio codec for Minecraft's sounds & music. It has largely been replaced by ",(0,i.jsx)(o.a,{href:"/docs/audio/Opus",children:"Opus"}),"."]})]})}function l(e={}){const{wrapper:o}={...(0,n.R)(),...e.components};return o?(0,i.jsx)(o,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}},8453:(e,o,t)=>{t.d(o,{R:()=>r,x:()=>a});var i=t(6540);const n={},s=i.createContext(n);function r(e){const o=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function a(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),i.createElement(s.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b59b8cf7.ac260982.js b/assets/js/b59b8cf7.ac260982.js new file mode 100644 index 000000000..5d8087af6 --- /dev/null +++ b/assets/js/b59b8cf7.ac260982.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1271],{4631:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>a,contentTitle:()=>d,default:()=>l,frontMatter:()=>r,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"audio/Vorbis","title":"Vorbis","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/audio/Vorbis.mdx","sourceDirName":"audio","slug":"/audio/Vorbis","permalink":"/docs/audio/Vorbis","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/Vorbis.mdx","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"title":"Vorbis","sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"MP3","permalink":"/docs/audio/MP3"},"next":{"title":"Speex","permalink":"/docs/audio/Speex"}}');var s=o(4848),t=o(8453);const r={title:"Vorbis",sidebar_position:5},d="Vorbis",a={},c=[{value:"Usage",id:"usage",level:2},{value:"Encoder",id:"encoder",level:3},{value:"Decoder",id:"decoder",level:3}];function u(e){const i={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"vorbis",children:"Vorbis"})}),"\n",(0,s.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,s.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,s.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,s.jsxs)(i.p,{children:["Vorbis is an open-source audio codec first released in 2000, maintainted by the Xiph.org Foundation. It has seen great success in its usage by Spotify, among others. It is the default audio codec for Minecraft's sounds & music. It has largely been replaced by ",(0,s.jsx)(i.a,{href:"/docs/audio/Opus",children:"Opus"}),"."]}),"\n",(0,s.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsxs)(i.p,{children:["Vorbis is supported in ",(0,s.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"ffmpeg"}),"."]}),"\n",(0,s.jsx)(i.h3,{id:"encoder",children:"Encoder"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-bash",children:"ffmpeg -i input.wav -c:a libvorbis output.ogg\n"})}),"\n",(0,s.jsx)(i.h3,{id:"decoder",children:"Decoder"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-bash",children:"ffmpeg -i input.ogg output.wav\n"})}),"\n",(0,s.jsxs)(i.p,{children:["See ",(0,s.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"ffmpeg"})," for more options."]})]})}function l(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>r,x:()=>d});var n=o(6540);const s={},t=n.createContext(s);function r(e){const i=n.useContext(t);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function d(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),n.createElement(t.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b8af02bf.68d91565.js b/assets/js/b8af02bf.68d91565.js deleted file mode 100644 index 7a5d387f2..000000000 --- a/assets/js/b8af02bf.68d91565.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3222],{1158:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>s,metadata:()=>r,toc:()=>d});var o=t(4848),n=t(8453);const s={title:"JPEG 2000",sidebar_position:5},a="JPEG 2000",r={id:"images/JPEG2000",title:"JPEG 2000",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/images/JPEG2000.mdx",sourceDirName:"images",slug:"/images/JPEG2000",permalink:"/docs/images/JPEG2000",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/JPEG2000.mdx",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"JPEG 2000",sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"WebP",permalink:"/docs/images/WebP"},next:{title:"AVIF",permalink:"/docs/images/AVIF"}},c={},d=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.header,{children:(0,o.jsx)(i.h1,{id:"jpeg-2000",children:"JPEG 2000"})}),"\n",(0,o.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsx)(i.p,{children:'JPEG-2000 is an older image compression format that uses wavelet technology to achieve high compression ratios while maintaining image quality. It supports both lossy and lossless compression, and is commonly used in applications such as digital photography, medical imaging, and video surveillance. JPEG-2000 files can be transparently compressed and decompressed using a variety of software tools and libraries, making it a flexible and widely-supported format for image storage & transmission. JPEG-2000 never effectively took off on the Web, but digital cinema distribution is often done with JPEG-2000. A "DCP" is a "Digital Cinema Package," which is a format used to distribute and play back digital movies in theaters. These DCPs are often compressed losslessly with JPEG-2000.'})]})}function u(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>a,x:()=>r});var o=t(6540);const n={},s=o.createContext(n);function a(e){const i=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),o.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b8af02bf.6bd5e392.js b/assets/js/b8af02bf.6bd5e392.js new file mode 100644 index 000000000..0859f8462 --- /dev/null +++ b/assets/js/b8af02bf.6bd5e392.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3222],{3801:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>c,contentTitle:()=>r,default:()=>u,frontMatter:()=>a,metadata:()=>s,toc:()=>d});const s=JSON.parse('{"id":"images/JPEG2000","title":"JPEG 2000","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/images/JPEG2000.mdx","sourceDirName":"images","slug":"/images/JPEG2000","permalink":"/docs/images/JPEG2000","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/JPEG2000.mdx","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"title":"JPEG 2000","sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"WebP","permalink":"/docs/images/WebP"},"next":{"title":"AVIF","permalink":"/docs/images/AVIF"}}');var o=t(4848),n=t(8453);const a={title:"JPEG 2000",sidebar_position:5},r="JPEG 2000",c={},d=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.header,{children:(0,o.jsx)(i.h1,{id:"jpeg-2000",children:"JPEG 2000"})}),"\n",(0,o.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsx)(i.p,{children:'JPEG-2000 is an older image compression format that uses wavelet technology to achieve high compression ratios while maintaining image quality. It supports both lossy and lossless compression, and is commonly used in applications such as digital photography, medical imaging, and video surveillance. JPEG-2000 files can be transparently compressed and decompressed using a variety of software tools and libraries, making it a flexible and widely-supported format for image storage & transmission. JPEG-2000 never effectively took off on the Web, but digital cinema distribution is often done with JPEG-2000. A "DCP" is a "Digital Cinema Package," which is a format used to distribute and play back digital movies in theaters. These DCPs are often compressed losslessly with JPEG-2000.'})]})}function u(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>a,x:()=>r});var s=t(6540);const o={},n=s.createContext(o);function a(e){const i=s.useContext(n);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),s.createElement(n.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/bb17976f.a0392243.js b/assets/js/bb17976f.a0392243.js new file mode 100644 index 000000000..12107b8a2 --- /dev/null +++ b/assets/js/bb17976f.a0392243.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8943],{6676:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>m,frontMatter:()=>l,metadata:()=>t,toc:()=>u});const t=JSON.parse('{"id":"encoders/aom-psy101","title":"aom-psy101","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/encoders/aom-psy101.mdx","sourceDirName":"encoders","slug":"/encoders/aom-psy101","permalink":"/docs/encoders/aom-psy101","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/aom-psy101.mdx","tags":[],"version":"current","sidebarPosition":19,"frontMatter":{"title":"aom-psy101","sidebar_position":19,"keywords":["AV1","encoding","video encoding","AOM AV1"]},"sidebar":"tutorialSidebar","previous":{"title":"aom-av1-lavish","permalink":"/docs/encoders/aom-av1-lavish"},"next":{"title":"uavs3e","permalink":"/docs/encoders/uavs3e"}}');var r=a(4848),s=a(8453),i=a(1470),o=a(9365);const l={title:"aom-psy101",sidebar_position:19,keywords:["AV1","encoding","video encoding","AOM AV1"]},c="aom-psy101",d={},u=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Installation",id:"installation",level:2}];function h(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"aom-psy101",children:"aom-psy101"})}),"\n",(0,r.jsx)(n.admonition,{title:"Under Maintenance",type:"info",children:(0,r.jsx)(n.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,r.jsx)(n.admonition,{title:"Community Fork",type:"info",children:(0,r.jsxs)(n.p,{children:["This entry is about a fork of aomenc called aom-psy101. If you'd like to learn about the mainline aomenc encoder before reading, visit our ",(0,r.jsx)(n.a,{href:"/docs/encoders/aomenc",children:"aomenc wiki entry"}),"."]})}),"\n",(0,r.jsxs)(n.p,{children:["Mainline aomenc is unfortunately not perfect. It suffers from bad defaults, a heavy focus on the perceptually flawed ",(0,r.jsx)(n.a,{href:"/docs/metrics/PSNR",children:"PSNR"})," metric, misleading settings, and other issues. Fortunately, there are a couple of forks developed by the encoding community that were created to combat aomenc's underlying issues."]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"https://github.com/BlueSwordM/aom-av1-psy",children:"aom-av1-psy"})," ",(0,r.jsx)(n.em,{children:"No longer maintained as of 13th January 2023"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"/docs/encoders/aom-av1-lavish",children:"aom-av1-lavish"})," ",(0,r.jsx)(n.em,{children:"No longer maintained as of 4th June 2024"})]}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://gitlab.com/damian101/aom-psy101",children:"aom-psy101"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://github.com/porcino/aom-av1ador",children:"aom-av1ador"})}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"These forks fix up the poor decisions made by the original AOM devs and most importantly introduce new parameters and tunes to help fine-tune the encoder even more."}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"https://gitlab.com/damian101/aom-psy101",children:"aom-psy101"})," is a fork of aomenc that aims to improve the encoding quality and speed of AV1. It is developed by ",(0,r.jsx)(n.a,{href:"https://gitlab.com/damian101",children:"damian101"}),", a talented AV1 community developer."]}),"\n",(0,r.jsx)(n.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,r.jsxs)(n.p,{children:["aomenc is available in FFmpeg via ",(0,r.jsx)(n.code,{children:"libaom-av1"}),", check if you have it by running ",(0,r.jsx)(n.code,{children:"ffmpeg -h encoder=libaom-av1"}),". You can input non-FFmpeg standard aomenc parameters via ",(0,r.jsx)(n.code,{children:"-aom-params"}),"."]}),"\n",(0,r.jsx)(n.admonition,{title:"Mainline aomenc",type:"caution",children:(0,r.jsx)(n.p,{children:"Unless you compile FFmpeg yourself with aom-psy101, you will be using the mainline aomenc. Compiling from source yourself with the aomenc libraries provided by aom-psy101 is the only way to use it with FFmpeg."})}),"\n",(0,r.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,r.jsxs)(i.A,{children:[(0,r.jsxs)(o.A,{value:"unixlike",label:"Linux & macOS",default:!0,children:[(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsx)(n.li,{children:"Clone the psy101 repo:"}),"\n"]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Clone the psy101 repo"',children:"git clone https://gitlab.com/damian101/aom-psy101\ncd aom-psy101 && mkdir aom_build && cd aom_build\n"})}),(0,r.jsxs)(n.ol,{start:"2",children:["\n",(0,r.jsxs)(n.li,{children:["Configure compilation. The following flags are set to ensure the ",(0,r.jsx)(n.code,{children:"aomenc"})," binary is build for optimal performance:"]}),"\n"]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Set CMake flags"',children:'cmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -pipe -march=native" -DCMAKE_C_FLAGS="-flto -pipe -march=native"\n'})}),(0,r.jsxs)(n.ol,{start:"3",children:["\n",(0,r.jsx)(n.li,{children:"Compile:"}),"\n"]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Compile"',children:"make -j$(nproc)\n"})}),(0,r.jsxs)(n.ol,{start:"4",children:["\n",(0,r.jsx)(n.li,{children:"Install to your system. This may require elevated privileges:"}),"\n"]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Install"',children:"make install\n"})})]}),(0,r.jsxs)(o.A,{value:"wind",label:"Windows",children:[(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"MSYS2"})," is the best option for building in Windows, as it provides a Unix-like environment for compilation."]}),(0,r.jsxs)(n.ol,{start:"0",children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:["Make sure you have downloaded & installed MSYS2 from ",(0,r.jsx)(n.a,{href:"https://www.msys2.org/",children:"the MSYS2 website"})," before beginning the build process."]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:"Close any MSYS2 Console that you have open, start the Clang64 console & install the required dependencies:"}),"\n"]}),"\n"]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"pacman -S git perl mingw-w64-clang-x86_64-clang mingw-w64-clang-x86_64-ninja mingw-w64-clang-x86_64-cmake mingw-w64-clang-x86_64-nasm\n"})}),(0,r.jsxs)(n.ol,{start:"2",children:["\n",(0,r.jsx)(n.li,{children:"Clone the psy101 repo:"}),"\n"]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Clone the psy101 repo"',children:"git clone https://gitlab.com/damian101/aom-psy101\ncd aom-psy101 && mkdir aom_build && cd aom_build\n"})}),(0,r.jsxs)(n.ol,{start:"2",children:["\n",(0,r.jsxs)(n.li,{children:["Configure compilation. The following flags are set to ensure the ",(0,r.jsx)(n.code,{children:"aomenc"})," binary is build for optimal performance:"]}),"\n"]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Set CMake flags"',children:'LDFLAGS=-static cmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -pipe -march=native" -DCMAKE_C_FLAGS="-flto -pipe -march=native"\n'})}),(0,r.jsxs)(n.ol,{start:"3",children:["\n",(0,r.jsx)(n.li,{children:"Compile:"}),"\n"]}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",metastring:'title="Compile"',children:"ninja\n"})}),(0,r.jsxs)(n.p,{children:["The resulting binary will be available within the home folder of the location where you installed MSYS2 (usually ",(0,r.jsx)(n.code,{children:"C:"}),"). Navigate there, and then to ",(0,r.jsx)(n.code,{children:"aom-psy101\\aom_build"})," folder; the binary should be there."]})]})]})]})}function m(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},9365:(e,n,a)=>{a.d(n,{A:()=>i});a(6540);var t=a(4164);const r={tabItem:"tabItem_Ymn6"};var s=a(4848);function i(e){let{children:n,hidden:a,className:i}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,t.A)(r.tabItem,i),hidden:a,children:n})}},1470:(e,n,a)=>{a.d(n,{A:()=>w});var t=a(6540),r=a(4164),s=a(3104),i=a(6347),o=a(205),l=a(7485),c=a(1682),d=a(679);function u(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:a}=e;return(0,t.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:a,attributes:t,default:r}}=e;return{value:n,label:a,attributes:t,default:r}}))}(a);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,a])}function m(e){let{value:n,tabValues:a}=e;return a.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:a}=e;const r=(0,i.W6)(),s=function(e){let{queryString:n=!1,groupId:a}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!a)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return a??null}({queryString:n,groupId:a});return[(0,l.aZ)(s),(0,t.useCallback)((e=>{if(!s)return;const n=new URLSearchParams(r.location.search);n.set(s,e),r.replace({...r.location,search:n.toString()})}),[s,r])]}function f(e){const{defaultValue:n,queryString:a=!1,groupId:r}=e,s=h(e),[i,l]=(0,t.useState)((()=>function(e){let{defaultValue:n,tabValues:a}=e;if(0===a.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:a}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${a.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const t=a.find((e=>e.default))??a[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:n,tabValues:s}))),[c,u]=p({queryString:a,groupId:r}),[f,b]=function(e){let{groupId:n}=e;const a=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,s]=(0,d.Dv)(a);return[r,(0,t.useCallback)((e=>{a&&s.set(e)}),[a,s])]}({groupId:r}),g=(()=>{const e=c??f;return m({value:e,tabValues:s})?e:null})();(0,o.A)((()=>{g&&l(g)}),[g]);return{selectedValue:i,selectValue:(0,t.useCallback)((e=>{if(!m({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),u(e),b(e)}),[u,b,s]),tabValues:s}}var b=a(2303);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=a(4848);function y(e){let{className:n,block:a,selectedValue:t,selectValue:i,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.a_)(),d=e=>{const n=e.currentTarget,a=l.indexOf(n),r=o[a].value;r!==t&&(c(n),i(r))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const a=l.indexOf(e.currentTarget)+1;n=l[a]??l[0];break}case"ArrowLeft":{const a=l.indexOf(e.currentTarget)-1;n=l[a]??l[l.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":a},n),children:o.map((e=>{let{value:n,label:a,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:t===n?0:-1,"aria-selected":t===n,ref:e=>l.push(e),onKeyDown:u,onClick:d,...s,className:(0,r.A)("tabs__item",g.tabItem,s?.className,{"tabs__item--active":t===n}),children:a??n},n)}))})}function v(e){let{lazy:n,children:a,selectedValue:s}=e;const i=(Array.isArray(a)?a:[a]).filter(Boolean);if(n){const e=i.find((e=>e.props.value===s));return e?(0,t.cloneElement)(e,{className:(0,r.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:i.map(((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==s})))})}function j(e){const n=f(e);return(0,x.jsxs)("div",{className:(0,r.A)("tabs-container",g.tabList),children:[(0,x.jsx)(y,{...n,...e}),(0,x.jsx)(v,{...n,...e})]})}function w(e){const n=(0,b.A)();return(0,x.jsx)(j,{...e,children:u(e.children)},String(n))}},8453:(e,n,a)=>{a.d(n,{R:()=>i,x:()=>o});var t=a(6540);const r={},s=t.createContext(r);function i(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/bb17976f.d85080c7.js b/assets/js/bb17976f.d85080c7.js deleted file mode 100644 index 8595e60e5..000000000 --- a/assets/js/bb17976f.d85080c7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8943],{2591:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>m,frontMatter:()=>o,metadata:()=>c,toc:()=>u});var t=a(4848),r=a(8453),i=a(1470),s=a(9365);const o={title:"aom-psy101",sidebar_position:19,keywords:["AV1","encoding","video encoding","AOM AV1"]},l="aom-psy101",c={id:"encoders/aom-psy101",title:"aom-psy101",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/encoders/aom-psy101.mdx",sourceDirName:"encoders",slug:"/encoders/aom-psy101",permalink:"/docs/encoders/aom-psy101",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/aom-psy101.mdx",tags:[],version:"current",sidebarPosition:19,frontMatter:{title:"aom-psy101",sidebar_position:19,keywords:["AV1","encoding","video encoding","AOM AV1"]},sidebar:"tutorialSidebar",previous:{title:"aom-av1-lavish",permalink:"/docs/encoders/aom-av1-lavish"},next:{title:"uavs3e",permalink:"/docs/encoders/uavs3e"}},d={},u=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Installation",id:"installation",level:2}];function h(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"aom-psy101",children:"aom-psy101"})}),"\n",(0,t.jsx)(n.admonition,{title:"Under Maintenance",type:"info",children:(0,t.jsx)(n.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,t.jsx)(n.admonition,{title:"Community Fork",type:"info",children:(0,t.jsxs)(n.p,{children:["This entry is about a fork of aomenc called aom-psy101. If you'd like to learn about the mainline aomenc encoder before reading, visit our ",(0,t.jsx)(n.a,{href:"/docs/encoders/aomenc",children:"aomenc wiki entry"}),"."]})}),"\n",(0,t.jsxs)(n.p,{children:["Mainline aomenc is unfortunately not perfect. It suffers from bad defaults, a heavy focus on the perceptually flawed ",(0,t.jsx)(n.a,{href:"/docs/metrics/PSNR",children:"PSNR"})," metric, misleading settings, and other issues. Fortunately, there are a couple of forks developed by the encoding community that were created to combat aomenc's underlying issues."]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.a,{href:"https://github.com/BlueSwordM/aom-av1-psy",children:"aom-av1-psy"})," ",(0,t.jsx)(n.em,{children:"No longer maintained as of 13th January 2023"})]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.a,{href:"/docs/encoders/aom-av1-lavish",children:"aom-av1-lavish"})," ",(0,t.jsx)(n.em,{children:"No longer maintained as of 4th June 2024"})]}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://gitlab.com/damian101/aom-psy101",children:"aom-psy101"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"https://github.com/porcino/aom-av1ador",children:"aom-av1ador"})}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"These forks fix up the poor decisions made by the original AOM devs and most importantly introduce new parameters and tunes to help fine-tune the encoder even more."}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://gitlab.com/damian101/aom-psy101",children:"aom-psy101"})," is a fork of aomenc that aims to improve the encoding quality and speed of AV1. It is developed by ",(0,t.jsx)(n.a,{href:"https://gitlab.com/damian101",children:"damian101"}),", a talented AV1 community developer."]}),"\n",(0,t.jsx)(n.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,t.jsxs)(n.p,{children:["aomenc is available in FFmpeg via ",(0,t.jsx)(n.code,{children:"libaom-av1"}),", check if you have it by running ",(0,t.jsx)(n.code,{children:"ffmpeg -h encoder=libaom-av1"}),". You can input non-FFmpeg standard aomenc parameters via ",(0,t.jsx)(n.code,{children:"-aom-params"}),"."]}),"\n",(0,t.jsx)(n.admonition,{title:"Mainline aomenc",type:"caution",children:(0,t.jsx)(n.p,{children:"Unless you compile FFmpeg yourself with aom-psy101, you will be using the mainline aomenc. Compiling from source yourself with the aomenc libraries provided by aom-psy101 is the only way to use it with FFmpeg."})}),"\n",(0,t.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsxs)(i.A,{children:[(0,t.jsxs)(s.A,{value:"unixlike",label:"Linux & macOS",default:!0,children:[(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsx)(n.li,{children:"Clone the psy101 repo:"}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Clone the psy101 repo"',children:"git clone https://gitlab.com/damian101/aom-psy101\ncd aom-psy101 && mkdir aom_build && cd aom_build\n"})}),(0,t.jsxs)(n.ol,{start:"2",children:["\n",(0,t.jsxs)(n.li,{children:["Configure compilation. The following flags are set to ensure the ",(0,t.jsx)(n.code,{children:"aomenc"})," binary is build for optimal performance:"]}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Set CMake flags"',children:'cmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -pipe -march=native" -DCMAKE_C_FLAGS="-flto -pipe -march=native"\n'})}),(0,t.jsxs)(n.ol,{start:"3",children:["\n",(0,t.jsx)(n.li,{children:"Compile:"}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Compile"',children:"make -j$(nproc)\n"})}),(0,t.jsxs)(n.ol,{start:"4",children:["\n",(0,t.jsx)(n.li,{children:"Install to your system. This may require elevated privileges:"}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Install"',children:"make install\n"})})]}),(0,t.jsxs)(s.A,{value:"wind",label:"Windows",children:[(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"MSYS2"})," is the best option for building in Windows, as it provides a Unix-like environment for compilation."]}),(0,t.jsxs)(n.ol,{start:"0",children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsxs)(n.p,{children:["Make sure you have downloaded & installed MSYS2 from ",(0,t.jsx)(n.a,{href:"https://www.msys2.org/",children:"the MSYS2 website"})," before beginning the build process."]}),"\n"]}),"\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:"Close any MSYS2 Console that you have open, start the Clang64 console & install the required dependencies:"}),"\n"]}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"pacman -S git perl mingw-w64-clang-x86_64-clang mingw-w64-clang-x86_64-ninja mingw-w64-clang-x86_64-cmake mingw-w64-clang-x86_64-nasm\n"})}),(0,t.jsxs)(n.ol,{start:"2",children:["\n",(0,t.jsx)(n.li,{children:"Clone the psy101 repo:"}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Clone the psy101 repo"',children:"git clone https://gitlab.com/damian101/aom-psy101\ncd aom-psy101 && mkdir aom_build && cd aom_build\n"})}),(0,t.jsxs)(n.ol,{start:"2",children:["\n",(0,t.jsxs)(n.li,{children:["Configure compilation. The following flags are set to ensure the ",(0,t.jsx)(n.code,{children:"aomenc"})," binary is build for optimal performance:"]}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Set CMake flags"',children:'LDFLAGS=-static cmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-flto -pipe -march=native" -DCMAKE_C_FLAGS="-flto -pipe -march=native"\n'})}),(0,t.jsxs)(n.ol,{start:"3",children:["\n",(0,t.jsx)(n.li,{children:"Compile:"}),"\n"]}),(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Compile"',children:"ninja\n"})}),(0,t.jsxs)(n.p,{children:["The resulting binary will be available within the home folder of the location where you installed MSYS2 (usually ",(0,t.jsx)(n.code,{children:"C:"}),"). Navigate there, and then to ",(0,t.jsx)(n.code,{children:"aom-psy101\\aom_build"})," folder; the binary should be there."]})]})]})]})}function m(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},9365:(e,n,a)=>{a.d(n,{A:()=>s});a(6540);var t=a(4164);const r={tabItem:"tabItem_Ymn6"};var i=a(4848);function s(e){let{children:n,hidden:a,className:s}=e;return(0,i.jsx)("div",{role:"tabpanel",className:(0,t.A)(r.tabItem,s),hidden:a,children:n})}},1470:(e,n,a)=>{a.d(n,{A:()=>w});var t=a(6540),r=a(4164),i=a(3104),s=a(6347),o=a(205),l=a(7485),c=a(1682),d=a(679);function u(e){return t.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,t.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:a}=e;return(0,t.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:a,attributes:t,default:r}}=e;return{value:n,label:a,attributes:t,default:r}}))}(a);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,a])}function m(e){let{value:n,tabValues:a}=e;return a.some((e=>e.value===n))}function p(e){let{queryString:n=!1,groupId:a}=e;const r=(0,s.W6)(),i=function(e){let{queryString:n=!1,groupId:a}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!a)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return a??null}({queryString:n,groupId:a});return[(0,l.aZ)(i),(0,t.useCallback)((e=>{if(!i)return;const n=new URLSearchParams(r.location.search);n.set(i,e),r.replace({...r.location,search:n.toString()})}),[i,r])]}function f(e){const{defaultValue:n,queryString:a=!1,groupId:r}=e,i=h(e),[s,l]=(0,t.useState)((()=>function(e){let{defaultValue:n,tabValues:a}=e;if(0===a.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!m({value:n,tabValues:a}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${a.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const t=a.find((e=>e.default))??a[0];if(!t)throw new Error("Unexpected error: 0 tabValues");return t.value}({defaultValue:n,tabValues:i}))),[c,u]=p({queryString:a,groupId:r}),[f,b]=function(e){let{groupId:n}=e;const a=function(e){return e?`docusaurus.tab.${e}`:null}(n),[r,i]=(0,d.Dv)(a);return[r,(0,t.useCallback)((e=>{a&&i.set(e)}),[a,i])]}({groupId:r}),g=(()=>{const e=c??f;return m({value:e,tabValues:i})?e:null})();(0,o.A)((()=>{g&&l(g)}),[g]);return{selectedValue:s,selectValue:(0,t.useCallback)((e=>{if(!m({value:e,tabValues:i}))throw new Error(`Can't select invalid tab value=${e}`);l(e),u(e),b(e)}),[u,b,i]),tabValues:i}}var b=a(2303);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=a(4848);function y(e){let{className:n,block:a,selectedValue:t,selectValue:s,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,i.a_)(),d=e=>{const n=e.currentTarget,a=l.indexOf(n),r=o[a].value;r!==t&&(c(n),s(r))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const a=l.indexOf(e.currentTarget)+1;n=l[a]??l[0];break}case"ArrowLeft":{const a=l.indexOf(e.currentTarget)-1;n=l[a]??l[l.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":a},n),children:o.map((e=>{let{value:n,label:a,attributes:i}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:t===n?0:-1,"aria-selected":t===n,ref:e=>l.push(e),onKeyDown:u,onClick:d,...i,className:(0,r.A)("tabs__item",g.tabItem,i?.className,{"tabs__item--active":t===n}),children:a??n},n)}))})}function v(e){let{lazy:n,children:a,selectedValue:i}=e;const s=(Array.isArray(a)?a:[a]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===i));return e?(0,t.cloneElement)(e,{className:(0,r.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==i})))})}function j(e){const n=f(e);return(0,x.jsxs)("div",{className:(0,r.A)("tabs-container",g.tabList),children:[(0,x.jsx)(y,{...n,...e}),(0,x.jsx)(v,{...n,...e})]})}function w(e){const n=(0,b.A)();return(0,x.jsx)(j,{...e,children:u(e.children)},String(n))}},8453:(e,n,a)=>{a.d(n,{R:()=>s,x:()=>o});var t=a(6540);const r={},i=t.createContext(r);function s(e){const n=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/bc32b9c5.a0a9d727.js b/assets/js/bc32b9c5.a0a9d727.js new file mode 100644 index 000000000..014884422 --- /dev/null +++ b/assets/js/bc32b9c5.a0a9d727.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[786],{5426:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>l,contentTitle:()=>a,default:()=>h,frontMatter:()=>o,metadata:()=>t,toc:()=>c});const t=JSON.parse('{"id":"metrics/XPSNR","title":"XPSNR","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/metrics/XPSNR.mdx","sourceDirName":"metrics","slug":"/metrics/XPSNR","permalink":"/docs/metrics/XPSNR","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/metrics/XPSNR.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"XPSNR","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"VMAF","permalink":"/docs/metrics/VMAF"},"next":{"title":"Butteraugli","permalink":"/docs/metrics/butteraugli"}}');var s=i(4848),r=i(8453);const o={title:"XPSNR",sidebar_position:1},a="XPSNR",l={},c=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Notes",id:"notes",level:2},{value:"Comparing to SSIMULACRA 2",id:"comparing-to-ssimulacra-2",level:2}];function d(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"xpsnr",children:"XPSNR"})}),"\n",(0,s.jsx)(n.admonition,{title:"Under Maintenance",type:"info",children:(0,s.jsx)(n.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,s.jsx)(n.p,{children:"XPSNR is a distortion measurement algorithm for video quality assessment, based on the concept of the peak signal to noise ratio (PSNR), tuned to better reflect the human visual system."}),"\n",(0,s.jsxs)(n.p,{children:["XPSNR is considered to be a highly reputable visual quality metric according to its correlation with subjective results relative to its impressive speed.\nUnlike image-first metrics like ",(0,s.jsx)(n.a,{href:"/docs/metrics/SSIMULACRA2",children:"SSIMULACRA2"}),", XPSNR is a video-focused metric, and uses temporal information to compute its score."]}),"\n",(0,s.jsxs)(n.p,{children:["The reference implementation by Fraunhofer HHI is a ",(0,s.jsx)(n.a,{href:"https://github.com/fraunhoferhhi/xpsnr",children:"FFmpeg 7.0 plug-in"}),", and there is a ",(0,s.jsx)(n.a,{href:"https://github.com/gianni-rosato/sxpsnr",children:"community-built standalone implementation"})," available as well.\nFor more details about the algorithm and its design, ",(0,s.jsx)(n.a,{href:"https://www.itu.int/pub/S-JOURNAL-ICTS.V3I1-2020-8",children:"a scientific paper is available"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsx)(n.p,{children:"XPSNR comes as an FFmpeg 7.0 plug-in. The process of installing it is somewhat straightforward:"}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsx)(n.li,{children:"Download the source code for FFmpeg 7.0:"}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"git clone -b release/7.0 https://git.ffmpeg.org/ffmpeg.git ffmpeg\n"})}),"\n",(0,s.jsxs)(n.ol,{start:"2",children:["\n",(0,s.jsx)(n.li,{children:"Download the code for the XPSNR plug-in:"}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/fraunhoferhhi/xpsnr\n"})}),"\n",(0,s.jsxs)(n.ol,{start:"3",children:["\n",(0,s.jsx)(n.li,{children:"Copy the plug-in files from XPSNR's code to FFmpeg's:"}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"cp xpsnr/libavfilter/* ffmpeg/libavfilter/\n"})}),"\n",(0,s.jsxs)(n.ol,{start:"4",children:["\n",(0,s.jsx)(n.li,{children:"Configure and compile FFmpeg:"}),"\n"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"cd ffmpeg\n./configure ...\nmake -j $(nproc)\n"})}),"\n",(0,s.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(n.p,{children:"XPSNR is used as an FFmpeg filter, similarly to the built-in PSNR plugin:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:'./ffmpeg -i ref.mkv -i test.mkv -lavfi xpsnr="stats_file=xpsnr.log" -f null -\n'})}),"\n",(0,s.jsx)(n.h2,{id:"notes",children:"Notes"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["Being the reference implementation an FFmpeg plug-in and not a standalone binary is inconvenient for some workflows.\nCurrently, there are some attempts at making a ",(0,s.jsx)(n.a,{href:"https://github.com/gianni-rosato/sxpsnr",children:"standalone XPSNR binary"}),", although they are not very widespread yet."]}),"\n",(0,s.jsxs)(n.li,{children:["XPSNR uses a PSNR-like scoring system: a logarithmic scale in range 0..inf.\nThis is considerably harder to interpret than other metrics (e.g. ",(0,s.jsx)(n.a,{href:"/docs/metrics/SSIMULACRA2",children:"SSIMULACRA 2"})," or ",(0,s.jsx)(n.a,{href:"/docs/metrics/VMAF",children:"VMAF"}),");\nand the threshold to what constitutes good quality is content-dependent.\n(Preliminary testing seems to indicate that anything above a XPSNR score of 42.00 is visually lossless.)"]}),"\n",(0,s.jsxs)(n.li,{children:['XPSNR scores are computed independently for the luma (Y) and two chroma (U, V) components of videos,\nthus actually providing 3 scores.\nAlthough the developers argue that using the minimum of these 3 scores as "definitive score"\n(i.e. better correlates to human impressions),\nsome people in the community prefer using a weighted sum: ',(0,s.jsx)(n.code,{children:"(4 * XPSNR_Y + XPSNR_U + XPSNR_V) / 6"}),"."]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"comparing-to-ssimulacra-2",children:"Comparing to SSIMULACRA 2"}),"\n",(0,s.jsx)(n.p,{children:"The main advantage of XPSNR over SSIMULACRA 2 is that it is considerably faster to compute.\nXPSNR can achieve real-time speeds for 1080p 24 fps video, making it more convenient to quickly compare test encodes."}),"\n",(0,s.jsx)(n.p,{children:"Regarding their visual assessment capabilities, XPSNR and SSIMULACRA 2 seem to complement each other quite well,\nhaving both their own strong points and weak points with specific video content.\nIf possible, using both at the same time provides great benefits for video quality assessment and comparison."})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>o,x:()=>a});var t=i(6540);const s={},r=t.createContext(s);function o(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/bc32b9c5.ea617b31.js b/assets/js/bc32b9c5.ea617b31.js deleted file mode 100644 index 86d24190d..000000000 --- a/assets/js/bc32b9c5.ea617b31.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[786],{8450:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>h,frontMatter:()=>r,metadata:()=>a,toc:()=>c});var t=i(4848),s=i(8453);const r={title:"XPSNR",sidebar_position:1},o="XPSNR",a={id:"metrics/XPSNR",title:"XPSNR",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/metrics/XPSNR.mdx",sourceDirName:"metrics",slug:"/metrics/XPSNR",permalink:"/docs/metrics/XPSNR",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/metrics/XPSNR.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"XPSNR",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"VMAF",permalink:"/docs/metrics/VMAF"},next:{title:"Butteraugli",permalink:"/docs/metrics/butteraugli"}},l={},c=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Notes",id:"notes",level:2},{value:"Comparing to SSIMULACRA 2",id:"comparing-to-ssimulacra-2",level:2}];function d(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",ul:"ul",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"xpsnr",children:"XPSNR"})}),"\n",(0,t.jsx)(n.admonition,{title:"Under Maintenance",type:"info",children:(0,t.jsx)(n.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,t.jsx)(n.p,{children:"XPSNR is a distortion measurement algorithm for video quality assessment, based on the concept of the peak signal to noise ratio (PSNR), tuned to better reflect the human visual system."}),"\n",(0,t.jsxs)(n.p,{children:["XPSNR is considered to be a highly reputable visual quality metric according to its correlation with subjective results relative to its impressive speed.\nUnlike image-first metrics like ",(0,t.jsx)(n.a,{href:"/docs/metrics/SSIMULACRA2",children:"SSIMULACRA2"}),", XPSNR is a video-focused metric, and uses temporal information to compute its score."]}),"\n",(0,t.jsxs)(n.p,{children:["The reference implementation by Fraunhofer HHI is a ",(0,t.jsx)(n.a,{href:"https://github.com/fraunhoferhhi/xpsnr",children:"FFmpeg 7.0 plug-in"}),", and there is a ",(0,t.jsx)(n.a,{href:"https://github.com/gianni-rosato/sxpsnr",children:"community-built standalone implementation"})," available as well.\nFor more details about the algorithm and its design, ",(0,t.jsx)(n.a,{href:"https://www.itu.int/pub/S-JOURNAL-ICTS.V3I1-2020-8",children:"a scientific paper is available"}),"."]}),"\n",(0,t.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(n.p,{children:"XPSNR comes as an FFmpeg 7.0 plug-in. The process of installing it is somewhat straightforward:"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsx)(n.li,{children:"Download the source code for FFmpeg 7.0:"}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone -b release/7.0 https://git.ffmpeg.org/ffmpeg.git ffmpeg\n"})}),"\n",(0,t.jsxs)(n.ol,{start:"2",children:["\n",(0,t.jsx)(n.li,{children:"Download the code for the XPSNR plug-in:"}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/fraunhoferhhi/xpsnr\n"})}),"\n",(0,t.jsxs)(n.ol,{start:"3",children:["\n",(0,t.jsx)(n.li,{children:"Copy the plug-in files from XPSNR's code to FFmpeg's:"}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"cp xpsnr/libavfilter/* ffmpeg/libavfilter/\n"})}),"\n",(0,t.jsxs)(n.ol,{start:"4",children:["\n",(0,t.jsx)(n.li,{children:"Configure and compile FFmpeg:"}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"cd ffmpeg\n./configure ...\nmake -j $(nproc)\n"})}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsx)(n.p,{children:"XPSNR is used as an FFmpeg filter, similarly to the built-in PSNR plugin:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'./ffmpeg -i ref.mkv -i test.mkv -lavfi xpsnr="stats_file=xpsnr.log" -f null -\n'})}),"\n",(0,t.jsx)(n.h2,{id:"notes",children:"Notes"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Being the reference implementation an FFmpeg plug-in and not a standalone binary is inconvenient for some workflows.\nCurrently, there are some attempts at making a ",(0,t.jsx)(n.a,{href:"https://github.com/gianni-rosato/sxpsnr",children:"standalone XPSNR binary"}),", although they are not very widespread yet."]}),"\n",(0,t.jsxs)(n.li,{children:["XPSNR uses a PSNR-like scoring system: a logarithmic scale in range 0..inf.\nThis is considerably harder to interpret than other metrics (e.g. ",(0,t.jsx)(n.a,{href:"/docs/metrics/SSIMULACRA2",children:"SSIMULACRA 2"})," or ",(0,t.jsx)(n.a,{href:"/docs/metrics/VMAF",children:"VMAF"}),");\nand the threshold to what constitutes good quality is content-dependent.\n(Preliminary testing seems to indicate that anything above a XPSNR score of 42.00 is visually lossless.)"]}),"\n",(0,t.jsxs)(n.li,{children:['XPSNR scores are computed independently for the luma (Y) and two chroma (U, V) components of videos,\nthus actually providing 3 scores.\nAlthough the developers argue that using the minimum of these 3 scores as "definitive score"\n(i.e. better correlates to human impressions),\nsome people in the community prefer using a weighted sum: ',(0,t.jsx)(n.code,{children:"(4 * XPSNR_Y + XPSNR_U + XPSNR_V) / 6"}),"."]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"comparing-to-ssimulacra-2",children:"Comparing to SSIMULACRA 2"}),"\n",(0,t.jsx)(n.p,{children:"The main advantage of XPSNR over SSIMULACRA 2 is that it is considerably faster to compute.\nXPSNR can achieve real-time speeds for 1080p 24 fps video, making it more convenient to quickly compare test encodes."}),"\n",(0,t.jsx)(n.p,{children:"Regarding their visual assessment capabilities, XPSNR and SSIMULACRA 2 seem to complement each other quite well,\nhaving both their own strong points and weak points with specific video content.\nIf possible, using both at the same time provides great benefits for video quality assessment and comparison."})]})}function h(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>o,x:()=>a});var t=i(6540);const s={},r=t.createContext(s);function o(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/bd173b27.2ce9d3ca.js b/assets/js/bd173b27.2ce9d3ca.js new file mode 100644 index 000000000..9e765c482 --- /dev/null +++ b/assets/js/bd173b27.2ce9d3ca.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1651],{3004:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>r,metadata:()=>n,toc:()=>l});const n=JSON.parse('{"id":"data/xz","title":"xz","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/data/xz.mdx","sourceDirName":"data","slug":"/data/xz","permalink":"/docs/data/xz","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/xz.mdx","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"title":"xz","sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"7z","permalink":"/docs/data/7z"},"next":{"title":"brotli","permalink":"/docs/data/brotli"}}');var t=s(4848),o=s(8453);const r={title:"xz",sidebar_position:5},a="XZ",d={},l=[{value:"Usage",id:"usage",level:2},{value:"Compression",id:"compression",level:3},{value:"Decompression",id:"decompression",level:3}];function c(e){const i={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"xz",children:"XZ"})}),"\n",(0,t.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsxs)(i.p,{children:["XZ is a data compression format and utility based on the Lempel-Ziv-Markov Chain Algorithm (LZMA). The XZ format itself is an improvement on LZMA, allowing for preprocessing filters similar to ",(0,t.jsx)(i.a,{href:"/docs/data/7z",children:"7-zip"})," to increase the resulting archive's compression ratio."]}),"\n",(0,t.jsxs)(i.p,{children:["XZ can only compress one file at a time, so making a ",(0,t.jsx)(i.a,{href:"/docs/data/tar",children:"tar"})," archive of the files you'd like to compress (if there are multiple) is necessary when using XZ."]}),"\n",(0,t.jsx)(i.p,{children:"XZ is more widely supported when compared to other data compression formats, seeing support across iOS, macOS, and many Linux distributions by default. To decompress & compress XZ on Windows, you will likely need the 7-Zip archive utility."}),"\n",(0,t.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsxs)(i.p,{children:["This usage is for the ",(0,t.jsx)(i.code,{children:"xz"})," utility on linux, but is applicable to other platforms where xz can be used. It should be noted that ",(0,t.jsx)(i.code,{children:"xz"}),"'s default behavior is to delete the original file after it has completed the relevant compression or decompression operation, but this can be stopped with the flag below. An arbitary number of files may be passed to xz and it will individually complete the specified operation on each given file."]}),"\n",(0,t.jsx)(i.h3,{id:"compression",children:"Compression"}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",children:"xz {file}\n"})}),"\n",(0,t.jsxs)(i.p,{children:["This will result in a file named ",(0,t.jsx)(i.code,{children:"{file}.xz"})," being created in the current working directory."]}),"\n",(0,t.jsx)(i.p,{children:"A more advanced variant is listed here:"}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",children:"xz -# --extreme -M 800Mib -T 2 -k {file}\n"})}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"-#"})," is a number between 0 and 9 specifying speed presets, 0 being the fastest and 9 slowest."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"--extreme"})," is an option allowing xz to use more time than the standard preset level."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"-M {size}"})," is an option restricting the memory usage of ",(0,t.jsx)(i.code,{children:"xz"})," either as a percentage of system memory or an absolute amount."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"-T {threads}"})," is an option restricting the number of threads used by ",(0,t.jsx)(i.code,{children:"xz"}),"."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"-k"})," prevents xz from deleting the input file."]}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"decompression",children:"Decompression"}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",children:"xz -d {file}.xz\n"})}),"\n",(0,t.jsx)(i.p,{children:"This decompresses the xz archive to it's original file."}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"-M {size}"})," is an option restricting the memory usage of ",(0,t.jsx)(i.code,{children:"xz"})," either as a percentage of system memory or an absolute amount."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"-T {threads}"})," is an option restricting the number of threads used by ",(0,t.jsx)(i.code,{children:"xz"}),"."]}),"\n",(0,t.jsxs)(i.li,{children:[(0,t.jsx)(i.code,{children:"-k"})," prevents xz from deleting the input file."]}),"\n"]})]})}function h(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},8453:(e,i,s)=>{s.d(i,{R:()=>r,x:()=>a});var n=s(6540);const t={},o=n.createContext(t);function r(e){const i=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),n.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/bd173b27.fb7135b6.js b/assets/js/bd173b27.fb7135b6.js deleted file mode 100644 index f20954b18..000000000 --- a/assets/js/bd173b27.fb7135b6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1651],{4646:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>d,contentTitle:()=>r,default:()=>h,frontMatter:()=>o,metadata:()=>a,toc:()=>l});var s=n(4848),t=n(8453);const o={title:"xz",sidebar_position:5},r="XZ",a={id:"data/xz",title:"xz",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/data/xz.mdx",sourceDirName:"data",slug:"/data/xz",permalink:"/docs/data/xz",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/xz.mdx",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"xz",sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"7z",permalink:"/docs/data/7z"},next:{title:"brotli",permalink:"/docs/data/brotli"}},d={},l=[{value:"Usage",id:"usage",level:2},{value:"Compression",id:"compression",level:3},{value:"Decompression",id:"decompression",level:3}];function c(e){const i={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"xz",children:"XZ"})}),"\n",(0,s.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,s.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,s.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,s.jsxs)(i.p,{children:["XZ is a data compression format and utility based on the Lempel-Ziv-Markov Chain Algorithm (LZMA). The XZ format itself is an improvement on LZMA, allowing for preprocessing filters similar to ",(0,s.jsx)(i.a,{href:"/docs/data/7z",children:"7-zip"})," to increase the resulting archive's compression ratio."]}),"\n",(0,s.jsxs)(i.p,{children:["XZ can only compress one file at a time, so making a ",(0,s.jsx)(i.a,{href:"/docs/data/tar",children:"tar"})," archive of the files you'd like to compress (if there are multiple) is necessary when using XZ."]}),"\n",(0,s.jsx)(i.p,{children:"XZ is more widely supported when compared to other data compression formats, seeing support across iOS, macOS, and many Linux distributions by default. To decompress & compress XZ on Windows, you will likely need the 7-Zip archive utility."}),"\n",(0,s.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsxs)(i.p,{children:["This usage is for the ",(0,s.jsx)(i.code,{children:"xz"})," utility on linux, but is applicable to other platforms where xz can be used. It should be noted that ",(0,s.jsx)(i.code,{children:"xz"}),"'s default behavior is to delete the original file after it has completed the relevant compression or decompression operation, but this can be stopped with the flag below. An arbitary number of files may be passed to xz and it will individually complete the specified operation on each given file."]}),"\n",(0,s.jsx)(i.h3,{id:"compression",children:"Compression"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-bash",children:"xz {file}\n"})}),"\n",(0,s.jsxs)(i.p,{children:["This will result in a file named ",(0,s.jsx)(i.code,{children:"{file}.xz"})," being created in the current working directory."]}),"\n",(0,s.jsx)(i.p,{children:"A more advanced variant is listed here:"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-bash",children:"xz -# --extreme -M 800Mib -T 2 -k {file}\n"})}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"-#"})," is a number between 0 and 9 specifying speed presets, 0 being the fastest and 9 slowest."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"--extreme"})," is an option allowing xz to use more time than the standard preset level."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"-M {size}"})," is an option restricting the memory usage of ",(0,s.jsx)(i.code,{children:"xz"})," either as a percentage of system memory or an absolute amount."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"-T {threads}"})," is an option restricting the number of threads used by ",(0,s.jsx)(i.code,{children:"xz"}),"."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"-k"})," prevents xz from deleting the input file."]}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"decompression",children:"Decompression"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-bash",children:"xz -d {file}.xz\n"})}),"\n",(0,s.jsx)(i.p,{children:"This decompresses the xz archive to it's original file."}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"-M {size}"})," is an option restricting the memory usage of ",(0,s.jsx)(i.code,{children:"xz"})," either as a percentage of system memory or an absolute amount."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"-T {threads}"})," is an option restricting the number of threads used by ",(0,s.jsx)(i.code,{children:"xz"}),"."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"-k"})," prevents xz from deleting the input file."]}),"\n"]})]})}function h(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>r,x:()=>a});var s=n(6540);const t={},o=s.createContext(t);function r(e){const i=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),s.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/be236901.1119a8ec.js b/assets/js/be236901.1119a8ec.js deleted file mode 100644 index 2770dfaba..000000000 --- a/assets/js/be236901.1119a8ec.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6795],{7090:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>s,default:()=>h,frontMatter:()=>r,metadata:()=>l,toc:()=>a});var t=i(4848),o=i(8453);const r={title:"Contribution Guide",sidebar_label:"\u2712\ufe0f Contribution Guide",sidebar_position:13},s="Contribution Guide",l={id:"contribution-guide",title:"Contribution Guide",description:"Codec Wiki - community-maintained wiki for all things encoding.",source:"@site/docs/contribution-guide.mdx",sourceDirName:".",slug:"/contribution-guide",permalink:"/docs/contribution-guide",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/contribution-guide.mdx",tags:[],version:"current",sidebarPosition:13,frontMatter:{title:"Contribution Guide",sidebar_label:"\u2712\ufe0f Contribution Guide",sidebar_position:13},sidebar:"tutorialSidebar",previous:{title:"\ud83d\uddc3\ufe0f Resources",permalink:"/docs/resources"},next:{title:"\u2753 FAQ",permalink:"/docs/FAQ"}},c={},a=[{value:"Before You Contribute",id:"before-you-contribute",level:2},{value:"Connect With Us",id:"connect-with-us",level:3},{value:"Clone & Push Instructions",id:"clone--push-instructions",level:2},{value:"Website",id:"website",level:2},{value:"Installation",id:"installation",level:3},{value:"Local Development",id:"local-development",level:3},{value:"Build",id:"build",level:3},{value:"Deployment",id:"deployment",level:3}];function d(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"contribution-guide",children:"Contribution Guide"})}),"\n",(0,t.jsx)(n.p,{children:"Codec Wiki - community-maintained wiki for all things encoding."}),"\n",(0,t.jsx)(n.h2,{id:"before-you-contribute",children:"Before You Contribute"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsx)(n.li,{children:"By contributing to the Codec Wiki, you are communicating that you have read & agreed to our Terms & Conditions, Privacy Policy, & Code of Conduct."}),"\n",(0,t.jsx)(n.li,{children:"Ensure your understanding of the material you're contributing is sufficient to a point where it is useful to the project. It is perfectly acceptable not to get everything right the first time, but always double-check your contributions for factual correctness."}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Our current priority is filling out the existing pages with content. Please assist in doing this, if possible, before considering adding new pages."})}),"\n",(0,t.jsx)(n.p,{children:"If you're unsure the content in your entry is completely correct or you believe your entry needs review, please attach the following message at the top of your entry:"}),"\n",(0,t.jsx)(n.admonition,{title:"Pending Review",type:"caution",children:(0,t.jsx)(n.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,t.jsx)(n.p,{children:"If you're aware your entry is too short or incomplete, please add the following message to the top of your entry:"}),"\n",(0,t.jsx)(n.admonition,{title:"Under Maintenance",type:"info",children:(0,t.jsx)(n.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,t.jsx)(n.p,{children:"If you've added a new page & you aren't sure what should go there (this isn't recommended while there are still so many empty pages to be filled), add the following message as your page entry:"}),"\n",(0,t.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsx)(n.h3,{id:"connect-with-us",children:"Connect With Us"}),"\n",(0,t.jsx)(n.p,{children:'If you\'d like to join the "AV1 for Dummies" Discord server to communicate with other passionate contributors helping this project, please join using the widget below:'}),"\n",(0,t.jsx)("iframe",{src:"https://discord.com/widget?id=1163724583472472138&theme=dark",width:"350",height:"500",allowtransparency:"true",frameborder:"0",sandbox:"allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"}),"\n",(0,t.jsxs)(n.p,{children:["Alternatively, we have a (soon to be) bridged Revolt server linked ",(0,t.jsx)(n.a,{href:"https://rvlt.gg/eSERRhSG",children:"right here"}),". Revolt is an open-source Discord alternative, which you can read more about on ",(0,t.jsx)(n.a,{href:"https://github.com/revoltchat/legal/blob/master/About.mdx#communication-is-critical",children:"this page"}),"."]}),"\n",(0,t.jsx)(n.h2,{id:"clone--push-instructions",children:"Clone & Push Instructions"}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.strong,{children:"Make sure to clone from & edit the"})," ",(0,t.jsx)(n.code,{children:"main"})," ",(0,t.jsx)(n.strong,{children:"branch only, & push your final changes to the"})," ",(0,t.jsx)(n.code,{children:"deployment"})," ",(0,t.jsx)(n.strong,{children:"branch according to the instructions below. Also be sure to use node 18 LTS, as later versions tend to be troublesome."})]}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.em,{children:"don't forget to add unimportant files to the .gitignore before making any commits"})}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["Clone from the ",(0,t.jsx)(n.code,{children:"main"})," branch to start to make a contribution:"]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"% git clone git@github.com:av1-community-contributors/av1-wiki.github.io.git -b main\n"})}),"\n",(0,t.jsxs)(n.ol,{start:"2",children:["\n",(0,t.jsx)(n.li,{children:"Test your changes locally before making a commit:"}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"% yarn\n% yarn start\n"})}),"\n",(0,t.jsxs)(n.ol,{start:"3",children:["\n",(0,t.jsxs)(n.li,{children:["Push changes to ",(0,t.jsx)(n.code,{children:"main"})," branch:"]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'% git add .\n% git commit -m "Commit Message"\n% git push -u origin main\n'})}),"\n",(0,t.jsxs)(n.ol,{start:"4",children:["\n",(0,t.jsxs)(n.li,{children:["Deploy to ",(0,t.jsx)(n.code,{children:"deployment"})," branch to make live on site:"]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"% GIT_USER= DEPLOYMENT_BRANCH=deployment yarn deploy\n"})}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.em,{children:"Docusaurus Info"})}),"\n",(0,t.jsx)(n.h2,{id:"website",children:"Website"}),"\n",(0,t.jsxs)(n.p,{children:["This website is built using ",(0,t.jsx)(n.a,{href:"https://docusaurus.io/",children:"Docusaurus 3"}),", a modern static website generator."]}),"\n",(0,t.jsx)(n.h3,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{children:"$ yarn\n"})}),"\n",(0,t.jsx)(n.h3,{id:"local-development",children:"Local Development"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{children:"$ yarn start\n"})}),"\n",(0,t.jsx)(n.p,{children:"This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server."}),"\n",(0,t.jsx)(n.h3,{id:"build",children:"Build"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{children:"$ yarn build\n"})}),"\n",(0,t.jsxs)(n.p,{children:["This command generates static content into the ",(0,t.jsx)(n.code,{children:"build"})," directory and can be served using any static contents hosting service."]}),"\n",(0,t.jsx)(n.h3,{id:"deployment",children:"Deployment"}),"\n",(0,t.jsx)(n.p,{children:"See the initial instructions at the top."})]})}function h(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>l});var t=i(6540);const o={},r=t.createContext(o);function s(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/be236901.b34449f2.js b/assets/js/be236901.b34449f2.js new file mode 100644 index 000000000..2e02ef7e9 --- /dev/null +++ b/assets/js/be236901.b34449f2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6795],{4317:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>h,frontMatter:()=>s,metadata:()=>t,toc:()=>a});const t=JSON.parse('{"id":"contribution-guide","title":"Contribution Guide","description":"Codec Wiki - community-maintained wiki for all things encoding.","source":"@site/docs/contribution-guide.mdx","sourceDirName":".","slug":"/contribution-guide","permalink":"/docs/contribution-guide","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/contribution-guide.mdx","tags":[],"version":"current","sidebarPosition":13,"frontMatter":{"title":"Contribution Guide","sidebar_label":"\u2712\ufe0f Contribution Guide","sidebar_position":13},"sidebar":"tutorialSidebar","previous":{"title":"\ud83d\uddc3\ufe0f Resources","permalink":"/docs/resources"},"next":{"title":"\u2753 FAQ","permalink":"/docs/FAQ"}}');var o=i(4848),r=i(8453);const s={title:"Contribution Guide",sidebar_label:"\u2712\ufe0f Contribution Guide",sidebar_position:13},l="Contribution Guide",c={},a=[{value:"Before You Contribute",id:"before-you-contribute",level:2},{value:"Connect With Us",id:"connect-with-us",level:3},{value:"Clone & Push Instructions",id:"clone--push-instructions",level:2},{value:"Website",id:"website",level:2},{value:"Installation",id:"installation",level:3},{value:"Local Development",id:"local-development",level:3},{value:"Build",id:"build",level:3},{value:"Deployment",id:"deployment",level:3}];function d(e){const n={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"contribution-guide",children:"Contribution Guide"})}),"\n",(0,o.jsx)(n.p,{children:"Codec Wiki - community-maintained wiki for all things encoding."}),"\n",(0,o.jsx)(n.h2,{id:"before-you-contribute",children:"Before You Contribute"}),"\n",(0,o.jsxs)(n.ol,{children:["\n",(0,o.jsx)(n.li,{children:"By contributing to the Codec Wiki, you are communicating that you have read & agreed to our Terms & Conditions, Privacy Policy, & Code of Conduct."}),"\n",(0,o.jsx)(n.li,{children:"Ensure your understanding of the material you're contributing is sufficient to a point where it is useful to the project. It is perfectly acceptable not to get everything right the first time, but always double-check your contributions for factual correctness."}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.strong,{children:"Our current priority is filling out the existing pages with content. Please assist in doing this, if possible, before considering adding new pages."})}),"\n",(0,o.jsx)(n.p,{children:"If you're unsure the content in your entry is completely correct or you believe your entry needs review, please attach the following message at the top of your entry:"}),"\n",(0,o.jsx)(n.admonition,{title:"Pending Review",type:"caution",children:(0,o.jsx)(n.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,o.jsx)(n.p,{children:"If you're aware your entry is too short or incomplete, please add the following message to the top of your entry:"}),"\n",(0,o.jsx)(n.admonition,{title:"Under Maintenance",type:"info",children:(0,o.jsx)(n.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,o.jsx)(n.p,{children:"If you've added a new page & you aren't sure what should go there (this isn't recommended while there are still so many empty pages to be filled), add the following message as your page entry:"}),"\n",(0,o.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsx)(n.h3,{id:"connect-with-us",children:"Connect With Us"}),"\n",(0,o.jsx)(n.p,{children:'If you\'d like to join the "AV1 for Dummies" Discord server to communicate with other passionate contributors helping this project, please join using the widget below:'}),"\n",(0,o.jsx)("iframe",{src:"https://discord.com/widget?id=1163724583472472138&theme=dark",width:"350",height:"500",allowtransparency:"true",frameborder:"0",sandbox:"allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"}),"\n",(0,o.jsxs)(n.p,{children:["Alternatively, we have a (soon to be) bridged Revolt server linked ",(0,o.jsx)(n.a,{href:"https://rvlt.gg/eSERRhSG",children:"right here"}),". Revolt is an open-source Discord alternative, which you can read more about on ",(0,o.jsx)(n.a,{href:"https://github.com/revoltchat/legal/blob/master/About.mdx#communication-is-critical",children:"this page"}),"."]}),"\n",(0,o.jsx)(n.h2,{id:"clone--push-instructions",children:"Clone & Push Instructions"}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.strong,{children:"Make sure to clone from & edit the"})," ",(0,o.jsx)(n.code,{children:"main"})," ",(0,o.jsx)(n.strong,{children:"branch only, & push your final changes to the"})," ",(0,o.jsx)(n.code,{children:"deployment"})," ",(0,o.jsx)(n.strong,{children:"branch according to the instructions below. Also be sure to use node 18 LTS, as later versions tend to be troublesome."})]}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.em,{children:"don't forget to add unimportant files to the .gitignore before making any commits"})}),"\n",(0,o.jsxs)(n.ol,{children:["\n",(0,o.jsxs)(n.li,{children:["Clone from the ",(0,o.jsx)(n.code,{children:"main"})," branch to start to make a contribution:"]}),"\n"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"% git clone git@github.com:av1-community-contributors/av1-wiki.github.io.git -b main\n"})}),"\n",(0,o.jsxs)(n.ol,{start:"2",children:["\n",(0,o.jsx)(n.li,{children:"Test your changes locally before making a commit:"}),"\n"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"% yarn\n% yarn start\n"})}),"\n",(0,o.jsxs)(n.ol,{start:"3",children:["\n",(0,o.jsxs)(n.li,{children:["Push changes to ",(0,o.jsx)(n.code,{children:"main"})," branch:"]}),"\n"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:'% git add .\n% git commit -m "Commit Message"\n% git push -u origin main\n'})}),"\n",(0,o.jsxs)(n.ol,{start:"4",children:["\n",(0,o.jsxs)(n.li,{children:["Deploy to ",(0,o.jsx)(n.code,{children:"deployment"})," branch to make live on site:"]}),"\n"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"% GIT_USER= DEPLOYMENT_BRANCH=deployment yarn deploy\n"})}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.em,{children:"Docusaurus Info"})}),"\n",(0,o.jsx)(n.h2,{id:"website",children:"Website"}),"\n",(0,o.jsxs)(n.p,{children:["This website is built using ",(0,o.jsx)(n.a,{href:"https://docusaurus.io/",children:"Docusaurus 3"}),", a modern static website generator."]}),"\n",(0,o.jsx)(n.h3,{id:"installation",children:"Installation"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{children:"$ yarn\n"})}),"\n",(0,o.jsx)(n.h3,{id:"local-development",children:"Local Development"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{children:"$ yarn start\n"})}),"\n",(0,o.jsx)(n.p,{children:"This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server."}),"\n",(0,o.jsx)(n.h3,{id:"build",children:"Build"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{children:"$ yarn build\n"})}),"\n",(0,o.jsxs)(n.p,{children:["This command generates static content into the ",(0,o.jsx)(n.code,{children:"build"})," directory and can be served using any static contents hosting service."]}),"\n",(0,o.jsx)(n.h3,{id:"deployment",children:"Deployment"}),"\n",(0,o.jsx)(n.p,{children:"See the initial instructions at the top."})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>l});var t=i(6540);const o={},r=t.createContext(o);function s(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/bf9d09b6.3ec2a4e8.js b/assets/js/bf9d09b6.3ec2a4e8.js deleted file mode 100644 index f83036e94..000000000 --- a/assets/js/bf9d09b6.3ec2a4e8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8270],{6491:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>o,contentTitle:()=>c,default:()=>j,frontMatter:()=>l,metadata:()=>h,toc:()=>a});var n=r(4848),s=r(8453),i=r(1470),d=r(9365);const l={title:"SVT-HEVC",sidebar_position:10},c="SVT-HEVC",h={id:"encoders/SVT-HEVC",title:"SVT-HEVC",description:'SVT-HEVC (Scalable Video Technology for HEVC) is an open source H.265 / HEVC software encoder developed by Intel made specifically to only support x86. As the name suggests, it is part of the "Scalable Video Technology" project lineup by Intel.',source:"@site/docs/encoders/SVT-HEVC.mdx",sourceDirName:"encoders",slug:"/encoders/SVT-HEVC",permalink:"/docs/encoders/SVT-HEVC",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/SVT-HEVC.mdx",tags:[],version:"current",sidebarPosition:10,frontMatter:{title:"SVT-HEVC",sidebar_position:10},sidebar:"tutorialSidebar",previous:{title:"SVT-VP9",permalink:"/docs/encoders/SVT-VP9"},next:{title:"Kvazaar",permalink:"/docs/encoders/Kvazaar"}},o={},a=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Normal usage",id:"normal-usage",level:3},{value:"Encoding HDR",id:"encoding-hdr",level:3},{value:"Encoding with Dolby Vision",id:"encoding-with-dolby-vision",level:3},{value:"List of all configuration parameters",id:"list-of-all-configuration-parameters",level:2}];function x(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"svt-hevc",children:"SVT-HEVC"})}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.a,{href:"https://github.com/OpenVisualCloud/SVT-HEVC",children:"SVT-HEVC"})," (Scalable Video Technology for HEVC) is an open source ",(0,n.jsx)(t.a,{href:"/docs/video/HEVC",children:"H.265 / HEVC"})," software encoder developed by Intel made specifically to ",(0,n.jsx)(t.strong,{children:"only support x86"}),'. As the name suggests, it is part of the "',(0,n.jsx)(t.a,{href:"https://www.intel.com/content/www/us/en/developer/articles/technical/scalable-video-technology.html",children:"Scalable Video Technology"}),'" project lineup by Intel.']}),"\n",(0,n.jsxs)(t.p,{children:["The encoder is written in C with some parts in Assembly and licensed under ",(0,n.jsx)(t.strong,{children:"BSD+Patent"}),"."]}),"\n",(0,n.jsx)(t.admonition,{type:"info",children:(0,n.jsxs)(t.p,{children:["It is recommended to use ",(0,n.jsx)(t.a,{href:"/docs/encoders/x265",children:"x265"})," instead as it performs much better in quality."]})}),"\n",(0,n.jsx)(t.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,n.jsxs)(t.p,{children:["SVT-HEVC is only available in FFmpeg when it is compiled with their provided ",(0,n.jsx)(t.a,{href:"https://github.com/OpenVisualCloud/SVT-HEVC/tree/master/ffmpeg_plugin",children:"plugin"}),". Otherwise it is via ",(0,n.jsx)(t.code,{children:"libsvt_hevc"}),", to check if you have it, run ",(0,n.jsx)(t.code,{children:"ffmpeg -h encoder=libsvt_hevc"}),"."]}),"\n",(0,n.jsx)(t.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,n.jsx)(t.p,{children:"SVT-HEVC supports the following color spaces:"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Format"}),(0,n.jsx)(t.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,n.jsx)(t.th,{children:"Supported Bit Depth(s)"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV420P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(t.td,{children:"8-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV420P10LE"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(t.td,{children:"10-bit"})]})]})]}),"\n",(0,n.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,n.jsxs)(i.A,{children:[(0,n.jsxs)(d.A,{value:"unixlike",label:"Linux & macOS",children:[(0,n.jsx)(t.p,{children:"To build SVT-AV1 from source, first clone the SVT-HEVC repository & enter the build directory."}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Clone SVT-HEVC and cd"',children:"git clone https://github.com/OpenVisualCloud/SVT-HEVC\ncd SVT-HEVC/Build/linux\n"})}),(0,n.jsxs)(t.p,{children:["In the directory, simply run ",(0,n.jsx)(t.code,{children:"./build.sh [flags]"})," to build. Be aware that building requires CMake version 3.5.1 or higher and either GCC or Clang. It is recommended to use Clang when building SVT-HEVC."]}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Build release"',children:"./build.sh release\n"})}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Statically build release"',children:"./build.sh static release\n"})}),(0,n.jsxs)(t.p,{children:["The compiled binaries will be in the ",(0,n.jsx)(t.code,{children:"Bin/Release"})," directory."]})]}),(0,n.jsx)(d.A,{value:"windows",label:"Windows",children:(0,n.jsxs)(t.p,{children:["To be filled. If you believe you can help, see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"}),"."]})})]}),"\n",(0,n.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsx)(t.h3,{id:"normal-usage",children:"Normal usage"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Simple Y4M input with QP 20, and raw 265 bitstream output"',children:"SvtHevcEncApp -i input.y4m -q 20 -b output.265\n"})}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Preset 4, CRF 20, Y4M input"',children:"SvtHevcEncApp -i input.y4m -q 20 -encMode 4 -b output.265\n"})}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="FFmpeg piping"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | SvtHevcEncApp -i stdin -q 20 -encMode 4 -b output.265\n"})}),"\n",(0,n.jsx)(t.admonition,{type:"danger",children:(0,n.jsxs)(t.p,{children:["SVT-HEVC currently does not have the ability to detect EOF (End of File) within Y4M pipes (",(0,n.jsx)(t.a,{href:"https://github.com/OpenVisualCloud/SVT-HEVC/issues/634#issuecomment-1434911798",children:"issue"}),"), so the encode process will go on indefinitely until your drive is full.\nThe only known solution is to manually set the number of frames to encode via ",(0,n.jsx)(t.code,{children:"-n"}),"."]})}),"\n",(0,n.jsx)(t.h3,{id:"encoding-hdr",children:"Encoding HDR"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"SvtHevcEncApp -i input.y4m -q 20 -encMode 4 -hdr -max-cll XXX -max-fall XXX -master-display G(0.265,0.690)B(0.150,0.060)R(0.680,0.320)WP(0.3127,0.3290)L(1000,0.0100) -b output.265\n"})}),"\n",(0,n.jsx)(t.p,{children:"Remember sure to adjust the HDR metadata accordingly."}),"\n",(0,n.jsx)(t.h3,{id:"encoding-with-dolby-vision",children:"Encoding with Dolby Vision"}),"\n",(0,n.jsx)(t.p,{children:"The ability to encode with Dolby Vision via RPU file is surprisingly present within SVT-HEVC, although it is limited to Profile 8.1."}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"SvtHevcEncApp -i input.y4m -q 20 -encMode 4 -hdr -dolby-vision-rpu RPUFile.bin -dolby-vision-profile 81 -max-cll XXX -max-fall XXX -master-display G(0.265,0.690)B(0.150,0.060)R(0.680,0.320)WP(0.3127,0.3290)L(1000,0.0100) -b output.265\n"})}),"\n",(0,n.jsx)(t.p,{children:"Remember sure to adjust the HDR metadata accordingly."}),"\n",(0,n.jsx)(t.h2,{id:"list-of-all-configuration-parameters",children:"List of all configuration parameters"}),"\n",(0,n.jsxs)(t.p,{children:['As with every SVT line-up, they redirect you to read their "User Guide" instead of presenting what each and every parameter do in the ',(0,n.jsx)(t.code,{children:"--help"})," page.\nThe table below is an exact copy from their user guide taken from ",(0,n.jsx)(t.a,{href:"https://github.com/OpenVisualCloud/SVT-HEVC/blob/master/Docs/svt-hevc_encoder_user_guide.md",children:"GitHub"})," for backup purposes. Feel free to read them."]}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:(0,n.jsx)(t.strong,{children:"Encoder Parameter as shown in the configuration file"})}),(0,n.jsx)(t.th,{children:(0,n.jsx)(t.strong,{children:"Command Line parameter"})}),(0,n.jsx)(t.th,{children:(0,n.jsx)(t.strong,{children:"Range"})}),(0,n.jsx)(t.th,{children:(0,n.jsx)(t.strong,{children:"Default"})}),(0,n.jsx)(t.th,{children:(0,n.jsx)(t.strong,{children:"Description"})})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"Channel Number"})}),(0,n.jsx)(t.td,{children:"-nch"}),(0,n.jsx)(t.td,{children:"[1 - 6]"}),(0,n.jsx)(t.td,{children:"1"}),(0,n.jsx)(t.td,{children:"Number of encode instances"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"ConfigFile"})}),(0,n.jsx)(t.td,{children:"-c"}),(0,n.jsx)(t.td,{children:"any string"}),(0,n.jsx)(t.td,{children:"null"}),(0,n.jsx)(t.td,{children:"Configuration file path"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"InputFile"})}),(0,n.jsx)(t.td,{children:"-i"}),(0,n.jsx)(t.td,{children:"any string"}),(0,n.jsx)(t.td,{children:"null"}),(0,n.jsx)(t.td,{children:"Input file path and name"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"StreamFile"})}),(0,n.jsx)(t.td,{children:"-b"}),(0,n.jsx)(t.td,{children:"any string"}),(0,n.jsx)(t.td,{children:"null"}),(0,n.jsx)(t.td,{children:"Output bitstream file path and name"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"ErrorFile"})}),(0,n.jsx)(t.td,{children:"-errlog"}),(0,n.jsx)(t.td,{children:"any string"}),(0,n.jsx)(t.td,{children:"stderr"}),(0,n.jsx)(t.td,{children:"Error log displaying configuration or encode errors"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"ReconFile"})}),(0,n.jsx)(t.td,{children:"-o"}),(0,n.jsx)(t.td,{children:"any string"}),(0,n.jsx)(t.td,{children:"null"}),(0,n.jsxs)(t.td,{children:["Output reconstructed yuv used for debug purposes. ",(0,n.jsx)(t.strong,{children:"Note:"})," using this feature will affect the speed of the encoder significantly. This should only be used for debugging purposes."]})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"UseQpFile"})}),(0,n.jsx)(t.td,{children:"-use-q-file"}),(0,n.jsx)(t.td,{children:"[0, 1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"When set to 1, overwrite the picture qp assignment using qp values in QpFile"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"QpFile"})}),(0,n.jsx)(t.td,{children:"-qp-file"}),(0,n.jsx)(t.td,{children:"any string"}),(0,n.jsx)(t.td,{children:"null"}),(0,n.jsx)(t.td,{children:"Path to qp file"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"SegmentOvFile"})}),(0,n.jsx)(t.td,{children:"-segment-ov-file"}),(0,n.jsx)(t.td,{children:"any string"}),(0,n.jsx)(t.td,{children:"null"}),(0,n.jsx)(t.td,{children:"Path to segment override file which will allow for sharpness improvement and bit rate reduction on a per segment basis. Refer to config/SVTSegmentOvFile.txt for details."})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"EncoderMode"})}),(0,n.jsx)(t.td,{children:"-encMode"}),(0,n.jsx)(t.td,{children:"[0 - 11]"}),(0,n.jsx)(t.td,{children:"7"}),(0,n.jsx)(t.td,{children:"A preset defining the quality vs density tradeoff point that the encoding is to be performed at. (e.g. 0 is the highest quality mode, 11 is the highest density mode). Section 3.4 outlines the preset availability per resolution"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"EncoderBitDepth"})}),(0,n.jsx)(t.td,{children:"-bit-depth"}),(0,n.jsx)(t.td,{children:"[8, 10]"}),(0,n.jsx)(t.td,{children:"8"}),(0,n.jsx)(t.td,{children:"Specifies the bit depth of input video"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"EncoderColorFormat"})}),(0,n.jsx)(t.td,{children:"-color-format"}),(0,n.jsx)(t.td,{children:"[1, 2, 3]"}),(0,n.jsx)(t.td,{children:"1"}),(0,n.jsx)(t.td,{children:"Specifies the chroma subsampling of input video(1: 420, 2: 422, 3: 444)"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"CompressedTenBitFormat"})}),(0,n.jsx)(t.td,{children:"-compressed-ten-bit-format"}),(0,n.jsx)(t.td,{children:"[0, 1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Offline packing of the 2bits: requires two bits packed input (0: OFF, 1: ON)"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"SourceWidth"})}),(0,n.jsx)(t.td,{children:"-w"}),(0,n.jsx)(t.td,{children:"[64 - 8192]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Input source width"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"SourceHeight"})}),(0,n.jsx)(t.td,{children:"-h"}),(0,n.jsx)(t.td,{children:"[64 - 4320]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Input source height"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"FrameToBeEncoded"})}),(0,n.jsx)(t.td,{children:"-n"}),(0,n.jsx)(t.td,{children:"[0 - 2^31 -1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Number of frames to be encoded, if number of frames is > number of frames in file, the encoder will loop to the beginning and continue the encode. 0 encodes the full clip."})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"BufferedInput"})}),(0,n.jsx)(t.td,{children:"-nb"}),(0,n.jsx)(t.td,{children:"[-1, 1 to 2^31 -1]"}),(0,n.jsx)(t.td,{children:"-1"}),(0,n.jsx)(t.td,{children:"number of frames to preload to the RAM before the start of the encode. If -nb = 100 and \u2013n 1000 --\x3e the encoder will encode the first 100 frames of the video 10 times. Use -1 to not preload any frames. This parameter is best used to eliminate the impact of disk reading on encoding speed and is most noticeable when frames sizes are 4k or 8k. Because frames are repeated when value specified (-nb) is less than the total frame count (-n), you should expect bitstreams to be different."})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"Profile"})}),(0,n.jsx)(t.td,{children:"-profile"}),(0,n.jsx)(t.td,{children:"[1,2]"}),(0,n.jsx)(t.td,{children:"2"}),(0,n.jsx)(t.td,{children:"1: Main, 2: Main 10"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"Tier"})}),(0,n.jsx)(t.td,{children:"-tier"}),(0,n.jsx)(t.td,{children:"[0, 1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"0: Main, 1: High"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"Level"})}),(0,n.jsx)(t.td,{children:"-level"}),(0,n.jsx)(t.td,{children:"[1, 2, 2.1,3, 3.1, 4, 4.1, 5, 5.1, 5.2, 6, 6.1, 6.2]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"0 to 6.2 [0 for auto determine Level]"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"FrameRate"})}),(0,n.jsx)(t.td,{children:"-fps"}),(0,n.jsx)(t.td,{children:"[0 - 2^64 -1]"}),(0,n.jsx)(t.td,{children:"60"}),(0,n.jsx)(t.td,{children:"If the number is less than 1000, the input frame rate is an integer number between 1 and 60, else the input number is in Q16 format (shifted by 16 bits) [Max allowed is 240 fps]. If FrameRateNumerator and FrameRateDenominator are both !=0 the encoder will ignore this parameter"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"FrameRateNumerator"})}),(0,n.jsx)(t.td,{children:"-fps-num"}),(0,n.jsx)(t.td,{children:"[0 - 2^64 -1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Frame rate numerator e.g. 6000 When zero, the encoder will use \u2013fps if FrameRateDenominator is also zero, otherwise an error is returned"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"FrameRateDenominator"})}),(0,n.jsx)(t.td,{children:"-fps-denom"}),(0,n.jsx)(t.td,{children:"[0 - 2^64 -1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Frame rate denominator e.g. 100 When zero, the encoder will use \u2013fps if FrameRateNumerator is also zero, otherwise an error is returned"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"Injector"})}),(0,n.jsx)(t.td,{children:"-inj"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Enable injection of input frames at the specified framerate (0: OFF, 1: ON)"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"InjectorFrameRate"})}),(0,n.jsx)(t.td,{children:"-inj-frm-rt"}),(0,n.jsx)(t.td,{children:"[1 - 240]"}),(0,n.jsx)(t.td,{children:"60"}),(0,n.jsx)(t.td,{children:"Frame Rate used for the injector. Recommended to match the encoder speed."})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"SpeedControlFlag"})}),(0,n.jsx)(t.td,{children:"-speed-ctrl"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Enables the Speed Control functionality to achieve the real-time encoding speed defined by \u2013fps. When this parameter is set to 1 it forces \u2013inj to be 1 and -inj-frm-rt to be set to \u2013fps."})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"InterlacedVideo"})}),(0,n.jsx)(t.td,{children:"-interlaced-video"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"1 : encoder will signal interlaced signal in the stream
0 : assumes progressive signal"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"SeparateFields"})}),(0,n.jsx)(t.td,{children:"-separate-fields"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"1 : Interlaced input, application will separate top and bottom fields and encode it as progressive.
0 : Treat video as progressive video"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"HierarchicalLevels"})}),(0,n.jsx)(t.td,{children:"-hierarchical-levels"}),(0,n.jsx)(t.td,{children:"[0 \u2013 3]"}),(0,n.jsx)(t.td,{children:"3"}),(0,n.jsx)(t.td,{children:"0 : Flat
1: 2-Level Hierarchy
2: 3-Level Hierarchy
3: 4-Level Hierarchy
Minigop Size = (2^HierarchicalLevels)
(e.g. 3 == > 7B pyramid, 2 ==> 3B Pyramid)
Refer to Appendix A.1"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"BaseLayerSwitchMode"})}),(0,n.jsx)(t.td,{children:"-base-layer-switch-mode"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"0 : Use B-frames in the base layer pointing to the same past picture
1 : Use P-frames in the base layer
Refer to Appendix A.1"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"PredStructure"})}),(0,n.jsx)(t.td,{children:"-pred-struct"}),(0,n.jsx)(t.td,{children:"[0 \u2013 2]"}),(0,n.jsx)(t.td,{children:"2"}),(0,n.jsx)(t.td,{children:"0: Low Delay P
1: Low Delay B
2: Random Access
Refer to Appendix A.1"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"IntraPeriod"})}),(0,n.jsx)(t.td,{children:"-intra-period"}),(0,n.jsx)(t.td,{children:"[-2 - 255]"}),(0,n.jsx)(t.td,{children:"-2"}),(0,n.jsx)(t.td,{children:"Distance between Intra Frame inserted.
-1 denotes no intra update.
-2 denotes auto."})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"IntraRefreshType"})}),(0,n.jsx)(t.td,{children:"-irefresh-type"}),(0,n.jsx)(t.td,{children:"[-1,N]"}),(0,n.jsx)(t.td,{children:"-1"}),(0,n.jsx)(t.td,{children:"-1: CRA (Open GOP)
>=0: IDR (Closed GOP, N is headers insertion interval, 0 supported if CQP, >=0 supported if VBR)
Refer to Appendix A.3"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"QP"})}),(0,n.jsx)(t.td,{children:"-q"}),(0,n.jsx)(t.td,{children:"[0 - 51]"}),(0,n.jsx)(t.td,{children:"32"}),(0,n.jsx)(t.td,{children:"Initial quantization parameter for the Intra pictures used when RateControlMode 0 (CQP)"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"LoopFilterDisable"})}),(0,n.jsx)(t.td,{children:"-dlf"}),(0,n.jsx)(t.td,{children:"[0, 1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"When set to 1 disables the Deblocking Loop Filtering"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"SAO"})}),(0,n.jsx)(t.td,{children:"-sao"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"1"}),(0,n.jsx)(t.td,{children:"When set to 0 the encoder will not use the Sample Adaptive Filter"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"UseDefaultMeHme"})}),(0,n.jsx)(t.td,{children:"-use-default-me-hme"}),(0,n.jsx)(t.td,{children:"[0, 1]"}),(0,n.jsx)(t.td,{children:"1"}),(0,n.jsx)(t.td,{children:"0 : Overwrite Default ME HME parameters
1 : Use default ME HME parameters, dependent on width and height"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"HME"})}),(0,n.jsx)(t.td,{children:"-hme"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"1"}),(0,n.jsx)(t.td,{children:"Enable HME, 0 = OFF, 1 = ON"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"SearchAreaWidth"})}),(0,n.jsx)(t.td,{children:"-search-w"}),(0,n.jsx)(t.td,{children:"[1 - 256]"}),(0,n.jsx)(t.td,{children:"Depends on input resolution"}),(0,n.jsx)(t.td,{children:"Motion vector search area width"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"SearchAreaHeight"})}),(0,n.jsx)(t.td,{children:"-search-h"}),(0,n.jsx)(t.td,{children:"[1 - 256]"}),(0,n.jsx)(t.td,{children:"Depends on input resolution"}),(0,n.jsx)(t.td,{children:"Motion vector search area height"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"ConstrainedIntra"})}),(0,n.jsx)(t.td,{children:"-constrd-intra"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Allow the use of Constrained Intra, when enabled, this features yields to sending two PPSs in the HEVC Elementary streams
0 = OFF, 1 = ON"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"RateControlMode"})}),(0,n.jsx)(t.td,{children:"-rc"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"0 : CQP , 1 : VBR"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"TargetBitRate"})}),(0,n.jsx)(t.td,{children:"-tbr"}),(0,n.jsx)(t.td,{children:"Any Number"}),(0,n.jsx)(t.td,{children:"7000000"}),(0,n.jsx)(t.td,{children:"Target bitrate in bits / second. Only used when RateControlMode is set to 1"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"vbvMaxrate"})}),(0,n.jsx)(t.td,{children:"-vbv-maxrate"}),(0,n.jsx)(t.td,{children:"Any Number"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"VBVMaxrate in bits / second. Only used when RateControlMode is set to 1"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"vbvBufsize"})}),(0,n.jsx)(t.td,{children:"-vbv-bufsize"}),(0,n.jsx)(t.td,{children:"Any Number"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"VBV BufferSize in bits / second. Only used when RateControlMode is set to 1"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"vbvBufInit"})}),(0,n.jsx)(t.td,{children:"-vbv-init"}),(0,n.jsx)(t.td,{children:"[0 - 100]"}),(0,n.jsx)(t.td,{children:"90"}),(0,n.jsx)(t.td,{children:"Sets the initial percentage size that the VBV buffer is filled to"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"hrdFlag"})}),(0,n.jsx)(t.td,{children:"-hrd"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsxs)(t.td,{children:["Sets the HRD (Hypothetical Reference Decoder) Flag in the encoded stream, 0 = OFF, 1 = ON When",(0,n.jsx)("br",{}),"hrdFlag is set to 1, vbvMaxrate and vbvBufsize must be greater than 0"]})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"MaxQpAllowed"})}),(0,n.jsx)(t.td,{children:"-max-qp"}),(0,n.jsx)(t.td,{children:"[0 - 51]"}),(0,n.jsx)(t.td,{children:"48"}),(0,n.jsx)(t.td,{children:"Maximum QP value allowed for rate control use. Only used when RateControlMode is set to 1. Has to be >= MinQpAllowed"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"MinQpAllowed"})}),(0,n.jsx)(t.td,{children:"-min-qp"}),(0,n.jsx)(t.td,{children:"[0 - 50]"}),(0,n.jsx)(t.td,{children:"10"}),(0,n.jsx)(t.td,{children:"Minimum QP value allowed for rate control use. Only used when RateControlMode is set to 1. Has to be < MaxQpAllowed"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"LookAheadDistance"})}),(0,n.jsx)(t.td,{children:"-lad"}),(0,n.jsx)(t.td,{children:"[0 - 250]"}),(0,n.jsx)(t.td,{children:"Depending on BRC mode"}),(0,n.jsx)(t.td,{children:"When RateControlMode is set to 1 it's best to set this parameter to be equal to the Intra period value (such is the default set by the encoder). When CQP is chosen, then a (2 * minigopsize +1) look ahead is recommended."})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"SceneChangeDetection"})}),(0,n.jsx)(t.td,{children:"-scd"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"1"}),(0,n.jsx)(t.td,{children:"Enables or disables the scene change detection algorithm
0 = OFF, 1 = ON"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"BitRateReduction"})}),(0,n.jsx)(t.td,{children:"-brr"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Enables visual quality algorithms to reduce the output bitrate with minimal or no subjective visual quality impact.
0 = OFF, 1 = ON"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"ImproveSharpness"})}),(0,n.jsx)(t.td,{children:"-sharp"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"This is a visual quality knob that allows the use of adaptive quantization within the picture and enables visual quality algorithms that improve the sharpness of the background. This feature is only available for 4k and 8k resolutions
0 = OFF, 1 = ON"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"VideoUsabilityInfo"})}),(0,n.jsx)(t.td,{children:"-vid-info"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Enables or disables sending a vui structure in the HEVC Elementary bitstream. 0 = OFF, 1 = ON"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"HighDynamicRangeInput"})}),(0,n.jsx)(t.td,{children:"-hdr"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"When set to 1, signals HDR10 input in the output HEVC elementary bitstream and forces VideoUsabilityInfo to 1.
0 = OFF, 1 = ON"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"AccessUnitDelimiter"})}),(0,n.jsx)(t.td,{children:"-ua-delm"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"SEI message, 0 = OFF, 1 = ON"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"BufferingPeriod"})}),(0,n.jsx)(t.td,{children:"-pbuff"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"SEI message, 0 = OFF, 1 = ON"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"PictureTiming"})}),(0,n.jsx)(t.td,{children:"-tpic"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"SEI message, 0 = OFF, 1 = ON.
If 1, VideoUsabilityInfo should be also set to 1."})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"RegisteredUserData"})}),(0,n.jsx)(t.td,{children:"-reg-user-data"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"SEI message, 0 = OFF, 1 = ON"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"UnregisteredUserData"})}),(0,n.jsx)(t.td,{children:"-unreg-user-data"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"SEI message, 0 = OFF, 1 = ON"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"RecoveryPoint"})}),(0,n.jsx)(t.td,{children:"-recovery-point"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"SEI message, 0 = OFF, 1 = ON"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"TemporalId"})}),(0,n.jsx)(t.td,{children:"-temporal-id"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"1"}),(0,n.jsx)(t.td,{children:"0 = OFF
1 = Insert temporal ID in NAL units"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"AsmType"})}),(0,n.jsx)(t.td,{children:"-asm"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"1"}),(0,n.jsx)(t.td,{children:"Assembly instruction set
(0: C Only, 1: Automatically select highest assembly instruction set supported)"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"LogicalProcessors"})}),(0,n.jsx)(t.td,{children:"-lp"}),(0,n.jsx)(t.td,{children:"[0, total number of logical processor]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"The number of logical processor which encoder threads run on.Refer to Appendix A.2"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"FirstLogicalProcessor"})}),(0,n.jsx)(t.td,{children:"-flp"}),(0,n.jsx)(t.td,{children:"[0, the index of last logical processor]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"The index of first logical processor which encoder threads run on.Refer to Appendix A.2"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"TargetSocket"})}),(0,n.jsx)(t.td,{children:"-ss"}),(0,n.jsx)(t.td,{children:"[-1,1]"}),(0,n.jsx)(t.td,{children:"-1"}),(0,n.jsx)(t.td,{children:"For dual socket systems, this can specify which socket the encoder runs on. Refer to Appendix A.2"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"ThreadCount"})}),(0,n.jsx)(t.td,{children:"-thread-count"}),(0,n.jsx)(t.td,{children:"[0,N]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"The number of threads to get created and run, 0 = AUTO"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"SwitchThreadsToRtPriority"})}),(0,n.jsx)(t.td,{children:"-rt"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"1"}),(0,n.jsx)(t.td,{children:"Enables or disables threads to real time priority, 0 = OFF, 1 = ON (only works on Linux)"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"FPSInVPS"})}),(0,n.jsx)(t.td,{children:"-fpsinvps"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"1"}),(0,n.jsx)(t.td,{children:"Enables or disables the VPS timing info, 0 = OFF, 1 = ON"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"TileRowCount"})}),(0,n.jsx)(t.td,{children:"-tile_row_cnt"}),(0,n.jsx)(t.td,{children:"[1,22]"}),(0,n.jsx)(t.td,{children:"1"}),(0,n.jsx)(t.td,{children:"Tile count in the Row"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"TileColumnCount"})}),(0,n.jsx)(t.td,{children:"-tile_col_cnt"}),(0,n.jsx)(t.td,{children:"[1,20]"}),(0,n.jsx)(t.td,{children:"1"}),(0,n.jsx)(t.td,{children:"Tile count in the column"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"TileSliceMode"})}),(0,n.jsx)(t.td,{children:"-tile_slice_mode"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Per slice per tile, only valid for multi-tile"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"UnrestrictedMotionVector"})}),(0,n.jsx)(t.td,{children:"-umv"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"1"}),(0,n.jsx)(t.td,{children:"Enables or disables unrestricted motion vectors
0 = OFF(motion vectors are constrained within frame or tile boundary)
1 = ON.
For MCTS support, set -umv 0 with valid TileRowCount and TileColumnCount"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"MaxCLL"})}),(0,n.jsx)(t.td,{children:"-max-cll"}),(0,n.jsx)(t.td,{children:"[0 , 2^16-1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Maximum content light level (MaxCLL) as required by the Consumer Electronics Association 861.3 specification. Applicable for HDR content. If specified, signaled only when HighDynamicRangeInput is set to 1"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"MaxFALL"})}),(0,n.jsx)(t.td,{children:"-max-fall"}),(0,n.jsx)(t.td,{children:"[0 , 2^16-1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Maximum Frame Average light level (MaxFALL) as required by the Consumer Electronics Association 861.3 specification. Applicable for HDR content. If specified, signaled only when HighDynamicRangeInput is set to 1"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"UseMasterDisplay"})}),(0,n.jsx)(t.td,{children:"-use-master-display"}),(0,n.jsx)(t.td,{children:"[0,1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Enables or disables the MasterDisplayColorVolume
0 = OFF
1 = ON"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"MasterDisplay"})}),(0,n.jsx)(t.td,{children:"-master-display"}),(0,n.jsx)(t.td,{children:"For R, G, B and whitepoint [0, 2^16-1]. For max, min luminance [0, 2^32-1]"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"SMPTE ST 2086 mastering display color volume SEI info, specified as a string. The string format is \u201cG(%hu,%hu)B(%hu,%hu)R(%hu,% hu)WP(%hu,%hu)L(%u,%u)\u201d where %hu are unsigned 16bit integers and %u are unsigned 32bit integers. The SEI includes X, Y display primaries for RGB channels and white point (WP) in units of 0.00002 and max, min luminance (L) values in units of 0.0001 candela per meter square. Applicable for HDR content. Example for a P3D65 1000-nits monitor,G(13250,34500)B(7500,3 000)R(34000,16000)WP(15635,16 450)L(10000000,1)"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"DolbyVisionRpuFile"})}),(0,n.jsx)(t.td,{children:"-dolby-vision-rpu"}),(0,n.jsx)(t.td,{children:"any string"}),(0,n.jsx)(t.td,{children:"null"}),(0,n.jsx)(t.td,{children:"Path to the file containing Dolby Vision RPU metadata"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"DolbyVisionProfile"})}),(0,n.jsx)(t.td,{children:"-dolby-vision-profile"}),(0,n.jsx)(t.td,{children:"8.1 or 81"}),(0,n.jsx)(t.td,{children:"0"}),(0,n.jsx)(t.td,{children:"Generate bitstreams confirming to the specified Dolby Vision profile 8.1. When specified, enables HighDynamicRangeInput automatically. Applicable only for 10-bit input content. MasterDisplay should be set for using dolby vision profile 81. Pass the dynamic metadata through DolbyVisionRpuFile option"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:(0,n.jsx)(t.strong,{children:"NaluFile"})}),(0,n.jsx)(t.td,{children:"-nalu-file"}),(0,n.jsx)(t.td,{children:"any string"}),(0,n.jsx)(t.td,{children:"null"}),(0,n.jsxs)(t.td,{children:["Path to the file containing CEA 608/708 metadata. Text file should contain the userSEI in POC order as per below format: ",(0,n.jsx)(t.code,{children:"/"}),". Currently only PREFIX_SEI messages are supported"]})]})]})]})]})}function j(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(x,{...e})}):x(e)}},9365:(e,t,r)=>{r.d(t,{A:()=>d});r(6540);var n=r(4164);const s={tabItem:"tabItem_Ymn6"};var i=r(4848);function d(e){let{children:t,hidden:r,className:d}=e;return(0,i.jsx)("div",{role:"tabpanel",className:(0,n.A)(s.tabItem,d),hidden:r,children:t})}},1470:(e,t,r)=>{r.d(t,{A:()=>w});var n=r(6540),s=r(4164),i=r(3104),d=r(6347),l=r(205),c=r(7485),h=r(1682),o=r(679);function a(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function x(e){const{values:t,children:r}=e;return(0,n.useMemo)((()=>{const e=t??function(e){return a(e).map((e=>{let{props:{value:t,label:r,attributes:n,default:s}}=e;return{value:t,label:r,attributes:n,default:s}}))}(r);return function(e){const t=(0,h.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,r])}function j(e){let{value:t,tabValues:r}=e;return r.some((e=>e.value===t))}function u(e){let{queryString:t=!1,groupId:r}=e;const s=(0,d.W6)(),i=function(e){let{queryString:t=!1,groupId:r}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!r)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:t,groupId:r});return[(0,c.aZ)(i),(0,n.useCallback)((e=>{if(!i)return;const t=new URLSearchParams(s.location.search);t.set(i,e),s.replace({...s.location,search:t.toString()})}),[i,s])]}function p(e){const{defaultValue:t,queryString:r=!1,groupId:s}=e,i=x(e),[d,c]=(0,n.useState)((()=>function(e){let{defaultValue:t,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!j({value:t,tabValues:r}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=r.find((e=>e.default))??r[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:i}))),[h,a]=u({queryString:r,groupId:s}),[p,m]=function(e){let{groupId:t}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,i]=(0,o.Dv)(r);return[s,(0,n.useCallback)((e=>{r&&i.set(e)}),[r,i])]}({groupId:s}),g=(()=>{const e=h??p;return j({value:e,tabValues:i})?e:null})();(0,l.A)((()=>{g&&c(g)}),[g]);return{selectedValue:d,selectValue:(0,n.useCallback)((e=>{if(!j({value:e,tabValues:i}))throw new Error(`Can't select invalid tab value=${e}`);c(e),a(e),m(e)}),[a,m,i]),tabValues:i}}var m=r(2303);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=r(4848);function b(e){let{className:t,block:r,selectedValue:n,selectValue:d,tabValues:l}=e;const c=[],{blockElementScrollPositionUntilNextRender:h}=(0,i.a_)(),o=e=>{const t=e.currentTarget,r=c.indexOf(t),s=l[r].value;s!==n&&(h(t),d(s))},a=e=>{let t=null;switch(e.key){case"Enter":o(e);break;case"ArrowRight":{const r=c.indexOf(e.currentTarget)+1;t=c[r]??c[0];break}case"ArrowLeft":{const r=c.indexOf(e.currentTarget)-1;t=c[r]??c[c.length-1];break}}t?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.A)("tabs",{"tabs--block":r},t),children:l.map((e=>{let{value:t,label:r,attributes:i}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:n===t?0:-1,"aria-selected":n===t,ref:e=>c.push(e),onKeyDown:a,onClick:o,...i,className:(0,s.A)("tabs__item",g.tabItem,i?.className,{"tabs__item--active":n===t}),children:r??t},t)}))})}function v(e){let{lazy:t,children:r,selectedValue:i}=e;const d=(Array.isArray(r)?r:[r]).filter(Boolean);if(t){const e=d.find((e=>e.props.value===i));return e?(0,n.cloneElement)(e,{className:(0,s.A)("margin-top--md",e.props.className)}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:d.map(((e,t)=>(0,n.cloneElement)(e,{key:t,hidden:e.props.value!==i})))})}function y(e){const t=p(e);return(0,f.jsxs)("div",{className:(0,s.A)("tabs-container",g.tabList),children:[(0,f.jsx)(b,{...t,...e}),(0,f.jsx)(v,{...t,...e})]})}function w(e){const t=(0,m.A)();return(0,f.jsx)(y,{...e,children:a(e.children)},String(t))}},8453:(e,t,r)=>{r.d(t,{R:()=>d,x:()=>l});var n=r(6540);const s={},i=n.createContext(s);function d(e){const t=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:d(e.components),n.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/bf9d09b6.c0b10498.js b/assets/js/bf9d09b6.c0b10498.js new file mode 100644 index 000000000..468a8d283 --- /dev/null +++ b/assets/js/bf9d09b6.c0b10498.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8270],{8714:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>o,contentTitle:()=>h,default:()=>j,frontMatter:()=>c,metadata:()=>n,toc:()=>a});const n=JSON.parse('{"id":"encoders/SVT-HEVC","title":"SVT-HEVC","description":"SVT-HEVC (Scalable Video Technology for HEVC) is an open source H.265 / HEVC software encoder developed by Intel made specifically to only support x86. As the name suggests, it is part of the \\"Scalable Video Technology\\" project lineup by Intel.","source":"@site/docs/encoders/SVT-HEVC.mdx","sourceDirName":"encoders","slug":"/encoders/SVT-HEVC","permalink":"/docs/encoders/SVT-HEVC","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/SVT-HEVC.mdx","tags":[],"version":"current","sidebarPosition":10,"frontMatter":{"title":"SVT-HEVC","sidebar_position":10},"sidebar":"tutorialSidebar","previous":{"title":"SVT-VP9","permalink":"/docs/encoders/SVT-VP9"},"next":{"title":"Kvazaar","permalink":"/docs/encoders/Kvazaar"}}');var s=r(4848),i=r(8453),d=r(1470),l=r(9365);const c={title:"SVT-HEVC",sidebar_position:10},h="SVT-HEVC",o={},a=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Normal usage",id:"normal-usage",level:3},{value:"Encoding HDR",id:"encoding-hdr",level:3},{value:"Encoding with Dolby Vision",id:"encoding-with-dolby-vision",level:3},{value:"List of all configuration parameters",id:"list-of-all-configuration-parameters",level:2}];function x(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"svt-hevc",children:"SVT-HEVC"})}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.a,{href:"https://github.com/OpenVisualCloud/SVT-HEVC",children:"SVT-HEVC"})," (Scalable Video Technology for HEVC) is an open source ",(0,s.jsx)(t.a,{href:"/docs/video/HEVC",children:"H.265 / HEVC"})," software encoder developed by Intel made specifically to ",(0,s.jsx)(t.strong,{children:"only support x86"}),'. As the name suggests, it is part of the "',(0,s.jsx)(t.a,{href:"https://www.intel.com/content/www/us/en/developer/articles/technical/scalable-video-technology.html",children:"Scalable Video Technology"}),'" project lineup by Intel.']}),"\n",(0,s.jsxs)(t.p,{children:["The encoder is written in C with some parts in Assembly and licensed under ",(0,s.jsx)(t.strong,{children:"BSD+Patent"}),"."]}),"\n",(0,s.jsx)(t.admonition,{type:"info",children:(0,s.jsxs)(t.p,{children:["It is recommended to use ",(0,s.jsx)(t.a,{href:"/docs/encoders/x265",children:"x265"})," instead as it performs much better in quality."]})}),"\n",(0,s.jsx)(t.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,s.jsxs)(t.p,{children:["SVT-HEVC is only available in FFmpeg when it is compiled with their provided ",(0,s.jsx)(t.a,{href:"https://github.com/OpenVisualCloud/SVT-HEVC/tree/master/ffmpeg_plugin",children:"plugin"}),". Otherwise it is via ",(0,s.jsx)(t.code,{children:"libsvt_hevc"}),", to check if you have it, run ",(0,s.jsx)(t.code,{children:"ffmpeg -h encoder=libsvt_hevc"}),"."]}),"\n",(0,s.jsx)(t.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,s.jsx)(t.p,{children:"SVT-HEVC supports the following color spaces:"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Format"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,s.jsx)(t.th,{children:"Supported Bit Depth(s)"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"YUV420P"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,s.jsx)(t.td,{children:"8-bit"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"YUV420P10LE"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,s.jsx)(t.td,{children:"10-bit"})]})]})]}),"\n",(0,s.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsxs)(d.A,{children:[(0,s.jsxs)(l.A,{value:"unixlike",label:"Linux & macOS",children:[(0,s.jsx)(t.p,{children:"To build SVT-AV1 from source, first clone the SVT-HEVC repository & enter the build directory."}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Clone SVT-HEVC and cd"',children:"git clone https://github.com/OpenVisualCloud/SVT-HEVC\ncd SVT-HEVC/Build/linux\n"})}),(0,s.jsxs)(t.p,{children:["In the directory, simply run ",(0,s.jsx)(t.code,{children:"./build.sh [flags]"})," to build. Be aware that building requires CMake version 3.5.1 or higher and either GCC or Clang. It is recommended to use Clang when building SVT-HEVC."]}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Build release"',children:"./build.sh release\n"})}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Statically build release"',children:"./build.sh static release\n"})}),(0,s.jsxs)(t.p,{children:["The compiled binaries will be in the ",(0,s.jsx)(t.code,{children:"Bin/Release"})," directory."]})]}),(0,s.jsx)(l.A,{value:"windows",label:"Windows",children:(0,s.jsxs)(t.p,{children:["To be filled. If you believe you can help, see our ",(0,s.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"}),"."]})})]}),"\n",(0,s.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(t.h3,{id:"normal-usage",children:"Normal usage"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Simple Y4M input with QP 20, and raw 265 bitstream output"',children:"SvtHevcEncApp -i input.y4m -q 20 -b output.265\n"})}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Preset 4, CRF 20, Y4M input"',children:"SvtHevcEncApp -i input.y4m -q 20 -encMode 4 -b output.265\n"})}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="FFmpeg piping"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | SvtHevcEncApp -i stdin -q 20 -encMode 4 -b output.265\n"})}),"\n",(0,s.jsx)(t.admonition,{type:"danger",children:(0,s.jsxs)(t.p,{children:["SVT-HEVC currently does not have the ability to detect EOF (End of File) within Y4M pipes (",(0,s.jsx)(t.a,{href:"https://github.com/OpenVisualCloud/SVT-HEVC/issues/634#issuecomment-1434911798",children:"issue"}),"), so the encode process will go on indefinitely until your drive is full.\nThe only known solution is to manually set the number of frames to encode via ",(0,s.jsx)(t.code,{children:"-n"}),"."]})}),"\n",(0,s.jsx)(t.h3,{id:"encoding-hdr",children:"Encoding HDR"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:"SvtHevcEncApp -i input.y4m -q 20 -encMode 4 -hdr -max-cll XXX -max-fall XXX -master-display G(0.265,0.690)B(0.150,0.060)R(0.680,0.320)WP(0.3127,0.3290)L(1000,0.0100) -b output.265\n"})}),"\n",(0,s.jsx)(t.p,{children:"Remember sure to adjust the HDR metadata accordingly."}),"\n",(0,s.jsx)(t.h3,{id:"encoding-with-dolby-vision",children:"Encoding with Dolby Vision"}),"\n",(0,s.jsx)(t.p,{children:"The ability to encode with Dolby Vision via RPU file is surprisingly present within SVT-HEVC, although it is limited to Profile 8.1."}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:"SvtHevcEncApp -i input.y4m -q 20 -encMode 4 -hdr -dolby-vision-rpu RPUFile.bin -dolby-vision-profile 81 -max-cll XXX -max-fall XXX -master-display G(0.265,0.690)B(0.150,0.060)R(0.680,0.320)WP(0.3127,0.3290)L(1000,0.0100) -b output.265\n"})}),"\n",(0,s.jsx)(t.p,{children:"Remember sure to adjust the HDR metadata accordingly."}),"\n",(0,s.jsx)(t.h2,{id:"list-of-all-configuration-parameters",children:"List of all configuration parameters"}),"\n",(0,s.jsxs)(t.p,{children:['As with every SVT line-up, they redirect you to read their "User Guide" instead of presenting what each and every parameter do in the ',(0,s.jsx)(t.code,{children:"--help"})," page.\nThe table below is an exact copy from their user guide taken from ",(0,s.jsx)(t.a,{href:"https://github.com/OpenVisualCloud/SVT-HEVC/blob/master/Docs/svt-hevc_encoder_user_guide.md",children:"GitHub"})," for backup purposes. Feel free to read them."]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:(0,s.jsx)(t.strong,{children:"Encoder Parameter as shown in the configuration file"})}),(0,s.jsx)(t.th,{children:(0,s.jsx)(t.strong,{children:"Command Line parameter"})}),(0,s.jsx)(t.th,{children:(0,s.jsx)(t.strong,{children:"Range"})}),(0,s.jsx)(t.th,{children:(0,s.jsx)(t.strong,{children:"Default"})}),(0,s.jsx)(t.th,{children:(0,s.jsx)(t.strong,{children:"Description"})})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"Channel Number"})}),(0,s.jsx)(t.td,{children:"-nch"}),(0,s.jsx)(t.td,{children:"[1 - 6]"}),(0,s.jsx)(t.td,{children:"1"}),(0,s.jsx)(t.td,{children:"Number of encode instances"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"ConfigFile"})}),(0,s.jsx)(t.td,{children:"-c"}),(0,s.jsx)(t.td,{children:"any string"}),(0,s.jsx)(t.td,{children:"null"}),(0,s.jsx)(t.td,{children:"Configuration file path"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"InputFile"})}),(0,s.jsx)(t.td,{children:"-i"}),(0,s.jsx)(t.td,{children:"any string"}),(0,s.jsx)(t.td,{children:"null"}),(0,s.jsx)(t.td,{children:"Input file path and name"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"StreamFile"})}),(0,s.jsx)(t.td,{children:"-b"}),(0,s.jsx)(t.td,{children:"any string"}),(0,s.jsx)(t.td,{children:"null"}),(0,s.jsx)(t.td,{children:"Output bitstream file path and name"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"ErrorFile"})}),(0,s.jsx)(t.td,{children:"-errlog"}),(0,s.jsx)(t.td,{children:"any string"}),(0,s.jsx)(t.td,{children:"stderr"}),(0,s.jsx)(t.td,{children:"Error log displaying configuration or encode errors"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"ReconFile"})}),(0,s.jsx)(t.td,{children:"-o"}),(0,s.jsx)(t.td,{children:"any string"}),(0,s.jsx)(t.td,{children:"null"}),(0,s.jsxs)(t.td,{children:["Output reconstructed yuv used for debug purposes. ",(0,s.jsx)(t.strong,{children:"Note:"})," using this feature will affect the speed of the encoder significantly. This should only be used for debugging purposes."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"UseQpFile"})}),(0,s.jsx)(t.td,{children:"-use-q-file"}),(0,s.jsx)(t.td,{children:"[0, 1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"When set to 1, overwrite the picture qp assignment using qp values in QpFile"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"QpFile"})}),(0,s.jsx)(t.td,{children:"-qp-file"}),(0,s.jsx)(t.td,{children:"any string"}),(0,s.jsx)(t.td,{children:"null"}),(0,s.jsx)(t.td,{children:"Path to qp file"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"SegmentOvFile"})}),(0,s.jsx)(t.td,{children:"-segment-ov-file"}),(0,s.jsx)(t.td,{children:"any string"}),(0,s.jsx)(t.td,{children:"null"}),(0,s.jsx)(t.td,{children:"Path to segment override file which will allow for sharpness improvement and bit rate reduction on a per segment basis. Refer to config/SVTSegmentOvFile.txt for details."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"EncoderMode"})}),(0,s.jsx)(t.td,{children:"-encMode"}),(0,s.jsx)(t.td,{children:"[0 - 11]"}),(0,s.jsx)(t.td,{children:"7"}),(0,s.jsx)(t.td,{children:"A preset defining the quality vs density tradeoff point that the encoding is to be performed at. (e.g. 0 is the highest quality mode, 11 is the highest density mode). Section 3.4 outlines the preset availability per resolution"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"EncoderBitDepth"})}),(0,s.jsx)(t.td,{children:"-bit-depth"}),(0,s.jsx)(t.td,{children:"[8, 10]"}),(0,s.jsx)(t.td,{children:"8"}),(0,s.jsx)(t.td,{children:"Specifies the bit depth of input video"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"EncoderColorFormat"})}),(0,s.jsx)(t.td,{children:"-color-format"}),(0,s.jsx)(t.td,{children:"[1, 2, 3]"}),(0,s.jsx)(t.td,{children:"1"}),(0,s.jsx)(t.td,{children:"Specifies the chroma subsampling of input video(1: 420, 2: 422, 3: 444)"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"CompressedTenBitFormat"})}),(0,s.jsx)(t.td,{children:"-compressed-ten-bit-format"}),(0,s.jsx)(t.td,{children:"[0, 1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Offline packing of the 2bits: requires two bits packed input (0: OFF, 1: ON)"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"SourceWidth"})}),(0,s.jsx)(t.td,{children:"-w"}),(0,s.jsx)(t.td,{children:"[64 - 8192]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Input source width"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"SourceHeight"})}),(0,s.jsx)(t.td,{children:"-h"}),(0,s.jsx)(t.td,{children:"[64 - 4320]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Input source height"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"FrameToBeEncoded"})}),(0,s.jsx)(t.td,{children:"-n"}),(0,s.jsx)(t.td,{children:"[0 - 2^31 -1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Number of frames to be encoded, if number of frames is > number of frames in file, the encoder will loop to the beginning and continue the encode. 0 encodes the full clip."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"BufferedInput"})}),(0,s.jsx)(t.td,{children:"-nb"}),(0,s.jsx)(t.td,{children:"[-1, 1 to 2^31 -1]"}),(0,s.jsx)(t.td,{children:"-1"}),(0,s.jsx)(t.td,{children:"number of frames to preload to the RAM before the start of the encode. If -nb = 100 and \u2013n 1000 --\x3e the encoder will encode the first 100 frames of the video 10 times. Use -1 to not preload any frames. This parameter is best used to eliminate the impact of disk reading on encoding speed and is most noticeable when frames sizes are 4k or 8k. Because frames are repeated when value specified (-nb) is less than the total frame count (-n), you should expect bitstreams to be different."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"Profile"})}),(0,s.jsx)(t.td,{children:"-profile"}),(0,s.jsx)(t.td,{children:"[1,2]"}),(0,s.jsx)(t.td,{children:"2"}),(0,s.jsx)(t.td,{children:"1: Main, 2: Main 10"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"Tier"})}),(0,s.jsx)(t.td,{children:"-tier"}),(0,s.jsx)(t.td,{children:"[0, 1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"0: Main, 1: High"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"Level"})}),(0,s.jsx)(t.td,{children:"-level"}),(0,s.jsx)(t.td,{children:"[1, 2, 2.1,3, 3.1, 4, 4.1, 5, 5.1, 5.2, 6, 6.1, 6.2]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"0 to 6.2 [0 for auto determine Level]"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"FrameRate"})}),(0,s.jsx)(t.td,{children:"-fps"}),(0,s.jsx)(t.td,{children:"[0 - 2^64 -1]"}),(0,s.jsx)(t.td,{children:"60"}),(0,s.jsx)(t.td,{children:"If the number is less than 1000, the input frame rate is an integer number between 1 and 60, else the input number is in Q16 format (shifted by 16 bits) [Max allowed is 240 fps]. If FrameRateNumerator and FrameRateDenominator are both !=0 the encoder will ignore this parameter"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"FrameRateNumerator"})}),(0,s.jsx)(t.td,{children:"-fps-num"}),(0,s.jsx)(t.td,{children:"[0 - 2^64 -1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Frame rate numerator e.g. 6000 When zero, the encoder will use \u2013fps if FrameRateDenominator is also zero, otherwise an error is returned"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"FrameRateDenominator"})}),(0,s.jsx)(t.td,{children:"-fps-denom"}),(0,s.jsx)(t.td,{children:"[0 - 2^64 -1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Frame rate denominator e.g. 100 When zero, the encoder will use \u2013fps if FrameRateNumerator is also zero, otherwise an error is returned"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"Injector"})}),(0,s.jsx)(t.td,{children:"-inj"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Enable injection of input frames at the specified framerate (0: OFF, 1: ON)"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"InjectorFrameRate"})}),(0,s.jsx)(t.td,{children:"-inj-frm-rt"}),(0,s.jsx)(t.td,{children:"[1 - 240]"}),(0,s.jsx)(t.td,{children:"60"}),(0,s.jsx)(t.td,{children:"Frame Rate used for the injector. Recommended to match the encoder speed."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"SpeedControlFlag"})}),(0,s.jsx)(t.td,{children:"-speed-ctrl"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Enables the Speed Control functionality to achieve the real-time encoding speed defined by \u2013fps. When this parameter is set to 1 it forces \u2013inj to be 1 and -inj-frm-rt to be set to \u2013fps."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"InterlacedVideo"})}),(0,s.jsx)(t.td,{children:"-interlaced-video"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"1 : encoder will signal interlaced signal in the stream
0 : assumes progressive signal"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"SeparateFields"})}),(0,s.jsx)(t.td,{children:"-separate-fields"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"1 : Interlaced input, application will separate top and bottom fields and encode it as progressive.
0 : Treat video as progressive video"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"HierarchicalLevels"})}),(0,s.jsx)(t.td,{children:"-hierarchical-levels"}),(0,s.jsx)(t.td,{children:"[0 \u2013 3]"}),(0,s.jsx)(t.td,{children:"3"}),(0,s.jsx)(t.td,{children:"0 : Flat
1: 2-Level Hierarchy
2: 3-Level Hierarchy
3: 4-Level Hierarchy
Minigop Size = (2^HierarchicalLevels)
(e.g. 3 == > 7B pyramid, 2 ==> 3B Pyramid)
Refer to Appendix A.1"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"BaseLayerSwitchMode"})}),(0,s.jsx)(t.td,{children:"-base-layer-switch-mode"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"0 : Use B-frames in the base layer pointing to the same past picture
1 : Use P-frames in the base layer
Refer to Appendix A.1"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"PredStructure"})}),(0,s.jsx)(t.td,{children:"-pred-struct"}),(0,s.jsx)(t.td,{children:"[0 \u2013 2]"}),(0,s.jsx)(t.td,{children:"2"}),(0,s.jsx)(t.td,{children:"0: Low Delay P
1: Low Delay B
2: Random Access
Refer to Appendix A.1"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"IntraPeriod"})}),(0,s.jsx)(t.td,{children:"-intra-period"}),(0,s.jsx)(t.td,{children:"[-2 - 255]"}),(0,s.jsx)(t.td,{children:"-2"}),(0,s.jsx)(t.td,{children:"Distance between Intra Frame inserted.
-1 denotes no intra update.
-2 denotes auto."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"IntraRefreshType"})}),(0,s.jsx)(t.td,{children:"-irefresh-type"}),(0,s.jsx)(t.td,{children:"[-1,N]"}),(0,s.jsx)(t.td,{children:"-1"}),(0,s.jsx)(t.td,{children:"-1: CRA (Open GOP)
>=0: IDR (Closed GOP, N is headers insertion interval, 0 supported if CQP, >=0 supported if VBR)
Refer to Appendix A.3"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"QP"})}),(0,s.jsx)(t.td,{children:"-q"}),(0,s.jsx)(t.td,{children:"[0 - 51]"}),(0,s.jsx)(t.td,{children:"32"}),(0,s.jsx)(t.td,{children:"Initial quantization parameter for the Intra pictures used when RateControlMode 0 (CQP)"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"LoopFilterDisable"})}),(0,s.jsx)(t.td,{children:"-dlf"}),(0,s.jsx)(t.td,{children:"[0, 1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"When set to 1 disables the Deblocking Loop Filtering"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"SAO"})}),(0,s.jsx)(t.td,{children:"-sao"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"1"}),(0,s.jsx)(t.td,{children:"When set to 0 the encoder will not use the Sample Adaptive Filter"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"UseDefaultMeHme"})}),(0,s.jsx)(t.td,{children:"-use-default-me-hme"}),(0,s.jsx)(t.td,{children:"[0, 1]"}),(0,s.jsx)(t.td,{children:"1"}),(0,s.jsx)(t.td,{children:"0 : Overwrite Default ME HME parameters
1 : Use default ME HME parameters, dependent on width and height"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"HME"})}),(0,s.jsx)(t.td,{children:"-hme"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"1"}),(0,s.jsx)(t.td,{children:"Enable HME, 0 = OFF, 1 = ON"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"SearchAreaWidth"})}),(0,s.jsx)(t.td,{children:"-search-w"}),(0,s.jsx)(t.td,{children:"[1 - 256]"}),(0,s.jsx)(t.td,{children:"Depends on input resolution"}),(0,s.jsx)(t.td,{children:"Motion vector search area width"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"SearchAreaHeight"})}),(0,s.jsx)(t.td,{children:"-search-h"}),(0,s.jsx)(t.td,{children:"[1 - 256]"}),(0,s.jsx)(t.td,{children:"Depends on input resolution"}),(0,s.jsx)(t.td,{children:"Motion vector search area height"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"ConstrainedIntra"})}),(0,s.jsx)(t.td,{children:"-constrd-intra"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Allow the use of Constrained Intra, when enabled, this features yields to sending two PPSs in the HEVC Elementary streams
0 = OFF, 1 = ON"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"RateControlMode"})}),(0,s.jsx)(t.td,{children:"-rc"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"0 : CQP , 1 : VBR"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"TargetBitRate"})}),(0,s.jsx)(t.td,{children:"-tbr"}),(0,s.jsx)(t.td,{children:"Any Number"}),(0,s.jsx)(t.td,{children:"7000000"}),(0,s.jsx)(t.td,{children:"Target bitrate in bits / second. Only used when RateControlMode is set to 1"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"vbvMaxrate"})}),(0,s.jsx)(t.td,{children:"-vbv-maxrate"}),(0,s.jsx)(t.td,{children:"Any Number"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"VBVMaxrate in bits / second. Only used when RateControlMode is set to 1"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"vbvBufsize"})}),(0,s.jsx)(t.td,{children:"-vbv-bufsize"}),(0,s.jsx)(t.td,{children:"Any Number"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"VBV BufferSize in bits / second. Only used when RateControlMode is set to 1"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"vbvBufInit"})}),(0,s.jsx)(t.td,{children:"-vbv-init"}),(0,s.jsx)(t.td,{children:"[0 - 100]"}),(0,s.jsx)(t.td,{children:"90"}),(0,s.jsx)(t.td,{children:"Sets the initial percentage size that the VBV buffer is filled to"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"hrdFlag"})}),(0,s.jsx)(t.td,{children:"-hrd"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsxs)(t.td,{children:["Sets the HRD (Hypothetical Reference Decoder) Flag in the encoded stream, 0 = OFF, 1 = ON When",(0,s.jsx)("br",{}),"hrdFlag is set to 1, vbvMaxrate and vbvBufsize must be greater than 0"]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"MaxQpAllowed"})}),(0,s.jsx)(t.td,{children:"-max-qp"}),(0,s.jsx)(t.td,{children:"[0 - 51]"}),(0,s.jsx)(t.td,{children:"48"}),(0,s.jsx)(t.td,{children:"Maximum QP value allowed for rate control use. Only used when RateControlMode is set to 1. Has to be >= MinQpAllowed"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"MinQpAllowed"})}),(0,s.jsx)(t.td,{children:"-min-qp"}),(0,s.jsx)(t.td,{children:"[0 - 50]"}),(0,s.jsx)(t.td,{children:"10"}),(0,s.jsx)(t.td,{children:"Minimum QP value allowed for rate control use. Only used when RateControlMode is set to 1. Has to be < MaxQpAllowed"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"LookAheadDistance"})}),(0,s.jsx)(t.td,{children:"-lad"}),(0,s.jsx)(t.td,{children:"[0 - 250]"}),(0,s.jsx)(t.td,{children:"Depending on BRC mode"}),(0,s.jsx)(t.td,{children:"When RateControlMode is set to 1 it's best to set this parameter to be equal to the Intra period value (such is the default set by the encoder). When CQP is chosen, then a (2 * minigopsize +1) look ahead is recommended."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"SceneChangeDetection"})}),(0,s.jsx)(t.td,{children:"-scd"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"1"}),(0,s.jsx)(t.td,{children:"Enables or disables the scene change detection algorithm
0 = OFF, 1 = ON"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"BitRateReduction"})}),(0,s.jsx)(t.td,{children:"-brr"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Enables visual quality algorithms to reduce the output bitrate with minimal or no subjective visual quality impact.
0 = OFF, 1 = ON"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"ImproveSharpness"})}),(0,s.jsx)(t.td,{children:"-sharp"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"This is a visual quality knob that allows the use of adaptive quantization within the picture and enables visual quality algorithms that improve the sharpness of the background. This feature is only available for 4k and 8k resolutions
0 = OFF, 1 = ON"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"VideoUsabilityInfo"})}),(0,s.jsx)(t.td,{children:"-vid-info"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Enables or disables sending a vui structure in the HEVC Elementary bitstream. 0 = OFF, 1 = ON"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"HighDynamicRangeInput"})}),(0,s.jsx)(t.td,{children:"-hdr"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"When set to 1, signals HDR10 input in the output HEVC elementary bitstream and forces VideoUsabilityInfo to 1.
0 = OFF, 1 = ON"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"AccessUnitDelimiter"})}),(0,s.jsx)(t.td,{children:"-ua-delm"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"SEI message, 0 = OFF, 1 = ON"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"BufferingPeriod"})}),(0,s.jsx)(t.td,{children:"-pbuff"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"SEI message, 0 = OFF, 1 = ON"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"PictureTiming"})}),(0,s.jsx)(t.td,{children:"-tpic"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"SEI message, 0 = OFF, 1 = ON.
If 1, VideoUsabilityInfo should be also set to 1."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"RegisteredUserData"})}),(0,s.jsx)(t.td,{children:"-reg-user-data"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"SEI message, 0 = OFF, 1 = ON"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"UnregisteredUserData"})}),(0,s.jsx)(t.td,{children:"-unreg-user-data"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"SEI message, 0 = OFF, 1 = ON"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"RecoveryPoint"})}),(0,s.jsx)(t.td,{children:"-recovery-point"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"SEI message, 0 = OFF, 1 = ON"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"TemporalId"})}),(0,s.jsx)(t.td,{children:"-temporal-id"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"1"}),(0,s.jsx)(t.td,{children:"0 = OFF
1 = Insert temporal ID in NAL units"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"AsmType"})}),(0,s.jsx)(t.td,{children:"-asm"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"1"}),(0,s.jsx)(t.td,{children:"Assembly instruction set
(0: C Only, 1: Automatically select highest assembly instruction set supported)"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"LogicalProcessors"})}),(0,s.jsx)(t.td,{children:"-lp"}),(0,s.jsx)(t.td,{children:"[0, total number of logical processor]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"The number of logical processor which encoder threads run on.Refer to Appendix A.2"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"FirstLogicalProcessor"})}),(0,s.jsx)(t.td,{children:"-flp"}),(0,s.jsx)(t.td,{children:"[0, the index of last logical processor]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"The index of first logical processor which encoder threads run on.Refer to Appendix A.2"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"TargetSocket"})}),(0,s.jsx)(t.td,{children:"-ss"}),(0,s.jsx)(t.td,{children:"[-1,1]"}),(0,s.jsx)(t.td,{children:"-1"}),(0,s.jsx)(t.td,{children:"For dual socket systems, this can specify which socket the encoder runs on. Refer to Appendix A.2"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"ThreadCount"})}),(0,s.jsx)(t.td,{children:"-thread-count"}),(0,s.jsx)(t.td,{children:"[0,N]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"The number of threads to get created and run, 0 = AUTO"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"SwitchThreadsToRtPriority"})}),(0,s.jsx)(t.td,{children:"-rt"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"1"}),(0,s.jsx)(t.td,{children:"Enables or disables threads to real time priority, 0 = OFF, 1 = ON (only works on Linux)"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"FPSInVPS"})}),(0,s.jsx)(t.td,{children:"-fpsinvps"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"1"}),(0,s.jsx)(t.td,{children:"Enables or disables the VPS timing info, 0 = OFF, 1 = ON"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"TileRowCount"})}),(0,s.jsx)(t.td,{children:"-tile_row_cnt"}),(0,s.jsx)(t.td,{children:"[1,22]"}),(0,s.jsx)(t.td,{children:"1"}),(0,s.jsx)(t.td,{children:"Tile count in the Row"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"TileColumnCount"})}),(0,s.jsx)(t.td,{children:"-tile_col_cnt"}),(0,s.jsx)(t.td,{children:"[1,20]"}),(0,s.jsx)(t.td,{children:"1"}),(0,s.jsx)(t.td,{children:"Tile count in the column"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"TileSliceMode"})}),(0,s.jsx)(t.td,{children:"-tile_slice_mode"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Per slice per tile, only valid for multi-tile"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"UnrestrictedMotionVector"})}),(0,s.jsx)(t.td,{children:"-umv"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"1"}),(0,s.jsx)(t.td,{children:"Enables or disables unrestricted motion vectors
0 = OFF(motion vectors are constrained within frame or tile boundary)
1 = ON.
For MCTS support, set -umv 0 with valid TileRowCount and TileColumnCount"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"MaxCLL"})}),(0,s.jsx)(t.td,{children:"-max-cll"}),(0,s.jsx)(t.td,{children:"[0 , 2^16-1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Maximum content light level (MaxCLL) as required by the Consumer Electronics Association 861.3 specification. Applicable for HDR content. If specified, signaled only when HighDynamicRangeInput is set to 1"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"MaxFALL"})}),(0,s.jsx)(t.td,{children:"-max-fall"}),(0,s.jsx)(t.td,{children:"[0 , 2^16-1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Maximum Frame Average light level (MaxFALL) as required by the Consumer Electronics Association 861.3 specification. Applicable for HDR content. If specified, signaled only when HighDynamicRangeInput is set to 1"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"UseMasterDisplay"})}),(0,s.jsx)(t.td,{children:"-use-master-display"}),(0,s.jsx)(t.td,{children:"[0,1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Enables or disables the MasterDisplayColorVolume
0 = OFF
1 = ON"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"MasterDisplay"})}),(0,s.jsx)(t.td,{children:"-master-display"}),(0,s.jsx)(t.td,{children:"For R, G, B and whitepoint [0, 2^16-1]. For max, min luminance [0, 2^32-1]"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"SMPTE ST 2086 mastering display color volume SEI info, specified as a string. The string format is \u201cG(%hu,%hu)B(%hu,%hu)R(%hu,% hu)WP(%hu,%hu)L(%u,%u)\u201d where %hu are unsigned 16bit integers and %u are unsigned 32bit integers. The SEI includes X, Y display primaries for RGB channels and white point (WP) in units of 0.00002 and max, min luminance (L) values in units of 0.0001 candela per meter square. Applicable for HDR content. Example for a P3D65 1000-nits monitor,G(13250,34500)B(7500,3 000)R(34000,16000)WP(15635,16 450)L(10000000,1)"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"DolbyVisionRpuFile"})}),(0,s.jsx)(t.td,{children:"-dolby-vision-rpu"}),(0,s.jsx)(t.td,{children:"any string"}),(0,s.jsx)(t.td,{children:"null"}),(0,s.jsx)(t.td,{children:"Path to the file containing Dolby Vision RPU metadata"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"DolbyVisionProfile"})}),(0,s.jsx)(t.td,{children:"-dolby-vision-profile"}),(0,s.jsx)(t.td,{children:"8.1 or 81"}),(0,s.jsx)(t.td,{children:"0"}),(0,s.jsx)(t.td,{children:"Generate bitstreams confirming to the specified Dolby Vision profile 8.1. When specified, enables HighDynamicRangeInput automatically. Applicable only for 10-bit input content. MasterDisplay should be set for using dolby vision profile 81. Pass the dynamic metadata through DolbyVisionRpuFile option"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.strong,{children:"NaluFile"})}),(0,s.jsx)(t.td,{children:"-nalu-file"}),(0,s.jsx)(t.td,{children:"any string"}),(0,s.jsx)(t.td,{children:"null"}),(0,s.jsxs)(t.td,{children:["Path to the file containing CEA 608/708 metadata. Text file should contain the userSEI in POC order as per below format: ",(0,s.jsx)(t.code,{children:"/"}),". Currently only PREFIX_SEI messages are supported"]})]})]})]})]})}function j(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(x,{...e})}):x(e)}},9365:(e,t,r)=>{r.d(t,{A:()=>d});r(6540);var n=r(4164);const s={tabItem:"tabItem_Ymn6"};var i=r(4848);function d(e){let{children:t,hidden:r,className:d}=e;return(0,i.jsx)("div",{role:"tabpanel",className:(0,n.A)(s.tabItem,d),hidden:r,children:t})}},1470:(e,t,r)=>{r.d(t,{A:()=>w});var n=r(6540),s=r(4164),i=r(3104),d=r(6347),l=r(205),c=r(7485),h=r(1682),o=r(679);function a(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function x(e){const{values:t,children:r}=e;return(0,n.useMemo)((()=>{const e=t??function(e){return a(e).map((e=>{let{props:{value:t,label:r,attributes:n,default:s}}=e;return{value:t,label:r,attributes:n,default:s}}))}(r);return function(e){const t=(0,h.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,r])}function j(e){let{value:t,tabValues:r}=e;return r.some((e=>e.value===t))}function u(e){let{queryString:t=!1,groupId:r}=e;const s=(0,d.W6)(),i=function(e){let{queryString:t=!1,groupId:r}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!r)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return r??null}({queryString:t,groupId:r});return[(0,c.aZ)(i),(0,n.useCallback)((e=>{if(!i)return;const t=new URLSearchParams(s.location.search);t.set(i,e),s.replace({...s.location,search:t.toString()})}),[i,s])]}function p(e){const{defaultValue:t,queryString:r=!1,groupId:s}=e,i=x(e),[d,c]=(0,n.useState)((()=>function(e){let{defaultValue:t,tabValues:r}=e;if(0===r.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!j({value:t,tabValues:r}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${r.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=r.find((e=>e.default))??r[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:i}))),[h,a]=u({queryString:r,groupId:s}),[p,m]=function(e){let{groupId:t}=e;const r=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,i]=(0,o.Dv)(r);return[s,(0,n.useCallback)((e=>{r&&i.set(e)}),[r,i])]}({groupId:s}),g=(()=>{const e=h??p;return j({value:e,tabValues:i})?e:null})();(0,l.A)((()=>{g&&c(g)}),[g]);return{selectedValue:d,selectValue:(0,n.useCallback)((e=>{if(!j({value:e,tabValues:i}))throw new Error(`Can't select invalid tab value=${e}`);c(e),a(e),m(e)}),[a,m,i]),tabValues:i}}var m=r(2303);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var f=r(4848);function b(e){let{className:t,block:r,selectedValue:n,selectValue:d,tabValues:l}=e;const c=[],{blockElementScrollPositionUntilNextRender:h}=(0,i.a_)(),o=e=>{const t=e.currentTarget,r=c.indexOf(t),s=l[r].value;s!==n&&(h(t),d(s))},a=e=>{let t=null;switch(e.key){case"Enter":o(e);break;case"ArrowRight":{const r=c.indexOf(e.currentTarget)+1;t=c[r]??c[0];break}case"ArrowLeft":{const r=c.indexOf(e.currentTarget)-1;t=c[r]??c[c.length-1];break}}t?.focus()};return(0,f.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.A)("tabs",{"tabs--block":r},t),children:l.map((e=>{let{value:t,label:r,attributes:i}=e;return(0,f.jsx)("li",{role:"tab",tabIndex:n===t?0:-1,"aria-selected":n===t,ref:e=>c.push(e),onKeyDown:a,onClick:o,...i,className:(0,s.A)("tabs__item",g.tabItem,i?.className,{"tabs__item--active":n===t}),children:r??t},t)}))})}function v(e){let{lazy:t,children:r,selectedValue:i}=e;const d=(Array.isArray(r)?r:[r]).filter(Boolean);if(t){const e=d.find((e=>e.props.value===i));return e?(0,n.cloneElement)(e,{className:(0,s.A)("margin-top--md",e.props.className)}):null}return(0,f.jsx)("div",{className:"margin-top--md",children:d.map(((e,t)=>(0,n.cloneElement)(e,{key:t,hidden:e.props.value!==i})))})}function y(e){const t=p(e);return(0,f.jsxs)("div",{className:(0,s.A)("tabs-container",g.tabList),children:[(0,f.jsx)(b,{...t,...e}),(0,f.jsx)(v,{...t,...e})]})}function w(e){const t=(0,m.A)();return(0,f.jsx)(y,{...e,children:a(e.children)},String(t))}},8453:(e,t,r)=>{r.d(t,{R:()=>d,x:()=>l});var n=r(6540);const s={},i=n.createContext(s);function d(e){const t=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:d(e.components),n.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c15d9823.62f9ce37.js b/assets/js/c15d9823.5567b29d.js similarity index 75% rename from assets/js/c15d9823.62f9ce37.js rename to assets/js/c15d9823.5567b29d.js index a79cd5815..3b853e2cd 100644 --- a/assets/js/c15d9823.62f9ce37.js +++ b/assets/js/c15d9823.5567b29d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8146],{9328:e=>{e.exports=JSON.parse('{"metadata":{"permalink":"/blog","page":1,"postsPerPage":10,"totalPages":1,"totalCount":7,"blogDescription":"Blog","blogTitle":"Blog"}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8146],{9328:e=>{e.exports=JSON.parse('{"metadata":{"permalink":"/blog","page":1,"postsPerPage":10,"totalPages":1,"totalCount":8,"blogDescription":"Blog","blogTitle":"Blog"}}')}}]); \ No newline at end of file diff --git a/assets/js/c19fbcae.26a90190.js b/assets/js/c19fbcae.26a90190.js deleted file mode 100644 index 0f06029f4..000000000 --- a/assets/js/c19fbcae.26a90190.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4501],{5341:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>c,contentTitle:()=>s,default:()=>l,frontMatter:()=>r,metadata:()=>a,toc:()=>d});var i=o(4848),n=o(8453);const r={title:"ALAC",sidebar_position:7},s="ALAC",a={id:"audio/ALAC",title:"ALAC",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/audio/ALAC.mdx",sourceDirName:"audio",slug:"/audio/ALAC",permalink:"/docs/audio/ALAC",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/ALAC.mdx",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"ALAC",sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"Speex",permalink:"/docs/audio/Speex"},next:{title:"FLAC",permalink:"/docs/audio/FLAC"}},c={},d=[];function u(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"alac",children:"ALAC"})}),"\n",(0,i.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,i.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,i.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function l(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>s,x:()=>a});var i=o(6540);const n={},r=i.createContext(n);function s(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:s(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c19fbcae.9b91b544.js b/assets/js/c19fbcae.9b91b544.js new file mode 100644 index 000000000..5fc76ec06 --- /dev/null +++ b/assets/js/c19fbcae.9b91b544.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4501],{8455:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>l,frontMatter:()=>r,metadata:()=>n,toc:()=>d});const n=JSON.parse('{"id":"audio/ALAC","title":"ALAC","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/audio/ALAC.mdx","sourceDirName":"audio","slug":"/audio/ALAC","permalink":"/docs/audio/ALAC","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/ALAC.mdx","tags":[],"version":"current","sidebarPosition":7,"frontMatter":{"title":"ALAC","sidebar_position":7},"sidebar":"tutorialSidebar","previous":{"title":"Speex","permalink":"/docs/audio/Speex"},"next":{"title":"FLAC","permalink":"/docs/audio/FLAC"}}');var i=o(4848),s=o(8453);const r={title:"ALAC",sidebar_position:7},a="ALAC",c={},d=[];function u(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"alac",children:"ALAC"})}),"\n",(0,i.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,i.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,i.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function l(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>r,x:()=>a});var n=o(6540);const i={},s=n.createContext(i);function r(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c224274c.8ac21b1d.js b/assets/js/c224274c.8ac21b1d.js new file mode 100644 index 000000000..ab09e2fb1 --- /dev/null +++ b/assets/js/c224274c.8ac21b1d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3356],{8659:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>r,metadata:()=>o,toc:()=>c});const o=JSON.parse('{"id":"video/AVS3","title":"AVS3","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/video/AVS3.mdx","sourceDirName":"video","slug":"/video/AVS3","permalink":"/docs/video/AVS3","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/AVS3.mdx","tags":[],"version":"current","sidebarPosition":7,"frontMatter":{"title":"AVS3","sidebar_position":7},"sidebar":"tutorialSidebar","previous":{"title":"AV1","permalink":"/docs/video/AV1"},"next":{"title":"VC-1","permalink":"/docs/video/VC-1"}}');var t=i(4848),s=i(8453);const r={title:"AVS3",sidebar_position:7},a="AVS3",d={},c=[];function l(e){const n={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"avs3",children:"AVS3"})}),"\n",(0,t.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsxs)(n.p,{children:["AVS3 is the most recent codec from the AVS family. It aims to bring a significant coding improvement over AVS2 and ",(0,t.jsx)(n.a,{href:"/docs/video/HEVC",children:"HEVC"}),". The specification was divided into 2 phases, the first one (main profile) finished in 2019 and the second (high profile) in 2021."]}),"\n",(0,t.jsx)(n.p,{children:"AVS3 has more flexible coding tree and block partitioning shemes compared to previous generation AVS codecs. It also employs new DCT-VII and DST-VII transforms. The work on AVS3 was sponsored by organizations including Peking University, Pengcheng Laboratory and Huawei."}),"\n",(0,t.jsxs)(n.p,{children:["In 2022 it was ",(0,t.jsx)(n.a,{href:"https://dvb.org/news/dvb-test-content-for-vvc-and-avs3-codecs-now-available",children:"added"})," to worldwide DVB standard alongside ",(0,t.jsx)(n.a,{href:"/docs/video/VVC",children:"VVC"}),". As of 2024 there several hardware AVS3 decoders including Mediatek and HiSilicon. We should be seeing more AVS3 in hardware since it was added to DVB toolbox."]}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://github.com/uavs3",children:"uavs3"})," is an open source high performance software encoder and decoder of AVS3-P2. The project was initialized by the Peking University Shenzhen Graduate School and over the time was optimized for x86 and arm processors. FFmpeg since version 6 supports only avs3 decoding via ",(0,t.jsx)(n.a,{href:"https://github.com/uavs3/uavs3d",children:"uavs3d"}),"."]}),"\n",(0,t.jsxs)(n.p,{children:["Intel partnered with Boya and created ",(0,t.jsx)(n.a,{href:"https://www.intel.com/content/www/us/en/developer/articles/technical/scalable-video-technology.html",children:"SVT-AVS3"})," which to my knowledge is not available to the public. The only open-source encoder available to general public is ",(0,t.jsx)(n.a,{href:"/docs/encoders/uavs3e",children:"uavs3e"}),"."]})]})}function h(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>a});var o=i(6540);const t={},s=o.createContext(t);function r(e){const n=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c224274c.ebb6a550.js b/assets/js/c224274c.ebb6a550.js deleted file mode 100644 index 443d2e1c1..000000000 --- a/assets/js/c224274c.ebb6a550.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3356],{4736:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>r,default:()=>h,frontMatter:()=>s,metadata:()=>a,toc:()=>c});var o=i(4848),t=i(8453);const s={title:"AVS3",sidebar_position:7},r="AVS3",a={id:"video/AVS3",title:"AVS3",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/video/AVS3.mdx",sourceDirName:"video",slug:"/video/AVS3",permalink:"/docs/video/AVS3",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/AVS3.mdx",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"AVS3",sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"AV1",permalink:"/docs/video/AV1"},next:{title:"VC-1",permalink:"/docs/video/VC-1"}},d={},c=[];function l(e){const n={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"avs3",children:"AVS3"})}),"\n",(0,o.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsxs)(n.p,{children:["AVS3 is the most recent codec from the AVS family. It aims to bring a significant coding improvement over AVS2 and ",(0,o.jsx)(n.a,{href:"/docs/video/HEVC",children:"HEVC"}),". The specification was divided into 2 phases, the first one (main profile) finished in 2019 and the second (high profile) in 2021."]}),"\n",(0,o.jsx)(n.p,{children:"AVS3 has more flexible coding tree and block partitioning shemes compared to previous generation AVS codecs. It also employs new DCT-VII and DST-VII transforms. The work on AVS3 was sponsored by organizations including Peking University, Pengcheng Laboratory and Huawei."}),"\n",(0,o.jsxs)(n.p,{children:["In 2022 it was ",(0,o.jsx)(n.a,{href:"https://dvb.org/news/dvb-test-content-for-vvc-and-avs3-codecs-now-available",children:"added"})," to worldwide DVB standard alongside ",(0,o.jsx)(n.a,{href:"/docs/video/VVC",children:"VVC"}),". As of 2024 there several hardware AVS3 decoders including Mediatek and HiSilicon. We should be seeing more AVS3 in hardware since it was added to DVB toolbox."]}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.a,{href:"https://github.com/uavs3",children:"uavs3"})," is an open source high performance software encoder and decoder of AVS3-P2. The project was initialized by the Peking University Shenzhen Graduate School and over the time was optimized for x86 and arm processors. FFmpeg since version 6 supports only avs3 decoding via ",(0,o.jsx)(n.a,{href:"https://github.com/uavs3/uavs3d",children:"uavs3d"}),"."]}),"\n",(0,o.jsxs)(n.p,{children:["Intel partnered with Boya and created ",(0,o.jsx)(n.a,{href:"https://www.intel.com/content/www/us/en/developer/articles/technical/scalable-video-technology.html",children:"SVT-AVS3"})," which to my knowledge is not available to the public. The only open-source encoder available to general public is ",(0,o.jsx)(n.a,{href:"/docs/encoders/uavs3e",children:"uavs3e"}),"."]})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>a});var o=i(6540);const t={},s=o.createContext(t);function r(e){const n=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c4f5d8e4.570c464d.js b/assets/js/c4f5d8e4.570c464d.js new file mode 100644 index 000000000..f50f72cda --- /dev/null +++ b/assets/js/c4f5d8e4.570c464d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2634],{1459:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});n(6540);var s=n(4164),r=n(8774),i=n(4586),o=n(7823);const c={heroBanner:"heroBanner_qdFl",buttons:"buttons_AeoN"};var a=n(4848);function l(){const{siteConfig:e}=(0,i.A)();return(0,a.jsx)("header",{className:(0,s.A)("hero hero--primary",c.heroBanner),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)("h1",{className:"hero__title",children:e.title}),(0,a.jsx)("p",{className:"hero__subtitle",children:e.tagline}),(0,a.jsx)("div",{className:c.buttons,children:(0,a.jsx)(r.A,{className:"button button--secondary button--lg",to:"/docs/introduction/prologue",children:"Start learning!"})})]})})}function d(){const{siteConfig:e}=(0,i.A)();return(0,a.jsx)(o.A,{title:`${e.title}`,description:`${e.tagline}`,children:(0,a.jsx)(l,{})})}}}]); \ No newline at end of file diff --git a/assets/js/c4f5d8e4.771b41be.js b/assets/js/c4f5d8e4.771b41be.js deleted file mode 100644 index ab916391c..000000000 --- a/assets/js/c4f5d8e4.771b41be.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2634],{1459:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});n(6540);var s=n(4164),r=n(8774),i=n(4586),o=n(263);const c={heroBanner:"heroBanner_qdFl",buttons:"buttons_AeoN"};var a=n(4848);function l(){const{siteConfig:e}=(0,i.A)();return(0,a.jsx)("header",{className:(0,s.A)("hero hero--primary",c.heroBanner),children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsx)("h1",{className:"hero__title",children:e.title}),(0,a.jsx)("p",{className:"hero__subtitle",children:e.tagline}),(0,a.jsx)("div",{className:c.buttons,children:(0,a.jsx)(r.A,{className:"button button--secondary button--lg",to:"/docs/introduction/prologue",children:"Start learning!"})})]})})}function d(){const{siteConfig:e}=(0,i.A)();return(0,a.jsx)(o.A,{title:`${e.title}`,description:`${e.tagline}`,children:(0,a.jsx)(l,{})})}}}]); \ No newline at end of file diff --git a/assets/js/c7deb2e0.0c155dde.js b/assets/js/c7deb2e0.0c155dde.js new file mode 100644 index 000000000..0319d192c --- /dev/null +++ b/assets/js/c7deb2e0.0c155dde.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9551],{2359:(e,s,i)=>{i.r(s),i.d(s,{assets:()=>t,contentTitle:()=>d,default:()=>h,frontMatter:()=>a,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"audio/WavPack","title":"WavPack","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/audio/WavPack.mdx","sourceDirName":"audio","slug":"/audio/WavPack","permalink":"/docs/audio/WavPack","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/WavPack.mdx","tags":[],"version":"current","sidebarPosition":8,"frontMatter":{"title":"WavPack","sidebar_position":8},"sidebar":"tutorialSidebar","previous":{"title":"FLAC","permalink":"/docs/audio/FLAC"},"next":{"title":"AVC / H.264","permalink":"/docs/video/AVC"}}');var o=i(4848),r=i(8453);const a={title:"WavPack",sidebar_position:8},d="WavPack",t={},c=[{value:"Features",id:"features",level:2},{value:"Hybrid Mode",id:"hybrid-mode",level:2},{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"Encoders",id:"encoders",level:2},{value:"wavpack",id:"wavpack-1",level:3},{value:"FFmpeg",id:"ffmpeg",level:3},{value:"Adoption issues",id:"adoption-issues",level:2},{value:"Notes",id:"notes",level:2}];function l(e){const s={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.header,{children:(0,o.jsx)(s.h1,{id:"wavpack",children:"WavPack"})}),"\n",(0,o.jsx)(s.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(s.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(s.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsxs)(s.p,{children:["WavPack is an open-source lossless audio codec with support for lossless & lossy compression with a unique hybrid compression mode for compressing a lossy audio stream alongside a lossless reference. Created by David Bryant in 1998, it gained a lot of software support, although not as much as ",(0,o.jsx)(s.a,{href:"/docs/audio/FLAC",children:"FLAC"}),"."]}),"\n",(0,o.jsxs)(s.p,{children:["Compressed file size is somewhat between ",(0,o.jsx)(s.a,{href:"/docs/audio/FLAC",children:"FLAC"})," and heavier state-of-art lossless audio compressors like TAK, OptimFrog or SAC. Compared to ",(0,o.jsx)(s.a,{href:"/docs/audio/FLAC",children:"FLAC"}),", WavPack usually gives a lower bitrate at the expense of slightly more resource usage."]}),"\n",(0,o.jsx)(s.h2,{id:"features",children:"Features"}),"\n",(0,o.jsx)(s.p,{children:"WavPack is one of the most robust and feature-rich lossless audio codecs. Some notable features include:"}),"\n",(0,o.jsxs)(s.ul,{children:["\n",(0,o.jsx)(s.li,{children:(0,o.jsx)(s.a,{href:"#hybrid-mode",children:"Hybrid mode"})}),"\n",(0,o.jsx)(s.li,{children:"Support for 1-32 bit integer/floating point audio streams"}),"\n",(0,o.jsxs)(s.li,{children:["Muxable into Matroska ",(0,o.jsx)(s.code,{children:".mkv"})," container"]}),"\n",(0,o.jsx)(s.li,{children:"Multichannel with up to 4096 channels"}),"\n",(0,o.jsx)(s.li,{children:"APEv2/ID3v1 tagging format"}),"\n",(0,o.jsx)(s.li,{children:"RIFF chunks support"}),"\n",(0,o.jsx)(s.li,{children:"Multithreaded encoding/decoding"}),"\n",(0,o.jsx)(s.li,{children:"Error detection using CRC32 checksums and optionally also MD5 hash of original audio data"}),"\n"]}),"\n",(0,o.jsx)(s.h2,{id:"hybrid-mode",children:"Hybrid Mode"}),"\n",(0,o.jsxs)(s.p,{children:["Hybrid Mode is not to be confused with hybrid codecs like ",(0,o.jsx)(s.a,{href:"/docs/audio/Opus",children:"Opus"}),". WavPack uses the same algorithm for both lossy and lossless mode. When using lossy mode, the encoder transmits only the unary magnitude and the sign bit of Recursive Golomb encoded residuals. During decoding, those data points can be further enhanced if the correction file is provided."]}),"\n",(0,o.jsxs)(s.p,{children:["WavPack can produce 2 output files when using Hybrid Mode. The main ",(0,o.jsx)(s.code,{children:".wv"})," file with truncated (lossy) residuals and a ",(0,o.jsx)(s.code,{children:".wvc"})," correction file containing the enhancement layer. When both files are provided to the decoder, it should be able to recreate original audio data. Otherwise, if only the ",(0,o.jsx)(s.code,{children:".wv"})," file is available, the decoder will decode lossy audio stream."]}),"\n",(0,o.jsx)(s.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,o.jsxs)(s.p,{children:["Like in many lossless audio codecs, WavPack only encodes the prediction error value. In the default ",(0,o.jsx)(s.code,{children:"fast"})," mode, prediction is just extrapolation of the previous two samples. More sophisticated predictors are used with higher encoding modes.\nDue to poor performance, unpredictability, and other problems with floating-point arithmetic in CPUs of its time, WavPack only uses integer arithmetic even when operating on IEEE float data. Nowadays, many of those issues were addressed, however it could still make porting WavPack to chips with no FPU support much easier."]}),"\n",(0,o.jsx)(s.p,{children:"The encoding process consists of 3 main steps:"}),"\n",(0,o.jsxs)(s.ul,{children:["\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsx)(s.p,{children:"Joint stereo processing - Converts the stereo channels to the standard difference and average, removing inter-channel correlations."}),"\n"]}),"\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsx)(s.p,{children:"Multipass decorrelation - Includes multiple prediction passes where the number of passes and predictor type depend on the selected encoding mode, removing intra-channel correlations between neighboring audio samples."}),"\n"]}),"\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsx)(s.p,{children:"Entropy coding the residuals with Recursive Golomb Coding - Instead of Rice Coding, the author proposed a new technique that combines Golomb and Elias gamma code to better address the nature of audio data."}),"\n"]}),"\n"]}),"\n",(0,o.jsx)(s.h2,{id:"encoders",children:"Encoders"}),"\n",(0,o.jsx)(s.h3,{id:"wavpack-1",children:"wavpack"}),"\n",(0,o.jsx)(s.pre,{children:(0,o.jsx)(s.code,{className:"language-bash",metastring:'title="Default options"',children:"wavpack input.wav -o out.wv\n"})}),"\n",(0,o.jsx)(s.pre,{children:(0,o.jsx)(s.code,{className:"language-bash",metastring:'title="Fast, lowest compression, md5 hash"',children:"wavpack input.wav -f -m -o out.wv\n"})}),"\n",(0,o.jsx)(s.pre,{children:(0,o.jsx)(s.code,{className:"language-bash",metastring:'title="Very slow, highest compression, 8 threads"',children:"wavpack input.wav -hh -x6 --threads=8 -o out.wv\n"})}),"\n",(0,o.jsx)(s.pre,{children:(0,o.jsx)(s.code,{className:"language-bash",metastring:'title="Lossy, slow, 240kbps"',children:"wavpack input.wav -b240 -h -x3 -o out.lsy.wv\n"})}),"\n",(0,o.jsx)(s.pre,{children:(0,o.jsx)(s.code,{className:"language-bash",metastring:'title="Highest hybrid compression, very slow, 4bps"',children:"wavpack input.wav -b4 -cc -hh -x6 -o out.hyb.wv\n"})}),"\n",(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.code,{children:"wvunpack"})," can be used to decode resulting ",(0,o.jsx)(s.code,{children:".wv"})," files, however most major ",(0,o.jsx)(s.a,{href:"/docs/video-players",children:"media players"})," like MPV or VLC already have (limited) WavPack support."]}),"\n",(0,o.jsx)(s.p,{children:"Options:"}),"\n",(0,o.jsxs)(s.ul,{children:["\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.code,{children:"-f"})," Faster encode/decode at the expense of larger file size"]}),"\n"]}),"\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.code,{children:"-h"})," Slower encode/decode with higher compression"]}),"\n"]}),"\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.code,{children:"-hh"})," Slowest encode/decode with highest compression"]}),"\n"]}),"\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.code,{children:"-x0"})," Disable extra filters"]}),"\n"]}),"\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.code,{children:"-x3"})," Try all predefined filters, slow, higher compression"]}),"\n"]}),"\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.code,{children:"-x6"})," Generate custom filters, very slow, best compression"]}),"\n"]}),"\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.code,{children:"-b240"})," Enable lossy mode, set bitrate to ",(0,o.jsx)(s.code,{children:"240kbps"})," (acceptable range is ",(0,o.jsx)(s.code,{children:"24"}),"-",(0,o.jsx)(s.code,{children:"9600"})," but it won't get lower than ",(0,o.jsx)(s.code,{children:"2 bits per sample"}),")"]}),"\n"]}),"\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.code,{children:"-b4"})," Enable lossy mode, set ",(0,o.jsx)(s.code,{children:"bits per sample"})," to ",(0,o.jsx)(s.code,{children:"4"})," (acceptable range is ",(0,o.jsx)(s.code,{children:"2"}),"-",(0,o.jsx)(s.code,{children:"23.9"}),")"]}),"\n"]}),"\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.code,{children:"-c"})," Enable hybrid mode (will produce ",(0,o.jsx)(s.code,{children:".wv"})," and ",(0,o.jsx)(s.code,{children:".wvc"})," file)"]}),"\n"]}),"\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.code,{children:"-cc"})," Enable and optimize for hybrid mode, might lower decoding speed and hurt quality"]}),"\n"]}),"\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.code,{children:"-m"})," Include MD5 hash of original audio data in the output file"]}),"\n"]}),"\n",(0,o.jsxs)(s.li,{children:["\n",(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.code,{children:"--threads=8"})," Use ",(0,o.jsx)(s.code,{children:"8"})," threads (acceptable range is ",(0,o.jsx)(s.code,{children:"1"}),"-",(0,o.jsx)(s.code,{children:"12"}),")"]}),"\n"]}),"\n"]}),"\n",(0,o.jsxs)(s.p,{children:["For more detailed description of all available options, see the ",(0,o.jsx)(s.a,{href:"https://www.wavpack.com/wavpack_doc.html",children:"manual"}),"."]}),"\n",(0,o.jsx)(s.h3,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,o.jsxs)(s.p,{children:[(0,o.jsx)(s.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," has its own native WavPack encoder and decoder. It used to also support ",(0,o.jsx)(s.code,{children:"libwavpack"})," with ",(0,o.jsx)(s.code,{children:"--enable-libwavpack"}),", however it was ",(0,o.jsx)(s.a,{href:"https://hydrogenaud.io/index.php/topic,120038.0.html",children:"removed"})," due to interface incompleteness."]}),"\n",(0,o.jsxs)(s.p,{children:["The native encoder is single-threaded and doesn't support neither Lossy or ",(0,o.jsx)(s.a,{href:"#hybrid-mode",children:"Hybrid"})," Mode. It uses the ",(0,o.jsx)(s.code,{children:"-compression_level"})," parameter to control speed to compression ratio."]}),"\n",(0,o.jsx)(s.pre,{children:(0,o.jsx)(s.code,{className:"language-bash",metastring:'title="Fastest, lowest compression"',children:"ffmpeg -i input.wav -compression_level 0 out.wv\n"})}),"\n",(0,o.jsx)(s.pre,{children:(0,o.jsx)(s.code,{className:"language-bash",metastring:'title="Slowest, highest compression"',children:"ffmpeg -i input.wav -compression_level 8 out.wv\n"})}),"\n",(0,o.jsxs)(s.p,{children:["For all possible parameters, consult the ",(0,o.jsx)(s.a,{href:"https://www.ffmpeg.org/ffmpeg-codecs.html#wavpack",children:"FFmpeg documentation"}),"."]}),"\n",(0,o.jsx)(s.h2,{id:"adoption-issues",children:"Adoption issues"}),"\n",(0,o.jsxs)(s.p,{children:["As of 2024, WavPack has been largely superseded by ",(0,o.jsx)(s.a,{href:"/docs/audio/FLAC",children:"FLAC"}),", which became the de facto standard for lossless audio on the Web and in Hardware."]}),"\n",(0,o.jsxs)(s.p,{children:["The implementation of WavPack in media software is often incomplete. FFmpeg doesn't support ",(0,o.jsx)(s.a,{href:"#hybrid-mode",children:"Hybrid Mode"}),", and other media players usually don't support it either. There are also ",(0,o.jsx)(s.a,{href:"https://www.reddit.com/r/ffmpeg/comments/tpptoi/using_hybrid_wavpack_in_video/",children:"issues"})," with its support in the ",(0,o.jsx)(s.code,{children:".mkv"})," container."]}),"\n",(0,o.jsxs)(s.p,{children:["Without this feature, WavPack doesn't provide much benefit over already widespread ",(0,o.jsx)(s.a,{href:"/docs/audio/FLAC",children:"FLAC"}),". The compressed file might be slightly smaller, however music streaming companies tend to choose well-standardized FLAC which also has the benefit of ",(0,o.jsx)(s.code,{children:"DRM"})," support in the ",(0,o.jsx)(s.code,{children:".mp4"})," container (apparently very important thing on the modern web)."]}),"\n",(0,o.jsxs)(s.p,{children:["Even if ",(0,o.jsx)(s.a,{href:"#hybrid-mode",children:"Hybrid Mode"})," had better software support, the minimum lossy setting is ",(0,o.jsx)(s.code,{children:"2 bits per sample"}),". That translates to around ",(0,o.jsx)(s.code,{children:"200kbps"})," with stereo audio track which is quite high. The quality of WavPack lossy mode is also somewhat lacking compared to modern lossy codecs such as ",(0,o.jsx)(s.a,{href:"/docs/audio/Opus",children:"Opus"})," or ",(0,o.jsx)(s.a,{href:"/docs/audio/AAC",children:"AAC"})," because it doesn't utilize any psychoacoustic model."]}),"\n",(0,o.jsx)(s.h2,{id:"notes",children:"Notes"}),"\n",(0,o.jsxs)(s.ul,{children:["\n",(0,o.jsxs)(s.li,{children:["WavPack was one of the first compressed lossless audio codecs preceding Monkey's Audio (2000), ",(0,o.jsx)(s.a,{href:"/docs/audio/FLAC",children:"FLAC"})," (2001), OptimFROG (2002) and ",(0,o.jsx)(s.a,{href:"/docs/audio/ALAC",children:"ALAC"})," (2004)."]}),"\n",(0,o.jsx)(s.li,{children:"OptimFROG Dualstream is a feature of OptimFROG codec serving a similar purpose to WavPack Hybrid, however it was introduced much later."}),"\n",(0,o.jsxs)(s.li,{children:["Apparently there are some devices with WavPack ",(0,o.jsx)(s.a,{href:"https://hydrogenaud.io/index.php/topic,119143.0.html",children:"Hardware Support"}),"."]}),"\n"]}),"\n",(0,o.jsx)(s.p,{children:(0,o.jsx)(s.strong,{children:"References:"})}),"\n",(0,o.jsxs)(s.ul,{children:["\n",(0,o.jsx)(s.li,{children:(0,o.jsx)(s.a,{href:"https://www.wavpack.com/WavPack.pdf",children:"WavPack Compression Techniques"})}),"\n",(0,o.jsx)(s.li,{children:(0,o.jsx)(s.a,{href:"https://www.wavpack.com/technical.htm",children:"WavPack Technical Document"})}),"\n",(0,o.jsx)(s.li,{children:(0,o.jsx)(s.a,{href:"https://web.archive.org/web/20160705230053/http://www.wavpack.com/file_format.txt",children:"Old WavPack File Format Specification"})}),"\n",(0,o.jsx)(s.li,{children:(0,o.jsx)(s.a,{href:"https://wiki.hydrogenaud.io/index.php?title=WavPack",children:"Hydrogenaudio Wiki"})}),"\n",(0,o.jsx)(s.li,{children:(0,o.jsx)(s.a,{href:"https://wiki.multimedia.cx/index.php/WavPack",children:"Multimedia.cx Wiki"})}),"\n",(0,o.jsx)(s.li,{children:(0,o.jsx)(s.a,{href:"https://en.wikipedia.org/wiki/WavPack",children:"Wikipedia"})}),"\n",(0,o.jsx)(s.li,{children:(0,o.jsx)(s.a,{href:"https://ffmpeg.org/doxygen/3.3/wavpackenc_8c_source.html",children:"FFmpeg WavPack Source"})}),"\n"]})]})}function h(e={}){const{wrapper:s}={...(0,r.R)(),...e.components};return s?(0,o.jsx)(s,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,s,i)=>{i.d(s,{R:()=>a,x:()=>d});var n=i(6540);const o={},r=n.createContext(o);function a(e){const s=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function d(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),n.createElement(r.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c7deb2e0.2f90776e.js b/assets/js/c7deb2e0.2f90776e.js deleted file mode 100644 index 2df983807..000000000 --- a/assets/js/c7deb2e0.2f90776e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9551],{9009:(e,s,i)=>{i.r(s),i.d(s,{assets:()=>t,contentTitle:()=>d,default:()=>h,frontMatter:()=>r,metadata:()=>a,toc:()=>c});var n=i(4848),o=i(8453);const r={title:"WavPack",sidebar_position:8},d="WavPack",a={id:"audio/WavPack",title:"WavPack",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/audio/WavPack.mdx",sourceDirName:"audio",slug:"/audio/WavPack",permalink:"/docs/audio/WavPack",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/WavPack.mdx",tags:[],version:"current",sidebarPosition:8,frontMatter:{title:"WavPack",sidebar_position:8},sidebar:"tutorialSidebar",previous:{title:"FLAC",permalink:"/docs/audio/FLAC"},next:{title:"AVC / H.264",permalink:"/docs/video/AVC"}},t={},c=[{value:"Features",id:"features",level:2},{value:"Hybrid Mode",id:"hybrid-mode",level:2},{value:"Format Breakdown",id:"format-breakdown",level:2},{value:"Encoders",id:"encoders",level:2},{value:"wavpack",id:"wavpack-1",level:3},{value:"FFmpeg",id:"ffmpeg",level:3},{value:"Adoption issues",id:"adoption-issues",level:2},{value:"Notes",id:"notes",level:2}];function l(e){const s={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.header,{children:(0,n.jsx)(s.h1,{id:"wavpack",children:"WavPack"})}),"\n",(0,n.jsx)(s.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(s.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(s.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(s.p,{children:["WavPack is an open-source lossless audio codec with support for lossless & lossy compression with a unique hybrid compression mode for compressing a lossy audio stream alongside a lossless reference. Created by David Bryant in 1998, it gained a lot of software support, although not as much as ",(0,n.jsx)(s.a,{href:"/docs/audio/FLAC",children:"FLAC"}),"."]}),"\n",(0,n.jsxs)(s.p,{children:["Compressed file size is somewhat between ",(0,n.jsx)(s.a,{href:"/docs/audio/FLAC",children:"FLAC"})," and heavier state-of-art lossless audio compressors like TAK, OptimFrog or SAC. Compared to ",(0,n.jsx)(s.a,{href:"/docs/audio/FLAC",children:"FLAC"}),", WavPack usually gives a lower bitrate at the expense of slightly more resource usage."]}),"\n",(0,n.jsx)(s.h2,{id:"features",children:"Features"}),"\n",(0,n.jsx)(s.p,{children:"WavPack is one of the most robust and feature-rich lossless audio codecs. Some notable features include:"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"#hybrid-mode",children:"Hybrid mode"})}),"\n",(0,n.jsx)(s.li,{children:"Support for 1-32 bit integer/floating point audio streams"}),"\n",(0,n.jsxs)(s.li,{children:["Muxable into Matroska ",(0,n.jsx)(s.code,{children:".mkv"})," container"]}),"\n",(0,n.jsx)(s.li,{children:"Multichannel with up to 4096 channels"}),"\n",(0,n.jsx)(s.li,{children:"APEv2/ID3v1 tagging format"}),"\n",(0,n.jsx)(s.li,{children:"RIFF chunks support"}),"\n",(0,n.jsx)(s.li,{children:"Multithreaded encoding/decoding"}),"\n",(0,n.jsx)(s.li,{children:"Error detection using CRC32 checksums and optionally also MD5 hash of original audio data"}),"\n"]}),"\n",(0,n.jsx)(s.h2,{id:"hybrid-mode",children:"Hybrid Mode"}),"\n",(0,n.jsxs)(s.p,{children:["Hybrid Mode is not to be confused with hybrid codecs like ",(0,n.jsx)(s.a,{href:"/docs/audio/Opus",children:"Opus"}),". WavPack uses the same algorithm for both lossy and lossless mode. When using lossy mode, the encoder transmits only the unary magnitude and the sign bit of Recursive Golomb encoded residuals. During decoding, those data points can be further enhanced if the correction file is provided."]}),"\n",(0,n.jsxs)(s.p,{children:["WavPack can produce 2 output files when using Hybrid Mode. The main ",(0,n.jsx)(s.code,{children:".wv"})," file with truncated (lossy) residuals and a ",(0,n.jsx)(s.code,{children:".wvc"})," correction file containing the enhancement layer. When both files are provided to the decoder, it should be able to recreate original audio data. Otherwise, if only the ",(0,n.jsx)(s.code,{children:".wv"})," file is available, the decoder will decode lossy audio stream."]}),"\n",(0,n.jsx)(s.h2,{id:"format-breakdown",children:"Format Breakdown"}),"\n",(0,n.jsxs)(s.p,{children:["Like in many lossless audio codecs, WavPack only encodes the prediction error value. In the default ",(0,n.jsx)(s.code,{children:"fast"})," mode, prediction is just extrapolation of the previous two samples. More sophisticated predictors are used with higher encoding modes.\nDue to poor performance, unpredictability, and other problems with floating-point arithmetic in CPUs of its time, WavPack only uses integer arithmetic even when operating on IEEE float data. Nowadays, many of those issues were addressed, however it could still make porting WavPack to chips with no FPU support much easier."]}),"\n",(0,n.jsx)(s.p,{children:"The encoding process consists of 3 main steps:"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsx)(s.p,{children:"Joint stereo processing - Converts the stereo channels to the standard difference and average, removing inter-channel correlations."}),"\n"]}),"\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsx)(s.p,{children:"Multipass decorrelation - Includes multiple prediction passes where the number of passes and predictor type depend on the selected encoding mode, removing intra-channel correlations between neighboring audio samples."}),"\n"]}),"\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsx)(s.p,{children:"Entropy coding the residuals with Recursive Golomb Coding - Instead of Rice Coding, the author proposed a new technique that combines Golomb and Elias gamma code to better address the nature of audio data."}),"\n"]}),"\n"]}),"\n",(0,n.jsx)(s.h2,{id:"encoders",children:"Encoders"}),"\n",(0,n.jsx)(s.h3,{id:"wavpack-1",children:"wavpack"}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-bash",metastring:'title="Default options"',children:"wavpack input.wav -o out.wv\n"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-bash",metastring:'title="Fast, lowest compression, md5 hash"',children:"wavpack input.wav -f -m -o out.wv\n"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-bash",metastring:'title="Very slow, highest compression, 8 threads"',children:"wavpack input.wav -hh -x6 --threads=8 -o out.wv\n"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-bash",metastring:'title="Lossy, slow, 240kbps"',children:"wavpack input.wav -b240 -h -x3 -o out.lsy.wv\n"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-bash",metastring:'title="Highest hybrid compression, very slow, 4bps"',children:"wavpack input.wav -b4 -cc -hh -x6 -o out.hyb.wv\n"})}),"\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"wvunpack"})," can be used to decode resulting ",(0,n.jsx)(s.code,{children:".wv"})," files, however most major ",(0,n.jsx)(s.a,{href:"/docs/video-players",children:"media players"})," like MPV or VLC already have (limited) WavPack support."]}),"\n",(0,n.jsx)(s.p,{children:"Options:"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"-f"})," Faster encode/decode at the expense of larger file size"]}),"\n"]}),"\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"-h"})," Slower encode/decode with higher compression"]}),"\n"]}),"\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"-hh"})," Slowest encode/decode with highest compression"]}),"\n"]}),"\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"-x0"})," Disable extra filters"]}),"\n"]}),"\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"-x3"})," Try all predefined filters, slow, higher compression"]}),"\n"]}),"\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"-x6"})," Generate custom filters, very slow, best compression"]}),"\n"]}),"\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"-b240"})," Enable lossy mode, set bitrate to ",(0,n.jsx)(s.code,{children:"240kbps"})," (acceptable range is ",(0,n.jsx)(s.code,{children:"24"}),"-",(0,n.jsx)(s.code,{children:"9600"})," but it won't get lower than ",(0,n.jsx)(s.code,{children:"2 bits per sample"}),")"]}),"\n"]}),"\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"-b4"})," Enable lossy mode, set ",(0,n.jsx)(s.code,{children:"bits per sample"})," to ",(0,n.jsx)(s.code,{children:"4"})," (acceptable range is ",(0,n.jsx)(s.code,{children:"2"}),"-",(0,n.jsx)(s.code,{children:"23.9"}),")"]}),"\n"]}),"\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"-c"})," Enable hybrid mode (will produce ",(0,n.jsx)(s.code,{children:".wv"})," and ",(0,n.jsx)(s.code,{children:".wvc"})," file)"]}),"\n"]}),"\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"-cc"})," Enable and optimize for hybrid mode, might lower decoding speed and hurt quality"]}),"\n"]}),"\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"-m"})," Include MD5 hash of original audio data in the output file"]}),"\n"]}),"\n",(0,n.jsxs)(s.li,{children:["\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.code,{children:"--threads=8"})," Use ",(0,n.jsx)(s.code,{children:"8"})," threads (acceptable range is ",(0,n.jsx)(s.code,{children:"1"}),"-",(0,n.jsx)(s.code,{children:"12"}),")"]}),"\n"]}),"\n"]}),"\n",(0,n.jsxs)(s.p,{children:["For more detailed description of all available options, see the ",(0,n.jsx)(s.a,{href:"https://www.wavpack.com/wavpack_doc.html",children:"manual"}),"."]}),"\n",(0,n.jsx)(s.h3,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,n.jsxs)(s.p,{children:[(0,n.jsx)(s.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," has its own native WavPack encoder and decoder. It used to also support ",(0,n.jsx)(s.code,{children:"libwavpack"})," with ",(0,n.jsx)(s.code,{children:"--enable-libwavpack"}),", however it was ",(0,n.jsx)(s.a,{href:"https://hydrogenaud.io/index.php/topic,120038.0.html",children:"removed"})," due to interface incompleteness."]}),"\n",(0,n.jsxs)(s.p,{children:["The native encoder is single-threaded and doesn't support neither Lossy or ",(0,n.jsx)(s.a,{href:"#hybrid-mode",children:"Hybrid"})," Mode. It uses the ",(0,n.jsx)(s.code,{children:"-compression_level"})," parameter to control speed to compression ratio."]}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-bash",metastring:'title="Fastest, lowest compression"',children:"ffmpeg -i input.wav -compression_level 0 out.wv\n"})}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-bash",metastring:'title="Slowest, highest compression"',children:"ffmpeg -i input.wav -compression_level 8 out.wv\n"})}),"\n",(0,n.jsxs)(s.p,{children:["For all possible parameters, consult the ",(0,n.jsx)(s.a,{href:"https://www.ffmpeg.org/ffmpeg-codecs.html#wavpack",children:"FFmpeg documentation"}),"."]}),"\n",(0,n.jsx)(s.h2,{id:"adoption-issues",children:"Adoption issues"}),"\n",(0,n.jsxs)(s.p,{children:["As of 2024, WavPack has been largely superseded by ",(0,n.jsx)(s.a,{href:"/docs/audio/FLAC",children:"FLAC"}),", which became the de facto standard for lossless audio on the Web and in Hardware."]}),"\n",(0,n.jsxs)(s.p,{children:["The implementation of WavPack in media software is often incomplete. FFmpeg doesn't support ",(0,n.jsx)(s.a,{href:"#hybrid-mode",children:"Hybrid Mode"}),", and other media players usually don't support it either. There are also ",(0,n.jsx)(s.a,{href:"https://www.reddit.com/r/ffmpeg/comments/tpptoi/using_hybrid_wavpack_in_video/",children:"issues"})," with its support in the ",(0,n.jsx)(s.code,{children:".mkv"})," container."]}),"\n",(0,n.jsxs)(s.p,{children:["Without this feature, WavPack doesn't provide much benefit over already widespread ",(0,n.jsx)(s.a,{href:"/docs/audio/FLAC",children:"FLAC"}),". The compressed file might be slightly smaller, however music streaming companies tend to choose well-standardized FLAC which also has the benefit of ",(0,n.jsx)(s.code,{children:"DRM"})," support in the ",(0,n.jsx)(s.code,{children:".mp4"})," container (apparently very important thing on the modern web)."]}),"\n",(0,n.jsxs)(s.p,{children:["Even if ",(0,n.jsx)(s.a,{href:"#hybrid-mode",children:"Hybrid Mode"})," had better software support, the minimum lossy setting is ",(0,n.jsx)(s.code,{children:"2 bits per sample"}),". That translates to around ",(0,n.jsx)(s.code,{children:"200kbps"})," with stereo audio track which is quite high. The quality of WavPack lossy mode is also somewhat lacking compared to modern lossy codecs such as ",(0,n.jsx)(s.a,{href:"/docs/audio/Opus",children:"Opus"})," or ",(0,n.jsx)(s.a,{href:"/docs/audio/AAC",children:"AAC"})," because it doesn't utilize any psychoacoustic model."]}),"\n",(0,n.jsx)(s.h2,{id:"notes",children:"Notes"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:["WavPack was one of the first compressed lossless audio codecs preceding Monkey's Audio (2000), ",(0,n.jsx)(s.a,{href:"/docs/audio/FLAC",children:"FLAC"})," (2001), OptimFROG (2002) and ",(0,n.jsx)(s.a,{href:"/docs/audio/ALAC",children:"ALAC"})," (2004)."]}),"\n",(0,n.jsx)(s.li,{children:"OptimFROG Dualstream is a feature of OptimFROG codec serving a similar purpose to WavPack Hybrid, however it was introduced much later."}),"\n",(0,n.jsxs)(s.li,{children:["Apparently there are some devices with WavPack ",(0,n.jsx)(s.a,{href:"https://hydrogenaud.io/index.php/topic,119143.0.html",children:"Hardware Support"}),"."]}),"\n"]}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.strong,{children:"References:"})}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"https://www.wavpack.com/WavPack.pdf",children:"WavPack Compression Techniques"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"https://www.wavpack.com/technical.htm",children:"WavPack Technical Document"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"https://web.archive.org/web/20160705230053/http://www.wavpack.com/file_format.txt",children:"Old WavPack File Format Specification"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"https://wiki.hydrogenaud.io/index.php?title=WavPack",children:"Hydrogenaudio Wiki"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"https://wiki.multimedia.cx/index.php/WavPack",children:"Multimedia.cx Wiki"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"https://en.wikipedia.org/wiki/WavPack",children:"Wikipedia"})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"https://ffmpeg.org/doxygen/3.3/wavpackenc_8c_source.html",children:"FFmpeg WavPack Source"})}),"\n"]})]})}function h(e={}){const{wrapper:s}={...(0,o.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,s,i)=>{i.d(s,{R:()=>d,x:()=>a});var n=i(6540);const o={},r=n.createContext(o);function d(e){const s=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:d(e.components),n.createElement(r.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c92fe796.26342a37.js b/assets/js/c92fe796.26342a37.js deleted file mode 100644 index 8293936fc..000000000 --- a/assets/js/c92fe796.26342a37.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3034],{3083:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>l,contentTitle:()=>o,default:()=>h,frontMatter:()=>r,metadata:()=>d,toc:()=>c});var t=n(4848),s=n(8453);const r={title:"ffmpeg",sidebar_position:3},o="FFmpeg",d={id:"utilities/ffmpeg",title:"ffmpeg",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/utilities/ffmpeg.mdx",sourceDirName:"utilities",slug:"/utilities/ffmpeg",permalink:"/docs/utilities/ffmpeg",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/ffmpeg.mdx",tags:[],version:"current",sidebarPosition:3,frontMatter:{title:"ffmpeg",sidebar_position:3},sidebar:"tutorialSidebar",previous:{title:"Av1an",permalink:"/docs/utilities/av1an"},next:{title:"MKVToolNix",permalink:"/docs/utilities/MKVToolNix"}},l={},c=[{value:"Linux & macOS",id:"linux--macos",level:3},{value:"Windows",id:"windows",level:3},{value:"Transcode a video",id:"transcode-a-video",level:4},{value:"Transmux a video",id:"transmux-a-video",level:4},{value:"Filter a video",id:"filter-a-video",level:4},{value:"Container selection",id:"container-selection",level:4}];function a(e){const i={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h3:"h3",h4:"h4",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"ffmpeg",children:"FFmpeg"})}),"\n",(0,t.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.a,{href:"https://ffmpeg.org/",children:"FFmpeg"})," is a multimedia framework that has utilities for transcoding, transmuxing, and filtering audio and video. It provides the ",(0,t.jsx)(i.code,{children:"ffmpeg"}),", ",(0,t.jsx)(i.code,{children:"ffprobe"}),", and ",(0,t.jsx)(i.code,{children:"ffplay"})," command-line utilities. It also features the libav* libraries, which allow you to use the functionality of FFmpeg without the programs."]}),"\n",(0,t.jsx)(i.h1,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(i.p,{children:"There are a number of ways to install FFmpeg depending on the operating system you're using."}),"\n",(0,t.jsx)(i.h3,{id:"linux--macos",children:"Linux & macOS"}),"\n",(0,t.jsx)(i.p,{children:(0,t.jsx)(i.strong,{children:"Package Manager"})}),"\n",(0,t.jsxs)(i.p,{children:["The easiest way to obtain FFmpeg is through your package manager. On most package managers, the package is simply named ",(0,t.jsx)(i.code,{children:"ffmpeg"}),", however ",(0,t.jsx)(i.code,{children:"ffprobe"})," and ",(0,t.jsx)(i.code,{children:"ffplay"})," may have their own packages. Note that the packages may be outdated."]}),"\n",(0,t.jsx)(i.p,{children:(0,t.jsx)(i.strong,{children:"Compiling from source"})}),"\n",(0,t.jsxs)(i.p,{children:["A more complete guide is available at the ",(0,t.jsx)(i.a,{href:"https://trac.ffmpeg.org/wiki/CompilationGuide",children:"FFmpeg Compilation Guide"}),". Simplifying things a bit, what you need to do is:"]}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsxs)(i.li,{children:["grab ",(0,t.jsx)(i.a,{href:"https://ffmpeg.org/download.html",children:"the sources"})," or clone from FFmpeg's git: ",(0,t.jsx)(i.code,{children:"git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg"})]}),"\n",(0,t.jsxs)(i.li,{children:["Enter the directory & run ",(0,t.jsx)(i.code,{children:"./configure --help"})," to see a list of features and libraries you can choose to build with."]}),"\n",(0,t.jsx)(i.li,{children:"Install all libraries you want to build FFmpeg with."}),"\n",(0,t.jsxs)(i.li,{children:["Run ",(0,t.jsx)(i.code,{children:"./configure"})," with ",(0,t.jsx)(i.code,{children:"--enable-"})," flags as desired."]}),"\n",(0,t.jsxs)(i.li,{children:["Run ",(0,t.jsx)(i.code,{children:"make"}),", or ",(0,t.jsx)(i.code,{children:"make -j $(nproc)"})," on Linux to properly make use of multiple cores. on macOS, this would be ",(0,t.jsx)(i.code,{children:"make -j $(sysctl -n hw.ncpu)"}),"."]}),"\n",(0,t.jsxs)(i.li,{children:["Run ",(0,t.jsx)(i.code,{children:"make install"}),". May require root."]}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"windows",children:"Windows"}),"\n",(0,t.jsx)(i.p,{children:"There are no official binaries for FFmpeg on Windows, but you can download third-party binaries:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsxs)(i.li,{children:["by ",(0,t.jsx)(i.a,{href:"https://www.gyan.dev/ffmpeg/builds/",children:"gyan.dev"})]}),"\n",(0,t.jsxs)(i.li,{children:["by ",(0,t.jsx)(i.a,{href:"https://github.com/BtbN/FFmpeg-Builds/releases",children:"BtbN"})]}),"\n"]}),"\n",(0,t.jsx)(i.h1,{id:"using-ffmpeg",children:"Using FFmpeg"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.code,{children:"ffmpeg"})," is the primary command-line tool of FFmpeg. It takes 0 or more files as inputs & outputs."]}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.code,{children:"ffmpeg"}),"'s command-line arguments are positional, meaning it matters where you put each option. Each input and output has its own arguments. For example, ",(0,t.jsx)(i.code,{children:"ffmpeg -r 24 -i file1 file2"})," applies the ",(0,t.jsx)(i.code,{children:"-r 24"})," option to the input ",(0,t.jsx)(i.code,{children:"file1"}),", interpreting the video as having that frame rate, while ",(0,t.jsx)(i.code,{children:"ffmpeg -i file1 -r 24 file2"})," applies the ",(0,t.jsx)(i.code,{children:"-r 24"})," option to ",(0,t.jsx)(i.code,{children:"file2"}),". To get a list of options, refer to the more verbose ",(0,t.jsx)(i.a,{href:"//ffmpeg.org/ffmpeg-all.html",children:"FFmpeg documentation"}),"."]}),"\n",(0,t.jsx)(i.h4,{id:"transcode-a-video",children:"Transcode a video"}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",children:"ffmpeg -i [input] -c:v [video_codec] -b:v [video_bitrate] -c:a [audio_codec] -b:a [audio_bitrate] output\n"})}),"\n",(0,t.jsxs)(i.table,{children:[(0,t.jsx)(i.thead,{children:(0,t.jsxs)(i.tr,{children:[(0,t.jsx)(i.th,{children:"Option"}),(0,t.jsx)(i.th,{children:"Meaning"})]})}),(0,t.jsxs)(i.tbody,{children:[(0,t.jsxs)(i.tr,{children:[(0,t.jsx)(i.td,{children:(0,t.jsx)(i.code,{children:"-c:v video_encoder"})}),(0,t.jsxs)(i.td,{children:[(0,t.jsx)(i.strong,{children:"c"}),"odec for the automatically selected ",(0,t.jsx)(i.strong,{children:"v"}),"ideo stream"]})]}),(0,t.jsxs)(i.tr,{children:[(0,t.jsx)(i.td,{children:(0,t.jsx)(i.code,{children:"-b:v video_bitrate"})}),(0,t.jsxs)(i.td,{children:[(0,t.jsx)(i.strong,{children:"b"}),"itrate for the automatically selected ",(0,t.jsx)(i.strong,{children:"v"}),"ideo stream"]})]}),(0,t.jsxs)(i.tr,{children:[(0,t.jsx)(i.td,{children:(0,t.jsx)(i.code,{children:"-c:a audio_encoder"})}),(0,t.jsxs)(i.td,{children:[(0,t.jsx)(i.strong,{children:"c"}),"odec for the automatically selected ",(0,t.jsx)(i.strong,{children:"a"}),"udio stream"]})]}),(0,t.jsxs)(i.tr,{children:[(0,t.jsx)(i.td,{children:(0,t.jsx)(i.code,{children:"-b:a audio_bitrate"})}),(0,t.jsxs)(i.td,{children:[(0,t.jsx)(i.strong,{children:"b"}),"itrate for the automatically selected ",(0,t.jsx)(i.strong,{children:"a"}),"udio stream"]})]})]})]}),"\n",(0,t.jsx)(i.h4,{id:"transmux-a-video",children:"Transmux a video"}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",children:"ffmpeg -i [input] -c copy [output]\n"})}),"\n",(0,t.jsxs)(i.table,{children:[(0,t.jsx)(i.thead,{children:(0,t.jsxs)(i.tr,{children:[(0,t.jsx)(i.th,{children:"Option"}),(0,t.jsx)(i.th,{children:"Meaning"})]})}),(0,t.jsx)(i.tbody,{children:(0,t.jsxs)(i.tr,{children:[(0,t.jsx)(i.td,{children:(0,t.jsx)(i.code,{children:"-c copy"})}),(0,t.jsxs)(i.td,{children:["set the ",(0,t.jsx)(i.strong,{children:"c"}),"odec to ",(0,t.jsx)(i.strong,{children:"copy"})]})]})})]}),"\n",(0,t.jsx)(i.h4,{id:"filter-a-video",children:"Filter a video"}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{className:"language-bash",children:"ffmpeg -i [input] -c:v [video_encoder] -c:a [audio_codec] (...) -vf [filter_name] output\n"})}),"\n",(0,t.jsxs)(i.table,{children:[(0,t.jsx)(i.thead,{children:(0,t.jsxs)(i.tr,{children:[(0,t.jsx)(i.th,{children:"Option"}),(0,t.jsx)(i.th,{children:"Meaning"})]})}),(0,t.jsx)(i.tbody,{children:(0,t.jsxs)(i.tr,{children:[(0,t.jsx)(i.td,{children:(0,t.jsx)(i.code,{children:"-vf filter_name"})}),(0,t.jsxs)(i.td,{children:["set the ",(0,t.jsx)(i.strong,{children:"v"}),"ideo ",(0,t.jsx)(i.strong,{children:"f"}),"ilter to ",(0,t.jsx)(i.strong,{children:"filter_name"})]})]})})]}),"\n",(0,t.jsx)(i.h4,{id:"container-selection",children:"Container selection"}),"\n",(0,t.jsxs)(i.p,{children:["FFmpeg will usually select the appropriate container based on the file extension of the output. If it doesn't detect the correct container, you can specify it with ",(0,t.jsx)(i.code,{children:"-f"}),"."]}),"\n",(0,t.jsxs)(i.table,{children:[(0,t.jsx)(i.thead,{children:(0,t.jsxs)(i.tr,{children:[(0,t.jsx)(i.th,{children:"Option"}),(0,t.jsx)(i.th,{children:"Meaning"})]})}),(0,t.jsx)(i.tbody,{children:(0,t.jsxs)(i.tr,{children:[(0,t.jsx)(i.td,{children:(0,t.jsx)(i.code,{children:"-f format_name"})}),(0,t.jsxs)(i.td,{children:["set the ",(0,t.jsx)(i.strong,{children:"f"}),"ormat to ",(0,t.jsx)(i.strong,{children:"format_name"})]})]})})]}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.em,{children:"References:"}),"\n",(0,t.jsxs)(i.em,{children:["[^multimediawiki-howtos]: ",(0,t.jsx)(i.a,{href:"//wiki.multimedia.cx/index.php?search=HOWTO&title=Special%3ASearch&go=Go",children:"HOWTO Search Results - MultimediaWiki"})]})]}),"\n",(0,t.jsx)(i.p,{children:(0,t.jsxs)(i.em,{children:["Special thanks to ",(0,t.jsx)(i.a,{href:"https://encoding.bluefalcon.cc/",children:"bluefalcon's encoding guide"})," for this material, licensed under CC BY-SA 4.0. Our adaptation features formatting changes & content changes, specifically regarding the titles of some headings."]})})]})}function h(e={}){const{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(a,{...e})}):a(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>o,x:()=>d});var t=n(6540);const s={},r=t.createContext(s);function o(e){const i=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function d(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),t.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c92fe796.dd492aca.js b/assets/js/c92fe796.dd492aca.js new file mode 100644 index 000000000..974d34eeb --- /dev/null +++ b/assets/js/c92fe796.dd492aca.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3034],{454:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>l,contentTitle:()=>d,default:()=>h,frontMatter:()=>o,metadata:()=>t,toc:()=>c});const t=JSON.parse('{"id":"utilities/ffmpeg","title":"ffmpeg","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/utilities/ffmpeg.mdx","sourceDirName":"utilities","slug":"/utilities/ffmpeg","permalink":"/docs/utilities/ffmpeg","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/ffmpeg.mdx","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"title":"ffmpeg","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"Av1an","permalink":"/docs/utilities/av1an"},"next":{"title":"MKVToolNix","permalink":"/docs/utilities/MKVToolNix"}}');var s=n(4848),r=n(8453);const o={title:"ffmpeg",sidebar_position:3},d="FFmpeg",l={},c=[{value:"Linux & macOS",id:"linux--macos",level:3},{value:"Windows",id:"windows",level:3},{value:"Transcode a video",id:"transcode-a-video",level:4},{value:"Transmux a video",id:"transmux-a-video",level:4},{value:"Filter a video",id:"filter-a-video",level:4},{value:"Container selection",id:"container-selection",level:4}];function a(e){const i={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h3:"h3",h4:"h4",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"ffmpeg",children:"FFmpeg"})}),"\n",(0,s.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,s.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,s.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.a,{href:"https://ffmpeg.org/",children:"FFmpeg"})," is a multimedia framework that has utilities for transcoding, transmuxing, and filtering audio and video. It provides the ",(0,s.jsx)(i.code,{children:"ffmpeg"}),", ",(0,s.jsx)(i.code,{children:"ffprobe"}),", and ",(0,s.jsx)(i.code,{children:"ffplay"})," command-line utilities. It also features the libav* libraries, which allow you to use the functionality of FFmpeg without the programs."]}),"\n",(0,s.jsx)(i.h1,{id:"installation",children:"Installation"}),"\n",(0,s.jsx)(i.p,{children:"There are a number of ways to install FFmpeg depending on the operating system you're using."}),"\n",(0,s.jsx)(i.h3,{id:"linux--macos",children:"Linux & macOS"}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.strong,{children:"Package Manager"})}),"\n",(0,s.jsxs)(i.p,{children:["The easiest way to obtain FFmpeg is through your package manager. On most package managers, the package is simply named ",(0,s.jsx)(i.code,{children:"ffmpeg"}),", however ",(0,s.jsx)(i.code,{children:"ffprobe"})," and ",(0,s.jsx)(i.code,{children:"ffplay"})," may have their own packages. Note that the packages may be outdated."]}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsx)(i.strong,{children:"Compiling from source"})}),"\n",(0,s.jsxs)(i.p,{children:["A more complete guide is available at the ",(0,s.jsx)(i.a,{href:"https://trac.ffmpeg.org/wiki/CompilationGuide",children:"FFmpeg Compilation Guide"}),". Simplifying things a bit, what you need to do is:"]}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:["grab ",(0,s.jsx)(i.a,{href:"https://ffmpeg.org/download.html",children:"the sources"})," or clone from FFmpeg's git: ",(0,s.jsx)(i.code,{children:"git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg"})]}),"\n",(0,s.jsxs)(i.li,{children:["Enter the directory & run ",(0,s.jsx)(i.code,{children:"./configure --help"})," to see a list of features and libraries you can choose to build with."]}),"\n",(0,s.jsx)(i.li,{children:"Install all libraries you want to build FFmpeg with."}),"\n",(0,s.jsxs)(i.li,{children:["Run ",(0,s.jsx)(i.code,{children:"./configure"})," with ",(0,s.jsx)(i.code,{children:"--enable-"})," flags as desired."]}),"\n",(0,s.jsxs)(i.li,{children:["Run ",(0,s.jsx)(i.code,{children:"make"}),", or ",(0,s.jsx)(i.code,{children:"make -j $(nproc)"})," on Linux to properly make use of multiple cores. on macOS, this would be ",(0,s.jsx)(i.code,{children:"make -j $(sysctl -n hw.ncpu)"}),"."]}),"\n",(0,s.jsxs)(i.li,{children:["Run ",(0,s.jsx)(i.code,{children:"make install"}),". May require root."]}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"windows",children:"Windows"}),"\n",(0,s.jsx)(i.p,{children:"There are no official binaries for FFmpeg on Windows, but you can download third-party binaries:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:["by ",(0,s.jsx)(i.a,{href:"https://www.gyan.dev/ffmpeg/builds/",children:"gyan.dev"})]}),"\n",(0,s.jsxs)(i.li,{children:["by ",(0,s.jsx)(i.a,{href:"https://github.com/BtbN/FFmpeg-Builds/releases",children:"BtbN"})]}),"\n"]}),"\n",(0,s.jsx)(i.h1,{id:"using-ffmpeg",children:"Using FFmpeg"}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.code,{children:"ffmpeg"})," is the primary command-line tool of FFmpeg. It takes 0 or more files as inputs & outputs."]}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.code,{children:"ffmpeg"}),"'s command-line arguments are positional, meaning it matters where you put each option. Each input and output has its own arguments. For example, ",(0,s.jsx)(i.code,{children:"ffmpeg -r 24 -i file1 file2"})," applies the ",(0,s.jsx)(i.code,{children:"-r 24"})," option to the input ",(0,s.jsx)(i.code,{children:"file1"}),", interpreting the video as having that frame rate, while ",(0,s.jsx)(i.code,{children:"ffmpeg -i file1 -r 24 file2"})," applies the ",(0,s.jsx)(i.code,{children:"-r 24"})," option to ",(0,s.jsx)(i.code,{children:"file2"}),". To get a list of options, refer to the more verbose ",(0,s.jsx)(i.a,{href:"//ffmpeg.org/ffmpeg-all.html",children:"FFmpeg documentation"}),"."]}),"\n",(0,s.jsx)(i.h4,{id:"transcode-a-video",children:"Transcode a video"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-bash",children:"ffmpeg -i [input] -c:v [video_codec] -b:v [video_bitrate] -c:a [audio_codec] -b:a [audio_bitrate] output\n"})}),"\n",(0,s.jsxs)(i.table,{children:[(0,s.jsx)(i.thead,{children:(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.th,{children:"Option"}),(0,s.jsx)(i.th,{children:"Meaning"})]})}),(0,s.jsxs)(i.tbody,{children:[(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:(0,s.jsx)(i.code,{children:"-c:v video_encoder"})}),(0,s.jsxs)(i.td,{children:[(0,s.jsx)(i.strong,{children:"c"}),"odec for the automatically selected ",(0,s.jsx)(i.strong,{children:"v"}),"ideo stream"]})]}),(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:(0,s.jsx)(i.code,{children:"-b:v video_bitrate"})}),(0,s.jsxs)(i.td,{children:[(0,s.jsx)(i.strong,{children:"b"}),"itrate for the automatically selected ",(0,s.jsx)(i.strong,{children:"v"}),"ideo stream"]})]}),(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:(0,s.jsx)(i.code,{children:"-c:a audio_encoder"})}),(0,s.jsxs)(i.td,{children:[(0,s.jsx)(i.strong,{children:"c"}),"odec for the automatically selected ",(0,s.jsx)(i.strong,{children:"a"}),"udio stream"]})]}),(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:(0,s.jsx)(i.code,{children:"-b:a audio_bitrate"})}),(0,s.jsxs)(i.td,{children:[(0,s.jsx)(i.strong,{children:"b"}),"itrate for the automatically selected ",(0,s.jsx)(i.strong,{children:"a"}),"udio stream"]})]})]})]}),"\n",(0,s.jsx)(i.h4,{id:"transmux-a-video",children:"Transmux a video"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-bash",children:"ffmpeg -i [input] -c copy [output]\n"})}),"\n",(0,s.jsxs)(i.table,{children:[(0,s.jsx)(i.thead,{children:(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.th,{children:"Option"}),(0,s.jsx)(i.th,{children:"Meaning"})]})}),(0,s.jsx)(i.tbody,{children:(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:(0,s.jsx)(i.code,{children:"-c copy"})}),(0,s.jsxs)(i.td,{children:["set the ",(0,s.jsx)(i.strong,{children:"c"}),"odec to ",(0,s.jsx)(i.strong,{children:"copy"})]})]})})]}),"\n",(0,s.jsx)(i.h4,{id:"filter-a-video",children:"Filter a video"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-bash",children:"ffmpeg -i [input] -c:v [video_encoder] -c:a [audio_codec] (...) -vf [filter_name] output\n"})}),"\n",(0,s.jsxs)(i.table,{children:[(0,s.jsx)(i.thead,{children:(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.th,{children:"Option"}),(0,s.jsx)(i.th,{children:"Meaning"})]})}),(0,s.jsx)(i.tbody,{children:(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:(0,s.jsx)(i.code,{children:"-vf filter_name"})}),(0,s.jsxs)(i.td,{children:["set the ",(0,s.jsx)(i.strong,{children:"v"}),"ideo ",(0,s.jsx)(i.strong,{children:"f"}),"ilter to ",(0,s.jsx)(i.strong,{children:"filter_name"})]})]})})]}),"\n",(0,s.jsx)(i.h4,{id:"container-selection",children:"Container selection"}),"\n",(0,s.jsxs)(i.p,{children:["FFmpeg will usually select the appropriate container based on the file extension of the output. If it doesn't detect the correct container, you can specify it with ",(0,s.jsx)(i.code,{children:"-f"}),"."]}),"\n",(0,s.jsxs)(i.table,{children:[(0,s.jsx)(i.thead,{children:(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.th,{children:"Option"}),(0,s.jsx)(i.th,{children:"Meaning"})]})}),(0,s.jsx)(i.tbody,{children:(0,s.jsxs)(i.tr,{children:[(0,s.jsx)(i.td,{children:(0,s.jsx)(i.code,{children:"-f format_name"})}),(0,s.jsxs)(i.td,{children:["set the ",(0,s.jsx)(i.strong,{children:"f"}),"ormat to ",(0,s.jsx)(i.strong,{children:"format_name"})]})]})})]}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.em,{children:"References:"}),"\n",(0,s.jsxs)(i.em,{children:["[^multimediawiki-howtos]: ",(0,s.jsx)(i.a,{href:"//wiki.multimedia.cx/index.php?search=HOWTO&title=Special%3ASearch&go=Go",children:"HOWTO Search Results - MultimediaWiki"})]})]}),"\n",(0,s.jsx)(i.p,{children:(0,s.jsxs)(i.em,{children:["Special thanks to ",(0,s.jsx)(i.a,{href:"https://encoding.bluefalcon.cc/",children:"bluefalcon's encoding guide"})," for this material, licensed under CC BY-SA 4.0. Our adaptation features formatting changes & content changes, specifically regarding the titles of some headings."]})})]})}function h(e={}){const{wrapper:i}={...(0,r.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>o,x:()=>d});var t=n(6540);const s={},r=t.createContext(s);function o(e){const i=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function d(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),t.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c943a24a.3e2e52c2.js b/assets/js/c943a24a.3e2e52c2.js new file mode 100644 index 000000000..ef1418e0e --- /dev/null +++ b/assets/js/c943a24a.3e2e52c2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5512],{1963:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>d,contentTitle:()=>r,default:()=>h,frontMatter:()=>s,metadata:()=>n,toc:()=>l});const n=JSON.parse('{"id":"introduction/high-dynamic-range","title":"High Dynamic Range","description":"HDR (High Dynamic Range) is a technology used in modern TVs and displays to produce more vibrant and lifelike images. In simple terms, it allows your TV to display a wider range of colors and brightness levels than standard displays. This means that you can see more details in both bright and dark areas of an image, which can make movies, TV shows, and video games look much more realistic.","source":"@site/docs/introduction/high-dynamic-range.mdx","sourceDirName":"introduction","slug":"/introduction/high-dynamic-range","permalink":"/docs/introduction/high-dynamic-range","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/high-dynamic-range.mdx","tags":[],"version":"current","sidebarPosition":6,"frontMatter":{"sidebar_position":6},"sidebar":"tutorialSidebar","previous":{"title":"Psychovisual","permalink":"/docs/introduction/psychovisual"},"next":{"title":"Intro","permalink":"/docs/audio/intro"}}');var a=t(4848),o=t(8453);const s={sidebar_position:6},r="High Dynamic Range",d={},l=[{value:"HLG",id:"hlg",level:2},{value:"HDR10",id:"hdr10",level:2},{value:"HDR10+",id:"hdr10-1",level:2},{value:"Dolby Vision",id:"dolby-vision",level:2}];function c(e){const i={code:"code",h1:"h1",h2:"h2",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.header,{children:(0,a.jsx)(i.h1,{id:"high-dynamic-range",children:"High Dynamic Range"})}),"\n",(0,a.jsx)(i.p,{children:"HDR (High Dynamic Range) is a technology used in modern TVs and displays to produce more vibrant and lifelike images. In simple terms, it allows your TV to display a wider range of colors and brightness levels than standard displays. This means that you can see more details in both bright and dark areas of an image, which can make movies, TV shows, and video games look much more realistic."}),"\n",(0,a.jsx)(i.p,{children:"HDR10 works by using metadata that tells your TV how to display the content in the best way possible. This metadata includes information about the maximum brightness level and color gamut of the content, which allows your TV to adjust its settings to match the content being displayed. In other words, HDR10 helps your TV display images that are closer to what the content creators intended you to see, resulting in a more immersive viewing experience."}),"\n",(0,a.jsx)(i.h2,{id:"hlg",children:"HLG"}),"\n",(0,a.jsx)(i.p,{children:"HLG (Hybrid log-gamma) is a type of HDR video format that was developed to optimize video for both standard dynamic range (SDR) and HDR displays, jointly developed by the BBC and NHK."}),"\n",(0,a.jsx)(i.p,{children:"To understand how HLG works, it's helpful to know that the way we perceive brightness and color in a video is different from how it's captured and displayed on a screen. Brightness and color information is usually captured in a logarithmic curve, while SDR displays typically reproduce the image with a gamma curve. HDR displays, on the other hand, reproduce the image with a different type of curve, known as the Perceptual Quantizer (PQ) curve."}),"\n",(0,a.jsx)(i.p,{children:"The HLG curve is a hybrid of these two curves, which means that it's optimized for both SDR and HDR displays. It's designed to work with a wider range of brightness levels than SDR displays, but also be backward compatible with SDR displays."}),"\n",(0,a.jsx)(i.p,{children:"In simpler terms, the HLG curve is a way of capturing and displaying video that works well on both SDR and HDR displays. It's like a bridge between the way video is captured and the way it's displayed, and it's designed to optimize the video for a wider range of brightness levels than traditional SDR video. The result is video content that looks more realistic and vivid on both SDR and HDR displays."}),"\n",(0,a.jsx)(i.h2,{id:"hdr10",children:"HDR10"}),"\n",(0,a.jsx)(i.p,{children:"HDR10 is an open high-dynamic-range video (HDR) standard announced on 27 August 2015 by the Consumer Technology Association. It is the most widespread of the HDR formats. It only allows static metadata."}),"\n",(0,a.jsx)(i.h2,{id:"hdr10-1",children:"HDR10+"}),"\n",(0,a.jsxs)(i.p,{children:["HDR10+ is basically an upgrade to the previous HDR10 by adding dynamic metadata support (in ",(0,a.jsx)(i.code,{children:".json"}),") to optimize each scene's content light level as the director intended."]}),"\n",(0,a.jsx)(i.h2,{id:"dolby-vision",children:"Dolby Vision"}),"\n",(0,a.jsx)(i.p,{children:"Dolby Vision is proprietary HDR format developed by Dolby Laboratories and a direct competitor to HDR10+."})]})}function h(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,a.jsx)(i,{...e,children:(0,a.jsx)(c,{...e})}):c(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>s,x:()=>r});var n=t(6540);const a={},o=n.createContext(a);function s(e){const i=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),n.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c943a24a.7eb67860.js b/assets/js/c943a24a.7eb67860.js deleted file mode 100644 index 958a5887b..000000000 --- a/assets/js/c943a24a.7eb67860.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5512],{556:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>d,contentTitle:()=>s,default:()=>c,frontMatter:()=>o,metadata:()=>r,toc:()=>l});var n=t(4848),a=t(8453);const o={sidebar_position:6},s="High Dynamic Range",r={id:"introduction/high-dynamic-range",title:"High Dynamic Range",description:"HDR (High Dynamic Range) is a technology used in modern TVs and displays to produce more vibrant and lifelike images. In simple terms, it allows your TV to display a wider range of colors and brightness levels than standard displays. This means that you can see more details in both bright and dark areas of an image, which can make movies, TV shows, and video games look much more realistic.",source:"@site/docs/introduction/high-dynamic-range.mdx",sourceDirName:"introduction",slug:"/introduction/high-dynamic-range",permalink:"/docs/introduction/high-dynamic-range",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/high-dynamic-range.mdx",tags:[],version:"current",sidebarPosition:6,frontMatter:{sidebar_position:6},sidebar:"tutorialSidebar",previous:{title:"Psychovisual",permalink:"/docs/introduction/psychovisual"},next:{title:"Intro",permalink:"/docs/audio/intro"}},d={},l=[{value:"HLG",id:"hlg",level:2},{value:"HDR10",id:"hdr10",level:2},{value:"HDR10+",id:"hdr10-1",level:2},{value:"Dolby Vision",id:"dolby-vision",level:2}];function h(e){const i={code:"code",h1:"h1",h2:"h2",header:"header",p:"p",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"high-dynamic-range",children:"High Dynamic Range"})}),"\n",(0,n.jsx)(i.p,{children:"HDR (High Dynamic Range) is a technology used in modern TVs and displays to produce more vibrant and lifelike images. In simple terms, it allows your TV to display a wider range of colors and brightness levels than standard displays. This means that you can see more details in both bright and dark areas of an image, which can make movies, TV shows, and video games look much more realistic."}),"\n",(0,n.jsx)(i.p,{children:"HDR10 works by using metadata that tells your TV how to display the content in the best way possible. This metadata includes information about the maximum brightness level and color gamut of the content, which allows your TV to adjust its settings to match the content being displayed. In other words, HDR10 helps your TV display images that are closer to what the content creators intended you to see, resulting in a more immersive viewing experience."}),"\n",(0,n.jsx)(i.h2,{id:"hlg",children:"HLG"}),"\n",(0,n.jsx)(i.p,{children:"HLG (Hybrid log-gamma) is a type of HDR video format that was developed to optimize video for both standard dynamic range (SDR) and HDR displays, jointly developed by the BBC and NHK."}),"\n",(0,n.jsx)(i.p,{children:"To understand how HLG works, it's helpful to know that the way we perceive brightness and color in a video is different from how it's captured and displayed on a screen. Brightness and color information is usually captured in a logarithmic curve, while SDR displays typically reproduce the image with a gamma curve. HDR displays, on the other hand, reproduce the image with a different type of curve, known as the Perceptual Quantizer (PQ) curve."}),"\n",(0,n.jsx)(i.p,{children:"The HLG curve is a hybrid of these two curves, which means that it's optimized for both SDR and HDR displays. It's designed to work with a wider range of brightness levels than SDR displays, but also be backward compatible with SDR displays."}),"\n",(0,n.jsx)(i.p,{children:"In simpler terms, the HLG curve is a way of capturing and displaying video that works well on both SDR and HDR displays. It's like a bridge between the way video is captured and the way it's displayed, and it's designed to optimize the video for a wider range of brightness levels than traditional SDR video. The result is video content that looks more realistic and vivid on both SDR and HDR displays."}),"\n",(0,n.jsx)(i.h2,{id:"hdr10",children:"HDR10"}),"\n",(0,n.jsx)(i.p,{children:"HDR10 is an open high-dynamic-range video (HDR) standard announced on 27 August 2015 by the Consumer Technology Association. It is the most widespread of the HDR formats. It only allows static metadata."}),"\n",(0,n.jsx)(i.h2,{id:"hdr10-1",children:"HDR10+"}),"\n",(0,n.jsxs)(i.p,{children:["HDR10+ is basically an upgrade to the previous HDR10 by adding dynamic metadata support (in ",(0,n.jsx)(i.code,{children:".json"}),") to optimize each scene's content light level as the director intended."]}),"\n",(0,n.jsx)(i.h2,{id:"dolby-vision",children:"Dolby Vision"}),"\n",(0,n.jsx)(i.p,{children:"Dolby Vision is proprietary HDR format developed by Dolby Laboratories and a direct competitor to HDR10+."})]})}function c(e={}){const{wrapper:i}={...(0,a.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>s,x:()=>r});var n=t(6540);const a={},o=n.createContext(a);function s(e){const i=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),n.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ccc49370.53a4f211.js b/assets/js/ccc49370.53a4f211.js new file mode 100644 index 000000000..a3d209628 --- /dev/null +++ b/assets/js/ccc49370.53a4f211.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3249],{3858:(e,n,t)=>{t.r(n),t.d(n,{default:()=>b});t(6540);var i=t(4164),a=t(1213),s=t(7559),r=t(4096),o=t(8027),l=t(1240),c=t(1312),d=t(9022),u=t(4848);function m(e){const{nextItem:n,prevItem:t}=e;return(0,u.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,c.T)({id:"theme.blog.post.paginator.navAriaLabel",message:"Blog post page navigation",description:"The ARIA label for the blog posts pagination"}),children:[t&&(0,u.jsx)(d.A,{...t,subLabel:(0,u.jsx)(c.A,{id:"theme.blog.post.paginator.newerPost",description:"The blog post button label to navigate to the newer/previous post",children:"Newer post"})}),n&&(0,u.jsx)(d.A,{...n,subLabel:(0,u.jsx)(c.A,{id:"theme.blog.post.paginator.olderPost",description:"The blog post button label to navigate to the older/next post",children:"Older post"}),isNext:!0})]})}function h(){const{assets:e,metadata:n}=(0,r.e7)(),{title:t,description:i,date:s,tags:o,authors:l,frontMatter:c}=n,{keywords:d}=c,m=e.image??c.image;return(0,u.jsxs)(a.be,{title:c.title_meta??t,description:i,keywords:d,image:m,children:[(0,u.jsx)("meta",{property:"og:type",content:"article"}),(0,u.jsx)("meta",{property:"article:published_time",content:s}),l.some((e=>e.url))&&(0,u.jsx)("meta",{property:"article:author",content:l.map((e=>e.url)).filter(Boolean).join(",")}),o.length>0&&(0,u.jsx)("meta",{property:"article:tag",content:o.map((e=>e.label)).join(",")})]})}var f=t(5260);function g(){const e=(0,r.J_)();return(0,u.jsx)(f.A,{children:(0,u.jsx)("script",{type:"application/ld+json",children:JSON.stringify(e)})})}var p=t(7763),v=t(6451);function x(e){let{sidebar:n,children:t}=e;const{metadata:i,toc:a}=(0,r.e7)(),{nextItem:s,prevItem:c,frontMatter:d}=i,{hide_table_of_contents:h,toc_min_heading_level:f,toc_max_heading_level:g}=d;return(0,u.jsxs)(o.A,{sidebar:n,toc:!h&&a.length>0?(0,u.jsx)(p.A,{toc:a,minHeadingLevel:f,maxHeadingLevel:g}):void 0,children:[(0,u.jsx)(v.A,{metadata:i}),(0,u.jsx)(l.A,{children:t}),(s||c)&&(0,u.jsx)(m,{nextItem:s,prevItem:c})]})}function b(e){const n=e.content;return(0,u.jsx)(r.in,{content:e.content,isBlogPostPage:!0,children:(0,u.jsxs)(a.e3,{className:(0,i.A)(s.G.wrapper.blogPages,s.G.page.blogPostPage),children:[(0,u.jsx)(h,{}),(0,u.jsx)(g,{}),(0,u.jsx)(x,{sidebar:e.sidebar,children:(0,u.jsx)(n,{})})]})})}},2234:(e,n,t)=>{t.d(n,{A:()=>c});t(6540);var i=t(4164),a=t(4084),s=t(7559),r=t(7293),o=t(4848);function l(e){let{className:n}=e;return(0,o.jsx)(r.A,{type:"caution",title:(0,o.jsx)(a.Rc,{}),className:(0,i.A)(n,s.G.common.unlistedBanner),children:(0,o.jsx)(a.Uh,{})})}function c(e){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.AE,{}),(0,o.jsx)(l,{...e})]})}},6451:(e,n,t)=>{t.d(n,{A:()=>d});t(6540);var i=t(4164),a=t(4084),s=t(7559),r=t(7293),o=t(4848);function l(e){let{className:n}=e;return(0,o.jsx)(r.A,{type:"caution",title:(0,o.jsx)(a.Yh,{}),className:(0,i.A)(n,s.G.common.draftBanner),children:(0,o.jsx)(a.TT,{})})}var c=t(2234);function d(e){let{metadata:n}=e;const{unlisted:t,frontMatter:i}=n;return(0,o.jsxs)(o.Fragment,{children:[(t||i.unlisted)&&(0,o.jsx)(c.A,{}),i.draft&&(0,o.jsx)(l,{})]})}},7763:(e,n,t)=>{t.d(n,{A:()=>c});t(6540);var i=t(4164),a=t(5195);const s={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var r=t(4848);const o="table-of-contents__link toc-highlight",l="table-of-contents__link--active";function c(e){let{className:n,...t}=e;return(0,r.jsx)("div",{className:(0,i.A)(s.tableOfContents,"thin-scrollbar",n),children:(0,r.jsx)(a.A,{...t,linkClassName:o,linkActiveClassName:l})})}},5195:(e,n,t)=>{t.d(n,{A:()=>g});var i=t(6540),a=t(6342);function s(e){const n=e.map((e=>({...e,parentIndex:-1,children:[]}))),t=Array(7).fill(-1);n.forEach(((e,n)=>{const i=t.slice(2,e.level);e.parentIndex=Math.max(...i),t[e.level]=n}));const i=[];return n.forEach((e=>{const{parentIndex:t,...a}=e;t>=0?n[t].children.push(a):i.push(a)})),i}function r(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:i}=e;return n.flatMap((e=>{const n=r({toc:e.children,minHeadingLevel:t,maxHeadingLevel:i});return function(e){return e.level>=t&&e.level<=i}(e)?[{...e,children:n}]:n}))}function o(e){const n=e.getBoundingClientRect();return n.top===n.bottom?o(e.parentNode):n}function l(e,n){let{anchorTopOffset:t}=n;const i=e.find((e=>o(e).top>=t));if(i){return function(e){return e.top>0&&e.bottom{e.current=n?0:document.querySelector(".navbar").clientHeight}),[n]),e}function d(e){const n=(0,i.useRef)(void 0),t=c();(0,i.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:i,linkActiveClassName:a,minHeadingLevel:s,maxHeadingLevel:r}=e;function o(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(i),o=function(e){let{minHeadingLevel:n,maxHeadingLevel:t}=e;const i=[];for(let a=n;a<=t;a+=1)i.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(i.join()))}({minHeadingLevel:s,maxHeadingLevel:r}),c=l(o,{anchorTopOffset:t.current}),d=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,t){t?(n.current&&n.current!==e&&n.current.classList.remove(a),e.classList.add(a),n.current=e):e.classList.remove(a)}(e,e===d)}))}return document.addEventListener("scroll",o),document.addEventListener("resize",o),o(),()=>{document.removeEventListener("scroll",o),document.removeEventListener("resize",o)}}),[e,t])}var u=t(8774),m=t(4848);function h(e){let{toc:n,className:t,linkClassName:i,isChild:a}=e;return n.length?(0,m.jsx)("ul",{className:a?void 0:t,children:n.map((e=>(0,m.jsxs)("li",{children:[(0,m.jsx)(u.A,{to:`#${e.id}`,className:i??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,m.jsx)(h,{isChild:!0,toc:e.children,className:t,linkClassName:i})]},e.id)))}):null}const f=i.memo(h);function g(e){let{toc:n,className:t="table-of-contents table-of-contents__left-border",linkClassName:o="table-of-contents__link",linkActiveClassName:l,minHeadingLevel:c,maxHeadingLevel:u,...h}=e;const g=(0,a.p)(),p=c??g.tableOfContents.minHeadingLevel,v=u??g.tableOfContents.maxHeadingLevel,x=function(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:a}=e;return(0,i.useMemo)((()=>r({toc:s(n),minHeadingLevel:t,maxHeadingLevel:a})),[n,t,a])}({toc:n,minHeadingLevel:p,maxHeadingLevel:v});return d((0,i.useMemo)((()=>{if(o&&l)return{linkClassName:o,linkActiveClassName:l,minHeadingLevel:p,maxHeadingLevel:v}}),[o,l,p,v])),(0,m.jsx)(f,{toc:x,className:t,linkClassName:o,...h})}},4084:(e,n,t)=>{t.d(n,{AE:()=>l,Rc:()=>r,TT:()=>d,Uh:()=>o,Yh:()=>c});t(6540);var i=t(1312),a=t(5260),s=t(4848);function r(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.unlistedBanner.title",description:"The unlisted content banner title",children:"Unlisted page"})}function o(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.unlistedBanner.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function l(){return(0,s.jsx)(a.A,{children:(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function c(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.draftBanner.title",description:"The draft content banner title",children:"Draft page"})}function d(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.draftBanner.message",description:"The draft content banner message",children:"This page is a draft. It will only be visible in dev and be excluded from the production build."})}}}]); \ No newline at end of file diff --git a/assets/js/ccc49370.847a3819.js b/assets/js/ccc49370.847a3819.js deleted file mode 100644 index d1d2e3f3c..000000000 --- a/assets/js/ccc49370.847a3819.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3249],{3858:(e,n,t)=>{t.r(n),t.d(n,{default:()=>b});t(6540);var i=t(4164),a=t(1213),s=t(7559),r=t(4096),o=t(8027),l=t(1240),c=t(1312),d=t(9022),u=t(4848);function m(e){const{nextItem:n,prevItem:t}=e;return(0,u.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,c.T)({id:"theme.blog.post.paginator.navAriaLabel",message:"Blog post page navigation",description:"The ARIA label for the blog posts pagination"}),children:[t&&(0,u.jsx)(d.A,{...t,subLabel:(0,u.jsx)(c.A,{id:"theme.blog.post.paginator.newerPost",description:"The blog post button label to navigate to the newer/previous post",children:"Newer post"})}),n&&(0,u.jsx)(d.A,{...n,subLabel:(0,u.jsx)(c.A,{id:"theme.blog.post.paginator.olderPost",description:"The blog post button label to navigate to the older/next post",children:"Older post"}),isNext:!0})]})}function h(){const{assets:e,metadata:n}=(0,r.e7)(),{title:t,description:i,date:s,tags:o,authors:l,frontMatter:c}=n,{keywords:d}=c,m=e.image??c.image;return(0,u.jsxs)(a.be,{title:t,description:i,keywords:d,image:m,children:[(0,u.jsx)("meta",{property:"og:type",content:"article"}),(0,u.jsx)("meta",{property:"article:published_time",content:s}),l.some((e=>e.url))&&(0,u.jsx)("meta",{property:"article:author",content:l.map((e=>e.url)).filter(Boolean).join(",")}),o.length>0&&(0,u.jsx)("meta",{property:"article:tag",content:o.map((e=>e.label)).join(",")})]})}var f=t(5260);function g(){const e=(0,r.J_)();return(0,u.jsx)(f.A,{children:(0,u.jsx)("script",{type:"application/ld+json",children:JSON.stringify(e)})})}var p=t(7763),v=t(1689);function x(e){let{sidebar:n,children:t}=e;const{metadata:i,toc:a}=(0,r.e7)(),{nextItem:s,prevItem:c,frontMatter:d}=i,{hide_table_of_contents:h,toc_min_heading_level:f,toc_max_heading_level:g}=d;return(0,u.jsxs)(o.A,{sidebar:n,toc:!h&&a.length>0?(0,u.jsx)(p.A,{toc:a,minHeadingLevel:f,maxHeadingLevel:g}):void 0,children:[(0,u.jsx)(v.A,{metadata:i}),(0,u.jsx)(l.A,{children:t}),(s||c)&&(0,u.jsx)(m,{nextItem:s,prevItem:c})]})}function b(e){const n=e.content;return(0,u.jsx)(r.in,{content:e.content,isBlogPostPage:!0,children:(0,u.jsxs)(a.e3,{className:(0,i.A)(s.G.wrapper.blogPages,s.G.page.blogPostPage),children:[(0,u.jsx)(h,{}),(0,u.jsx)(g,{}),(0,u.jsx)(x,{sidebar:e.sidebar,children:(0,u.jsx)(n,{})})]})})}},2234:(e,n,t)=>{t.d(n,{A:()=>c});t(6540);var i=t(4164),a=t(4084),s=t(7559),r=t(7293),o=t(4848);function l(e){let{className:n}=e;return(0,o.jsx)(r.A,{type:"caution",title:(0,o.jsx)(a.Rc,{}),className:(0,i.A)(n,s.G.common.unlistedBanner),children:(0,o.jsx)(a.Uh,{})})}function c(e){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.AE,{}),(0,o.jsx)(l,{...e})]})}},1689:(e,n,t)=>{t.d(n,{A:()=>d});t(6540);var i=t(4164),a=t(4084),s=t(7559),r=t(7293),o=t(4848);function l(e){let{className:n}=e;return(0,o.jsx)(r.A,{type:"caution",title:(0,o.jsx)(a.Yh,{}),className:(0,i.A)(n,s.G.common.draftBanner),children:(0,o.jsx)(a.TT,{})})}var c=t(2234);function d(e){let{metadata:n}=e;const{unlisted:t,frontMatter:i}=n;return(0,o.jsxs)(o.Fragment,{children:[(t||i.unlisted)&&(0,o.jsx)(c.A,{}),i.draft&&(0,o.jsx)(l,{})]})}},7763:(e,n,t)=>{t.d(n,{A:()=>c});t(6540);var i=t(4164),a=t(5195);const s={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"};var r=t(4848);const o="table-of-contents__link toc-highlight",l="table-of-contents__link--active";function c(e){let{className:n,...t}=e;return(0,r.jsx)("div",{className:(0,i.A)(s.tableOfContents,"thin-scrollbar",n),children:(0,r.jsx)(a.A,{...t,linkClassName:o,linkActiveClassName:l})})}},5195:(e,n,t)=>{t.d(n,{A:()=>g});var i=t(6540),a=t(6342);function s(e){const n=e.map((e=>({...e,parentIndex:-1,children:[]}))),t=Array(7).fill(-1);n.forEach(((e,n)=>{const i=t.slice(2,e.level);e.parentIndex=Math.max(...i),t[e.level]=n}));const i=[];return n.forEach((e=>{const{parentIndex:t,...a}=e;t>=0?n[t].children.push(a):i.push(a)})),i}function r(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:i}=e;return n.flatMap((e=>{const n=r({toc:e.children,minHeadingLevel:t,maxHeadingLevel:i});return function(e){return e.level>=t&&e.level<=i}(e)?[{...e,children:n}]:n}))}function o(e){const n=e.getBoundingClientRect();return n.top===n.bottom?o(e.parentNode):n}function l(e,n){let{anchorTopOffset:t}=n;const i=e.find((e=>o(e).top>=t));if(i){return function(e){return e.top>0&&e.bottom{e.current=n?0:document.querySelector(".navbar").clientHeight}),[n]),e}function d(e){const n=(0,i.useRef)(void 0),t=c();(0,i.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:i,linkActiveClassName:a,minHeadingLevel:s,maxHeadingLevel:r}=e;function o(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(i),o=function(e){let{minHeadingLevel:n,maxHeadingLevel:t}=e;const i=[];for(let a=n;a<=t;a+=1)i.push(`h${a}.anchor`);return Array.from(document.querySelectorAll(i.join()))}({minHeadingLevel:s,maxHeadingLevel:r}),c=l(o,{anchorTopOffset:t.current}),d=e.find((e=>c&&c.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,t){t?(n.current&&n.current!==e&&n.current.classList.remove(a),e.classList.add(a),n.current=e):e.classList.remove(a)}(e,e===d)}))}return document.addEventListener("scroll",o),document.addEventListener("resize",o),o(),()=>{document.removeEventListener("scroll",o),document.removeEventListener("resize",o)}}),[e,t])}var u=t(8774),m=t(4848);function h(e){let{toc:n,className:t,linkClassName:i,isChild:a}=e;return n.length?(0,m.jsx)("ul",{className:a?void 0:t,children:n.map((e=>(0,m.jsxs)("li",{children:[(0,m.jsx)(u.A,{to:`#${e.id}`,className:i??void 0,dangerouslySetInnerHTML:{__html:e.value}}),(0,m.jsx)(h,{isChild:!0,toc:e.children,className:t,linkClassName:i})]},e.id)))}):null}const f=i.memo(h);function g(e){let{toc:n,className:t="table-of-contents table-of-contents__left-border",linkClassName:o="table-of-contents__link",linkActiveClassName:l,minHeadingLevel:c,maxHeadingLevel:u,...h}=e;const g=(0,a.p)(),p=c??g.tableOfContents.minHeadingLevel,v=u??g.tableOfContents.maxHeadingLevel,x=function(e){let{toc:n,minHeadingLevel:t,maxHeadingLevel:a}=e;return(0,i.useMemo)((()=>r({toc:s(n),minHeadingLevel:t,maxHeadingLevel:a})),[n,t,a])}({toc:n,minHeadingLevel:p,maxHeadingLevel:v});return d((0,i.useMemo)((()=>{if(o&&l)return{linkClassName:o,linkActiveClassName:l,minHeadingLevel:p,maxHeadingLevel:v}}),[o,l,p,v])),(0,m.jsx)(f,{toc:x,className:t,linkClassName:o,...h})}},4084:(e,n,t)=>{t.d(n,{AE:()=>l,Rc:()=>r,TT:()=>d,Uh:()=>o,Yh:()=>c});t(6540);var i=t(1312),a=t(5260),s=t(4848);function r(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.unlistedBanner.title",description:"The unlisted content banner title",children:"Unlisted page"})}function o(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.unlistedBanner.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function l(){return(0,s.jsx)(a.A,{children:(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function c(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.draftBanner.title",description:"The draft content banner title",children:"Draft page"})}function d(){return(0,s.jsx)(i.A,{id:"theme.contentVisibility.draftBanner.message",description:"The draft content banner message",children:"This page is a draft. It will only be visible in dev and be excluded from the production build."})}}}]); \ No newline at end of file diff --git a/assets/js/cce09ffa.29842373.js b/assets/js/cce09ffa.29842373.js deleted file mode 100644 index d85cfc07d..000000000 --- a/assets/js/cce09ffa.29842373.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5556],{1939:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>u,contentTitle:()=>s,default:()=>c,frontMatter:()=>a,metadata:()=>r,toc:()=>m});var n=i(4848),o=i(8453);const a={title:"AV1 Encoding for Dummies",description:"This guide will show you how to encode in AV1 the *right* and *optimal* way.",slug:"av1-encoding-for-dummies",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"},{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4"}],tags:["video","compression"],image:"/img/compare-guide.webp",hide_table_of_contents:!1},s=void 0,r={permalink:"/blog/av1-encoding-for-dummies",source:"@site/blog/2023-09-03-av1-for-dummies.mdx",title:"AV1 Encoding for Dummies",description:"This guide will show you how to encode in AV1 the *right* and *optimal* way.",date:"2023-09-03T00:00:00.000Z",tags:[{inline:!0,label:"video",permalink:"/blog/tags/video"},{inline:!0,label:"compression",permalink:"/blog/tags/compression"}],readingTime:16.09,hasTruncateMarker:!0,authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4",key:null,page:null},{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4",imageURL:"https://avatars.githubusercontent.com/u/35711760?v=4",key:null,page:null}],frontMatter:{title:"AV1 Encoding for Dummies",description:"This guide will show you how to encode in AV1 the *right* and *optimal* way.",slug:"av1-encoding-for-dummies",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4"},{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4",imageURL:"https://avatars.githubusercontent.com/u/35711760?v=4"}],tags:["video","compression"],image:"/img/compare-guide.webp",hide_table_of_contents:!1},unlisted:!1,prevItem:{title:"Embedding the Un-Embeddable",permalink:"/blog/embedding-the-un-embeddable"},nextItem:{title:"Reducing Image Load Online",permalink:"/blog/site-optimization"}},u={authorsImageUrls:[void 0,void 0]},m=[];function l(e){const t={code:"code",em:"em",p:"p",strong:"strong",...(0,o.R)(),...e.components};return(0,n.jsxs)(t.p,{children:["This guide will show you how to encode in AV1 the ",(0,n.jsx)(t.em,{children:"right"})," and ",(0,n.jsx)(t.em,{children:"optimal"})," way. Yes, you using standalone ",(0,n.jsx)(t.code,{children:"libaom"}),", ",(0,n.jsx)(t.code,{children:"libsvtav1"}),", and ",(0,n.jsx)(t.code,{children:"librav1e"})," from FFmpeg or even piping ",(0,n.jsx)(t.code,{children:"yuv4mpeg"})," into ",(0,n.jsx)(t.strong,{children:"mainline"})," aomenc are all unoptimal."]})}function c(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>r});var n=i(6540);const o={},a=n.createContext(o);function s(e){const t=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(a.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/cce09ffa.c2a08b45.js b/assets/js/cce09ffa.c2a08b45.js new file mode 100644 index 000000000..0305ec5ce --- /dev/null +++ b/assets/js/cce09ffa.c2a08b45.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5556],{1939:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>u,contentTitle:()=>r,default:()=>c,frontMatter:()=>s,metadata:()=>n,toc:()=>l});var n=i(7233),o=i(4848),a=i(8453);const s={title:"AV1 Encoding for Dummies",description:"This guide will show you how to encode in AV1 the *right* and *optimal* way.",slug:"av1-encoding-for-dummies",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"},{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4"}],tags:["video","compression"],image:"/img/compare-guide.webp",hide_table_of_contents:!1},r=void 0,u={authorsImageUrls:[void 0,void 0]},l=[];function m(e){const t={code:"code",em:"em",p:"p",strong:"strong",...(0,a.R)(),...e.components};return(0,o.jsxs)(t.p,{children:["This guide will show you how to encode in AV1 the ",(0,o.jsx)(t.em,{children:"right"})," and ",(0,o.jsx)(t.em,{children:"optimal"})," way. Yes, you using standalone ",(0,o.jsx)(t.code,{children:"libaom"}),", ",(0,o.jsx)(t.code,{children:"libsvtav1"}),", and ",(0,o.jsx)(t.code,{children:"librav1e"})," from FFmpeg or even piping ",(0,o.jsx)(t.code,{children:"yuv4mpeg"})," into ",(0,o.jsx)(t.strong,{children:"mainline"})," aomenc are all unoptimal."]})}function c(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(m,{...e})}):m(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>r});var n=i(6540);const o={},a=n.createContext(o);function s(e){const t=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(a.Provider,{value:t},e.children)}},7233:e=>{e.exports=JSON.parse('{"permalink":"/blog/av1-encoding-for-dummies","source":"@site/blog/2023-09-03-av1-for-dummies.mdx","title":"AV1 Encoding for Dummies","description":"This guide will show you how to encode in AV1 the *right* and *optimal* way.","date":"2023-09-03T00:00:00.000Z","tags":[{"inline":true,"label":"video","permalink":"/blog/tags/video"},{"inline":true,"label":"compression","permalink":"/blog/tags/compression"}],"readingTime":16.09,"hasTruncateMarker":true,"authors":[{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4","socials":{},"key":null,"page":null},{"name":"Gianni Rosato","title":"Maintainer","url":"https://github.com/gianni-rosato","image_url":"https://avatars.githubusercontent.com/u/35711760?v=4","imageURL":"https://avatars.githubusercontent.com/u/35711760?v=4","socials":{},"key":null,"page":null}],"frontMatter":{"title":"AV1 Encoding for Dummies","description":"This guide will show you how to encode in AV1 the *right* and *optimal* way.","slug":"av1-encoding-for-dummies","authors":[{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4"},{"name":"Gianni Rosato","title":"Maintainer","url":"https://github.com/gianni-rosato","image_url":"https://avatars.githubusercontent.com/u/35711760?v=4","imageURL":"https://avatars.githubusercontent.com/u/35711760?v=4"}],"tags":["video","compression"],"image":"/img/compare-guide.webp","hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"Embedding the Un-Embeddable","permalink":"/blog/embedding-the-un-embeddable"},"nextItem":{"title":"Reducing Image Load Online","permalink":"/blog/site-optimization"}}')}}]); \ No newline at end of file diff --git a/assets/js/cd6cf5b7.b06d844d.js b/assets/js/cd6cf5b7.b06d844d.js deleted file mode 100644 index 44ead990d..000000000 --- a/assets/js/cd6cf5b7.b06d844d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5365],{9576:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>r,metadata:()=>d,toc:()=>l});var s=n(4848),i=n(8453);const r={title:"SVT-VP9",sidebar_position:9},o="SVT-VP9",d={id:"encoders/SVT-VP9",title:"SVT-VP9",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/encoders/SVT-VP9.mdx",sourceDirName:"encoders",slug:"/encoders/SVT-VP9",permalink:"/docs/encoders/SVT-VP9",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/SVT-VP9.mdx",tags:[],version:"current",sidebarPosition:9,frontMatter:{title:"SVT-VP9",sidebar_position:9},sidebar:"tutorialSidebar",previous:{title:"vpxenc",permalink:"/docs/encoders/vpxenc"},next:{title:"SVT-HEVC",permalink:"/docs/encoders/SVT-HEVC"}},c={},l=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Usage",id:"usage",level:2},{value:"Standalone",id:"standalone",level:3}];function a(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.R)(),...e.components},{Details:n}=t;return n||function(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"svt-vp9",children:"SVT-VP9"})}),"\n",(0,s.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,s.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,s.jsxs)(t.p,{children:["SVT-VP9 is a ",(0,s.jsx)(t.a,{href:"/docs/video/VP9",children:"VP9"})," encoder developed by Intel.",(0,s.jsx)("br",{}),"\nLike ",(0,s.jsx)(t.a,{href:"/docs/encoders/SVT-HEVC",children:"its"})," ",(0,s.jsx)(t.a,{href:"/docs/encoders/SVT-AV1",children:"siblings"})," in the SVT encoder family, it scales very well on multicore processors by default."]}),"\n",(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.a,{href:"/docs/encoders/vpxenc",children:"reference encoder"})," beats it in rate control flexibility and supports 10-bit color,",(0,s.jsx)("br",{}),"but SVT-VP9 is much faster out of the box."]}),"\n",(0,s.jsx)(t.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,s.jsxs)(t.p,{children:["There are patches bundled in the SVT-VP9 source code for an FFmpeg plugin that adds the ",(0,s.jsx)(t.code,{children:"libsvt_vp9"})," encoder.",(0,s.jsx)("br",{}),"\nOne must recompile FFmpeg with the plugin patch applied to take advantage of it.",(0,s.jsx)("br",{}),"\n(An easy way to do so on Windows is using ",(0,s.jsx)(t.a,{href:"https://github.com/m-ab-s/media-autobuild_suite",children:"media-autobuild_suite"}),".)"]}),"\n",(0,s.jsxs)(t.p,{children:["Operation is not too different from the SVT-AV1 FFmpeg integration. Your commands will generally look like this:",(0,s.jsx)("br",{}),"\n",(0,s.jsx)(t.code,{children:"ffmpeg -i video.mp4 -c:v libsvt_vp9 -qp 38 -tune ssim -preset 7 -g 255 video_vp9.webm"})]}),"\n",(0,s.jsxs)(n,{children:[(0,s.jsx)("summary",{children:"Parameters"}),(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Parameter"}),(0,s.jsx)(t.th,{children:"Description"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"-qp"}),(0,s.jsx)(t.td,{children:"Quantizer value, higher = lower quality. Range is 1..51 in current patches, but -qmin/-qmax can be set as high as 69 for extreme low bitrates."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"-preset"}),(0,s.jsx)(t.td,{children:"Speed preset. Range is 0..9, with 9 being fastest and default."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"-tune"}),(0,s.jsx)(t.td,{children:'Quality metric. Can be "vq" (default), "ssim" or "vmaf".'})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"-g"}),(0,s.jsxs)(t.td,{children:['Size of the Group of Pictures. Range is -2..255, with -1 = no intraframe updates ever, -2 = "auto".',(0,s.jsx)("br",{}),"We recommend you set it as high as possible for encode efficiency."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"-rc"}),(0,s.jsxs)(t.td,{children:["Rate control mode.",(0,s.jsx)("br",{}),'Can be "cqp" (Constant Quantizer, default), "vbr" (Variable Bitrate) or "cbr" (Constant Bitrate).',(0,s.jsx)("br",{}),"(Consider using ",(0,s.jsx)(t.strong,{children:"vpxenc's two-pass mode"})," if you really need to match a target bitrate.)"]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"-level"}),(0,s.jsx)(t.td,{children:"Encoder level. Range is 1..6. Generally better not to set it."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"-socket"}),(0,s.jsx)(t.td,{children:'Index of the CPU socket to use. By default it\'s -1, which uses "all available processors".'})]})]})]})]}),"\n",(0,s.jsx)(t.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,s.jsx)(t.p,{children:"SVT-VP9 only supports 8-bit yuv420p."}),"\n",(0,s.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(t.h3,{id:"standalone",children:"Standalone"}),"\n",(0,s.jsxs)(t.p,{children:["To be filled. If you believe you can help, see our ",(0,s.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"}),"."]})]})}function h(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>o,x:()=>d});var s=n(6540);const i={},r=s.createContext(i);function o(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/cd6cf5b7.f8a17d72.js b/assets/js/cd6cf5b7.f8a17d72.js new file mode 100644 index 000000000..7d6fe9597 --- /dev/null +++ b/assets/js/cd6cf5b7.f8a17d72.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5365],{3488:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>d,default:()=>h,frontMatter:()=>o,metadata:()=>s,toc:()=>l});const s=JSON.parse('{"id":"encoders/SVT-VP9","title":"SVT-VP9","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/encoders/SVT-VP9.mdx","sourceDirName":"encoders","slug":"/encoders/SVT-VP9","permalink":"/docs/encoders/SVT-VP9","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/SVT-VP9.mdx","tags":[],"version":"current","sidebarPosition":9,"frontMatter":{"title":"SVT-VP9","sidebar_position":9},"sidebar":"tutorialSidebar","previous":{"title":"vpxenc","permalink":"/docs/encoders/vpxenc"},"next":{"title":"SVT-HEVC","permalink":"/docs/encoders/SVT-HEVC"}}');var i=n(4848),r=n(8453);const o={title:"SVT-VP9",sidebar_position:9},d="SVT-VP9",c={},l=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Usage",id:"usage",level:2},{value:"Standalone",id:"standalone",level:3}];function a(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.R)(),...e.components},{Details:n}=t;return n||function(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"svt-vp9",children:"SVT-VP9"})}),"\n",(0,i.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,i.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,i.jsxs)(t.p,{children:["SVT-VP9 is a ",(0,i.jsx)(t.a,{href:"/docs/video/VP9",children:"VP9"})," encoder developed by Intel.",(0,i.jsx)("br",{}),"\nLike ",(0,i.jsx)(t.a,{href:"/docs/encoders/SVT-HEVC",children:"its"})," ",(0,i.jsx)(t.a,{href:"/docs/encoders/SVT-AV1",children:"siblings"})," in the SVT encoder family, it scales very well on multicore processors by default."]}),"\n",(0,i.jsxs)(t.p,{children:["The ",(0,i.jsx)(t.a,{href:"/docs/encoders/vpxenc",children:"reference encoder"})," beats it in rate control flexibility and supports 10-bit color,",(0,i.jsx)("br",{}),"but SVT-VP9 is much faster out of the box."]}),"\n",(0,i.jsx)(t.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,i.jsxs)(t.p,{children:["There are patches bundled in the SVT-VP9 source code for an FFmpeg plugin that adds the ",(0,i.jsx)(t.code,{children:"libsvt_vp9"})," encoder.",(0,i.jsx)("br",{}),"\nOne must recompile FFmpeg with the plugin patch applied to take advantage of it.",(0,i.jsx)("br",{}),"\n(An easy way to do so on Windows is using ",(0,i.jsx)(t.a,{href:"https://github.com/m-ab-s/media-autobuild_suite",children:"media-autobuild_suite"}),".)"]}),"\n",(0,i.jsxs)(t.p,{children:["Operation is not too different from the SVT-AV1 FFmpeg integration. Your commands will generally look like this:",(0,i.jsx)("br",{}),"\n",(0,i.jsx)(t.code,{children:"ffmpeg -i video.mp4 -c:v libsvt_vp9 -qp 38 -tune ssim -preset 7 -g 255 video_vp9.webm"})]}),"\n",(0,i.jsxs)(n,{children:[(0,i.jsx)("summary",{children:"Parameters"}),(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Parameter"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"-qp"}),(0,i.jsx)(t.td,{children:"Quantizer value, higher = lower quality. Range is 1..51 in current patches, but -qmin/-qmax can be set as high as 69 for extreme low bitrates."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"-preset"}),(0,i.jsx)(t.td,{children:"Speed preset. Range is 0..9, with 9 being fastest and default."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"-tune"}),(0,i.jsx)(t.td,{children:'Quality metric. Can be "vq" (default), "ssim" or "vmaf".'})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"-g"}),(0,i.jsxs)(t.td,{children:['Size of the Group of Pictures. Range is -2..255, with -1 = no intraframe updates ever, -2 = "auto".',(0,i.jsx)("br",{}),"We recommend you set it as high as possible for encode efficiency."]})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"-rc"}),(0,i.jsxs)(t.td,{children:["Rate control mode.",(0,i.jsx)("br",{}),'Can be "cqp" (Constant Quantizer, default), "vbr" (Variable Bitrate) or "cbr" (Constant Bitrate).',(0,i.jsx)("br",{}),"(Consider using ",(0,i.jsx)(t.strong,{children:"vpxenc's two-pass mode"})," if you really need to match a target bitrate.)"]})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"-level"}),(0,i.jsx)(t.td,{children:"Encoder level. Range is 1..6. Generally better not to set it."})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"-socket"}),(0,i.jsx)(t.td,{children:'Index of the CPU socket to use. By default it\'s -1, which uses "all available processors".'})]})]})]})]}),"\n",(0,i.jsx)(t.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,i.jsx)(t.p,{children:"SVT-VP9 only supports 8-bit yuv420p."}),"\n",(0,i.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsx)(t.h3,{id:"standalone",children:"Standalone"}),"\n",(0,i.jsxs)(t.p,{children:["To be filled. If you believe you can help, see our ",(0,i.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"}),"."]})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(a,{...e})}):a(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>o,x:()=>d});var s=n(6540);const i={},r=s.createContext(i);function o(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ce98a713.462c84fe.js b/assets/js/ce98a713.462c84fe.js deleted file mode 100644 index 911dc1390..000000000 --- a/assets/js/ce98a713.462c84fe.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6168],{4705:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>t,metadata:()=>l,toc:()=>a});var s=i(4848),r=i(8453);const t={title:"Denoise",sidebar_position:8},o="Denoise",l={id:"filtering/denoise",title:"Denoise",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/filtering/denoise.mdx",sourceDirName:"filtering",slug:"/filtering/denoise",permalink:"/docs/filtering/denoise",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/denoise.mdx",tags:[],version:"current",sidebarPosition:8,frontMatter:{title:"Denoise",sidebar_position:8},sidebar:"tutorialSidebar",previous:{title:"Stabilizing",permalink:"/docs/filtering/stabilizing"},next:{title:"Dehalo",permalink:"/docs/filtering/dehalo"}},d={},a=[{value:"Overview",id:"overview",level:2},{value:"hqdn3d",id:"hqdn3d",level:2},{value:"Usage",id:"usage",level:3},{value:"nlmeans",id:"nlmeans",level:2},{value:"Usage",id:"usage-1",level:3},{value:"Parameters",id:"parameters",level:3}];function c(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"denoise",children:"Denoise"})}),"\n",(0,s.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,s.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,s.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,s.jsx)(n.h2,{id:"overview",children:"Overview"}),"\n",(0,s.jsx)(n.p,{children:"Denoising involves removing random noise from the video. Such noise can result from film grain, signal interference or simply low light conditions. In any case, noise can greatly reduce compression efficiency especially if the video codec doesn't support film grain synthesis."}),"\n",(0,s.jsxs)(n.p,{children:["In ",(0,s.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," there are two filters available for denoising:"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"#hqdn3d",children:"hqdn3d"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"#nlmeans",children:"nlmeans"})}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"hqdn3d",children:"hqdn3d"}),"\n",(0,s.jsx)(n.p,{children:"hqdn3d is a fast, high quality 3d denoising filter which improves compressibility. Can be applied to images and videos."}),"\n",(0,s.jsx)(n.h3,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-shell",children:"ffmpeg -i input.mp4 -vf hqdn3d output.mp4\n"})}),"\n",(0,s.jsx)(n.p,{children:"The default configuration should be fine for most use cases."}),"\n",(0,s.jsxs)(n.p,{children:["If you still see too much noise you can adjust the ",(0,s.jsx)(n.code,{children:"luma_spatial"})," parameter (other parameters are derived from it by default). Higher ",(0,s.jsx)(n.code,{children:"luma_spatial"})," value will result in stronger denoising. By default it is set to ",(0,s.jsx)(n.code,{children:"4"}),"."]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-shell",children:"ffmpeg -i input.mp4 -vf hqdn3d=8 output.mp4\n# which is the same as\nffmpeg -i input.mp4 -vf hqdn3d=8:6:12:9 output.mp4\n"})}),"\n",(0,s.jsx)(n.admonition,{type:"caution",children:(0,s.jsxs)(n.p,{children:["Setting ",(0,s.jsx)(n.code,{children:"luma_spatial"})," to larger values could result in ghosting and ",(0,s.jsx)(n.a,{href:"/docs/introduction/video-artifacts#bandingcontouring",children:"banding"})," artifacts."]})}),"\n",(0,s.jsxs)(n.p,{children:["For description of all four parameters take a look ",(0,s.jsx)(n.a,{href:"https://ffmpeg.org/ffmpeg-filters.html#hqdn3d-1",children:"here"}),"."]}),"\n",(0,s.jsx)(n.h2,{id:"nlmeans",children:"nlmeans"}),"\n",(0,s.jsxs)(n.p,{children:["nlmeans uses Non-Local Means algorithm to do denoising. Each pixel is compared to similar pixels based on their surroundings (context). The size of such context is expressed as ",(0,s.jsx)(n.code,{children:"r"}),"x",(0,s.jsx)(n.code,{children:"r"}),"."]}),"\n",(0,s.jsxs)(n.p,{children:["The filter is rather slow and doesn't parallelize well. Only use it in cases the video contains a lot of noise or you need very high quality denoising. In all other cases ",(0,s.jsx)(n.a,{href:"#hqdn3d",children:"hqdn3d"})," will be more efficient."]}),"\n",(0,s.jsx)(n.h3,{id:"usage-1",children:"Usage"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"ffmpeg -i input.mp4 -vf nlmeans output.mp4\n"})}),"\n",(0,s.jsx)(n.p,{children:"The default configuration should be fine for most use cases."}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"ffmpeg -i input.mp4 -vf nlmeans=s=3.0:r=31:p=15 output.mp4\n"})}),"\n",(0,s.jsx)(n.p,{children:"Stronger denoising with larger research and patch size. Might be useful for ultra high quality denoising in 4K+ resolutions but you might struggle to achieve even 0.1 fps."}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"ffmpeg -i input.mp4 -vf nlmeans=s=1.0:r=5:p=3 output.mp4\n"})}),"\n",(0,s.jsx)(n.p,{children:"Prioritize speed over quality."}),"\n",(0,s.jsx)(n.h3,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"s"})," - Denoising Strength where ",(0,s.jsx)(n.code,{children:"1.0"})," is the lightest and also the default and the strongest is ",(0,s.jsx)(n.code,{children:"30.0"})," although I wouldn't recommend going above ",(0,s.jsx)(n.code,{children:"10.0"}),"."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"r"})," - Research Size where ",(0,s.jsx)(n.code,{children:"15"})," is the default, it must be an odd number ranging from ",(0,s.jsx)(n.code,{children:"0"})," to ",(0,s.jsx)(n.code,{children:"99"}),". The higher the value, the slower denoising will be."]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.code,{children:"p"})," - Research Size where ",(0,s.jsx)(n.code,{children:"7"})," is the default and, it must be an odd number ranging from ",(0,s.jsx)(n.code,{children:"0"})," to ",(0,s.jsx)(n.code,{children:"99"}),"."]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["For description of all possible parameters take a look ",(0,s.jsx)(n.a,{href:"https://ffmpeg.org/ffmpeg-filters.html#nlmeans-1",children:"here"}),"."]}),"\n",(0,s.jsx)(n.h1,{id:"notes",children:"Notes"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"#hqdn3d",children:"hqdn3d"})," may create visual artifacts like ghosting, ",(0,s.jsx)(n.a,{href:"/docs/introduction/video-artifacts#bandingcontouring",children:"banding"})," and ",(0,s.jsx)(n.a,{href:"/docs/introduction/video-artifacts#blocking",children:"blocking"})]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.a,{href:"#nlmeans",children:"nlmeans"})," creates much less noticeable artifacts like cartoonish look but only for very noisy inputs"]}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>o,x:()=>l});var s=i(6540);const r={},t=s.createContext(r);function o(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ce98a713.d6f37062.js b/assets/js/ce98a713.d6f37062.js new file mode 100644 index 000000000..daa0ca430 --- /dev/null +++ b/assets/js/ce98a713.d6f37062.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6168],{5489:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>h,frontMatter:()=>o,metadata:()=>s,toc:()=>a});const s=JSON.parse('{"id":"filtering/denoise","title":"Denoise","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/filtering/denoise.mdx","sourceDirName":"filtering","slug":"/filtering/denoise","permalink":"/docs/filtering/denoise","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/denoise.mdx","tags":[],"version":"current","sidebarPosition":8,"frontMatter":{"title":"Denoise","sidebar_position":8},"sidebar":"tutorialSidebar","previous":{"title":"Stabilizing","permalink":"/docs/filtering/stabilizing"},"next":{"title":"Dehalo","permalink":"/docs/filtering/dehalo"}}');var r=i(4848),t=i(8453);const o={title:"Denoise",sidebar_position:8},l="Denoise",d={},a=[{value:"Overview",id:"overview",level:2},{value:"hqdn3d",id:"hqdn3d",level:2},{value:"Usage",id:"usage",level:3},{value:"nlmeans",id:"nlmeans",level:2},{value:"Usage",id:"usage-1",level:3},{value:"Parameters",id:"parameters",level:3}];function c(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"denoise",children:"Denoise"})}),"\n",(0,r.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,r.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,r.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,r.jsx)(n.h2,{id:"overview",children:"Overview"}),"\n",(0,r.jsx)(n.p,{children:"Denoising involves removing random noise from the video. Such noise can result from film grain, signal interference or simply low light conditions. In any case, noise can greatly reduce compression efficiency especially if the video codec doesn't support film grain synthesis."}),"\n",(0,r.jsxs)(n.p,{children:["In ",(0,r.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," there are two filters available for denoising:"]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"#hqdn3d",children:"hqdn3d"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"#nlmeans",children:"nlmeans"})}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"hqdn3d",children:"hqdn3d"}),"\n",(0,r.jsx)(n.p,{children:"hqdn3d is a fast, high quality 3d denoising filter which improves compressibility. Can be applied to images and videos."}),"\n",(0,r.jsx)(n.h3,{id:"usage",children:"Usage"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-shell",children:"ffmpeg -i input.mp4 -vf hqdn3d output.mp4\n"})}),"\n",(0,r.jsx)(n.p,{children:"The default configuration should be fine for most use cases."}),"\n",(0,r.jsxs)(n.p,{children:["If you still see too much noise you can adjust the ",(0,r.jsx)(n.code,{children:"luma_spatial"})," parameter (other parameters are derived from it by default). Higher ",(0,r.jsx)(n.code,{children:"luma_spatial"})," value will result in stronger denoising. By default it is set to ",(0,r.jsx)(n.code,{children:"4"}),"."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-shell",children:"ffmpeg -i input.mp4 -vf hqdn3d=8 output.mp4\n# which is the same as\nffmpeg -i input.mp4 -vf hqdn3d=8:6:12:9 output.mp4\n"})}),"\n",(0,r.jsx)(n.admonition,{type:"caution",children:(0,r.jsxs)(n.p,{children:["Setting ",(0,r.jsx)(n.code,{children:"luma_spatial"})," to larger values could result in ghosting and ",(0,r.jsx)(n.a,{href:"/docs/introduction/video-artifacts#bandingcontouring",children:"banding"})," artifacts."]})}),"\n",(0,r.jsxs)(n.p,{children:["For description of all four parameters take a look ",(0,r.jsx)(n.a,{href:"https://ffmpeg.org/ffmpeg-filters.html#hqdn3d-1",children:"here"}),"."]}),"\n",(0,r.jsx)(n.h2,{id:"nlmeans",children:"nlmeans"}),"\n",(0,r.jsxs)(n.p,{children:["nlmeans uses Non-Local Means algorithm to do denoising. Each pixel is compared to similar pixels based on their surroundings (context). The size of such context is expressed as ",(0,r.jsx)(n.code,{children:"r"}),"x",(0,r.jsx)(n.code,{children:"r"}),"."]}),"\n",(0,r.jsxs)(n.p,{children:["The filter is rather slow and doesn't parallelize well. Only use it in cases the video contains a lot of noise or you need very high quality denoising. In all other cases ",(0,r.jsx)(n.a,{href:"#hqdn3d",children:"hqdn3d"})," will be more efficient."]}),"\n",(0,r.jsx)(n.h3,{id:"usage-1",children:"Usage"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"ffmpeg -i input.mp4 -vf nlmeans output.mp4\n"})}),"\n",(0,r.jsx)(n.p,{children:"The default configuration should be fine for most use cases."}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"ffmpeg -i input.mp4 -vf nlmeans=s=3.0:r=31:p=15 output.mp4\n"})}),"\n",(0,r.jsx)(n.p,{children:"Stronger denoising with larger research and patch size. Might be useful for ultra high quality denoising in 4K+ resolutions but you might struggle to achieve even 0.1 fps."}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"ffmpeg -i input.mp4 -vf nlmeans=s=1.0:r=5:p=3 output.mp4\n"})}),"\n",(0,r.jsx)(n.p,{children:"Prioritize speed over quality."}),"\n",(0,r.jsx)(n.h3,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"s"})," - Denoising Strength where ",(0,r.jsx)(n.code,{children:"1.0"})," is the lightest and also the default and the strongest is ",(0,r.jsx)(n.code,{children:"30.0"})," although I wouldn't recommend going above ",(0,r.jsx)(n.code,{children:"10.0"}),"."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"r"})," - Research Size where ",(0,r.jsx)(n.code,{children:"15"})," is the default, it must be an odd number ranging from ",(0,r.jsx)(n.code,{children:"0"})," to ",(0,r.jsx)(n.code,{children:"99"}),". The higher the value, the slower denoising will be."]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.code,{children:"p"})," - Research Size where ",(0,r.jsx)(n.code,{children:"7"})," is the default and, it must be an odd number ranging from ",(0,r.jsx)(n.code,{children:"0"})," to ",(0,r.jsx)(n.code,{children:"99"}),"."]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["For description of all possible parameters take a look ",(0,r.jsx)(n.a,{href:"https://ffmpeg.org/ffmpeg-filters.html#nlmeans-1",children:"here"}),"."]}),"\n",(0,r.jsx)(n.h1,{id:"notes",children:"Notes"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"#hqdn3d",children:"hqdn3d"})," may create visual artifacts like ghosting, ",(0,r.jsx)(n.a,{href:"/docs/introduction/video-artifacts#bandingcontouring",children:"banding"})," and ",(0,r.jsx)(n.a,{href:"/docs/introduction/video-artifacts#blocking",children:"blocking"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.a,{href:"#nlmeans",children:"nlmeans"})," creates much less noticeable artifacts like cartoonish look but only for very noisy inputs"]}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>o,x:()=>l});var s=i(6540);const r={},t=s.createContext(r);function o(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/cf7588c6.8e6af6c6.js b/assets/js/cf7588c6.8e6af6c6.js new file mode 100644 index 000000000..5ea5f604f --- /dev/null +++ b/assets/js/cf7588c6.8e6af6c6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5971],{2494:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>l,contentTitle:()=>o,default:()=>h,frontMatter:()=>d,metadata:()=>n,toc:()=>a});const n=JSON.parse('{"id":"encoders/x264","title":"x264","description":"x264 is a software library and command line application for encoding H.264 / AVC developed by VideoLAN, the people behind the ever-popular VLC Media Player and released under GNU GPL. It is written in C and Assembly with almost two decades worth of development and threading optimizations which makes it the fastest software video encoder available, which also happens to be extremely popular.","source":"@site/docs/encoders/x264.mdx","sourceDirName":"encoders","slug":"/encoders/x264","permalink":"/docs/encoders/x264","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/x264.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"x264","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"QOI","permalink":"/docs/images/QOI"},"next":{"title":"x265","permalink":"/docs/encoders/x265"}}');var i=s(4848),r=s(8453);const d={title:"x264",sidebar_position:1},o="x264",l={},a=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Recommendations",id:"recommendations",level:2},{value:"Preset",id:"preset",level:3},{value:"Threads",id:"threads",level:3},{value:"Open GOP",id:"open-gop",level:3},{value:"AQ Mode",id:"aq-mode",level:3},{value:"Reference Frames",id:"reference-frames",level:3},{value:"MB Tree",id:"mb-tree",level:3},{value:"Lossless Encoding",id:"lossless-encoding",level:3}];function c(e){const t={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"x264",children:"x264"})}),"\n",(0,i.jsx)(t.p,{children:"x264 is a software library and command line application for encoding H.264 / AVC developed by VideoLAN, the people behind the ever-popular VLC Media Player and released under GNU GPL. It is written in C and Assembly with almost two decades worth of development and threading optimizations which makes it the fastest software video encoder available, which also happens to be extremely popular."}),"\n",(0,i.jsx)(t.p,{children:"x264 has great fine detail retention which makes it perfect for high fidelity content."}),"\n",(0,i.jsx)(t.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,i.jsxs)(t.p,{children:["x264 is available in FFmpeg via ",(0,i.jsx)(t.code,{children:"libx264"}),", to check if you have it, run ",(0,i.jsx)(t.code,{children:"ffmpeg -h encoder=libx264"}),". You can input non-FFmpeg standard x264 parameters via ",(0,i.jsx)(t.code,{children:"-x264-params"}),"."]}),"\n",(0,i.jsx)(t.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,i.jsx)(t.p,{children:"x264 supports the following color spaces:"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Format"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,i.jsx)(t.th,{children:"Supported Bit Depth(s)"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV420P"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,i.jsx)(t.td,{children:"8-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUVJ420P"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,i.jsx)(t.td,{children:"8-bit (Full range)"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV422P"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,i.jsx)(t.td,{children:"8-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUVJ422P"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,i.jsx)(t.td,{children:"8-bit (Full range)"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV444P"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,i.jsx)(t.td,{children:"8-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUVJ444P"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,i.jsx)(t.td,{children:"8-bit (Full range)"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"NV12"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"Semi-planar"}),(0,i.jsx)(t.td,{children:"8-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"NV16"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"Semi-planar"}),(0,i.jsx)(t.td,{children:"8-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"NV21"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"Semi-planar"}),(0,i.jsx)(t.td,{children:"8-bit (reversed)"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"GRAY8"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"-"}),(0,i.jsx)(t.td,{children:"8-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV420P10LE"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,i.jsx)(t.td,{children:"10-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV422P10LE"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,i.jsx)(t.td,{children:"10-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"YUV444P10LE"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,i.jsx)(t.td,{children:"10-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"GBRP10LE"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"-"}),(0,i.jsx)(t.td,{children:"10-bit"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:"GRAY10LE"}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:"-"}),(0,i.jsx)(t.td,{children:"10-bit"})]})]})]}),"\n",(0,i.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.strong,{children:"Pre-built binary [Recommended]:"})}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:(0,i.jsx)(t.a,{href:"https://code.videolan.org/videolan/x264",children:"https://code.videolan.org/videolan/x264"})}),"\n"]}),"\n",(0,i.jsx)(t.p,{children:"Choose your operating system there, or you can try using your package manager."}),"\n",(0,i.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,i.jsx)(t.p,{children:"x264 has been praised for its simple, no-fuss settings."}),"\n",(0,i.jsx)(t.p,{children:"Here are some examples:"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",metastring:'title="Simple raw Y4M input with CRF 20 and raw 264 bitstream output"',children:"x264 --crf 20 -o output.264 input.y4m\n"})}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",metastring:'title="Preset slow, CRF 20, Y4M input"',children:"x264 --preset slow --crf 20 -o output.264 input.y4m\n"})}),"\n",(0,i.jsxs)(t.p,{children:["These next couple of examples utilize ",(0,i.jsx)(t.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," to pipe video into x264."]}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",metastring:'title="FFmpeg piping"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | x264 --preset slow --crf 20 --demux y4m - -o output.264\n"})}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",metastring:'title="FFmpeg piping, MKV output"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | x264 --preset slow --crf 20 --demux y4m - -o output.mkv\n"})}),"\n",(0,i.jsx)(t.admonition,{title:"Output Containers",type:"note",children:(0,i.jsxs)(t.p,{children:["x264 can output ",(0,i.jsx)(t.code,{children:"264"}),", MKV, FLV (Flash Video), and MP4 (If compiled with GPAC or L-SMASH support). For more information about what containers are, see the ",(0,i.jsx)(t.a,{href:"/docs/introduction/terminology#container",children:'"Terminology" section on containers'}),"."]})}),"\n",(0,i.jsx)(t.admonition,{type:"caution",children:(0,i.jsx)(t.p,{children:"x264 will use Haali Matroska Muxer for MKV outputs, which has seeking issues. It is recommended to remux back using FFmpeg or mkvmerge/MKVToolNix."})}),"\n",(0,i.jsx)(t.h2,{id:"recommendations",children:"Recommendations"}),"\n",(0,i.jsx)(t.p,{children:'As x264 is made to "just work", there aren\'t many advanced parameters to modify. The general guideline is to encode as slowly as you can tolerate.'}),"\n",(0,i.jsx)(t.h3,{id:"preset",children:"Preset"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.code,{children:"--preset veryslow"})}),"\n",(0,i.jsxs)(t.p,{children:["The most obvious way to increase fidelity per bit is to allow the encoder to spend more effort, and therefore time, encoding. This preset is decently slow, but preset ",(0,i.jsx)(t.code,{children:"placebo"})," is even slower."]}),"\n",(0,i.jsx)(t.h3,{id:"threads",children:"Threads"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.code,{children:"--threads X"})}),"\n",(0,i.jsx)(t.p,{children:"This is set to 1.5x the number of available cores by default, and shouldn't need to be adjusted unless you need to reduce the number of threads for some reason. x264's threading is very efficient, and in most cases, x264 should be able to completely saturate most consumer CPUs."}),"\n",(0,i.jsx)(t.h3,{id:"open-gop",children:"Open GOP"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.code,{children:"--open-gop"})}),"\n",(0,i.jsxs)(t.p,{children:["Enables Open GOP (Group of Pictures), where each GOP can ",(0,i.jsx)(t.a,{href:"https://ottverse.com/closed-gop-open-gop-idr/",children:"reference one another"}),", thus improving compression with little speed loss. For unknown reasons it is disabled by default in x264."]}),"\n",(0,i.jsx)(t.h3,{id:"aq-mode",children:"AQ Mode"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.code,{children:"--aq-mode 3"})}),"\n",(0,i.jsx)(t.p,{children:"In short, will make x264 bias to dark areas and spend more bitrate there, thus dark scenes will look less bad. Basically no speed loss."}),"\n",(0,i.jsx)(t.h3,{id:"reference-frames",children:"Reference Frames"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.code,{children:"--bframes 8 --ref 12"})}),"\n",(0,i.jsx)(t.p,{children:"These parameters are responsible for the amount of reference frames x264 will use for compression, the more the better. Maximum of 16, will definitely increase compute time the higher you go."}),"\n",(0,i.jsx)(t.h3,{id:"mb-tree",children:"MB Tree"}),"\n",(0,i.jsx)(t.p,{children:(0,i.jsx)(t.code,{children:"--no-mbtree"})}),"\n",(0,i.jsx)(t.p,{children:"This option disables mb-tree rate control. mb-tree rate control is intended to redistribute bitrate to give more bits to frames that have less motion, and less bits to frames that have more motion (because artifacts in those frames will be less noticeable when the video is playing).\nHowever, many users claim this can have negative effects on video quality, especially when encoding videos that have significant amounts of grain."}),"\n",(0,i.jsx)(t.h3,{id:"lossless-encoding",children:"Lossless Encoding"}),"\n",(0,i.jsxs)(t.p,{children:["x264 can also encode lossless video, allowing it to compete with lossless video codecs like ",(0,i.jsx)(t.a,{href:"/docs/video/FFV1",children:"FFV1"})," and ",(0,i.jsx)(t.a,{href:"/docs/video/utvideo",children:"UT Video"}),". To encode lossless video, use ",(0,i.jsx)(t.code,{children:"--qp 0"}),". Slower presets will decrease the size even further while the video remains lossless.\nHowever, when space is not a concern, such as when encoding an intermediate lossless for later encoding to a lossy format, x264 can become the fastest lossless codec available, providing super fast encoding and decoding.\nFor the absolute fastest encoding and decoding, one can use both ",(0,i.jsx)(t.code,{children:"--preset ultrafast"})," and ",(0,i.jsx)(t.code,{children:"--tune fastdecode"}),". However, ",(0,i.jsx)(t.code,{children:"--preset superfast"})," still provides incredibly fast encoding and decoding speed, with 20-30% space savings for lossless compared to ",(0,i.jsx)(t.code,{children:"ultrafast"}),",\nso it may be the ideal choice for many users."]}),"\n",(0,i.jsx)(t.admonition,{title:"Why QP 0 instead of CRF 0?",type:"info",children:(0,i.jsxs)(t.p,{children:["CRF automatically adjusts a number of quantization parameters to achieve a desired quality output. QP stands for ",(0,i.jsx)(t.em,{children:"Quantization Parameter"}),", and allows full control over the resulting video quality. In this case, all-intra or lossless, using QP is necessary, but for lossy encoding CRF will produce better visual fidelity per bit."]})})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(c,{...e})}):c(e)}},8453:(e,t,s)=>{s.d(t,{R:()=>d,x:()=>o});var n=s(6540);const i={},r=n.createContext(i);function d(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:d(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/cf7588c6.f946bb2a.js b/assets/js/cf7588c6.f946bb2a.js deleted file mode 100644 index 7c121b43b..000000000 --- a/assets/js/cf7588c6.f946bb2a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5971],{2493:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>l,contentTitle:()=>d,default:()=>h,frontMatter:()=>r,metadata:()=>o,toc:()=>a});var n=s(4848),i=s(8453);const r={title:"x264",sidebar_position:1},d="x264",o={id:"encoders/x264",title:"x264",description:"x264 is a software library and command line application for encoding H.264 / AVC developed by VideoLAN, the people behind the ever-popular VLC Media Player and released under GNU GPL. It is written in C and Assembly with almost two decades worth of development and threading optimizations which makes it the fastest software video encoder available, which also happens to be extremely popular.",source:"@site/docs/encoders/x264.mdx",sourceDirName:"encoders",slug:"/encoders/x264",permalink:"/docs/encoders/x264",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/x264.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"x264",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"QOI",permalink:"/docs/images/QOI"},next:{title:"x265",permalink:"/docs/encoders/x265"}},l={},a=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Recommendations",id:"recommendations",level:2},{value:"Preset",id:"preset",level:3},{value:"Threads",id:"threads",level:3},{value:"Open GOP",id:"open-gop",level:3},{value:"AQ Mode",id:"aq-mode",level:3},{value:"Reference Frames",id:"reference-frames",level:3},{value:"MB Tree",id:"mb-tree",level:3},{value:"Lossless Encoding",id:"lossless-encoding",level:3}];function c(e){const t={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"x264",children:"x264"})}),"\n",(0,n.jsx)(t.p,{children:"x264 is a software library and command line application for encoding H.264 / AVC developed by VideoLAN, the people behind the ever-popular VLC Media Player and released under GNU GPL. It is written in C and Assembly with almost two decades worth of development and threading optimizations which makes it the fastest software video encoder available, which also happens to be extremely popular."}),"\n",(0,n.jsx)(t.p,{children:"x264 has great fine detail retention which makes it perfect for high fidelity content."}),"\n",(0,n.jsx)(t.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,n.jsxs)(t.p,{children:["x264 is available in FFmpeg via ",(0,n.jsx)(t.code,{children:"libx264"}),", to check if you have it, run ",(0,n.jsx)(t.code,{children:"ffmpeg -h encoder=libx264"}),". You can input non-FFmpeg standard x264 parameters via ",(0,n.jsx)(t.code,{children:"-x264-params"}),"."]}),"\n",(0,n.jsx)(t.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,n.jsx)(t.p,{children:"x264 supports the following color spaces:"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Format"}),(0,n.jsx)(t.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,n.jsx)(t.th,{children:"Supported Bit Depth(s)"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV420P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(t.td,{children:"8-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUVJ420P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(t.td,{children:"8-bit (Full range)"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV422P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,n.jsx)(t.td,{children:"8-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUVJ422P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,n.jsx)(t.td,{children:"8-bit (Full range)"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV444P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,n.jsx)(t.td,{children:"8-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUVJ444P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,n.jsx)(t.td,{children:"8-bit (Full range)"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"NV12"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"Semi-planar"}),(0,n.jsx)(t.td,{children:"8-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"NV16"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"Semi-planar"}),(0,n.jsx)(t.td,{children:"8-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"NV21"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"Semi-planar"}),(0,n.jsx)(t.td,{children:"8-bit (reversed)"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"GRAY8"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"-"}),(0,n.jsx)(t.td,{children:"8-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV420P10LE"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(t.td,{children:"10-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV422P10LE"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:2"}),(0,n.jsx)(t.td,{children:"10-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV444P10LE"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:4:4"}),(0,n.jsx)(t.td,{children:"10-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"GBRP10LE"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"-"}),(0,n.jsx)(t.td,{children:"10-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"GRAY10LE"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"-"}),(0,n.jsx)(t.td,{children:"10-bit"})]})]})]}),"\n",(0,n.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.strong,{children:"Pre-built binary [Recommended]:"})}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.a,{href:"https://code.videolan.org/videolan/x264",children:"https://code.videolan.org/videolan/x264"})}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:"Choose your operating system there, or you can try using your package manager."}),"\n",(0,n.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsx)(t.p,{children:"x264 has been praised for its simple, no-fuss settings."}),"\n",(0,n.jsx)(t.p,{children:"Here are some examples:"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Simple raw Y4M input with CRF 20 and raw 264 bitstream output"',children:"x264 --crf 20 -o output.264 input.y4m\n"})}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Preset slow, CRF 20, Y4M input"',children:"x264 --preset slow --crf 20 -o output.264 input.y4m\n"})}),"\n",(0,n.jsxs)(t.p,{children:["These next couple of examples utilize ",(0,n.jsx)(t.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," to pipe video into x264."]}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="FFmpeg piping"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | x264 --preset slow --crf 20 --demux y4m - -o output.264\n"})}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="FFmpeg piping, MKV output"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | x264 --preset slow --crf 20 --demux y4m - -o output.mkv\n"})}),"\n",(0,n.jsx)(t.admonition,{title:"Output Containers",type:"note",children:(0,n.jsxs)(t.p,{children:["x264 can output ",(0,n.jsx)(t.code,{children:"264"}),", MKV, FLV (Flash Video), and MP4 (If compiled with GPAC or L-SMASH support). For more information about what containers are, see the ",(0,n.jsx)(t.a,{href:"/docs/introduction/terminology#container",children:'"Terminology" section on containers'}),"."]})}),"\n",(0,n.jsx)(t.admonition,{type:"caution",children:(0,n.jsx)(t.p,{children:"x264 will use Haali Matroska Muxer for MKV outputs, which has seeking issues. It is recommended to remux back using FFmpeg or mkvmerge/MKVToolNix."})}),"\n",(0,n.jsx)(t.h2,{id:"recommendations",children:"Recommendations"}),"\n",(0,n.jsx)(t.p,{children:'As x264 is made to "just work", there aren\'t many advanced parameters to modify. The general guideline is to encode as slowly as you can tolerate.'}),"\n",(0,n.jsx)(t.h3,{id:"preset",children:"Preset"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.code,{children:"--preset veryslow"})}),"\n",(0,n.jsxs)(t.p,{children:["The most obvious way to increase fidelity per bit is to allow the encoder to spend more effort, and therefore time, encoding. This preset is decently slow, but preset ",(0,n.jsx)(t.code,{children:"placebo"})," is even slower."]}),"\n",(0,n.jsx)(t.h3,{id:"threads",children:"Threads"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.code,{children:"--threads X"})}),"\n",(0,n.jsx)(t.p,{children:"This is set to 1.5x the number of available cores by default, and shouldn't need to be adjusted unless you need to reduce the number of threads for some reason. x264's threading is very efficient, and in most cases, x264 should be able to completely saturate most consumer CPUs."}),"\n",(0,n.jsx)(t.h3,{id:"open-gop",children:"Open GOP"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.code,{children:"--open-gop"})}),"\n",(0,n.jsxs)(t.p,{children:["Enables Open GOP (Group of Pictures), where each GOP can ",(0,n.jsx)(t.a,{href:"https://ottverse.com/closed-gop-open-gop-idr/",children:"reference one another"}),", thus improving compression with little speed loss. For unknown reasons it is disabled by default in x264."]}),"\n",(0,n.jsx)(t.h3,{id:"aq-mode",children:"AQ Mode"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.code,{children:"--aq-mode 3"})}),"\n",(0,n.jsx)(t.p,{children:"In short, will make x264 bias to dark areas and spend more bitrate there, thus dark scenes will look less bad. Basically no speed loss."}),"\n",(0,n.jsx)(t.h3,{id:"reference-frames",children:"Reference Frames"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.code,{children:"--bframes 8 --ref 12"})}),"\n",(0,n.jsx)(t.p,{children:"These parameters are responsible for the amount of reference frames x264 will use for compression, the more the better. Maximum of 16, will definitely increase compute time the higher you go."}),"\n",(0,n.jsx)(t.h3,{id:"mb-tree",children:"MB Tree"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.code,{children:"--no-mbtree"})}),"\n",(0,n.jsx)(t.p,{children:"This option disables mb-tree rate control. mb-tree rate control is intended to redistribute bitrate to give more bits to frames that have less motion, and less bits to frames that have more motion (because artifacts in those frames will be less noticeable when the video is playing).\nHowever, many users claim this can have negative effects on video quality, especially when encoding videos that have significant amounts of grain."}),"\n",(0,n.jsx)(t.h3,{id:"lossless-encoding",children:"Lossless Encoding"}),"\n",(0,n.jsxs)(t.p,{children:["x264 can also encode lossless video, allowing it to compete with lossless video codecs like ",(0,n.jsx)(t.a,{href:"/docs/video/FFV1",children:"FFV1"})," and ",(0,n.jsx)(t.a,{href:"/docs/video/utvideo",children:"UT Video"}),". To encode lossless video, use ",(0,n.jsx)(t.code,{children:"--qp 0"}),". Slower presets will decrease the size even further while the video remains lossless.\nHowever, when space is not a concern, such as when encoding an intermediate lossless for later encoding to a lossy format, x264 can become the fastest lossless codec available, providing super fast encoding and decoding.\nFor the absolute fastest encoding and decoding, one can use both ",(0,n.jsx)(t.code,{children:"--preset ultrafast"})," and ",(0,n.jsx)(t.code,{children:"--tune fastdecode"}),". However, ",(0,n.jsx)(t.code,{children:"--preset superfast"})," still provides incredibly fast encoding and decoding speed, with 20-30% space savings for lossless compared to ",(0,n.jsx)(t.code,{children:"ultrafast"}),",\nso it may be the ideal choice for many users."]}),"\n",(0,n.jsx)(t.admonition,{title:"Why QP 0 instead of CRF 0?",type:"info",children:(0,n.jsxs)(t.p,{children:["CRF automatically adjusts a number of quantization parameters to achieve a desired quality output. QP stands for ",(0,n.jsx)(t.em,{children:"Quantization Parameter"}),", and allows full control over the resulting video quality. In this case, all-intra or lossless, using QP is necessary, but for lossy encoding CRF will produce better visual fidelity per bit."]})})]})}function h(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(c,{...e})}):c(e)}},8453:(e,t,s)=>{s.d(t,{R:()=>d,x:()=>o});var n=s(6540);const i={},r=n.createContext(i);function d(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:d(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d1becb09.34b1a05b.js b/assets/js/d1becb09.34b1a05b.js deleted file mode 100644 index 1994b3cd4..000000000 --- a/assets/js/d1becb09.34b1a05b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8843],{5224:(i,e,t)=>{t.r(e),t.d(e,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>s,metadata:()=>a,toc:()=>l});var o=t(4848),n=t(8453);const s={title:"Privacy Policy",sidebar_label:"\ud83d\udd0f Privacy Policy",position:15},r="Privacy Policy",a={id:"privacy-policy",title:"Privacy Policy",description:"This site is hosted on GitHub Pages, & usage of this site is subject to GitHub's Privacy Policy. GitHub may store information about your visit in the form of log files.",source:"@site/docs/privacy-policy.mdx",sourceDirName:".",slug:"/privacy-policy",permalink:"/docs/privacy-policy",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/privacy-policy.mdx",tags:[],version:"current",frontMatter:{title:"Privacy Policy",sidebar_label:"\ud83d\udd0f Privacy Policy",position:15},sidebar:"tutorialSidebar",previous:{title:"\u2753 FAQ",permalink:"/docs/FAQ"},next:{title:"\ud83e\udd1d Terms of Use",permalink:"/docs/terms-of-use"}},c={},l=[];function d(i){const e={a:"a",em:"em",h1:"h1",header:"header",li:"li",p:"p",ul:"ul",...(0,n.R)(),...i.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.header,{children:(0,o.jsx)(e.h1,{id:"privacy-policy",children:"Privacy Policy"})}),"\n",(0,o.jsxs)(e.p,{children:["This site is hosted on GitHub Pages, & usage of this site is subject to ",(0,o.jsx)(e.a,{href:"https://docs.github.com/en/site-policy/privacy-policies/github-privacy-statement",children:"GitHub's Privacy Policy"}),". GitHub may store information about your visit in the form of log files."]}),"\n",(0,o.jsxs)(e.p,{children:["Furthermore, this site uses a self-hosted instance of ",(0,o.jsx)(e.a,{href:"https://plausible.io",children:"Plausible Analytics"})," located in Singapore. Plausible Analytics is a lightweight and open source web analytics platform for website traffic analysis. We do not track, collect nor store any personally identifiable information; Plausible Analytics collects only aggregated information, which does not allow us to identify any visitor to our website."]}),"\n",(0,o.jsx)(e.p,{children:"This information is collected to understand how users interact with the Codec Wiki and improve our efforts to better suit the needs of these users."}),"\n",(0,o.jsx)(e.p,{children:"We do not employ the use of cookies. The following information is collected:"}),"\n",(0,o.jsxs)(e.ul,{children:["\n",(0,o.jsx)(e.li,{children:"Page URL"}),"\n",(0,o.jsx)(e.li,{children:"HTTP Referer"}),"\n",(0,o.jsx)(e.li,{children:"Browser & Browser Version"}),"\n",(0,o.jsx)(e.li,{children:"Operating System type & version"}),"\n",(0,o.jsx)(e.li,{children:"Device type"}),"\n",(0,o.jsx)(e.li,{children:"Country, region, & city"}),"\n"]}),"\n",(0,o.jsx)(e.p,{children:"Given this information, we ensure:"}),"\n",(0,o.jsxs)(e.ul,{children:["\n",(0,o.jsxs)(e.li,{children:["Analytics data is not shared explicitly with advertising companies or any other companies in general. It is made available to everyone, for free, on our ",(0,o.jsx)(e.a,{href:"https://analytics.x266.mov/wiki.x266.mov/",children:"analytics page"})]}),"\n",(0,o.jsx)(e.li,{children:"Analytics data isn't explicitly sent to any third parties"}),"\n",(0,o.jsx)(e.li,{children:"Analytics data is not monetized"}),"\n"]}),"\n",(0,o.jsxs)(e.p,{children:["As a wiki dedicated to making multimedia codec knowledge more accessible, analytics information is made public via our ",(0,o.jsx)(e.a,{href:"https://analytics.x266.mov/wiki.x266.mov/",children:"analytics page"}),"."]}),"\n",(0,o.jsxs)(e.p,{children:["You may opt out with various means of ad & tracker blocking. An example would be ",(0,o.jsx)(e.a,{href:"https://ublockorigin.com/",children:"UBlock Origin"}),", which blocks our analytics script."]}),"\n",(0,o.jsxs)(e.p,{children:["If you have any questions, comments or concerns, you may reach out to site maintainer Gianni Rosato via ",(0,o.jsx)(e.a,{href:"mailto:grosatowork@proton.me",children:"grosatowork@proton.me"}),"."]}),"\n",(0,o.jsx)(e.p,{children:(0,o.jsx)(e.em,{children:"Last updated 12 September 2023"})})]})}function h(i={}){const{wrapper:e}={...(0,n.R)(),...i.components};return e?(0,o.jsx)(e,{...i,children:(0,o.jsx)(d,{...i})}):d(i)}},8453:(i,e,t)=>{t.d(e,{R:()=>r,x:()=>a});var o=t(6540);const n={},s=o.createContext(n);function r(i){const e=o.useContext(s);return o.useMemo((function(){return"function"==typeof i?i(e):{...e,...i}}),[e,i])}function a(i){let e;return e=i.disableParentContext?"function"==typeof i.components?i.components(n):i.components||n:r(i.components),o.createElement(s.Provider,{value:e},i.children)}}}]); \ No newline at end of file diff --git a/assets/js/d1becb09.9b3996b0.js b/assets/js/d1becb09.9b3996b0.js new file mode 100644 index 000000000..1a062af7a --- /dev/null +++ b/assets/js/d1becb09.9b3996b0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8843],{2864:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>r,metadata:()=>o,toc:()=>l});const o=JSON.parse('{"id":"privacy-policy","title":"Privacy Policy","description":"This site is hosted on GitHub Pages, & usage of this site is subject to GitHub\'s Privacy Policy. GitHub may store information about your visit in the form of log files.","source":"@site/docs/privacy-policy.mdx","sourceDirName":".","slug":"/privacy-policy","permalink":"/docs/privacy-policy","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/privacy-policy.mdx","tags":[],"version":"current","frontMatter":{"title":"Privacy Policy","sidebar_label":"\ud83d\udd0f Privacy Policy","position":15},"sidebar":"tutorialSidebar","previous":{"title":"\u2753 FAQ","permalink":"/docs/FAQ"},"next":{"title":"\ud83e\udd1d Terms of Use","permalink":"/docs/terms-of-use"}}');var n=t(4848),s=t(8453);const r={title:"Privacy Policy",sidebar_label:"\ud83d\udd0f Privacy Policy",position:15},a="Privacy Policy",c={},l=[];function d(e){const i={a:"a",em:"em",h1:"h1",header:"header",li:"li",p:"p",ul:"ul",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"privacy-policy",children:"Privacy Policy"})}),"\n",(0,n.jsxs)(i.p,{children:["This site is hosted on GitHub Pages, & usage of this site is subject to ",(0,n.jsx)(i.a,{href:"https://docs.github.com/en/site-policy/privacy-policies/github-privacy-statement",children:"GitHub's Privacy Policy"}),". GitHub may store information about your visit in the form of log files."]}),"\n",(0,n.jsxs)(i.p,{children:["Furthermore, this site uses a self-hosted instance of ",(0,n.jsx)(i.a,{href:"https://plausible.io",children:"Plausible Analytics"})," located in Singapore. Plausible Analytics is a lightweight and open source web analytics platform for website traffic analysis. We do not track, collect nor store any personally identifiable information; Plausible Analytics collects only aggregated information, which does not allow us to identify any visitor to our website."]}),"\n",(0,n.jsx)(i.p,{children:"This information is collected to understand how users interact with the Codec Wiki and improve our efforts to better suit the needs of these users."}),"\n",(0,n.jsx)(i.p,{children:"We do not employ the use of cookies. The following information is collected:"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsx)(i.li,{children:"Page URL"}),"\n",(0,n.jsx)(i.li,{children:"HTTP Referer"}),"\n",(0,n.jsx)(i.li,{children:"Browser & Browser Version"}),"\n",(0,n.jsx)(i.li,{children:"Operating System type & version"}),"\n",(0,n.jsx)(i.li,{children:"Device type"}),"\n",(0,n.jsx)(i.li,{children:"Country, region, & city"}),"\n"]}),"\n",(0,n.jsx)(i.p,{children:"Given this information, we ensure:"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:["Analytics data is not shared explicitly with advertising companies or any other companies in general. It is made available to everyone, for free, on our ",(0,n.jsx)(i.a,{href:"https://analytics.x266.mov/wiki.x266.mov/",children:"analytics page"})]}),"\n",(0,n.jsx)(i.li,{children:"Analytics data isn't explicitly sent to any third parties"}),"\n",(0,n.jsx)(i.li,{children:"Analytics data is not monetized"}),"\n"]}),"\n",(0,n.jsxs)(i.p,{children:["As a wiki dedicated to making multimedia codec knowledge more accessible, analytics information is made public via our ",(0,n.jsx)(i.a,{href:"https://analytics.x266.mov/wiki.x266.mov/",children:"analytics page"}),"."]}),"\n",(0,n.jsxs)(i.p,{children:["You may opt out with various means of ad & tracker blocking. An example would be ",(0,n.jsx)(i.a,{href:"https://ublockorigin.com/",children:"UBlock Origin"}),", which blocks our analytics script."]}),"\n",(0,n.jsxs)(i.p,{children:["If you have any questions, comments or concerns, you may reach out to site maintainer Gianni Rosato via ",(0,n.jsx)(i.a,{href:"mailto:grosatowork@proton.me",children:"grosatowork@proton.me"}),"."]}),"\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.em,{children:"Last updated 12 September 2023"})})]})}function h(e={}){const{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>r,x:()=>a});var o=t(6540);const n={},s=o.createContext(n);function r(e){const i=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),o.createElement(s.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d337df6f.4e231f7b.js b/assets/js/d337df6f.4e231f7b.js new file mode 100644 index 000000000..fa123fdb1 --- /dev/null +++ b/assets/js/d337df6f.4e231f7b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6496],{8051:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>s,default:()=>m,frontMatter:()=>a,metadata:()=>i,toc:()=>u});var i=n(1229),o=n(4848),r=n(8453);const a={title:"Codec Wiki: One Year Later",description:"Codec's Wiki turbulent one-year journey since it's inception to everyone's go-to site for encoding documentation.",slug:"codec-wiki-one-year-later",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["anniversary","history"],hide_table_of_contents:!1},s=void 0,c={authorsImageUrls:[void 0]},u=[];function l(e){const t={p:"p",...(0,r.R)(),...e.components};return(0,o.jsx)(t.p,{children:"Around a month ago, Codec Wiki celebrates it's very first anniversary as it officially hits one year old (Wow, that's a very long time!)."})}function m(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>s});var i=n(6540);const o={},r=i.createContext(o);function a(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),i.createElement(r.Provider,{value:t},e.children)}},1229:e=>{e.exports=JSON.parse('{"permalink":"/blog/codec-wiki-one-year-later","source":"@site/blog/2024-07-20-codec-wiki-one-year-later.mdx","title":"Codec Wiki: One Year Later","description":"Codec\'s Wiki turbulent one-year journey since it\'s inception to everyone\'s go-to site for encoding documentation.","date":"2024-07-20T00:00:00.000Z","tags":[{"inline":true,"label":"anniversary","permalink":"/blog/tags/anniversary"},{"inline":true,"label":"history","permalink":"/blog/tags/history"}],"readingTime":3.785,"hasTruncateMarker":true,"authors":[{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4","socials":{},"key":null,"page":null}],"frontMatter":{"title":"Codec Wiki: One Year Later","description":"Codec\'s Wiki turbulent one-year journey since it\'s inception to everyone\'s go-to site for encoding documentation.","slug":"codec-wiki-one-year-later","authors":[{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4"}],"tags":["anniversary","history"],"hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"Better late than never: SVT-AV1 v2.2.x Deep Dive","permalink":"/blog/svt-av1-third-deep-dive"},"nextItem":{"title":"AV1 for Dummies","permalink":"/blog/av1-for-dummies"}}')}}]); \ No newline at end of file diff --git a/assets/js/d337df6f.b45bda30.js b/assets/js/d337df6f.b45bda30.js deleted file mode 100644 index 74fbe1535..000000000 --- a/assets/js/d337df6f.b45bda30.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6496],{8051:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>m,frontMatter:()=>r,metadata:()=>s,toc:()=>u});var i=n(4848),o=n(8453);const r={title:"Codec Wiki: One Year Later",description:"Codec's Wiki turbulent one-year journey since it's inception to everyone's go-to site for encoding documentation.",slug:"codec-wiki-one-year-later",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["anniversary","history"],hide_table_of_contents:!1},a=void 0,s={permalink:"/blog/codec-wiki-one-year-later",source:"@site/blog/2024-07-20-codec-wiki-one-year-later.mdx",title:"Codec Wiki: One Year Later",description:"Codec's Wiki turbulent one-year journey since it's inception to everyone's go-to site for encoding documentation.",date:"2024-07-20T00:00:00.000Z",tags:[{inline:!0,label:"anniversary",permalink:"/blog/tags/anniversary"},{inline:!0,label:"history",permalink:"/blog/tags/history"}],readingTime:3.785,hasTruncateMarker:!0,authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4",key:null,page:null}],frontMatter:{title:"Codec Wiki: One Year Later",description:"Codec's Wiki turbulent one-year journey since it's inception to everyone's go-to site for encoding documentation.",slug:"codec-wiki-one-year-later",authors:[{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["anniversary","history"],hide_table_of_contents:!1},unlisted:!1,nextItem:{title:"AV1 for Dummies",permalink:"/blog/av1-for-dummies"}},c={authorsImageUrls:[void 0]},u=[];function l(e){const t={p:"p",...(0,o.R)(),...e.components};return(0,i.jsx)(t.p,{children:"Around a month ago, Codec Wiki celebrates it's very first anniversary as it officially hits one year old (Wow, that's a very long time!)."})}function m(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>s});var i=n(6540);const o={},r=i.createContext(o);function a(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d5ab79da.1faa483d.js b/assets/js/d5ab79da.1faa483d.js new file mode 100644 index 000000000..802481dfd --- /dev/null +++ b/assets/js/d5ab79da.1faa483d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8382],{9060:(e,o,t)=>{t.r(o),t.d(o,{assets:()=>d,contentTitle:()=>r,default:()=>u,frontMatter:()=>a,metadata:()=>i,toc:()=>c});const i=JSON.parse('{"id":"audio/MP3","title":"MP3","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/audio/MP3.mdx","sourceDirName":"audio","slug":"/audio/MP3","permalink":"/docs/audio/MP3","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/MP3.mdx","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"title":"MP3","sidebar_position":4},"sidebar":"tutorialSidebar","previous":{"title":"Dolby Digital","permalink":"/docs/audio/Dolby"},"next":{"title":"Vorbis","permalink":"/docs/audio/Vorbis"}}');var n=t(4848),s=t(8453);const a={title:"MP3",sidebar_position:4},r="MP3",d={},c=[];function l(e){const o={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.header,{children:(0,n.jsx)(o.h1,{id:"mp3",children:"MP3"})}),"\n",(0,n.jsx)(o.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(o.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(o.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsx)(o.p,{children:"MP3, formally known as MPEG-1 Audio Layer III or MPEG-2 Audio Layer III, is a coding format for digital audio. It was developed largely by the Fraunhofer Society in Germany under the lead of Karlheinz Brandenburg, with support from other digital scientists in other countries."}),"\n",(0,n.jsx)(o.p,{children:"MP3 is defined in two ISO/IEC specification families: MPEG-1: 11172-3 and MPEG-2: 13818-32. It uses lossy compression, which often allows for large reductions in file size compared to uncompressed audio."}),"\n",(0,n.jsxs)(o.p,{children:["Lossy MP3 compression works by attempting to reduce (or approximate) the accuracy of certain components of sound that could be considered (by some ",(0,n.jsx)(o.a,{href:"/docs/introduction/terminology#perceputal--psychovisual--psychoacoustic",children:"psychoacoustic"})," analysis) to be beyond the hearing capabilities of most humans and storing the coefficients corresponding to these more salient frequency bands."]}),"\n",(0,n.jsx)(o.p,{children:"Compared to CD-quality digital audio, MP3 compression can commonly achieve a 75 to 95% reduction in size. For example, an MP3 encoded at a constant bit rate of 128 kbit/s would result in a file approximately 9% of the size of the original CD audio. MP3 audio is considered transparent at 320kb/s."}),"\n",(0,n.jsxs)(o.p,{children:["It is still very common to see MP3 files in the wild today, despite the fact that the format was finalized in 1993 (with modifications in 1995 to support lower sample rates and bit rates). This is due to the fact that MP3 could be considered the first widely adopted audio format that allowed for high quality audio to be compressed to a relatively small file size. Compared to more modern formats like ",(0,n.jsx)(o.a,{href:"/docs/audio/Opus",children:"Opus"})," and ",(0,n.jsx)(o.a,{href:"/docs/audio/AAC",children:"AAC"}),", MP3 may not seem as impressive, but it is still widely supported by many devices and pieces software and has certainly left a powerful legacy to live up to for modern codecs."]})]})}function u(e={}){const{wrapper:o}={...(0,s.R)(),...e.components};return o?(0,n.jsx)(o,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,o,t)=>{t.d(o,{R:()=>a,x:()=>r});var i=t(6540);const n={},s=i.createContext(n);function a(e){const o=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function r(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),i.createElement(s.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d5ab79da.7a6ccdeb.js b/assets/js/d5ab79da.7a6ccdeb.js deleted file mode 100644 index 823b277c6..000000000 --- a/assets/js/d5ab79da.7a6ccdeb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8382],{2082:(e,o,i)=>{i.r(o),i.d(o,{assets:()=>d,contentTitle:()=>a,default:()=>u,frontMatter:()=>s,metadata:()=>r,toc:()=>c});var t=i(4848),n=i(8453);const s={title:"MP3",sidebar_position:4},a="MP3",r={id:"audio/MP3",title:"MP3",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/audio/MP3.mdx",sourceDirName:"audio",slug:"/audio/MP3",permalink:"/docs/audio/MP3",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/MP3.mdx",tags:[],version:"current",sidebarPosition:4,frontMatter:{title:"MP3",sidebar_position:4},sidebar:"tutorialSidebar",previous:{title:"Dolby Digital",permalink:"/docs/audio/Dolby"},next:{title:"Vorbis",permalink:"/docs/audio/Vorbis"}},d={},c=[];function l(e){const o={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.header,{children:(0,t.jsx)(o.h1,{id:"mp3",children:"MP3"})}),"\n",(0,t.jsx)(o.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(o.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(o.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsx)(o.p,{children:"MP3, formally known as MPEG-1 Audio Layer III or MPEG-2 Audio Layer III, is a coding format for digital audio. It was developed largely by the Fraunhofer Society in Germany under the lead of Karlheinz Brandenburg, with support from other digital scientists in other countries."}),"\n",(0,t.jsx)(o.p,{children:"MP3 is defined in two ISO/IEC specification families: MPEG-1: 11172-3 and MPEG-2: 13818-32. It uses lossy compression, which often allows for large reductions in file size compared to uncompressed audio."}),"\n",(0,t.jsxs)(o.p,{children:["Lossy MP3 compression works by attempting to reduce (or approximate) the accuracy of certain components of sound that could be considered (by some ",(0,t.jsx)(o.a,{href:"/docs/introduction/terminology#perceputal--psychovisual--psychoacoustic",children:"psychoacoustic"})," analysis) to be beyond the hearing capabilities of most humans and storing the coefficients corresponding to these more salient frequency bands."]}),"\n",(0,t.jsx)(o.p,{children:"Compared to CD-quality digital audio, MP3 compression can commonly achieve a 75 to 95% reduction in size. For example, an MP3 encoded at a constant bit rate of 128 kbit/s would result in a file approximately 9% of the size of the original CD audio. MP3 audio is considered transparent at 320kb/s."}),"\n",(0,t.jsxs)(o.p,{children:["It is still very common to see MP3 files in the wild today, despite the fact that the format was finalized in 1993 (with modifications in 1995 to support lower sample rates and bit rates). This is due to the fact that MP3 could be considered the first widely adopted audio format that allowed for high quality audio to be compressed to a relatively small file size. Compared to more modern formats like ",(0,t.jsx)(o.a,{href:"/docs/audio/Opus",children:"Opus"})," and ",(0,t.jsx)(o.a,{href:"/docs/audio/AAC",children:"AAC"}),", MP3 may not seem as impressive, but it is still widely supported by many devices and pieces software and has certainly left a powerful legacy to live up to for modern codecs."]})]})}function u(e={}){const{wrapper:o}={...(0,n.R)(),...e.components};return o?(0,t.jsx)(o,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,o,i)=>{i.d(o,{R:()=>a,x:()=>r});var t=i(6540);const n={},s=t.createContext(n);function a(e){const o=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(o):{...o,...e}}),[o,e])}function r(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),t.createElement(s.Provider,{value:o},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d5f89569.2c8d20a5.js b/assets/js/d5f89569.2c8d20a5.js new file mode 100644 index 000000000..37fa72f62 --- /dev/null +++ b/assets/js/d5f89569.2c8d20a5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1401],{5250:(e,a,t)=>{t.r(a),t.d(a,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>l,metadata:()=>r,toc:()=>u});const r=JSON.parse('{"id":"encoders/Kvazaar","title":"Kvazaar","description":"Kvazaar is an open-source H.265 / HEVC software encoder Written in C, developed by Ultra Video Group and licensed under BSD 3-clause.","source":"@site/docs/encoders/Kvazaar.mdx","sourceDirName":"encoders","slug":"/encoders/Kvazaar","permalink":"/docs/encoders/Kvazaar","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/Kvazaar.mdx","tags":[],"version":"current","sidebarPosition":11,"frontMatter":{"title":"Kvazaar","sidebar_position":11},"sidebar":"tutorialSidebar","previous":{"title":"SVT-HEVC","permalink":"/docs/encoders/SVT-HEVC"},"next":{"title":"VVenC","permalink":"/docs/encoders/VVenC"}}');var n=t(4848),s=t(8453),i=t(1470),o=t(9365);const l={title:"Kvazaar",sidebar_position:11},c="Kvazaar",d={},u=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installation",id:"installation",level:2},{value:"Autotools",id:"autotools",level:3},{value:"CMake (10-bit support)",id:"cmake-10-bit-support",level:3},{value:"MSYS2",id:"msys2",level:3},{value:"Usage",id:"usage",level:2}];function h(e){const a={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.header,{children:(0,n.jsx)(a.h1,{id:"kvazaar",children:"Kvazaar"})}),"\n",(0,n.jsxs)(a.p,{children:[(0,n.jsx)(a.a,{href:"https://github.com/ultravideo/kvazaar",children:"Kvazaar"})," is an open-source ",(0,n.jsx)(a.a,{href:"/docs/video/HEVC",children:"H.265 / HEVC"})," software encoder Written in C, developed by ",(0,n.jsx)(a.a,{href:"https://ultravideo.fi/",children:"Ultra Video Group"})," and licensed under BSD 3-clause."]}),"\n",(0,n.jsxs)(a.p,{children:[(0,n.jsx)(a.a,{href:"/docs/encoders/uvg266",children:"uvg266"})," (Developed by the same group) uses Kvazaar as a base for encoding to the ",(0,n.jsx)(a.a,{href:"/docs/video/VVC",children:"VVC"})," codec."]}),"\n",(0,n.jsxs)(a.p,{children:[(0,n.jsx)(a.a,{href:"/docs/encoders/x265",children:"x265"})," is generally regarded as having better performance while producing better quality video streams."]}),"\n",(0,n.jsx)(a.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,n.jsxs)(a.p,{children:["Kvazaar is available in ",(0,n.jsx)(a.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," via ",(0,n.jsx)(a.code,{children:"libkvazaar"}),", to check if you have it, run ",(0,n.jsx)(a.code,{children:"ffmpeg -h encoder=libkvazaar"}),". You can input non-FFmpeg standard Kvazaar parameters via ",(0,n.jsx)(a.code,{children:"-kvazaar-params"}),"."]}),"\n",(0,n.jsx)(a.p,{children:'You may need to download "Full" builds. As most of the time, this encoder is not included.'}),"\n",(0,n.jsx)(a.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,n.jsx)(a.p,{children:"Kvazaar supports the following color spaces:"}),"\n",(0,n.jsxs)(a.table,{children:[(0,n.jsx)(a.thead,{children:(0,n.jsxs)(a.tr,{children:[(0,n.jsx)(a.th,{children:"Format"}),(0,n.jsx)(a.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,n.jsx)(a.th,{children:"Supported Bit Depth(s)"})]})}),(0,n.jsxs)(a.tbody,{children:[(0,n.jsxs)(a.tr,{children:[(0,n.jsx)(a.td,{children:"YUV420P"}),(0,n.jsx)(a.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(a.td,{children:"8-bit"})]}),(0,n.jsxs)(a.tr,{children:[(0,n.jsx)(a.td,{children:"YUV420P10LE"}),(0,n.jsx)(a.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(a.td,{children:"10-bit*"})]})]})]}),"\n",(0,n.jsx)(a.p,{children:"*10-bit support requires a flag to be set during compilation with CMake."}),"\n",(0,n.jsx)(a.h2,{id:"installation",children:"Installation"}),"\n",(0,n.jsxs)(i.A,{children:[(0,n.jsxs)(o.A,{value:"unixlike",label:"Linux & macOS",default:!0,children:[(0,n.jsxs)(a.p,{children:["For Arch Linux, Kvazaar is available as ",(0,n.jsx)(a.code,{children:"kvazaar"}),". It is also available in the Arch User Repository (AUR) as ",(0,n.jsx)(a.code,{children:"kvazaar-git"}),"."]}),(0,n.jsxs)(a.p,{children:["Ultra Video Group does not ship any pre-built binaries of their encoders except for their ",(0,n.jsx)(a.a,{href:"https://ci.appveyor.com/project/Ultravideo/kvazaar",children:"AppVeyor CI"}),", but AppVeyor deletes build artifacts after a month, so most of the time you'll have to compile Kvazaar yourself. Here are the instructions to do so:"]}),(0,n.jsx)(a.h3,{id:"autotools",children:"Autotools"}),(0,n.jsxs)(a.ol,{start:"0",children:["\n",(0,n.jsxs)(a.li,{children:["\n",(0,n.jsx)(a.p,{children:"Compilation requires GNU Automake, Autoconf, Libtool, and M4. Install them via your package manager."}),"\n"]}),"\n",(0,n.jsxs)(a.li,{children:["\n",(0,n.jsx)(a.p,{children:"Clone the repository and its submodules:"}),"\n"]}),"\n"]}),(0,n.jsx)(a.pre,{children:(0,n.jsx)(a.code,{className:"language-bash",children:"git clone --recursive https://github.com/ultravideo/kvazaar.git\ncd kvazaar\n./autogen.sh\n./configure\nmake -j$(nproc)\n"})}),(0,n.jsxs)(a.ol,{start:"3",children:["\n",(0,n.jsxs)(a.li,{children:["Binaries will be available in ",(0,n.jsx)(a.code,{children:"src"}),", or you can run ",(0,n.jsx)(a.code,{children:"make install"})," on Linux to install (May need elevated permissions)."]}),"\n"]}),(0,n.jsx)(a.h3,{id:"cmake-10-bit-support",children:"CMake (10-bit support)"}),(0,n.jsx)(a.p,{children:"You will need to use CMake to specify a flag to be able to encode 10-bit with the encoder; by default Kvazaar ships with only 8-bit."}),(0,n.jsx)(a.pre,{children:(0,n.jsx)(a.code,{className:"language-bash",children:'git clone --recursive https://github.com/ultravideo/kvazaar.git\ncd kvazaar/build\ncmake .. -DCMAKE_C_FLAGS="-DKVZ_BIT_DEPTH=10" # optional 10-bit flag\nmake -j$(nproc)\n'})}),(0,n.jsx)(a.p,{children:"Be aware that encoding 10-bit HEVC with Kvazaar is significantly slower, as the developers only prioritized SIMD optimizations for 8-bit encoding. Be aware that this implementation can be buggy in general."})]}),(0,n.jsxs)(o.A,{value:"wind",label:"Windows",children:[(0,n.jsxs)(a.p,{children:["Windows users are recommended to compile via MinGW-W64 which comes with ",(0,n.jsx)(a.a,{href:"https://msys2.org/",children:"MSYS2"}),". Please be advised ",(0,n.jsx)(a.strong,{children:"the usage of Clang for compiling in this situation is heavily recommended"}),"\ndue to disabled AVX2 optimizations because of a known GCC issue from 2012 (MinGW environments-exclusive). To do this, run ",(0,n.jsx)(a.code,{children:"CC=clang ./configure"})," during autoconf."]}),(0,n.jsx)(a.h3,{id:"msys2",children:"MSYS2"}),(0,n.jsxs)(a.ol,{start:"0",children:["\n",(0,n.jsxs)(a.li,{children:["\n",(0,n.jsxs)(a.p,{children:["Make sure you have downloaded & installed MSYS2 from ",(0,n.jsx)(a.a,{href:"https://www.msys2.org/",children:"the MSYS2 website"})," before beginning the build process."]}),"\n"]}),"\n",(0,n.jsxs)(a.li,{children:["\n",(0,n.jsxs)(a.p,{children:["Start the UCRT64 console & install the required dependencies with the ",(0,n.jsx)(a.code,{children:"pacman"})," package manager"]}),"\n"]}),"\n",(0,n.jsxs)(a.li,{children:["\n",(0,n.jsx)(a.p,{children:'Resume the build process as you would on a Unix-like system. See the "Linux & macOS" tab for more information.'}),"\n"]}),"\n"]})]})]}),"\n",(0,n.jsx)(a.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsx)(a.p,{children:"Here are some examples of how to use Kvazaar on its own:"}),"\n",(0,n.jsx)(a.pre,{children:(0,n.jsx)(a.code,{className:"language-bash",metastring:'title="Simple Y4M input with QP 20 and raw 265 bitstream output"',children:"kvazaar -i input.y4m --input-file-format y4m --qp 20 -o output.265\n"})}),"\n",(0,n.jsx)(a.pre,{children:(0,n.jsx)(a.code,{className:"language-bash",metastring:'title="Preset slow, CRF 20, Y4M input"',children:"kvazaar -i input.y4m --input-file-format y4m --qp 20 --preset slow -o output.265\n"})}),"\n",(0,n.jsxs)(a.p,{children:["The command below still uses the ",(0,n.jsx)(a.code,{children:"kvazaar"})," binary, but reads from a YUV4MPEG pipe instead of a file. This is useful for piping FFmpeg output to Kvazaar."]}),"\n",(0,n.jsx)(a.pre,{children:(0,n.jsx)(a.code,{className:"language-bash",metastring:'title="FFmpeg piping"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | kvazaar -i - --input-file-format y4m --qp 20 --preset slow -o output.265\n"})})]})}function p(e={}){const{wrapper:a}={...(0,s.R)(),...e.components};return a?(0,n.jsx)(a,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},9365:(e,a,t)=>{t.d(a,{A:()=>i});t(6540);var r=t(4164);const n={tabItem:"tabItem_Ymn6"};var s=t(4848);function i(e){let{children:a,hidden:t,className:i}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.A)(n.tabItem,i),hidden:t,children:a})}},1470:(e,a,t)=>{t.d(a,{A:()=>w});var r=t(6540),n=t(4164),s=t(3104),i=t(6347),o=t(205),l=t(7485),c=t(1682),d=t(679);function u(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:a}=e;return!!a&&"object"==typeof a&&"value"in a}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:a,children:t}=e;return(0,r.useMemo)((()=>{const e=a??function(e){return u(e).map((e=>{let{props:{value:a,label:t,attributes:r,default:n}}=e;return{value:a,label:t,attributes:r,default:n}}))}(t);return function(e){const a=(0,c.XI)(e,((e,a)=>e.value===a.value));if(a.length>0)throw new Error(`Docusaurus error: Duplicate values "${a.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[a,t])}function p(e){let{value:a,tabValues:t}=e;return t.some((e=>e.value===a))}function m(e){let{queryString:a=!1,groupId:t}=e;const n=(0,i.W6)(),s=function(e){let{queryString:a=!1,groupId:t}=e;if("string"==typeof a)return a;if(!1===a)return null;if(!0===a&&!t)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return t??null}({queryString:a,groupId:t});return[(0,l.aZ)(s),(0,r.useCallback)((e=>{if(!s)return;const a=new URLSearchParams(n.location.search);a.set(s,e),n.replace({...n.location,search:a.toString()})}),[s,n])]}function f(e){const{defaultValue:a,queryString:t=!1,groupId:n}=e,s=h(e),[i,l]=(0,r.useState)((()=>function(e){let{defaultValue:a,tabValues:t}=e;if(0===t.length)throw new Error("Docusaurus error: the component requires at least one children component");if(a){if(!p({value:a,tabValues:t}))throw new Error(`Docusaurus error: The has a defaultValue "${a}" but none of its children has the corresponding value. Available values are: ${t.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return a}const r=t.find((e=>e.default))??t[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:a,tabValues:s}))),[c,u]=m({queryString:t,groupId:n}),[f,v]=function(e){let{groupId:a}=e;const t=function(e){return e?`docusaurus.tab.${e}`:null}(a),[n,s]=(0,d.Dv)(t);return[n,(0,r.useCallback)((e=>{t&&s.set(e)}),[t,s])]}({groupId:n}),b=(()=>{const e=c??f;return p({value:e,tabValues:s})?e:null})();(0,o.A)((()=>{b&&l(b)}),[b]);return{selectedValue:i,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),u(e),v(e)}),[u,v,s]),tabValues:s}}var v=t(2303);const b={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=t(4848);function g(e){let{className:a,block:t,selectedValue:r,selectValue:i,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.a_)(),d=e=>{const a=e.currentTarget,t=l.indexOf(a),n=o[t].value;n!==r&&(c(a),i(n))},u=e=>{let a=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const t=l.indexOf(e.currentTarget)+1;a=l[t]??l[0];break}case"ArrowLeft":{const t=l.indexOf(e.currentTarget)-1;a=l[t]??l[l.length-1];break}}a?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,n.A)("tabs",{"tabs--block":t},a),children:o.map((e=>{let{value:a,label:t,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===a?0:-1,"aria-selected":r===a,ref:e=>l.push(e),onKeyDown:u,onClick:d,...s,className:(0,n.A)("tabs__item",b.tabItem,s?.className,{"tabs__item--active":r===a}),children:t??a},a)}))})}function j(e){let{lazy:a,children:t,selectedValue:s}=e;const i=(Array.isArray(t)?t:[t]).filter(Boolean);if(a){const e=i.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:(0,n.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:i.map(((e,a)=>(0,r.cloneElement)(e,{key:a,hidden:e.props.value!==s})))})}function y(e){const a=f(e);return(0,x.jsxs)("div",{className:(0,n.A)("tabs-container",b.tabList),children:[(0,x.jsx)(g,{...a,...e}),(0,x.jsx)(j,{...a,...e})]})}function w(e){const a=(0,v.A)();return(0,x.jsx)(y,{...e,children:u(e.children)},String(a))}},8453:(e,a,t)=>{t.d(a,{R:()=>i,x:()=>o});var r=t(6540);const n={},s=r.createContext(n);function i(e){const a=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function o(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),r.createElement(s.Provider,{value:a},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d5f89569.f9fcd397.js b/assets/js/d5f89569.f9fcd397.js deleted file mode 100644 index e37e106a2..000000000 --- a/assets/js/d5f89569.f9fcd397.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1401],{7235:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>d,contentTitle:()=>l,default:()=>p,frontMatter:()=>o,metadata:()=>c,toc:()=>u});var r=a(4848),n=a(8453),s=a(1470),i=a(9365);const o={title:"Kvazaar",sidebar_position:11},l="Kvazaar",c={id:"encoders/Kvazaar",title:"Kvazaar",description:"Kvazaar is an open-source H.265 / HEVC software encoder Written in C, developed by Ultra Video Group and licensed under BSD 3-clause.",source:"@site/docs/encoders/Kvazaar.mdx",sourceDirName:"encoders",slug:"/encoders/Kvazaar",permalink:"/docs/encoders/Kvazaar",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/Kvazaar.mdx",tags:[],version:"current",sidebarPosition:11,frontMatter:{title:"Kvazaar",sidebar_position:11},sidebar:"tutorialSidebar",previous:{title:"SVT-HEVC",permalink:"/docs/encoders/SVT-HEVC"},next:{title:"VVenC",permalink:"/docs/encoders/VVenC"}},d={},u=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installation",id:"installation",level:2},{value:"Autotools",id:"autotools",level:3},{value:"CMake (10-bit support)",id:"cmake-10-bit-support",level:3},{value:"MSYS2",id:"msys2",level:3},{value:"Usage",id:"usage",level:2}];function h(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,n.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"kvazaar",children:"Kvazaar"})}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.a,{href:"https://github.com/ultravideo/kvazaar",children:"Kvazaar"})," is an open-source ",(0,r.jsx)(t.a,{href:"/docs/video/HEVC",children:"H.265 / HEVC"})," software encoder Written in C, developed by ",(0,r.jsx)(t.a,{href:"https://ultravideo.fi/",children:"Ultra Video Group"})," and licensed under BSD 3-clause."]}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.a,{href:"/docs/encoders/uvg266",children:"uvg266"})," (Developed by the same group) uses Kvazaar as a base for encoding to the ",(0,r.jsx)(t.a,{href:"/docs/video/VVC",children:"VVC"})," codec."]}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.a,{href:"/docs/encoders/x265",children:"x265"})," is generally regarded as having better performance while producing better quality video streams."]}),"\n",(0,r.jsx)(t.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,r.jsxs)(t.p,{children:["Kvazaar is available in ",(0,r.jsx)(t.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," via ",(0,r.jsx)(t.code,{children:"libkvazaar"}),", to check if you have it, run ",(0,r.jsx)(t.code,{children:"ffmpeg -h encoder=libkvazaar"}),". You can input non-FFmpeg standard Kvazaar parameters via ",(0,r.jsx)(t.code,{children:"-kvazaar-params"}),"."]}),"\n",(0,r.jsx)(t.p,{children:'You may need to download "Full" builds. As most of the time, this encoder is not included.'}),"\n",(0,r.jsx)(t.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,r.jsx)(t.p,{children:"Kvazaar supports the following color spaces:"}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Format"}),(0,r.jsx)(t.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,r.jsx)(t.th,{children:"Supported Bit Depth(s)"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"YUV420P"}),(0,r.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,r.jsx)(t.td,{children:"8-bit"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"YUV420P10LE"}),(0,r.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,r.jsx)(t.td,{children:"10-bit*"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"*10-bit support requires a flag to be set during compilation with CMake."}),"\n",(0,r.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,r.jsxs)(s.A,{children:[(0,r.jsxs)(i.A,{value:"unixlike",label:"Linux & macOS",default:!0,children:[(0,r.jsxs)(t.p,{children:["For Arch Linux, Kvazaar is available as ",(0,r.jsx)(t.code,{children:"kvazaar"}),". It is also available in the Arch User Repository (AUR) as ",(0,r.jsx)(t.code,{children:"kvazaar-git"}),"."]}),(0,r.jsxs)(t.p,{children:["Ultra Video Group does not ship any pre-built binaries of their encoders except for their ",(0,r.jsx)(t.a,{href:"https://ci.appveyor.com/project/Ultravideo/kvazaar",children:"AppVeyor CI"}),", but AppVeyor deletes build artifacts after a month, so most of the time you'll have to compile Kvazaar yourself. Here are the instructions to do so:"]}),(0,r.jsx)(t.h3,{id:"autotools",children:"Autotools"}),(0,r.jsxs)(t.ol,{start:"0",children:["\n",(0,r.jsxs)(t.li,{children:["\n",(0,r.jsx)(t.p,{children:"Compilation requires GNU Automake, Autoconf, Libtool, and M4. Install them via your package manager."}),"\n"]}),"\n",(0,r.jsxs)(t.li,{children:["\n",(0,r.jsx)(t.p,{children:"Clone the repository and its submodules:"}),"\n"]}),"\n"]}),(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:"git clone --recursive https://github.com/ultravideo/kvazaar.git\ncd kvazaar\n./autogen.sh\n./configure\nmake -j$(nproc)\n"})}),(0,r.jsxs)(t.ol,{start:"3",children:["\n",(0,r.jsxs)(t.li,{children:["Binaries will be available in ",(0,r.jsx)(t.code,{children:"src"}),", or you can run ",(0,r.jsx)(t.code,{children:"make install"})," on Linux to install (May need elevated permissions)."]}),"\n"]}),(0,r.jsx)(t.h3,{id:"cmake-10-bit-support",children:"CMake (10-bit support)"}),(0,r.jsx)(t.p,{children:"You will need to use CMake to specify a flag to be able to encode 10-bit with the encoder; by default Kvazaar ships with only 8-bit."}),(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:'git clone --recursive https://github.com/ultravideo/kvazaar.git\ncd kvazaar/build\ncmake .. -DCMAKE_C_FLAGS="-DKVZ_BIT_DEPTH=10" # optional 10-bit flag\nmake -j$(nproc)\n'})}),(0,r.jsx)(t.p,{children:"Be aware that encoding 10-bit HEVC with Kvazaar is significantly slower, as the developers only prioritized SIMD optimizations for 8-bit encoding. Be aware that this implementation can be buggy in general."})]}),(0,r.jsxs)(i.A,{value:"wind",label:"Windows",children:[(0,r.jsxs)(t.p,{children:["Windows users are recommended to compile via MinGW-W64 which comes with ",(0,r.jsx)(t.a,{href:"https://msys2.org/",children:"MSYS2"}),". Please be advised ",(0,r.jsx)(t.strong,{children:"the usage of Clang for compiling in this situation is heavily recommended"}),"\ndue to disabled AVX2 optimizations because of a known GCC issue from 2012 (MinGW environments-exclusive). To do this, run ",(0,r.jsx)(t.code,{children:"CC=clang ./configure"})," during autoconf."]}),(0,r.jsx)(t.h3,{id:"msys2",children:"MSYS2"}),(0,r.jsxs)(t.ol,{start:"0",children:["\n",(0,r.jsxs)(t.li,{children:["\n",(0,r.jsxs)(t.p,{children:["Make sure you have downloaded & installed MSYS2 from ",(0,r.jsx)(t.a,{href:"https://www.msys2.org/",children:"the MSYS2 website"})," before beginning the build process."]}),"\n"]}),"\n",(0,r.jsxs)(t.li,{children:["\n",(0,r.jsxs)(t.p,{children:["Start the UCRT64 console & install the required dependencies with the ",(0,r.jsx)(t.code,{children:"pacman"})," package manager"]}),"\n"]}),"\n",(0,r.jsxs)(t.li,{children:["\n",(0,r.jsx)(t.p,{children:'Resume the build process as you would on a Unix-like system. See the "Linux & macOS" tab for more information.'}),"\n"]}),"\n"]})]})]}),"\n",(0,r.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,r.jsx)(t.p,{children:"Here are some examples of how to use Kvazaar on its own:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",metastring:'title="Simple Y4M input with QP 20 and raw 265 bitstream output"',children:"kvazaar -i input.y4m --input-file-format y4m --qp 20 -o output.265\n"})}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",metastring:'title="Preset slow, CRF 20, Y4M input"',children:"kvazaar -i input.y4m --input-file-format y4m --qp 20 --preset slow -o output.265\n"})}),"\n",(0,r.jsxs)(t.p,{children:["The command below still uses the ",(0,r.jsx)(t.code,{children:"kvazaar"})," binary, but reads from a YUV4MPEG pipe instead of a file. This is useful for piping FFmpeg output to Kvazaar."]}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",metastring:'title="FFmpeg piping"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | kvazaar -i - --input-file-format y4m --qp 20 --preset slow -o output.265\n"})})]})}function p(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},9365:(e,t,a)=>{a.d(t,{A:()=>i});a(6540);var r=a(4164);const n={tabItem:"tabItem_Ymn6"};var s=a(4848);function i(e){let{children:t,hidden:a,className:i}=e;return(0,s.jsx)("div",{role:"tabpanel",className:(0,r.A)(n.tabItem,i),hidden:a,children:t})}},1470:(e,t,a)=>{a.d(t,{A:()=>w});var r=a(6540),n=a(4164),s=a(3104),i=a(6347),o=a(205),l=a(7485),c=a(1682),d=a(679);function u(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:t,children:a}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return u(e).map((e=>{let{props:{value:t,label:a,attributes:r,default:n}}=e;return{value:t,label:a,attributes:r,default:n}}))}(a);return function(e){const t=(0,c.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,a])}function p(e){let{value:t,tabValues:a}=e;return a.some((e=>e.value===t))}function m(e){let{queryString:t=!1,groupId:a}=e;const n=(0,i.W6)(),s=function(e){let{queryString:t=!1,groupId:a}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!a)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return a??null}({queryString:t,groupId:a});return[(0,l.aZ)(s),(0,r.useCallback)((e=>{if(!s)return;const t=new URLSearchParams(n.location.search);t.set(s,e),n.replace({...n.location,search:t.toString()})}),[s,n])]}function v(e){const{defaultValue:t,queryString:a=!1,groupId:n}=e,s=h(e),[i,l]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:a}=e;if(0===a.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!p({value:t,tabValues:a}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${a.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=a.find((e=>e.default))??a[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:s}))),[c,u]=m({queryString:a,groupId:n}),[v,b]=function(e){let{groupId:t}=e;const a=function(e){return e?`docusaurus.tab.${e}`:null}(t),[n,s]=(0,d.Dv)(a);return[n,(0,r.useCallback)((e=>{a&&s.set(e)}),[a,s])]}({groupId:n}),f=(()=>{const e=c??v;return p({value:e,tabValues:s})?e:null})();(0,o.A)((()=>{f&&l(f)}),[f]);return{selectedValue:i,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:s}))throw new Error(`Can't select invalid tab value=${e}`);l(e),u(e),b(e)}),[u,b,s]),tabValues:s}}var b=a(2303);const f={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=a(4848);function g(e){let{className:t,block:a,selectedValue:r,selectValue:i,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,s.a_)(),d=e=>{const t=e.currentTarget,a=l.indexOf(t),n=o[a].value;n!==r&&(c(t),i(n))},u=e=>{let t=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const a=l.indexOf(e.currentTarget)+1;t=l[a]??l[0];break}case"ArrowLeft":{const a=l.indexOf(e.currentTarget)-1;t=l[a]??l[l.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,n.A)("tabs",{"tabs--block":a},t),children:o.map((e=>{let{value:t,label:a,attributes:s}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>l.push(e),onKeyDown:u,onClick:d,...s,className:(0,n.A)("tabs__item",f.tabItem,s?.className,{"tabs__item--active":r===t}),children:a??t},t)}))})}function j(e){let{lazy:t,children:a,selectedValue:s}=e;const i=(Array.isArray(a)?a:[a]).filter(Boolean);if(t){const e=i.find((e=>e.props.value===s));return e?(0,r.cloneElement)(e,{className:(0,n.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:i.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==s})))})}function y(e){const t=v(e);return(0,x.jsxs)("div",{className:(0,n.A)("tabs-container",f.tabList),children:[(0,x.jsx)(g,{...t,...e}),(0,x.jsx)(j,{...t,...e})]})}function w(e){const t=(0,b.A)();return(0,x.jsx)(y,{...e,children:u(e.children)},String(t))}},8453:(e,t,a)=>{a.d(t,{R:()=>i,x:()=>o});var r=a(6540);const n={},s=r.createContext(n);function i(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d6535278.94e0b22c.js b/assets/js/d6535278.94e0b22c.js deleted file mode 100644 index dd11d42d0..000000000 --- a/assets/js/d6535278.94e0b22c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6977],{9963:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>l,default:()=>m,frontMatter:()=>o,metadata:()=>c,toc:()=>h});var i=n(4848),s=n(8453),r=n(1470),a=n(9365);const o={title:"VMAF",sidebar_position:1},l="VMAF",c={id:"metrics/VMAF",title:"VMAF",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/metrics/VMAF.mdx",sourceDirName:"metrics",slug:"/metrics/VMAF",permalink:"/docs/metrics/VMAF",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/metrics/VMAF.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"VMAF",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"SSIMULACRA2",permalink:"/docs/metrics/SSIMULACRA2"},next:{title:"XPSNR",permalink:"/docs/metrics/XPSNR"}},d={},h=[{value:"Installation",id:"installation",level:2},{value:"Using VMAF with FFmpeg",id:"using-vmaf-with-ffmpeg",level:2},{value:"Note about the model path on Windows",id:"note-about-the-model-path-on-windows",level:3},{value:"Scoring",id:"scoring",level:2},{value:"Some weaknesses",id:"some-weaknesses",level:2},{value:"Comparing to SSIMULACRA2",id:"comparing-to-ssimulacra2",level:3}];function u(e){const t={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"vmaf",children:"VMAF"})}),"\n",(0,i.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,i.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,i.jsx)(t.p,{children:"Short for Video Multimethod Assessment Fusion, VMAF is a full reference video quality assessment algorithm developed primarily by Netflix."}),"\n",(0,i.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,i.jsxs)(t.p,{children:["Vmaf comes as a part of ",(0,i.jsx)(t.a,{href:"https://github.com/Netflix/vmaf",children:"libvmaf"}),". There are two ways it is commonly used:"]}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:["As an ",(0,i.jsx)(t.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," filter"]}),"\n",(0,i.jsx)(t.li,{children:"As a standalone binary"}),"\n"]}),"\n",(0,i.jsxs)(t.p,{children:["The instructions below are written for Linux & macOS. On Windows, you can use the ",(0,i.jsx)(t.a,{href:"https://docs.microsoft.com/en-us/windows/wsl/install",children:"Windows Subsystem for Linux"})," to follow along."]}),"\n",(0,i.jsxs)(r.A,{children:[(0,i.jsxs)(a.A,{value:"bin",label:"Standalone Binary",children:[(0,i.jsx)(t.p,{children:"In order to build from source, follow the instructions below."}),(0,i.jsxs)(t.ol,{start:"0",children:["\n",(0,i.jsxs)(t.li,{children:["\n",(0,i.jsxs)(t.p,{children:["Install the required dependencies via your package manager of choice. The necessary dependencies are ",(0,i.jsx)(t.code,{children:"nasm"}),", ",(0,i.jsx)(t.code,{children:"ninja-build"}),", ",(0,i.jsx)(t.code,{children:"doxygen"}),", & ",(0,i.jsx)(t.code,{children:"xxd"}),"."]}),"\n"]}),"\n",(0,i.jsxs)(t.li,{children:["\n",(0,i.jsx)(t.p,{children:"Clone the repository & enter the corresponding directory"}),"\n"]}),"\n"]}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",metastring:'title="Clone & Enter"',children:"git clone https://github.com/Netflix/vmaf/\ncd vmaf/\n"})}),(0,i.jsxs)(t.ol,{start:"2",children:["\n",(0,i.jsxs)(t.li,{children:["Compile with ",(0,i.jsx)(t.code,{children:"meson"})," & ",(0,i.jsx)(t.code,{children:"ninja"})]}),"\n"]}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"meson setup libvmaf libvmaf/build --buildtype release -Denable_float=true\nsudo ninja -vC libvmaf/build install\n"})}),(0,i.jsx)(t.p,{children:"Now, you can run the VMAF binary with the following command:"}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"vmaf --help\n"})}),(0,i.jsxs)(t.p,{children:["If you would not like to build from source, you may grab the latest build from the VMAF ",(0,i.jsx)(t.a,{href:"https://github.com/Netflix/vmaf/releases",children:"GitHub releases"})," for your operating system."]}),(0,i.jsx)(t.p,{children:"Now, you can:"}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"/path/to/vmaf --reference refrence.y4m --distorted distorted.y4m\n"})}),(0,i.jsxs)(t.p,{children:[(0,i.jsx)(t.strong,{children:"Tip:"})," If the VMAF binary exists but is not market as executable, you might need to ",(0,i.jsx)(t.code,{children:"chmod +x /path/to/vmaf"})]}),(0,i.jsxs)(t.p,{children:["Explainer on command line flags can be found ",(0,i.jsx)(t.a,{href:"https://github.com/Netflix/vmaf/blob/master/libvmaf/tools/README.md",children:"here"})]}),(0,i.jsx)(t.p,{children:"The disadvantage of using the bin is that you need .yuv|y4m files, you can that overcome by using named pipes\nSimple example using ffmpeg as a decoder:"}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"# create the pipes\nmkfifo ref.pipe\nmkfido dist.pipe\n\n# run these each in a new terminal, order docent matter\nffmpeg -v error -i ref.mkv -strict -1 -f yuv4mpegpipe - > ref.pipe\nffmpeg -v error -i dist.mkv -strict -1 -f yuv4mpegpipe - > dist.pipe\n\n# after starting the two ffmpeg processes,\n# start the vmaf in a new terminal\n/path/to/vmaf --reference ref.pipe --distorted dist.pipe\n\n# delete the pipes after usage\nrm ref.pipe dist.pipe\n"})}),(0,i.jsx)(t.p,{children:"The Advantages of this are:"}),(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:["No need for a ffmpeg build with ",(0,i.jsx)(t.code,{children:"--enable-libvmaf"})]}),"\n",(0,i.jsxs)(t.li,{children:["Clear & simple usage of VMAF's various options, like ",(0,i.jsx)(t.code,{children:"--aom_ctc"})]}),"\n"]}),(0,i.jsx)(t.p,{children:"Disadvantages are:"}),(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Difficult/awkward to use without a wrapper script"}),"\n"]})]}),(0,i.jsxs)(a.A,{value:"ffmpegfilter",label:"FFmpeg Filter",children:[(0,i.jsxs)(t.p,{children:["If you are not sure if you have VMAF installed, you can check by running ",(0,i.jsx)(t.code,{children:"ffmpeg -help"})," and looking for whether or not the ",(0,i.jsx)(t.code,{children:"--enable-libvmaf"})," flag appears in the banner that is printed to the terminal. If you do not see this, you will need to build ffmpeg from source with the ",(0,i.jsx)(t.code,{children:"--enable-libvmaf"})," flag or grab a pre-compiled build of FFmpeg with the flag enabled."]}),(0,i.jsx)(t.p,{children:(0,i.jsxs)(t.em,{children:["Via the ",(0,i.jsx)(t.a,{href:"https://github.com/Netflix/vmaf/blob/master/resource/doc/ffmpeg.md",children:"VMAF github repo"}),":"]})}),(0,i.jsx)(t.h2,{id:"using-vmaf-with-ffmpeg",children:"Using VMAF with FFmpeg"}),(0,i.jsxs)(t.p,{children:["After installing ",(0,i.jsx)(t.code,{children:"libvmaf"}),", you can use it with ",(0,i.jsx)(t.a,{href:"http://ffmpeg.org/",children:"FFmpeg"}),". Under the FFmpeg directory, configure, build and install FFmpeg with:"]}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-shell",metastring:"script",children:"./configure --enable-libvmaf\nmake -j4\nmake install\n"})}),(0,i.jsxs)(t.p,{children:["Using FFmpeg+libvmaf is very powerful, as you can create complex filters to calculate VMAF directly on videos of different encoding formats and resolutions. For the best practices of computing VMAF at the right resolution, refer to our ",(0,i.jsx)(t.a,{href:"https://medium.com/netflix-techblog/vmaf-the-journey-continues-44b51ee9ed12",children:"tech blog"}),"."]}),(0,i.jsxs)(t.p,{children:["We provide a few examples how you can construct the FFmpeg command line and use VMAF as a filter. Note that you may need to download the test videos from ",(0,i.jsx)(t.a,{href:"https://github.com/Netflix/vmaf_resource/tree/master/python/test/resource",children:"vmaf_resource"}),"."]}),(0,i.jsxs)(t.p,{children:["Below is an example on how you can run FFmpeg+libvmaf on a pair of YUV files. First, download the reference video ",(0,i.jsx)(t.a,{href:"https://github.com/Netflix/vmaf_resource/blob/master/python/test/resource/yuv/src01_hrc00_576x324.yuv",children:(0,i.jsx)(t.code,{children:"src01_hrc00_576x324.yuv"})})," and the distorted video ",(0,i.jsx)(t.a,{href:"https://github.com/Netflix/vmaf_resource/blob/master/python/test/resource/yuv/src01_hrc01_576x324.yuv",children:(0,i.jsx)(t.code,{children:"src01_hrc01_576x324.yuv"})}),". ",(0,i.jsx)(t.code,{children:"-r 24"})," sets the frame rate (note that it needs to be before ",(0,i.jsx)(t.code,{children:"-i"}),"), and ",(0,i.jsx)(t.code,{children:"PTS-STARTPTS"})," synchronizes the PTS (presentation timestamp) of the two videos (this is crucial if one of your videos does not start at PTS 0, for example, if you cut your video out of a long video stream). It is important to set the frame rate and the PTS right, since FFmpeg filters synchronize based on timestamps instead of frames."]}),(0,i.jsxs)(t.p,{children:["The ",(0,i.jsx)(t.code,{children:"log_path"})," is set to standard output ",(0,i.jsx)(t.code,{children:"/dev/stdout"}),". It uses the ",(0,i.jsx)(t.code,{children:"model_path"})," at location ",(0,i.jsx)(t.code,{children:"/usr/local/share/model/vmaf_float_v0.6.1.json"})," (which is the default and can be omitted)."]}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-shell",metastring:"script",children:'ffmpeg -video_size 576x324 -r 24 -pixel_format yuv420p -i src01_hrc00_576x324.yuv \\\n -video_size 576x324 -r 24 -pixel_format yuv420p -i src01_hrc01_576x324.yuv \\\n -lavfi "[0:v]setpts=PTS-STARTPTS[reference]; \\\n [1:v]setpts=PTS-STARTPTS[distorted]; \\\n [distorted][reference]libvmaf=log_fmt=xml:log_path=/dev/stdout:model_path={your_vmaf_dir}/model/vmaf_v0.6.1.json:n_threads=4" \\\n -f null -\n'})}),(0,i.jsx)(t.p,{children:"The expected output is:"}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-shell",metastring:"script",children:"[libvmaf @ 0x7fcfa3403980] VMAF score: 76.668905\n"})}),(0,i.jsxs)(t.p,{children:["Below is a more complicated example where the inputs are packaged ",(0,i.jsx)(t.code,{children:".mp4"})," files. It takes in 1) a reference video ",(0,i.jsx)(t.a,{href:"https://github.com/Netflix/vmaf_resource/blob/master/python/test/resource/mp4/Seeking_30_480_1050.mp4",children:(0,i.jsx)(t.code,{children:"Seeking_30_480_1050.mp4"})})," of 480p and 2) a distorted video ",(0,i.jsx)(t.a,{href:"https://github.com/Netflix/vmaf_resource/blob/master/python/test/resource/mp4/Seeking_10_288_375.mp4",children:(0,i.jsx)(t.code,{children:"Seeking_10_288_375.mp4"})})," of 288p upsampled to ",(0,i.jsx)(t.code,{children:"720x480"})," using bicubic, and compute VMAF on the two 480p videos. Bicubic is used as the recommended upsampling method (also see the ",(0,i.jsx)(t.a,{href:"https://medium.com/netflix-techblog/vmaf-the-journey-continues-44b51ee9ed12",children:"techblog"})," for more details)."]}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-shell",metastring:"script",children:'ffmpeg \\\n -r 24 -i Seeking_30_480_1050.mp4 \\\n -r 24 -i Seeking_10_288_375.mp4 \\\n -lavfi "[0:v]setpts=PTS-STARTPTS[reference]; \\\n [1:v]scale=720:480:flags=bicubic,setpts=PTS-STARTPTS[distorted]; \\\n [distorted][reference]libvmaf=log_fmt=xml:log_path=/dev/stdout:model_path={your_vmaf_dir}/model/vmaf_v0.6.1.json:n_threads=4" \\\n -f null -\n'})}),(0,i.jsx)(t.p,{children:"The expected output is:"}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-shell",metastring:"script",children:"[libvmaf @ 0x7fb5b672bc00] VMAF score: 51.017497\n"})}),(0,i.jsxs)(t.p,{children:["See the ",(0,i.jsx)(t.a,{href:"https://ffmpeg.org/ffmpeg-filters.html#libvmaf",children:"FFmpeg's guide to libvmaf"}),", the ",(0,i.jsx)(t.a,{href:"https://trac.ffmpeg.org/wiki/FilteringGuide",children:"FFmpeg Filtering Guide"})," for more examples of complex filters, and the ",(0,i.jsx)(t.a,{href:"https://trac.ffmpeg.org/wiki/Scaling",children:"Scaling Guide"})," for information about scaling and using different scaling algorithms."]}),(0,i.jsx)(t.h3,{id:"note-about-the-model-path-on-windows",children:"Note about the model path on Windows"}),(0,i.jsxs)(t.p,{children:["Due to Windows not having a good default for where to pull the VMAF model from, you will always need to specify ",(0,i.jsx)(t.code,{children:"model_path"})," when calling libvmaf through ",(0,i.jsx)(t.code,{children:"ffmpeg"}),". However, you will need to be careful about the path you pass to ",(0,i.jsx)(t.code,{children:"model_path"}),"."]}),(0,i.jsxs)(t.p,{children:["If you are using a relative path for your ",(0,i.jsx)(t.code,{children:"model_path"}),", you can completely ignore this whole section, else if you are trying to use an absolute Windows path (",(0,i.jsx)(t.code,{children:"D:\\mypath\\vmaf_v0.6.1.json"}),") for your ",(0,i.jsx)(t.code,{children:"model_path"})," argument, you will need to be careful so ",(0,i.jsx)(t.code,{children:"ffmpeg"})," passes the right path to ",(0,i.jsx)(t.code,{children:"libvmaf"}),"."]}),(0,i.jsxs)(t.p,{children:["The final command line will depend on what shell you are running ",(0,i.jsx)(t.code,{children:"ffmpeg"})," through, so you will need to go through the following steps to make sure your path is okay."]}),(0,i.jsxs)(t.ol,{children:["\n",(0,i.jsxs)(t.li,{children:["\n",(0,i.jsxs)(t.p,{children:["Convert all of the backslashes ",(0,i.jsx)(t.code,{children:"\\"})," to forward slashes ",(0,i.jsx)(t.code,{children:"/"})," (",(0,i.jsx)(t.code,{children:"D:/mypath/vmaf_v0.6.1.json"}),")"]}),"\n"]}),"\n",(0,i.jsxs)(t.li,{children:["\n",(0,i.jsxs)(t.p,{children:["Escape the colon ",(0,i.jsx)(t.code,{children:":"})," character by using a backslash ",(0,i.jsx)(t.code,{children:"\\"})," (",(0,i.jsx)(t.code,{children:"D\\:/mypath/vmaf_v0.6.1.json"}),")"]}),"\n"]}),"\n",(0,i.jsxs)(t.li,{children:["\n",(0,i.jsxs)(t.p,{children:["Then escape that backslash with another backslash (",(0,i.jsx)(t.code,{children:"D\\\\:/mypath/vmaf_v0.6.1.json"}),")"]}),"\n"]}),"\n",(0,i.jsxs)(t.li,{children:["\n",(0,i.jsxs)(t.p,{children:["The next step will depend on the shell that will run ",(0,i.jsx)(t.code,{children:"ffmpeg"}),":"]}),"\n",(0,i.jsxs)(t.p,{children:["For PowerShell and Command Prompt, this will be enough and your final ",(0,i.jsx)(t.code,{children:"ffmpeg"})," command line will look something like"]}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-powershell",children:'./ffmpeg.exe -i dist.y4m -i ref.y4m \\\n -lavfi libvmaf=model_path="D\\\\:/mypath/vmaf_v0.6.1.json" \\\n -f null -\n'})}),"\n",(0,i.jsx)(t.admonition,{title:"Quoting the path",type:"info",children:(0,i.jsxs)(t.p,{children:["Note: I only quoted the path part for trivial reasons and in this specific case, it can be unquoted or you can quote the whole part after lavfi starting from ",(0,i.jsx)(t.code,{children:"libvmaf"})," to ",(0,i.jsx)(t.code,{children:"json"})," and it should give the same result due to neither shell treating the ",(0,i.jsx)(t.code,{children:"\\"})," as a special character"]})}),"\n",(0,i.jsxs)(t.p,{children:["For bash or specifically msys2 bash, it has some additional considerations. The first thing to know is that bash treats the backslash character ",(0,i.jsx)(t.code,{children:"\\"})," a bit special in that it's an escape character normally when not put inside single quotes. The second thing to know is that msys2's bash attempts convert a posix-like path (",(0,i.jsx)(t.code,{children:"/mingw64/share/model/vmaf_v0.6.1.json"}),") to a Windows mixed path (",(0,i.jsx)(t.code,{children:"D:/msys2/mingw64/share/model/vmaf_v0.6.1.json"}),") when passing arguments to a program. Normally, this would be fine, however, in our case, this works against us since we cannot allow it to convert the path to a normal path with an un-escaped colon. For this, we will need to not only escape the escaped backslash, but we will also need to pass the ",(0,i.jsx)(t.code,{children:"MSYS2_ARG_CONV_EXCL"})," environment variable with the value of ",(0,i.jsx)(t.code,{children:"*"})," to make sure it doesn't apply that special conversion on any of the arguments"]}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:'MSYS2_ARG_CONV_EXCL="*" \\\n ./ffmpeg.exe -i dist.y4m -i ref.y4m -lavfi \\\n libvmaf=model_path="D\\\\\\:/mypath/vmaf_v0.6.1.json" -f null -\n'})}),"\n",(0,i.jsx)(t.admonition,{title:"Quotes",type:"info",children:(0,i.jsx)(t.p,{children:"Note: in this case, the quotes are not as trivial as the PowerShell/cmd version, as removing the quotes entirely will require you to re-escape the backslash resulting in 4 total backslashes, but quoting the whole argument will be fine."})}),"\n",(0,i.jsxs)(t.admonition,{title:"Single Quotes",type:"note",children:[(0,i.jsx)(t.p,{children:"Second Note: if you use single quotes around the path, it will be fine as well and the final command line would look like"}),(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-bash",children:"MSYS2_ARG_CONV_EXCL=\"*\" \\\n ./ffmpeg.exe -i dist.y4m -i ref.y4m -lavfi \\\n libvmaf=model_path='D\\\\:/mypath/vmaf_v0.6.1.json' -f null -\n"})}),(0,i.jsx)(t.p,{children:"with only a double backslash instead of a triple."})]}),"\n"]}),"\n"]})]})]}),"\n",(0,i.jsx)(t.h2,{id:"scoring",children:"Scoring"}),"\n",(0,i.jsxs)(t.p,{children:["scores range from 0 to 100, and are best interpreted in a linear way,\n100 meaning perfect quality, 0 meaning not recognisable,\nmore info ",(0,i.jsx)(t.a,{href:"https://netflixtechblog.com/vmaf-the-journey-continues-44b51ee9ed12",children:"in the Best Practices section here"}),"\nIt aligns with mean opinion scores (MOS) really well at low/medium bitrates,\nas stated ",(0,i.jsx)(t.a,{href:"https://videoprocessing.ai/benchmarks/video-quality-metrics_both.html",children:"in this benchmark"})]}),"\n",(0,i.jsx)(t.h2,{id:"some-weaknesses",children:"Some weaknesses"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"Newer codecs like AV1 and VVC introduce new kinds of artifacting that v0.6.2\n(current model as of Jan 2024) doesn't recognise,\nthat's why its performance might degrade, for example, high motion scenes being affected badly"}),"\n",(0,i.jsx)(t.li,{children:'It\'s bad at "transparent" levels of quality, kinds of quality that the average viewer might not notice'}),"\n",(0,i.jsx)(t.li,{children:"Synthetic grain throws off scores, this issue is not isolated to vmaf, but it should be noted regardless"}),"\n"]}),"\n",(0,i.jsx)(t.admonition,{title:"With ffmpeg you can disable application of synthetic grain",type:"tip",children:(0,i.jsxs)(t.p,{children:["place ",(0,i.jsx)(t.code,{children:"-filmgrain 0"})," before ",(0,i.jsx)(t.code,{children:"-i"})," in the above ffmpeg commands, limited to decoding with dav1d\nTODO: replace this tip with an export_side_data solution"]})}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:"As of January 2024, it doesn't work on HDR content, nothing prevents you from feeding it un-tonemapped PQ but scores will be off"}),"\n",(0,i.jsx)(t.li,{children:"In contrast with SSIMULACRA2, it focuses on appeal, not necessarily on fidelity. They often align, but not always."}),"\n",(0,i.jsx)(t.li,{children:"Due to the ML nature, comparing the same video to itself will not always result in a score of 100"}),"\n"]}),"\n",(0,i.jsx)(t.h3,{id:"comparing-to-ssimulacra2",children:"Comparing to SSIMULACRA2"}),"\n",(0,i.jsx)(t.p,{children:"One big advantage over SSIMULACRA2 is the inclusion of some temporal information.\nThis means that VMAF weights frames that have a lot of motion higher.\nMeanwhile, SSIMULACRA2 based solutions compare each frame to the reference frame individually, since it is an image\nmetric at heart.\nVMAF also wins in speed and general ease of use."}),"\n",(0,i.jsx)(t.h1,{id:"additional-resources",children:"Additional resources"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsx)(t.li,{children:(0,i.jsx)(t.a,{href:"https://github.com/Netflix/vmaf/tree/master/resource/doc",children:"VMAF Documentation on GitHub"})}),"\n",(0,i.jsx)(t.li,{children:(0,i.jsx)(t.a,{href:"https://netflixtechblog.com/vmaf-the-journey-continues-44b51ee9ed12",children:"Medium Article by Netflix"})}),"\n"]})]})}function m(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}},9365:(e,t,n)=>{n.d(t,{A:()=>a});n(6540);var i=n(4164);const s={tabItem:"tabItem_Ymn6"};var r=n(4848);function a(e){let{children:t,hidden:n,className:a}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,i.A)(s.tabItem,a),hidden:n,children:t})}},1470:(e,t,n)=>{n.d(t,{A:()=>w});var i=n(6540),s=n(4164),r=n(3104),a=n(6347),o=n(205),l=n(7485),c=n(1682),d=n(679);function h(e){return i.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,i.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:t,children:n}=e;return(0,i.useMemo)((()=>{const e=t??function(e){return h(e).map((e=>{let{props:{value:t,label:n,attributes:i,default:s}}=e;return{value:t,label:n,attributes:i,default:s}}))}(n);return function(e){const t=(0,c.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const s=(0,a.W6)(),r=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,l.aZ)(r),(0,i.useCallback)((e=>{if(!r)return;const t=new URLSearchParams(s.location.search);t.set(r,e),s.replace({...s.location,search:t.toString()})}),[r,s])]}function p(e){const{defaultValue:t,queryString:n=!1,groupId:s}=e,r=u(e),[a,l]=(0,i.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const i=n.find((e=>e.default))??n[0];if(!i)throw new Error("Unexpected error: 0 tabValues");return i.value}({defaultValue:t,tabValues:r}))),[c,h]=f({queryString:n,groupId:s}),[p,g]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,r]=(0,d.Dv)(n);return[s,(0,i.useCallback)((e=>{n&&r.set(e)}),[n,r])]}({groupId:s}),x=(()=>{const e=c??p;return m({value:e,tabValues:r})?e:null})();(0,o.A)((()=>{x&&l(x)}),[x]);return{selectedValue:a,selectValue:(0,i.useCallback)((e=>{if(!m({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);l(e),h(e),g(e)}),[h,g,r]),tabValues:r}}var g=n(2303);const x={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var b=n(4848);function j(e){let{className:t,block:n,selectedValue:i,selectValue:a,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,r.a_)(),d=e=>{const t=e.currentTarget,n=l.indexOf(t),s=o[n].value;s!==i&&(c(t),a(s))},h=e=>{let t=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const n=l.indexOf(e.currentTarget)+1;t=l[n]??l[0];break}case"ArrowLeft":{const n=l.indexOf(e.currentTarget)-1;t=l[n]??l[l.length-1];break}}t?.focus()};return(0,b.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.A)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:r}=e;return(0,b.jsx)("li",{role:"tab",tabIndex:i===t?0:-1,"aria-selected":i===t,ref:e=>l.push(e),onKeyDown:h,onClick:d,...r,className:(0,s.A)("tabs__item",x.tabItem,r?.className,{"tabs__item--active":i===t}),children:n??t},t)}))})}function v(e){let{lazy:t,children:n,selectedValue:r}=e;const a=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===r));return e?(0,i.cloneElement)(e,{className:(0,s.A)("margin-top--md",e.props.className)}):null}return(0,b.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,i.cloneElement)(e,{key:t,hidden:e.props.value!==r})))})}function y(e){const t=p(e);return(0,b.jsxs)("div",{className:(0,s.A)("tabs-container",x.tabList),children:[(0,b.jsx)(j,{...t,...e}),(0,b.jsx)(v,{...t,...e})]})}function w(e){const t=(0,g.A)();return(0,b.jsx)(y,{...e,children:h(e.children)},String(t))}},8453:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>o});var i=n(6540);const s={},r=i.createContext(s);function a(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d6535278.e9ffe8cd.js b/assets/js/d6535278.e9ffe8cd.js new file mode 100644 index 000000000..22ea49198 --- /dev/null +++ b/assets/js/d6535278.e9ffe8cd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6977],{4841:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>c,default:()=>m,frontMatter:()=>l,metadata:()=>i,toc:()=>h});const i=JSON.parse('{"id":"metrics/VMAF","title":"VMAF","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/metrics/VMAF.mdx","sourceDirName":"metrics","slug":"/metrics/VMAF","permalink":"/docs/metrics/VMAF","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/metrics/VMAF.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"VMAF","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"SSIMULACRA2","permalink":"/docs/metrics/SSIMULACRA2"},"next":{"title":"XPSNR","permalink":"/docs/metrics/XPSNR"}}');var s=n(4848),r=n(8453),a=n(1470),o=n(9365);const l={title:"VMAF",sidebar_position:1},c="VMAF",d={},h=[{value:"Installation",id:"installation",level:2},{value:"Using VMAF with FFmpeg",id:"using-vmaf-with-ffmpeg",level:2},{value:"Note about the model path on Windows",id:"note-about-the-model-path-on-windows",level:3},{value:"Scoring",id:"scoring",level:2},{value:"Some weaknesses",id:"some-weaknesses",level:2},{value:"Comparing to SSIMULACRA2",id:"comparing-to-ssimulacra2",level:3}];function u(e){const t={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"vmaf",children:"VMAF"})}),"\n",(0,s.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,s.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,s.jsx)(t.p,{children:"Short for Video Multimethod Assessment Fusion, VMAF is a full reference video quality assessment algorithm developed primarily by Netflix."}),"\n",(0,s.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsxs)(t.p,{children:["Vmaf comes as a part of ",(0,s.jsx)(t.a,{href:"https://github.com/Netflix/vmaf",children:"libvmaf"}),". There are two ways it is commonly used:"]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:["As an ",(0,s.jsx)(t.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," filter"]}),"\n",(0,s.jsx)(t.li,{children:"As a standalone binary"}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:["The instructions below are written for Linux & macOS. On Windows, you can use the ",(0,s.jsx)(t.a,{href:"https://docs.microsoft.com/en-us/windows/wsl/install",children:"Windows Subsystem for Linux"})," to follow along."]}),"\n",(0,s.jsxs)(a.A,{children:[(0,s.jsxs)(o.A,{value:"bin",label:"Standalone Binary",children:[(0,s.jsx)(t.p,{children:"In order to build from source, follow the instructions below."}),(0,s.jsxs)(t.ol,{start:"0",children:["\n",(0,s.jsxs)(t.li,{children:["\n",(0,s.jsxs)(t.p,{children:["Install the required dependencies via your package manager of choice. The necessary dependencies are ",(0,s.jsx)(t.code,{children:"nasm"}),", ",(0,s.jsx)(t.code,{children:"ninja-build"}),", ",(0,s.jsx)(t.code,{children:"doxygen"}),", & ",(0,s.jsx)(t.code,{children:"xxd"}),"."]}),"\n"]}),"\n",(0,s.jsxs)(t.li,{children:["\n",(0,s.jsx)(t.p,{children:"Clone the repository & enter the corresponding directory"}),"\n"]}),"\n"]}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Clone & Enter"',children:"git clone https://github.com/Netflix/vmaf/\ncd vmaf/\n"})}),(0,s.jsxs)(t.ol,{start:"2",children:["\n",(0,s.jsxs)(t.li,{children:["Compile with ",(0,s.jsx)(t.code,{children:"meson"})," & ",(0,s.jsx)(t.code,{children:"ninja"})]}),"\n"]}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:"meson setup libvmaf libvmaf/build --buildtype release -Denable_float=true\nsudo ninja -vC libvmaf/build install\n"})}),(0,s.jsx)(t.p,{children:"Now, you can run the VMAF binary with the following command:"}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:"vmaf --help\n"})}),(0,s.jsxs)(t.p,{children:["If you would not like to build from source, you may grab the latest build from the VMAF ",(0,s.jsx)(t.a,{href:"https://github.com/Netflix/vmaf/releases",children:"GitHub releases"})," for your operating system."]}),(0,s.jsx)(t.p,{children:"Now, you can:"}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:"/path/to/vmaf --reference refrence.y4m --distorted distorted.y4m\n"})}),(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"Tip:"})," If the VMAF binary exists but is not market as executable, you might need to ",(0,s.jsx)(t.code,{children:"chmod +x /path/to/vmaf"})]}),(0,s.jsxs)(t.p,{children:["Explainer on command line flags can be found ",(0,s.jsx)(t.a,{href:"https://github.com/Netflix/vmaf/blob/master/libvmaf/tools/README.md",children:"here"})]}),(0,s.jsx)(t.p,{children:"The disadvantage of using the bin is that you need .yuv|y4m files, you can that overcome by using named pipes\nSimple example using ffmpeg as a decoder:"}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:"# create the pipes\nmkfifo ref.pipe\nmkfido dist.pipe\n\n# run these each in a new terminal, order docent matter\nffmpeg -v error -i ref.mkv -strict -1 -f yuv4mpegpipe - > ref.pipe\nffmpeg -v error -i dist.mkv -strict -1 -f yuv4mpegpipe - > dist.pipe\n\n# after starting the two ffmpeg processes,\n# start the vmaf in a new terminal\n/path/to/vmaf --reference ref.pipe --distorted dist.pipe\n\n# delete the pipes after usage\nrm ref.pipe dist.pipe\n"})}),(0,s.jsx)(t.p,{children:"The Advantages of this are:"}),(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:["No need for a ffmpeg build with ",(0,s.jsx)(t.code,{children:"--enable-libvmaf"})]}),"\n",(0,s.jsxs)(t.li,{children:["Clear & simple usage of VMAF's various options, like ",(0,s.jsx)(t.code,{children:"--aom_ctc"})]}),"\n"]}),(0,s.jsx)(t.p,{children:"Disadvantages are:"}),(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:"Difficult/awkward to use without a wrapper script"}),"\n"]})]}),(0,s.jsxs)(o.A,{value:"ffmpegfilter",label:"FFmpeg Filter",children:[(0,s.jsxs)(t.p,{children:["If you are not sure if you have VMAF installed, you can check by running ",(0,s.jsx)(t.code,{children:"ffmpeg -help"})," and looking for whether or not the ",(0,s.jsx)(t.code,{children:"--enable-libvmaf"})," flag appears in the banner that is printed to the terminal. If you do not see this, you will need to build ffmpeg from source with the ",(0,s.jsx)(t.code,{children:"--enable-libvmaf"})," flag or grab a pre-compiled build of FFmpeg with the flag enabled."]}),(0,s.jsx)(t.p,{children:(0,s.jsxs)(t.em,{children:["Via the ",(0,s.jsx)(t.a,{href:"https://github.com/Netflix/vmaf/blob/master/resource/doc/ffmpeg.md",children:"VMAF github repo"}),":"]})}),(0,s.jsx)(t.h2,{id:"using-vmaf-with-ffmpeg",children:"Using VMAF with FFmpeg"}),(0,s.jsxs)(t.p,{children:["After installing ",(0,s.jsx)(t.code,{children:"libvmaf"}),", you can use it with ",(0,s.jsx)(t.a,{href:"http://ffmpeg.org/",children:"FFmpeg"}),". Under the FFmpeg directory, configure, build and install FFmpeg with:"]}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-shell",metastring:"script",children:"./configure --enable-libvmaf\nmake -j4\nmake install\n"})}),(0,s.jsxs)(t.p,{children:["Using FFmpeg+libvmaf is very powerful, as you can create complex filters to calculate VMAF directly on videos of different encoding formats and resolutions. For the best practices of computing VMAF at the right resolution, refer to our ",(0,s.jsx)(t.a,{href:"https://medium.com/netflix-techblog/vmaf-the-journey-continues-44b51ee9ed12",children:"tech blog"}),"."]}),(0,s.jsxs)(t.p,{children:["We provide a few examples how you can construct the FFmpeg command line and use VMAF as a filter. Note that you may need to download the test videos from ",(0,s.jsx)(t.a,{href:"https://github.com/Netflix/vmaf_resource/tree/master/python/test/resource",children:"vmaf_resource"}),"."]}),(0,s.jsxs)(t.p,{children:["Below is an example on how you can run FFmpeg+libvmaf on a pair of YUV files. First, download the reference video ",(0,s.jsx)(t.a,{href:"https://github.com/Netflix/vmaf_resource/blob/master/python/test/resource/yuv/src01_hrc00_576x324.yuv",children:(0,s.jsx)(t.code,{children:"src01_hrc00_576x324.yuv"})})," and the distorted video ",(0,s.jsx)(t.a,{href:"https://github.com/Netflix/vmaf_resource/blob/master/python/test/resource/yuv/src01_hrc01_576x324.yuv",children:(0,s.jsx)(t.code,{children:"src01_hrc01_576x324.yuv"})}),". ",(0,s.jsx)(t.code,{children:"-r 24"})," sets the frame rate (note that it needs to be before ",(0,s.jsx)(t.code,{children:"-i"}),"), and ",(0,s.jsx)(t.code,{children:"PTS-STARTPTS"})," synchronizes the PTS (presentation timestamp) of the two videos (this is crucial if one of your videos does not start at PTS 0, for example, if you cut your video out of a long video stream). It is important to set the frame rate and the PTS right, since FFmpeg filters synchronize based on timestamps instead of frames."]}),(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.code,{children:"log_path"})," is set to standard output ",(0,s.jsx)(t.code,{children:"/dev/stdout"}),". It uses the ",(0,s.jsx)(t.code,{children:"model_path"})," at location ",(0,s.jsx)(t.code,{children:"/usr/local/share/model/vmaf_float_v0.6.1.json"})," (which is the default and can be omitted)."]}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-shell",metastring:"script",children:'ffmpeg -video_size 576x324 -r 24 -pixel_format yuv420p -i src01_hrc00_576x324.yuv \\\n -video_size 576x324 -r 24 -pixel_format yuv420p -i src01_hrc01_576x324.yuv \\\n -lavfi "[0:v]setpts=PTS-STARTPTS[reference]; \\\n [1:v]setpts=PTS-STARTPTS[distorted]; \\\n [distorted][reference]libvmaf=log_fmt=xml:log_path=/dev/stdout:model_path={your_vmaf_dir}/model/vmaf_v0.6.1.json:n_threads=4" \\\n -f null -\n'})}),(0,s.jsx)(t.p,{children:"The expected output is:"}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-shell",metastring:"script",children:"[libvmaf @ 0x7fcfa3403980] VMAF score: 76.668905\n"})}),(0,s.jsxs)(t.p,{children:["Below is a more complicated example where the inputs are packaged ",(0,s.jsx)(t.code,{children:".mp4"})," files. It takes in 1) a reference video ",(0,s.jsx)(t.a,{href:"https://github.com/Netflix/vmaf_resource/blob/master/python/test/resource/mp4/Seeking_30_480_1050.mp4",children:(0,s.jsx)(t.code,{children:"Seeking_30_480_1050.mp4"})})," of 480p and 2) a distorted video ",(0,s.jsx)(t.a,{href:"https://github.com/Netflix/vmaf_resource/blob/master/python/test/resource/mp4/Seeking_10_288_375.mp4",children:(0,s.jsx)(t.code,{children:"Seeking_10_288_375.mp4"})})," of 288p upsampled to ",(0,s.jsx)(t.code,{children:"720x480"})," using bicubic, and compute VMAF on the two 480p videos. Bicubic is used as the recommended upsampling method (also see the ",(0,s.jsx)(t.a,{href:"https://medium.com/netflix-techblog/vmaf-the-journey-continues-44b51ee9ed12",children:"techblog"})," for more details)."]}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-shell",metastring:"script",children:'ffmpeg \\\n -r 24 -i Seeking_30_480_1050.mp4 \\\n -r 24 -i Seeking_10_288_375.mp4 \\\n -lavfi "[0:v]setpts=PTS-STARTPTS[reference]; \\\n [1:v]scale=720:480:flags=bicubic,setpts=PTS-STARTPTS[distorted]; \\\n [distorted][reference]libvmaf=log_fmt=xml:log_path=/dev/stdout:model_path={your_vmaf_dir}/model/vmaf_v0.6.1.json:n_threads=4" \\\n -f null -\n'})}),(0,s.jsx)(t.p,{children:"The expected output is:"}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-shell",metastring:"script",children:"[libvmaf @ 0x7fb5b672bc00] VMAF score: 51.017497\n"})}),(0,s.jsxs)(t.p,{children:["See the ",(0,s.jsx)(t.a,{href:"https://ffmpeg.org/ffmpeg-filters.html#libvmaf",children:"FFmpeg's guide to libvmaf"}),", the ",(0,s.jsx)(t.a,{href:"https://trac.ffmpeg.org/wiki/FilteringGuide",children:"FFmpeg Filtering Guide"})," for more examples of complex filters, and the ",(0,s.jsx)(t.a,{href:"https://trac.ffmpeg.org/wiki/Scaling",children:"Scaling Guide"})," for information about scaling and using different scaling algorithms."]}),(0,s.jsx)(t.h3,{id:"note-about-the-model-path-on-windows",children:"Note about the model path on Windows"}),(0,s.jsxs)(t.p,{children:["Due to Windows not having a good default for where to pull the VMAF model from, you will always need to specify ",(0,s.jsx)(t.code,{children:"model_path"})," when calling libvmaf through ",(0,s.jsx)(t.code,{children:"ffmpeg"}),". However, you will need to be careful about the path you pass to ",(0,s.jsx)(t.code,{children:"model_path"}),"."]}),(0,s.jsxs)(t.p,{children:["If you are using a relative path for your ",(0,s.jsx)(t.code,{children:"model_path"}),", you can completely ignore this whole section, else if you are trying to use an absolute Windows path (",(0,s.jsx)(t.code,{children:"D:\\mypath\\vmaf_v0.6.1.json"}),") for your ",(0,s.jsx)(t.code,{children:"model_path"})," argument, you will need to be careful so ",(0,s.jsx)(t.code,{children:"ffmpeg"})," passes the right path to ",(0,s.jsx)(t.code,{children:"libvmaf"}),"."]}),(0,s.jsxs)(t.p,{children:["The final command line will depend on what shell you are running ",(0,s.jsx)(t.code,{children:"ffmpeg"})," through, so you will need to go through the following steps to make sure your path is okay."]}),(0,s.jsxs)(t.ol,{children:["\n",(0,s.jsxs)(t.li,{children:["\n",(0,s.jsxs)(t.p,{children:["Convert all of the backslashes ",(0,s.jsx)(t.code,{children:"\\"})," to forward slashes ",(0,s.jsx)(t.code,{children:"/"})," (",(0,s.jsx)(t.code,{children:"D:/mypath/vmaf_v0.6.1.json"}),")"]}),"\n"]}),"\n",(0,s.jsxs)(t.li,{children:["\n",(0,s.jsxs)(t.p,{children:["Escape the colon ",(0,s.jsx)(t.code,{children:":"})," character by using a backslash ",(0,s.jsx)(t.code,{children:"\\"})," (",(0,s.jsx)(t.code,{children:"D\\:/mypath/vmaf_v0.6.1.json"}),")"]}),"\n"]}),"\n",(0,s.jsxs)(t.li,{children:["\n",(0,s.jsxs)(t.p,{children:["Then escape that backslash with another backslash (",(0,s.jsx)(t.code,{children:"D\\\\:/mypath/vmaf_v0.6.1.json"}),")"]}),"\n"]}),"\n",(0,s.jsxs)(t.li,{children:["\n",(0,s.jsxs)(t.p,{children:["The next step will depend on the shell that will run ",(0,s.jsx)(t.code,{children:"ffmpeg"}),":"]}),"\n",(0,s.jsxs)(t.p,{children:["For PowerShell and Command Prompt, this will be enough and your final ",(0,s.jsx)(t.code,{children:"ffmpeg"})," command line will look something like"]}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-powershell",children:'./ffmpeg.exe -i dist.y4m -i ref.y4m \\\n -lavfi libvmaf=model_path="D\\\\:/mypath/vmaf_v0.6.1.json" \\\n -f null -\n'})}),"\n",(0,s.jsx)(t.admonition,{title:"Quoting the path",type:"info",children:(0,s.jsxs)(t.p,{children:["Note: I only quoted the path part for trivial reasons and in this specific case, it can be unquoted or you can quote the whole part after lavfi starting from ",(0,s.jsx)(t.code,{children:"libvmaf"})," to ",(0,s.jsx)(t.code,{children:"json"})," and it should give the same result due to neither shell treating the ",(0,s.jsx)(t.code,{children:"\\"})," as a special character"]})}),"\n",(0,s.jsxs)(t.p,{children:["For bash or specifically msys2 bash, it has some additional considerations. The first thing to know is that bash treats the backslash character ",(0,s.jsx)(t.code,{children:"\\"})," a bit special in that it's an escape character normally when not put inside single quotes. The second thing to know is that msys2's bash attempts convert a posix-like path (",(0,s.jsx)(t.code,{children:"/mingw64/share/model/vmaf_v0.6.1.json"}),") to a Windows mixed path (",(0,s.jsx)(t.code,{children:"D:/msys2/mingw64/share/model/vmaf_v0.6.1.json"}),") when passing arguments to a program. Normally, this would be fine, however, in our case, this works against us since we cannot allow it to convert the path to a normal path with an un-escaped colon. For this, we will need to not only escape the escaped backslash, but we will also need to pass the ",(0,s.jsx)(t.code,{children:"MSYS2_ARG_CONV_EXCL"})," environment variable with the value of ",(0,s.jsx)(t.code,{children:"*"})," to make sure it doesn't apply that special conversion on any of the arguments"]}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:'MSYS2_ARG_CONV_EXCL="*" \\\n ./ffmpeg.exe -i dist.y4m -i ref.y4m -lavfi \\\n libvmaf=model_path="D\\\\\\:/mypath/vmaf_v0.6.1.json" -f null -\n'})}),"\n",(0,s.jsx)(t.admonition,{title:"Quotes",type:"info",children:(0,s.jsx)(t.p,{children:"Note: in this case, the quotes are not as trivial as the PowerShell/cmd version, as removing the quotes entirely will require you to re-escape the backslash resulting in 4 total backslashes, but quoting the whole argument will be fine."})}),"\n",(0,s.jsxs)(t.admonition,{title:"Single Quotes",type:"note",children:[(0,s.jsx)(t.p,{children:"Second Note: if you use single quotes around the path, it will be fine as well and the final command line would look like"}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:"MSYS2_ARG_CONV_EXCL=\"*\" \\\n ./ffmpeg.exe -i dist.y4m -i ref.y4m -lavfi \\\n libvmaf=model_path='D\\\\:/mypath/vmaf_v0.6.1.json' -f null -\n"})}),(0,s.jsx)(t.p,{children:"with only a double backslash instead of a triple."})]}),"\n"]}),"\n"]})]})]}),"\n",(0,s.jsx)(t.h2,{id:"scoring",children:"Scoring"}),"\n",(0,s.jsxs)(t.p,{children:["scores range from 0 to 100, and are best interpreted in a linear way,\n100 meaning perfect quality, 0 meaning not recognisable,\nmore info ",(0,s.jsx)(t.a,{href:"https://netflixtechblog.com/vmaf-the-journey-continues-44b51ee9ed12",children:"in the Best Practices section here"}),"\nIt aligns with mean opinion scores (MOS) really well at low/medium bitrates,\nas stated ",(0,s.jsx)(t.a,{href:"https://videoprocessing.ai/benchmarks/video-quality-metrics_both.html",children:"in this benchmark"})]}),"\n",(0,s.jsx)(t.h2,{id:"some-weaknesses",children:"Some weaknesses"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:"Newer codecs like AV1 and VVC introduce new kinds of artifacting that v0.6.2\n(current model as of Jan 2024) doesn't recognise,\nthat's why its performance might degrade, for example, high motion scenes being affected badly"}),"\n",(0,s.jsx)(t.li,{children:'It\'s bad at "transparent" levels of quality, kinds of quality that the average viewer might not notice'}),"\n",(0,s.jsx)(t.li,{children:"Synthetic grain throws off scores, this issue is not isolated to vmaf, but it should be noted regardless"}),"\n"]}),"\n",(0,s.jsx)(t.admonition,{title:"With ffmpeg you can disable application of synthetic grain",type:"tip",children:(0,s.jsxs)(t.p,{children:["place ",(0,s.jsx)(t.code,{children:"-filmgrain 0"})," before ",(0,s.jsx)(t.code,{children:"-i"})," in the above ffmpeg commands, limited to decoding with dav1d\nTODO: replace this tip with an export_side_data solution"]})}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:"As of January 2024, it doesn't work on HDR content, nothing prevents you from feeding it un-tonemapped PQ but scores will be off"}),"\n",(0,s.jsx)(t.li,{children:"In contrast with SSIMULACRA2, it focuses on appeal, not necessarily on fidelity. They often align, but not always."}),"\n",(0,s.jsx)(t.li,{children:"Due to the ML nature, comparing the same video to itself will not always result in a score of 100"}),"\n"]}),"\n",(0,s.jsx)(t.h3,{id:"comparing-to-ssimulacra2",children:"Comparing to SSIMULACRA2"}),"\n",(0,s.jsx)(t.p,{children:"One big advantage over SSIMULACRA2 is the inclusion of some temporal information.\nThis means that VMAF weights frames that have a lot of motion higher.\nMeanwhile, SSIMULACRA2 based solutions compare each frame to the reference frame individually, since it is an image\nmetric at heart.\nVMAF also wins in speed and general ease of use."}),"\n",(0,s.jsx)(t.h1,{id:"additional-resources",children:"Additional resources"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.a,{href:"https://github.com/Netflix/vmaf/tree/master/resource/doc",children:"VMAF Documentation on GitHub"})}),"\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.a,{href:"https://netflixtechblog.com/vmaf-the-journey-continues-44b51ee9ed12",children:"Medium Article by Netflix"})}),"\n"]})]})}function m(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},9365:(e,t,n)=>{n.d(t,{A:()=>a});n(6540);var i=n(4164);const s={tabItem:"tabItem_Ymn6"};var r=n(4848);function a(e){let{children:t,hidden:n,className:a}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,i.A)(s.tabItem,a),hidden:n,children:t})}},1470:(e,t,n)=>{n.d(t,{A:()=>w});var i=n(6540),s=n(4164),r=n(3104),a=n(6347),o=n(205),l=n(7485),c=n(1682),d=n(679);function h(e){return i.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,i.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:t,children:n}=e;return(0,i.useMemo)((()=>{const e=t??function(e){return h(e).map((e=>{let{props:{value:t,label:n,attributes:i,default:s}}=e;return{value:t,label:n,attributes:i,default:s}}))}(n);return function(e){const t=(0,c.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,n])}function m(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function f(e){let{queryString:t=!1,groupId:n}=e;const s=(0,a.W6)(),r=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,l.aZ)(r),(0,i.useCallback)((e=>{if(!r)return;const t=new URLSearchParams(s.location.search);t.set(r,e),s.replace({...s.location,search:t.toString()})}),[r,s])]}function p(e){const{defaultValue:t,queryString:n=!1,groupId:s}=e,r=u(e),[a,l]=(0,i.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!m({value:t,tabValues:n}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const i=n.find((e=>e.default))??n[0];if(!i)throw new Error("Unexpected error: 0 tabValues");return i.value}({defaultValue:t,tabValues:r}))),[c,h]=f({queryString:n,groupId:s}),[p,g]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,r]=(0,d.Dv)(n);return[s,(0,i.useCallback)((e=>{n&&r.set(e)}),[n,r])]}({groupId:s}),x=(()=>{const e=c??p;return m({value:e,tabValues:r})?e:null})();(0,o.A)((()=>{x&&l(x)}),[x]);return{selectedValue:a,selectValue:(0,i.useCallback)((e=>{if(!m({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);l(e),h(e),g(e)}),[h,g,r]),tabValues:r}}var g=n(2303);const x={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var b=n(4848);function j(e){let{className:t,block:n,selectedValue:i,selectValue:a,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,r.a_)(),d=e=>{const t=e.currentTarget,n=l.indexOf(t),s=o[n].value;s!==i&&(c(t),a(s))},h=e=>{let t=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const n=l.indexOf(e.currentTarget)+1;t=l[n]??l[0];break}case"ArrowLeft":{const n=l.indexOf(e.currentTarget)-1;t=l[n]??l[l.length-1];break}}t?.focus()};return(0,b.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.A)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:r}=e;return(0,b.jsx)("li",{role:"tab",tabIndex:i===t?0:-1,"aria-selected":i===t,ref:e=>l.push(e),onKeyDown:h,onClick:d,...r,className:(0,s.A)("tabs__item",x.tabItem,r?.className,{"tabs__item--active":i===t}),children:n??t},t)}))})}function v(e){let{lazy:t,children:n,selectedValue:r}=e;const a=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===r));return e?(0,i.cloneElement)(e,{className:(0,s.A)("margin-top--md",e.props.className)}):null}return(0,b.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,i.cloneElement)(e,{key:t,hidden:e.props.value!==r})))})}function y(e){const t=p(e);return(0,b.jsxs)("div",{className:(0,s.A)("tabs-container",x.tabList),children:[(0,b.jsx)(j,{...t,...e}),(0,b.jsx)(v,{...t,...e})]})}function w(e){const t=(0,g.A)();return(0,b.jsx)(y,{...e,children:h(e.children)},String(t))}},8453:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>o});var i=n(6540);const s={},r=i.createContext(s);function a(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d96727fd.0433b868.js b/assets/js/d96727fd.0433b868.js new file mode 100644 index 000000000..8e5d39c97 --- /dev/null +++ b/assets/js/d96727fd.0433b868.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1500],{627:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>h,frontMatter:()=>r,metadata:()=>t,toc:()=>o});const t=JSON.parse('{"id":"colorimetry/matrix","title":"Matrix Coefficients","description":"Matrix coefficients represent the multiplication matrix that is used when","source":"@site/docs/colorimetry/matrix.mdx","sourceDirName":"colorimetry","slug":"/colorimetry/matrix","permalink":"/docs/colorimetry/matrix","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/colorimetry/matrix.mdx","tags":[],"version":"current","sidebarPosition":6,"frontMatter":{"title":"Matrix Coefficients","sidebar_position":6},"sidebar":"tutorialSidebar","previous":{"title":"Transfer Characteristics","permalink":"/docs/colorimetry/transfer"},"next":{"title":"Aviator","permalink":"/docs/utilities/Aviator"}}');var s=i(4848),a=i(8453);const r={title:"Matrix Coefficients",sidebar_position:6},l="Matrix Coefficients",c={},o=[{value:"0: Identity",id:"0-identity",level:3},{value:"1: BT.709",id:"1-bt709",level:3},{value:"2: Unspecified",id:"2-unspecified",level:3},{value:"4: BT.470M",id:"4-bt470m",level:3},{value:"5: BT.470BG",id:"5-bt470bg",level:3},{value:"6: SMPTE 170M",id:"6-smpte-170m",level:3},{value:"7: SMPTE 240M",id:"7-smpte-240m",level:3},{value:"8: YCgCo",id:"8-ycgco",level:3},{value:"9: BT.2020 Non-Constant Luminance",id:"9-bt2020-non-constant-luminance",level:3},{value:"10: BT.2020 Constant Luminance",id:"10-bt2020-constant-luminance",level:3},{value:"11: SMPTE 2085",id:"11-smpte-2085",level:3},{value:"12: Chromaticity-Derived Non-Constant Luminance",id:"12-chromaticity-derived-non-constant-luminance",level:3},{value:"13: Chromaticity-Derived Constant Luminance",id:"13-chromaticity-derived-constant-luminance",level:3},{value:"14: ICtCp",id:"14-ictcp",level:3}];function d(e){const n={code:"code",h1:"h1",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"matrix-coefficients",children:"Matrix Coefficients"})}),"\n",(0,s.jsx)(n.p,{children:"Matrix coefficients represent the multiplication matrix that is used when\nconverting from YUV to RGB. As with primaries, the integer values are defined\nwithin universal specifications, and as such they will be the same across all\nencoding and playback tools."}),"\n",(0,s.jsx)(n.p,{children:"The following values are available:"}),"\n",(0,s.jsx)(n.h3,{id:"0-identity",children:"0: Identity"}),"\n",(0,s.jsx)(n.p,{children:"Specifies that the identity matrix should be used, i.e. this data is already in an RGB-compatible colorspace."}),"\n",(0,s.jsx)(n.p,{children:"This matrix coefficient setting is used in the following standards:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"GBR (often referred to as RGB)"}),"\n",(0,s.jsx)(n.li,{children:"YZX (often referred to as XYZ)"}),"\n",(0,s.jsx)(n.li,{children:"IEC 61966-2-1 sRGB"}),"\n",(0,s.jsx)(n.li,{children:"SMPTE ST 428-1 (2019)"}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"1-bt709",children:"1: BT.709"}),"\n",(0,s.jsx)(n.p,{children:"BT.709 is the standard used for modern high-definition video, and is a safe default assumption."}),"\n",(0,s.jsx)(n.p,{children:"This matrix coefficient setting is used in the following standards:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Rec. ITU-R BT.709-6"}),"\n",(0,s.jsx)(n.li,{children:"Rec. ITU-R BT.1361-0 conventional colour gamut system and extended colour\ngamut system (historical)"}),"\n",(0,s.jsx)(n.li,{children:"IEC 61966-2-4 xvYCC709"}),"\n",(0,s.jsx)(n.li,{children:"SMPTE RP 177 (1993) Annex B"}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"2-unspecified",children:"2: Unspecified"}),"\n",(0,s.jsx)(n.p,{children:"This value indicates that no color matrix is set for the video, and the player must decide which value to use."}),"\n",(0,s.jsx)(n.p,{children:"mpv will use the following heuristics in this case:"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{children:'if width >= 1280 || height > 576 {\n "BT.709"\n} else {\n "SMPTE 170M"\n}\n'})}),"\n",(0,s.jsx)(n.h3,{id:"4-bt470m",children:"4: BT.470M"}),"\n",(0,s.jsx)(n.p,{children:"BT.470M is a standard that was used in analog television systems in the United States."}),"\n",(0,s.jsx)(n.h3,{id:"5-bt470bg",children:"5: BT.470BG"}),"\n",(0,s.jsx)(n.p,{children:"BT.470BG is a standard that was used for European (PAL) television systems and DVDs."}),"\n",(0,s.jsx)(n.p,{children:"This matrix coefficient setting is used in the following standards:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Rec. ITU-R BT.470-6 System B, G (historical)"}),"\n",(0,s.jsx)(n.li,{children:"Rec. ITU-R BT.601-7 625"}),"\n",(0,s.jsx)(n.li,{children:"Rec. ITU-R BT.1358-0 625 (historical)"}),"\n",(0,s.jsx)(n.li,{children:"Rec. ITU-R BT.1700-0 625 PAL and 625 SECAM"}),"\n",(0,s.jsx)(n.li,{children:"IEC 61966-2-1 sYCC"}),"\n",(0,s.jsx)(n.li,{children:"IEC 61966-2-4 xvYCC601"}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"6-smpte-170m",children:"6: SMPTE 170M"}),"\n",(0,s.jsx)(n.p,{children:"SMPTE 170M is a stanrard that was used for NTSC television systems and DVDs. Its matrix coefficients are equivalent to BT.470BG."}),"\n",(0,s.jsx)(n.p,{children:"This matrix coefficient setting is used in the following standards:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Rec. ITU-R BT.601-7 525"}),"\n",(0,s.jsx)(n.li,{children:"Rec. ITU-R BT.1358-1 525 or 625 (historical)"}),"\n",(0,s.jsx)(n.li,{children:"Rec. ITU-R BT.1700-0 NTSC"}),"\n",(0,s.jsx)(n.li,{children:"SMPTE ST 170 (2004)"}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"7-smpte-240m",children:"7: SMPTE 240M"}),"\n",(0,s.jsx)(n.p,{children:"SMPTE 240M was an interim standard used during the early days of HDTV (1988-1998)."}),"\n",(0,s.jsx)(n.h3,{id:"8-ycgco",children:"8: YCgCo"}),"\n",(0,s.jsx)(n.p,{children:"The YCoCg color model, also known as the YCgCo color model,\nis the color space formed from a simple transformation of\nan associated RGB color space into a luma value and\ntwo chroma values called chrominance green and chrominance orange."}),"\n",(0,s.jsx)(n.h3,{id:"9-bt2020-non-constant-luminance",children:"9: BT.2020 Non-Constant Luminance"}),"\n",(0,s.jsx)(n.p,{children:"BT.2020 is a standard used for ultra-high-definition video, i.e. 4K and higher. It may be used with or without HDR, as HDR is defined by the transfer characteristics. If you do not know if you want non-constant or constant luminance, you probably want non-constant."}),"\n",(0,s.jsx)(n.p,{children:"This matrix coefficient setting is used in the following standards:"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"Rec. ITU-R BT.2020-2 (non-constant luminance)"}),"\n",(0,s.jsx)(n.li,{children:"Rec. ITU-R BT.2100-2 Y\u2032CbCr"}),"\n"]}),"\n",(0,s.jsx)(n.h3,{id:"10-bt2020-constant-luminance",children:"10: BT.2020 Constant Luminance"}),"\n",(0,s.jsx)(n.p,{children:"This is a variant of BT.2020 with constant luminance values, represented using the YcCbcCrc colorspace. You probably want the non-constant luminance variant instead, unless you know you want this one."}),"\n",(0,s.jsx)(n.h3,{id:"11-smpte-2085",children:"11: SMPTE 2085"}),"\n",(0,s.jsx)(n.p,{children:"SMPTE 2085 is a standard used with HDR signals in the XYZ colorspace. I've never actually seen it used in the wild."}),"\n",(0,s.jsx)(n.h3,{id:"12-chromaticity-derived-non-constant-luminance",children:"12: Chromaticity-Derived Non-Constant Luminance"}),"\n",(0,s.jsx)(n.p,{children:"I'm not really sure when you would use this."}),"\n",(0,s.jsx)(n.h3,{id:"13-chromaticity-derived-constant-luminance",children:"13: Chromaticity-Derived Constant Luminance"}),"\n",(0,s.jsx)(n.p,{children:"I'm not really sure when you would use this."}),"\n",(0,s.jsx)(n.h3,{id:"14-ictcp",children:"14: ICtCp"}),"\n",(0,s.jsx)(n.p,{children:"ICtCp is an alternative colorspace developed for use with HDR and wide gamut video, by Dolby because they love doing extra stuff like this. I've never actually seen it used in the wild."})]})}function h(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>l});var t=i(6540);const s={},a=t.createContext(s);function r(e){const n=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),t.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d96727fd.3aace257.js b/assets/js/d96727fd.3aace257.js deleted file mode 100644 index 5e25601e0..000000000 --- a/assets/js/d96727fd.3aace257.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1500],{8566:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>a,metadata:()=>l,toc:()=>o});var t=i(4848),s=i(8453);const a={title:"Matrix Coefficients",sidebar_position:6},r="Matrix Coefficients",l={id:"colorimetry/matrix",title:"Matrix Coefficients",description:"Matrix coefficients represent the multiplication matrix that is used when",source:"@site/docs/colorimetry/matrix.mdx",sourceDirName:"colorimetry",slug:"/colorimetry/matrix",permalink:"/docs/colorimetry/matrix",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/colorimetry/matrix.mdx",tags:[],version:"current",sidebarPosition:6,frontMatter:{title:"Matrix Coefficients",sidebar_position:6},sidebar:"tutorialSidebar",previous:{title:"Transfer Characteristics",permalink:"/docs/colorimetry/transfer"},next:{title:"Aviator",permalink:"/docs/utilities/Aviator"}},c={},o=[{value:"0: Identity",id:"0-identity",level:3},{value:"1: BT.709",id:"1-bt709",level:3},{value:"2: Unspecified",id:"2-unspecified",level:3},{value:"4: BT.470M",id:"4-bt470m",level:3},{value:"5: BT.470BG",id:"5-bt470bg",level:3},{value:"6: SMPTE 170M",id:"6-smpte-170m",level:3},{value:"7: SMPTE 240M",id:"7-smpte-240m",level:3},{value:"8: YCgCo",id:"8-ycgco",level:3},{value:"9: BT.2020 Non-Constant Luminance",id:"9-bt2020-non-constant-luminance",level:3},{value:"10: BT.2020 Constant Luminance",id:"10-bt2020-constant-luminance",level:3},{value:"11: SMPTE 2085",id:"11-smpte-2085",level:3},{value:"12: Chromaticity-Derived Non-Constant Luminance",id:"12-chromaticity-derived-non-constant-luminance",level:3},{value:"13: Chromaticity-Derived Constant Luminance",id:"13-chromaticity-derived-constant-luminance",level:3},{value:"14: ICtCp",id:"14-ictcp",level:3}];function d(e){const n={code:"code",h1:"h1",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"matrix-coefficients",children:"Matrix Coefficients"})}),"\n",(0,t.jsx)(n.p,{children:"Matrix coefficients represent the multiplication matrix that is used when\nconverting from YUV to RGB. As with primaries, the integer values are defined\nwithin universal specifications, and as such they will be the same across all\nencoding and playback tools."}),"\n",(0,t.jsx)(n.p,{children:"The following values are available:"}),"\n",(0,t.jsx)(n.h3,{id:"0-identity",children:"0: Identity"}),"\n",(0,t.jsx)(n.p,{children:"Specifies that the identity matrix should be used, i.e. this data is already in an RGB-compatible colorspace."}),"\n",(0,t.jsx)(n.p,{children:"This matrix coefficient setting is used in the following standards:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"GBR (often referred to as RGB)"}),"\n",(0,t.jsx)(n.li,{children:"YZX (often referred to as XYZ)"}),"\n",(0,t.jsx)(n.li,{children:"IEC 61966-2-1 sRGB"}),"\n",(0,t.jsx)(n.li,{children:"SMPTE ST 428-1 (2019)"}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"1-bt709",children:"1: BT.709"}),"\n",(0,t.jsx)(n.p,{children:"BT.709 is the standard used for modern high-definition video, and is a safe default assumption."}),"\n",(0,t.jsx)(n.p,{children:"This matrix coefficient setting is used in the following standards:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Rec. ITU-R BT.709-6"}),"\n",(0,t.jsx)(n.li,{children:"Rec. ITU-R BT.1361-0 conventional colour gamut system and extended colour\ngamut system (historical)"}),"\n",(0,t.jsx)(n.li,{children:"IEC 61966-2-4 xvYCC709"}),"\n",(0,t.jsx)(n.li,{children:"SMPTE RP 177 (1993) Annex B"}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"2-unspecified",children:"2: Unspecified"}),"\n",(0,t.jsx)(n.p,{children:"This value indicates that no color matrix is set for the video, and the player must decide which value to use."}),"\n",(0,t.jsx)(n.p,{children:"mpv will use the following heuristics in this case:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{children:'if width >= 1280 || height > 576 {\n "BT.709"\n} else {\n "SMPTE 170M"\n}\n'})}),"\n",(0,t.jsx)(n.h3,{id:"4-bt470m",children:"4: BT.470M"}),"\n",(0,t.jsx)(n.p,{children:"BT.470M is a standard that was used in analog television systems in the United States."}),"\n",(0,t.jsx)(n.h3,{id:"5-bt470bg",children:"5: BT.470BG"}),"\n",(0,t.jsx)(n.p,{children:"BT.470BG is a standard that was used for European (PAL) television systems and DVDs."}),"\n",(0,t.jsx)(n.p,{children:"This matrix coefficient setting is used in the following standards:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Rec. ITU-R BT.470-6 System B, G (historical)"}),"\n",(0,t.jsx)(n.li,{children:"Rec. ITU-R BT.601-7 625"}),"\n",(0,t.jsx)(n.li,{children:"Rec. ITU-R BT.1358-0 625 (historical)"}),"\n",(0,t.jsx)(n.li,{children:"Rec. ITU-R BT.1700-0 625 PAL and 625 SECAM"}),"\n",(0,t.jsx)(n.li,{children:"IEC 61966-2-1 sYCC"}),"\n",(0,t.jsx)(n.li,{children:"IEC 61966-2-4 xvYCC601"}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"6-smpte-170m",children:"6: SMPTE 170M"}),"\n",(0,t.jsx)(n.p,{children:"SMPTE 170M is a stanrard that was used for NTSC television systems and DVDs. Its matrix coefficients are equivalent to BT.470BG."}),"\n",(0,t.jsx)(n.p,{children:"This matrix coefficient setting is used in the following standards:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Rec. ITU-R BT.601-7 525"}),"\n",(0,t.jsx)(n.li,{children:"Rec. ITU-R BT.1358-1 525 or 625 (historical)"}),"\n",(0,t.jsx)(n.li,{children:"Rec. ITU-R BT.1700-0 NTSC"}),"\n",(0,t.jsx)(n.li,{children:"SMPTE ST 170 (2004)"}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"7-smpte-240m",children:"7: SMPTE 240M"}),"\n",(0,t.jsx)(n.p,{children:"SMPTE 240M was an interim standard used during the early days of HDTV (1988-1998)."}),"\n",(0,t.jsx)(n.h3,{id:"8-ycgco",children:"8: YCgCo"}),"\n",(0,t.jsx)(n.p,{children:"The YCoCg color model, also known as the YCgCo color model,\nis the color space formed from a simple transformation of\nan associated RGB color space into a luma value and\ntwo chroma values called chrominance green and chrominance orange."}),"\n",(0,t.jsx)(n.h3,{id:"9-bt2020-non-constant-luminance",children:"9: BT.2020 Non-Constant Luminance"}),"\n",(0,t.jsx)(n.p,{children:"BT.2020 is a standard used for ultra-high-definition video, i.e. 4K and higher. It may be used with or without HDR, as HDR is defined by the transfer characteristics. If you do not know if you want non-constant or constant luminance, you probably want non-constant."}),"\n",(0,t.jsx)(n.p,{children:"This matrix coefficient setting is used in the following standards:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"Rec. ITU-R BT.2020-2 (non-constant luminance)"}),"\n",(0,t.jsx)(n.li,{children:"Rec. ITU-R BT.2100-2 Y\u2032CbCr"}),"\n"]}),"\n",(0,t.jsx)(n.h3,{id:"10-bt2020-constant-luminance",children:"10: BT.2020 Constant Luminance"}),"\n",(0,t.jsx)(n.p,{children:"This is a variant of BT.2020 with constant luminance values, represented using the YcCbcCrc colorspace. You probably want the non-constant luminance variant instead, unless you know you want this one."}),"\n",(0,t.jsx)(n.h3,{id:"11-smpte-2085",children:"11: SMPTE 2085"}),"\n",(0,t.jsx)(n.p,{children:"SMPTE 2085 is a standard used with HDR signals in the XYZ colorspace. I've never actually seen it used in the wild."}),"\n",(0,t.jsx)(n.h3,{id:"12-chromaticity-derived-non-constant-luminance",children:"12: Chromaticity-Derived Non-Constant Luminance"}),"\n",(0,t.jsx)(n.p,{children:"I'm not really sure when you would use this."}),"\n",(0,t.jsx)(n.h3,{id:"13-chromaticity-derived-constant-luminance",children:"13: Chromaticity-Derived Constant Luminance"}),"\n",(0,t.jsx)(n.p,{children:"I'm not really sure when you would use this."}),"\n",(0,t.jsx)(n.h3,{id:"14-ictcp",children:"14: ICtCp"}),"\n",(0,t.jsx)(n.p,{children:"ICtCp is an alternative colorspace developed for use with HDR and wide gamut video, by Dolby because they love doing extra stuff like this. I've never actually seen it used in the wild."})]})}function h(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>l});var t=i(6540);const s={},a=t.createContext(s);function r(e){const n=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),t.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ddce1156.112d455b.js b/assets/js/ddce1156.112d455b.js deleted file mode 100644 index 3f0b619ab..000000000 --- a/assets/js/ddce1156.112d455b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1408],{5856:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>a,contentTitle:()=>r,default:()=>l,frontMatter:()=>s,metadata:()=>c,toc:()=>u});var o=i(4848),n=i(8453);const s={title:"MP4Box",sidebar_position:12},r="MP4Box",c={id:"utilities/mp4box",title:"MP4Box",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/utilities/mp4box.mdx",sourceDirName:"utilities",slug:"/utilities/mp4box",permalink:"/docs/utilities/mp4box",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/mp4box.mdx",tags:[],version:"current",sidebarPosition:12,frontMatter:{title:"MP4Box",sidebar_position:12},sidebar:"tutorialSidebar",previous:{title:"hdr10plus_tool",permalink:"/docs/utilities/hdr10plus_tool"},next:{title:"YUView",permalink:"/docs/utilities/YUView"}},a={},u=[];function d(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"mp4box",children:"MP4Box"})}),"\n",(0,o.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsxs)(t.p,{children:["MP4Box is a software for multi-purpose MP4 file manipulation. Part of the free and open-source multimedia framework called ",(0,o.jsx)(t.a,{href:"https://github.com/gpac/gpac",children:"GPAC"})," for working with the MP4/ISOBMFF standard."]})]})}function l(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>r,x:()=>c});var o=i(6540);const n={},s=o.createContext(n);function r(e){const t=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),o.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ddce1156.a807cbdd.js b/assets/js/ddce1156.a807cbdd.js new file mode 100644 index 000000000..0a2099c1c --- /dev/null +++ b/assets/js/ddce1156.a807cbdd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1408],{4382:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>l,frontMatter:()=>r,metadata:()=>o,toc:()=>u});const o=JSON.parse('{"id":"utilities/mp4box","title":"MP4Box","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/utilities/mp4box.mdx","sourceDirName":"utilities","slug":"/utilities/mp4box","permalink":"/docs/utilities/mp4box","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/mp4box.mdx","tags":[],"version":"current","sidebarPosition":12,"frontMatter":{"title":"MP4Box","sidebar_position":12},"sidebar":"tutorialSidebar","previous":{"title":"hdr10plus_tool","permalink":"/docs/utilities/hdr10plus_tool"},"next":{"title":"YUView","permalink":"/docs/utilities/YUView"}}');var n=i(4848),s=i(8453);const r={title:"MP4Box",sidebar_position:12},a="MP4Box",c={},u=[];function d(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"mp4box",children:"MP4Box"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(t.p,{children:["MP4Box is a software for multi-purpose MP4 file manipulation. Part of the free and open-source multimedia framework called ",(0,n.jsx)(t.a,{href:"https://github.com/gpac/gpac",children:"GPAC"})," for working with the MP4/ISOBMFF standard."]})]})}function l(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>r,x:()=>a});var o=i(6540);const n={},s=o.createContext(n);function r(e){const t=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),o.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/e157395a.207bb473.js b/assets/js/e157395a.207bb473.js new file mode 100644 index 000000000..56a08148a --- /dev/null +++ b/assets/js/e157395a.207bb473.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7967],{6620:(e,s,i)=>{i.r(s),i.d(s,{assets:()=>a,contentTitle:()=>c,default:()=>h,frontMatter:()=>r,metadata:()=>n,toc:()=>d});const n=JSON.parse('{"id":"images/HEIC","title":"HEIC","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/images/HEIC.mdx","sourceDirName":"images","slug":"/images/HEIC","permalink":"/docs/images/HEIC","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/HEIC.mdx","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"title":"HEIC","sidebar_position":4},"sidebar":"tutorialSidebar","previous":{"title":"GIF","permalink":"/docs/images/GIF"},"next":{"title":"WebP","permalink":"/docs/images/WebP"}}');var t=i(4848),o=i(8453);const r={title:"HEIC",sidebar_position:4},c="HEIC",a={},d=[{value:"Performance Checklist",id:"performance-checklist",level:2}];function l(e){const s={a:"a",admonition:"admonition",blockquote:"blockquote",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.header,{children:(0,t.jsx)(s.h1,{id:"heic",children:"HEIC"})}),"\n",(0,t.jsx)(s.admonition,{title:"Help Wanted",type:"danger",children:(0,t.jsxs)(s.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,t.jsx)(s.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,t.jsxs)(s.p,{children:["The HEIC image format, also known as the High Efficiency Image Format, is a newer image codec that was developed to provide improved compression and better performance compared to traditional image formats like ",(0,t.jsx)(s.a,{href:"/docs/images/JPEG",children:"JPEG"}),". HEIC files use ",(0,t.jsx)(s.a,{href:"/docs/video/HEVC",children:"HEVC"})," internally, meaning the format is not royalty free. While this has limited its adoption across the Web, this format is supported by many modern devices including the entire Apple ecosystem. iPhones shoot HDR HEIC photos by default by utilizing the iPhone's HEVC hardware video encoder to capture these images. Some Android phones are capable of shooting HEIC as well, but these are often transcoded from JPEG. HEIC has largely been surpassed by ",(0,t.jsx)(s.a,{href:"/docs/images/AVIF",children:"AVIF"}),", which uses the same container to store ",(0,t.jsx)(s.a,{href:"/docs/video/AV1",children:"AV1"}),"-compressed images."]}),"\n",(0,t.jsx)(s.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,t.jsxs)(s.p,{children:["Lossless? ",(0,t.jsx)(s.em,{children:"No"})]}),"\n",(0,t.jsxs)(s.p,{children:["Lossy? ",(0,t.jsx)(s.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(s.p,{children:["Supported Bit Depths:\n",(0,t.jsx)(s.em,{children:"8 BPC, 10 BPC"})]}),"\n",(0,t.jsxs)(s.blockquote,{children:["\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.em,{children:"Higher bit depths not widely supported"})}),"\n"]}),"\n",(0,t.jsxs)(s.p,{children:["HDR/Wide Gamut? ",(0,t.jsx)(s.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(s.p,{children:["Animation? ",(0,t.jsx)(s.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(s.p,{children:["Transparency? ",(0,t.jsx)(s.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(s.p,{children:["Progressive Decode? ",(0,t.jsx)(s.em,{children:"No"})]}),"\n",(0,t.jsxs)(s.p,{children:["Royalty Free? ",(0,t.jsx)(s.em,{children:"No"})]})]})}function h(e={}){const{wrapper:s}={...(0,o.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,s,i)=>{i.d(s,{R:()=>r,x:()=>c});var n=i(6540);const t={},o=n.createContext(t);function r(e){const s=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function c(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),n.createElement(o.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/e157395a.b8778f91.js b/assets/js/e157395a.b8778f91.js deleted file mode 100644 index 1b05bb12b..000000000 --- a/assets/js/e157395a.b8778f91.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7967],{8935:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>a,contentTitle:()=>r,default:()=>h,frontMatter:()=>o,metadata:()=>c,toc:()=>d});var n=s(4848),t=s(8453);const o={title:"HEIC",sidebar_position:4},r="HEIC",c={id:"images/HEIC",title:"HEIC",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/images/HEIC.mdx",sourceDirName:"images",slug:"/images/HEIC",permalink:"/docs/images/HEIC",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/HEIC.mdx",tags:[],version:"current",sidebarPosition:4,frontMatter:{title:"HEIC",sidebar_position:4},sidebar:"tutorialSidebar",previous:{title:"GIF",permalink:"/docs/images/GIF"},next:{title:"WebP",permalink:"/docs/images/WebP"}},a={},d=[{value:"Performance Checklist",id:"performance-checklist",level:2}];function l(e){const i={a:"a",admonition:"admonition",blockquote:"blockquote",em:"em",h1:"h1",h2:"h2",header:"header",p:"p",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"heic",children:"HEIC"})}),"\n",(0,n.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(i.p,{children:["The HEIC image format, also known as the High Efficiency Image Format, is a newer image codec that was developed to provide improved compression and better performance compared to traditional image formats like ",(0,n.jsx)(i.a,{href:"/docs/images/JPEG",children:"JPEG"}),". HEIC files use ",(0,n.jsx)(i.a,{href:"/docs/video/HEVC",children:"HEVC"})," internally, meaning the format is not royalty free. While this has limited its adoption across the Web, this format is supported by many modern devices including the entire Apple ecosystem. iPhones shoot HDR HEIC photos by default by utilizing the iPhone's HEVC hardware video encoder to capture these images. Some Android phones are capable of shooting HEIC as well, but these are often transcoded from JPEG. HEIC has largely been surpassed by ",(0,n.jsx)(i.a,{href:"/docs/images/AVIF",children:"AVIF"}),", which uses the same container to store ",(0,n.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"}),"-compressed images."]}),"\n",(0,n.jsx)(i.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,n.jsxs)(i.p,{children:["Lossless? ",(0,n.jsx)(i.em,{children:"No"})]}),"\n",(0,n.jsxs)(i.p,{children:["Lossy? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:["Supported Bit Depths:\n",(0,n.jsx)(i.em,{children:"8 BPC, 10 BPC"})]}),"\n",(0,n.jsxs)(i.blockquote,{children:["\n",(0,n.jsx)(i.p,{children:(0,n.jsx)(i.em,{children:"Higher bit depths not widely supported"})}),"\n"]}),"\n",(0,n.jsxs)(i.p,{children:["HDR/Wide Gamut? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:["Animation? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:["Transparency? ",(0,n.jsx)(i.em,{children:"Yes"})]}),"\n",(0,n.jsxs)(i.p,{children:["Progressive Decode? ",(0,n.jsx)(i.em,{children:"No"})]}),"\n",(0,n.jsxs)(i.p,{children:["Royalty Free? ",(0,n.jsx)(i.em,{children:"No"})]})]})}function h(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,i,s)=>{s.d(i,{R:()=>r,x:()=>c});var n=s(6540);const t={},o=n.createContext(t);function r(e){const i=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function c(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),n.createElement(o.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/e1a437f7.415b8f79.js b/assets/js/e1a437f7.415b8f79.js deleted file mode 100644 index 0a65161f7..000000000 --- a/assets/js/e1a437f7.415b8f79.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9381],{801:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>p,frontMatter:()=>s,metadata:()=>r,toc:()=>d});var n=i(4848),o=i(8453);const s={title:"bzip2",sidebar_position:3},a="bzip2",r={id:"data/bzip2",title:"bzip2",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/data/bzip2.mdx",sourceDirName:"data",slug:"/data/bzip2",permalink:"/docs/data/bzip2",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/bzip2.mdx",tags:[],version:"current",sidebarPosition:3,frontMatter:{title:"bzip2",sidebar_position:3},sidebar:"tutorialSidebar",previous:{title:"gzip",permalink:"/docs/data/gzip"},next:{title:"7z",permalink:"/docs/data/7z"}},c={},d=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"bzip2",children:"bzip2"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(t.p,{children:["bzip2 is a open source file compression format and utility. It's efficency is slightly better than ",(0,n.jsx)(t.a,{href:"/docs/data/zip",children:"zip"}),", but worse than lzma based formats like ",(0,n.jsx)(t.a,{href:"/docs/data/xz",children:"xz"})," and ",(0,n.jsx)(t.a,{href:"/docs/data/7z",children:"7z"}),". bzip2 cannot be used to compress mutliple files at once, you should collate files together into a ",(0,n.jsx)(t.a,{href:"/docs/data/tar",children:"tarball"})," to compress mutliple files using bzip2."]})]})}function p(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>a,x:()=>r});var n=i(6540);const o={},s=n.createContext(o);function a(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/e1a437f7.50b0acba.js b/assets/js/e1a437f7.50b0acba.js new file mode 100644 index 000000000..ea378c0ed --- /dev/null +++ b/assets/js/e1a437f7.50b0acba.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9381],{6189:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>r,default:()=>p,frontMatter:()=>a,metadata:()=>n,toc:()=>d});const n=JSON.parse('{"id":"data/bzip2","title":"bzip2","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/data/bzip2.mdx","sourceDirName":"data","slug":"/data/bzip2","permalink":"/docs/data/bzip2","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/bzip2.mdx","tags":[],"version":"current","sidebarPosition":3,"frontMatter":{"title":"bzip2","sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"gzip","permalink":"/docs/data/gzip"},"next":{"title":"7z","permalink":"/docs/data/7z"}}');var o=i(4848),s=i(8453);const a={title:"bzip2",sidebar_position:3},r="bzip2",c={},d=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"bzip2",children:"bzip2"})}),"\n",(0,o.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsxs)(t.p,{children:["bzip2 is a open source file compression format and utility. It's efficency is slightly better than ",(0,o.jsx)(t.a,{href:"/docs/data/zip",children:"zip"}),", but worse than lzma based formats like ",(0,o.jsx)(t.a,{href:"/docs/data/xz",children:"xz"})," and ",(0,o.jsx)(t.a,{href:"/docs/data/7z",children:"7z"}),". bzip2 cannot be used to compress mutliple files at once, you should collate files together into a ",(0,o.jsx)(t.a,{href:"/docs/data/tar",children:"tarball"})," to compress mutliple files using bzip2."]})]})}function p(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>a,x:()=>r});var n=i(6540);const o={},s=n.createContext(o);function a(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/e1c48702.31de42f4.js b/assets/js/e1c48702.31de42f4.js deleted file mode 100644 index 3c727578e..000000000 --- a/assets/js/e1c48702.31de42f4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6377],{1356:(e,s,i)=>{i.r(s),i.d(s,{assets:()=>a,contentTitle:()=>r,default:()=>m,frontMatter:()=>t,metadata:()=>c,toc:()=>d});var o=i(4848),n=i(8453);const t={title:"Lossy Compression",sidebar_position:4},r="Lossy Compression",c={id:"introduction/lossy",title:"Lossy Compression",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/introduction/lossy.mdx",sourceDirName:"introduction",slug:"/introduction/lossy",permalink:"/docs/introduction/lossy",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/lossy.mdx",tags:[],version:"current",sidebarPosition:4,frontMatter:{title:"Lossy Compression",sidebar_position:4},sidebar:"tutorialSidebar",previous:{title:"Lossless Compression",permalink:"/docs/introduction/lossless"},next:{title:"Spotting Video Artifacts",permalink:"/docs/introduction/video-artifacts"}},a={},d=[{value:"How Lossy Compression Works",id:"how-lossy-compression-works",level:2}];function l(e){const s={admonition:"admonition",em:"em",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.header,{children:(0,o.jsx)(s.h1,{id:"lossy-compression",children:"Lossy Compression"})}),"\n",(0,o.jsx)(s.admonition,{title:"Under Maintenance",type:"info",children:(0,o.jsx)(s.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,o.jsx)(s.p,{children:"Lossy multimedia compression reduces the file size of multimedia data by permanently removing some of the information. This process leverages the limitations of the human senses, fidelity metrics, or appeal metrics to discard information that is considered less salient. The goal of lossy compression is to reduce the file size of multimedia data while maintaining a desired level of quality."}),"\n",(0,o.jsx)(s.h2,{id:"how-lossy-compression-works",children:"How Lossy Compression Works"}),"\n",(0,o.jsx)(s.p,{children:"Lossy compression works by analyzing the input signal and removing parts of it that are less salient. Some processes by which this is done include:"}),"\n",(0,o.jsxs)(s.ul,{children:["\n",(0,o.jsxs)(s.li,{children:[(0,o.jsx)(s.strong,{children:"Perceptual Coding"})," (audio): This technique removes audio frequencies that are outside the range of human hearing or masked by other sounds."]}),"\n",(0,o.jsxs)(s.li,{children:[(0,o.jsx)(s.strong,{children:"Quantization"})," (audio): This process reduces the precision of certain audio components, which can significantly reduce file size without a noticeable impact on perceived quality."]}),"\n"]}),"\n",(0,o.jsx)(s.p,{children:(0,o.jsx)(s.em,{children:"More coming soon"})})]})}function m(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,o.jsx)(s,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,s,i)=>{i.d(s,{R:()=>r,x:()=>c});var o=i(6540);const n={},t=o.createContext(n);function r(e){const s=o.useContext(t);return o.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function c(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),o.createElement(t.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/e1c48702.b987ce2c.js b/assets/js/e1c48702.b987ce2c.js new file mode 100644 index 000000000..308e1b3b9 --- /dev/null +++ b/assets/js/e1c48702.b987ce2c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6377],{8600:(e,s,o)=>{o.r(s),o.d(s,{assets:()=>a,contentTitle:()=>c,default:()=>m,frontMatter:()=>r,metadata:()=>i,toc:()=>d});const i=JSON.parse('{"id":"introduction/lossy","title":"Lossy Compression","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/introduction/lossy.mdx","sourceDirName":"introduction","slug":"/introduction/lossy","permalink":"/docs/introduction/lossy","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/lossy.mdx","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"title":"Lossy Compression","sidebar_position":4},"sidebar":"tutorialSidebar","previous":{"title":"Lossless Compression","permalink":"/docs/introduction/lossless"},"next":{"title":"Spotting Video Artifacts","permalink":"/docs/introduction/video-artifacts"}}');var n=o(4848),t=o(8453);const r={title:"Lossy Compression",sidebar_position:4},c="Lossy Compression",a={},d=[{value:"How Lossy Compression Works",id:"how-lossy-compression-works",level:2}];function l(e){const s={admonition:"admonition",em:"em",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.header,{children:(0,n.jsx)(s.h1,{id:"lossy-compression",children:"Lossy Compression"})}),"\n",(0,n.jsx)(s.admonition,{title:"Under Maintenance",type:"info",children:(0,n.jsx)(s.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,n.jsx)(s.p,{children:"Lossy multimedia compression reduces the file size of multimedia data by permanently removing some of the information. This process leverages the limitations of the human senses, fidelity metrics, or appeal metrics to discard information that is considered less salient. The goal of lossy compression is to reduce the file size of multimedia data while maintaining a desired level of quality."}),"\n",(0,n.jsx)(s.h2,{id:"how-lossy-compression-works",children:"How Lossy Compression Works"}),"\n",(0,n.jsx)(s.p,{children:"Lossy compression works by analyzing the input signal and removing parts of it that are less salient. Some processes by which this is done include:"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.strong,{children:"Perceptual Coding"})," (audio): This technique removes audio frequencies that are outside the range of human hearing or masked by other sounds."]}),"\n",(0,n.jsxs)(s.li,{children:[(0,n.jsx)(s.strong,{children:"Quantization"})," (audio): This process reduces the precision of certain audio components, which can significantly reduce file size without a noticeable impact on perceived quality."]}),"\n"]}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.em,{children:"More coming soon"})})]})}function m(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,s,o)=>{o.d(s,{R:()=>r,x:()=>c});var i=o(6540);const n={},t=i.createContext(n);function r(e){const s=i.useContext(t);return i.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function c(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),i.createElement(t.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/e33da66d.7bf505ce.js b/assets/js/e33da66d.97d80f76.js similarity index 66% rename from assets/js/e33da66d.7bf505ce.js rename to assets/js/e33da66d.97d80f76.js index 9b89d7290..24c4537fa 100644 --- a/assets/js/e33da66d.7bf505ce.js +++ b/assets/js/e33da66d.97d80f76.js @@ -1 +1 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2361],{9109:e=>{e.exports=JSON.parse('{"tag":{"label":"video","permalink":"/blog/tags/video","allTagsPath":"/blog/tags","count":5,"unlisted":false},"listMetadata":{"permalink":"/blog/tags/video","page":1,"postsPerPage":10,"totalPages":1,"totalCount":5,"blogDescription":"Blog","blogTitle":"Blog"}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2361],{9109:e=>{e.exports=JSON.parse('{"tag":{"label":"video","permalink":"/blog/tags/video","allTagsPath":"/blog/tags","count":6,"unlisted":false},"listMetadata":{"permalink":"/blog/tags/video","page":1,"postsPerPage":10,"totalPages":1,"totalCount":6,"blogDescription":"Blog","blogTitle":"Blog"}}')}}]); \ No newline at end of file diff --git a/assets/js/e3b00369.068a46ff.js b/assets/js/e3b00369.068a46ff.js deleted file mode 100644 index 28514ada8..000000000 --- a/assets/js/e3b00369.068a46ff.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[921],{1364:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>o,contentTitle:()=>r,default:()=>h,frontMatter:()=>t,metadata:()=>d,toc:()=>c});var a=i(4848),s=i(8453);const t={title:"av1an-command-gen",sidebar_position:14},r="Av1an Command Generator",d={id:"utilities/av1an-command-gen",title:"av1an-command-gen",description:"Av1an Command Generator is a rudimentary tool for easily generating Av1an commands for AV1 encoding. It is written in the Zig programming language. It is very similar to rAV1ator CLI in the sense that it can produce Av1an commands based on user input.",source:"@site/docs/utilities/av1an-command-gen.mdx",sourceDirName:"utilities",slug:"/utilities/av1an-command-gen",permalink:"/docs/utilities/av1an-command-gen",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/av1an-command-gen.mdx",tags:[],version:"current",sidebarPosition:14,frontMatter:{title:"av1an-command-gen",sidebar_position:14},sidebar:"tutorialSidebar",previous:{title:"Discord",permalink:"/docs/utilities/Discord"},next:{title:"autocompressor",permalink:"/docs/utilities/autocompressor"}},o={},c=[{value:"Description",id:"description",level:2},{value:"Usage",id:"usage",level:2},{value:"Examples",id:"examples",level:2},{value:"Installation",id:"installation",level:2},{value:"License",id:"license",level:2}];function l(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,s.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.header,{children:(0,a.jsx)(n.h1,{id:"av1an-command-generator",children:"Av1an Command Generator"})}),"\n",(0,a.jsxs)(n.p,{children:["Av1an Command Generator is a rudimentary tool for easily generating Av1an commands for AV1 encoding. It is written in the Zig programming language. It is very similar to ",(0,a.jsx)(n.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"})," in the sense that it can produce Av1an commands based on user input."]}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/gianni-rosato/av1an-command-gen/",children:"GitHub Link"})}),"\n",(0,a.jsx)(n.h2,{id:"description",children:"Description"}),"\n",(0,a.jsxs)(n.p,{children:["Av1an Command Generator is designed for beginners, although experienced encoders can use it to speed up their Av1an scripting. The program generates an AV1 video encoding command for use with ",(0,a.jsx)(n.a,{href:"/docs/utilities/av1an",children:"Av1an"}),", a chunked video encoding tool that can be used with ",(0,a.jsx)(n.a,{href:"/docs/encoders/aomenc",children:"aomenc"}),", ",(0,a.jsx)(n.a,{href:"/docs/encoders/SVT-AV1",children:"SVT-AV1"}),", and ",(0,a.jsx)(n.a,{href:"/docs/encoders/rav1e",children:"rav1e"}),"."]}),"\n",(0,a.jsx)(n.p,{children:"This tool takes in the video resolution, frame rate, desired encoder, speed preset, and target bitrate range as command line arguments. Based on these parameters, it calculates settings like tile columns/rows, lag-in-frames, CRF, and encoder speed preset. Then, it injects these into a generated encoding command string."}),"\n",(0,a.jsxs)(n.p,{children:["The output is a full ",(0,a.jsx)(n.code,{children:"av1an"})," command that can be run to encode a video based on the specified settings."]}),"\n",(0,a.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"av1an-command-gen [width] [height] [fps] [encoder] [speed] [bitrate_target]\n"})}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"width"})," - Input video width in pixels"]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"height"})," - Input video height in pixels"]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"fps"})," - Input video frame rate"]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"encoder"})," - ",(0,a.jsx)(n.code,{children:"aom"}),", ",(0,a.jsx)(n.code,{children:"svt"}),", or ",(0,a.jsx)(n.code,{children:"rav1e"})]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"speed"})," - ",(0,a.jsx)(n.code,{children:"slower"}),", ",(0,a.jsx)(n.code,{children:"slow"}),", ",(0,a.jsx)(n.code,{children:"med"}),", ",(0,a.jsx)(n.code,{children:"fast"}),", ",(0,a.jsx)(n.code,{children:"faster"})]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"bitrate_target"})," - ",(0,a.jsx)(n.code,{children:"lowest"}),", ",(0,a.jsx)(n.code,{children:"low"}),", ",(0,a.jsx)(n.code,{children:"med"}),", ",(0,a.jsx)(n.code,{children:"high"})]}),"\n"]}),"\n",(0,a.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,a.jsx)(n.p,{children:"Generate a command for encoding a 1280x720 video at 24 fps using rav1e at 'med' speed and 'low' bitrate target:"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"av1an-command-gen 1280 720 24 rav1e med low\n"})}),"\n",(0,a.jsx)(n.p,{children:"Generate a command for encoding a 1920x1080 video at 30 fps using svt-av1 at 'fast' speed and 'high' bitrate target:"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"av1an-command-gen 1920 1080 30 svt fast high\n"})}),"\n",(0,a.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,a.jsxs)(n.p,{children:["This program requires the ",(0,a.jsx)(n.a,{href:"https://ziglang.org/",children:"Zig"})," v0.11.0 programming language."]}),"\n",(0,a.jsx)(n.p,{children:"To build:"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"zig build\n"})}),"\n",(0,a.jsxs)(n.p,{children:["This will produce a standalone binary ",(0,a.jsx)(n.code,{children:"av1an-command-gen"})," in ",(0,a.jsx)(n.code,{children:"zig-out/bin/"}),"."]}),"\n",(0,a.jsx)(n.h2,{id:"license",children:"License"}),"\n",(0,a.jsx)(n.p,{children:"This project is licensed under the BSD 3-Clause License."})]})}function h(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>d});var a=i(6540);const s={},t=a.createContext(s);function r(e){const n=a.useContext(t);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),a.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/e3b00369.6a6f7366.js b/assets/js/e3b00369.6a6f7366.js new file mode 100644 index 000000000..0e3946be5 --- /dev/null +++ b/assets/js/e3b00369.6a6f7366.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[921],{8105:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>o,contentTitle:()=>d,default:()=>h,frontMatter:()=>r,metadata:()=>s,toc:()=>c});const s=JSON.parse('{"id":"utilities/av1an-command-gen","title":"av1an-command-gen","description":"Av1an Command Generator is a rudimentary tool for easily generating Av1an commands for AV1 encoding. It is written in the Zig programming language. It is very similar to rAV1ator CLI in the sense that it can produce Av1an commands based on user input.","source":"@site/docs/utilities/av1an-command-gen.mdx","sourceDirName":"utilities","slug":"/utilities/av1an-command-gen","permalink":"/docs/utilities/av1an-command-gen","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/av1an-command-gen.mdx","tags":[],"version":"current","sidebarPosition":14,"frontMatter":{"title":"av1an-command-gen","sidebar_position":14},"sidebar":"tutorialSidebar","previous":{"title":"Discord","permalink":"/docs/utilities/Discord"},"next":{"title":"autocompressor","permalink":"/docs/utilities/autocompressor"}}');var a=i(4848),t=i(8453);const r={title:"av1an-command-gen",sidebar_position:14},d="Av1an Command Generator",o={},c=[{value:"Description",id:"description",level:2},{value:"Usage",id:"usage",level:2},{value:"Examples",id:"examples",level:2},{value:"Installation",id:"installation",level:2},{value:"License",id:"license",level:2}];function l(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.header,{children:(0,a.jsx)(n.h1,{id:"av1an-command-generator",children:"Av1an Command Generator"})}),"\n",(0,a.jsxs)(n.p,{children:["Av1an Command Generator is a rudimentary tool for easily generating Av1an commands for AV1 encoding. It is written in the Zig programming language. It is very similar to ",(0,a.jsx)(n.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"})," in the sense that it can produce Av1an commands based on user input."]}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/gianni-rosato/av1an-command-gen/",children:"GitHub Link"})}),"\n",(0,a.jsx)(n.h2,{id:"description",children:"Description"}),"\n",(0,a.jsxs)(n.p,{children:["Av1an Command Generator is designed for beginners, although experienced encoders can use it to speed up their Av1an scripting. The program generates an AV1 video encoding command for use with ",(0,a.jsx)(n.a,{href:"/docs/utilities/av1an",children:"Av1an"}),", a chunked video encoding tool that can be used with ",(0,a.jsx)(n.a,{href:"/docs/encoders/aomenc",children:"aomenc"}),", ",(0,a.jsx)(n.a,{href:"/docs/encoders/SVT-AV1",children:"SVT-AV1"}),", and ",(0,a.jsx)(n.a,{href:"/docs/encoders/rav1e",children:"rav1e"}),"."]}),"\n",(0,a.jsx)(n.p,{children:"This tool takes in the video resolution, frame rate, desired encoder, speed preset, and target bitrate range as command line arguments. Based on these parameters, it calculates settings like tile columns/rows, lag-in-frames, CRF, and encoder speed preset. Then, it injects these into a generated encoding command string."}),"\n",(0,a.jsxs)(n.p,{children:["The output is a full ",(0,a.jsx)(n.code,{children:"av1an"})," command that can be run to encode a video based on the specified settings."]}),"\n",(0,a.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"av1an-command-gen [width] [height] [fps] [encoder] [speed] [bitrate_target]\n"})}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"width"})," - Input video width in pixels"]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"height"})," - Input video height in pixels"]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"fps"})," - Input video frame rate"]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"encoder"})," - ",(0,a.jsx)(n.code,{children:"aom"}),", ",(0,a.jsx)(n.code,{children:"svt"}),", or ",(0,a.jsx)(n.code,{children:"rav1e"})]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"speed"})," - ",(0,a.jsx)(n.code,{children:"slower"}),", ",(0,a.jsx)(n.code,{children:"slow"}),", ",(0,a.jsx)(n.code,{children:"med"}),", ",(0,a.jsx)(n.code,{children:"fast"}),", ",(0,a.jsx)(n.code,{children:"faster"})]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.code,{children:"bitrate_target"})," - ",(0,a.jsx)(n.code,{children:"lowest"}),", ",(0,a.jsx)(n.code,{children:"low"}),", ",(0,a.jsx)(n.code,{children:"med"}),", ",(0,a.jsx)(n.code,{children:"high"})]}),"\n"]}),"\n",(0,a.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,a.jsx)(n.p,{children:"Generate a command for encoding a 1280x720 video at 24 fps using rav1e at 'med' speed and 'low' bitrate target:"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"av1an-command-gen 1280 720 24 rav1e med low\n"})}),"\n",(0,a.jsx)(n.p,{children:"Generate a command for encoding a 1920x1080 video at 30 fps using svt-av1 at 'fast' speed and 'high' bitrate target:"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"av1an-command-gen 1920 1080 30 svt fast high\n"})}),"\n",(0,a.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,a.jsxs)(n.p,{children:["This program requires the ",(0,a.jsx)(n.a,{href:"https://ziglang.org/",children:"Zig"})," v0.11.0 programming language."]}),"\n",(0,a.jsx)(n.p,{children:"To build:"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"zig build\n"})}),"\n",(0,a.jsxs)(n.p,{children:["This will produce a standalone binary ",(0,a.jsx)(n.code,{children:"av1an-command-gen"})," in ",(0,a.jsx)(n.code,{children:"zig-out/bin/"}),"."]}),"\n",(0,a.jsx)(n.h2,{id:"license",children:"License"}),"\n",(0,a.jsx)(n.p,{children:"This project is licensed under the BSD 3-Clause License."})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>d});var s=i(6540);const a={},t=s.createContext(a);function r(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:r(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/e641ee58.05299a4b.js b/assets/js/e641ee58.05299a4b.js deleted file mode 100644 index f65ac1d92..000000000 --- a/assets/js/e641ee58.05299a4b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5738],{3493:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>a,contentTitle:()=>r,default:()=>p,frontMatter:()=>s,metadata:()=>c,toc:()=>d});var i=o(4848),n=o(8453);const s={title:"Speex",sidebar_position:6},r="Speex",c={id:"audio/Speex",title:"Speex",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/audio/Speex.mdx",sourceDirName:"audio",slug:"/audio/Speex",permalink:"/docs/audio/Speex",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/Speex.mdx",tags:[],version:"current",sidebarPosition:6,frontMatter:{title:"Speex",sidebar_position:6},sidebar:"tutorialSidebar",previous:{title:"Vorbis",permalink:"/docs/audio/Vorbis"},next:{title:"ALAC",permalink:"/docs/audio/ALAC"}},a={},d=[];function u(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"speex",children:"Speex"})}),"\n",(0,i.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,i.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,i.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,i.jsxs)(t.p,{children:["Speex is an open-source audio codec designed for speech. It has largely been replaced by ",(0,i.jsx)(t.a,{href:"/docs/audio/Opus",children:"Opus"}),"."]})]})}function p(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>r,x:()=>c});var i=o(6540);const n={},s=i.createContext(n);function r(e){const t=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),i.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/e641ee58.c64968a6.js b/assets/js/e641ee58.c64968a6.js new file mode 100644 index 000000000..6b124effd --- /dev/null +++ b/assets/js/e641ee58.c64968a6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5738],{6311:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>p,frontMatter:()=>r,metadata:()=>i,toc:()=>d});const i=JSON.parse('{"id":"audio/Speex","title":"Speex","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/audio/Speex.mdx","sourceDirName":"audio","slug":"/audio/Speex","permalink":"/docs/audio/Speex","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/audio/Speex.mdx","tags":[],"version":"current","sidebarPosition":6,"frontMatter":{"title":"Speex","sidebar_position":6},"sidebar":"tutorialSidebar","previous":{"title":"Vorbis","permalink":"/docs/audio/Vorbis"},"next":{"title":"ALAC","permalink":"/docs/audio/ALAC"}}');var n=o(4848),s=o(8453);const r={title:"Speex",sidebar_position:6},a="Speex",c={},d=[];function u(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"speex",children:"Speex"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(t.p,{children:["Speex is an open-source audio codec designed for speech. It has largely been replaced by ",(0,n.jsx)(t.a,{href:"/docs/audio/Opus",children:"Opus"}),"."]})]})}function p(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>r,x:()=>a});var i=o(6540);const n={},s=i.createContext(n);function r(e){const t=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:r(e.components),i.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/edaea366.3a139970.js b/assets/js/edaea366.3a139970.js new file mode 100644 index 000000000..4ba94b0c0 --- /dev/null +++ b/assets/js/edaea366.3a139970.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7978],{8207:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>d,contentTitle:()=>l,default:()=>h,frontMatter:()=>a,metadata:()=>s,toc:()=>o});const s=JSON.parse('{"id":"colorimetry/transfer","title":"Transfer Characteristics","description":"Transfer characteristics, also known as transfer functions, represent the","source":"@site/docs/colorimetry/transfer.mdx","sourceDirName":"colorimetry","slug":"/colorimetry/transfer","permalink":"/docs/colorimetry/transfer","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/colorimetry/transfer.mdx","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"title":"Transfer Characteristics","sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"Color Primaries","permalink":"/docs/colorimetry/primaries"},"next":{"title":"Matrix Coefficients","permalink":"/docs/colorimetry/matrix"}}');var t=n(4848),r=n(8453);const a={title:"Transfer Characteristics",sidebar_position:5},l="Transfer Characteristics",d={},o=[{value:"1: BT.1886",id:"1-bt1886",level:3},{value:"2: Unspecified",id:"2-unspecified",level:3},{value:"4: BT.470M",id:"4-bt470m",level:3},{value:"5: BT.470BG",id:"5-bt470bg",level:3},{value:"6: SMPTE 170M",id:"6-smpte-170m",level:3},{value:"7: SMPTE 240M",id:"7-smpte-240m",level:3},{value:"8: Linear",id:"8-linear",level:3},{value:"9: Logarithmic 100",id:"9-logarithmic-100",level:3},{value:"10: Logarithmic 316",id:"10-logarithmic-316",level:3},{value:"11: XVYCC",id:"11-xvycc",level:3},{value:"12: BT.1361E",id:"12-bt1361e",level:3},{value:"13: sRGB",id:"13-srgb",level:3},{value:"14: BT.2020 10-bit",id:"14-bt2020-10-bit",level:3},{value:"15: BT.2020 12-bit",id:"15-bt2020-12-bit",level:3},{value:"16: PQ aka SMPTE 2084",id:"16-pq-aka-smpte-2084",level:3},{value:"17: SMPTE 428",id:"17-smpte-428",level:3},{value:"18: HLG aka Hybrid Log-Gamma",id:"18-hlg-aka-hybrid-log-gamma",level:3}];function c(e){const i={h1:"h1",h3:"h3",header:"header",li:"li",p:"p",ul:"ul",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"transfer-characteristics",children:"Transfer Characteristics"})}),"\n",(0,t.jsx)(i.p,{children:"Transfer characteristics, also known as transfer functions, represent the\ngamma function of a video--that is, how to convert from a gamma-compressed\nvideo to one that is in linear light. These are sometimes also called EOTF\nand OETF functions."}),"\n",(0,t.jsx)(i.p,{children:"As with primaries, the integer values are defined within universal specifications,\nand as such they will be the same across all encoding and playback tools."}),"\n",(0,t.jsx)(i.p,{children:"The following values are available:"}),"\n",(0,t.jsx)(i.h3,{id:"1-bt1886",children:"1: BT.1886"}),"\n",(0,t.jsx)(i.p,{children:"BT.1886 is the standard used for most modern, SDR video, and is a safe default assumption."}),"\n",(0,t.jsx)(i.p,{children:"This transfer function is used in the following standards:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.709-6"}),"\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.1361-0 conventional\ncolour gamut system (historical)"}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"2-unspecified",children:"2: Unspecified"}),"\n",(0,t.jsx)(i.p,{children:"This value indicates that no transfer function is set for the video, and the player must decide which value to use."}),"\n",(0,t.jsx)(i.p,{children:"mpv will always assume BT.1886 in this case."}),"\n",(0,t.jsx)(i.h3,{id:"4-bt470m",children:"4: BT.470M"}),"\n",(0,t.jsx)(i.p,{children:"BT.470M is a standard that was used in analog television systems in the United States. This transfer represents a power function with a gamma of 2.2."}),"\n",(0,t.jsx)(i.p,{children:"This transfer function is used in the following standards:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.470-6 System M\n(historical)"}),"\n",(0,t.jsx)(i.li,{children:"United States National Television\nSystem Committee 1953\nRecommendation for transmission\nstandards for color television"}),"\n",(0,t.jsx)(i.li,{children:"United States Federal Communications\nCommission (2003) Title 47 Code of\nFederal Regulations 73.682 (a) (20)"}),"\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.1700-0 625 PAL and\n625 SECAM"}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"5-bt470bg",children:"5: BT.470BG"}),"\n",(0,t.jsx)(i.p,{children:"BT.470BG is a standard that was used for European (PAL) television systems and DVDs. This transfer represents a power function with a gamma of 2.8."}),"\n",(0,t.jsx)(i.h3,{id:"6-smpte-170m",children:"6: SMPTE 170M"}),"\n",(0,t.jsx)(i.p,{children:"SMPTE 170M is a stanrard that was used for NTSC television systems and DVDs. Its transfer function is equivalent to BT.1886."}),"\n",(0,t.jsx)(i.p,{children:"This transfer function is used in the following standards:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.601-7 525 or 625"}),"\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.1358-1 525 or 625\n(historical)"}),"\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.1700-0 NTSC"}),"\n",(0,t.jsx)(i.li,{children:"SMPTE ST 170 (2004)"}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"7-smpte-240m",children:"7: SMPTE 240M"}),"\n",(0,t.jsx)(i.p,{children:"SMPTE 240M was an interim standard used during the early days of HDTV (1988-1998)."}),"\n",(0,t.jsx)(i.h3,{id:"8-linear",children:"8: Linear"}),"\n",(0,t.jsx)(i.p,{children:"This value indicates that the content is already in linear light."}),"\n",(0,t.jsx)(i.h3,{id:"9-logarithmic-100",children:"9: Logarithmic 100"}),"\n",(0,t.jsx)(i.p,{children:"Indicates a logarithmic transfer function with a 100:1 range."}),"\n",(0,t.jsx)(i.h3,{id:"10-logarithmic-316",children:"10: Logarithmic 316"}),"\n",(0,t.jsx)(i.p,{children:"Indicates a logarithmic transfer function with a (100 * sqrt(10)):1 range."}),"\n",(0,t.jsx)(i.h3,{id:"11-xvycc",children:"11: XVYCC"}),"\n",(0,t.jsx)(i.p,{children:"Used in standard IEC 61966-2-4. I have no idea what this actually is."}),"\n",(0,t.jsx)(i.h3,{id:"12-bt1361e",children:"12: BT.1361E"}),"\n",(0,t.jsx)(i.p,{children:'This was intended to be a standard for "future" television systems, but it never really came into use.'}),"\n",(0,t.jsx)(i.h3,{id:"13-srgb",children:"13: sRGB"}),"\n",(0,t.jsx)(i.p,{children:"Represents the sRGB colorspace."}),"\n",(0,t.jsx)(i.p,{children:"This transfer function is used in the following standards:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"IEC 61966-2-1 sRGB (with\nMatrixCoefficients equal to 0)"}),"\n",(0,t.jsx)(i.li,{children:"IEC 61966-2-1 sYCC (with\nMatrixCoefficients equal to 5)"}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"14-bt2020-10-bit",children:"14: BT.2020 10-bit"}),"\n",(0,t.jsx)(i.p,{children:"Typically used with ultra-high-definition 10-bit SDR video. Its transfer function is equivalent to BT.1886."}),"\n",(0,t.jsx)(i.h3,{id:"15-bt2020-12-bit",children:"15: BT.2020 12-bit"}),"\n",(0,t.jsx)(i.p,{children:"Typically used with ultra-high-definition 12-bit SDR video. Its transfer function is equivalent to BT.1886."}),"\n",(0,t.jsx)(i.h3,{id:"16-pq-aka-smpte-2084",children:"16: PQ aka SMPTE 2084"}),"\n",(0,t.jsx)(i.p,{children:"PQ is the most widely used transfer function for HDR content. It allows for a wider range of luminance to be represented than conventional transfer functions."}),"\n",(0,t.jsx)(i.p,{children:"This transfer function is used in the following standards:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"SMPTE ST 2084 (2014) for 10-, 12-,\n14- and 16-bit systems"}),"\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.2100-2 perceptual\nquantization (PQ) system"}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"17-smpte-428",children:"17: SMPTE 428"}),"\n",(0,t.jsx)(i.p,{children:"SMPTE 428 is used for D-Cinema Distribution Masters, aka DCDM."}),"\n",(0,t.jsx)(i.h3,{id:"18-hlg-aka-hybrid-log-gamma",children:"18: HLG aka Hybrid Log-Gamma"}),"\n",(0,t.jsx)(i.p,{children:"HLG is an alternative transfer function for HDR content used by some televisions."}),"\n",(0,t.jsx)(i.p,{children:"This transfer function is used in the following standards:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"ARIB STD-B67 (2015)"}),"\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.2100-2 hybrid log-\ngamma (HLG) system"}),"\n"]})]})}function h(e={}){const{wrapper:i}={...(0,r.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>a,x:()=>l});var s=n(6540);const t={},r=s.createContext(t);function a(e){const i=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function l(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),s.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/edaea366.d4254e2a.js b/assets/js/edaea366.d4254e2a.js deleted file mode 100644 index 6d838e971..000000000 --- a/assets/js/edaea366.d4254e2a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[7978],{4992:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>r,metadata:()=>l,toc:()=>o});var s=n(4848),t=n(8453);const r={title:"Transfer Characteristics",sidebar_position:5},a="Transfer Characteristics",l={id:"colorimetry/transfer",title:"Transfer Characteristics",description:"Transfer characteristics, also known as transfer functions, represent the",source:"@site/docs/colorimetry/transfer.mdx",sourceDirName:"colorimetry",slug:"/colorimetry/transfer",permalink:"/docs/colorimetry/transfer",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/colorimetry/transfer.mdx",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"Transfer Characteristics",sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"Color Primaries",permalink:"/docs/colorimetry/primaries"},next:{title:"Matrix Coefficients",permalink:"/docs/colorimetry/matrix"}},d={},o=[{value:"1: BT.1886",id:"1-bt1886",level:3},{value:"2: Unspecified",id:"2-unspecified",level:3},{value:"4: BT.470M",id:"4-bt470m",level:3},{value:"5: BT.470BG",id:"5-bt470bg",level:3},{value:"6: SMPTE 170M",id:"6-smpte-170m",level:3},{value:"7: SMPTE 240M",id:"7-smpte-240m",level:3},{value:"8: Linear",id:"8-linear",level:3},{value:"9: Logarithmic 100",id:"9-logarithmic-100",level:3},{value:"10: Logarithmic 316",id:"10-logarithmic-316",level:3},{value:"11: XVYCC",id:"11-xvycc",level:3},{value:"12: BT.1361E",id:"12-bt1361e",level:3},{value:"13: sRGB",id:"13-srgb",level:3},{value:"14: BT.2020 10-bit",id:"14-bt2020-10-bit",level:3},{value:"15: BT.2020 12-bit",id:"15-bt2020-12-bit",level:3},{value:"16: PQ aka SMPTE 2084",id:"16-pq-aka-smpte-2084",level:3},{value:"17: SMPTE 428",id:"17-smpte-428",level:3},{value:"18: HLG aka Hybrid Log-Gamma",id:"18-hlg-aka-hybrid-log-gamma",level:3}];function c(e){const i={h1:"h1",h3:"h3",header:"header",li:"li",p:"p",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"transfer-characteristics",children:"Transfer Characteristics"})}),"\n",(0,s.jsx)(i.p,{children:"Transfer characteristics, also known as transfer functions, represent the\ngamma function of a video--that is, how to convert from a gamma-compressed\nvideo to one that is in linear light. These are sometimes also called EOTF\nand OETF functions."}),"\n",(0,s.jsx)(i.p,{children:"As with primaries, the integer values are defined within universal specifications,\nand as such they will be the same across all encoding and playback tools."}),"\n",(0,s.jsx)(i.p,{children:"The following values are available:"}),"\n",(0,s.jsx)(i.h3,{id:"1-bt1886",children:"1: BT.1886"}),"\n",(0,s.jsx)(i.p,{children:"BT.1886 is the standard used for most modern, SDR video, and is a safe default assumption."}),"\n",(0,s.jsx)(i.p,{children:"This transfer function is used in the following standards:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.709-6"}),"\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.1361-0 conventional\ncolour gamut system (historical)"}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"2-unspecified",children:"2: Unspecified"}),"\n",(0,s.jsx)(i.p,{children:"This value indicates that no transfer function is set for the video, and the player must decide which value to use."}),"\n",(0,s.jsx)(i.p,{children:"mpv will always assume BT.1886 in this case."}),"\n",(0,s.jsx)(i.h3,{id:"4-bt470m",children:"4: BT.470M"}),"\n",(0,s.jsx)(i.p,{children:"BT.470M is a standard that was used in analog television systems in the United States. This transfer represents a power function with a gamma of 2.2."}),"\n",(0,s.jsx)(i.p,{children:"This transfer function is used in the following standards:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.470-6 System M\n(historical)"}),"\n",(0,s.jsx)(i.li,{children:"United States National Television\nSystem Committee 1953\nRecommendation for transmission\nstandards for color television"}),"\n",(0,s.jsx)(i.li,{children:"United States Federal Communications\nCommission (2003) Title 47 Code of\nFederal Regulations 73.682 (a) (20)"}),"\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.1700-0 625 PAL and\n625 SECAM"}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"5-bt470bg",children:"5: BT.470BG"}),"\n",(0,s.jsx)(i.p,{children:"BT.470BG is a standard that was used for European (PAL) television systems and DVDs. This transfer represents a power function with a gamma of 2.8."}),"\n",(0,s.jsx)(i.h3,{id:"6-smpte-170m",children:"6: SMPTE 170M"}),"\n",(0,s.jsx)(i.p,{children:"SMPTE 170M is a stanrard that was used for NTSC television systems and DVDs. Its transfer function is equivalent to BT.1886."}),"\n",(0,s.jsx)(i.p,{children:"This transfer function is used in the following standards:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.601-7 525 or 625"}),"\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.1358-1 525 or 625\n(historical)"}),"\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.1700-0 NTSC"}),"\n",(0,s.jsx)(i.li,{children:"SMPTE ST 170 (2004)"}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"7-smpte-240m",children:"7: SMPTE 240M"}),"\n",(0,s.jsx)(i.p,{children:"SMPTE 240M was an interim standard used during the early days of HDTV (1988-1998)."}),"\n",(0,s.jsx)(i.h3,{id:"8-linear",children:"8: Linear"}),"\n",(0,s.jsx)(i.p,{children:"This value indicates that the content is already in linear light."}),"\n",(0,s.jsx)(i.h3,{id:"9-logarithmic-100",children:"9: Logarithmic 100"}),"\n",(0,s.jsx)(i.p,{children:"Indicates a logarithmic transfer function with a 100:1 range."}),"\n",(0,s.jsx)(i.h3,{id:"10-logarithmic-316",children:"10: Logarithmic 316"}),"\n",(0,s.jsx)(i.p,{children:"Indicates a logarithmic transfer function with a (100 * sqrt(10)):1 range."}),"\n",(0,s.jsx)(i.h3,{id:"11-xvycc",children:"11: XVYCC"}),"\n",(0,s.jsx)(i.p,{children:"Used in standard IEC 61966-2-4. I have no idea what this actually is."}),"\n",(0,s.jsx)(i.h3,{id:"12-bt1361e",children:"12: BT.1361E"}),"\n",(0,s.jsx)(i.p,{children:'This was intended to be a standard for "future" television systems, but it never really came into use.'}),"\n",(0,s.jsx)(i.h3,{id:"13-srgb",children:"13: sRGB"}),"\n",(0,s.jsx)(i.p,{children:"Represents the sRGB colorspace."}),"\n",(0,s.jsx)(i.p,{children:"This transfer function is used in the following standards:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"IEC 61966-2-1 sRGB (with\nMatrixCoefficients equal to 0)"}),"\n",(0,s.jsx)(i.li,{children:"IEC 61966-2-1 sYCC (with\nMatrixCoefficients equal to 5)"}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"14-bt2020-10-bit",children:"14: BT.2020 10-bit"}),"\n",(0,s.jsx)(i.p,{children:"Typically used with ultra-high-definition 10-bit SDR video. Its transfer function is equivalent to BT.1886."}),"\n",(0,s.jsx)(i.h3,{id:"15-bt2020-12-bit",children:"15: BT.2020 12-bit"}),"\n",(0,s.jsx)(i.p,{children:"Typically used with ultra-high-definition 12-bit SDR video. Its transfer function is equivalent to BT.1886."}),"\n",(0,s.jsx)(i.h3,{id:"16-pq-aka-smpte-2084",children:"16: PQ aka SMPTE 2084"}),"\n",(0,s.jsx)(i.p,{children:"PQ is the most widely used transfer function for HDR content. It allows for a wider range of luminance to be represented than conventional transfer functions."}),"\n",(0,s.jsx)(i.p,{children:"This transfer function is used in the following standards:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"SMPTE ST 2084 (2014) for 10-, 12-,\n14- and 16-bit systems"}),"\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.2100-2 perceptual\nquantization (PQ) system"}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"17-smpte-428",children:"17: SMPTE 428"}),"\n",(0,s.jsx)(i.p,{children:"SMPTE 428 is used for D-Cinema Distribution Masters, aka DCDM."}),"\n",(0,s.jsx)(i.h3,{id:"18-hlg-aka-hybrid-log-gamma",children:"18: HLG aka Hybrid Log-Gamma"}),"\n",(0,s.jsx)(i.p,{children:"HLG is an alternative transfer function for HDR content used by some televisions."}),"\n",(0,s.jsx)(i.p,{children:"This transfer function is used in the following standards:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"ARIB STD-B67 (2015)"}),"\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.2100-2 hybrid log-\ngamma (HLG) system"}),"\n"]})]})}function h(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>a,x:()=>l});var s=n(6540);const t={},r=s.createContext(t);function a(e){const i=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function l(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),s.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ee513c31.027b1fe5.js b/assets/js/ee513c31.027b1fe5.js deleted file mode 100644 index ffd4cb09b..000000000 --- a/assets/js/ee513c31.027b1fe5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1137],{7155:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>s,default:()=>p,frontMatter:()=>l,metadata:()=>u,toc:()=>d});var o=n(4848),r=n(8453),i=n(1470),a=n(9365);const l={title:"dovi_tool",sidebar_position:9},s="dovi_tool",u={id:"utilities/dovi_tool",title:"dovi_tool",description:"dovi_tool is a command line tool written in Rust combining multiple utilities for working with Dolby Vision.",source:"@site/docs/utilities/dovi_tool.mdx",sourceDirName:"utilities",slug:"/utilities/dovi_tool",permalink:"/docs/utilities/dovi_tool",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/dovi_tool.mdx",tags:[],version:"current",sidebarPosition:9,frontMatter:{title:"dovi_tool",sidebar_position:9},sidebar:"tutorialSidebar",previous:{title:"FFMetrics",permalink:"/docs/utilities/FFMetrics"},next:{title:"eac3to",permalink:"/docs/utilities/eac3to"}},c={},d=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2}];function h(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",strong:"strong",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"dovi_tool",children:"dovi_tool"})}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.strong,{children:"dovi_tool"})," is a command line tool written in Rust combining multiple utilities for working with Dolby Vision."]}),"\n",(0,o.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,o.jsxs)(i.A,{children:[(0,o.jsxs)(a.A,{value:"unixlike",label:"Linux & macOS",children:[(0,o.jsxs)(t.p,{children:["You can download official pre-built binaries for Linux & macOS from ",(0,o.jsx)(t.a,{href:"https://github.com/quietvoid/dovi_tool/releases",children:"the GitHub Releases"}),", or you may compile the tool yourself via the instructions below."]}),(0,o.jsx)(t.p,{children:"Ensure you have Rust installed."}),(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-bash",children:'git clone https://github.com/quietvoid/dovi_tool.git\ncd dovi_tool\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})})]}),(0,o.jsxs)(a.A,{value:"windows",label:"Windows",children:[(0,o.jsxs)(t.p,{children:["You can download official pre-built binaries for Windows from ",(0,o.jsx)(t.a,{href:"https://github.com/quietvoid/dovi_tool/releases",children:"the GitHub Releases"}),", or you may compile the tool yourself via the instructions below."]}),(0,o.jsx)(t.p,{children:"Ensure you have Rust installed."}),(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-pwsh",children:"git clone https://github.com/quietvoid/dovi_tool.git\ncd dovi_tool\nset RUSTFLAGS=-C target-cpu=native \ncargo build --release\n"})})]})]}),"\n",(0,o.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-bash",metastring:'title="General usage"',children:"dovi_tool [OPTIONS] \n"})}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-bash",metastring:'title="Get more options for a subcommand"',children:"dovi_tool --help\n"})})]})}function p(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},9365:(e,t,n)=>{n.d(t,{A:()=>a});n(6540);var o=n(4164);const r={tabItem:"tabItem_Ymn6"};var i=n(4848);function a(e){let{children:t,hidden:n,className:a}=e;return(0,i.jsx)("div",{role:"tabpanel",className:(0,o.A)(r.tabItem,a),hidden:n,children:t})}},1470:(e,t,n)=>{n.d(t,{A:()=>y});var o=n(6540),r=n(4164),i=n(3104),a=n(6347),l=n(205),s=n(7485),u=n(1682),c=n(679);function d(e){return o.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,o.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:t,children:n}=e;return(0,o.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:o,default:r}}=e;return{value:t,label:n,attributes:o,default:r}}))}(n);return function(e){const t=(0,u.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,n])}function p(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function m(e){let{queryString:t=!1,groupId:n}=e;const r=(0,a.W6)(),i=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,s.aZ)(i),(0,o.useCallback)((e=>{if(!i)return;const t=new URLSearchParams(r.location.search);t.set(i,e),r.replace({...r.location,search:t.toString()})}),[i,r])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:r}=e,i=h(e),[a,s]=(0,o.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!p({value:t,tabValues:n}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const o=n.find((e=>e.default))??n[0];if(!o)throw new Error("Unexpected error: 0 tabValues");return o.value}({defaultValue:t,tabValues:i}))),[u,d]=m({queryString:n,groupId:r}),[b,f]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[r,i]=(0,c.Dv)(n);return[r,(0,o.useCallback)((e=>{n&&i.set(e)}),[n,i])]}({groupId:r}),v=(()=>{const e=u??b;return p({value:e,tabValues:i})?e:null})();(0,l.A)((()=>{v&&s(v)}),[v]);return{selectedValue:a,selectValue:(0,o.useCallback)((e=>{if(!p({value:e,tabValues:i}))throw new Error(`Can't select invalid tab value=${e}`);s(e),d(e),f(e)}),[d,f,i]),tabValues:i}}var f=n(2303);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=n(4848);function x(e){let{className:t,block:n,selectedValue:o,selectValue:a,tabValues:l}=e;const s=[],{blockElementScrollPositionUntilNextRender:u}=(0,i.a_)(),c=e=>{const t=e.currentTarget,n=s.indexOf(t),r=l[n].value;r!==o&&(u(t),a(r))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=s.indexOf(e.currentTarget)+1;t=s[n]??s[0];break}case"ArrowLeft":{const n=s.indexOf(e.currentTarget)-1;t=s[n]??s[s.length-1];break}}t?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":n},t),children:l.map((e=>{let{value:t,label:n,attributes:i}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:o===t?0:-1,"aria-selected":o===t,ref:e=>s.push(e),onKeyDown:d,onClick:c,...i,className:(0,r.A)("tabs__item",v.tabItem,i?.className,{"tabs__item--active":o===t}),children:n??t},t)}))})}function w(e){let{lazy:t,children:n,selectedValue:i}=e;const a=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===i));return e?(0,o.cloneElement)(e,{className:(0,r.A)("margin-top--md",e.props.className)}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,o.cloneElement)(e,{key:t,hidden:e.props.value!==i})))})}function j(e){const t=b(e);return(0,g.jsxs)("div",{className:(0,r.A)("tabs-container",v.tabList),children:[(0,g.jsx)(x,{...t,...e}),(0,g.jsx)(w,{...t,...e})]})}function y(e){const t=(0,f.A)();return(0,g.jsx)(j,{...e,children:d(e.children)},String(t))}},8453:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>l});var o=n(6540);const r={},i=o.createContext(r);function a(e){const t=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),o.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ee513c31.57d08833.js b/assets/js/ee513c31.57d08833.js new file mode 100644 index 000000000..c26dd3d43 --- /dev/null +++ b/assets/js/ee513c31.57d08833.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1137],{5540:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>p,frontMatter:()=>s,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"utilities/dovi_tool","title":"dovi_tool","description":"dovi_tool is a command line tool written in Rust combining multiple utilities for working with Dolby Vision.","source":"@site/docs/utilities/dovi_tool.mdx","sourceDirName":"utilities","slug":"/utilities/dovi_tool","permalink":"/docs/utilities/dovi_tool","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/dovi_tool.mdx","tags":[],"version":"current","sidebarPosition":9,"frontMatter":{"title":"dovi_tool","sidebar_position":9},"sidebar":"tutorialSidebar","previous":{"title":"FFMetrics","permalink":"/docs/utilities/FFMetrics"},"next":{"title":"eac3to","permalink":"/docs/utilities/eac3to"}}');var r=n(4848),i=n(8453),a=n(1470),l=n(9365);const s={title:"dovi_tool",sidebar_position:9},u="dovi_tool",c={},d=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2}];function h(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",strong:"strong",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"dovi_tool",children:"dovi_tool"})}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"dovi_tool"})," is a command line tool written in Rust combining multiple utilities for working with Dolby Vision."]}),"\n",(0,r.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,r.jsxs)(a.A,{children:[(0,r.jsxs)(l.A,{value:"unixlike",label:"Linux & macOS",children:[(0,r.jsxs)(t.p,{children:["You can download official pre-built binaries for Linux & macOS from ",(0,r.jsx)(t.a,{href:"https://github.com/quietvoid/dovi_tool/releases",children:"the GitHub Releases"}),", or you may compile the tool yourself via the instructions below."]}),(0,r.jsx)(t.p,{children:"Ensure you have Rust installed."}),(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:'git clone https://github.com/quietvoid/dovi_tool.git\ncd dovi_tool\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})})]}),(0,r.jsxs)(l.A,{value:"windows",label:"Windows",children:[(0,r.jsxs)(t.p,{children:["You can download official pre-built binaries for Windows from ",(0,r.jsx)(t.a,{href:"https://github.com/quietvoid/dovi_tool/releases",children:"the GitHub Releases"}),", or you may compile the tool yourself via the instructions below."]}),(0,r.jsx)(t.p,{children:"Ensure you have Rust installed."}),(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-pwsh",children:"git clone https://github.com/quietvoid/dovi_tool.git\ncd dovi_tool\nset RUSTFLAGS=-C target-cpu=native \ncargo build --release\n"})})]})]}),"\n",(0,r.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",metastring:'title="General usage"',children:"dovi_tool [OPTIONS] \n"})}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",metastring:'title="Get more options for a subcommand"',children:"dovi_tool --help\n"})})]})}function p(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},9365:(e,t,n)=>{n.d(t,{A:()=>a});n(6540);var o=n(4164);const r={tabItem:"tabItem_Ymn6"};var i=n(4848);function a(e){let{children:t,hidden:n,className:a}=e;return(0,i.jsx)("div",{role:"tabpanel",className:(0,o.A)(r.tabItem,a),hidden:n,children:t})}},1470:(e,t,n)=>{n.d(t,{A:()=>y});var o=n(6540),r=n(4164),i=n(3104),a=n(6347),l=n(205),s=n(7485),u=n(1682),c=n(679);function d(e){return o.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,o.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:t,children:n}=e;return(0,o.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:o,default:r}}=e;return{value:t,label:n,attributes:o,default:r}}))}(n);return function(e){const t=(0,u.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,n])}function p(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function m(e){let{queryString:t=!1,groupId:n}=e;const r=(0,a.W6)(),i=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,s.aZ)(i),(0,o.useCallback)((e=>{if(!i)return;const t=new URLSearchParams(r.location.search);t.set(i,e),r.replace({...r.location,search:t.toString()})}),[i,r])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:r}=e,i=h(e),[a,s]=(0,o.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!p({value:t,tabValues:n}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const o=n.find((e=>e.default))??n[0];if(!o)throw new Error("Unexpected error: 0 tabValues");return o.value}({defaultValue:t,tabValues:i}))),[u,d]=m({queryString:n,groupId:r}),[b,f]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[r,i]=(0,c.Dv)(n);return[r,(0,o.useCallback)((e=>{n&&i.set(e)}),[n,i])]}({groupId:r}),v=(()=>{const e=u??b;return p({value:e,tabValues:i})?e:null})();(0,l.A)((()=>{v&&s(v)}),[v]);return{selectedValue:a,selectValue:(0,o.useCallback)((e=>{if(!p({value:e,tabValues:i}))throw new Error(`Can't select invalid tab value=${e}`);s(e),d(e),f(e)}),[d,f,i]),tabValues:i}}var f=n(2303);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=n(4848);function x(e){let{className:t,block:n,selectedValue:o,selectValue:a,tabValues:l}=e;const s=[],{blockElementScrollPositionUntilNextRender:u}=(0,i.a_)(),c=e=>{const t=e.currentTarget,n=s.indexOf(t),r=l[n].value;r!==o&&(u(t),a(r))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=s.indexOf(e.currentTarget)+1;t=s[n]??s[0];break}case"ArrowLeft":{const n=s.indexOf(e.currentTarget)-1;t=s[n]??s[s.length-1];break}}t?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":n},t),children:l.map((e=>{let{value:t,label:n,attributes:i}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:o===t?0:-1,"aria-selected":o===t,ref:e=>s.push(e),onKeyDown:d,onClick:c,...i,className:(0,r.A)("tabs__item",v.tabItem,i?.className,{"tabs__item--active":o===t}),children:n??t},t)}))})}function w(e){let{lazy:t,children:n,selectedValue:i}=e;const a=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=a.find((e=>e.props.value===i));return e?(0,o.cloneElement)(e,{className:(0,r.A)("margin-top--md",e.props.className)}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:a.map(((e,t)=>(0,o.cloneElement)(e,{key:t,hidden:e.props.value!==i})))})}function j(e){const t=b(e);return(0,g.jsxs)("div",{className:(0,r.A)("tabs-container",v.tabList),children:[(0,g.jsx)(x,{...t,...e}),(0,g.jsx)(w,{...t,...e})]})}function y(e){const t=(0,f.A)();return(0,g.jsx)(j,{...e,children:d(e.children)},String(t))}},8453:(e,t,n)=>{n.d(t,{R:()=>a,x:()=>l});var o=n(6540);const r={},i=o.createContext(r);function a(e){const t=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),o.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ee8c27e3.1c988f9b.js b/assets/js/ee8c27e3.1c988f9b.js deleted file mode 100644 index 080ca62aa..000000000 --- a/assets/js/ee8c27e3.1c988f9b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9819],{3835:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>s,default:()=>u,frontMatter:()=>r,metadata:()=>l,toc:()=>a});var o=i(4848),t=i(8453);const r={title:"uvg266",sidebar_position:13},s="uvg266",l={id:"encoders/uvg266",title:"uvg266",description:"uvg266 is an open-source software encoder for encoding to the H.266 / VVC codec. Developed by the Ultra Video Group, written in C and licensed under BSD 3-clause.",source:"@site/docs/encoders/uvg266.mdx",sourceDirName:"encoders",slug:"/encoders/uvg266",permalink:"/docs/encoders/uvg266",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/uvg266.mdx",tags:[],version:"current",sidebarPosition:13,frontMatter:{title:"uvg266",sidebar_position:13},sidebar:"tutorialSidebar",previous:{title:"VVenC",permalink:"/docs/encoders/VVenC"},next:{title:"VTM",permalink:"/docs/encoders/VTM"}},c={},a=[{value:"Installation",id:"installation",level:2},{value:"Arch Linux",id:"arch-linux",level:3},{value:"Compiling",id:"compiling",level:3},{value:"10-bit Support",id:"10-bit-support",level:3},{value:"Usage",id:"usage",level:2},{value:"Troubleshooting",id:"troubleshooting",level:2}];function d(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"uvg266",children:"uvg266"})}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.a,{href:"https://github.com/ultravideo/uvg266/",children:"uvg266"})," is an open-source software encoder for encoding to the ",(0,o.jsx)(n.a,{href:"/docs/video/VVC",children:"H.266 / VVC"})," codec. Developed by the ",(0,o.jsx)(n.a,{href:"https://ultravideo.fi/",children:"Ultra Video Group"}),", written in C and licensed under BSD 3-clause.\nThe encoder is based on ",(0,o.jsx)(n.a,{href:"/docs/encoders/Kvazaar",children:"Kvazaar"}),", their open source ",(0,o.jsx)(n.a,{href:"/docs/video/HEVC",children:"HEVC"})," encoder solution."]}),"\n",(0,o.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,o.jsx)(n.h3,{id:"arch-linux",children:"Arch Linux"}),"\n",(0,o.jsxs)(n.p,{children:["uvg266 is available in the Arch User Repository (AUR) as ",(0,o.jsx)(n.code,{children:"uvg266"})," and ",(0,o.jsx)(n.code,{children:"uvg266-git"}),"."]}),"\n",(0,o.jsx)(n.h3,{id:"compiling",children:"Compiling"}),"\n",(0,o.jsx)(n.p,{children:"Ultra Video Group does not ship any pre-built binaries of their encoders so you'll have to compile them yourself."}),"\n",(0,o.jsxs)(n.p,{children:["Windows users are recommended to compile via MinGW-W64 which comes with ",(0,o.jsx)(n.a,{href:"https://msys2.org/",children:"MSYS2"}),"."]}),"\n",(0,o.jsx)(n.admonition,{type:"caution",children:(0,o.jsx)(n.p,{children:"Compilation requires GNU Make and CMake"})}),"\n",(0,o.jsxs)(n.admonition,{type:"tip",children:[(0,o.jsx)(n.p,{children:"The following build procedure should work across all common operating systems. Using Clang instead of GCC works."}),(0,o.jsxs)(n.p,{children:["You may add ",(0,o.jsx)(n.code,{children:'-DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt" -DCMAKE_C_FLAGS_INIT="-flto=8 -static"'})," in CMake for better performance."]})]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/ultravideo/uvg266.git\ncd uvg266/build\ncmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=0\nmake -j 8\n"})}),"\n",(0,o.jsxs)(n.p,{children:["Binaries will be available in the same folder (",(0,o.jsx)(n.code,{children:"build"}),"), or you can run ",(0,o.jsx)(n.code,{children:"make install"})," on Linux to install (May need elevated permissions)."]}),"\n",(0,o.jsx)(n.h3,{id:"10-bit-support",children:"10-bit Support"}),"\n",(0,o.jsxs)(n.p,{children:["You need to compile with ",(0,o.jsx)(n.code,{children:"-DUVG_BIT_DEPTH=10"})," in the CMake ",(0,o.jsx)(n.code,{children:"-DCMAKE_C_FLAGS"})," option to enable support for encoding 10-bit videos."]}),"\n",(0,o.jsx)(n.p,{children:"For example:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:'-DCMAKE_C_FLAGS="-DUVG_BIT_DEPTH=10"\n'})}),"\n",(0,o.jsx)(n.p,{children:"With native optimizations:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",children:'-DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt -DUVG_BIT_DEPTH=10"\n'})}),"\n",(0,o.jsx)(n.admonition,{type:"warning",children:(0,o.jsx)(n.p,{children:"Encoding 10-bit with uvg266 is significantly slower as the developers only prioritized SIMD optimizations for 8-bit, and can get really buggy."})}),"\n",(0,o.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Simple Y4M input with QP 20 and raw 266 bitstream output"',children:"uvg266 -i input.y4m --input-file-format y4m --qp 20 -o output.266\n"})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="Preset slow, CRF 20, Y4M input"',children:"uvg266 -i input.y4m --input-file-format y4m --qp 20 --preset slow -o output.266\n"})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-bash",metastring:'title="FFmpeg piping"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | uvg266 -i - --input-file-format y4m --qp 20 --preset slow -o output.266\n"})}),"\n",(0,o.jsx)(n.h2,{id:"troubleshooting",children:"Troubleshooting"}),"\n",(0,o.jsxs)(n.ol,{children:["\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.code,{children:"Could not find a strategy for crc32c_8x8!"})," - You're out of luck, uvg266 failed to initialize its block partitioning strategy for your specific CPU instruction set, so you ",(0,o.jsx)(n.strong,{children:"can't use the encoder or encode that specific video"}),"."]}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>l});var o=i(6540);const t={},r=o.createContext(t);function s(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:s(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ee8c27e3.bedb0161.js b/assets/js/ee8c27e3.bedb0161.js new file mode 100644 index 000000000..8654c694b --- /dev/null +++ b/assets/js/ee8c27e3.bedb0161.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9819],{5892:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>u,frontMatter:()=>r,metadata:()=>o,toc:()=>a});const o=JSON.parse('{"id":"encoders/uvg266","title":"uvg266","description":"uvg266 is an open-source software encoder for encoding to the H.266 / VVC codec. Developed by the Ultra Video Group, written in C and licensed under BSD 3-clause.","source":"@site/docs/encoders/uvg266.mdx","sourceDirName":"encoders","slug":"/encoders/uvg266","permalink":"/docs/encoders/uvg266","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/uvg266.mdx","tags":[],"version":"current","sidebarPosition":13,"frontMatter":{"title":"uvg266","sidebar_position":13},"sidebar":"tutorialSidebar","previous":{"title":"VVenC","permalink":"/docs/encoders/VVenC"},"next":{"title":"VTM","permalink":"/docs/encoders/VTM"}}');var t=i(4848),s=i(8453);const r={title:"uvg266",sidebar_position:13},l="uvg266",c={},a=[{value:"Installation",id:"installation",level:2},{value:"Arch Linux",id:"arch-linux",level:3},{value:"Compiling",id:"compiling",level:3},{value:"10-bit Support",id:"10-bit-support",level:3},{value:"Usage",id:"usage",level:2},{value:"Troubleshooting",id:"troubleshooting",level:2}];function d(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"uvg266",children:"uvg266"})}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://github.com/ultravideo/uvg266/",children:"uvg266"})," is an open-source software encoder for encoding to the ",(0,t.jsx)(n.a,{href:"/docs/video/VVC",children:"H.266 / VVC"})," codec. Developed by the ",(0,t.jsx)(n.a,{href:"https://ultravideo.fi/",children:"Ultra Video Group"}),", written in C and licensed under BSD 3-clause.\nThe encoder is based on ",(0,t.jsx)(n.a,{href:"/docs/encoders/Kvazaar",children:"Kvazaar"}),", their open source ",(0,t.jsx)(n.a,{href:"/docs/video/HEVC",children:"HEVC"})," encoder solution."]}),"\n",(0,t.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,t.jsx)(n.h3,{id:"arch-linux",children:"Arch Linux"}),"\n",(0,t.jsxs)(n.p,{children:["uvg266 is available in the Arch User Repository (AUR) as ",(0,t.jsx)(n.code,{children:"uvg266"})," and ",(0,t.jsx)(n.code,{children:"uvg266-git"}),"."]}),"\n",(0,t.jsx)(n.h3,{id:"compiling",children:"Compiling"}),"\n",(0,t.jsx)(n.p,{children:"Ultra Video Group does not ship any pre-built binaries of their encoders so you'll have to compile them yourself."}),"\n",(0,t.jsxs)(n.p,{children:["Windows users are recommended to compile via MinGW-W64 which comes with ",(0,t.jsx)(n.a,{href:"https://msys2.org/",children:"MSYS2"}),"."]}),"\n",(0,t.jsx)(n.admonition,{type:"caution",children:(0,t.jsx)(n.p,{children:"Compilation requires GNU Make and CMake"})}),"\n",(0,t.jsxs)(n.admonition,{type:"tip",children:[(0,t.jsx)(n.p,{children:"The following build procedure should work across all common operating systems. Using Clang instead of GCC works."}),(0,t.jsxs)(n.p,{children:["You may add ",(0,t.jsx)(n.code,{children:'-DCMAKE_CXX_FLAGS="-flto -O3 -march=native" -DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt" -DCMAKE_C_FLAGS_INIT="-flto=8 -static"'})," in CMake for better performance."]})]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"git clone https://github.com/ultravideo/uvg266.git\ncd uvg266/build\ncmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=0\nmake -j 8\n"})}),"\n",(0,t.jsxs)(n.p,{children:["Binaries will be available in the same folder (",(0,t.jsx)(n.code,{children:"build"}),"), or you can run ",(0,t.jsx)(n.code,{children:"make install"})," on Linux to install (May need elevated permissions)."]}),"\n",(0,t.jsx)(n.h3,{id:"10-bit-support",children:"10-bit Support"}),"\n",(0,t.jsxs)(n.p,{children:["You need to compile with ",(0,t.jsx)(n.code,{children:"-DUVG_BIT_DEPTH=10"})," in the CMake ",(0,t.jsx)(n.code,{children:"-DCMAKE_C_FLAGS"})," option to enable support for encoding 10-bit videos."]}),"\n",(0,t.jsx)(n.p,{children:"For example:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'-DCMAKE_C_FLAGS="-DUVG_BIT_DEPTH=10"\n'})}),"\n",(0,t.jsx)(n.p,{children:"With native optimizations:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:'-DCMAKE_C_FLAGS="-flto -O3 -march=native -pipe -fno-plt -DUVG_BIT_DEPTH=10"\n'})}),"\n",(0,t.jsx)(n.admonition,{type:"warning",children:(0,t.jsx)(n.p,{children:"Encoding 10-bit with uvg266 is significantly slower as the developers only prioritized SIMD optimizations for 8-bit, and can get really buggy."})}),"\n",(0,t.jsx)(n.h2,{id:"usage",children:"Usage"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Simple Y4M input with QP 20 and raw 266 bitstream output"',children:"uvg266 -i input.y4m --input-file-format y4m --qp 20 -o output.266\n"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="Preset slow, CRF 20, Y4M input"',children:"uvg266 -i input.y4m --input-file-format y4m --qp 20 --preset slow -o output.266\n"})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",metastring:'title="FFmpeg piping"',children:"ffmpeg -v error -i input.mkv -f yuv4mpegpipe -strict -1 - | uvg266 -i - --input-file-format y4m --qp 20 --preset slow -o output.266\n"})}),"\n",(0,t.jsx)(n.h2,{id:"troubleshooting",children:"Troubleshooting"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.code,{children:"Could not find a strategy for crc32c_8x8!"})," - You're out of luck, uvg266 failed to initialize its block partitioning strategy for your specific CPU instruction set, so you ",(0,t.jsx)(n.strong,{children:"can't use the encoder or encode that specific video"}),"."]}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>r,x:()=>l});var o=i(6540);const t={},s=o.createContext(t);function r(e){const n=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f4fea690.cf767130.js b/assets/js/f4fea690.cf767130.js new file mode 100644 index 000000000..a6a9f1aeb --- /dev/null +++ b/assets/js/f4fea690.cf767130.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4924],{6596:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>u,frontMatter:()=>s,metadata:()=>i,toc:()=>d});const i=JSON.parse('{"id":"encoders/JM","title":"JM","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/encoders/JM.mdx","sourceDirName":"encoders","slug":"/encoders/JM","permalink":"/docs/encoders/JM","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/JM.mdx","tags":[],"version":"current","sidebarPosition":17,"frontMatter":{"title":"JM","sidebar_position":17},"sidebar":"tutorialSidebar","previous":{"title":"HM","permalink":"/docs/encoders/HM"},"next":{"title":"aom-av1-lavish","permalink":"/docs/encoders/aom-av1-lavish"}}');var o=t(4848),r=t(8453);const s={title:"JM",sidebar_position:17},c="JM",a={},d=[];function l(e){const n={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"jm",children:"JM"})}),"\n",(0,o.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsxs)(n.p,{children:["JM is the original ",(0,o.jsx)(n.a,{href:"/docs/video/AVC",children:"H.264"})," reference encoder, predating alternatives like ",(0,o.jsx)(n.a,{href:"/docs/encoders/x264",children:"x264"}),". Since x264 became highly performant and perceptually driven, it joins other MPEG reference encoders such as ",(0,o.jsx)(n.a,{href:"/docs/encoders/HM",children:"HM"})," & ",(0,o.jsx)(n.a,{href:"/docs/encoders/VTM",children:"VTM"})," in their reputations for being highly niche offerings that are used rarely due to their usage complexity & speed disadvantages. x264 is generally more efficient than JM."]})]})}function u(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>c});var i=t(6540);const o={},r=i.createContext(o);function s(e){const n=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),i.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f4fea690.d2c6d21a.js b/assets/js/f4fea690.d2c6d21a.js deleted file mode 100644 index ee4197a1b..000000000 --- a/assets/js/f4fea690.d2c6d21a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4924],{278:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>a,contentTitle:()=>s,default:()=>u,frontMatter:()=>r,metadata:()=>c,toc:()=>d});var i=t(4848),o=t(8453);const r={title:"JM",sidebar_position:17},s="JM",c={id:"encoders/JM",title:"JM",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/encoders/JM.mdx",sourceDirName:"encoders",slug:"/encoders/JM",permalink:"/docs/encoders/JM",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/JM.mdx",tags:[],version:"current",sidebarPosition:17,frontMatter:{title:"JM",sidebar_position:17},sidebar:"tutorialSidebar",previous:{title:"HM",permalink:"/docs/encoders/HM"},next:{title:"aom-av1-lavish",permalink:"/docs/encoders/aom-av1-lavish"}},a={},d=[];function l(e){const n={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"jm",children:"JM"})}),"\n",(0,i.jsx)(n.admonition,{title:"Help Wanted",type:"danger",children:(0,i.jsxs)(n.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,i.jsx)(n.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,i.jsxs)(n.p,{children:["JM is the original ",(0,i.jsx)(n.a,{href:"/docs/video/AVC",children:"H.264"})," reference encoder, predating alternatives like ",(0,i.jsx)(n.a,{href:"/docs/encoders/x264",children:"x264"}),". Since x264 became highly performant and perceptually driven, it joins other MPEG reference encoders such as ",(0,i.jsx)(n.a,{href:"/docs/encoders/HM",children:"HM"})," & ",(0,i.jsx)(n.a,{href:"/docs/encoders/VTM",children:"VTM"})," in their reputations for being highly niche offerings that are used rarely due to their usage complexity & speed disadvantages. x264 is generally more efficient than JM."]})]})}function u(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>c});var i=t(6540);const o={},r=i.createContext(o);function s(e){const n=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),i.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f81c1134.0751ef83.js b/assets/js/f81c1134.0751ef83.js new file mode 100644 index 000000000..441b87866 --- /dev/null +++ b/assets/js/f81c1134.0751ef83.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8130],{7735:t=>{t.exports=JSON.parse("{\"archive\":{\"blogPosts\":[{\"id\":\"svt-av1-third-deep-dive\",\"metadata\":{\"permalink\":\"/blog/svt-av1-third-deep-dive\",\"source\":\"@site/blog/2024-11-14-svt-av1-deep-dive3-v2-2-x.mdx\",\"title\":\"Better late than never: SVT-AV1 v2.2.x Deep Dive\",\"description\":\"How does SVT-AV1 2.2.x stack up against the encoder previous version?\",\"date\":\"2024-11-14T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"video\",\"permalink\":\"/blog/tags/video\"},{\"inline\":true,\"label\":\"compression\",\"permalink\":\"/blog/tags/compression\"},{\"inline\":true,\"label\":\"benchmarks\",\"permalink\":\"/blog/tags/benchmarks\"}],\"readingTime\":77.835,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Trix\",\"title\":\"Encoder\",\"url\":\"https://github.com/trixoniisama/\",\"image_url\":\"https://avatars.githubusercontent.com/u/93526043\",\"imageURL\":\"https://avatars.githubusercontent.com/u/93526043\",\"socials\":{},\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"Better late than never: SVT-AV1 v2.2.x Deep Dive\",\"description\":\"How does SVT-AV1 2.2.x stack up against the encoder previous version?\",\"slug\":\"svt-av1-third-deep-dive\",\"authors\":[{\"name\":\"Trix\",\"title\":\"Encoder\",\"url\":\"https://github.com/trixoniisama/\",\"image_url\":\"https://avatars.githubusercontent.com/u/93526043\",\"imageURL\":\"https://avatars.githubusercontent.com/u/93526043\"}],\"tags\":[\"video\",\"compression\",\"benchmarks\"],\"image\":\"/img/svt-2.2.x-testing-blog-image.webp\",\"hide_table_of_contents\":false},\"unlisted\":false,\"nextItem\":{\"title\":\"Codec Wiki: One Year Later\",\"permalink\":\"/blog/codec-wiki-one-year-later\"}},\"content\":\"import { CarouselGenerator, TabbedCarouselGenerator } from '../src/utils/ImageCarousel.mdx';\\n\\n\\nSVT-AV1 v2.2.0 was released in late August and a minor version v2.2.1 followed suit to adress some bugs. This blog post will focus on comparing this new encoder version to the last, on the basis of benchmarks and visual comparisons. We will quantify the new trade-offs between compression efficiency and encoding speed, so you can choose the right balance for your projects. Our metrics of choice today will be SSIMULACRA2 and XPSNR, used in conjonction with a revised methodology.\\n\\n\x3c!--truncate--\x3e\\n\\n## Feedback\\n\\nThe biggest missed opportunity of the previous SVT-AV1 deep dives was the absence of visual comparisons. Indeed, metrics may be convenient for easily quantifying differences between encoder versions or encoding parameters, but they fail to give the information of how much these differences matter for your eyes. However, making properly useful visual comparisons isn't an easy task. Comparing two encodes of varying bitrates will bias the result against one or the other, which is not desirable. Figuring out the best way to present these comparisons and making the appropriate scripts took me weeks. Gathering all the necessary data, crafting the comparisons and proceeding to a double-checking pass took me another few weeks. These reasons explain why this blog post took so long to release, but I hope it will have been worth the wait! On that note though, I have been uploading thousands of png screenshots to *slow.pics* and I ended up rate-limited. This has prevented me from uploading the visual comparisons for preset 11, 12 and some of 10. I'm actively trying to fix this situation, so please understand. \\n\\nAnother reason for this taking so long was my decision to increase the amount of video samples while increasing the amount of CRF values tested. A grand total of 3682 encodes were done for this blog post alone, in the span of around two weeks, where my PC would be exclusively encoding 24/7. Send help.\\n\\nAlso, the graphs will now be using the harmonic mean instead of the arithmetic mean. Indeed, arithmetic mean scores fail to account for deviations and outliers. Using the harmonic mean implies low-scoring frames have more weight towards the final score, which adds a consistency component to the picture. That's not it though! Consistency is capital in an enjoyable watching experience. As such, each graph now possesses a SSIMULACRA2 (Harmonic) version, a XPSNR (Harmonic) version and a SSIMULACRA2 (Standard Deviation) version, in order to closely monitor variations in consistency between presets.\\n\\nLastly, the biggest complaint I have received is me exclusively using anime clips. The reason for that is pretty simple: I mostly encode anime content on my free time and am myself very little interested in other types of media. However, these blog posts have grown in exposure and I understand a majority of people is more concerned about the performance of encoders on live action content or gaming clips. Thus, this new blog post is comprised of 3 live action clips, 2 gaming clips and 2 anime clips! See the sacrifices I'm making for y'all?\\n\\n## Methodology\\n\\nThe resources provided will include both graphs and image comparisons. Graphs offer a straightforward, objective look at efficiency across encoder parameters, using metrics as benchmarks for performance. In contrast, image comparisons display actual samples from encoded files, allowing you to assess quality firsthand. This adds a subjective dimension to the comparisons, giving you a more nuanced understanding of each preset's impact on visual quality.\\n\\n\x3c!--truncate--\x3e\\n\\nThe testing methodology involves using relatively short video samples with a wide range of content types, uncompressed to the y4m file format for ease of use. These lossless files are *directly* fed to SvtAv1EncApp, implying the performance of a single encoder instance is what's being measured here. A more serious AV1 encoding pipeline should probably be leveraging a chunked encoding approach, especially on higher core count systems. Once an encode is done, SSIMULACRA2 scores are calculated using the [Zig implementation](https://github.com/dnjulek/vapoursynth-ssimulacra2), XPSNR scores on the other hand are calculated using a [ffmpeg filter](https://github.com/fraunhoferhhi/xpsnr), and the data is then aggregated into a final Harmonic or Standard Deviation score to create the graphs for this benchmark. The Constant Rate Factor (CRF) is plotted against encoding time, and the metrics scores against encode size (bitrate). The former may represent the efficiency as defined by the speed achieved at a certain quality target. For the latter, Bits Per Pixel scores (BPP) are calculated so that the `Metric / BPP` graphs may represent the compression efficiency, normalized by resolution.\\n\\nHow to read the graphs? For the compression efficiency ones, the closer to the top left the better. For the encoding speed ones, the closer to the left the faster. For the standard deviation ones, the closer to the bottom left the better.\\n\\nThe clips used in this test were acquired legally. The Codec Wiki and its contributors do not endorse media piracy.\\n\\nSvtAv1EncApp was compiled directly from the [v2.1.2 and v2.2.1 source code](https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/) using Clang 18.1.8 and the provided `Build/linux/build.sh` script with the following command: `build.sh cc=clang cxx=clang++ jobs=$(nproc) enable-lto static native release`. The testing machine is comprised of an i3 12100 in its stock configuration, with 2x8GB of 3200MHz CL14 DDR4 RAM, in Arch Linux with kernel 6.9.12 and the performance governor enabled. All encodes have been made in the same session without rebooting.\\n\\nI want to give a disclaimer concerning encoding speeds. Contrary to the efficiency results which should be reproducible independantly of the machine, measuring speed is a pretty difficult endeavor, with increased risks for errors. The performance numbers I mention may differ for you depending on the hardware configuration at hand.\\n\\nThis testing was conducted within the [AV1 Weeb Edition](https://discord.gg/83dRFDFDp7) Discord server, which is focused on encoding animated content in AV1.\\n\\n## Samples & Encoding Settings\\n\\nThe samples are as follows:\\n- 17s `Avatar The Way Of Water (trailer 3)` clip sourced from [thedigitaltheater.com](https://thedigitaltheater.com/category/movie-trailers/lossless-movie-trailers/) (1916x804p, 23.976fps).\\n- 6s `Ducks Take Off` clip sourced from [xiph.org](https://media.xiph.org/video/derf/) (1280x720p, 50fps).\\n- 3s `Fallout 4` clip sourced from another encoder fellow (1920x1080p, 60fps).\\n- 8s `Minecraft` clip sourced from [xiph.org](https://media.xiph.org/video/derf/) (1920x1080p, 60fps).\\n- 8s `Sol Levante` HDR clip sourced from [opencontent.netflix.com](http://download.opencontent.netflix.com/?prefix=SolLevante/) (3840x2160p, 24fps). This one is pretty educative as SVT-AV1's behavior isn't influenced by the existence (or lack thereof) of HDR metadata in a source.\\n- 21s `Suzume (trailer 2)` clip sourced from [thedigitaltheater.com](https://thedigitaltheater.com/category/movie-trailers/lossless-movie-trailers/) (1920x808p, 23.976fps).\\n- 13s `The Mandalorian (trailer 2)` clip sourced from [thedigitaltheater.com](https://thedigitaltheater.com/category/movie-trailers/lossless-movie-trailers/) (1920x800p, 23.976fps).\\n\\n> **All clips have been encoded in a wide quality range, from `--crf 10` to `--crf 50`, by increments of 2, with the exception of preset -1 that uses increments of 4.**\\n\\n`--preset X --hierarchical-levels 4` are the only parameter used here, in conjunction with the CRF values. I have been asked to use `--hierarchical-levels 4` by fellow SVT-AV1-PSY developers to force smaller mini GOPs, more appropriate for testing.\\n\\nElse, the SVT-AV1 defaults were used. The ones worth mentioning are:\\n- `--tune 1`: tune PSNR\\n- `--aq-mode 2`: variance deltaq\\n- `--enable-qm 0`: quantisation matrices disabled\\n- `--irefresh-type 2`: closed GOP\\n- `--enable-tf 1`: temporal filtering enabled\\nAnd more, like CDEF and restoration enabled, overlays and film-grain disabled...\\n\\n## Visual comparisons\\n\\n![comp_showcase](/img/comp_showcase.webp)\\n\\nThroughout this blog post, you\u2019ll find *slow.pics* links that provide various visual comparisons between presets.\\n\\n- The \u201cfull\u201d links offer comparisons across the entire quality range for each source.\\n- The HQ (High Quality), MQ (Medium Quality), and LQ (Low Quality) links showcase more targeted comparisons. These have been carefully handcrafted to be as size-normalized as possible, given the available encodes. We want to be focusing on encodes with minimal bitrate deviation for a fair comparison.\\n\\nFeel free to double-check the bitrate of each frame or scene to make a more informed observation, keeping the size difference in mind when comparing the encodes.\\n\\nUse the arrow keys and numpad to navigate between screenshots. Alternatively, you can click on \\\"Slider comparison\\\" and select two sources if you prefer comparing this way.\\n\\nWithout further ado, let's start with the first comparisons!\\n\\n## Presets comparisons (-1 -> 12)\\n\\n**In the following graphs, you may find comparisons between all SVT-AV1 presets, ranging from the slowest `--preset -1` to the fastest `--preset 12`.**\\n> Just like in __v2.1.x__, preset 6 and 13 do not exist in __v2.2.x__ and are instead mapped to preset 7 and 12 respectively.\\n\\n### Efficiency\\n\\n- First of all, the complete efficiency graphs:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nYou may notice something odd going on with the Avatar results using XPSNR. I have tried to understand the cause, without success. For the remainder of this blog post, the Avatar XPSNR results will be omitted. I will continue investigating and aim to have a workaround in place for next time.\\n\\nAnyway, this graph may be impressive, but difficult to read. So let's analyse different quality targets.\\n\\n- The same graphs but focusing on the \\\"high quality\\\" range (CRF10 -> 22):\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Same, but now focusing on the \\\"medium quality\\\" range (CRF24 -> 36):\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- And lastly, focusing on the \\\"low quality\\\" range (CRF38 -> 50):\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- If we now focus on __presets 4__ and below, where it's more difficult to discern the differences between presets, we get this at \\\"high quality\\\":\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- This at \\\"medium quality\\\":\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- And the following at \\\"low quality\\\":\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n### Speed\\n\\n- **Let's now compare the speed of all presets:**\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nUnusable, right?\\n\\n- Then, here is what it looks like with a logarithmic scale:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n### Interpretation\\n\\nIt appears as if once again **preset 2** through **preset 4** remain the most balanced presets all-around in an efficient encoding scenario, with **preset 3** not offering much improvements over **preset 4** in average scores but nicely improving on consistency instead, and **preset 2** offering a nice efficiency and consistency uplift on top.\\n\\nIn this release again, the quality gap between **preset 2** and **preset 1** is pretty narrow, and the speed penalty from **preset 1** onward continuously increases, ending up close to ~2x. In comparison, the penalty of going from **preset 3** to **preset 2** is closer to ~1.5x. As such, using **preset 1** is entering placebo territory and it is usually not recommended to waste precious encoding resources on **preset 0** and **preset -1**. This especially applies at medium to high quality, though at extremely low quality targets, like the CRF40-50 range, we can still see appreciable gains from these placebo presets in some clips.\\n\\nAs for the faster presets, **presets 5 to 10** are usually grouped on the graphs focusing on average scores and the ones focusing on consistency. They tend to stand apart from their slower counterparts by just a bit. Though **preset 10** can be worryingly close to **preset 11** on some occasions. They are all viable for your real-time needs. The rule is the same as usual: **go the slowest you can bear that still achieves your goal!**\\n\\n**Presets 11 and 12** are especially inefficient and inconsistent, and to be avoided at all costs. If possible, forget they even exist, as it's probably better to use a comparably fast (or faster) competing codec. They could still be of use in a convex-hull scenario, but in the case of realtime transcoding, you will be better off with some hardware solution like the ones found in RTX 4000 or Arc GPUs.\\n\\n### TLDR\\n\\nThe same conclusions as the previous blog posts can be made: \\n**clear quality gains can be observed as we decrease presets, until __preset 2__, however the effectiveness of dropping presets is noticeably less and less important as quality is increased.**\\n\\n## SVT-AV1 v2.1.x vs v2.2.x presets comparisons:\\n\\nIn this section, we\u2019ll examine the efficiency and speed differences across presets when upgrading from SVT-AV1 2.1.x to 2.2.x. This comparison should bring a new level of nuance to our results, highlighting both incremental improvements and any notable shifts in performance.\\n\\nSVT-AV1 __v2.1.x__ brought some nice improvements over __v2.0.0__, but does __v2.2.x__ bring appreciable improvements in the presets trade-offs this time around as well? Let's find out!\\n\\n### `preset -1`: v2.1.x vs v2.2.x\\n\\n- **Let's start things off with the battle of the placebos, with the Compression efficiency & consistency at \\\"high to medium-ish quality\\\" (CRF10 -> 30):**\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Along with the Compression efficiency & consistency at \\\"medium-ish to low quality\\\" (CRF34 -> 50):\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nBasically no changes at all, except a slight regression on Minecraft.\\n\\n- What about their speeds though?:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nWell **preset -1** basically became 15 to 25% faster, not bad at all!\\n\\n- Preset -1 visual comparisons:\\n\\n[Avatar (full)](https://slow.pics/c/LdIsYSua), [Avatar (HQ)](https://slow.pics/c/19Oi8pWw), [Avatar (LQ)](https://slow.pics/c/4Ir6SG5S)\\n\\n[Ducks (full)](https://slow.pics/c/BpxD7oZd), [Ducks (HQ)](https://slow.pics/c/qBdzKUFm), [Ducks (LQ)](https://slow.pics/c/XFaep0lc)\\n\\n[Fallout (full)](https://slow.pics/c/EOIoOoAQ), [Fallout (HQ)](https://slow.pics/c/lPg9yLv9), [Fallout (LQ)](https://slow.pics/c/FquLoNSq)\\n\\n[Minecraft (full)](https://slow.pics/c/XRHmsQOw), [Minecraft (HQ)](https://slow.pics/c/ZCzJfBUC), [Minecraft (LQ)](https://slow.pics/c/P0VLDoMT)\\n\\n[Sol Levante (full)](https://slow.pics/c/AQC1xzLS), [Sol Levante (HQ)](https://slow.pics/c/BCVbL7w2), [Sol Levante (LQ)](https://slow.pics/c/UwSQfopm)\\n\\n[Suzume (full)](https://slow.pics/c/Ab6bkcpS), [Suzume (HQ)](https://slow.pics/c/W9KlRAts), [Suzume (LQ)](https://slow.pics/c/6yHhAeM5)\\n\\n[The Mandalorian (full)](https://slow.pics/c/BAF89tjA), [The Mandalorian (HQ)](https://slow.pics/c/DkkK3GYV), [The Mandalorian (LQ)](https://slow.pics/c/xmZmIEar)\\n\\n### `preset 0`: v2.1.x vs v2.2.x\\n\\n- Compression efficiency & consistency graphs, high quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, medium quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, low quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nEfficiency wise, this new **preset 0** is close to unchanged from the old **preset 0**, but its consistency improved slightly in a few clips at high quality and decreased in one clip at low quality.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 0**'s speed sees an improvement of about 20% at best. Overall, **preset 0** got a proper upgrade!\\n\\n- Preset 0 visual comparisons:\\n\\n[Avatar (full)](https://slow.pics/c/7n5bAB2d), [Avatar (HQ)](https://slow.pics/c/AHmNT8Pw), [Avatar (MQ)](https://slow.pics/c/VC6lZr6D), [Avatar (LQ)](https://slow.pics/c/97SAuLaO)\\n\\n[Ducks (full)](https://slow.pics/c/m9iPnqqW), [Ducks (HQ)](https://slow.pics/c/gBXawmpH), [Ducks (MQ)](https://slow.pics/c/7dRVJzXD), [Ducks (LQ)](https://slow.pics/c/qshRSgnZ)\\n\\n[Fallout (full)](https://slow.pics/c/aq9eTZf5), [Fallout (HQ)](https://slow.pics/c/xu99HM0j), [Fallout (MQ)](https://slow.pics/c/eC0gzO7y), [Fallout (LQ)](https://slow.pics/c/pB9Ps3a6)\\n\\n[Minecraft (full)](https://slow.pics/c/aWbIxmgr), [Minecraft (HQ)](https://slow.pics/c/3jVGagWZ), [Minecraft (MQ)](https://slow.pics/c/MlYl7i4e), [Minecraft (LQ)](https://slow.pics/c/7MImyYc0)\\n\\n[Sol Levante (full)](https://slow.pics/c/SmDGEAPx), [Sol Levante (HQ)](https://slow.pics/c/ZiCgjlxE), [Sol Levante (MQ)](https://slow.pics/c/4GbaSzv6), [Sol Levante (LQ)](https://slow.pics/c/EPTFWHQI)\\n\\n[Suzume (full)](https://slow.pics/c/oVZqCWsl), [Suzume (HQ)](https://slow.pics/c/LqadqVGG), [Suzume (MQ)](https://slow.pics/c/TnD6CAyF), [Suzume (LQ)](https://slow.pics/c/CDuu3SOK)\\n\\n[The Mandalorian (full)](https://slow.pics/c/x8Sot0wg), [The Mandalorian (HQ)](https://slow.pics/c/idbPz3uh), [The Mandalorian (MQ)](https://slow.pics/c/OpFzXtjr), [The Mandalorian (LQ)](https://slow.pics/c/3d8gpuoo)\\n\\n### `preset 1`: v2.1.x vs v2.2.x\\n\\n- Compression efficiency & consistency graphs, high quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, medium quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, low quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 1** is mostly unchanged but sees another slight regression in Minecraft at high quality.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nDepending on the clip, speed is mostly unchanged or ever so slighty improved. **Preset 1** is a bit stagnant this release.\\n\\n- Preset 1 visual comparisons:\\n\\n[Avatar (full)](https://slow.pics/c/BnOX37oJ), [Avatar (HQ)](https://slow.pics/c/bWjBtTyR), [Avatar (MQ)](https://slow.pics/c/6UQKyNac), [Avatar (LQ)](https://slow.pics/c/NpyxU3uF)\\n\\n[Ducks (full)](https://slow.pics/c/KVX4piAj), [Ducks (HQ)](https://slow.pics/c/EsEpbKVY), [Ducks (MQ)](https://slow.pics/c/8AxTTvKw), [Ducks (LQ)](https://slow.pics/c/ZgW8715d)\\n\\n[Fallout (full)](https://slow.pics/c/xQprIMbB), [Fallout (HQ)](https://slow.pics/c/qRvBez7k), [Fallout (MQ)](https://slow.pics/c/taXnNGUx), [Fallout (LQ)](https://slow.pics/c/s6fbIqvr)\\n\\n[Minecraft (full)](https://slow.pics/c/cE86n2Gb), [Minecraft (HQ)](https://slow.pics/c/eOyUxHhq), [Minecraft (MQ)](https://slow.pics/c/tKPYsd9K), [Minecraft (LQ)](https://slow.pics/c/evfzJDjc)\\n\\n[Sol Levante (full)](https://slow.pics/c/BSzecR9N), [Sol Levante (HQ)](https://slow.pics/c/mWIoU45b), [Sol Levante (MQ)](https://slow.pics/c/geYXLoIY), [Sol Levante (LQ)](https://slow.pics/c/QzSjaYXF)\\n\\n[Suzume (full)](https://slow.pics/c/pBVidgiB), [Suzume (HQ)](https://slow.pics/c/5KtTXd3q), [Suzume (MQ)](https://slow.pics/c/lb0yMDhZ), [Suzume (LQ)](https://slow.pics/c/TipcRRJr)\\n\\n[The Mandalorian (full)](https://slow.pics/c/4ouGFV9s), [The Mandalorian (HQ)](https://slow.pics/c/oxPNsHdU), [The Mandalorian (MQ)](https://slow.pics/c/EPju5ULC), [The Mandalorian (LQ)](https://slow.pics/c/e58LmgFm)\\n\\n### `preset 2`: v2.1.x vs v2.2.x\\n\\n- Compression efficiency & consistency graphs, high quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, medium quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, low quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 2**'s efficiency has regressed at high quality on some clips, improved in some and stayed the same in others. Except in one clip, consistency seems to have improved all around. At low to medium quality targets, efficiency is mostly unchanged, same for consistency. Not exactly noteworthy.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nSpeed was improved by about 10-20%. Not a bad showcase, for sure.\\n\\n- Preset 2 visual comparisons:\\n\\n[Avatar (full)](https://slow.pics/c/CJg3dsFg), [Avatar (HQ)](https://slow.pics/c/71wpH5eB), [Avatar (MQ)](https://slow.pics/c/AN0syhNv), [Avatar (LQ)](https://slow.pics/c/NRocyEay)\\n\\n[Ducks (full)](https://slow.pics/c/NyGfMRpQ), [Ducks (HQ)](https://slow.pics/c/OAqs5b8k), [Ducks (MQ)](https://slow.pics/c/tQSF50Ro), [Ducks (LQ)](https://slow.pics/c/gJjm3BGl)\\n\\n[Fallout (full)](https://slow.pics/c/snQuTi1f), [Fallout (HQ)](https://slow.pics/c/0rLG3TUT), [Fallout (MQ)](https://slow.pics/c/MMX6DgNz), [Fallout (LQ)](https://slow.pics/c/lwoIkLfm)\\n\\n[Minecraft (full)](https://slow.pics/c/5OYsrhGY), [Minecraft (HQ)](https://slow.pics/c/kCwbA7Ir), [Minecraft (MQ)](https://slow.pics/c/1nnyrvjD), [Minecraft (LQ)](https://slow.pics/c/F1RTfQf7)\\n\\n[Sol Levante (full)](https://slow.pics/c/xduJGoTU), [Sol Levante (HQ)](https://slow.pics/c/8SdKLegQ), [Sol Levante (MQ)](https://slow.pics/c/uHNR7DNz), [Sol Levante (LQ)](https://slow.pics/c/wgZgH7w6)\\n\\n[Suzume (full)](https://slow.pics/c/zC4AEMLt), [Suzume (HQ)](https://slow.pics/c/kGip9wuY), [Suzume (MQ)](https://slow.pics/c/aoQ0m9ms), [Suzume (LQ)](https://slow.pics/c/7ZMT3inc)\\n\\n[The Mandalorian (full)](https://slow.pics/c/8BKkJ4du), [The Mandalorian (HQ)](https://slow.pics/c/XQeD7vfY), [The Mandalorian (MQ)](https://slow.pics/c/6rQMASQR), [The Mandalorian (LQ)](https://slow.pics/c/Jl2Fh5wE)\\n\\n### `preset 3`: v2.1.x vs v2.2.x\\n\\n- Compression efficiency & consistency graphs, high quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, medium quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, low quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nPractically, it's a wash.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nStill, **preset 3** got slightly faster, I'm happy to report this is a speedup!\\n\\n- Preset 3 visual comparisons:\\n\\n[Avatar (full)](https://slow.pics/c/Vql4MJWQ), [Avatar (HQ)](https://slow.pics/c/Iuqp0Zbz), [Avatar (MQ)](https://slow.pics/c/MuTOEHE9), [Avatar (LQ)](https://slow.pics/c/poiDDJRQ)\\n\\n[Ducks (full)](https://slow.pics/c/mqWOgsYF), [Ducks (HQ)](https://slow.pics/c/16L6HyaH), [Ducks (MQ)](https://slow.pics/c/KaoPy7ae), [Ducks (LQ)](https://slow.pics/c/0L84OWnI)\\n\\n[Fallout (full)](https://slow.pics/c/JuXAjSY6), [Fallout (HQ)](https://slow.pics/c/mR5rJfsU), [Fallout (MQ)](https://slow.pics/c/Zpy7Hzds), [Fallout (LQ)](https://slow.pics/c/GeQrpfhp)\\n\\n[Minecraft (full)](https://slow.pics/c/rBCbaJkx), [Minecraft (HQ)](https://slow.pics/c/AJHQ4KNL), [Minecraft (MQ)](https://slow.pics/c/MYLA8KPH), [Minecraft (LQ)](https://slow.pics/c/aEMnRk7D)\\n\\n[Sol Levante (full)](https://slow.pics/c/F7rmPiaW), [Sol Levante (HQ)](https://slow.pics/c/PYO4K4sy), [Sol Levante (MQ)](https://slow.pics/c/viWYsgX7), [Sol Levante (LQ)](https://slow.pics/c/4NBaUoEX)\\n\\n[Suzume (full)](https://slow.pics/c/d15XbowQ), [Suzume (HQ)](https://slow.pics/c/eS6EQKng), [Suzume (MQ)](https://slow.pics/c/IJtLW35Z), [Suzume (LQ)](https://slow.pics/c/zf352iox)\\n\\n[The Mandalorian (full)](https://slow.pics/c/UrAekqg6), [The Mandalorian (HQ)](https://slow.pics/c/WWgygRS4), [The Mandalorian (MQ)](https://slow.pics/c/ry5sPqmB), [The Mandalorian (LQ)](https://slow.pics/c/6wI4wexZ)\\n\\n### `preset 4`: v2.1.x vs v2.2.x\\n\\n- Compression efficiency & consistency graphs, high quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, medium quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, low quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 4** sees a consistent though small improvement in average scores and standard deviation accross the entire quality range on basically all clips.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nUnfortunately, it got slower as a result. If you remember, **v2.1.0** did the exact contrary over **v2.0.0**, I wonder if **preset 4** simply took back the place it previously had...\\n\\n- Preset 4 visual comparisons:\\n\\n[Avatar (full)](https://slow.pics/c/ArdO4K7R), [Avatar (HQ)](https://slow.pics/c/88ikqaZn), [Avatar (MQ)](https://slow.pics/c/rM6LRBg0), [Avatar (LQ)](https://slow.pics/c/ofmHWCkv)\\n\\n[Ducks (full)](https://slow.pics/c/HVkqo5G3), [Ducks (HQ)](https://slow.pics/c/w44DNiqe), [Ducks (MQ)](https://slow.pics/c/GlRLCaBt), [Ducks (LQ)](https://slow.pics/c/Lkzi1VBU)\\n\\n[Fallout (full)](https://slow.pics/c/44jtBEqw), [Fallout (HQ)](https://slow.pics/c/G9YPifBb), [Fallout (MQ)](https://slow.pics/c/86m4exaw), [Fallout (LQ)](https://slow.pics/c/m4KHBihZ)\\n\\n[Minecraft (full)](https://slow.pics/c/n9OP2sht), [Minecraft (HQ)](https://slow.pics/c/JohJ3MzJ), [Minecraft (MQ)](https://slow.pics/c/e6b8R24h), [Minecraft (LQ)](https://slow.pics/c/xNwNlmAG)\\n\\n[Sol Levante (full)](https://slow.pics/c/vB7ndGZI), [Sol Levante (HQ)](https://slow.pics/c/R5uENbD5), [Sol Levante (MQ)](https://slow.pics/c/i7eV72sl), [Sol Levante (LQ)](https://slow.pics/c/zUMYarNf)\\n\\n[Suzume (full)](https://slow.pics/c/rgmuB5xB), [Suzume (HQ)](https://slow.pics/c/y9rxWVre), [Suzume (MQ)](https://slow.pics/c/4GhRL8gZ), [Suzume (LQ)](https://slow.pics/c/F3Hq8V9z)\\n\\n[The Mandalorian (full)](https://slow.pics/c/3BAR5P80), [The Mandalorian (HQ)](https://slow.pics/c/s2xzApJd), [The Mandalorian (MQ)](https://slow.pics/c/Ihjks1JO), [The Mandalorian (LQ)](https://slow.pics/c/JjGKUO1r)\\n\\n### `preset 5`: v2.1.x vs v2.2.x\\n\\n- Compression efficiency & consistency graphs, high quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, medium quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, low quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nBoth metrics say **preset 5** regressed slightly to moderately, though surprisingly its consistency is basically unchanged.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nThe result of this regression is an impressive speedup of up to 25%.\\n\\n- Preset 5 visual comparisons:\\n\\n[Avatar (full)](https://slow.pics/c/Lc8HjJBK), [Avatar (HQ)](https://slow.pics/c/r3gJkCv3), [Avatar (MQ)](https://slow.pics/c/k2TwNLHN), [Avatar (LQ)](https://slow.pics/c/cMlNo17a)\\n\\n[Ducks (full)](https://slow.pics/c/X4EZFJcM), [Ducks (HQ)](https://slow.pics/c/zKLphp19), [Ducks (MQ)](https://slow.pics/c/dYs1snV3), [Ducks (LQ)](https://slow.pics/c/JFtne5WV)\\n\\n[Fallout (full)](https://slow.pics/c/9ye1q9Rm), [Fallout (HQ)](https://slow.pics/c/zhEuOjRc), [Fallout (MQ)](https://slow.pics/c/YmZ3aRLO), [Fallout (LQ)](https://slow.pics/c/9ye1q9Rm)\\n\\n[Minecraft (full)](https://slow.pics/c/kyjcJWxt), [Minecraft (HQ)](https://slow.pics/c/UTWgYc3P), [Minecraft (MQ)](https://slow.pics/c/FtOxX3RH), [Minecraft (LQ)](https://slow.pics/c/jNyqLPgP)\\n\\n[Sol Levante (full)](https://slow.pics/c/ipyfREjA), [Sol Levante (HQ)](https://slow.pics/c/73V8CGKk), [Sol Levante (MQ)](https://slow.pics/c/z8P9UokS), [Sol Levante (LQ)](https://slow.pics/c/OPwerF86)\\n\\n[Suzume (full)](https://slow.pics/c/xfsYGM5C), [Suzume (HQ)](https://slow.pics/c/dL2J923D), [Suzume (MQ)](https://slow.pics/c/OhZNMzjx), [Suzume (LQ)](https://slow.pics/c/XFCnEebJ)\\n\\n[The Mandalorian (full)](https://slow.pics/c/xrO227rQ), [The Mandalorian (HQ)](https://slow.pics/c/m7Yky6EK), [The Mandalorian (MQ)](https://slow.pics/c/pN0cH6Yn), [The Mandalorian (LQ)](https://slow.pics/c/vB9zK9iz)\\n\\n### ~~`preset 6`: v2.1.x vs v2.2.x~~\\n\\n**Preset 6** is mapped to **preset 7** in **v2.2.x**.\\n\\n### `preset 7`: v2.1.x vs v2.2.x\\n\\n- Compression efficiency & consistency graphs, high quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, medium quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, low quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 7** is close to unchanged in **v2.2.x**.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nIt still got some slight to moderate speedups though, which can be appreciated.\\n\\n- Preset 7 visual comparisons:\\n\\n[Avatar (full)](https://slow.pics/c/YtvMG9X6), [Avatar (HQ)](https://slow.pics/c/P0gF7nbQ), [Avatar (MQ)](https://slow.pics/c/syT6uiVt), [Avatar (LQ)](https://slow.pics/c/zkkv1ePp)\\n\\n[Ducks (full)](https://slow.pics/c/pyVQmAWj), [Ducks (HQ)](https://slow.pics/c/eXSNnqV7), [Ducks (MQ)](https://slow.pics/c/ja7d0sFU), [Ducks (LQ)](https://slow.pics/c/JCTFfcMu)\\n\\n[Fallout (full)](https://slow.pics/c/S6SbCW8x), [Fallout (HQ)](https://slow.pics/c/bWCLQWwV), [Fallout (MQ)](https://slow.pics/c/hvauusst), [Fallout (LQ)](https://slow.pics/c/04LVSbGD)\\n\\n[Minecraft (full)](https://slow.pics/c/mh8VUfrO), [Minecraft (HQ)](https://slow.pics/c/P0pIx6XP), [Minecraft (MQ)](https://slow.pics/c/vnrXVajs), [Minecraft (LQ)](https://slow.pics/c/8WKQdw2N)\\n\\n[Sol Levante (full)](https://slow.pics/c/kH9LcEzG), [Sol Levante (HQ)](https://slow.pics/c/1DWCNq2B), [Sol Levante (MQ)](https://slow.pics/c/clxjB7Uw), [Sol Levante (LQ)](https://slow.pics/c/52wLF7NR)\\n\\n[Suzume (full)](https://slow.pics/c/3VlVk3O9), [Suzume (HQ)](https://slow.pics/c/FKel5bhI), [Suzume (MQ)](https://slow.pics/c/XXiyyCNN), [Suzume (LQ)](https://slow.pics/c/rrBoua68)\\n\\n[The Mandalorian (full)](https://slow.pics/c/unxuKHEK), [The Mandalorian (HQ)](https://slow.pics/c/GMXnxSdA), [The Mandalorian (MQ)](https://slow.pics/c/v8wSN90W), [The Mandalorian (LQ)](https://slow.pics/c/fswh5kCT)\\n\\n### `preset 8`: v2.1.x vs v2.2.x\\n\\n- Compression efficiency & consistency graphs, high quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, medium quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, low quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nThe efficiency and consistency of **preset 8** has improved at high quality.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nAnd we can observe a speed increase of around 10%. Some crazy speed deviations can be noticed in Sol Levante. \\n\\n- Preset 8 visual comparisons:\\n\\n[Avatar (full)](https://slow.pics/c/8tKOAvGN), [Avatar (HQ)](https://slow.pics/c/YLWgqmxU), [Avatar (MQ)](https://slow.pics/c/pDg4gLry), [Avatar (LQ)](https://slow.pics/c/ADFSsXmP)\\n\\n[Ducks (full)](https://slow.pics/c/ug0TVcoF), [Ducks (HQ)](https://slow.pics/c/WiDmtcVZ), [Ducks (MQ)](https://slow.pics/c/ERVfuYHH), [Ducks (LQ)](https://slow.pics/c/I0N97rQw)\\n\\n[Fallout (full)](https://slow.pics/c/MqVzmFIi), [Fallout (HQ)](https://slow.pics/c/jUoB0PGo), [Fallout (MQ)](https://slow.pics/c/hXGIfwVj), [Fallout (LQ)](https://slow.pics/c/QUy3iX2H)\\n\\n[Minecraft (full)](https://slow.pics/c/frkuJR97), [Minecraft (HQ)](https://slow.pics/c/GayEkyrn), [Minecraft (MQ)](https://slow.pics/c/S36Ha8LP), [Minecraft (LQ)](https://slow.pics/c/lxoYsv8k)\\n\\n[Sol Levante (full)](https://slow.pics/c/YupMFGeu), [Sol Levante (HQ)](https://slow.pics/c/evfWqxZ9), [Sol Levante (MQ)](https://slow.pics/c/Juh027Eq), [Sol Levante (LQ)](https://slow.pics/c/ETPf9ppU)\\n\\n[Suzume (full)](https://slow.pics/c/oeFUWMHd), [Suzume (HQ)](https://slow.pics/c/01vzYfnq), [Suzume (MQ)](https://slow.pics/c/BIL4g7zk), [Suzume (LQ)](https://slow.pics/c/boxyyeZN)\\n\\n[The Mandalorian (full)](https://slow.pics/c/57M6RHM0), [The Mandalorian (HQ)](https://slow.pics/c/8WJcnZfU), [The Mandalorian (MQ)](https://slow.pics/c/M7q5PYz8), [The Mandalorian (LQ)](https://slow.pics/c/ctoke6p1)\\n\\n### `preset 9`: v2.1.x vs v2.2.x\\n\\n- Compression efficiency & consistency graphs, high quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, medium quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, low quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nEfficiency and consistency stayed mostly the same.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nSpeed improved by a few percents at most. **Preset 9** has stagnated over **v2.1.x**.\\n\\n- Preset 9 visual comparisons:\\n\\n[Avatar (full)](https://slow.pics/c/P3zZKVF0), [Avatar (HQ)](https://slow.pics/c/sL4HPZLa), [Avatar (MQ)](https://slow.pics/c/QOxyI9h0), [Avatar (LQ)](https://slow.pics/c/RfLKIRjj)\\n\\n[Ducks (full)](https://slow.pics/c/aj6SVcIZ), [Ducks (HQ)](https://slow.pics/c/UpnejngN), [Ducks (MQ)](https://slow.pics/c/KJRzl3FY), [Ducks (LQ)](https://slow.pics/c/4mMq9sz3)\\n\\n[Fallout (full)](https://slow.pics/c/vHqlIJBK), [Fallout (HQ)](https://slow.pics/c/XHoe9Udp), [Fallout (MQ)](https://slow.pics/c/tukibDud), [Fallout (LQ)](https://slow.pics/c/cV57jRF9)\\n\\n[Minecraft (full)](https://slow.pics/c/XRT1OYnX), [Minecraft (HQ)](https://slow.pics/c/HqtoRlvV), [Minecraft (MQ)](https://slow.pics/c/Ml2rLjvO), [Minecraft (LQ)](https://slow.pics/c/EGCsqcSl)\\n\\n[Sol Levante (full)](https://slow.pics/c/8URvlnba), [Sol Levante (HQ)](https://slow.pics/c/jPFT5hMG), [Sol Levante (MQ)](https://slow.pics/c/92EZO3U3), [Sol Levante (LQ)](https://slow.pics/c/bWgcvUtj)\\n\\n[Suzume (full)](https://slow.pics/c/yA2y0v92), [Suzume (HQ)](https://slow.pics/c/pAPBbl7r), [Suzume (MQ)](https://slow.pics/c/7hTvbMy1), [Suzume (LQ)](https://slow.pics/c/arrDGAd9)\\n\\n[The Mandalorian (full)](https://slow.pics/c/KQHqkAVZ), [The Mandalorian (HQ)](https://slow.pics/c/UzdN0rSC), [The Mandalorian (MQ)](https://slow.pics/c/dxKpfcvs), [The Mandalorian (LQ)](https://slow.pics/c/FPJAf74J)\\n\\n### `preset 10`: v2.1.x vs v2.2.x\\n\\n- Compression efficiency & consistency graphs, high quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, medium quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, low quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 10** received the most efficiency and consistency improvements out of all presets in this release. What will be the cost of such drastic change though?\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nWell, not that much all things considered! **Preset 10**'s speed did decrease from barely anything to 20% in the most extreme situation, but its improvements well outshine its speed regression. Overall, **preset 11** went from borderline unusable to becoming an interesting new fast real-time preset. This is pretty huge in my opinion, as it offers a new kind of trade-off no other AV1 encoder or prior SVT-AV1 versions did.\\n\\n- Preset 10 visual comparisons:\\n\\n[Avatar (full)](https://slow.pics/c/8GjtQQAm), [Avatar (HQ)](https://slow.pics/c/FriwG6rw), [Avatar (MQ)](https://slow.pics/c/vqau9jk1), [Avatar (LQ)](https://slow.pics/c/WQTbcWvH)\\n\\n[Ducks (full)](https://slow.pics/c/xYotraaP), [Ducks (HQ)](https://slow.pics/c/HHlwCvwc), [Ducks (MQ)](https://slow.pics/c/bgV6MoQz), [Ducks (LQ)](https://slow.pics/c/bOAyMVUk)\\n\\n[Fallout (full)](https://slow.pics/c/MrYTMHoQ), [Fallout (HQ)](https://slow.pics/c/qL9xmCfI), [Fallout (MQ)](https://slow.pics/c/dwdE0pWt), [Fallout (LQ)](https://slow.pics/c/uo7Ztb5f)\\n\\n[Minecraft (full)](https://slow.pics/c/fICToF3E), [Minecraft (HQ)](https://slow.pics/c/cGBhBsaS), [Minecraft (MQ)](https://slow.pics/c/w1P4LAu5), [Minecraft (LQ)](https://slow.pics/c/rNqRWd61)\\n\\n[Sol Levante (full)](https://slow.pics/c/UyMpDhx0), [Sol Levante (HQ)](https://slow.pics/c/b0B7ndsZ), [Sol Levante (MQ)](https://slow.pics/c/3H4ewpMI), [Sol Levante (LQ)](https://slow.pics/c/wpCnz72u)\\n\\n[Suzume (full)](https://slow.pics/c/ZYoFdtdS), [Suzume (HQ)](https://slow.pics/c/L2z8yEd5), ~~Suzume (MQ)~~, ~~Suzume (LQ)~~\\n\\n[The Mandalorian (full)](https://slow.pics/c/NhYFWBzc), ~~The Mandalorian (HQ)~~, ~~The Mandalorian (MQ)~~, ~~The Mandalorian (LQ)~~\\n\\n### `preset 11`: v2.1.x vs v2.2.x\\n\\n- Compression efficiency & consistency graphs, high quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, medium quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, low quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nThe new **preset 11** places itself between the old **preset 11** and the old **preset 12** efficiency and consistency wise. \\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nUnsurprisingly, its speed is also in-between the old **preset 11** and the old **preset 12**. I'm unsure this new trade-off helps in anything.\\n\\n### `preset 12`: v2.1.x vs v2.2.x\\n\\n- Compression efficiency & consistency graphs, high quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, medium quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Compression efficiency & consistency graphs, low quality range:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n stddev: {\\n label: 'STD DEV',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 12** is almost unchanged from the previous release.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nSame speed wise. So, no improvements at all for the two fastest presets. They remain all around very bad performers. In hindsight, it doesn't matter that I couldn't upload the **preset 11 & 12** visual comparisons, because there is literally nothing to see.\\n\\n### ~~`preset 13`: v2.1.x vs v2.2.x~~\\n\\n**Preset 13** is mapped to **preset 12** in **v2.2.x**.\\n\\n### TLDR\\n\\nWith **v2.2.x**, we observed new efficiency/speed trade-offs for a good amount of presets.\\nSome presets, like **-1** and **0**, received significant speed improvements at no efficiency cost. **Presets 3 and 7** received more reasonable speedups. **Presets 2, 8 and 11** have seen new trade-offs that are mostly beneficial. **Preset 10** was deeply revamped and replaces **preset 9** in my book as the fastest, still viable, real-time preset. **Preset 4** seems to have returned to the state it was in **v2.0.0**. On the other hand, **preset 5** seemed to have regressed slightly, and **presets 1, 9 and 12** are basically unchanged from **v2.1.x**.\\n\\n## Conclusion\\n\\nThe release of SVT-AV1 **v2.2.x** brings some welcome speed improvements. **Presets 2 through 4** continue to lead in efficiency for AV1 encoding, delivering top-tier quality and compression. Meanwhile, **presets 5 through 10** offer solid alternatives for those who find **presets 2 through 4** too slow, balancing quality with noticeably faster encoding times.\\n\\nHopefully, this comprehensive third deep dive has given you a helpful starting point for choosing settings when encoding with ~~the latest~~ SVT-AV1(-PSY) v2.2.x.\\n\\n## Future\\n\\nOnce more, this testing focused on establishing the new presets dynamics, however I haven't revisited the different SVT-AV1 parameters since **v1.8.0**. A few meaningful features have been added since, like variance boost, and with this overhauled methodology, the conclusion made in that blog post may be different now. I think it will be worth to revisit this in the future, maybe in the next blog post for **v2.3.0**? \\nYes, I'm fully aware I'm late because **v2.3.0** has already been out for two whole weeks. Even if the frontend of this blog post doesn't seem to have radically changed, my entire workflow has tremendously evolved since last time. It may have taken me since mid-August to manage to complete this blog post, but my efforts should allow me to produce a follow-up faster.\\n\\nI am conscious of this blog post's limitations. First of all, I observed some odd behaviors from XPSNR on certain clips which I haven't been able to pinpoint yet. It would also give me nonsensical standard deviation results, which is the reason why only the standard deviation in SSIMU2 scores was given. Second of all, SVT-AV1's own behavior starts to get messy when you approach the SSIMULACRA2 0 score, rendering all the data in that region pretty much useless. Plus, aggregating these metrics scores take forever, so I'm looking into ways to accelerate the process, for instance by offloading the work to my GPU using [turbo-metrics](https://github.com/Gui-Yom/turbo-metrics). Also, I'm stuck between wanting to increase the amount of data points in each graphs to get more detailed results and having to keep everything readable. This time around I had to seperate each graph into three quality levels, but that's already too much for my liking. I will look into improving myself on the data presentation front. I feel like I have to streamline this formula to make it more digestible for everyone.\\n\\nPlease, I'm open to **your** remarks and suggestions to improve on this blog post formula.\\n\\nThat said, here are my plans for future blog posts:\\n- a follow-up v2.3.0 article that also revisits the useful SVT-AV1 parameters. *__I'm planning for this to release before 2025.__*\\n- an article focused on giving you encoding tips and explaining common AV1 encoding knowlegde is still planned for *someday*.\\n- a *future* article focused on observing the evolution of all software AV1 encoders since the beginning of their development, as well as comparisons with vpxenc, AVM (development ground for AV2) and VVenC.\\n- and many more...\\n\\nThanks for reading!\\n\\n*Support me by making a donation on [my Ko-Fi page](https://ko-fi.com/nekotrix), as a reward for my efforts and to compensate for the electricity bills of two whole weeks of non-stop encoding.*\\n\\n{}\"},{\"id\":\"codec-wiki-one-year-later\",\"metadata\":{\"permalink\":\"/blog/codec-wiki-one-year-later\",\"source\":\"@site/blog/2024-07-20-codec-wiki-one-year-later.mdx\",\"title\":\"Codec Wiki: One Year Later\",\"description\":\"Codec's Wiki turbulent one-year journey since it's inception to everyone's go-to site for encoding documentation.\",\"date\":\"2024-07-20T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"anniversary\",\"permalink\":\"/blog/tags/anniversary\"},{\"inline\":true,\"label\":\"history\",\"permalink\":\"/blog/tags/history\"}],\"readingTime\":3.785,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"socials\":{},\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"Codec Wiki: One Year Later\",\"description\":\"Codec's Wiki turbulent one-year journey since it's inception to everyone's go-to site for encoding documentation.\",\"slug\":\"codec-wiki-one-year-later\",\"authors\":[{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\"}],\"tags\":[\"anniversary\",\"history\"],\"hide_table_of_contents\":false},\"unlisted\":false,\"prevItem\":{\"title\":\"Better late than never: SVT-AV1 v2.2.x Deep Dive\",\"permalink\":\"/blog/svt-av1-third-deep-dive\"},\"nextItem\":{\"title\":\"AV1 for Dummies\",\"permalink\":\"/blog/av1-for-dummies\"}},\"content\":\"Around a month ago, Codec Wiki celebrates it's very first anniversary as it officially hits one year old (Wow, that's a very long time!).\\r\\n\\r\\n\x3c!--truncate--\x3e\\r\\n\\r\\nFirst and foremost, I apologize for this delayed celebration post, I have been very busy for the past month, y'know, real life things. Second of all, I would like to say **THANK YOU** for everyone who helped build this wiki from the ground up and writing down the entries, you know who you are!\\r\\n\\r\\n## Stats\\r\\n\\r\\nThanks to everyone's efforts, over the course of 12 months Codec Wiki has grown into the (almost) go-to documentation and guide for newcomers just starting out in the quirky and wild world of multimedia encoding. So here are some pretty graphs to look at our progress so far!\\r\\n\\r\\n### Plausible\\r\\n\\r\\nAs you may know, we run our own Plausible Analytics instance. Which is a self-hosted, open source, and privacy-respecting analytics. Currently hosted in Singapore and available for everyone to view [here](https://analytics.x266.mov/wiki.x266.mov).\\r\\n\\r\\n\\r\\n \\r\\n \\\"Plausible\\r\\n\\r\\n\\r\\n7.7K unique total visitors for a whole year may not be much but it's a great start!\\r\\n\\r\\nLet's not forget those who use uBlock Origin or similar to block the analytics script. So the visitor count could be two or three times more!\\r\\n\\r\\n\\r\\n### Google Search Console\\r\\n\\r\\nFor those who are unfamiliar, Google Search Console is used for viewing well.. Google search data for your website. This data is unfortunately private and only the owner and those invited can see the data, no setting available for public view. Probably for the better.\\r\\n\\r\\n\\r\\n \\r\\n \\\"Google\\r\\n\\r\\n



\\r\\n\\r\\nAnd for our top 10 search queries in the last 28 days:\\r\\n\\r\\n\\r\\n \\r\\n \\\"Search\\r\\n\\r\\n\\r\\n \\r\\n \\\"Search\\r\\n\\r\\n



\\r\\n\\r\\nWith pretty much zero competition in this niche of a market, it skyrocketed Codec Wiki to the top of search results for everything multimedia related \ud83d\ude05.\\r\\n\\r\\n\\r\\n## A Brief History\\r\\n\\r\\nAround a year ago, I started work on an unofficial \\\"wiki\\\" for all things encoding, it initially started as a half-serious joke because I was annoyed there were no good documentation available\\r\\nanywhere on the internet on the real application and usage of encoders such as \\\"Should I use tune SSIM in x encoder?\\\". With the search results you'll be presented with being one or more of these:\\r\\n\\r\\n- Doesn't exist.\\r\\n- Mentioned in the FFmpeg mailing list but nothing else.\\r\\n- PDF research papers on IEEE and similar.\\r\\n- Outdated information on Doom9 or Multimedia Wiki.\\r\\n- \\\"The documentation are in the code blocks\\\".\\r\\n- Link rot.\\r\\n- Abandoned, or mostly focused on other topics.\\r\\n- Focused on a specific type of storytelling medium.\\r\\n- Actual good explanation in an old forgotten site (rare).\\r\\n\\r\\nSome or maybe even most of these results still appear up to this day.\\r\\n\\r\\n\\r\\nFrustrated with how scarce information is available on the open internet and combined with the fact that most, if not all of them only exist in non-search-engine-reachable private chat communities such as Discord where you'll have to join and scroll around older conversations.\\r\\n\\r\\nProne to data erasure as Discord can nuke these servers for whatever reason they please and years of \\\"documentation\\\" is lost in an instant. It is simply not a good platform for a plethora of valuable information.\\r\\n\\r\\n**That's why I took initiative.**\\r\\n\\r\\n\\r\\n## Bumps in the Road\\r\\n\\r\\nThere were also generally a lot of distrust and pushbacks when this project first began, particularly from those who are more experienced with encoding. Which is understandable because everyone who attempted before burned out and never finished it.\\r\\n\\r\\nBut Codec Wiki stood the test of time with constant updates through active collaboration of everyone involved, nowadays those voices have mostly subsided or even joined the project themselves. And I am grateful for that.\\r\\n\\r\\n\\r\\n## Closing Statement\\r\\n\\r\\nOnce again, **THANK YOU VERY MUCH** for those who are involved in this project and making the once pipe dream of a one-stop-shop user-friendly documentation for encoding into something that's possible.\\r\\n\\r\\nLet's continue documenting the most crucial yet invisible driving force of internet traffic, pages by pages.\\r\\n\\r\\nTogether we are strong, divided we burn out.\\r\\n\\r\\n\\r\\n

\\r\\n> \\\"There are times when a critic truly risks something, and that is the discovery and defense of the *new*. **The world is often unkind to new talent, new creations. The new needs friends**.\\\"\\r\\n>\\r\\n> \u2014 Anton Ego\"},{\"id\":\"av1-for-dummies\",\"metadata\":{\"permalink\":\"/blog/av1-for-dummies\",\"source\":\"@site/blog/2024-06-24-av1-for-dummies-2.mdx\",\"title\":\"AV1 for Dummies\",\"description\":\"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.\",\"date\":\"2024-06-24T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"video\",\"permalink\":\"/blog/tags/video\"},{\"inline\":true,\"label\":\"compression\",\"permalink\":\"/blog/tags/compression\"}],\"readingTime\":16.645,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Gianni Rosato\",\"title\":\"Maintainer\",\"url\":\"https://github.com/gianni-rosato\",\"image_url\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"socials\":{},\"key\":null,\"page\":null},{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"socials\":{},\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"AV1 for Dummies\",\"description\":\"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.\",\"slug\":\"av1-for-dummies\",\"authors\":[{\"name\":\"Gianni Rosato\",\"title\":\"Maintainer\",\"url\":\"https://github.com/gianni-rosato\",\"image_url\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/35711760?v=4\"},{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\"}],\"tags\":[\"video\",\"compression\"],\"image\":\"/img/av1_for_dummies_guide.jpg\",\"hide_table_of_contents\":false},\"unlisted\":false,\"prevItem\":{\"title\":\"Codec Wiki: One Year Later\",\"permalink\":\"/blog/codec-wiki-one-year-later\"},\"nextItem\":{\"title\":\"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive\",\"permalink\":\"/blog/svt-av1-second-deep-dive\"}},\"content\":\"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.\\n\\n\x3c!--truncate--\x3e\\n\\n![Compare](/img/av1_for_dummies_guide.avif)\\n\\n## Introduction\\n\\n[AV1](https://wiki.x266.mov/docs/video/AV1) is a royalty-free video codec developed by the Alliance for Open Media. It is designed to replace [VP9](https://wiki.x266.mov/docs/video/VP9) and presently competes with [H.266](https://wiki.x266.mov/docs/video/VVC). AV1 is known for its high compression efficiency, which the marketing will have you believe reduces file sizes by up to 50% compared to [H.264](https://wiki.x266.mov/docs/video/AVC) and up to 30% compared to [H.265](https://wiki.x266.mov/docs/video/HEVC) across the board. It is supported by several major browsers and is widely used across many streaming services and video platforms.\\n\\n### Why AV1?\\n\\nBefore we dive in, it is important to understand *why* you may want to use AV1 instead of other codecs. The reality is that AV1 is *not* better than H.264/5 in every single scenario; video encoding is a complicated field, and the best codec for you will depend on your specific needs. AV1 excels in:\\n- Low to medium-high fidelity encoding\\n- Higher resolution encoding\\n- Encoding content with very little grain or noise\\n- Slow, non-realtime contexts (e.g. offline encoding)\\n\\nThe enumeration above still consists of broad strokes, but the point is to understand that AV1 is not a silver bullet. It will not automatically make your videos smaller while preserving your desired quality. To make things more difficult, the [x264](https://wiki.x266.mov/docs/encoders/x264) & [x265](https://wiki.x266.mov/docs/encoders/x265) encoders are very mature, while AV1 encoding efforts designed to meet the extremely complicated needs of the human eye are still in their infancy.\\n\\nThis guide focuses almost entirely on tools great for offline, non-realtime encoding for various kinds of content. Streaming is an altogether different application of AV1, and is only covered sparsely here.\\n\\n### Do's & Don'ts\\n\\nDue to a lot of misunderstandings about codecs and compression, there are a lot of common misconceptions that are held regarding video encoding. We'll start by outlining some bad practices:\\n\\n- **Don't** encode the same video multiple times. This is a common mistake made by people new to video encoding. Every time you encode a video, you lose additional quality due to *generation loss*. This is because video codecs are lossy, and every time you encode a video, you lose more information. This is why it is important to keep the original video file if you frequently re-encode it.\\n- **Don't** blindly copy settings from others without understanding them. What works for one person's content and workflow may not work for yours. Even the default settings on many encoders are not optimal for most content.\\n- **Don't** assume that higher bitrate equates to better quality. Inefficient encoding can waste bits without improving visual quality, and efficient encoding can make lower bitrate video look drastically better than higher bitrate video using the same codec.\\n- **Don't** assume all encoders/presets/settings/implementations are created equal. Even given two encoding frameworks that use the same underlying encoder, you may achieve different results given encoder version mismatches or subtly different settings used under the hood.\\n- **Don't** use unnecessarily slow presets/speeds unless you have a specific need and ample time. While slower presets improve encoding efficiency most of the time, the quality gains reach a point of diminishing returns beyond a certain point. Use the slowest preset you can tolerate, not the slowest preset available.\\n- **Don't** blindly trust metric scores. It is unfortunate how trusted [VMAF](https://wiki.x266.mov/docs/metrics/VMAF) is considering how infrequently it correlates with visual fidelity in practice now that it has become so popular. Even the beloved [SSIMULACRA2](https://wiki.x266.mov/docs/metrics/SSIMULACRA2) is not a perfect one-to-one with the human eye.\\n\\nNow, let's move on to some **good** practices:\\n- Experiment with different settings and compare the results.\\n- Consider your content type when choosing encoding settings. Film, animation, and sports all have different characteristics that benefit from distinct approaches.\\n- Try to use CRF for offline encoding, as opposed to CBR or VBR. While the latter two are effective for precisely targeting a particular bitrate, CRF is more effective at targeting a specific quality level efficiently.\\n- Always use 10-bit color, even with an 8-bit source. AV1's internal workings are much more suited to 10-bit color, and you are almost always guaranteed quality improvements with zero compatibility penalty as 10-bit color is part of AV1's baseline profile.\\n- Consider using grain synthesis for grainy content, as AV1 can struggle with preserving film grain efficiently.\\n- Keep your encoding software up-to-date; the encoding world moves quickly.\\n\\n## Tools\\n\\nSince writing the last guide, there are now several versatile tools available for AV1 encoding. Below, we've assembled some tables of popular encoding tools and their features.\\n\\n### GUI\\n\\nHere's the key:\\n- **Encoder(s)**: The AV1 encoder(s) the software uses or is able to use. This is between [SVT-AV1](https://wiki.x266.mov/docs/encoders/SVT-AV1), [aomenc](https://wiki.x266.mov/docs/encoders/aomenc), [rav1e](https://wiki.x266.mov/docs/encoders/rav1e), [SVT-AV1-PSY](https://wiki.x266.mov/docs/encoders/SVT-AV1-PSY), and various aomenc forks. We'll get into this more later.\\n- **Ease of Use**: How intuitive the software is, especially for beginners.\\n- **Complexity**: How flexible the software can be for advanced users.\\n- **Efficiency**: How \\\"good\\\" the underlying encoder(s) are. This is more subjective, but tools with bad defaults, misleading options, or slow release cycles won't score well here.\\n\\n| Name | Platform(s) | Encoder(s) | Ease of Use | Complexity | Efficiency |\\n|---------|-------------|:----------:|:-----------:|:-----------:|------------|\\n| [Aviator](https://wiki.x266.mov/docs/utilities/Aviator) | Linux | SVT-AV1-PSY| \u25cf\u25cf\u25cf\u25cf\u25cf | \u25cf\u25cb\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cf |\\n| [NMKODER](https://wiki.x266.mov/docs/utilities/nmkoder) | Windows | Any | \u25cf\u25cf\u25cf\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cb | \u25cf\u25cf\u25cb\u25cb\u25cb |\\n| [Av1ation Station](https://github.com/Av1ation-Association/Av1ation-Creations/releases/) | Any | Any | \u25cf\u25cf\u25cf\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cf | \u25cf\u25cf\u25cf\u25cf\u25cb |\\n| [StaxRip](https://github.com/staxrip/staxrip) | Windows | Any | \u25cf\u25cf\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cf | \u25cf\u25cf\u25cf\u25cf\u25cb |\\n| [NEAV1E](https://github.com/Alkl58/NotEnoughAV1Encodes) | Windows | Any | \u25cf\u25cf\u25cf\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cb\u25cb | \u25cf\u25cf\u25cb\u25cb\u25cb |\\n| [Handbrake](https://handbrake.fr/) | Any | SVT-AV1 | \u25cf\u25cf\u25cf\u25cf\u25cb | \u25cf\u25cf\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cb\u25cb\u25cb |\\n| [FastFlix](https://github.com/cdgriffith/FastFlix) | Any | Any | \u25cf\u25cf\u25cf\u25cf\u25cb | \u25cf\u25cf\u25cf\u25cb\u25cb | \u25cf\u25cf\u25cb\u25cb\u25cb |\\n| [rAV1ator](https://wiki.x266.mov/docs/utilities/rav1ator) | Linux | rav1e | \u25cf\u25cf\u25cf\u25cf\u25cb | \u25cf\u25cf\u25cf\u25cb\u25cb | \u25cf\u25cb\u25cb\u25cb\u25cb |\\n| [Autocompressor](https://autocompressor.net/) | Web | SVT-AV1 | \u25cf\u25cf\u25cf\u25cf\u25cf | \u25cf\u25cb\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cb\u25cb |\\n\\nOur top pics are:\\n- For beginners: **Aviator**. If you are on Linux and you want zero hassle whatsoever, Aviator is simple but highly effective. As a Flatpak application, it ships a bundled SVT-AV1-PSY binary that is up-to-date, compiled efficiently, and handled with extensively tested defaults. It is hard to go wrong with Aviator even as an advanced user, despite its simplicity.\\n- For advanced users: **Av1ation Station**. Av1ator Station is thoughtfully designed to be your one-stop shop for video encoding. Even though it is brand new, it has proven itself to be a capable and reliable solution for advanced video encoders that have a lot of settings to tweak and encodes to keep track of.\\n- For Windows users: **StaxRip**. StaxRip is a long-standing, well-maintained, and highly flexible video encoding tool that supports a plethora of encoders and formats. It comes bundled with SVT-AV1-PSY and is a great choice for Windows users who want a powerful and versatile tool for video encoding.\\n\\n### CLI\\n\\nIn the terminal, advanced encoders can explore a much greater degree of complexity than many GUIs allow. That being said, ease of use is still a consideration when managing complex command-line encoding workflows. Let's begin with the key:\\n- We're omitting the \\\"Platform(s)\\\" column here, as this section targets Linux users. As a Windows user, WSL has you covered - as a Mac user, you're likely to experience parity with Linux (most of the time).\\n\\n| Name | Framework(s) | Ease of Use | Complexity | Features | Scene Detection |\\n|------|--------------|:-----------:|:----------:|:--------:|:---------------:|\\n| SvtAv1EncApp | None | \u25cf\u25cb\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cb\u25cb\u25cb | \u25cf\u25cb\u25cb\u25cb\u25cb | No |\\n| [FFmpeg](https://wiki.x266.mov/docs/utilities/ffmpeg) | Itself | \u25cf\u25cf\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cf | \u25cf\u25cf\u25cf\u25cf\u25cb | No |\\n| [Av1an](https://wiki.x266.mov/docs/utilities/av1an) | FFmpeg | \u25cf\u25cb\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cf | \u25cf\u25cf\u25cf\u25cb\u25cb | Yes |\\n| [rAV1ator CLI](https://wiki.x266.mov/docs/utilities/rav1ator-cli) | Av1an | \u25cf\u25cf\u25cf\u25cf\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cb | Yes |\\n| [alabamaEncoder](https://github.com/kingstefan26/alabamaEncoder) | FFmpeg | \u25cf\u25cf\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cf | \u25cf\u25cf\u25cf\u25cf\u25cf | Yes |\\n\\nOur top picks are:\\n- For beginners: **rAV1ator CLI**. rAV1ator CLI essentially walks you through the process of writing Av1an commands. It can install binaries for you, save your previous commands, and detect scenes via Av1an. This makes it a great choice for beginners who want to learn the ropes of AV1 encoding without diving into the deep end headfirst. For advanced users, it makes rapidly writing, testing, & cataloging Av1an encoding commands much simpler.\\n- For advanced users: **alabamaEncoder**. alabamaEncoder is a powerful and flexible tool that allows you to encode video with FFmpeg and AV1. It is highly configurable and supports a mind-bending array of powerful features that would be hard to find elsewhere. While the tool is still new, it is already a great choice for advanced users who want to push the boundaries of what is possible to incorporate into an encoding workflow.\\n\\n### Conclusion\\n\\nIn conclusion, the best AV1 tool for you will depend on your needs and experience level. If you are a beginner, Aviator is a great choice for Linux users, while StaxRip is a good option for Windows users. For advanced users, Av1ation Station is a powerful and versatile tool that can handle numerous encoding tasks. If you prefer the command line, rAV1ator CLI is a great choice for beginners, while alabamaEncoder is a powerful tool for advanced users. No matter which tool you choose, it is hard to go wrong in the modern AV1 encoding landscape when it comes to your utility of choice.\\n\\n## Encoders\\n\\nThe world of AV1 encoding is diverse and complex, with several open-source encoders available, each bringing its own set of strengths, weaknesses, and unique features to the table. In this section, we'll dive deep into the characteristics of four major AV1 encoders:\\n1. SVT-AV1,\\n2. rav1e,\\n3. aomenc (libaom), and\\n4. SVT-AV1-PSY\\n\\nUnderstanding these encoders is crucial for making informed decisions about what best suits your specific encoding needs.\\n\\n### SVT-AV1\\n\\n[SVT-AV1](https://wiki.x266.mov/docs/encoders/SVT-AV1) (Scalable Video Technology for AV1) is an AV1 encoder library and application developed by Intel, Netflix, and others. It has gained significant popularity in the encoding community due to its impressive balance of speed, quality, and scalability.\\n\\nLinks:\\n- Wiki page: [SVT-AV1](https://wiki.x266.mov/docs/encoders/SVT-AV1)\\n- Git repository: https://gitlab.com/AOMediaCodec/SVT-AV1\\n- Documentation: https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/README.md\\n\\n1. **Performance & Scalability**\\n - SVT-AV1 is renowned for its encoding speed, particularly at higher speed presets.\\n - It leverages parallel processing, making it exceptionally efficient on multi-core systems. Fun fact: SVT-AV1's parallel processing is lossless, so it doesn't compromise quality for speed.\\n\\n2. **Quality-to-Speed Ratio**\\n - SVT-AV1 strikes an impressive balance between encoding speed and output quality.\\n - At faster presets, it usually outperforms other encoders in quality per unit of encoding time.\\n - While it may not achieve the absolute highest *quality per bit* possible, its quality is generally considered impressive for its speed.\\n\\n3. **Flexibility**\\n - SVT-AV1 offers a wide range of encoding options and presets, allowing fine-tuned control over the encoding process.\\n - It provides 14 presets (0-13), with 0 being the slowest and highest quality, and 13 being the fastest but lowest quality.\\n - Advanced options allow users to adjust parameters like hierarchical levels, intra-refresh type, and tuning modes.\\n\\n4. **Continuous Development**\\n - SVT-AV1 receives frequent updates and optimizations, with new releases often coming alongside big changes.\\n - The open-source nature of the project encourages community contributions and rapid feature development.\\n\\nSVT-AV1 is an excellent choice for a wide range of encoding scenarios. It's particularly well-suited for:\\n- High-volume encoding operations where speed is crucial\\n- Live or near-live encoding of high-resolution content\\n- Scenarios where a balance between quality and encoding speed is required\\n- Users with multi-core systems who want to leverage their hardware efficiently\\n\\nSome downsides include:\\n- Higher memory usage compared to other encoders\\n- The developers assess quality via its performance on traditional legacy metrics, which harms its perceptual fidelity ceiling.\\n\\n### rav1e\\n\\n[rav1e](https://wiki.x266.mov/docs/encoders/rav1e) is an AV1 encoder written in Rust & Assembly. Developed by the open-source community alongside Xiph, it brings a unique approach to AV1 encoding with its focus on safety and correctness.\\n\\nLinks:\\n- Wiki page: [rav1e](https://wiki.x266.mov/docs/encoders/rav1e)\\n- Git repository: https://github.com/xiph/rav1e\\n- Documentation: https://github.com/xiph/rav1e/tree/master/doc#readme\\n\\n1. **Safety & Reliability**\\n - Being written in Rust, rav1e emphasizes memory safety and thread safety.\\n - This focus on safety translates to a more stable and reliable encoding process, with reduced risks of crashes or undefined behavior.\\n\\n2. **High Fidelity**\\n - At high fidelity targets - an area where AV1 usually lacks - rav1e is a strong contender compared to other encoders.\\n - It excels in preserving fine details and textures, making it a good choice for high-fidelity encoding.\\n\\n3. **Quality**\\n - While not typically matching aomenc or SVT-AV1 in pure compression efficiency, rav1e can produce high-quality output videos.\\n - It often achieves a good balance between quality and encoding time, especially at medium-speed settings.\\n\\n4. **Perceptually Driven**\\n - rav1e's development is driven by visual fidelity, without relying heavily on metrics.\\n - This focus on perceptual quality leads to a stronger foundation for future potential improvements in visual quality, as well as making the encoder very easy to use as it does not require excessive tweaking.\\n\\nrav1e is well-suited for:\\n- Projects where stability is paramount\\n- Users who prioritize a community-driven, open-source development approach\\n- Encoding tasks where a balance between quality and speed is needed, but the absolute fastest speeds are not required\\n\\nSome limitations of rav1e include:\\n- Lagging development compared to other encoders\\n- Slower encoding speeds compared to SVT-AV1 at similar quality & size\\n- Fewer advanced options compared to other encoders\\n\\n### aomenc (libaom)\\n\\n[aomenc](https://wiki.x266.mov/docs/encoders/aomenc), based on the libaom library, is the reference encoder for AV1. Developed by the Alliance for Open Media (AOM), it is the benchmark for AV1 encoding quality and compliance.\\n\\nLinks:\\n- Wiki page: [aomenc](https://wiki.x266.mov/docs/encoders/aomenc)\\n- Git repository: https://aomedia.googlesource.com/aom/\\n\\n1. **Encoding Quality**\\n - aomenc is widely regarded as the gold standard for AV1 encoding quality.\\n - It often achieves high compression efficiency among AV1 encoders, especially at slower speed settings.\\n - The encoder squeezes out nearly every last bit of efficiency from the AV1 codec, making it ideal for archival purposes or when quality per bit is critical.\\n\\n2. **Encoding Speed**\\n - aomenc is generally the slowest among major AV1 encoders.\\n - It offers 13 CPU speed levels (0-12), but even at its fastest settings, it's typically slower than other encoders at their slower settings.\\n - The slow speed is often considered a trade-off for its high compression efficiency.\\n\\n3. **Extensive Options**\\n - As the reference implementation, aomenc offers the most comprehensive encoding options.\\n - It provides fine-grained control over nearly every aspect of the AV1 encoding process.\\n - Advanced users can tweak many parameters to optimize for specific content types or encoding scenarios.\\n\\n4. **Flexibility**\\n - Being the reference encoder, aomenc produces highly standards-compliant AV1 bitstreams that take advantage of the full arsenal of AV1 features.\\n - It supports 4:2:0 and 4:4:4 chroma subsampling, 8- to 12-bit color depth, and various other advanced features that more specialized encoders like SVT-AV1 do not support.\\n\\naomenc is ideal for:\\n- Scenarios where achieving the highest possible quality is the primary goal\\n- Archival encoding where compression efficiency is crucial\\n- Research and development in video compression\\n- Encoding projects where encoding time is not a significant constraint\\n\\nSome drawbacks of aomenc include:\\n- Unresponsive development driven by legacy metrics, leading to slower adoption of new techniques and ignoring improvements communicated by people outside the Google development team\\n- Cripplingly difficult to use for beginners, with a culture of cargo-culting settings\\n- Slow encoding speeds compared to other AV1 encoders, which has less of an impact on the quality of the output than it used to compared to maturing encoders like SVT-AV1\\n\\n### SVT-AV1-PSY\\n\\n[SVT-AV1-PSY](https://wiki.x266.mov/docs/encoders/svt-av1-psy) is a community fork of the SVT-AV1 encoder focused on psychovisual optimizations to enhance perceived visual quality. It aims at closing the distance between SVT-AV1's high speeds and the perceptual quality of aomenc's slow brute force approach.\\n\\nLinks:\\n- Wiki page: [SVT-AV1-PSY](https://wiki.x266.mov/docs/encoders/svt-av1-psy)\\n- Git repository: https://github.com/gianni-rosato/svt-av1-psy\\n- Documentation: https://github.com/gianni-rosato/svt-av1-psy/blob/master/Docs/PSY-Development.md\\n\\n1. **Perceptual Optimizations**\\n - SVT-AV1-PSY introduces various psychovisual enhancements to improve the perceived quality of encoded video.\\n - These optimizations often result in output that looks better to the human eye, even if it might not always score as well in objective metrics.\\n\\n2. **Additional Features**\\n - Introduces new options like variance boost, which can help maintain detail in high-contrast scenes.\\n - Offers alternative curve options for more nuanced control over the encoding process.\\n - Extends the CRF (Constant Rate Factor) range to 70 (from 63 in mainline SVT-AV1), allowing for extremely low-bitrate encodes.\\n - Introduces additional tuning options, including a new \\\"SSIM with Subjective Quality Tuning\\\" mode that can improve perceived quality.\\n\\n3. **Visual Fidelity Focus**\\n - Aims to produce more visually pleasing results, sometimes at the expense of metric performance.\\n - Includes options like sharpness adjustment and adaptive film grain synthesis which can significantly impact the visual characteristics of the output.\\n - Features modified defaults driven by perceptual quality considerations.\\n\\n4. **Extended HDR Support**\\n - Includes built-in support for Dolby Vision & HDR10+ encoding.\\n - This makes it particularly useful for encoding HDR content without requiring additional post-processing steps or external tools.\\n\\n5. **Performance**\\n - Based on SVT-AV1, it retains the performance characteristics of its parent encoder.\\n - Adds super slow presets (-2 and -3) for research purposes and extremely high-quality encoding. These additional presets can be useful for creating reference encodes or applications where encoding time is not a concern.\\n\\nSVT-AV1-PSY is particularly well-suited for:\\n- Encoding scenarios where subjective visual quality is prioritized over pure metric performance\\n- HDR content encoding in Dolby Vision or HDR10+\\n- Users who want fine-grained control over psychovisual aspects of encoding\\n- Projects that require a balance between the speed of SVT-AV1 and enhanced visual quality\\n- Encoding challenging content with complex textures or high-contrast scenes\\n\\nSome drawbacks are:\\n- Everything that applies to SVT-AV1, including the lack of support for 4:4:4 chroma subsampling and 12-bit color depth that are useful in specific scenarios\\n\\n### Conclusion\\n\\nWhile SVT-AV1 is known for being fast, aomenc is renowned for its high-quality output, and rav1e is recognized for its safety and reliability, each encoder has strengths and weaknesses. The best encoder for you will depend on your specific needs and priorities.\\n\\nAs this guide is focused on offline encoding, **SVT-AV1-PSY** combines aomenc's traditional perceptual strength with SVT-AV1's speed. Like rav1e, it is easy to use due to strong default settings that prevent cargo culting, and overall it can be considered the best of all three worlds. It is actively developed by a team of responsive community members, and it is a great choice for most users who want a balance between quality per bit, speed, and ease of use.\\n\\nThe \\\"best\\\" encoder often depends on your use case, content type, and target audience. It's always worth experimenting with different encoders and settings to find the optimal balance for your needs. Many advanced users even employ multiple encoders in their workflows, choosing the most appropriate tool for each specific task or content type.\\n\\n## Final Conclusion\\n\\nThe AV1 ecosystem has grown to the point where a single comprehensive guide cannot effectively cover the entire extent of the available tools and techniques for AV1 encoding across *every* use case. If you want more detail about a particular tool, where to acquire it, or how to compile an encoder, you can find that information throughout the various wiki entries linked on this page.\\n\\nReading can get you far, but it is natural to have questions. Please don't hesitate to connect with the team behind the Codec Wiki and many of these tools via our [AV1 for Dummies Discord server](https://discord.gg/bbQD5MjDr3). We're happy to help you with anything you need, and your questions and feedback help the wiki grow and improve. We hope you enjoy your journey into AV1 encoding, and we wish you the best of luck in your encoding endeavors!\"},{\"id\":\"svt-av1-second-deep-dive\",\"metadata\":{\"permalink\":\"/blog/svt-av1-second-deep-dive\",\"source\":\"@site/blog/2024-05-19-svt-av1-deep-dive2-v2-1-0.mdx\",\"title\":\"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive\",\"description\":\"SVT-AV1 2.1.0 just released, how does it compare to the previous version?\",\"date\":\"2024-05-19T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"video\",\"permalink\":\"/blog/tags/video\"},{\"inline\":true,\"label\":\"compression\",\"permalink\":\"/blog/tags/compression\"},{\"inline\":true,\"label\":\"benchmarks\",\"permalink\":\"/blog/tags/benchmarks\"}],\"readingTime\":35.215,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Trix\",\"title\":\"Encoder\",\"url\":\"https://github.com/trixoniisama/\",\"image_url\":\"https://avatars.githubusercontent.com/u/93526043\",\"imageURL\":\"https://avatars.githubusercontent.com/u/93526043\",\"socials\":{},\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive\",\"description\":\"SVT-AV1 2.1.0 just released, how does it compare to the previous version?\",\"slug\":\"svt-av1-second-deep-dive\",\"authors\":[{\"name\":\"Trix\",\"title\":\"Encoder\",\"url\":\"https://github.com/trixoniisama/\",\"image_url\":\"https://avatars.githubusercontent.com/u/93526043\",\"imageURL\":\"https://avatars.githubusercontent.com/u/93526043\"}],\"tags\":[\"video\",\"compression\",\"benchmarks\"],\"image\":\"/img/svt-2.1.0-testing-blog-image.webp\",\"hide_table_of_contents\":false},\"unlisted\":false,\"prevItem\":{\"title\":\"AV1 for Dummies\",\"permalink\":\"/blog/av1-for-dummies\"},\"nextItem\":{\"title\":\"Encoding Animation with SVT-AV1: A Deep Dive\",\"permalink\":\"/blog/svt-av1-deep-dive\"}},\"content\":\"import { CarouselGenerator, TabbedCarouselGenerator } from '../src/utils/ImageCarousel.mdx';\\n\\n\\nSVT-AV1, the most scalable AV1 encoder, has received a new update and one may wonder if the old presets recommendation still holds today. We will delve into that in this blog post, based on a series of speed and visual quality benchmarks with SSIMULACRA2 and XPSNR of SVT-AV1 2.1.0 on a corpus of varied animated clips.\\n\\n\x3c!--truncate--\x3e\\n\\n## Feedback\\n\\nI unfortunately never got to update the previous blog post with the image comparisons, and some people expressed concerns that this testing may not be representative of live action content. For the former, I will have to ask for your patience again, because this blog post won't initially contain image comparisons either, but this time they are being actively worked on, along with a magnificent comparisons component and this page will get updated once that is done. As for the latter, please be reassured that this testing in its entirety is perfectly representative of any modern content people typically encode: the diversity of japanese animation is rich and the content specifically chosen for this benchmark is relatively complex. From 3DCG to extremely noisy clips, we are far from the easy-to-compress static scenes of some slice-of-life show.\\n\\nI have also decided to complement this benchmark of another psychovisually-driven metric (XPSNR) so that double-checking is made easier. Thus, each graph possesses a SSIMULACRA2 version and a XPSNR version. Don't hesitate to switch between one another!\\n\\n## Methodology\\n\\nThe resources available will range from ***graphs*** to ~~**image comparisons**~~ (WIP, for real this time). The ***former*** has the advantage of being easily understandable, showcasing pure efficiency comparisons between encoder parameters using metrics as the reference, while the **latter** are image samples from the files encoded during the tests that enable you to check quality for yourself, adding another layer of subjective interpretation to these comparisons.\\n\\n\x3c!--truncate--\x3e\\n\\nThe testing methodology involves using relatively short video samples from a wide range of modern anime genre, which have been either losslessly encoded with `x264 --qp 0` for ease of use or losslessly cut from their source. These lossless files are then pipped into SvtAv1EncApp *directly*, meaning we are measuring the performance of a single encoder instance and not leveraging chunked encoding like any actual final AV1 encoding pipeline should. Once an encode is done, SSIMULACRA2 scores are calculated using the [Zig implementation](https://github.com/dnjulek/vapoursynth-ssimulacra2), XPSNR scores on the other hand are calculated using a [ffmpeg filter](https://github.com/fraunhoferhhi/xpsnr), and lots of useful data are aggregated to make the graphs for this benchmark, including encoding time, encode size (bitrate), and metrics scores. Bits per pixel scores (BPP) are calculated so that the `Metric / BPP` graphs may represent the closest we have to real efficiency.\\n\\nThe clips used in this test were acquired legally. The Codec Wiki and its contributors do not endorse media piracy.\\n\\nSvtAv1EncApp was compiled directly from the [v2.0.0 and v2.1.0 source code](https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/) using the provided `Build/linux/build.sh` script, Clang 16.0.6, and Profile-Guided Optimization (PGO). The testing machine is comprised of an i3 12100 with 16GB of 3200MHz CL14 DDR4 RAM in Arch Linux with kernel 6.7.7 and the performance governor enabled. All encodes have been made in the same session without rebooting.\\n\\nThis testing was conducted within the [AV1 Weeb Edition](https://discord.gg/83dRFDFDp7) Discord server, which is focused on encoding animated content in AV1.\\n\\n## Samples\\n\\nThe samples are as follows:\\n- 11s `Blame!` clip which sports 3DCG action with lots of grain, effects and high-contrast elements.\\n- 13s `Blue Lock` clip which sports rapid camera movements, complex geometry and high-contrast elements.\\n- 5s `Spy x Family` first ending sequence with an extremely high amount of dynamic noise. New most complex source of this set.\\n- 12s `Jigokuraku (Hell's Paradise)` flashback clip with huge static grain in a very dark scenery and some action.\\n- 5s `The Garden of Sinners` clean but fast-paced 3DCG scene with explosions.\\n\\nThe resolution of every clip is 1080p, except for the first one which is 1920x804.\\n\\n> **All clips have been encoded in a wide quality range, from `--crf 6` to `--crf 46`, by increments of 4.**\\n\\nWithout further ado, let's start with the first comparisons!\\n\\n## Presets comparisons (-1 -> ~~13~~ 12)\\n\\n**In the following graphs, you may find comparisons between all SVT-AV1 presets, ranging from the slowest `--preset -1` to the fastest `--preset 12`.**\\n> Yes, you heard that right. Preset 7 and 13 are no more in __v2.1.0__. This new update, like the previous one, mostly consisted of optimizing the presets trade-offs. The devs have made the choice to map `preset 7` to `preset 6` and `preset 13` to `preset 12` due to the lack of spacing between the new presets. We will discuss the implications of this further ahead.\\n\\n`--preset X` is the only parameter used here, in conjunction with the CRF values. That means everything else is default. The defaults worth mentioning are: \\n- `--tune 1`: tune PSNR\\n- `--aq-mode 2`: variance deltaq\\n- `--enable-qm 0`: quantisation matrices disabled\\n- `--irefresh-type 2`: closed GOP\\n- `--enable-tf 1`: temporal filtering enabled\\n\\nAnd more, like CDEF and restoration enabled, overlays and film-grain disabled...\\n\\n### Efficiency\\n\\n- First of all, here are the full efficiency graphs:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nThis is all very cool, but visually bloated.\\n\\n- Now the same graphs but focusing on the \\\"high quality\\\" range (CRF6 -> 22):\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Same, but now focusing on the \\\"low quality\\\" range (CRF26 -> 46):\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- If we now focus on __presets 4__ and below, where it's more difficult to discern the differences between presets, we get this at \\\"high quality\\\":\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- And the following at \\\"low quality\\\":\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n### Speed\\n\\n- **Let's now see speed comparisons between all presets:**\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nOnce is not custom, __preset -1__ is so abysmally slow it makes the graph unusable.\\n\\n- Same, but without the placebo __preset -1__:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Lastly, here is what it looks like with a logarithmic scale:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n### Interpretation\\n\\nAs for interpreting the results, it would seem like **preset 2** and **preset 4** remain all-around very balanced presets, with **preset 3** being in a nice in-between spot, an improvement over v2.0.0's **preset 3** in a way. We will better understand the reasons for this when we'll compare the new version to the last, a bit after.\\n\\nThe quality gap between **preset 2** and **preset 1** is usually pretty narrow, however the speed penalty from going to **preset 1** is ~2x, when the penalty of going from **preset 3** to **preset 2** is closer to ~1.5x. As such, **preset 1** enters placebo territory, and considering the very little benefits of going any lower than it, compared to the huge performance loss of even lower presets, I advise you not to waste encoding resources on **preset 0** and **preset -1**. This applies especially at medium to high quality, however at extremely low quality like the CRF40 range, we can still see some small gains from these placebo presets.\\n\\nWhen we start talking about faster presets though, things are pretty different from previous versions: **presets 5 to 9** behave similarly on the graphs and seem to stand apart from their slower counterparts by just a bit. If you can bear the speed of **preset 4**, you should definitely be going for it, however if fast encoding is a necessity, for example in the case of realtime transcoding or streaming, **presets 5 through 9** will serve you right with great efficiency/speed trade-offs between one another. No preset in that range particularly stands out from the others, so simply pick one depending on your performance needs.\\n\\n**Presets 10 to 12** are pretty inefficient, and to be avoided if possible. They can still be of use in a convex-hull scenario, but in the case of realtime transcoding, you may be better off with a hardware encoder like the ones found in RTX 4000 or Arc GPUs, especially since SVT-AV1's target bitrate mode is even less efficient than CRF mode.\\n\\n### TLDR\\n\\nThe same conclusions as the previous blog post can be made: \\n**clear quality gains can be observed as we decrease presets, until __preset 2__, however the effectiveness of dropping presets is noticeably less and less important as quality is increased.**\\n\\nIn the next part, we will evaluate the differences in efficiency and speed of every presets when updating from SVT-AV1 2.0.0 to 2.1.0, which should enable an increase of nuance from the previous results alone.\\n\\n## SVT-AV1 v2.0.0 vs v2.1.0 presets comparisons:\\n\\nTwo months ago, I conducted a similar test to this one to compare the presets evolution between versions __1.8.0__ and __2.0.0__. The results were pretty unsatisfying: I noticed that **presets -1 to 8** in __v2.0.0__ performed like the old **presets 0 to 9** did in __v1.8.0__. We basically saw an efficiency regression at a given preset, and speedups did not follow suit as well as we would have anticipated. All in all, it wasn't all that bad, it suffice to say you could simply drop a preset from before and you were good to go again. What was more concerning however is that the release note claimed important speedups that did not impact efficiency and my testing proved otherwise. My theory is that due to the dev team testing methodology, which consist of mostly pretty low resolution clips and non-psychovisual metrics like PSNR, SSIM or bad psychovisual metrics like VMAF, it's very well possible they were tricked into thinking they introduced improvements as they tweaked the presets when in reality the metrics simply didn't notice the quality degradation. Such issue is an additional reason why the industry should adopt more competent metrics, ones that better correlate with the human vision, to improve encoders in more impactful ways and better avoid pointless regressions. \\n\\nSo the question for today's testing is: have the SVT-AV1 devs redeemed themselves and actually improved the presets trade-offs this time around? Let's find out!\\n\\n### `preset -1`: v2.0.0 vs v2.1.0\\n\\n- **Let's start off with a battle of the placebos, with the efficiency at \\\"high quality\\\":**\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- And the efficiency at \\\"low quality\\\":\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nYes, this is a bit underwhelming, but you can't just improve the best an encoder has to offer with just tweaking right?\\n\\n- Now, let's compare their respective speeds:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nLet's be grateful it became ever so slightly faster, I guess.\\n\\n### `preset 0`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nOverall, efficiency wise, this new **preset 0** places itself in-between old **preset -1** and **0**\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nInterestingly enough, its speed is much closer to the old **preset 0** than to the old **preset -1**. This means **preset 0** was genuinely improved over v2.0.0!\\n\\n### `preset 1`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nIn efficiency, this new **preset 1** is often equal to old **preset 0**, else in-between old **preset 0 and 1**.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nWe observe that the new preset is a bit closer to old **preset 1** speeds than it is to old **preset 0** speeds. Good news!\\n\\n### `preset 2`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nOh well, that's awkward.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nSpeed was left untouched too, meaning **preset 2** is unchanged in v2.1.0.\\n\\n### `preset 3`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nThe new **preset 3**'s efficiency is the same as the old one.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nHowever, the preset got slightly faster, so this is a speedup!\\n\\n### `preset 4`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nWe can observe that **preset 4** got slightly to moderately worse efficiency wise.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nFortunately, the consequence of that slight efficiency decrease is a big performance improvement!\\n\\n### `preset 5`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 5** seems to have gotten ever so slightly worse efficiency wise.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nYet it became slightly faster, this is overall a good trade-off.\\n\\n### `preset 6`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nThe new **preset 6** has a huge responsibility: being able to compensate in the absence of its **preset 7** sibling. It seems to performs in-between old **preset 6 and 7**, usually closer to old **7**.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 6** is now ever so slightly slower to old **7**, this is an interesting trade-off, overall a win over old **7**.\\n\\n### `preset 7`: v2.0.0 vs v2.1.0\\n\\nAgain, there is no preset 7. Actually, it's preset 6 that disappeared but I'm not remaking the graphs just for fun. If you select preset 6, you will be granted the following message: `Svt[warn]: Preset M6 is mapped to M7.`\\n\\n![always_has_been](/img/preset_7_meme.webp)\\n\\n### `preset 8`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nIn efficiency, this new **preset 8** is sometimes equal or slightly worse to the old **8**, and sometimes equal or slightly worse than old **7**...\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nOverall, the speed is pretty much unchanged from old **8**. It looks like a slight regression, that's pretty disappointing.\\n\\n### `preset 9`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nThe new **preset 9** is the same as ever, ever so slightly better in some scenario but nothing groundbreaking.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nIts speed remains the same, sometimes ever so slightly slower. Basically the preset is pretty much unchanged, which may as well be a relief, as the last usable preset of the encoder.\\n\\n### `preset 10`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 10** is slightly to moderately worse efficiency wise.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nIts speed is mostly the same, sometimes ever so slightly faster. It's a wash, avoid this preset at all costs!\\n\\n### `preset 11`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 11**'s efficiency is untouched.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 11**'s speed is unchanged as well.\\n\\n### `preset 12`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nJust as **preset 6**, **preset 12** is now mapped to **13**, and unsurprisingly, its efficiency is equal to old **13**.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nThe speeds seem to be in-between old 12 and 13, so potentially a slight speedup. Still, nothing to get excited at.\\n\\n### TLDR\\n\\nFrom these extensive comparisons, it appears that some presets have received genuine improvements in their respective efficiency/speed trade-off.\\nSome presets, like **-1**, **0**, **1** and **3**, received the most significant improvements, followed by **4**, **5** and **6** with overall beneficial new trade-offs. **Preset 12** got slightly faster too. On the other hand, **presets 8 and 10** seemed to have regressed slightly, and **presets 2 and 9** are perfectly unchanged from v2.0.0.\\n\\n## Conclusion\\n\\nSVT-AV1 2.1.0 introduced some welcomed improvements. **Presets 2 through 4** remain the king of optimal AV1 encoding, while **presets 5 through 9** stand as good options for the people that find **2-4** to be too slow for their liking.\\n\\nLet's be honest a second, not much as changed in SVT-AV1 since the first blog post. There was no need to redo all the parameter testing for the simple reason that their behavior remained the same, as did the conclusions drawn from them. I hope this article wasn't disappointing in a sense... Still, be reassured, this was just an appetizer, there will be more in the near future!\\n\\nBy the way, did you know that the **[SVT-AV1-PSY project](https://github.com/gianni-rosato/svt-av1-psy/)** was initiated a few months ago? Its defaults were tailored according to the testing done in the last blog post, allowing a free efficiency boost for anyone not keen to tweak their encoders. Furthermore, SVT-AV1-PSY introduced a sharpness parameter to control distortion, a quarter-step quantizer for more CRF precision, a new subjective SSIM tune, Dolby Vision support, frame luma bias, and some other knobs to improve the appeal and consistency of your encodes. It is actively maintained by a group of talented people, including the main dev of the aom-av1-lavish fork of aomenc. Some of the changes are being backported to mainline SVT-AV1 due to the increased interest of the mainline devs. Please check it out!\\n\\nHopefully, this comprehensive second deep dive should give you a helpful new starting point for choosing settings when encoding with the latest SVT-AV1(-PSY) 2.1.0.\\n\\n## Future\\n\\nMy plans for the future regarding the blog post include:\\n- polishing this blog post and aggrementing it of image comparisons.\\n- a follow-up article in the relatively near future about giving you encoding tips and explaining common AV1 encoding knowlegde, for instance showcasing why film grain synthesis is a game-changer or why chunked encoding can prove beneficial to your encoding pipeline.\\n- an article focused on observing the evolution of SVT-AV1 since the beginning of its development, as well as comparisons with current aomenc, rav1e and SVT-AV1-PSY, including a quick look at the current state of AVM (development ground for AV2) in comparison to VVC's state.\\n\\nThanks for reading!\\n\\n{}\"},{\"id\":\"svt-av1-deep-dive\",\"metadata\":{\"permalink\":\"/blog/svt-av1-deep-dive\",\"source\":\"@site/blog/2023-12-30-svt-av1-deep-dive.mdx\",\"title\":\"Encoding Animation with SVT-AV1: A Deep Dive\",\"description\":\"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?\",\"date\":\"2023-12-30T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"video\",\"permalink\":\"/blog/tags/video\"},{\"inline\":true,\"label\":\"compression\",\"permalink\":\"/blog/tags/compression\"},{\"inline\":true,\"label\":\"benchmarks\",\"permalink\":\"/blog/tags/benchmarks\"}],\"readingTime\":22.78,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Trix\",\"title\":\"Encoder\",\"url\":\"https://github.com/trixoniisama/\",\"image_url\":\"https://avatars.githubusercontent.com/u/93526043\",\"imageURL\":\"https://avatars.githubusercontent.com/u/93526043\",\"socials\":{},\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"Encoding Animation with SVT-AV1: A Deep Dive\",\"description\":\"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?\",\"slug\":\"svt-av1-deep-dive\",\"authors\":[{\"name\":\"Trix\",\"title\":\"Encoder\",\"url\":\"https://github.com/trixoniisama/\",\"image_url\":\"https://avatars.githubusercontent.com/u/93526043\",\"imageURL\":\"https://avatars.githubusercontent.com/u/93526043\"}],\"tags\":[\"video\",\"compression\",\"benchmarks\"],\"image\":\"/img/svt-1.8.0-testing-blog-image.webp\",\"hide_table_of_contents\":false},\"unlisted\":false,\"prevItem\":{\"title\":\"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive\",\"permalink\":\"/blog/svt-av1-second-deep-dive\"},\"nextItem\":{\"title\":\"Embedding the Un-Embeddable\",\"permalink\":\"/blog/embedding-the-un-embeddable\"}},\"content\":\"import { CarouselGenerator } from '../src/utils/ImageCarousel.mdx';\\n\\n\\nThis blog post is based on a series of visual quality benchmarks with SSIMULACRA2 and speed benchmarks of SVT-AV1 1.8.0 on a corpus of animated clips.\\n\\nThe resources available will range from ***graphs*** to ~~**image comparisons**~~ (WIP). The ***former*** has the advantage of being easily understandable, showcasing pure efficiency comparisons between encoder parameters using metrics as the reference, while the **latter** are image samples from the encoded files during the tests that enable you to check quality for yourself and add another layer of subjective interpretation to these comparisons.\\n\\n\x3c!--truncate--\x3e\\n\\nThe testing methodology involves using relatively short video samples from a wide range of modern anime genre, which have been either losslessly encoded with `x264 --qp 0` for ease of use or losslessly cut from their source. These lossless files are then pipped into SvtAv1EncApp *directly*, meaning we are measuring the performance of a single encoder instance and not leveraging chunked encoding like any actual final AV1 encoding pipeline should. Once an encode is done, SSIMULACRA2 scores are calculated using the [Zig implementation](https://github.com/dnjulek/vapoursynth-ssimulacra2) and lots of useful data are aggregated to make the graphs for this benchmark, including encoding time, encode size (bitrate), and SSIMULACRA2 scores. Bits per pixel scores (BPP) are calculated so that the `Metric / BPP` graphs may represent the closest we have to real efficiency.\\n\\nThe clips used in this test were acquired legally. The Codec Wiki and its contributors do not endorse media piracy.\\n\\nSvtAv1EncApp was compiled directly from the [v1.8.0 source code](https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/v1.8.0) using the provided `Build/linux/build.sh` script, Clang 16.0.6, and Profile-Guided Optimization (PGO). The testing machine is comprised of an i7 8750H running at 35W with 16GB of 2666MHz DDR4 RAM in Arch Linux with kernel 6.6.6 and the performance governor enabled. All encodes have been made in the same session without rebooting.\\n\\nThis testing was conducted within the [AV1 Weeb Edition](https://discord.gg/83dRFDFDp7) Discord server, which is focused on encoding animated content in AV1.\\n\\n## Samples\\n\\nThe samples are as follows:\\n- 11s `Blame!` clip which sports 3DCG action with lots of grain, effects and high-contrast elements. Most complex source of this set.\\n- 13s `Blue Lock` clip which sports rapid camera movements and rotations + high-contrast elements.\\n- 15s `Fate/Grand Order: Babylonia` relatively slow-paced clip with lots of effects still. Easiest source of this set but easy sources still give interesting data.\\n- 22s `Jigokuraku (Hell's Paradise)` flashback clip with huge static grain in a very dark scenery and some action.\\n- 14s `Kaguya-sama` opening sequence with lots of effects and fast change of scenery.\\nThe resolution of every clip is 1080p, except for the first one which is 1920x804.\\n\\n> **All clips have been encoded in a wide quality range, from `--crf 8` to `--crf 43`.**\\n\\nWithout further ado, let's start with the first comparisons!\\n\\n## Presets comparisons (-1 -> 13)\\n\\n**In the following graphs, you may find comparisons between all SVT-AV1 presets, ranging from the slowest `--preset -1` to the fastest `--preset 13`.**\\n*Please remember that these two extreme presets are meant for development purposes and as such should not be used in normal encoding conditions. You will soon understand why.*\\n\\n`--preset X` is the only parameter used here, in conjunction with the CRF values. That means everything else is default. The defaults worth mentioning are: \\n- `--tune 1`: tune PSNR\\n- `--aq-mode 2`: variance deltaq\\n- `--enable-qm 0`: quantisation matrices disabled\\n- `--irefresh-type 2`: closed GOP\\n- `--enable-tf 1`: temporal filtering enabled\\nAnd more, like CDEF and restoration enabled, overlays and film-grain disabled...\\n\\n- First of all, here are the efficiency graphs:\\n\\n\\n\\nThis could be too much information.\\n\\n- Now the same graphs but focusing on the \\\"high quality\\\" range (CRF8 -> 23):\\n\\n\\n\\n- Same again but without presets 9 to 13 for better clarity:\\n\\n\\n\\n- Now for the \\\"low quality\\\" range (CRF28 -> 43):\\n\\n\\n\\n- Same but without presets 9 to 13 for better clarity:\\n\\n\\n\\n- **Let's now see speed comparisons between all presets:**\\n\\n![speed_overall](https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed_overall.webp)\\n\\nAs we can see, preset -1 is so abysmally slow it makes the graph unusable\\n(BTW, notice the `1e6` in the lower right corner, it is obviously not encoding at 1 to 4 ms, but at 1 000 000 to 4 000 000 ms)\\n\\n- Here is what it looks like with a logarithmic scale:\\n\\n\\n\\n- **Now the speed graphs but with SSIMU2 on the y-axis instead of BPP: (logarithmic scale)**\\n\\n\\n\\n- Here are speeds graphs for preset 1 to 6 with a linear scale:\\n\\n\\n\\nOne interpretation we can have is that **presets 2 to 4** have actually pretty close scores (pretty much the same at HQ, 2 points at max in the low quality range) but **preset 2** is **2x slower than preset 4**. The quality gap between **preset 2** and **preset 1** is even narrower but the speed penalty is also ~2x.\\n\\nThat makes it hard to recommend **preset 1**, while **preset 3** is in a strange middle ground between **2** and **4** where it makes little sense to choose it over those two: it's better to choose **preset 2** for the higher efficiency at 1.5x slower speeds, or **preset 4** for the 1.33 to 1.5x higher speeds. At least the option exists.\\n\\nA similar observation can be made between **preset 5** and **6**. They can be so close in scores in many samples (especially at HQ) while also being close in speeds that **preset 5** becomes rather obsolete most of the time.\\n\\n### TLDR\\n\\n**Clear quality gains can be observed as we decrease presets, until the very last one, however the effectiveness of dropping presets becomes less and less impressive the higher in quality you go.**\\n\\n- For instance, in worst-case scenario, we observe that (for the CRF23 to CRF8 range), __**preset 4**__ only loses at maximum **2** SSIMU2 **points** compared to __**preset -1**__ while being 50-60x faster. Though to be fair, the speed loss from __**preset 4**__ to __**preset 0**__ is \\\"only\\\" 5-10x for a maximum SSIMU2 difference close to **1.5 point**.\\n\\n- From CRF43 to CRF28, the difference between __**preset 4**__ and __**preset -1**__ can be as much as **5** SSIMU2 **points**, so lower presets become more attractive.\\n\\n## Tunes comparisons\\n\\n**In the following graphs, you may find comparisons between SVT-AV1 tunes, from the default `--tune 1` (PSNR) to the other two tunes: `--tune 0` (VQ) and `--tune 2` (SSIM).**\\n\\nExcept for the tunes, `--preset 4` is set due to its good balance of quality and speed, in conjunction with the CRF values. That means everything else is default. The defaults have been mentioned earlier above.\\n\\n- **Let's compare the efficiency of every tunes:**\\n\\n\\n\\n- Now let's focus on the \\\"high quality\\\" range (CRF8 -> 23):\\n\\n\\n\\n- And the \\\"low quality\\\" range (CRF28 -> 43):\\n\\n\\n\\n- And here is the speed difference:\\n\\n\\n\\n- Graphs comparing the tunes individually between each others will be made available soon.\\n- The image comparisons will make the conclusion quite more nuanced, stay tuned (heheh) for that.\\n\\n### TLDR\\n\\n**SSIMU2 favors __tune 1 and 2__ above __tune 0__. At high quality, __tune 1 and 2__ are matched, while at low quality __tune 2__ takes the edge. __Tune 0__ is sometimes a match for the other two on certain clips and other times fare pretty badly.**\\n**For some reason, __tune 0__ is quite a bit faster now, compared to 1 and 2 which are basically the same.**\\n\\nKeep in mind that I have observed multiple times in the past that __tune 0__ kept more fine detail and was sharper than the other tunes, at the expense of potential artifacting, like ringing and distortion. It may very well explain why the metric doesn't like its results. The image comparisons may give a different interpretation than what we concluded here, please stay *tuned* for these subjective comparisons.\\n\\n## Parameters comparisons\\n\\n**In the following graphs, you may find comparisons between many SVT-AV1 parameters.**\\n*Additional graphs focusing on the high and low qualities will be made available later down the line*\\n\\n`--preset 4` is used here due to its good balance of quality and speed, in conjunction with the CRF values. That means everything else is default. The defaults have been mentioned earlier above.\\n\\n### `--tile-rows 1 --tile-columns 1` vs default `--tile-rows 0 --tile-columns 0`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> __tiles__ here are both slightly harmful and slower.\\n\\n### `--aq-mode 0` vs default `--aq-mode 2`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> Except for the Jigokuraku clip, __aq-mode 0__ is harmful in the eyes of SSIMU2, while being slower at low CRF levels, and sometimes a match or faster at high CRF levels.\\n\\n### `--aq-mode 1` vs default `--aq-mode 2`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> __aq-mode 1__ fares closer to __aq-mode 2__ than __aq-mode 0__ did, both in quality and speed, but is still overall inferior according to SSIMU2\\n\\n### `--enable-cdef 0` vs default `--enable-cdef 1`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> According to SSIMU2, disabling CDEF barely impact efficiency. But as its a pretty demanding tool, there's a slight speed benefit of having it disabled too. I advise you to take these results with a grain of salt until the image comparisons, because in anime particularly, CDEF *can* be beneficial for the line-art.\\n\\n### `--enable-dg 0` vs default `--enable-dg 1`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> __Dynamic GoP control__ yields bit-perfect results in all clips except for Blue Lock and Jigokuraku. There is no speed benefit to disabling it except in clips where it is in use. Let's not jump to conclusions too easily, the image comparisons will tell if it's \\\"safe\\\" to keep the setting disabled at all times or not.\\n\\n### `--enable-dlf 0` vs default `--enable-dlf 1`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> __Deblocking loop filter__ can be slightly beneficial in some scenarios. In reverse, it is never harmful, so it is recommended to keep it default.\\n\\n### `--fast-decode 1` vs default `--fast-decode 0`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> __fast-decode 1__ is pretty harmful in the Fate clip and slightly harmful in the rest. There is a speed benefit of enabling it though.\\n\\n### `--irefresh-type 1` vs default `--irefresh-type 2`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> Finally something interesting to analyse!\\n- __irefresh-type 1__ is either a match or beneficial compared to __irefresh-type 2__ at high CRF levels.\\n- __irefresh-type 1__ either wins or lose to __irefresh-type 2__ at low CRF levels depending on the clip. As such, it is NOT recommended to blindly set __irefresh-type__ to __1__ at \\\"high quality\\\" as it might be harmful depending on the content.\\n- __irefresh-type 1__ is always slower compared to __irefresh-type 2__, so I might argue it is more safe to leave __irefresh-type__ default at \\\"high quality\\\" than not.\\n- According to the content type of those clips, it appears that __irefresh-type 1__ may benefit *extremely grainy* content while default __irefresh-type 2__ is better suited for *cleanish* content. This needs to be confirmed with *moar* testing though.\\n\\n### `--lookahead 0` vs default `--lookahead -1` (auto)\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n### `--lookahead 60` vs default `--lookahead -1` (auto)\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n### `--lookahead 120` (max) vs default `--lookahead -1` (auto)\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> __lookahead__ seems to behave strangely when set...\\n- __lookahead 0__ shifts quality around a lot and it is difficult to draw conclusions but there's a clear speed drawback of disabling lookahead.\\n- __lookahead 60__ is perfectly bit-perfect to every clips EXCEPT for some damn reason in Jigokuraku at CRF23\\n- __lookahead 120__ is somehow also bit-perfect, but this time in every clips and every CRF levels. Both 60 and 120 don't see much speed differences.\\n> Soooo.... this behavior is so odd I don't advise to set any lookahead value. Let the encoder decide.\\n\\n### `--enable-overlays 1` vs default `--enable-overlays 0`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> __overlays__ do not seem to either improve efficiency or performance.\\n\\n### `--enable-qm 1` vs default `--enable-qm 0`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> Enabling __quantization matrices__ alone increase efficiency at \\\"high quality\\\" with no real speed impact.\\n\\n### `--enable-qm 1 --qm-min 0` vs `--enable-qm 1`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> Setting __qm-min__ to __0__ on top of enabling __quantization matrices__ can be beneficial in some clips at no added compute time.\\n\\nI will re-tests many QMs ranges in the future, but I doubt it changed much from v1.7.0 where 0 was the most appropriate choice for most content.\\n\\n### `--enable-restoration 0` vs default `--enable-restoration 1`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> Even though the efficiencies are very similar, nothing is bit-perfect here. So according to SSIMU2, the __loop restoration filter__ isn't necessarily useful. However, just like CDEF, it's a pretty demanding tool, so disabling it yields some performance improvements. Let's take these with a grain of salt until the image comparisons.\\n\\n### `--scm 0` vs default `--scm 2` (content adaptive)\\n\\nIn all the clips, the results are bit-perfect and there is no notable performance difference.\\n\\n### `--scm 1` vs default `--scm 2` (content adaptive)\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> Interestingly enough, __screen content tools__ seem to improve efficiency according to SSIMU2, at the cost of a huge performance regression. After the image comparisons are published, I will conduct additional testing on this.\\n\\n### `--enable-tf 0` vs default `--enable-tf 1`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> Disabled __temporal filtering__ *can* sometimes improve efficiency slightly at \\\"high quality\\\", however it is very much clip dependent. It also improves performance slightly. The image comparisons will give another perspective to these results.\\n\\n### `--enable-tpl-la 0` vs default `--enable-tpl-la 1`\\n\\nIn all the clips, the results are bit-perfect and there is no notable performance difference.\\n\\n### `superres`:\\n\\nKinda lazy to make, share and comment so much graphs for something that can be told in two lines...\\n\\nAll superres variants are freaking useless as they:\\n- do not improve efficiency\\n- decrease encoding speeds\\n- decrease decoding speeds when either bitrate or quality normalized.\\n\\n### __Early TLDR on parameters results:__\\n\\n***For a previous test with SVT-AV1 1.7.0 I did all parameters tests with `--preset 6 --tune 2`, now I did them with `--preset 4 --tune 1`. Mostly everything tested on v1.7.0 still stands today, but now we have more valuable data. Images comparisons are still needed to give more context to some results, so the conclusion presented here remains early as they are 100% based on SSIMU2 results and will require more analysis down the line.***\\n\\n**Here is a quick run down of how each parameter affect encoding:**\\n- `--tile-rows --tile-columns` should never be used (except for decreasing decode complexity)\\n- `--aq-mode 2` is the most efficient / fastest\\n- `--enable-cdef 0` *might* improve performance at almost no efficiency loss *(needs more thorough testing)*\\n- `--enable-dg` and `--enable-dlf` barely do anything\\n- `--fast-decode 1` decreases efficiency, improves encoding times, and the decoding gains still need to be determined.\\n- `--irefresh-type` should be kept default at high CRF values and for cleanish content at low CRF values, but can be set to 1 at low CRF values for extremely grainy content\\n- `--lookahead` should be kept default\\n- `--enable-overlays 1` does not improve efficiency, slight speed regression as well\\n- `--enable-qm 1 --qm-min 0` should be set for increased efficiency especially at low CRF values at no perf cost\\n- `--enable-restoration` barely does anything but disabling yields better performance *(needs visual confirmation)*\\n- `--scm 1` screen content tools can improve efficiency with a big performance trade-off *(needs more thorough testing)*\\n- `--enable-tf 0` is a mixed bag efficiency wise but improves performance\\n- `superres & resize` please don't.\\n\\n## Conclusion\\n\\nThe extensive benchmarking reveals that obviously the slower presets provide better efficiency, with diminishing returns past preset 2. However, preset 4 provides a good balance of quality and speed for most use cases. Presets 6 and 8 are good options for the people that find 4 to be too slow for their liking.\\n\\nThe default settings tend to provide good results, but some tweaks like enabling quantization matrices can further optimize efficiency. Parameters like tile encoding and super resolution modes are not beneficial. Overall, SVT-AV1 continues to be a competitive option for encoding animation in AV1, with its speed being a notable strength.\\n\\nFurther testing with more content samples would help solidify these findings. The image comparisons will also provide additional subjective evaluation to complement the objective metrics used here, and we can discover the potential usefulness of Tune 0 that may betray what the metrics suggest. Overall, this comprehensive deep dive should give encoders a helpful starting point for choosing settings when encoding animation with the latest SVT-AV1 1.8.0. Thanks for reading!\\n\\n{}\"},{\"id\":\"embedding-the-un-embeddable\",\"metadata\":{\"permalink\":\"/blog/embedding-the-un-embeddable\",\"source\":\"@site/blog/2023-10-29-embedding-the-un-embeddable copy.mdx\",\"title\":\"Embedding the Un-Embeddable\",\"description\":\"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.\",\"date\":\"2023-10-29T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"video\",\"permalink\":\"/blog/tags/video\"},{\"inline\":true,\"label\":\"discord\",\"permalink\":\"/blog/tags/discord\"}],\"readingTime\":8.92,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"socials\":{},\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"Embedding the Un-Embeddable\",\"description\":\"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.\",\"slug\":\"embedding-the-un-embeddable\",\"authors\":[{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\"}],\"tags\":[\"video\",\"discord\"],\"image\":\"/img/discord-embed-blog-image.webp\",\"hide_table_of_contents\":false},\"unlisted\":false,\"prevItem\":{\"title\":\"Encoding Animation with SVT-AV1: A Deep Dive\",\"permalink\":\"/blog/svt-av1-deep-dive\"},\"nextItem\":{\"title\":\"AV1 Encoding for Dummies\",\"permalink\":\"/blog/av1-encoding-for-dummies\"}},\"content\":\"![Feature image](/img/discord-embed-blog-image.webp)\\n**A 567.14 MB, 12 min 11 s, 2K (2,048 x 858), VP9 + Opus, 6.51 Mbps average, Blender short film \\\"Cosmos Laundromat\\\"**\\n\\n\\n## A Scenario\\n\\nWhile chatting in your favorite Discord servers & group chats, you may see a friend send a weird link. You might even consider it suspicious on first glance. It is a video featuring an image of a movie poster with a play button that is almost begging to be clicked. Naturally, you click it.\\n\\n\x3c!--truncate--\x3e\\n\\nIt loads for a second, and to your surprise it is a full-length, 90-minute (sometimes even two hour)-long unauthorized copy of a movie. If you don't know exactly what is going on, you probably sit there dumbfounded as a pixel perfect HD movie plays back. You may have expected a stereotypically muddy, blocky, laggy shitpost, but this has defied your expectations.\\n\\n![stolen.shoes](/img/stolenshoes-puss.webp)\\n\\nThe truth is, there are *multiple* site that do this. Currently, there are five at the time of writing. Below is a list the ones I am currently familiar with:\\n\\n- https://stolen.shoes\\n- https://discord.nfp.is\\n- https://embeds.video\\n- https://x266.mov/discord-embed\\n- https://autocompressor.net/av1\\n\\nThe big question is, **how do they work?** Let's get to dissecting.\\n\\n## But First, a Quick Disclosure\\n\\nThe Codec Wiki unequivocally condemns any form of piracy, including the unauthorized distribution of copyrighted content. This blog post is intended to educate & inform. You may not use the tools discussed to infringe upon the intellectual property rights of content creators without serious legal risk. We encourage our readers to respect copyright laws & use the tools we discuss here appropriately.\\n\\n## How it Works\\n\\nThe entire scheme is actually very simple, as it is all just HTML meta tags (If you are familiar with web development, this is all a walk in the park).\\n\\nThe technology's inner working can be divided into two distinct parts. First, let's see how it works on the website's end.\\n\\n### The Website's End\\nIf you view each website's source, you will find this specific line in each one but they may have a different order:\\n\\n```html\\n\\n\\n\\n\\n\\n```\\n\\nThese are the `head` parts of HTML, which dictate metadata for the document itself such as what the website title/name is, cosmetic embed, defining the site's icon, etc. They are usually found in between the `` and `` tags. Here's an example of a static HTML site serving one specific video:\\n```html\\n\\n\\n\\n \\n \\n some embed site\\n \\n \\n \\n \\n \\n\\n\\n

Hi

\\n

Just your friendly neighborhood video embed site

\\n \\n\\n```\\n\\n< br />\\nThese interactive sites usually deploy a live script, like a Javascript framework. Examples are NodeJS, ExpressJS, Svelte, etc. These are used to parse video and thumbnails realtime so they can be embedded on Discord (or potentially other platforms).\\n\\n### Discord's End\\n\\nTraditionally, Discord's media embedder will impose it's own video embed size limit (50 MiB) when a user sends a direct video link as usual. But in this case Discord will embed the thumbnail first, not the video. You could say the link \\\"tricks\\\" Discord by showing a \\\"false face\\\" first.\\n\\n\\n\\n## Strengths & Limitations\\n\\nAfter a combination of countless hours of observation, rigorous testing throughout the period of a year, and conversations with the sites' creators, the current strengths & limitations of this exploit are enumerated below.\\n\\n#### Strengths\\n\\n- You can embed non-web compatible codecs such as [HEVC](https://wiki.x266.mov/docs/video/HEVC) in [MP4/MOV](https://wiki.x266.mov/docs/introduction/terminology#mp4--m4v), but the user must be using a compatible browser. [Thorium](https://thorium.rocks) or Safari version 13 or greater will work for HEVC playback.\\n- There is no maximum size. You could embed a video the size of a raw Bluray, although I do not condone this unless you have the necessary legal permissions to do so or you're uploading a Creative Commons licensed movie like Big Buck Bunny while adhering to the restrictions of the applicable Creative Commons license. This also means you can send high bitrate gaming clips to your friends without any restrictions, assuming you already have a place to upload them.\\n\\n#### Limitations\\n\\n- You can only use [hotlinks](https://simple.wikipedia.org/wiki/Hotlinking), which means direct linking to the video itself ending in the appropriate file extension such as `.mp4`. Cloud services like Google Drive or OneDrive will not work for storage.\\n- You cannot use Discord's CDN (cdn.discordapp.com) as the video source. I assume this is because of Discord's proxy blocking embeds over 50 MiB, but **only discord.nfp.is can do this**, as it **proxies cdn.discordapp.com** itself.\\n- You cannot embed videos in any resolutions higher than 3840 x 2160, Discord imposes a hard limit for this on all video after it was discovered that some videos could play normally but then be maliciously scaled to ridiculous resolutions during playback to crash Discord.\\n\\n\\n\\n## Differences between Sites\\n\\nAs mentioned before, there are five known sites at the time of writing. They all serve the same function, but one may interest you more than another due to slight differences in features & functionality.\\n\\nHere are the sites, each with one noteworthy special benefit:\\n\\n- https://stolen.shoes - Recognition, as it is the OG.\\n- https://discord.nfp.is - You can use Discord CDN as video source.\\n- https://embeds.video - Immediately input video source into the URL (`https://embeds.video/https://example.com/v/video.mp4`)\\n- https://x266.mov/discord-embed - Attractive domain, simple layout.\\n- https://autocompressor.net/av1 - Lots of info dump, pretty advanced features.\\n\\nThat concludes the technical overview! Next, let's cover the history of this exploit.\\n\\n## The Lore\\n\\n### Dwayne\\n\\nIn around April of 2022, a Reddit user going by the name of u/CreativeGamer03 [posted a video on r/discordapp](https://www.reddit.com/r/discordapp/comments/u96kky/someone_sent_this_in_the_memes_channel_and_bruh) of a link where a GIF of Dwayne \\\"The Rock\\\" Johnson plays caption with \\\"Is this a GIF or is it a video?\\\" When played, a low-quality music video of Rick Astley's \\\"Never Gonna Give You Up\\\" plays.\\n\\nThe link used is now unfortunately [removed](https://archuser.de/the-rock).\\n\\n### Discovery\\nOn 23rd June 2022, a Discord user *Clybius* on the AV1 Community server asked people for [VP9](https://wiki.x266.mov/docs/video/VP9) or [H.264](https://wiki.x266.mov/docs/video/AVC) videos that were over 100 MB in size. At the time the current 500 MB nitro tier did not exist. They then decided to use a 59 minute 1080p sample video of nature scenery from around the world with a thumbnail featuring a GIF of a waterfall to test the exploit. It worked.\\n\\nHe tried shortly afterward with [AV1](https://wiki.x266.mov/docs/video/AV1). Eureka, it also worked:\\n\\n![AV1](/img/clybius-av1.webp)\\n\\nClybius confirmed that this could be patched if discovered. He cites having had the idea from the Dwayne Johnson example above, but forgetting about it for a couple of months. So, it seems this entire concept stemmed from a silly rickroll.\\n\\n![Dwayne](/img/clybius-dwayne.webp)\\n\\n### The Experiments & Interactive Site\\n\\nAfter the discovery of AV1 embedding, experimentation brought about the discovery that *any* video codec will work as long as the user can decode/play the codec and the container/extension is an MP4, MOV, or WebM. These are all traditionally web-compatible containers. If you're interested in learning about containers, please see the [Containers](https://wiki.x266.mov/docs/introduction/terminology#container) section on the [Terminology](https://wiki.x266.mov/docs/introduction/terminology) page.\\n\\nThis applies to HEVC, ProRes, [xHE-AAC](https://wiki.x266.mov/docs/audio/AAC#xhe-aac), and other bizarre codecs that are rarely seen on the Web.\\n\\nWhile experimentating, Clybius converted one their idle domains `stolen.shoes` into an interactive embedder that provided a textbox for a video URL, a thumbnail URL, a width value, & a height value for the desired video. This would be the first website for Discord embedding.\\n\\n### Virality\\n\\nIt's not long before people outside of the AV1 Community discovered `stolen.shoes`, and its popularity increased rapidly. Its use usually involved the illicit distribution of full-length, unauthorized copies of movies; this sometimes happened very shortly after some movies were released. There were a couple notable instances of this happenening that caused quite the stir online each time.\\n\\n- The first instance featured the DreamWorks sequel of \\\"Puss in Boots (2011)\\\", \\\"Puss in Boots: The Last Wish (2022)\\\". A 1080p video sourced from a streaming site was the first wake up call that attracted attention to the existence of these embed sites. This example used `stolen.shoes`.\\n\\n![puss](/img/stolenshoes-puss.webp)\\n\\n- The second instance was when highly-anticipated animated film \\\"The Super Mario Bros. Movie (2023)\\\" produced by Illumination, Universal Studios, and Nintendo was spread around Discord. It was first spotted as a Cam (A camera recording by someone in theaters), then as it went out on streaming services a different link appeared but spread faster and with upgraded 1080p quality. Both used `stolen.shoes` as the embed site.\\n\\n![mario](/img/stolenshoes-mario.webp)\\n\\n- The third instance is very recent as of the day this was posted. A streaming-service sourced \\\"Five Nights at Freddy's (2023)\\\" was spread around since the movie released both in theaters and streaming service (Peacock) day one, and it gained steam extremely fast as most people had not seen it yet. Currently, this illegal novelty is gaining [hundreds of upvotes within the r/discordapp subreddit](https://www.reddit.com/r/discordapp/comments/17hx45y/is_discordnfp_an_ip_grabber/). The copy seems to be a compressed 720p encode. This example used `discord.nfp.is`.\\n\\n![fnaf](/img/discordnfpis-fnaf.webp)\\n\\nNote the ones listed here are the ones that I saw become extremely popular. There may be lesser known links that have been spread around privately or just did not cause enough noise for me to notice. Some less popular examples I've noticed, featuring more illicit copyrighted content distribution: \\n- Top Gun Maverick (2022)\\n- The SpongeBob trilogy (2005/2015/2020)\\n- Spider-Man: Across the Spider-Verse (2023)\\n\\n\\n## Closing\\n\\nThe ability to embed unusually large videos on Discord has enabled both positive and negative use cases. On the one hand, it allows high-quality content to be shared easily among friends. However, it has also facilitated mass copyright infringement by empowering virtually anyone with a Discord accound to freely spread pirated movies.\\n\\nWhile this is fascinating from a technical perspective, embedding techniques like these tread a fine ethical line. As with anything, it is important to be mindful of how our actions affect others, and I should remind everyone that content creators deserve to be compensated for their work. As users, we should support them by accessing their content via legitimate platforms.\\n\\nIt is hard to say how long this exploit will continue to be usable. Instead of enabling piracy, which may cause Discord to be more likely to patch this exploit if they see it as a serious threat, let's instead use these capabilities responsibly to share our own creations, gaming highlights, and other media which we can share legally. Given some thoughtfulness, perhaps we can find a fair balance between respecting copyright law and appeasing Discord's sensibilities while allowing some creative flexibility on the platform.\\n\\nThank you for reading this blog post, I hope you learned something!\"},{\"id\":\"av1-encoding-for-dummies\",\"metadata\":{\"permalink\":\"/blog/av1-encoding-for-dummies\",\"source\":\"@site/blog/2023-09-03-av1-for-dummies.mdx\",\"title\":\"AV1 Encoding for Dummies\",\"description\":\"This guide will show you how to encode in AV1 the *right* and *optimal* way.\",\"date\":\"2023-09-03T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"video\",\"permalink\":\"/blog/tags/video\"},{\"inline\":true,\"label\":\"compression\",\"permalink\":\"/blog/tags/compression\"}],\"readingTime\":16.09,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"socials\":{},\"key\":null,\"page\":null},{\"name\":\"Gianni Rosato\",\"title\":\"Maintainer\",\"url\":\"https://github.com/gianni-rosato\",\"image_url\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"socials\":{},\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"AV1 Encoding for Dummies\",\"description\":\"This guide will show you how to encode in AV1 the *right* and *optimal* way.\",\"slug\":\"av1-encoding-for-dummies\",\"authors\":[{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\"},{\"name\":\"Gianni Rosato\",\"title\":\"Maintainer\",\"url\":\"https://github.com/gianni-rosato\",\"image_url\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/35711760?v=4\"}],\"tags\":[\"video\",\"compression\"],\"image\":\"/img/compare-guide.webp\",\"hide_table_of_contents\":false},\"unlisted\":false,\"prevItem\":{\"title\":\"Embedding the Un-Embeddable\",\"permalink\":\"/blog/embedding-the-un-embeddable\"},\"nextItem\":{\"title\":\"Reducing Image Load Online\",\"permalink\":\"/blog/site-optimization\"}},\"content\":\"This guide will show you how to encode in AV1 the *right* and *optimal* way. Yes, you using standalone ``libaom``, ``libsvtav1``, and ``librav1e`` from FFmpeg or even piping ``yuv4mpeg`` into **mainline** aomenc are all unoptimal.\\n\\n\x3c!--truncate--\x3e\\n\\n:::danger Outdated Information\\nWhile a lot of the information presented in this guide is still relevant and correct, the AV1 ecosystem has changed dramatically since this guide's inception which has demanded a rewrite. Please see the [AV1 for Dummies](https://wiki.x266.mov/blog/av1-for-dummies) blog post for more information.\\n:::\\n\\n![Compare](/img/compare-guide.webp)\\n\\nIn this guide, we'll be installing Av1an for chunked encoding and infinite threading, because the current state of AV1 encoders, except for [SVT-AV1](https://wiki.x266.mov/docs/encoders/SVT-AV1), unfortunately lacks threading and will only use very low amount of cores, which hampers speeds. The only caveat to this approach is **RAM consumption**, encoding 2160p (4K) with [aomenc](https://wiki.x266.mov/docs/encoders/aomenc) with 4 workers could take upwards of **16GB** of RAM! So do keep this in mind.\\n\\n## Installing the Tools\\n\\nGiven all of the different operating systems that people use on a day to day basis and the various different encoding workflows that exist, there are a number of ways to do this.\\n\\n**Jump to**: [Windows](#microsoft-windows) | [macOS](#macos) | [Linux](#linux)\\n\\n## Microsoft Windows\\n\\n### The GUI Way\\n1. Install [NMKODER](https://github.com/n00mkrad/nmkoder) which is a GUI front-end to av1an with all dependencies installed.\\n2. You're done, you can skip to the encoding part\\n\\n:::danger Almost abandonware\\nSince Nmkoder already ships everything by default and its last release was 29th March 2022. You need to manually update all encoders and tools to get better encoding speeds. Missing out on updates will result in your encodes being sub-optimal.\\n:::\\n\\n### The WSL2 Way\\n\\n*(Recommended)*\\n\\nIf you're not already familiar with WSL2, the The Windows Subsystem for Linux (WSL) is a feature of the Windows operating system that allows you to run a Linux file system, along with Linux command-line tools and GUI apps, directly on Windows. This lets Linux distributions run on bare metal without managing any virtual machines, so encoding performance is very good.\\n\\nThe easiest way to encode with WSL2 is to use [rAV1ator CLI](https://wiki.x266.mov/docs/utilities/rav1ator-cli), an interactive TUI for [Av1an](https://wiki.x266.mov/docs/utilities/av1an). An ArchWSL2 installation tutorial is provided [here](https://wiki.x266.mov/docs/utilities/rav1ator-cli#windows).\\n\\n### The Automated Way\\n\\nThere is now a batch script for automating the install process, which can be found [here](https://github.com/Hishiro64/av1an-win-script). The instructions are in the README file.\\n\\n:::caution\\nThe script will download outdated version encoders and tools such as `aom-av1-psy` and MKVToolNix v76.0, if you are fine with these you can proceed.\\n:::\\n\\n### The Manual Way\\n\\n1. Install **Python 3.10.x, this will change so consult from the** [Vapoursynth website](http://www.vapoursynth.com/doc/installation.html) **if you're reading this from the future** from [here](https://www.python.org/downloads/windows/) and select \\\"Windows Installer 64-bit\\\". Upon installation check the tick for adding Python to PATH like so\\n![Python PATH](/img/python-path.webp))\\n\\n2. Download and install Vapoursynth from [here](https://github.com/vapoursynth/vapoursynth/releases) and select \\\"VapourSynth64-RXX.exe\\\"\\n3. Open the terminal and type ``vsrepo.py install lsmas ffms2`` to install some plugins for Av1an to work.\\n4. Download MKVToolNix from [here](https://mkvtoolnix.download/downloads.html#windows), select \\\"mkvtoolnix-64bit-XX.X.X-setup.exe\\\", and install **(Also available on winget!)**\\n5. Download Av1an from [here](https://github.com/master-of-zen/Av1an/releases) (SELECT LATEST AND CLICK THE \\\"ASSETS\\\" DROPDOWN)\\n6. Download **shared libraries** FFmpeg from [gyan.dev](https://www.gyan.dev/ffmpeg/builds)\\n7. Download a pre-built fork of Aomenc ([aom-av1-lavish](https://github.com/Clybius/aom-av1-lavish/tree/Endless_Merging)) which has neat stuff such as sane defaults, new tunes, optimizations, etc. This can be downloaded for Windows [here](https://autumn.revolt.chat/attachments/download/-2EiZW1edcT9anApFZ1PJBEber-pJ6z02NiQBjbr28) *(Current as of Sept 6, 2023)*\\n:::info\\nIf you opt to compile aomenc yourself, you can view the instructions on how to do that [here](https://wiki.x266.mov/docs/encoders/aomenc/#installation).\\n:::\\n8. Move Av1an, FFmpeg **(Including the FFmpeg DLLs)**, and aomenc to somewhere preferable, eg ``C:\\\\Encoding``.\\n9. Add the folder **AND MKVTOOLNIX INSTALLATION FOLDER** to the [Windows PATH environment](https://www.maketecheasier.com/what-is-the-windows-path/).\\n\\n\\n## macOS\\n\\nmacOS is very similar to Linux, although there aren't any GUI tools for AV1 encoding that I can comfortably recommend.\\n\\n**Homebrew + Macports for Av1an + rav1e:**\\n*Note that some commands may have to be run with `sudo`, which I won't explicitly include for security reasons.*\\n\\nInstalling the Homebrew package manager is a well documented process at this point:\\n```bash\\n/bin/bash -c \\\"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\\\"\\n```\\n\\nAs is installing MacPorts. Install the relevent `.pkg` for your macOS version from the MacPorts Project website:\\n[www.macports.org/install.php](https://www.macports.org/install.php)\\n\\nNow, you can run the following commands:\\n```bash\\nbrew update && brew upgrade\\nbrew install rav1e aom mkvtoolnix ffmpeg\\n# Usually you must run MacPorts commands for package installations as root\\nport upgrade outdated\\nport install av1an\\n```\\n\\nThis is the easiest way to get everything set up & working to produce AV1 video with `rav1e` or mainline `aomenc` & Av1an. You can check that things are installed by running the following commands & parsing their output:\\n```bash\\n% av1an --version\\nav1an 0.4.1-unstable (rev e10880d) (Release)\\n\\n* Compiler\\n rustc 1.70.0 (LLVM 16.0)\\n\\n* Target Triple\\n aarch64-apple-darwin\\n\\n* Date Info\\n Commit Date: 2023-06-25\\n\\n* VapourSynth Plugins\\n systems.innocent.lsmas : Not found\\n com.vapoursynth.ffms2 : Not found\\n```\\n```bash\\n% rav1e --version | grep \\\"release\\\" -C 1\\nrav1e 0.6.6 () (release)\\nrustc 1.69.0 (84c898d65 2023-04-16) (built from a source tarball) aarch64-apple-darwin\\n```\\n```bash\\n% aomenc --help | grep \\\"AOMedia\\\" -C 3\\n\\nIncluded encoders:\\n\\n av1 - AOMedia Project AV1 Encoder 3.6.1 (default)\\n\\n Use --codec to switch to a non-default encoder.\\n```\\n\\nNotice `systems.innocent.lsmas : Not found` in the Av1an output. This means you won't be able to use the lsmash chunking method through vapoursynth & may instead have to rely on hybrid chunking, through `-m hybrid`. This is slower & takes up disk space while encoding, but still works. A sample Av1an command with this basic installation may look like this:\\n\\n```bash\\nav1an -i \\\"input\\\" -y --resume --verbose --split-method av-scenechange -m hybrid -c mkvmerge -e rav1e --force -v \\\" --tiles 8 -s 4 --quantizer 80 --no-scene-detection\\\" --photon-noise 7 --chroma-noise --pix-format yuv420p10le -w 8 -o \\\"output.mkv\\\"\\n```\\n\\n**Building From Source**\\n\\nIf you want lsmash support, aom-av1-lavish instead of mainline, or anything else that isn't covered by the more basic installation, you'll have to compile from source. Things are very similar to Linux, with a few oddities:\\n\\n- macOS sometimes doesn't have a `/usr/local/bin` by default. You can fix this by doing `mkdir /usr/local/bin`.\\n- Homebrew installs *everything* in its own directory structure. If you're building things from source that rely on libraries from vapoursynth, zimg, lsmash, etc, make sure to copy them from `/opt/homebrew/lib` to `/usr/local/lib`. Finding them is a matter of `ls | grep \\\"keyword\\\"` & copying what looks reasonable to be associated with the tool you're using.\\n- Building most things from source will have instructions for \\\\*nix which work for both macOS & Linux. Even if it says Linux, there's a good chance it'll work on macOS as well, & it is always worth trying Linux build instructions on Mac. I won't be going through building every encoding tool & dependency from source, as it is generally much more intuitive than Windows, but building Av1an is worth detailing here just as an example.\\n```bash\\nbrew install git rust nasm\\ngit clone https://github.com/master-of-zen/Av1an\\ncd Av1an\\nRUSTFLAGS=\\\"-C target-cpu=native\\\" cargo build --release\\ncd .. && cd target/release\\ncp av1an /usr/local/bin\\n```\\n\\n**More Difficult: Building aom-av1-lavish from Source**\\n\\nIf you want to make the most out of your hardware & eke out every last drop of quality, it may be worth building aom-av1-lavish from source. The first step is to clone it from the Endless Merging branch:\\n```bash\\ngit clone https://github.com/Clybius/aom-av1-lavish -b Endless_Merging\\ncd aom-av1-lavish\\n```\\nNow, you need to make some manual changes to the source code until Clybius merges [this commit](https://github.com/Clybius/aom-av1-lavish/pull/1/files).\\n- Add the line `#include \\\"aq_variance.h\\\"` at line 19 in `av1/encoder/encodeframe_utils.c`\\n- Comment out line 2546 in `av1/encoder/speed_features.c`. This line is `const int qindex_thresh_cdef_sf_s1_s3_l2[2] = { 92, 48 };` & becomes `// const int qindex_thresh_cdef_sf_s1_s3_l2[2] = { 92, 48 };`.\\n\\nNow you can continue to build according to the Linux instructions below. Obviously you'll need cmake, which you can install with homebrew along with any other tools you may need. While still in the `aom-av1-lavish` directory:\\n```bash\\nmkdir -p aom_build && cd aom_build\\ncmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=\\\"-flto -O3 -march=native\\\" -DCMAKE_C_FLAGS=\\\"-flto -O3 -march=native -pipe -fno-plt\\\" -DCMAKE_LD_FLAGS=\\\"-flto -O3 -march=native\\\"\\nmake -j$(nproc)\\n# This may need to be run as root:\\nmake install\\n```\\n\\nNow you can run `aomenc --help | grep \\\"AOMedia\\\" -C 3` to see if lavish installed. If you're getting the same output as above, you may need to copy the `aomenc` executable to `/opt/local/bin`, `/usr/local/bin`, & `/opt/homebrew/bin` if you already installed mainline aomenc. Running the version info command again, the correct output should look something like this:\\n```bash\\n% aomenc --help | grep AOMedia -C 3\\n\\nIncluded encoders:\\n\\n av1 - AOMedia Project AV1 Encoder Psy v3.6.0 (default)\\n\\n Use --codec to switch to a non-default encoder.\\n```\\n\\nNotice how it says `AOMedia Project AV1 Encoder Psy` instead of `AOMedia Project AV1 Encoder`. You should be all set after this to start using aom-av1-lavish & following the current parameter meta as outlined below.\\n\\n## Linux\\n\\n:::info\\nYet again, try using Arch. It's way easier.\\n:::\\n\\n### The GUI Way\\n\\n- Install [Aviator](https://github.com/gianni-rosato/aviator) ([SVT-AV1](https://wiki.x266.mov/docs/encoders/SVT-AV1) + [FFmpeg](https://wiki.x266.mov/docs/utilities/FFmpeg)) or [rAV1ator](https://giannirosato.com/blog/post/aviator-1/) basically same thing but [Av1an](https://wiki.x266.mov/docs/utilities/av1an.mdx) + [rav1e](https://wiki.x266.mov/docs/encoders/rav1e). Both are only available as [Flatpaks](https://beta.flathub.org/apps/net.natesales.Aviator). Keep in mind Aviator ships with **SVT-AV1** and rAV1ator with **rav1e** instead of aomenc/AOM-AV1, which I will not be covering here.\\n\\n### The TUI Way\\n\\n*(Recommended)*\\n\\n- Install [rav1ator-cli](https://wiki.x266.mov/docs/utilities/rav1ator-cli), a TUI for using Av1an meant to be easy to use. Much more flexible than the GUI options & can work with a number of encoders. See [this page](https://wiki.x266.mov/docs/utilities/rav1ator-cli/#installation) for more info. Can be easily used on any distro.\\n\\n### The Compiling Route\\n\\n#### Ubuntu\\n\\nThe guide below is targeted towards 22.04, packages and other things may be different on other versions. First Install Rust via `rustup` first, as apt version of Rust is severely outdated, then you can continue.\\n\\nInstall dependencies:\\n```bash\\nsudo apt install wget python unzip unrar build-essential meson autoconf automake libtool git nasm yasm python3-dev python3-pip cython3 libass-dev libqt5websockets5-dev libfftw3-dev libtesseract-dev ffmpeg libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libswresample-dev libmediainfo-dev mkvtoolnix mediainfo perl nasm yasm git cmake libavutil-dev libavcodec-dev libavformat-dev libavdevice-dev libavfilter-dev libswscale-dev libswresample-dev libpostproc-dev llvm libclang-dev libssl-dev\\n```\\n\\nInstall l-smash:\\n```bash\\ngit clone https://github.com/l-smash/l-smash.git\\ncd l-smash\\n./configure --enable-shared --extra-cflags=\\\"-march=native\\\"\\nmake -j$(nproc)\\nsudo make install\\n```\\n\\nInstall zimg:\\n```bash\\ngit clone --recursive https://github.com/sekrit-twc/zimg.git\\ncd zimg\\n./autogen.sh\\n./configure\\nmake -j$(nproc)\\nsudo make install\\n```\\n\\nInstall ImageMagick:\\n```bash\\ngit clone https://github.com/ImageMagick/ImageMagick\\ncd ImageMagick\\n./configure\\nmake -j$(nproc)\\nsudo make install\\n```\\n\\nInstall Vapoursynth R63:\\n```bash\\nwget https://github.com/vapoursynth/vapoursynth/archive/refs/tags/R63.zip\\nunzip R63.zip\\ncd vapoursynth-R63\\n./autogen.sh\\n./configure CFLAGS=\\\"-march=native\\\" CXXFLAGS=\\\"-march=native\\\" --libdir=/usr/lib\\nmake -j$(nproc)\\nsudo make install\\nsudo mkdir /usr/lib/vapoursynth\\nsudo ldconfig\\n```\\nThe plugin directory will be located in `/usr/lib/vapoursynth`.\\n\\n\\nInstall L-SMASH-Works Vapoursynth Plugin:\\n```bash\\ngit clone https://github.com/AkarinVS/L-SMASH-Works -b ffmpeg-4.5\\ncd L-SMASH-Works/VapourSynth && mkdir build && cd build\\nmeson .. --optimization=3 --default-library=static -Db_lto=true -Dc_args=\\\"-march=native\\\" -Dcpp_args=\\\"-march=native\\\"\\nninja -j$(nproc)\\nsudo cp libvslsmashsource.so /usr/lib/vapoursynth/\\n```\\n\\n:::danger\\nL-SMASH-Works doesn't work on **aarch64**, it is recommended to use other plugins instead.\\n:::\\n\\nInstall FFMS2 Vapoursynth Plugin:\\n```bash\\ngit clone https://github.com/FFMS/ffms2\\ncd ffms2\\n./autogen.sh\\n./configure CFLAGS=\\\"-O3 -march=native\\\" CXXFLAGS=\\\"-O3 -march=native\\\"\\nmake -j$(nproc)\\nsudo cp src/core/.libs/libffms2.so src/core/.libs/libffms2.so.5 src/core/.libs/libffms2.so.5.0.0 /usr/lib/vapoursynth\\n```\\n\\nInstall Av1an:\\n```bash\\ngit clone https://github.com/master-of-zen/Av1an\\ncd Av1an\\nRUSTFLAGS=\\\"-C target-cpu=native\\\" cargo build --release\\nsudo cp target/release/av1an /usr/local/bin\\n```\\n\\nWhen there's no errors, proceed to compiling `aom-av1-lavish`.\\n\\n### Arch\\n\\nInstall dependencies:\\n```bash\\nsudo pacman -S vapoursynth ffmpeg av1an mkvtoolnix-gui git perl cmake ninja meson nasm vapoursynth-plugin-lsmashsource ffms2\\n```\\n\\nyou're done, proceed.\\n\\n#### Compiling aom-av1-lavish\\n``` bash\\ngit clone https://github.com/Clybius/aom-av1-lavish -b Endless_Merging\\ncd aom-av1-lavish && mkdir -p aom_build && cd aom_build\\ncmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=\\\"-flto -O3 -march=native\\\" -DCMAKE_C_FLAGS=\\\"-flto -O3 -march=native -pipe -fno-plt\\\"\\nmake -j$(nproc)\\nsudo make install\\n```\\n\\n## Encoding\\n\\nThe moment you've all been waiting for, let's just get into it. Here's an example *recommended* parameter as of now (09/03/23) [MM/DD/YY]:\\n```bash\\nav1an -x 300 -i input.mkv -w 4 -e aom -c mkvmerge --resume -m lsmash --photon-noise=10 --set-thread-affinity=2 --verbose -a \\\" -an \\\" -f \\\" -an \\\" -v \\\" --bit-depth=10 --cpu-used=4 --end-usage=q --cq-level=24 --threads=2 --tile-columns=0 --tile-rows=0 --lag-in-frames=64 --tune-content=psy --tune=ssim --enable-keyframe-filtering=1 --disable-kf --kf-max-dist=9999 --enable-qm=1 --deltaq-mode=0 --aq-mode=0 --quant-b-adapt=1 --enable-fwd-kf=0 --arnr-strength=1 --sb-size=dynamic --enable-dnl-denoising=0 \\\" -o \\\"output.mkv\\\"\\n```\\n\\n:::info Parameter Meta\\nIt is strongly recommended to join the [AV1 Discord server](https://discord.gg/vpREHAvYvh) to get the latest updates on what to use and which to set, as it's the only easily reachable place for everything AV1 & encoding tips in general.\\n:::\\nNow let's dissect it one-by-one\\n\\n**Av1an parameters:**\\n\\n- ``-i`` Input.\\n\\n- ``-x 300`` Sets scene split length to 300 frames, you can increase it for more quality at the tradeoff of video seekability.\\n\\n- ``-w 4`` Specifies the amount of \\\"workers\\\" or amount of encoders working on the video.\\n\\n- ``--verbose`` Sets logging to verbose.\\n\\n- ``--resume`` Resumes the encode even when you haven't encoded yet. I strongly recommend leaving this if you resume a lot since you can accidentally delete your whole progress (There's no delete confirmation feature.. yet) if you \\\"resumed\\\" without the parameter in place.\\n\\n- ``-e aom`` Specifies we're using aomenc encoder which should be the default option.\\n\\n- ``-c mkvmerge`` Specifies we're using mkvmerge (MKVToolNix) to concatenate the parts when done, you can specify with ffmpeg if you want to but this is the best method.\\n\\n- ``-m lsmash`` Specifies we're using l-smash (Vapoursynth plugin) to split the videos, this is also the best method because ffms2 causes video lag (Tested a year ago, might change now) and other methods just suck (Slow and not worth it, learned the hard way). You can attempt to use ffms2 when inputting VC-1 videos as it is not possible with l-smash (Or convert it to lossless with x264 qp 0).\\n\\n- ``-f \\\" -an \\\"`` ``-f`` Stands for ffmpeg parameters, ``-an`` is to remove all audio since its better to encode and merge it separately. To crop use ``-f \\\" -an -vf crop=1920:800 \\\"`` for example to crop the video to 1920x800.\\n\\n- ``-v \\\" \\\"`` Is where you put the encoder's parameters in.\\n\\n- ``-a \\\" -an \\\"`` FFmpeg audio encoding options, we're removing it cause we can always add it later. But if you want to, you can also encode directly. Here's an example for encoding to Opus using libopus assuming stereo: `-a \\\" -c:a libopus -b:a 128k \\\"`.\\n\\n- ``--photon-noise=10`` AV1 grain synthesis, which is a technique where the encoder puts fake grain in so it looks more natural and potentially hiding video artifacts (cause grain is hard to encode and explodes bitrate usage because of their randomness), 5-8 for almost none to little grain, 10-14 for medium, 15+ heavy, 20+ extremely heavy, 30+ for extremely grainy 90s live action films.\\n\\n- ``--set-thread-affinity=2`` Pins the thread to the encoder, aligns with ``--threads=2`` in the encoder parameter so set them accordingly.\\n\\n\\n**aomenc parameters:**\\n- ``--bit-depth=10`` We're using 10bit because it makes the video smaller and reduces [banding](https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Video_codecs#contouring).\\n\\n- ``--cpu-used=4`` This is the preset which ranges from 0-9, you can go to 3 if you want more efficiency, 2 if you have a lot of time, 4 is the sweet spot, and 6 if you want speed. Don't go above 6 (Worst efficiency) or even 0 (It would take WEEKS to finish).\\n\\n- ``--end-usage=q --cq-level=24`` This specifies that we are going to use a knockoff version of CRF level similar to x264/x265 encoders, in this case CRF 24.\\n\\n- `--threads=2` Sets the amount of threads the encoder can use, aligns with `--set-thread-affinity` in Av1an.\\n\\n- ``--tile-columns=0 --tile-rows=0`` This is the tiles options, where the encoder splits the videos into tiles to encode faster, see the image below (Yellow lines):\\n\\n \\n \\\"Tiling\\\"\\n\\n\\n:::note Tile usage\\nDo NOT use tiles for 1080p and below, use 1 ``tile-columns`` at 1440p (2K), 2 ``tile-columns`` and 1 ``tile-rows`` for 2160p (4K)\\n:::\\n\\n- ``--lag-in-frames=64`` Similar to x264/x265 `rc-lookahead`. Sets a number of frames to look ahead for frametype and ratecontrol, allowing for better compression decision making. Setting to a value greater than 64 is generally not considered useful.\\n\\n- ``--aq-mode`` adaptive quantization mode, 0 is better most of the time\\n\\n- ``--tune-content=psy --tune=ssim`` As the name suggests they are tunes that affect the video output, for the better, and for the worst\\n\\n:::info Tunes to use\\nSet ``tune-content`` to ``animation`` if you're encoding above ``cq-level=30`` A.K.A lower quality, despite it's name\\nSet ``tune-content`` to ``psy`` for everything else, **do not use if you encode above ``cq-level=30``**\\nFor ``tune``, this is a bit tricky. For now, the meta seems to be ``ssim``, but back then it was ``lavish`` which is considered THE best tune because it's based on [butteraugli](https://github.com/google/butteraugli). Now it's fallen behind because its more blurry than ``ssim``, and before that it was ``butteraugli``, and then ``ipq_vmaf_psy``, and finally just ``ipq``.\\nIf you use any of the VMAF tunes, **you need to specify ``--vmaf-model-path=`` to where you put it**.\\n:::\\n\\n- ``--enable-keyframe-filtering=1`` We're setting it to 1 because of compatibility reasons, 2 is more efficient but there are seeking issues and FFmpeg for some reason can't input it.\\n\\n- ``--sb-size=dynamic`` Allows the encoder to use 128x128 block partitioning besides 64x64 which gives an efficiency boost, ignore it.\\n\\n- ``--deltaq-mode`` set to 0 because its just better.\\n\\n- ``--arnr-strength=1`` Controls how strong the filtering will be, 1 is good for 3D Pixar CGI-like and 2D animation, use 4 if you're doing live action content. Using maximum at higher bitrates would just result in a blurry mess.\\n\\n- ``--disable-kf --enable-fwd-kf=0`` We're disabling keyframes cause **Av1an already did scene detection, so we wont have to.**. And it speeds things up.\\n\\n- ``--kf-max-dist=9999`` Maximum keyframe interval, we're setting it at the highest possible value since av1an's scene detection keyframe interval is already 240 by default\\n\\n- ``--enable-chroma-deltaq=1 --enable-qm=1 --quant-b-adapt=1`` Parameters that give you free efficiency boost.\\n\\n- ``--enable-dnl-denoising=0`` Disables the encoder's built-in denoising technique when grain synthesis is enabled, you can optionally set it to 1 when you have a pretty noisy video since it works quite well.\\n\\n\\n:::info Concatenation Error on Linux\\nRun ``ulimit -n 200000``, resume, and it should concatenate just fine. If it still errors, head to the encode directory > encode, and run ``mkvmerge @../options.json``\\n:::\\n\\n\\n## Merging Everything\\n\\nOnce you're done just encode your audio using ffmpeg (or just passthrough it), subtitles should be carried along with your video output, and merge them in MKVToolNix! Don't want Matroska files? That's fine, you can use FFmpeg or MP4Box to output into `mp4`, just keep in mind that PGS/SUP/VOBSUB subtitles are not supported and Opus audio support is still experimental.\\n\\n\\n## Tips & Tricks\\n\\n- `--denoise-noise-level=10` Alternative to `photon-noise`, slower than photon-noise and is the OG grain synthesis method, performs okay and just serves as an alternative. Don't attempt to use it at high values (>12) since it creates noticeable grain patterns.\\n\\n- `--arnr-maxframes` to set max reference frames that will be used to filter the encode, higher values would make the video blurrier at high fidelity but look better at lower bitrates.\\n\\n- `--butteraugli-resize-factor=2` if you use any of the butteraugli-based tunes (lavish, butteraugli) to speed it up without much losses and `--butteraugli-intensity-target=250` to match the content light level.\\n\\n\\n## Final Thoughts\\n\\nEncoding has always been about experimentation for the best, there is really no \\\"One size fits all\\\" for encoding content, as they differ from scene complexity, how it's captured (2D/Real life), film grain, dark scenes, etc. So experiment away for your specific type of content!\\n\\n> **Guide originally hosted on https://rentry.co/AV1, rewrite and migration by Simulping.**\"},{\"id\":\"site-optimization\",\"metadata\":{\"permalink\":\"/blog/site-optimization\",\"source\":\"@site/blog/2023-07-21-site-optimization.mdx\",\"title\":\"Reducing Image Load Online\",\"description\":\"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.\",\"date\":\"2023-07-21T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"image\",\"permalink\":\"/blog/tags/image\"},{\"inline\":true,\"label\":\"web\",\"permalink\":\"/blog/tags/web\"},{\"inline\":true,\"label\":\"compression\",\"permalink\":\"/blog/tags/compression\"}],\"readingTime\":9.25,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Gianni Rosato\",\"title\":\"Maintainer\",\"url\":\"https://github.com/gianni-rosato\",\"image_url\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"socials\":{},\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"Reducing Image Load Online\",\"description\":\"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.\",\"slug\":\"site-optimization\",\"authors\":[{\"name\":\"Gianni Rosato\",\"title\":\"Maintainer\",\"url\":\"https://github.com/gianni-rosato\",\"image_url\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/35711760?v=4\"}],\"tags\":[\"image\",\"web\",\"compression\"],\"image\":\"/img/_DSC8466-smaller.jpg\",\"hide_table_of_contents\":false},\"unlisted\":false,\"prevItem\":{\"title\":\"AV1 Encoding for Dummies\",\"permalink\":\"/blog/av1-encoding-for-dummies\"}},\"content\":\"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery. Compared to other multimedia, images are incredibly popular on the Web & knowing how to serve them properly can be a massive boon to your website's traffic as well as less of a headache for users on slower connections or who are under bandwidth constraints. The most disappointing part is that images are often poorly done on the web; all too frequently will you run into a site serving massive photographic PNGs for no reason, or photography sites serving photographs fresh out of the editing software with no thought put into their final delivery. A little effort, patience, & knowledge will go a long way toward improving the user experience for individuals using your site, & this article will illustrate some of the basics.\\n\\n\x3c!--truncate--\x3e\\n\\n:::caution\\nThese instructions are for *photographic* images; other kinds of images, like non-photographic, artwork, pixel art, etc. should likely be handled differently.\\n:::\\n\\n:::danger\\nMany images won't load properly unless your browser supports JXL, AVIF, & proper ICCv2 color management. This is for demonstration purposes only & shouldn't represent an actual common website experience. If you're curious anyway, the following browsers can display the contents of this page perfectly:\\n- [Thorium](https://thorium.rocks/) | *Linux, [macOS](https://github.com/Alex313031/Thorium-Special/releases), [Windows](https://github.com/Alex313031/thorium/releases/), [Android](https://github.com/Alex313031/Thorium-Special/releases)*\\n- [Waterfox](https://www.waterfox.net/) | *[Linux](https://flathub.org/apps/net.waterfox.waterfox), [macOS](https://www.waterfox.net/download/), [Windows](https://www.waterfox.net/download/)*\\n- [Mercury](https://thorium.rocks/mercury) | *[Linux](https://github.com/Alex313031/Mercury/releases), [Windows](https://github.com/Alex313031/Mercury/releases)*\\n:::\\n\\n## Fire & Forget\\n\\nFirst, we'll illustrate what *not* to do, which is fortunately not incredibly difficult to avoid. Taking an image straight out of your editing software at a massive size will often bloat the size & resolution to something that isn't generally usable for a website regardless of the codec you're using & its quality per bit. It can be argued there are specific use cases that demand incredible resolution & fidelity coexist on the Web, but we won't be covering those here. Here's an example of a bloated image:\\n\\n*exported straight from Darktable at JPEG q90, with no scaling*\\n\\n![bloated_jpeg](/img/_DSC8466.jpg)\\n\\n**2.2 MB**\\n\\n## Massive Improvement\\n\\nThe easiest way to have a large improvement without doing much work is to simply resize the image before serving it. Even if you exported a lossy JPEG, resizing should remove a lot of artifacts. The way to perceive a worst-case for an image's size on a site is to inspect the image element's width & height, which should give us an estimate of how large we should make our image. Any larger than this value is unreasonable since we're overfilling the element's size for no reason & the image is being scaled down anyway.\\n\\n![box-size-mac](/img/box-size-mac.avif)\\n*Inspect Element in Firefox. The Mac used to take this screenshot has a relatively high display resolution of 2560x1664. Because Macs scale things differently, we're probably going to want to double the horizontal resolution here.*\\n\\nThe width is the most important value here, so our new image is going to be exported with a width of 1699 pixels. This new image, encoded at JPEG q90 with `cjpegli`, looks like this:\\n\\n![smaller_jpeg](/img/_DSC8466-smaller.jpg)\\n\\nObviously, there's lost fidelity compared to the original, but considering this is *so much smaller*, it is worth the trade-off for many. It is also worth noting we are using an improved jpeg encoder in the form of `cjpegli`, although that is secondary to the resize. If it doesn't look as good as you want it to, you can always scale the resolution up a bit, though currently, it looks plenty passable for its size.\\n\\n2.2 MB -> **233 kB**\\n\\n### Lazy Loading\\n\\nA bonus tip is to add the `loading=\\\"lazy\\\"` attribute to your picture tag to allow the image to load only when scrolled to by a user. This doesn't save bandwidth, but it improves the user experience by loading images further down the page only when necessary. An example may look like this:\\n\\n```html\\n\\n \\\"alt\\n \\n```\\n\\n## New Codecs\\n\\nIf you desire further improvement, it may be time to consider using a newer codec like [AVIF](https://wiki.x266.mov/docs/images/AVIF) or [JPEG-XL](https://wiki.x266.mov/docs/images/JXL). These options will compress far more effectively than JPEG, with the only trade-off being browser support. We're not going to consider [WebP](/docs/images/WebP) or [HEIC](/docs/images/HEIC), since WebP is not competitive enough with JPEG for photographic imagery (often being worse) & HEIC has been superseded by AVIF - which sees greater support anyhow - & is not royalty free, effectively preventing widespread Web adoption forever. Again, we're just considering *lossy* compression for *photographic* images; it is a different story with WebP elsewhere, as it performs well on non-photographic content & is almost always better than PNG for 8-bit lossless compression. So, we are left with JXL & AVIF for now.\\n\\n### Fallbacks\\n\\nAVIF sees widespread support, but JPEG-XL isn't quite there yet with Web support as Google continues to push AVIF (it is debatable if it ever will be outside the Apple ecosystem). Even with AVIF, adoption isn't remotely close to JPEG, so it is worth providing a fallback. This can look like the following example:\\n\\n```html\\n\\n \\n \\n \\n \\\"alt\\n \\n```\\n\\nHere is a JXL falling back to an AVIF falling back to a WebP falling back to a JPEG. Pretty intense to have this many fallbacks unless you're really after the ultimate compression ratio, but it is certainly an option. AVIF & JPEG alone will probably be enough for most.\\n\\n### Compression Efficacy\\n\\nLet's look at how our image examples compare to the original with our new codec selection. We'll be aiming for high visual fidelity, so around the same quality as our initial JPEG encoded with `cjpegli` (which scores ~`83.01` with the [SSIMULACRA2](/docs/metrics/SSIMULACRA2) visual fidelity metric).\\n\\n![smaller_jxl](/img/_DSC8466-smaller.jxl)\\n\\n**137.0 kB** *JPEG-XL image, encoded with `cjxl lossless.png out.jxl -d 1.49 -e 9`. Score: ~`83.04`* *3.06s user time*\\n\\n![smaller_avif](/img/_DSC8466-smaller.avif)\\n\\n**124.8 kB** *AVIF image, encoded with `avifenc -c aom -s 4 -j 8 -d 10 -y 444 --min 1 --max 63 -a end-usage=q -a cq-level=16 -a tune=ssim lossless.png out.avif`. Score: ~`83.03`* *7.54s user time*\\n\\nJXL also supports lossless transcoding of JPEG images. This means every pixel is identical, the image just has a smaller filesize than the original JPEG; if you can use JXL, you can transcode existing JPEGs losslessly on your site & save some bandwidth that way. The JPEG transcode below gives a higher SSIMULACRA2 score than the original for some reason, but I'll chalk that up to a decoding inconsistency between how the `ssimulacra2` program decodes JPEG & JXL. Either way, the scores are fairly close.\\n\\n![smaller_jxl_jpeg-recomp](/img/_DSC8466-smaller-recomp.jxl)\\n\\n**189.4 kB** *JPEG-XL image from JPEG, encoded with `cjxl input.jpg input-recomp.jxl -d 0.0 -e 9 --brotli_effort=11`. Score: ~`84.92` (???)* *0.67s user time*\\n\\nThe final trick we can use, while not a new codec at all, still increases quality per bit. Encoding an XYB JPEG with `cjpegli` encodes with the perceptual XYB colorspace using an ICC profile to modify the original JPEG colors, avoiding JPEG's normal YCbCr which isn't perceptually optimized for the human visual system. Using XYB, we can afford identical quality with less bitrate than normal JPEG. This has universal compatibility, but not every application understands how to handle the XYB color profile (although color-managed modern browsers should be fine).\\n\\n![smaller_jpeg_xyb](/img/_DSC8466-smaller-xyb.jpg)\\n\\n**208.3 kB** *XYB JPEG, encoded with `cjpegli lossless.png out.jpg --xyb -d 1.155`. Score: ~`83.04`* *0.10s user time*\\n\\nIn this particular instance, AVIF seems to be the overall winner. This isn't always the case due to JXL's superiority at higher fidelity & with more detailed images, but according to SSIMULACRA2, AVIF has the best quality per bit with this image. You can use your own eyes to further clarify your choice, though. It is worth mentioning that as these were encoded from a 16-bit source PNG, the JXL image is the only one that maintains the full original bit depth, & AVIF isn't fast to encode.\\n\\n## Responsive Images\\n\\nDisplaying an image that is too large for a viewport is a waste of bandwidth, & displaying an image that's too small for the viewport leaves fidelity to be desired. Luckily, we have the [Responsive Image Linter](https://ausi.github.io/respimagelint/) that can help us figure out which image sizes we should be using.\\n\\n![responsive_image_linter](/img/responsive_image_linter.avif)\\n\\nIn our fire & forget example, we see that we are serving an image that is far too large. We already know that, but now we can see that given various viewport sizes we could be serving images that have respective widths of 270px, 958px, 1350px, 1660px, & 1916px to optimize for delivery to a variety of different devices. Here's how we'd write that in HTML:\\n\\n```html\\n\\n \\n \\n \\\"alt\\n\\n```\\n\\nIt is worth noting that this example above & the example below aren't perfect implementations of a responsive image given the conditions of this site, but the general concept still applies. Some things to note:\\n\\n- `srcset` = the images available to your browser to serve, & their respective widths\\n- `sizes` = the conditions given to the browser explaining under what conditions should it serve which image\\n- `(min-width: XXXpx) YYYpx` = Given the viewport is at least XXX wide, serve an image of YYY horizontal resolution. The browser will pick an image from srcset that is CSS pixels \\\\* display scaling.\\n- `calc(100vw - 24px)` = Usually preceded by a (min-width) condition. Specifies a value the browser should calculate on its own to pick the closest option from the srcset. Let's say we have `(min-width: 997px) calc(75vw - 257px)`. This means given the viewport is at least 997px wide, calculate 0.75 \\\\* the current viewport resolution - 257 to find the closest image in the srcset to fit the number of pixel specified.\\n\\n\\n \\n \\n \\\"alt\\n\\n\\nThat's all! Massive thanks to Auto-Rez Media Technologies for the inspiration behind this article & explicit permission to use their [Reduce Your Page's Image Load](https://autocompressor.net/blog/reduce-image-load) blog post when writing this entry. I have [confirmed](https://autumn.revolt.chat/attachments/GtFGuwNfeRdcwUN0MWzhDCAiiadWOk88XXC3pQv6RI) with their leadership that this wiki entry can be safely licensed under CC BY-SA 4.0.\"}]}}")}}]); \ No newline at end of file diff --git a/assets/js/f81c1134.c4783553.js b/assets/js/f81c1134.c4783553.js deleted file mode 100644 index 21ae67060..000000000 --- a/assets/js/f81c1134.c4783553.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8130],{7735:e=>{e.exports=JSON.parse("{\"archive\":{\"blogPosts\":[{\"id\":\"codec-wiki-one-year-later\",\"metadata\":{\"permalink\":\"/blog/codec-wiki-one-year-later\",\"source\":\"@site/blog/2024-07-20-codec-wiki-one-year-later.mdx\",\"title\":\"Codec Wiki: One Year Later\",\"description\":\"Codec's Wiki turbulent one-year journey since it's inception to everyone's go-to site for encoding documentation.\",\"date\":\"2024-07-20T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"anniversary\",\"permalink\":\"/blog/tags/anniversary\"},{\"inline\":true,\"label\":\"history\",\"permalink\":\"/blog/tags/history\"}],\"readingTime\":3.785,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"Codec Wiki: One Year Later\",\"description\":\"Codec's Wiki turbulent one-year journey since it's inception to everyone's go-to site for encoding documentation.\",\"slug\":\"codec-wiki-one-year-later\",\"authors\":[{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\"}],\"tags\":[\"anniversary\",\"history\"],\"hide_table_of_contents\":false},\"unlisted\":false,\"nextItem\":{\"title\":\"AV1 for Dummies\",\"permalink\":\"/blog/av1-for-dummies\"}},\"content\":\"Around a month ago, Codec Wiki celebrates it's very first anniversary as it officially hits one year old (Wow, that's a very long time!).\\r\\n\\r\\n\x3c!--truncate--\x3e\\r\\n\\r\\nFirst and foremost, I apologize for this delayed celebration post, I have been very busy for the past month, y'know, real life things. Second of all, I would like to say **THANK YOU** for everyone who helped build this wiki from the ground up and writing down the entries, you know who you are!\\r\\n\\r\\n## Stats\\r\\n\\r\\nThanks to everyone's efforts, over the course of 12 months Codec Wiki has grown into the (almost) go-to documentation and guide for newcomers just starting out in the quirky and wild world of multimedia encoding. So here are some pretty graphs to look at our progress so far!\\r\\n\\r\\n### Plausible\\r\\n\\r\\nAs you may know, we run our own Plausible Analytics instance. Which is a self-hosted, open source, and privacy-respecting analytics. Currently hosted in Singapore and available for everyone to view [here](https://analytics.x266.mov/wiki.x266.mov).\\r\\n\\r\\n\\r\\n \\r\\n \\\"Plausible\\r\\n\\r\\n\\r\\n7.7K unique total visitors for a whole year may not be much but it's a great start!\\r\\n\\r\\nLet's not forget those who use uBlock Origin or similar to block the analytics script. So the visitor count could be two or three times more!\\r\\n\\r\\n\\r\\n### Google Search Console\\r\\n\\r\\nFor those who are unfamiliar, Google Search Console is used for viewing well.. Google search data for your website. This data is unfortunately private and only the owner and those invited can see the data, no setting available for public view. Probably for the better.\\r\\n\\r\\n\\r\\n \\r\\n \\\"Google\\r\\n\\r\\n



\\r\\n\\r\\nAnd for our top 10 search queries in the last 28 days:\\r\\n\\r\\n\\r\\n \\r\\n \\\"Search\\r\\n\\r\\n\\r\\n \\r\\n \\\"Search\\r\\n\\r\\n



\\r\\n\\r\\nWith pretty much zero competition in this niche of a market, it skyrocketed Codec Wiki to the top of search results for everything multimedia related \ud83d\ude05.\\r\\n\\r\\n\\r\\n## A Brief History\\r\\n\\r\\nAround a year ago, I started work on an unofficial \\\"wiki\\\" for all things encoding, it initially started as a half-serious joke because I was annoyed there were no good documentation available\\r\\nanywhere on the internet on the real application and usage of encoders such as \\\"Should I use tune SSIM in x encoder?\\\". With the search results you'll be presented with being one or more of these:\\r\\n\\r\\n- Doesn't exist.\\r\\n- Mentioned in the FFmpeg mailing list but nothing else.\\r\\n- PDF research papers on IEEE and similar.\\r\\n- Outdated information on Doom9 or Multimedia Wiki.\\r\\n- \\\"The documentation are in the code blocks\\\".\\r\\n- Link rot.\\r\\n- Abandoned, or mostly focused on other topics.\\r\\n- Focused on a specific type of storytelling medium.\\r\\n- Actual good explanation in an old forgotten site (rare).\\r\\n\\r\\nSome or maybe even most of these results still appear up to this day.\\r\\n\\r\\n\\r\\nFrustrated with how scarce information is available on the open internet and combined with the fact that most, if not all of them only exist in non-search-engine-reachable private chat communities such as Discord where you'll have to join and scroll around older conversations.\\r\\n\\r\\nProne to data erasure as Discord can nuke these servers for whatever reason they please and years of \\\"documentation\\\" is lost in an instant. It is simply not a good platform for a plethora of valuable information.\\r\\n\\r\\n**That's why I took initiative.**\\r\\n\\r\\n\\r\\n## Bumps in the Road\\r\\n\\r\\nThere were also generally a lot of distrust and pushbacks when this project first began, particularly from those who are more experienced with encoding. Which is understandable because everyone who attempted before burned out and never finished it.\\r\\n\\r\\nBut Codec Wiki stood the test of time with constant updates through active collaboration of everyone involved, nowadays those voices have mostly subsided or even joined the project themselves. And I am grateful for that.\\r\\n\\r\\n\\r\\n## Closing Statement\\r\\n\\r\\nOnce again, **THANK YOU VERY MUCH** for those who are involved in this project and making the once pipe dream of a one-stop-shop user-friendly documentation for encoding into something that's possible.\\r\\n\\r\\nLet's continue documenting the most crucial yet invisible driving force of internet traffic, pages by pages.\\r\\n\\r\\nTogether we are strong, divided we burn out.\\r\\n\\r\\n\\r\\n

\\r\\n> \\\"There are times when a critic truly risks something, and that is the discovery and defense of the *new*. **The world is often unkind to new talent, new creations. The new needs friends**.\\\"\\r\\n>\\r\\n> \u2014 Anton Ego\"},{\"id\":\"av1-for-dummies\",\"metadata\":{\"permalink\":\"/blog/av1-for-dummies\",\"source\":\"@site/blog/2024-06-24-av1-for-dummies-2.mdx\",\"title\":\"AV1 for Dummies\",\"description\":\"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.\",\"date\":\"2024-06-24T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"video\",\"permalink\":\"/blog/tags/video\"},{\"inline\":true,\"label\":\"compression\",\"permalink\":\"/blog/tags/compression\"}],\"readingTime\":16.645,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Gianni Rosato\",\"title\":\"Maintainer\",\"url\":\"https://github.com/gianni-rosato\",\"image_url\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"key\":null,\"page\":null},{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"AV1 for Dummies\",\"description\":\"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.\",\"slug\":\"av1-for-dummies\",\"authors\":[{\"name\":\"Gianni Rosato\",\"title\":\"Maintainer\",\"url\":\"https://github.com/gianni-rosato\",\"image_url\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/35711760?v=4\"},{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\"}],\"tags\":[\"video\",\"compression\"],\"image\":\"/img/av1_for_dummies_guide.jpg\",\"hide_table_of_contents\":false},\"unlisted\":false,\"prevItem\":{\"title\":\"Codec Wiki: One Year Later\",\"permalink\":\"/blog/codec-wiki-one-year-later\"},\"nextItem\":{\"title\":\"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive\",\"permalink\":\"/blog/svt-av1-second-deep-dive\"}},\"content\":\"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.\\n\\n\x3c!--truncate--\x3e\\n\\n![Compare](/img/av1_for_dummies_guide.avif)\\n\\n## Introduction\\n\\n[AV1](https://wiki.x266.mov/docs/video/AV1) is a royalty-free video codec developed by the Alliance for Open Media. It is designed to replace [VP9](https://wiki.x266.mov/docs/video/VP9) and presently competes with [H.266](https://wiki.x266.mov/docs/video/VVC). AV1 is known for its high compression efficiency, which the marketing will have you believe reduces file sizes by up to 50% compared to [H.264](https://wiki.x266.mov/docs/video/AVC) and up to 30% compared to [H.265](https://wiki.x266.mov/docs/video/HEVC) across the board. It is supported by several major browsers and is widely used across many streaming services and video platforms.\\n\\n### Why AV1?\\n\\nBefore we dive in, it is important to understand *why* you may want to use AV1 instead of other codecs. The reality is that AV1 is *not* better than H.264/5 in every single scenario; video encoding is a complicated field, and the best codec for you will depend on your specific needs. AV1 excels in:\\n- Low to medium-high fidelity encoding\\n- Higher resolution encoding\\n- Encoding content with very little grain or noise\\n- Slow, non-realtime contexts (e.g. offline encoding)\\n\\nThe enumeration above still consists of broad strokes, but the point is to understand that AV1 is not a silver bullet. It will not automatically make your videos smaller while preserving your desired quality. To make things more difficult, the [x264](https://wiki.x266.mov/docs/encoders/x264) & [x265](https://wiki.x266.mov/docs/encoders/x265) encoders are very mature, while AV1 encoding efforts designed to meet the extremely complicated needs of the human eye are still in their infancy.\\n\\nThis guide focuses almost entirely on tools great for offline, non-realtime encoding for various kinds of content. Streaming is an altogether different application of AV1, and is only covered sparsely here.\\n\\n### Do's & Don'ts\\n\\nDue to a lot of misunderstandings about codecs and compression, there are a lot of common misconceptions that are held regarding video encoding. We'll start by outlining some bad practices:\\n\\n- **Don't** encode the same video multiple times. This is a common mistake made by people new to video encoding. Every time you encode a video, you lose additional quality due to *generation loss*. This is because video codecs are lossy, and every time you encode a video, you lose more information. This is why it is important to keep the original video file if you frequently re-encode it.\\n- **Don't** blindly copy settings from others without understanding them. What works for one person's content and workflow may not work for yours. Even the default settings on many encoders are not optimal for most content.\\n- **Don't** assume that higher bitrate equates to better quality. Inefficient encoding can waste bits without improving visual quality, and efficient encoding can make lower bitrate video look drastically better than higher bitrate video using the same codec.\\n- **Don't** assume all encoders/presets/settings/implementations are created equal. Even given two encoding frameworks that use the same underlying encoder, you may achieve different results given encoder version mismatches or subtly different settings used under the hood.\\n- **Don't** use unnecessarily slow presets/speeds unless you have a specific need and ample time. While slower presets improve encoding efficiency most of the time, the quality gains reach a point of diminishing returns beyond a certain point. Use the slowest preset you can tolerate, not the slowest preset available.\\n- **Don't** blindly trust metric scores. It is unfortunate how trusted [VMAF](https://wiki.x266.mov/docs/metrics/VMAF) is considering how infrequently it correlates with visual fidelity in practice now that it has become so popular. Even the beloved [SSIMULACRA2](https://wiki.x266.mov/docs/metrics/SSIMULACRA2) is not a perfect one-to-one with the human eye.\\n\\nNow, let's move on to some **good** practices:\\n- Experiment with different settings and compare the results.\\n- Consider your content type when choosing encoding settings. Film, animation, and sports all have different characteristics that benefit from distinct approaches.\\n- Try to use CRF for offline encoding, as opposed to CBR or VBR. While the latter two are effective for precisely targeting a particular bitrate, CRF is more effective at targeting a specific quality level efficiently.\\n- Always use 10-bit color, even with an 8-bit source. AV1's internal workings are much more suited to 10-bit color, and you are almost always guaranteed quality improvements with zero compatibility penalty as 10-bit color is part of AV1's baseline profile.\\n- Consider using grain synthesis for grainy content, as AV1 can struggle with preserving film grain efficiently.\\n- Keep your encoding software up-to-date; the encoding world moves quickly.\\n\\n## Tools\\n\\nSince writing the last guide, there are now several versatile tools available for AV1 encoding. Below, we've assembled some tables of popular encoding tools and their features.\\n\\n### GUI\\n\\nHere's the key:\\n- **Encoder(s)**: The AV1 encoder(s) the software uses or is able to use. This is between [SVT-AV1](https://wiki.x266.mov/docs/encoders/SVT-AV1), [aomenc](https://wiki.x266.mov/docs/encoders/aomenc), [rav1e](https://wiki.x266.mov/docs/encoders/rav1e), [SVT-AV1-PSY](https://wiki.x266.mov/docs/encoders/SVT-AV1-PSY), and various aomenc forks. We'll get into this more later.\\n- **Ease of Use**: How intuitive the software is, especially for beginners.\\n- **Complexity**: How flexible the software can be for advanced users.\\n- **Efficiency**: How \\\"good\\\" the underlying encoder(s) are. This is more subjective, but tools with bad defaults, misleading options, or slow release cycles won't score well here.\\n\\n| Name | Platform(s) | Encoder(s) | Ease of Use | Complexity | Efficiency |\\n|---------|-------------|:----------:|:-----------:|:-----------:|------------|\\n| [Aviator](https://wiki.x266.mov/docs/utilities/Aviator) | Linux | SVT-AV1-PSY| \u25cf\u25cf\u25cf\u25cf\u25cf | \u25cf\u25cb\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cf |\\n| [NMKODER](https://wiki.x266.mov/docs/utilities/nmkoder) | Windows | Any | \u25cf\u25cf\u25cf\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cb | \u25cf\u25cf\u25cb\u25cb\u25cb |\\n| [Av1ation Station](https://github.com/Av1ation-Association/Av1ation-Creations/releases/) | Any | Any | \u25cf\u25cf\u25cf\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cf | \u25cf\u25cf\u25cf\u25cf\u25cb |\\n| [StaxRip](https://github.com/staxrip/staxrip) | Windows | Any | \u25cf\u25cf\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cf | \u25cf\u25cf\u25cf\u25cf\u25cb |\\n| [NEAV1E](https://github.com/Alkl58/NotEnoughAV1Encodes) | Windows | Any | \u25cf\u25cf\u25cf\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cb\u25cb | \u25cf\u25cf\u25cb\u25cb\u25cb |\\n| [Handbrake](https://handbrake.fr/) | Any | SVT-AV1 | \u25cf\u25cf\u25cf\u25cf\u25cb | \u25cf\u25cf\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cb\u25cb\u25cb |\\n| [FastFlix](https://github.com/cdgriffith/FastFlix) | Any | Any | \u25cf\u25cf\u25cf\u25cf\u25cb | \u25cf\u25cf\u25cf\u25cb\u25cb | \u25cf\u25cf\u25cb\u25cb\u25cb |\\n| [rAV1ator](https://wiki.x266.mov/docs/utilities/rav1ator) | Linux | rav1e | \u25cf\u25cf\u25cf\u25cf\u25cb | \u25cf\u25cf\u25cf\u25cb\u25cb | \u25cf\u25cb\u25cb\u25cb\u25cb |\\n| [Autocompressor](https://autocompressor.net/) | Web | SVT-AV1 | \u25cf\u25cf\u25cf\u25cf\u25cf | \u25cf\u25cb\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cb\u25cb |\\n\\nOur top pics are:\\n- For beginners: **Aviator**. If you are on Linux and you want zero hassle whatsoever, Aviator is simple but highly effective. As a Flatpak application, it ships a bundled SVT-AV1-PSY binary that is up-to-date, compiled efficiently, and handled with extensively tested defaults. It is hard to go wrong with Aviator even as an advanced user, despite its simplicity.\\n- For advanced users: **Av1ation Station**. Av1ator Station is thoughtfully designed to be your one-stop shop for video encoding. Even though it is brand new, it has proven itself to be a capable and reliable solution for advanced video encoders that have a lot of settings to tweak and encodes to keep track of.\\n- For Windows users: **StaxRip**. StaxRip is a long-standing, well-maintained, and highly flexible video encoding tool that supports a plethora of encoders and formats. It comes bundled with SVT-AV1-PSY and is a great choice for Windows users who want a powerful and versatile tool for video encoding.\\n\\n### CLI\\n\\nIn the terminal, advanced encoders can explore a much greater degree of complexity than many GUIs allow. That being said, ease of use is still a consideration when managing complex command-line encoding workflows. Let's begin with the key:\\n- We're omitting the \\\"Platform(s)\\\" column here, as this section targets Linux users. As a Windows user, WSL has you covered - as a Mac user, you're likely to experience parity with Linux (most of the time).\\n\\n| Name | Framework(s) | Ease of Use | Complexity | Features | Scene Detection |\\n|------|--------------|:-----------:|:----------:|:--------:|:---------------:|\\n| SvtAv1EncApp | None | \u25cf\u25cb\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cb\u25cb\u25cb | \u25cf\u25cb\u25cb\u25cb\u25cb | No |\\n| [FFmpeg](https://wiki.x266.mov/docs/utilities/ffmpeg) | Itself | \u25cf\u25cf\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cf | \u25cf\u25cf\u25cf\u25cf\u25cb | No |\\n| [Av1an](https://wiki.x266.mov/docs/utilities/av1an) | FFmpeg | \u25cf\u25cb\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cf | \u25cf\u25cf\u25cf\u25cb\u25cb | Yes |\\n| [rAV1ator CLI](https://wiki.x266.mov/docs/utilities/rav1ator-cli) | Av1an | \u25cf\u25cf\u25cf\u25cf\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cb | Yes |\\n| [alabamaEncoder](https://github.com/kingstefan26/alabamaEncoder) | FFmpeg | \u25cf\u25cf\u25cb\u25cb\u25cb | \u25cf\u25cf\u25cf\u25cf\u25cf | \u25cf\u25cf\u25cf\u25cf\u25cf | Yes |\\n\\nOur top picks are:\\n- For beginners: **rAV1ator CLI**. rAV1ator CLI essentially walks you through the process of writing Av1an commands. It can install binaries for you, save your previous commands, and detect scenes via Av1an. This makes it a great choice for beginners who want to learn the ropes of AV1 encoding without diving into the deep end headfirst. For advanced users, it makes rapidly writing, testing, & cataloging Av1an encoding commands much simpler.\\n- For advanced users: **alabamaEncoder**. alabamaEncoder is a powerful and flexible tool that allows you to encode video with FFmpeg and AV1. It is highly configurable and supports a mind-bending array of powerful features that would be hard to find elsewhere. While the tool is still new, it is already a great choice for advanced users who want to push the boundaries of what is possible to incorporate into an encoding workflow.\\n\\n### Conclusion\\n\\nIn conclusion, the best AV1 tool for you will depend on your needs and experience level. If you are a beginner, Aviator is a great choice for Linux users, while StaxRip is a good option for Windows users. For advanced users, Av1ation Station is a powerful and versatile tool that can handle numerous encoding tasks. If you prefer the command line, rAV1ator CLI is a great choice for beginners, while alabamaEncoder is a powerful tool for advanced users. No matter which tool you choose, it is hard to go wrong in the modern AV1 encoding landscape when it comes to your utility of choice.\\n\\n## Encoders\\n\\nThe world of AV1 encoding is diverse and complex, with several open-source encoders available, each bringing its own set of strengths, weaknesses, and unique features to the table. In this section, we'll dive deep into the characteristics of four major AV1 encoders:\\n1. SVT-AV1,\\n2. rav1e,\\n3. aomenc (libaom), and\\n4. SVT-AV1-PSY\\n\\nUnderstanding these encoders is crucial for making informed decisions about what best suits your specific encoding needs.\\n\\n### SVT-AV1\\n\\n[SVT-AV1](https://wiki.x266.mov/docs/encoders/SVT-AV1) (Scalable Video Technology for AV1) is an AV1 encoder library and application developed by Intel, Netflix, and others. It has gained significant popularity in the encoding community due to its impressive balance of speed, quality, and scalability.\\n\\nLinks:\\n- Wiki page: [SVT-AV1](https://wiki.x266.mov/docs/encoders/SVT-AV1)\\n- Git repository: https://gitlab.com/AOMediaCodec/SVT-AV1\\n- Documentation: https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/README.md\\n\\n1. **Performance & Scalability**\\n - SVT-AV1 is renowned for its encoding speed, particularly at higher speed presets.\\n - It leverages parallel processing, making it exceptionally efficient on multi-core systems. Fun fact: SVT-AV1's parallel processing is lossless, so it doesn't compromise quality for speed.\\n\\n2. **Quality-to-Speed Ratio**\\n - SVT-AV1 strikes an impressive balance between encoding speed and output quality.\\n - At faster presets, it usually outperforms other encoders in quality per unit of encoding time.\\n - While it may not achieve the absolute highest *quality per bit* possible, its quality is generally considered impressive for its speed.\\n\\n3. **Flexibility**\\n - SVT-AV1 offers a wide range of encoding options and presets, allowing fine-tuned control over the encoding process.\\n - It provides 14 presets (0-13), with 0 being the slowest and highest quality, and 13 being the fastest but lowest quality.\\n - Advanced options allow users to adjust parameters like hierarchical levels, intra-refresh type, and tuning modes.\\n\\n4. **Continuous Development**\\n - SVT-AV1 receives frequent updates and optimizations, with new releases often coming alongside big changes.\\n - The open-source nature of the project encourages community contributions and rapid feature development.\\n\\nSVT-AV1 is an excellent choice for a wide range of encoding scenarios. It's particularly well-suited for:\\n- High-volume encoding operations where speed is crucial\\n- Live or near-live encoding of high-resolution content\\n- Scenarios where a balance between quality and encoding speed is required\\n- Users with multi-core systems who want to leverage their hardware efficiently\\n\\nSome downsides include:\\n- Higher memory usage compared to other encoders\\n- The developers assess quality via its performance on traditional legacy metrics, which harms its perceptual fidelity ceiling.\\n\\n### rav1e\\n\\n[rav1e](https://wiki.x266.mov/docs/encoders/rav1e) is an AV1 encoder written in Rust & Assembly. Developed by the open-source community alongside Xiph, it brings a unique approach to AV1 encoding with its focus on safety and correctness.\\n\\nLinks:\\n- Wiki page: [rav1e](https://wiki.x266.mov/docs/encoders/rav1e)\\n- Git repository: https://github.com/xiph/rav1e\\n- Documentation: https://github.com/xiph/rav1e/tree/master/doc#readme\\n\\n1. **Safety & Reliability**\\n - Being written in Rust, rav1e emphasizes memory safety and thread safety.\\n - This focus on safety translates to a more stable and reliable encoding process, with reduced risks of crashes or undefined behavior.\\n\\n2. **High Fidelity**\\n - At high fidelity targets - an area where AV1 usually lacks - rav1e is a strong contender compared to other encoders.\\n - It excels in preserving fine details and textures, making it a good choice for high-fidelity encoding.\\n\\n3. **Quality**\\n - While not typically matching aomenc or SVT-AV1 in pure compression efficiency, rav1e can produce high-quality output videos.\\n - It often achieves a good balance between quality and encoding time, especially at medium-speed settings.\\n\\n4. **Perceptually Driven**\\n - rav1e's development is driven by visual fidelity, without relying heavily on metrics.\\n - This focus on perceptual quality leads to a stronger foundation for future potential improvements in visual quality, as well as making the encoder very easy to use as it does not require excessive tweaking.\\n\\nrav1e is well-suited for:\\n- Projects where stability is paramount\\n- Users who prioritize a community-driven, open-source development approach\\n- Encoding tasks where a balance between quality and speed is needed, but the absolute fastest speeds are not required\\n\\nSome limitations of rav1e include:\\n- Lagging development compared to other encoders\\n- Slower encoding speeds compared to SVT-AV1 at similar quality & size\\n- Fewer advanced options compared to other encoders\\n\\n### aomenc (libaom)\\n\\n[aomenc](https://wiki.x266.mov/docs/encoders/aomenc), based on the libaom library, is the reference encoder for AV1. Developed by the Alliance for Open Media (AOM), it is the benchmark for AV1 encoding quality and compliance.\\n\\nLinks:\\n- Wiki page: [aomenc](https://wiki.x266.mov/docs/encoders/aomenc)\\n- Git repository: https://aomedia.googlesource.com/aom/\\n\\n1. **Encoding Quality**\\n - aomenc is widely regarded as the gold standard for AV1 encoding quality.\\n - It often achieves high compression efficiency among AV1 encoders, especially at slower speed settings.\\n - The encoder squeezes out nearly every last bit of efficiency from the AV1 codec, making it ideal for archival purposes or when quality per bit is critical.\\n\\n2. **Encoding Speed**\\n - aomenc is generally the slowest among major AV1 encoders.\\n - It offers 13 CPU speed levels (0-12), but even at its fastest settings, it's typically slower than other encoders at their slower settings.\\n - The slow speed is often considered a trade-off for its high compression efficiency.\\n\\n3. **Extensive Options**\\n - As the reference implementation, aomenc offers the most comprehensive encoding options.\\n - It provides fine-grained control over nearly every aspect of the AV1 encoding process.\\n - Advanced users can tweak many parameters to optimize for specific content types or encoding scenarios.\\n\\n4. **Flexibility**\\n - Being the reference encoder, aomenc produces highly standards-compliant AV1 bitstreams that take advantage of the full arsenal of AV1 features.\\n - It supports 4:2:0 and 4:4:4 chroma subsampling, 8- to 12-bit color depth, and various other advanced features that more specialized encoders like SVT-AV1 do not support.\\n\\naomenc is ideal for:\\n- Scenarios where achieving the highest possible quality is the primary goal\\n- Archival encoding where compression efficiency is crucial\\n- Research and development in video compression\\n- Encoding projects where encoding time is not a significant constraint\\n\\nSome drawbacks of aomenc include:\\n- Unresponsive development driven by legacy metrics, leading to slower adoption of new techniques and ignoring improvements communicated by people outside the Google development team\\n- Cripplingly difficult to use for beginners, with a culture of cargo-culting settings\\n- Slow encoding speeds compared to other AV1 encoders, which has less of an impact on the quality of the output than it used to compared to maturing encoders like SVT-AV1\\n\\n### SVT-AV1-PSY\\n\\n[SVT-AV1-PSY](https://wiki.x266.mov/docs/encoders/svt-av1-psy) is a community fork of the SVT-AV1 encoder focused on psychovisual optimizations to enhance perceived visual quality. It aims at closing the distance between SVT-AV1's high speeds and the perceptual quality of aomenc's slow brute force approach.\\n\\nLinks:\\n- Wiki page: [SVT-AV1-PSY](https://wiki.x266.mov/docs/encoders/svt-av1-psy)\\n- Git repository: https://github.com/gianni-rosato/svt-av1-psy\\n- Documentation: https://github.com/gianni-rosato/svt-av1-psy/blob/master/Docs/PSY-Development.md\\n\\n1. **Perceptual Optimizations**\\n - SVT-AV1-PSY introduces various psychovisual enhancements to improve the perceived quality of encoded video.\\n - These optimizations often result in output that looks better to the human eye, even if it might not always score as well in objective metrics.\\n\\n2. **Additional Features**\\n - Introduces new options like variance boost, which can help maintain detail in high-contrast scenes.\\n - Offers alternative curve options for more nuanced control over the encoding process.\\n - Extends the CRF (Constant Rate Factor) range to 70 (from 63 in mainline SVT-AV1), allowing for extremely low-bitrate encodes.\\n - Introduces additional tuning options, including a new \\\"SSIM with Subjective Quality Tuning\\\" mode that can improve perceived quality.\\n\\n3. **Visual Fidelity Focus**\\n - Aims to produce more visually pleasing results, sometimes at the expense of metric performance.\\n - Includes options like sharpness adjustment and adaptive film grain synthesis which can significantly impact the visual characteristics of the output.\\n - Features modified defaults driven by perceptual quality considerations.\\n\\n4. **Extended HDR Support**\\n - Includes built-in support for Dolby Vision & HDR10+ encoding.\\n - This makes it particularly useful for encoding HDR content without requiring additional post-processing steps or external tools.\\n\\n5. **Performance**\\n - Based on SVT-AV1, it retains the performance characteristics of its parent encoder.\\n - Adds super slow presets (-2 and -3) for research purposes and extremely high-quality encoding. These additional presets can be useful for creating reference encodes or applications where encoding time is not a concern.\\n\\nSVT-AV1-PSY is particularly well-suited for:\\n- Encoding scenarios where subjective visual quality is prioritized over pure metric performance\\n- HDR content encoding in Dolby Vision or HDR10+\\n- Users who want fine-grained control over psychovisual aspects of encoding\\n- Projects that require a balance between the speed of SVT-AV1 and enhanced visual quality\\n- Encoding challenging content with complex textures or high-contrast scenes\\n\\nSome drawbacks are:\\n- Everything that applies to SVT-AV1, including the lack of support for 4:4:4 chroma subsampling and 12-bit color depth that are useful in specific scenarios\\n\\n### Conclusion\\n\\nWhile SVT-AV1 is known for being fast, aomenc is renowned for its high-quality output, and rav1e is recognized for its safety and reliability, each encoder has strengths and weaknesses. The best encoder for you will depend on your specific needs and priorities.\\n\\nAs this guide is focused on offline encoding, **SVT-AV1-PSY** combines aomenc's traditional perceptual strength with SVT-AV1's speed. Like rav1e, it is easy to use due to strong default settings that prevent cargo culting, and overall it can be considered the best of all three worlds. It is actively developed by a team of responsive community members, and it is a great choice for most users who want a balance between quality per bit, speed, and ease of use.\\n\\nThe \\\"best\\\" encoder often depends on your use case, content type, and target audience. It's always worth experimenting with different encoders and settings to find the optimal balance for your needs. Many advanced users even employ multiple encoders in their workflows, choosing the most appropriate tool for each specific task or content type.\\n\\n## Final Conclusion\\n\\nThe AV1 ecosystem has grown to the point where a single comprehensive guide cannot effectively cover the entire extent of the available tools and techniques for AV1 encoding across *every* use case. If you want more detail about a particular tool, where to acquire it, or how to compile an encoder, you can find that information throughout the various wiki entries linked on this page.\\n\\nReading can get you far, but it is natural to have questions. Please don't hesitate to connect with the team behind the Codec Wiki and many of these tools via our [AV1 for Dummies Discord server](https://discord.gg/bbQD5MjDr3). We're happy to help you with anything you need, and your questions and feedback help the wiki grow and improve. We hope you enjoy your journey into AV1 encoding, and we wish you the best of luck in your encoding endeavors!\"},{\"id\":\"svt-av1-second-deep-dive\",\"metadata\":{\"permalink\":\"/blog/svt-av1-second-deep-dive\",\"source\":\"@site/blog/2024-05-19-svt-av1-deep-dive2-v2-1-0.mdx\",\"title\":\"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive\",\"description\":\"SVT-AV1 2.1.0 just released, how does it compare to the previous version?\",\"date\":\"2024-05-19T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"video\",\"permalink\":\"/blog/tags/video\"},{\"inline\":true,\"label\":\"compression\",\"permalink\":\"/blog/tags/compression\"},{\"inline\":true,\"label\":\"benchmarks\",\"permalink\":\"/blog/tags/benchmarks\"}],\"readingTime\":35.215,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Trix\",\"title\":\"Encoder\",\"url\":\"https://github.com/trixoniisama/\",\"image_url\":\"https://avatars.githubusercontent.com/u/93526043\",\"imageURL\":\"https://avatars.githubusercontent.com/u/93526043\",\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive\",\"description\":\"SVT-AV1 2.1.0 just released, how does it compare to the previous version?\",\"slug\":\"svt-av1-second-deep-dive\",\"authors\":[{\"name\":\"Trix\",\"title\":\"Encoder\",\"url\":\"https://github.com/trixoniisama/\",\"image_url\":\"https://avatars.githubusercontent.com/u/93526043\",\"imageURL\":\"https://avatars.githubusercontent.com/u/93526043\"}],\"tags\":[\"video\",\"compression\",\"benchmarks\"],\"image\":\"/img/svt-2.1.0-testing-blog-image.webp\",\"hide_table_of_contents\":false},\"unlisted\":false,\"prevItem\":{\"title\":\"AV1 for Dummies\",\"permalink\":\"/blog/av1-for-dummies\"},\"nextItem\":{\"title\":\"Encoding Animation with SVT-AV1: A Deep Dive\",\"permalink\":\"/blog/svt-av1-deep-dive\"}},\"content\":\"import { CarouselGenerator, TabbedCarouselGenerator } from '../src/utils/ImageCarousel.mdx';\\n\\n\\nSVT-AV1, the most scalable AV1 encoder, has received a new update and one may wonder if the old presets recommendation still holds today. We will delve into that in this blog post, based on a series of speed and visual quality benchmarks with SSIMULACRA2 and XPSNR of SVT-AV1 2.1.0 on a corpus of varied animated clips.\\n\\n\x3c!--truncate--\x3e\\n\\n## Feedback\\n\\nI unfortunately never got to update the previous blog post with the image comparisons, and some people expressed concerns that this testing may not be representative of live action content. For the former, I will have to ask for your patience again, because this blog post won't initially contain image comparisons either, but this time they are being actively worked on, along with a magnificent comparisons component and this page will get updated once that is done. As for the latter, please be reassured that this testing in its entirety is perfectly representative of any modern content people typically encode: the diversity of japanese animation is rich and the content specifically chosen for this benchmark is relatively complex. From 3DCG to extremely noisy clips, we are far from the easy-to-compress static scenes of some slice-of-life show.\\n\\nI have also decided to complement this benchmark of another psychovisually-driven metric (XPSNR) so that double-checking is made easier. Thus, each graph possesses a SSIMULACRA2 version and a XPSNR version. Don't hesitate to switch between one another!\\n\\n## Methodology\\n\\nThe resources available will range from ***graphs*** to ~~**image comparisons**~~ (WIP, for real this time). The ***former*** has the advantage of being easily understandable, showcasing pure efficiency comparisons between encoder parameters using metrics as the reference, while the **latter** are image samples from the files encoded during the tests that enable you to check quality for yourself, adding another layer of subjective interpretation to these comparisons.\\n\\n\x3c!--truncate--\x3e\\n\\nThe testing methodology involves using relatively short video samples from a wide range of modern anime genre, which have been either losslessly encoded with `x264 --qp 0` for ease of use or losslessly cut from their source. These lossless files are then pipped into SvtAv1EncApp *directly*, meaning we are measuring the performance of a single encoder instance and not leveraging chunked encoding like any actual final AV1 encoding pipeline should. Once an encode is done, SSIMULACRA2 scores are calculated using the [Zig implementation](https://github.com/dnjulek/vapoursynth-ssimulacra2), XPSNR scores on the other hand are calculated using a [ffmpeg filter](https://github.com/fraunhoferhhi/xpsnr), and lots of useful data are aggregated to make the graphs for this benchmark, including encoding time, encode size (bitrate), and metrics scores. Bits per pixel scores (BPP) are calculated so that the `Metric / BPP` graphs may represent the closest we have to real efficiency.\\n\\nThe clips used in this test were acquired legally. The Codec Wiki and its contributors do not endorse media piracy.\\n\\nSvtAv1EncApp was compiled directly from the [v2.0.0 and v2.1.0 source code](https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/) using the provided `Build/linux/build.sh` script, Clang 16.0.6, and Profile-Guided Optimization (PGO). The testing machine is comprised of an i3 12100 with 16GB of 3200MHz CL14 DDR4 RAM in Arch Linux with kernel 6.7.7 and the performance governor enabled. All encodes have been made in the same session without rebooting.\\n\\nThis testing was conducted within the [AV1 Weeb Edition](https://discord.gg/83dRFDFDp7) Discord server, which is focused on encoding animated content in AV1.\\n\\n## Samples\\n\\nThe samples are as follows:\\n- 11s `Blame!` clip which sports 3DCG action with lots of grain, effects and high-contrast elements.\\n- 13s `Blue Lock` clip which sports rapid camera movements, complex geometry and high-contrast elements.\\n- 5s `Spy x Family` first ending sequence with an extremely high amount of dynamic noise. New most complex source of this set.\\n- 12s `Jigokuraku (Hell's Paradise)` flashback clip with huge static grain in a very dark scenery and some action.\\n- 5s `The Garden of Sinners` clean but fast-paced 3DCG scene with explosions.\\n\\nThe resolution of every clip is 1080p, except for the first one which is 1920x804.\\n\\n> **All clips have been encoded in a wide quality range, from `--crf 6` to `--crf 46`, by increments of 4.**\\n\\nWithout further ado, let's start with the first comparisons!\\n\\n## Presets comparisons (-1 -> ~~13~~ 12)\\n\\n**In the following graphs, you may find comparisons between all SVT-AV1 presets, ranging from the slowest `--preset -1` to the fastest `--preset 12`.**\\n> Yes, you heard that right. Preset 7 and 13 are no more in __v2.1.0__. This new update, like the previous one, mostly consisted of optimizing the presets trade-offs. The devs have made the choice to map `preset 7` to `preset 6` and `preset 13` to `preset 12` due to the lack of spacing between the new presets. We will discuss the implications of this further ahead.\\n\\n`--preset X` is the only parameter used here, in conjunction with the CRF values. That means everything else is default. The defaults worth mentioning are: \\n- `--tune 1`: tune PSNR\\n- `--aq-mode 2`: variance deltaq\\n- `--enable-qm 0`: quantisation matrices disabled\\n- `--irefresh-type 2`: closed GOP\\n- `--enable-tf 1`: temporal filtering enabled\\n\\nAnd more, like CDEF and restoration enabled, overlays and film-grain disabled...\\n\\n### Efficiency\\n\\n- First of all, here are the full efficiency graphs:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nThis is all very cool, but visually bloated.\\n\\n- Now the same graphs but focusing on the \\\"high quality\\\" range (CRF6 -> 22):\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Same, but now focusing on the \\\"low quality\\\" range (CRF26 -> 46):\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- If we now focus on __presets 4__ and below, where it's more difficult to discern the differences between presets, we get this at \\\"high quality\\\":\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- And the following at \\\"low quality\\\":\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n### Speed\\n\\n- **Let's now see speed comparisons between all presets:**\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nOnce is not custom, __preset -1__ is so abysmally slow it makes the graph unusable.\\n\\n- Same, but without the placebo __preset -1__:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Lastly, here is what it looks like with a logarithmic scale:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n### Interpretation\\n\\nAs for interpreting the results, it would seem like **preset 2** and **preset 4** remain all-around very balanced presets, with **preset 3** being in a nice in-between spot, an improvement over v2.0.0's **preset 3** in a way. We will better understand the reasons for this when we'll compare the new version to the last, a bit after.\\n\\nThe quality gap between **preset 2** and **preset 1** is usually pretty narrow, however the speed penalty from going to **preset 1** is ~2x, when the penalty of going from **preset 3** to **preset 2** is closer to ~1.5x. As such, **preset 1** enters placebo territory, and considering the very little benefits of going any lower than it, compared to the huge performance loss of even lower presets, I advise you not to waste encoding resources on **preset 0** and **preset -1**. This applies especially at medium to high quality, however at extremely low quality like the CRF40 range, we can still see some small gains from these placebo presets.\\n\\nWhen we start talking about faster presets though, things are pretty different from previous versions: **presets 5 to 9** behave similarly on the graphs and seem to stand apart from their slower counterparts by just a bit. If you can bear the speed of **preset 4**, you should definitely be going for it, however if fast encoding is a necessity, for example in the case of realtime transcoding or streaming, **presets 5 through 9** will serve you right with great efficiency/speed trade-offs between one another. No preset in that range particularly stands out from the others, so simply pick one depending on your performance needs.\\n\\n**Presets 10 to 12** are pretty inefficient, and to be avoided if possible. They can still be of use in a convex-hull scenario, but in the case of realtime transcoding, you may be better off with a hardware encoder like the ones found in RTX 4000 or Arc GPUs, especially since SVT-AV1's target bitrate mode is even less efficient than CRF mode.\\n\\n### TLDR\\n\\nThe same conclusions as the previous blog post can be made: \\n**clear quality gains can be observed as we decrease presets, until __preset 2__, however the effectiveness of dropping presets is noticeably less and less important as quality is increased.**\\n\\nIn the next part, we will evaluate the differences in efficiency and speed of every presets when updating from SVT-AV1 2.0.0 to 2.1.0, which should enable an increase of nuance from the previous results alone.\\n\\n## SVT-AV1 v2.0.0 vs v2.1.0 presets comparisons:\\n\\nTwo months ago, I conducted a similar test to this one to compare the presets evolution between versions __1.8.0__ and __2.0.0__. The results were pretty unsatisfying: I noticed that **presets -1 to 8** in __v2.0.0__ performed like the old **presets 0 to 9** did in __v1.8.0__. We basically saw an efficiency regression at a given preset, and speedups did not follow suit as well as we would have anticipated. All in all, it wasn't all that bad, it suffice to say you could simply drop a preset from before and you were good to go again. What was more concerning however is that the release note claimed important speedups that did not impact efficiency and my testing proved otherwise. My theory is that due to the dev team testing methodology, which consist of mostly pretty low resolution clips and non-psychovisual metrics like PSNR, SSIM or bad psychovisual metrics like VMAF, it's very well possible they were tricked into thinking they introduced improvements as they tweaked the presets when in reality the metrics simply didn't notice the quality degradation. Such issue is an additional reason why the industry should adopt more competent metrics, ones that better correlate with the human vision, to improve encoders in more impactful ways and better avoid pointless regressions. \\n\\nSo the question for today's testing is: have the SVT-AV1 devs redeemed themselves and actually improved the presets trade-offs this time around? Let's find out!\\n\\n### `preset -1`: v2.0.0 vs v2.1.0\\n\\n- **Let's start off with a battle of the placebos, with the efficiency at \\\"high quality\\\":**\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- And the efficiency at \\\"low quality\\\":\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nYes, this is a bit underwhelming, but you can't just improve the best an encoder has to offer with just tweaking right?\\n\\n- Now, let's compare their respective speeds:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nLet's be grateful it became ever so slightly faster, I guess.\\n\\n### `preset 0`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nOverall, efficiency wise, this new **preset 0** places itself in-between old **preset -1** and **0**\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nInterestingly enough, its speed is much closer to the old **preset 0** than to the old **preset -1**. This means **preset 0** was genuinely improved over v2.0.0!\\n\\n### `preset 1`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nIn efficiency, this new **preset 1** is often equal to old **preset 0**, else in-between old **preset 0 and 1**.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nWe observe that the new preset is a bit closer to old **preset 1** speeds than it is to old **preset 0** speeds. Good news!\\n\\n### `preset 2`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nOh well, that's awkward.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nSpeed was left untouched too, meaning **preset 2** is unchanged in v2.1.0.\\n\\n### `preset 3`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nThe new **preset 3**'s efficiency is the same as the old one.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nHowever, the preset got slightly faster, so this is a speedup!\\n\\n### `preset 4`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nWe can observe that **preset 4** got slightly to moderately worse efficiency wise.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nFortunately, the consequence of that slight efficiency decrease is a big performance improvement!\\n\\n### `preset 5`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 5** seems to have gotten ever so slightly worse efficiency wise.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nYet it became slightly faster, this is overall a good trade-off.\\n\\n### `preset 6`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nThe new **preset 6** has a huge responsibility: being able to compensate in the absence of its **preset 7** sibling. It seems to performs in-between old **preset 6 and 7**, usually closer to old **7**.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 6** is now ever so slightly slower to old **7**, this is an interesting trade-off, overall a win over old **7**.\\n\\n### `preset 7`: v2.0.0 vs v2.1.0\\n\\nAgain, there is no preset 7. Actually, it's preset 6 that disappeared but I'm not remaking the graphs just for fun. If you select preset 6, you will be granted the following message: `Svt[warn]: Preset M6 is mapped to M7.`\\n\\n![always_has_been](/img/preset_7_meme.webp)\\n\\n### `preset 8`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nIn efficiency, this new **preset 8** is sometimes equal or slightly worse to the old **8**, and sometimes equal or slightly worse than old **7**...\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nOverall, the speed is pretty much unchanged from old **8**. It looks like a slight regression, that's pretty disappointing.\\n\\n### `preset 9`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nThe new **preset 9** is the same as ever, ever so slightly better in some scenario but nothing groundbreaking.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nIts speed remains the same, sometimes ever so slightly slower. Basically the preset is pretty much unchanged, which may as well be a relief, as the last usable preset of the encoder.\\n\\n### `preset 10`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 10** is slightly to moderately worse efficiency wise.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nIts speed is mostly the same, sometimes ever so slightly faster. It's a wash, avoid this preset at all costs!\\n\\n### `preset 11`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 11**'s efficiency is untouched.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n**Preset 11**'s speed is unchanged as well.\\n\\n### `preset 12`: v2.0.0 vs v2.1.0\\n\\n- Efficiency graphs, high quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\n- Efficiency graphs, low quality:\\n\\n\\n },\\n xpsnr: {\\n label: 'XPSNR',\\n component: \\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nJust as **preset 6**, **preset 12** is now mapped to **13**, and unsurprisingly, its efficiency is equal to old **13**.\\n\\n- Speed graphs:\\n\\n\\n },\\n }}\\n pixelsAbove={0}\\n pixelsBelow={24}\\n/>\\n\\nThe speeds seem to be in-between old 12 and 13, so potentially a slight speedup. Still, nothing to get excited at.\\n\\n### TLDR\\n\\nFrom these extensive comparisons, it appears that some presets have received genuine improvements in their respective efficiency/speed trade-off.\\nSome presets, like **-1**, **0**, **1** and **3**, received the most significant improvements, followed by **4**, **5** and **6** with overall beneficial new trade-offs. **Preset 12** got slightly faster too. On the other hand, **presets 8 and 10** seemed to have regressed slightly, and **presets 2 and 9** are perfectly unchanged from v2.0.0.\\n\\n## Conclusion\\n\\nSVT-AV1 2.1.0 introduced some welcomed improvements. **Presets 2 through 4** remain the king of optimal AV1 encoding, while **presets 5 through 9** stand as good options for the people that find **2-4** to be too slow for their liking.\\n\\nLet's be honest a second, not much as changed in SVT-AV1 since the first blog post. There was no need to redo all the parameter testing for the simple reason that their behavior remained the same, as did the conclusions drawn from them. I hope this article wasn't disappointing in a sense... Still, be reassured, this was just an appetizer, there will be more in the near future!\\n\\nBy the way, did you know that the **[SVT-AV1-PSY project](https://github.com/gianni-rosato/svt-av1-psy/)** was initiated a few months ago? Its defaults were tailored according to the testing done in the last blog post, allowing a free efficiency boost for anyone not keen to tweak their encoders. Furthermore, SVT-AV1-PSY introduced a sharpness parameter to control distortion, a quarter-step quantizer for more CRF precision, a new subjective SSIM tune, Dolby Vision support, frame luma bias, and some other knobs to improve the appeal and consistency of your encodes. It is actively maintained by a group of talented people, including the main dev of the aom-av1-lavish fork of aomenc. Some of the changes are being backported to mainline SVT-AV1 due to the increased interest of the mainline devs. Please check it out!\\n\\nHopefully, this comprehensive second deep dive should give you a helpful new starting point for choosing settings when encoding with the latest SVT-AV1(-PSY) 2.1.0.\\n\\n## Future\\n\\nMy plans for the future regarding the blog post include:\\n- polishing this blog post and aggrementing it of image comparisons.\\n- a follow-up article in the relatively near future about giving you encoding tips and explaining common AV1 encoding knowlegde, for instance showcasing why film grain synthesis is a game-changer or why chunked encoding can prove beneficial to your encoding pipeline.\\n- an article focused on observing the evolution of SVT-AV1 since the beginning of its development, as well as comparisons with current aomenc, rav1e and SVT-AV1-PSY, including a quick look at the current state of AVM (development ground for AV2) in comparison to VVC's state.\\n\\nThanks for reading!\\n\\n{}\"},{\"id\":\"svt-av1-deep-dive\",\"metadata\":{\"permalink\":\"/blog/svt-av1-deep-dive\",\"source\":\"@site/blog/2023-12-30-svt-av1-deep-dive.mdx\",\"title\":\"Encoding Animation with SVT-AV1: A Deep Dive\",\"description\":\"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?\",\"date\":\"2023-12-30T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"video\",\"permalink\":\"/blog/tags/video\"},{\"inline\":true,\"label\":\"compression\",\"permalink\":\"/blog/tags/compression\"},{\"inline\":true,\"label\":\"benchmarks\",\"permalink\":\"/blog/tags/benchmarks\"}],\"readingTime\":22.78,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Trix\",\"title\":\"Encoder\",\"url\":\"https://github.com/trixoniisama/\",\"image_url\":\"https://avatars.githubusercontent.com/u/93526043\",\"imageURL\":\"https://avatars.githubusercontent.com/u/93526043\",\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"Encoding Animation with SVT-AV1: A Deep Dive\",\"description\":\"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?\",\"slug\":\"svt-av1-deep-dive\",\"authors\":[{\"name\":\"Trix\",\"title\":\"Encoder\",\"url\":\"https://github.com/trixoniisama/\",\"image_url\":\"https://avatars.githubusercontent.com/u/93526043\",\"imageURL\":\"https://avatars.githubusercontent.com/u/93526043\"}],\"tags\":[\"video\",\"compression\",\"benchmarks\"],\"image\":\"/img/svt-1.8.0-testing-blog-image.webp\",\"hide_table_of_contents\":false},\"unlisted\":false,\"prevItem\":{\"title\":\"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive\",\"permalink\":\"/blog/svt-av1-second-deep-dive\"},\"nextItem\":{\"title\":\"Embedding the Un-Embeddable\",\"permalink\":\"/blog/embedding-the-un-embeddable\"}},\"content\":\"import { CarouselGenerator } from '../src/utils/ImageCarousel.mdx';\\n\\n\\nThis blog post is based on a series of visual quality benchmarks with SSIMULACRA2 and speed benchmarks of SVT-AV1 1.8.0 on a corpus of animated clips.\\n\\nThe resources available will range from ***graphs*** to ~~**image comparisons**~~ (WIP). The ***former*** has the advantage of being easily understandable, showcasing pure efficiency comparisons between encoder parameters using metrics as the reference, while the **latter** are image samples from the encoded files during the tests that enable you to check quality for yourself and add another layer of subjective interpretation to these comparisons.\\n\\n\x3c!--truncate--\x3e\\n\\nThe testing methodology involves using relatively short video samples from a wide range of modern anime genre, which have been either losslessly encoded with `x264 --qp 0` for ease of use or losslessly cut from their source. These lossless files are then pipped into SvtAv1EncApp *directly*, meaning we are measuring the performance of a single encoder instance and not leveraging chunked encoding like any actual final AV1 encoding pipeline should. Once an encode is done, SSIMULACRA2 scores are calculated using the [Zig implementation](https://github.com/dnjulek/vapoursynth-ssimulacra2) and lots of useful data are aggregated to make the graphs for this benchmark, including encoding time, encode size (bitrate), and SSIMULACRA2 scores. Bits per pixel scores (BPP) are calculated so that the `Metric / BPP` graphs may represent the closest we have to real efficiency.\\n\\nThe clips used in this test were acquired legally. The Codec Wiki and its contributors do not endorse media piracy.\\n\\nSvtAv1EncApp was compiled directly from the [v1.8.0 source code](https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/v1.8.0) using the provided `Build/linux/build.sh` script, Clang 16.0.6, and Profile-Guided Optimization (PGO). The testing machine is comprised of an i7 8750H running at 35W with 16GB of 2666MHz DDR4 RAM in Arch Linux with kernel 6.6.6 and the performance governor enabled. All encodes have been made in the same session without rebooting.\\n\\nThis testing was conducted within the [AV1 Weeb Edition](https://discord.gg/83dRFDFDp7) Discord server, which is focused on encoding animated content in AV1.\\n\\n## Samples\\n\\nThe samples are as follows:\\n- 11s `Blame!` clip which sports 3DCG action with lots of grain, effects and high-contrast elements. Most complex source of this set.\\n- 13s `Blue Lock` clip which sports rapid camera movements and rotations + high-contrast elements.\\n- 15s `Fate/Grand Order: Babylonia` relatively slow-paced clip with lots of effects still. Easiest source of this set but easy sources still give interesting data.\\n- 22s `Jigokuraku (Hell's Paradise)` flashback clip with huge static grain in a very dark scenery and some action.\\n- 14s `Kaguya-sama` opening sequence with lots of effects and fast change of scenery.\\nThe resolution of every clip is 1080p, except for the first one which is 1920x804.\\n\\n> **All clips have been encoded in a wide quality range, from `--crf 8` to `--crf 43`.**\\n\\nWithout further ado, let's start with the first comparisons!\\n\\n## Presets comparisons (-1 -> 13)\\n\\n**In the following graphs, you may find comparisons between all SVT-AV1 presets, ranging from the slowest `--preset -1` to the fastest `--preset 13`.**\\n*Please remember that these two extreme presets are meant for development purposes and as such should not be used in normal encoding conditions. You will soon understand why.*\\n\\n`--preset X` is the only parameter used here, in conjunction with the CRF values. That means everything else is default. The defaults worth mentioning are: \\n- `--tune 1`: tune PSNR\\n- `--aq-mode 2`: variance deltaq\\n- `--enable-qm 0`: quantisation matrices disabled\\n- `--irefresh-type 2`: closed GOP\\n- `--enable-tf 1`: temporal filtering enabled\\nAnd more, like CDEF and restoration enabled, overlays and film-grain disabled...\\n\\n- First of all, here are the efficiency graphs:\\n\\n\\n\\nThis could be too much information.\\n\\n- Now the same graphs but focusing on the \\\"high quality\\\" range (CRF8 -> 23):\\n\\n\\n\\n- Same again but without presets 9 to 13 for better clarity:\\n\\n\\n\\n- Now for the \\\"low quality\\\" range (CRF28 -> 43):\\n\\n\\n\\n- Same but without presets 9 to 13 for better clarity:\\n\\n\\n\\n- **Let's now see speed comparisons between all presets:**\\n\\n![speed_overall](https://raw.githubusercontent.com/av1-community-contributors/images/main/svt-trix-blogpost/speed_overall.webp)\\n\\nAs we can see, preset -1 is so abysmally slow it makes the graph unusable\\n(BTW, notice the `1e6` in the lower right corner, it is obviously not encoding at 1 to 4 ms, but at 1 000 000 to 4 000 000 ms)\\n\\n- Here is what it looks like with a logarithmic scale:\\n\\n\\n\\n- **Now the speed graphs but with SSIMU2 on the y-axis instead of BPP: (logarithmic scale)**\\n\\n\\n\\n- Here are speeds graphs for preset 1 to 6 with a linear scale:\\n\\n\\n\\nOne interpretation we can have is that **presets 2 to 4** have actually pretty close scores (pretty much the same at HQ, 2 points at max in the low quality range) but **preset 2** is **2x slower than preset 4**. The quality gap between **preset 2** and **preset 1** is even narrower but the speed penalty is also ~2x.\\n\\nThat makes it hard to recommend **preset 1**, while **preset 3** is in a strange middle ground between **2** and **4** where it makes little sense to choose it over those two: it's better to choose **preset 2** for the higher efficiency at 1.5x slower speeds, or **preset 4** for the 1.33 to 1.5x higher speeds. At least the option exists.\\n\\nA similar observation can be made between **preset 5** and **6**. They can be so close in scores in many samples (especially at HQ) while also being close in speeds that **preset 5** becomes rather obsolete most of the time.\\n\\n### TLDR\\n\\n**Clear quality gains can be observed as we decrease presets, until the very last one, however the effectiveness of dropping presets becomes less and less impressive the higher in quality you go.**\\n\\n- For instance, in worst-case scenario, we observe that (for the CRF23 to CRF8 range), __**preset 4**__ only loses at maximum **2** SSIMU2 **points** compared to __**preset -1**__ while being 50-60x faster. Though to be fair, the speed loss from __**preset 4**__ to __**preset 0**__ is \\\"only\\\" 5-10x for a maximum SSIMU2 difference close to **1.5 point**.\\n\\n- From CRF43 to CRF28, the difference between __**preset 4**__ and __**preset -1**__ can be as much as **5** SSIMU2 **points**, so lower presets become more attractive.\\n\\n## Tunes comparisons\\n\\n**In the following graphs, you may find comparisons between SVT-AV1 tunes, from the default `--tune 1` (PSNR) to the other two tunes: `--tune 0` (VQ) and `--tune 2` (SSIM).**\\n\\nExcept for the tunes, `--preset 4` is set due to its good balance of quality and speed, in conjunction with the CRF values. That means everything else is default. The defaults have been mentioned earlier above.\\n\\n- **Let's compare the efficiency of every tunes:**\\n\\n\\n\\n- Now let's focus on the \\\"high quality\\\" range (CRF8 -> 23):\\n\\n\\n\\n- And the \\\"low quality\\\" range (CRF28 -> 43):\\n\\n\\n\\n- And here is the speed difference:\\n\\n\\n\\n- Graphs comparing the tunes individually between each others will be made available soon.\\n- The image comparisons will make the conclusion quite more nuanced, stay tuned (heheh) for that.\\n\\n### TLDR\\n\\n**SSIMU2 favors __tune 1 and 2__ above __tune 0__. At high quality, __tune 1 and 2__ are matched, while at low quality __tune 2__ takes the edge. __Tune 0__ is sometimes a match for the other two on certain clips and other times fare pretty badly.**\\n**For some reason, __tune 0__ is quite a bit faster now, compared to 1 and 2 which are basically the same.**\\n\\nKeep in mind that I have observed multiple times in the past that __tune 0__ kept more fine detail and was sharper than the other tunes, at the expense of potential artifacting, like ringing and distortion. It may very well explain why the metric doesn't like its results. The image comparisons may give a different interpretation than what we concluded here, please stay *tuned* for these subjective comparisons.\\n\\n## Parameters comparisons\\n\\n**In the following graphs, you may find comparisons between many SVT-AV1 parameters.**\\n*Additional graphs focusing on the high and low qualities will be made available later down the line*\\n\\n`--preset 4` is used here due to its good balance of quality and speed, in conjunction with the CRF values. That means everything else is default. The defaults have been mentioned earlier above.\\n\\n### `--tile-rows 1 --tile-columns 1` vs default `--tile-rows 0 --tile-columns 0`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> __tiles__ here are both slightly harmful and slower.\\n\\n### `--aq-mode 0` vs default `--aq-mode 2`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> Except for the Jigokuraku clip, __aq-mode 0__ is harmful in the eyes of SSIMU2, while being slower at low CRF levels, and sometimes a match or faster at high CRF levels.\\n\\n### `--aq-mode 1` vs default `--aq-mode 2`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> __aq-mode 1__ fares closer to __aq-mode 2__ than __aq-mode 0__ did, both in quality and speed, but is still overall inferior according to SSIMU2\\n\\n### `--enable-cdef 0` vs default `--enable-cdef 1`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> According to SSIMU2, disabling CDEF barely impact efficiency. But as its a pretty demanding tool, there's a slight speed benefit of having it disabled too. I advise you to take these results with a grain of salt until the image comparisons, because in anime particularly, CDEF *can* be beneficial for the line-art.\\n\\n### `--enable-dg 0` vs default `--enable-dg 1`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> __Dynamic GoP control__ yields bit-perfect results in all clips except for Blue Lock and Jigokuraku. There is no speed benefit to disabling it except in clips where it is in use. Let's not jump to conclusions too easily, the image comparisons will tell if it's \\\"safe\\\" to keep the setting disabled at all times or not.\\n\\n### `--enable-dlf 0` vs default `--enable-dlf 1`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> __Deblocking loop filter__ can be slightly beneficial in some scenarios. In reverse, it is never harmful, so it is recommended to keep it default.\\n\\n### `--fast-decode 1` vs default `--fast-decode 0`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> __fast-decode 1__ is pretty harmful in the Fate clip and slightly harmful in the rest. There is a speed benefit of enabling it though.\\n\\n### `--irefresh-type 1` vs default `--irefresh-type 2`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> Finally something interesting to analyse!\\n- __irefresh-type 1__ is either a match or beneficial compared to __irefresh-type 2__ at high CRF levels.\\n- __irefresh-type 1__ either wins or lose to __irefresh-type 2__ at low CRF levels depending on the clip. As such, it is NOT recommended to blindly set __irefresh-type__ to __1__ at \\\"high quality\\\" as it might be harmful depending on the content.\\n- __irefresh-type 1__ is always slower compared to __irefresh-type 2__, so I might argue it is more safe to leave __irefresh-type__ default at \\\"high quality\\\" than not.\\n- According to the content type of those clips, it appears that __irefresh-type 1__ may benefit *extremely grainy* content while default __irefresh-type 2__ is better suited for *cleanish* content. This needs to be confirmed with *moar* testing though.\\n\\n### `--lookahead 0` vs default `--lookahead -1` (auto)\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n### `--lookahead 60` vs default `--lookahead -1` (auto)\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n### `--lookahead 120` (max) vs default `--lookahead -1` (auto)\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> __lookahead__ seems to behave strangely when set...\\n- __lookahead 0__ shifts quality around a lot and it is difficult to draw conclusions but there's a clear speed drawback of disabling lookahead.\\n- __lookahead 60__ is perfectly bit-perfect to every clips EXCEPT for some damn reason in Jigokuraku at CRF23\\n- __lookahead 120__ is somehow also bit-perfect, but this time in every clips and every CRF levels. Both 60 and 120 don't see much speed differences.\\n> Soooo.... this behavior is so odd I don't advise to set any lookahead value. Let the encoder decide.\\n\\n### `--enable-overlays 1` vs default `--enable-overlays 0`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> __overlays__ do not seem to either improve efficiency or performance.\\n\\n### `--enable-qm 1` vs default `--enable-qm 0`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> Enabling __quantization matrices__ alone increase efficiency at \\\"high quality\\\" with no real speed impact.\\n\\n### `--enable-qm 1 --qm-min 0` vs `--enable-qm 1`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> Setting __qm-min__ to __0__ on top of enabling __quantization matrices__ can be beneficial in some clips at no added compute time.\\n\\nI will re-tests many QMs ranges in the future, but I doubt it changed much from v1.7.0 where 0 was the most appropriate choice for most content.\\n\\n### `--enable-restoration 0` vs default `--enable-restoration 1`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> Even though the efficiencies are very similar, nothing is bit-perfect here. So according to SSIMU2, the __loop restoration filter__ isn't necessarily useful. However, just like CDEF, it's a pretty demanding tool, so disabling it yields some performance improvements. Let's take these with a grain of salt until the image comparisons.\\n\\n### `--scm 0` vs default `--scm 2` (content adaptive)\\n\\nIn all the clips, the results are bit-perfect and there is no notable performance difference.\\n\\n### `--scm 1` vs default `--scm 2` (content adaptive)\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> Interestingly enough, __screen content tools__ seem to improve efficiency according to SSIMU2, at the cost of a huge performance regression. After the image comparisons are published, I will conduct additional testing on this.\\n\\n### `--enable-tf 0` vs default `--enable-tf 1`\\n\\n- Efficiency graphs:\\n\\n\\n\\n- Speed graphs:\\n\\n\\n\\n> Disabled __temporal filtering__ *can* sometimes improve efficiency slightly at \\\"high quality\\\", however it is very much clip dependent. It also improves performance slightly. The image comparisons will give another perspective to these results.\\n\\n### `--enable-tpl-la 0` vs default `--enable-tpl-la 1`\\n\\nIn all the clips, the results are bit-perfect and there is no notable performance difference.\\n\\n### `superres`:\\n\\nKinda lazy to make, share and comment so much graphs for something that can be told in two lines...\\n\\nAll superres variants are freaking useless as they:\\n- do not improve efficiency\\n- decrease encoding speeds\\n- decrease decoding speeds when either bitrate or quality normalized.\\n\\n### __Early TLDR on parameters results:__\\n\\n***For a previous test with SVT-AV1 1.7.0 I did all parameters tests with `--preset 6 --tune 2`, now I did them with `--preset 4 --tune 1`. Mostly everything tested on v1.7.0 still stands today, but now we have more valuable data. Images comparisons are still needed to give more context to some results, so the conclusion presented here remains early as they are 100% based on SSIMU2 results and will require more analysis down the line.***\\n\\n**Here is a quick run down of how each parameter affect encoding:**\\n- `--tile-rows --tile-columns` should never be used (except for decreasing decode complexity)\\n- `--aq-mode 2` is the most efficient / fastest\\n- `--enable-cdef 0` *might* improve performance at almost no efficiency loss *(needs more thorough testing)*\\n- `--enable-dg` and `--enable-dlf` barely do anything\\n- `--fast-decode 1` decreases efficiency, improves encoding times, and the decoding gains still need to be determined.\\n- `--irefresh-type` should be kept default at high CRF values and for cleanish content at low CRF values, but can be set to 1 at low CRF values for extremely grainy content\\n- `--lookahead` should be kept default\\n- `--enable-overlays 1` does not improve efficiency, slight speed regression as well\\n- `--enable-qm 1 --qm-min 0` should be set for increased efficiency especially at low CRF values at no perf cost\\n- `--enable-restoration` barely does anything but disabling yields better performance *(needs visual confirmation)*\\n- `--scm 1` screen content tools can improve efficiency with a big performance trade-off *(needs more thorough testing)*\\n- `--enable-tf 0` is a mixed bag efficiency wise but improves performance\\n- `superres & resize` please don't.\\n\\n## Conclusion\\n\\nThe extensive benchmarking reveals that obviously the slower presets provide better efficiency, with diminishing returns past preset 2. However, preset 4 provides a good balance of quality and speed for most use cases. Presets 6 and 8 are good options for the people that find 4 to be too slow for their liking.\\n\\nThe default settings tend to provide good results, but some tweaks like enabling quantization matrices can further optimize efficiency. Parameters like tile encoding and super resolution modes are not beneficial. Overall, SVT-AV1 continues to be a competitive option for encoding animation in AV1, with its speed being a notable strength.\\n\\nFurther testing with more content samples would help solidify these findings. The image comparisons will also provide additional subjective evaluation to complement the objective metrics used here, and we can discover the potential usefulness of Tune 0 that may betray what the metrics suggest. Overall, this comprehensive deep dive should give encoders a helpful starting point for choosing settings when encoding animation with the latest SVT-AV1 1.8.0. Thanks for reading!\\n\\n{}\"},{\"id\":\"embedding-the-un-embeddable\",\"metadata\":{\"permalink\":\"/blog/embedding-the-un-embeddable\",\"source\":\"@site/blog/2023-10-29-embedding-the-un-embeddable copy.mdx\",\"title\":\"Embedding the Un-Embeddable\",\"description\":\"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.\",\"date\":\"2023-10-29T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"video\",\"permalink\":\"/blog/tags/video\"},{\"inline\":true,\"label\":\"discord\",\"permalink\":\"/blog/tags/discord\"}],\"readingTime\":8.92,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"Embedding the Un-Embeddable\",\"description\":\"Revealing the secrets of those websites that allow you to embed entire movies, AV1, and videos over 500MB on Discord.\",\"slug\":\"embedding-the-un-embeddable\",\"authors\":[{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\"}],\"tags\":[\"video\",\"discord\"],\"image\":\"/img/discord-embed-blog-image.webp\",\"hide_table_of_contents\":false},\"unlisted\":false,\"prevItem\":{\"title\":\"Encoding Animation with SVT-AV1: A Deep Dive\",\"permalink\":\"/blog/svt-av1-deep-dive\"},\"nextItem\":{\"title\":\"AV1 Encoding for Dummies\",\"permalink\":\"/blog/av1-encoding-for-dummies\"}},\"content\":\"![Feature image](/img/discord-embed-blog-image.webp)\\n**A 567.14 MB, 12 min 11 s, 2K (2,048 x 858), VP9 + Opus, 6.51 Mbps average, Blender short film \\\"Cosmos Laundromat\\\"**\\n\\n\\n## A Scenario\\n\\nWhile chatting in your favorite Discord servers & group chats, you may see a friend send a weird link. You might even consider it suspicious on first glance. It is a video featuring an image of a movie poster with a play button that is almost begging to be clicked. Naturally, you click it.\\n\\n\x3c!--truncate--\x3e\\n\\nIt loads for a second, and to your surprise it is a full-length, 90-minute (sometimes even two hour)-long unauthorized copy of a movie. If you don't know exactly what is going on, you probably sit there dumbfounded as a pixel perfect HD movie plays back. You may have expected a stereotypically muddy, blocky, laggy shitpost, but this has defied your expectations.\\n\\n![stolen.shoes](/img/stolenshoes-puss.webp)\\n\\nThe truth is, there are *multiple* site that do this. Currently, there are five at the time of writing. Below is a list the ones I am currently familiar with:\\n\\n- https://stolen.shoes\\n- https://discord.nfp.is\\n- https://embeds.video\\n- https://x266.mov/discord-embed\\n- https://autocompressor.net/av1\\n\\nThe big question is, **how do they work?** Let's get to dissecting.\\n\\n## But First, a Quick Disclosure\\n\\nThe Codec Wiki unequivocally condemns any form of piracy, including the unauthorized distribution of copyrighted content. This blog post is intended to educate & inform. You may not use the tools discussed to infringe upon the intellectual property rights of content creators without serious legal risk. We encourage our readers to respect copyright laws & use the tools we discuss here appropriately.\\n\\n## How it Works\\n\\nThe entire scheme is actually very simple, as it is all just HTML meta tags (If you are familiar with web development, this is all a walk in the park).\\n\\nThe technology's inner working can be divided into two distinct parts. First, let's see how it works on the website's end.\\n\\n### The Website's End\\nIf you view each website's source, you will find this specific line in each one but they may have a different order:\\n\\n```html\\n\\n\\n\\n\\n\\n```\\n\\nThese are the `head` parts of HTML, which dictate metadata for the document itself such as what the website title/name is, cosmetic embed, defining the site's icon, etc. They are usually found in between the `` and `` tags. Here's an example of a static HTML site serving one specific video:\\n```html\\n\\n\\n\\n \\n \\n some embed site\\n \\n \\n \\n \\n \\n\\n\\n

Hi

\\n

Just your friendly neighborhood video embed site

\\n \\n\\n```\\n\\n< br />\\nThese interactive sites usually deploy a live script, like a Javascript framework. Examples are NodeJS, ExpressJS, Svelte, etc. These are used to parse video and thumbnails realtime so they can be embedded on Discord (or potentially other platforms).\\n\\n### Discord's End\\n\\nTraditionally, Discord's media embedder will impose it's own video embed size limit (50 MiB) when a user sends a direct video link as usual. But in this case Discord will embed the thumbnail first, not the video. You could say the link \\\"tricks\\\" Discord by showing a \\\"false face\\\" first.\\n\\n\\n\\n## Strengths & Limitations\\n\\nAfter a combination of countless hours of observation, rigorous testing throughout the period of a year, and conversations with the sites' creators, the current strengths & limitations of this exploit are enumerated below.\\n\\n#### Strengths\\n\\n- You can embed non-web compatible codecs such as [HEVC](https://wiki.x266.mov/docs/video/HEVC) in [MP4/MOV](https://wiki.x266.mov/docs/introduction/terminology#mp4--m4v), but the user must be using a compatible browser. [Thorium](https://thorium.rocks) or Safari version 13 or greater will work for HEVC playback.\\n- There is no maximum size. You could embed a video the size of a raw Bluray, although I do not condone this unless you have the necessary legal permissions to do so or you're uploading a Creative Commons licensed movie like Big Buck Bunny while adhering to the restrictions of the applicable Creative Commons license. This also means you can send high bitrate gaming clips to your friends without any restrictions, assuming you already have a place to upload them.\\n\\n#### Limitations\\n\\n- You can only use [hotlinks](https://simple.wikipedia.org/wiki/Hotlinking), which means direct linking to the video itself ending in the appropriate file extension such as `.mp4`. Cloud services like Google Drive or OneDrive will not work for storage.\\n- You cannot use Discord's CDN (cdn.discordapp.com) as the video source. I assume this is because of Discord's proxy blocking embeds over 50 MiB, but **only discord.nfp.is can do this**, as it **proxies cdn.discordapp.com** itself.\\n- You cannot embed videos in any resolutions higher than 3840 x 2160, Discord imposes a hard limit for this on all video after it was discovered that some videos could play normally but then be maliciously scaled to ridiculous resolutions during playback to crash Discord.\\n\\n\\n\\n## Differences between Sites\\n\\nAs mentioned before, there are five known sites at the time of writing. They all serve the same function, but one may interest you more than another due to slight differences in features & functionality.\\n\\nHere are the sites, each with one noteworthy special benefit:\\n\\n- https://stolen.shoes - Recognition, as it is the OG.\\n- https://discord.nfp.is - You can use Discord CDN as video source.\\n- https://embeds.video - Immediately input video source into the URL (`https://embeds.video/https://example.com/v/video.mp4`)\\n- https://x266.mov/discord-embed - Attractive domain, simple layout.\\n- https://autocompressor.net/av1 - Lots of info dump, pretty advanced features.\\n\\nThat concludes the technical overview! Next, let's cover the history of this exploit.\\n\\n## The Lore\\n\\n### Dwayne\\n\\nIn around April of 2022, a Reddit user going by the name of u/CreativeGamer03 [posted a video on r/discordapp](https://www.reddit.com/r/discordapp/comments/u96kky/someone_sent_this_in_the_memes_channel_and_bruh) of a link where a GIF of Dwayne \\\"The Rock\\\" Johnson plays caption with \\\"Is this a GIF or is it a video?\\\" When played, a low-quality music video of Rick Astley's \\\"Never Gonna Give You Up\\\" plays.\\n\\nThe link used is now unfortunately [removed](https://archuser.de/the-rock).\\n\\n### Discovery\\nOn 23rd June 2022, a Discord user *Clybius* on the AV1 Community server asked people for [VP9](https://wiki.x266.mov/docs/video/VP9) or [H.264](https://wiki.x266.mov/docs/video/AVC) videos that were over 100 MB in size. At the time the current 500 MB nitro tier did not exist. They then decided to use a 59 minute 1080p sample video of nature scenery from around the world with a thumbnail featuring a GIF of a waterfall to test the exploit. It worked.\\n\\nHe tried shortly afterward with [AV1](https://wiki.x266.mov/docs/video/AV1). Eureka, it also worked:\\n\\n![AV1](/img/clybius-av1.webp)\\n\\nClybius confirmed that this could be patched if discovered. He cites having had the idea from the Dwayne Johnson example above, but forgetting about it for a couple of months. So, it seems this entire concept stemmed from a silly rickroll.\\n\\n![Dwayne](/img/clybius-dwayne.webp)\\n\\n### The Experiments & Interactive Site\\n\\nAfter the discovery of AV1 embedding, experimentation brought about the discovery that *any* video codec will work as long as the user can decode/play the codec and the container/extension is an MP4, MOV, or WebM. These are all traditionally web-compatible containers. If you're interested in learning about containers, please see the [Containers](https://wiki.x266.mov/docs/introduction/terminology#container) section on the [Terminology](https://wiki.x266.mov/docs/introduction/terminology) page.\\n\\nThis applies to HEVC, ProRes, [xHE-AAC](https://wiki.x266.mov/docs/audio/AAC#xhe-aac), and other bizarre codecs that are rarely seen on the Web.\\n\\nWhile experimentating, Clybius converted one their idle domains `stolen.shoes` into an interactive embedder that provided a textbox for a video URL, a thumbnail URL, a width value, & a height value for the desired video. This would be the first website for Discord embedding.\\n\\n### Virality\\n\\nIt's not long before people outside of the AV1 Community discovered `stolen.shoes`, and its popularity increased rapidly. Its use usually involved the illicit distribution of full-length, unauthorized copies of movies; this sometimes happened very shortly after some movies were released. There were a couple notable instances of this happenening that caused quite the stir online each time.\\n\\n- The first instance featured the DreamWorks sequel of \\\"Puss in Boots (2011)\\\", \\\"Puss in Boots: The Last Wish (2022)\\\". A 1080p video sourced from a streaming site was the first wake up call that attracted attention to the existence of these embed sites. This example used `stolen.shoes`.\\n\\n![puss](/img/stolenshoes-puss.webp)\\n\\n- The second instance was when highly-anticipated animated film \\\"The Super Mario Bros. Movie (2023)\\\" produced by Illumination, Universal Studios, and Nintendo was spread around Discord. It was first spotted as a Cam (A camera recording by someone in theaters), then as it went out on streaming services a different link appeared but spread faster and with upgraded 1080p quality. Both used `stolen.shoes` as the embed site.\\n\\n![mario](/img/stolenshoes-mario.webp)\\n\\n- The third instance is very recent as of the day this was posted. A streaming-service sourced \\\"Five Nights at Freddy's (2023)\\\" was spread around since the movie released both in theaters and streaming service (Peacock) day one, and it gained steam extremely fast as most people had not seen it yet. Currently, this illegal novelty is gaining [hundreds of upvotes within the r/discordapp subreddit](https://www.reddit.com/r/discordapp/comments/17hx45y/is_discordnfp_an_ip_grabber/). The copy seems to be a compressed 720p encode. This example used `discord.nfp.is`.\\n\\n![fnaf](/img/discordnfpis-fnaf.webp)\\n\\nNote the ones listed here are the ones that I saw become extremely popular. There may be lesser known links that have been spread around privately or just did not cause enough noise for me to notice. Some less popular examples I've noticed, featuring more illicit copyrighted content distribution: \\n- Top Gun Maverick (2022)\\n- The SpongeBob trilogy (2005/2015/2020)\\n- Spider-Man: Across the Spider-Verse (2023)\\n\\n\\n## Closing\\n\\nThe ability to embed unusually large videos on Discord has enabled both positive and negative use cases. On the one hand, it allows high-quality content to be shared easily among friends. However, it has also facilitated mass copyright infringement by empowering virtually anyone with a Discord accound to freely spread pirated movies.\\n\\nWhile this is fascinating from a technical perspective, embedding techniques like these tread a fine ethical line. As with anything, it is important to be mindful of how our actions affect others, and I should remind everyone that content creators deserve to be compensated for their work. As users, we should support them by accessing their content via legitimate platforms.\\n\\nIt is hard to say how long this exploit will continue to be usable. Instead of enabling piracy, which may cause Discord to be more likely to patch this exploit if they see it as a serious threat, let's instead use these capabilities responsibly to share our own creations, gaming highlights, and other media which we can share legally. Given some thoughtfulness, perhaps we can find a fair balance between respecting copyright law and appeasing Discord's sensibilities while allowing some creative flexibility on the platform.\\n\\nThank you for reading this blog post, I hope you learned something!\"},{\"id\":\"av1-encoding-for-dummies\",\"metadata\":{\"permalink\":\"/blog/av1-encoding-for-dummies\",\"source\":\"@site/blog/2023-09-03-av1-for-dummies.mdx\",\"title\":\"AV1 Encoding for Dummies\",\"description\":\"This guide will show you how to encode in AV1 the *right* and *optimal* way.\",\"date\":\"2023-09-03T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"video\",\"permalink\":\"/blog/tags/video\"},{\"inline\":true,\"label\":\"compression\",\"permalink\":\"/blog/tags/compression\"}],\"readingTime\":16.09,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"key\":null,\"page\":null},{\"name\":\"Gianni Rosato\",\"title\":\"Maintainer\",\"url\":\"https://github.com/gianni-rosato\",\"image_url\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"AV1 Encoding for Dummies\",\"description\":\"This guide will show you how to encode in AV1 the *right* and *optimal* way.\",\"slug\":\"av1-encoding-for-dummies\",\"authors\":[{\"name\":\"Simulping\",\"title\":\"Maintainer / Encoder\",\"url\":\"https://github.com/Simulping\",\"image_url\":\"https://avatars.githubusercontent.com/u/12994794?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/12994794?v=4\"},{\"name\":\"Gianni Rosato\",\"title\":\"Maintainer\",\"url\":\"https://github.com/gianni-rosato\",\"image_url\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/35711760?v=4\"}],\"tags\":[\"video\",\"compression\"],\"image\":\"/img/compare-guide.webp\",\"hide_table_of_contents\":false},\"unlisted\":false,\"prevItem\":{\"title\":\"Embedding the Un-Embeddable\",\"permalink\":\"/blog/embedding-the-un-embeddable\"},\"nextItem\":{\"title\":\"Reducing Image Load Online\",\"permalink\":\"/blog/site-optimization\"}},\"content\":\"This guide will show you how to encode in AV1 the *right* and *optimal* way. Yes, you using standalone ``libaom``, ``libsvtav1``, and ``librav1e`` from FFmpeg or even piping ``yuv4mpeg`` into **mainline** aomenc are all unoptimal.\\n\\n\x3c!--truncate--\x3e\\n\\n:::danger Outdated Information\\nWhile a lot of the information presented in this guide is still relevant and correct, the AV1 ecosystem has changed dramatically since this guide's inception which has demanded a rewrite. Please see the [AV1 for Dummies](https://wiki.x266.mov/blog/av1-for-dummies) blog post for more information.\\n:::\\n\\n![Compare](/img/compare-guide.webp)\\n\\nIn this guide, we'll be installing Av1an for chunked encoding and infinite threading, because the current state of AV1 encoders, except for [SVT-AV1](https://wiki.x266.mov/docs/encoders/SVT-AV1), unfortunately lacks threading and will only use very low amount of cores, which hampers speeds. The only caveat to this approach is **RAM consumption**, encoding 2160p (4K) with [aomenc](https://wiki.x266.mov/docs/encoders/aomenc) with 4 workers could take upwards of **16GB** of RAM! So do keep this in mind.\\n\\n## Installing the Tools\\n\\nGiven all of the different operating systems that people use on a day to day basis and the various different encoding workflows that exist, there are a number of ways to do this.\\n\\n**Jump to**: [Windows](#microsoft-windows) | [macOS](#macos) | [Linux](#linux)\\n\\n## Microsoft Windows\\n\\n### The GUI Way\\n1. Install [NMKODER](https://github.com/n00mkrad/nmkoder) which is a GUI front-end to av1an with all dependencies installed.\\n2. You're done, you can skip to the encoding part\\n\\n:::danger Almost abandonware\\nSince Nmkoder already ships everything by default and its last release was 29th March 2022. You need to manually update all encoders and tools to get better encoding speeds. Missing out on updates will result in your encodes being sub-optimal.\\n:::\\n\\n### The WSL2 Way\\n\\n*(Recommended)*\\n\\nIf you're not already familiar with WSL2, the The Windows Subsystem for Linux (WSL) is a feature of the Windows operating system that allows you to run a Linux file system, along with Linux command-line tools and GUI apps, directly on Windows. This lets Linux distributions run on bare metal without managing any virtual machines, so encoding performance is very good.\\n\\nThe easiest way to encode with WSL2 is to use [rAV1ator CLI](https://wiki.x266.mov/docs/utilities/rav1ator-cli), an interactive TUI for [Av1an](https://wiki.x266.mov/docs/utilities/av1an). An ArchWSL2 installation tutorial is provided [here](https://wiki.x266.mov/docs/utilities/rav1ator-cli#windows).\\n\\n### The Automated Way\\n\\nThere is now a batch script for automating the install process, which can be found [here](https://github.com/Hishiro64/av1an-win-script). The instructions are in the README file.\\n\\n:::caution\\nThe script will download outdated version encoders and tools such as `aom-av1-psy` and MKVToolNix v76.0, if you are fine with these you can proceed.\\n:::\\n\\n### The Manual Way\\n\\n1. Install **Python 3.10.x, this will change so consult from the** [Vapoursynth website](http://www.vapoursynth.com/doc/installation.html) **if you're reading this from the future** from [here](https://www.python.org/downloads/windows/) and select \\\"Windows Installer 64-bit\\\". Upon installation check the tick for adding Python to PATH like so\\n![Python PATH](/img/python-path.webp))\\n\\n2. Download and install Vapoursynth from [here](https://github.com/vapoursynth/vapoursynth/releases) and select \\\"VapourSynth64-RXX.exe\\\"\\n3. Open the terminal and type ``vsrepo.py install lsmas ffms2`` to install some plugins for Av1an to work.\\n4. Download MKVToolNix from [here](https://mkvtoolnix.download/downloads.html#windows), select \\\"mkvtoolnix-64bit-XX.X.X-setup.exe\\\", and install **(Also available on winget!)**\\n5. Download Av1an from [here](https://github.com/master-of-zen/Av1an/releases) (SELECT LATEST AND CLICK THE \\\"ASSETS\\\" DROPDOWN)\\n6. Download **shared libraries** FFmpeg from [gyan.dev](https://www.gyan.dev/ffmpeg/builds)\\n7. Download a pre-built fork of Aomenc ([aom-av1-lavish](https://github.com/Clybius/aom-av1-lavish/tree/Endless_Merging)) which has neat stuff such as sane defaults, new tunes, optimizations, etc. This can be downloaded for Windows [here](https://autumn.revolt.chat/attachments/download/-2EiZW1edcT9anApFZ1PJBEber-pJ6z02NiQBjbr28) *(Current as of Sept 6, 2023)*\\n:::info\\nIf you opt to compile aomenc yourself, you can view the instructions on how to do that [here](https://wiki.x266.mov/docs/encoders/aomenc/#installation).\\n:::\\n8. Move Av1an, FFmpeg **(Including the FFmpeg DLLs)**, and aomenc to somewhere preferable, eg ``C:\\\\Encoding``.\\n9. Add the folder **AND MKVTOOLNIX INSTALLATION FOLDER** to the [Windows PATH environment](https://www.maketecheasier.com/what-is-the-windows-path/).\\n\\n\\n## macOS\\n\\nmacOS is very similar to Linux, although there aren't any GUI tools for AV1 encoding that I can comfortably recommend.\\n\\n**Homebrew + Macports for Av1an + rav1e:**\\n*Note that some commands may have to be run with `sudo`, which I won't explicitly include for security reasons.*\\n\\nInstalling the Homebrew package manager is a well documented process at this point:\\n```bash\\n/bin/bash -c \\\"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\\\"\\n```\\n\\nAs is installing MacPorts. Install the relevent `.pkg` for your macOS version from the MacPorts Project website:\\n[www.macports.org/install.php](https://www.macports.org/install.php)\\n\\nNow, you can run the following commands:\\n```bash\\nbrew update && brew upgrade\\nbrew install rav1e aom mkvtoolnix ffmpeg\\n# Usually you must run MacPorts commands for package installations as root\\nport upgrade outdated\\nport install av1an\\n```\\n\\nThis is the easiest way to get everything set up & working to produce AV1 video with `rav1e` or mainline `aomenc` & Av1an. You can check that things are installed by running the following commands & parsing their output:\\n```bash\\n% av1an --version\\nav1an 0.4.1-unstable (rev e10880d) (Release)\\n\\n* Compiler\\n rustc 1.70.0 (LLVM 16.0)\\n\\n* Target Triple\\n aarch64-apple-darwin\\n\\n* Date Info\\n Commit Date: 2023-06-25\\n\\n* VapourSynth Plugins\\n systems.innocent.lsmas : Not found\\n com.vapoursynth.ffms2 : Not found\\n```\\n```bash\\n% rav1e --version | grep \\\"release\\\" -C 1\\nrav1e 0.6.6 () (release)\\nrustc 1.69.0 (84c898d65 2023-04-16) (built from a source tarball) aarch64-apple-darwin\\n```\\n```bash\\n% aomenc --help | grep \\\"AOMedia\\\" -C 3\\n\\nIncluded encoders:\\n\\n av1 - AOMedia Project AV1 Encoder 3.6.1 (default)\\n\\n Use --codec to switch to a non-default encoder.\\n```\\n\\nNotice `systems.innocent.lsmas : Not found` in the Av1an output. This means you won't be able to use the lsmash chunking method through vapoursynth & may instead have to rely on hybrid chunking, through `-m hybrid`. This is slower & takes up disk space while encoding, but still works. A sample Av1an command with this basic installation may look like this:\\n\\n```bash\\nav1an -i \\\"input\\\" -y --resume --verbose --split-method av-scenechange -m hybrid -c mkvmerge -e rav1e --force -v \\\" --tiles 8 -s 4 --quantizer 80 --no-scene-detection\\\" --photon-noise 7 --chroma-noise --pix-format yuv420p10le -w 8 -o \\\"output.mkv\\\"\\n```\\n\\n**Building From Source**\\n\\nIf you want lsmash support, aom-av1-lavish instead of mainline, or anything else that isn't covered by the more basic installation, you'll have to compile from source. Things are very similar to Linux, with a few oddities:\\n\\n- macOS sometimes doesn't have a `/usr/local/bin` by default. You can fix this by doing `mkdir /usr/local/bin`.\\n- Homebrew installs *everything* in its own directory structure. If you're building things from source that rely on libraries from vapoursynth, zimg, lsmash, etc, make sure to copy them from `/opt/homebrew/lib` to `/usr/local/lib`. Finding them is a matter of `ls | grep \\\"keyword\\\"` & copying what looks reasonable to be associated with the tool you're using.\\n- Building most things from source will have instructions for \\\\*nix which work for both macOS & Linux. Even if it says Linux, there's a good chance it'll work on macOS as well, & it is always worth trying Linux build instructions on Mac. I won't be going through building every encoding tool & dependency from source, as it is generally much more intuitive than Windows, but building Av1an is worth detailing here just as an example.\\n```bash\\nbrew install git rust nasm\\ngit clone https://github.com/master-of-zen/Av1an\\ncd Av1an\\nRUSTFLAGS=\\\"-C target-cpu=native\\\" cargo build --release\\ncd .. && cd target/release\\ncp av1an /usr/local/bin\\n```\\n\\n**More Difficult: Building aom-av1-lavish from Source**\\n\\nIf you want to make the most out of your hardware & eke out every last drop of quality, it may be worth building aom-av1-lavish from source. The first step is to clone it from the Endless Merging branch:\\n```bash\\ngit clone https://github.com/Clybius/aom-av1-lavish -b Endless_Merging\\ncd aom-av1-lavish\\n```\\nNow, you need to make some manual changes to the source code until Clybius merges [this commit](https://github.com/Clybius/aom-av1-lavish/pull/1/files).\\n- Add the line `#include \\\"aq_variance.h\\\"` at line 19 in `av1/encoder/encodeframe_utils.c`\\n- Comment out line 2546 in `av1/encoder/speed_features.c`. This line is `const int qindex_thresh_cdef_sf_s1_s3_l2[2] = { 92, 48 };` & becomes `// const int qindex_thresh_cdef_sf_s1_s3_l2[2] = { 92, 48 };`.\\n\\nNow you can continue to build according to the Linux instructions below. Obviously you'll need cmake, which you can install with homebrew along with any other tools you may need. While still in the `aom-av1-lavish` directory:\\n```bash\\nmkdir -p aom_build && cd aom_build\\ncmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=\\\"-flto -O3 -march=native\\\" -DCMAKE_C_FLAGS=\\\"-flto -O3 -march=native -pipe -fno-plt\\\" -DCMAKE_LD_FLAGS=\\\"-flto -O3 -march=native\\\"\\nmake -j$(nproc)\\n# This may need to be run as root:\\nmake install\\n```\\n\\nNow you can run `aomenc --help | grep \\\"AOMedia\\\" -C 3` to see if lavish installed. If you're getting the same output as above, you may need to copy the `aomenc` executable to `/opt/local/bin`, `/usr/local/bin`, & `/opt/homebrew/bin` if you already installed mainline aomenc. Running the version info command again, the correct output should look something like this:\\n```bash\\n% aomenc --help | grep AOMedia -C 3\\n\\nIncluded encoders:\\n\\n av1 - AOMedia Project AV1 Encoder Psy v3.6.0 (default)\\n\\n Use --codec to switch to a non-default encoder.\\n```\\n\\nNotice how it says `AOMedia Project AV1 Encoder Psy` instead of `AOMedia Project AV1 Encoder`. You should be all set after this to start using aom-av1-lavish & following the current parameter meta as outlined below.\\n\\n## Linux\\n\\n:::info\\nYet again, try using Arch. It's way easier.\\n:::\\n\\n### The GUI Way\\n\\n- Install [Aviator](https://github.com/gianni-rosato/aviator) ([SVT-AV1](https://wiki.x266.mov/docs/encoders/SVT-AV1) + [FFmpeg](https://wiki.x266.mov/docs/utilities/FFmpeg)) or [rAV1ator](https://giannirosato.com/blog/post/aviator-1/) basically same thing but [Av1an](https://wiki.x266.mov/docs/utilities/av1an.mdx) + [rav1e](https://wiki.x266.mov/docs/encoders/rav1e). Both are only available as [Flatpaks](https://beta.flathub.org/apps/net.natesales.Aviator). Keep in mind Aviator ships with **SVT-AV1** and rAV1ator with **rav1e** instead of aomenc/AOM-AV1, which I will not be covering here.\\n\\n### The TUI Way\\n\\n*(Recommended)*\\n\\n- Install [rav1ator-cli](https://wiki.x266.mov/docs/utilities/rav1ator-cli), a TUI for using Av1an meant to be easy to use. Much more flexible than the GUI options & can work with a number of encoders. See [this page](https://wiki.x266.mov/docs/utilities/rav1ator-cli/#installation) for more info. Can be easily used on any distro.\\n\\n### The Compiling Route\\n\\n#### Ubuntu\\n\\nThe guide below is targeted towards 22.04, packages and other things may be different on other versions. First Install Rust via `rustup` first, as apt version of Rust is severely outdated, then you can continue.\\n\\nInstall dependencies:\\n```bash\\nsudo apt install wget python unzip unrar build-essential meson autoconf automake libtool git nasm yasm python3-dev python3-pip cython3 libass-dev libqt5websockets5-dev libfftw3-dev libtesseract-dev ffmpeg libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libswresample-dev libmediainfo-dev mkvtoolnix mediainfo perl nasm yasm git cmake libavutil-dev libavcodec-dev libavformat-dev libavdevice-dev libavfilter-dev libswscale-dev libswresample-dev libpostproc-dev llvm libclang-dev libssl-dev\\n```\\n\\nInstall l-smash:\\n```bash\\ngit clone https://github.com/l-smash/l-smash.git\\ncd l-smash\\n./configure --enable-shared --extra-cflags=\\\"-march=native\\\"\\nmake -j$(nproc)\\nsudo make install\\n```\\n\\nInstall zimg:\\n```bash\\ngit clone --recursive https://github.com/sekrit-twc/zimg.git\\ncd zimg\\n./autogen.sh\\n./configure\\nmake -j$(nproc)\\nsudo make install\\n```\\n\\nInstall ImageMagick:\\n```bash\\ngit clone https://github.com/ImageMagick/ImageMagick\\ncd ImageMagick\\n./configure\\nmake -j$(nproc)\\nsudo make install\\n```\\n\\nInstall Vapoursynth R63:\\n```bash\\nwget https://github.com/vapoursynth/vapoursynth/archive/refs/tags/R63.zip\\nunzip R63.zip\\ncd vapoursynth-R63\\n./autogen.sh\\n./configure CFLAGS=\\\"-march=native\\\" CXXFLAGS=\\\"-march=native\\\" --libdir=/usr/lib\\nmake -j$(nproc)\\nsudo make install\\nsudo mkdir /usr/lib/vapoursynth\\nsudo ldconfig\\n```\\nThe plugin directory will be located in `/usr/lib/vapoursynth`.\\n\\n\\nInstall L-SMASH-Works Vapoursynth Plugin:\\n```bash\\ngit clone https://github.com/AkarinVS/L-SMASH-Works -b ffmpeg-4.5\\ncd L-SMASH-Works/VapourSynth && mkdir build && cd build\\nmeson .. --optimization=3 --default-library=static -Db_lto=true -Dc_args=\\\"-march=native\\\" -Dcpp_args=\\\"-march=native\\\"\\nninja -j$(nproc)\\nsudo cp libvslsmashsource.so /usr/lib/vapoursynth/\\n```\\n\\n:::danger\\nL-SMASH-Works doesn't work on **aarch64**, it is recommended to use other plugins instead.\\n:::\\n\\nInstall FFMS2 Vapoursynth Plugin:\\n```bash\\ngit clone https://github.com/FFMS/ffms2\\ncd ffms2\\n./autogen.sh\\n./configure CFLAGS=\\\"-O3 -march=native\\\" CXXFLAGS=\\\"-O3 -march=native\\\"\\nmake -j$(nproc)\\nsudo cp src/core/.libs/libffms2.so src/core/.libs/libffms2.so.5 src/core/.libs/libffms2.so.5.0.0 /usr/lib/vapoursynth\\n```\\n\\nInstall Av1an:\\n```bash\\ngit clone https://github.com/master-of-zen/Av1an\\ncd Av1an\\nRUSTFLAGS=\\\"-C target-cpu=native\\\" cargo build --release\\nsudo cp target/release/av1an /usr/local/bin\\n```\\n\\nWhen there's no errors, proceed to compiling `aom-av1-lavish`.\\n\\n### Arch\\n\\nInstall dependencies:\\n```bash\\nsudo pacman -S vapoursynth ffmpeg av1an mkvtoolnix-gui git perl cmake ninja meson nasm vapoursynth-plugin-lsmashsource ffms2\\n```\\n\\nyou're done, proceed.\\n\\n#### Compiling aom-av1-lavish\\n``` bash\\ngit clone https://github.com/Clybius/aom-av1-lavish -b Endless_Merging\\ncd aom-av1-lavish && mkdir -p aom_build && cd aom_build\\ncmake .. -DBUILD_SHARED_LIBS=0 -DENABLE_DOCS=0 -DCONFIG_TUNE_BUTTERAUGLI=0 -DCONFIG_TUNE_VMAF=0 -DCONFIG_AV1_DECODER=0 -DENABLE_TESTS=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=\\\"-flto -O3 -march=native\\\" -DCMAKE_C_FLAGS=\\\"-flto -O3 -march=native -pipe -fno-plt\\\"\\nmake -j$(nproc)\\nsudo make install\\n```\\n\\n## Encoding\\n\\nThe moment you've all been waiting for, let's just get into it. Here's an example *recommended* parameter as of now (09/03/23) [MM/DD/YY]:\\n```bash\\nav1an -x 300 -i input.mkv -w 4 -e aom -c mkvmerge --resume -m lsmash --photon-noise=10 --set-thread-affinity=2 --verbose -a \\\" -an \\\" -f \\\" -an \\\" -v \\\" --bit-depth=10 --cpu-used=4 --end-usage=q --cq-level=24 --threads=2 --tile-columns=0 --tile-rows=0 --lag-in-frames=64 --tune-content=psy --tune=ssim --enable-keyframe-filtering=1 --disable-kf --kf-max-dist=9999 --enable-qm=1 --deltaq-mode=0 --aq-mode=0 --quant-b-adapt=1 --enable-fwd-kf=0 --arnr-strength=1 --sb-size=dynamic --enable-dnl-denoising=0 \\\" -o \\\"output.mkv\\\"\\n```\\n\\n:::info Parameter Meta\\nIt is strongly recommended to join the [AV1 Discord server](https://discord.gg/vpREHAvYvh) to get the latest updates on what to use and which to set, as it's the only easily reachable place for everything AV1 & encoding tips in general.\\n:::\\nNow let's dissect it one-by-one\\n\\n**Av1an parameters:**\\n\\n- ``-i`` Input.\\n\\n- ``-x 300`` Sets scene split length to 300 frames, you can increase it for more quality at the tradeoff of video seekability.\\n\\n- ``-w 4`` Specifies the amount of \\\"workers\\\" or amount of encoders working on the video.\\n\\n- ``--verbose`` Sets logging to verbose.\\n\\n- ``--resume`` Resumes the encode even when you haven't encoded yet. I strongly recommend leaving this if you resume a lot since you can accidentally delete your whole progress (There's no delete confirmation feature.. yet) if you \\\"resumed\\\" without the parameter in place.\\n\\n- ``-e aom`` Specifies we're using aomenc encoder which should be the default option.\\n\\n- ``-c mkvmerge`` Specifies we're using mkvmerge (MKVToolNix) to concatenate the parts when done, you can specify with ffmpeg if you want to but this is the best method.\\n\\n- ``-m lsmash`` Specifies we're using l-smash (Vapoursynth plugin) to split the videos, this is also the best method because ffms2 causes video lag (Tested a year ago, might change now) and other methods just suck (Slow and not worth it, learned the hard way). You can attempt to use ffms2 when inputting VC-1 videos as it is not possible with l-smash (Or convert it to lossless with x264 qp 0).\\n\\n- ``-f \\\" -an \\\"`` ``-f`` Stands for ffmpeg parameters, ``-an`` is to remove all audio since its better to encode and merge it separately. To crop use ``-f \\\" -an -vf crop=1920:800 \\\"`` for example to crop the video to 1920x800.\\n\\n- ``-v \\\" \\\"`` Is where you put the encoder's parameters in.\\n\\n- ``-a \\\" -an \\\"`` FFmpeg audio encoding options, we're removing it cause we can always add it later. But if you want to, you can also encode directly. Here's an example for encoding to Opus using libopus assuming stereo: `-a \\\" -c:a libopus -b:a 128k \\\"`.\\n\\n- ``--photon-noise=10`` AV1 grain synthesis, which is a technique where the encoder puts fake grain in so it looks more natural and potentially hiding video artifacts (cause grain is hard to encode and explodes bitrate usage because of their randomness), 5-8 for almost none to little grain, 10-14 for medium, 15+ heavy, 20+ extremely heavy, 30+ for extremely grainy 90s live action films.\\n\\n- ``--set-thread-affinity=2`` Pins the thread to the encoder, aligns with ``--threads=2`` in the encoder parameter so set them accordingly.\\n\\n\\n**aomenc parameters:**\\n- ``--bit-depth=10`` We're using 10bit because it makes the video smaller and reduces [banding](https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Video_codecs#contouring).\\n\\n- ``--cpu-used=4`` This is the preset which ranges from 0-9, you can go to 3 if you want more efficiency, 2 if you have a lot of time, 4 is the sweet spot, and 6 if you want speed. Don't go above 6 (Worst efficiency) or even 0 (It would take WEEKS to finish).\\n\\n- ``--end-usage=q --cq-level=24`` This specifies that we are going to use a knockoff version of CRF level similar to x264/x265 encoders, in this case CRF 24.\\n\\n- `--threads=2` Sets the amount of threads the encoder can use, aligns with `--set-thread-affinity` in Av1an.\\n\\n- ``--tile-columns=0 --tile-rows=0`` This is the tiles options, where the encoder splits the videos into tiles to encode faster, see the image below (Yellow lines):\\n\\n \\n \\\"Tiling\\\"\\n\\n\\n:::note Tile usage\\nDo NOT use tiles for 1080p and below, use 1 ``tile-columns`` at 1440p (2K), 2 ``tile-columns`` and 1 ``tile-rows`` for 2160p (4K)\\n:::\\n\\n- ``--lag-in-frames=64`` Similar to x264/x265 `rc-lookahead`. Sets a number of frames to look ahead for frametype and ratecontrol, allowing for better compression decision making. Setting to a value greater than 64 is generally not considered useful.\\n\\n- ``--aq-mode`` adaptive quantization mode, 0 is better most of the time\\n\\n- ``--tune-content=psy --tune=ssim`` As the name suggests they are tunes that affect the video output, for the better, and for the worst\\n\\n:::info Tunes to use\\nSet ``tune-content`` to ``animation`` if you're encoding above ``cq-level=30`` A.K.A lower quality, despite it's name\\nSet ``tune-content`` to ``psy`` for everything else, **do not use if you encode above ``cq-level=30``**\\nFor ``tune``, this is a bit tricky. For now, the meta seems to be ``ssim``, but back then it was ``lavish`` which is considered THE best tune because it's based on [butteraugli](https://github.com/google/butteraugli). Now it's fallen behind because its more blurry than ``ssim``, and before that it was ``butteraugli``, and then ``ipq_vmaf_psy``, and finally just ``ipq``.\\nIf you use any of the VMAF tunes, **you need to specify ``--vmaf-model-path=`` to where you put it**.\\n:::\\n\\n- ``--enable-keyframe-filtering=1`` We're setting it to 1 because of compatibility reasons, 2 is more efficient but there are seeking issues and FFmpeg for some reason can't input it.\\n\\n- ``--sb-size=dynamic`` Allows the encoder to use 128x128 block partitioning besides 64x64 which gives an efficiency boost, ignore it.\\n\\n- ``--deltaq-mode`` set to 0 because its just better.\\n\\n- ``--arnr-strength=1`` Controls how strong the filtering will be, 1 is good for 3D Pixar CGI-like and 2D animation, use 4 if you're doing live action content. Using maximum at higher bitrates would just result in a blurry mess.\\n\\n- ``--disable-kf --enable-fwd-kf=0`` We're disabling keyframes cause **Av1an already did scene detection, so we wont have to.**. And it speeds things up.\\n\\n- ``--kf-max-dist=9999`` Maximum keyframe interval, we're setting it at the highest possible value since av1an's scene detection keyframe interval is already 240 by default\\n\\n- ``--enable-chroma-deltaq=1 --enable-qm=1 --quant-b-adapt=1`` Parameters that give you free efficiency boost.\\n\\n- ``--enable-dnl-denoising=0`` Disables the encoder's built-in denoising technique when grain synthesis is enabled, you can optionally set it to 1 when you have a pretty noisy video since it works quite well.\\n\\n\\n:::info Concatenation Error on Linux\\nRun ``ulimit -n 200000``, resume, and it should concatenate just fine. If it still errors, head to the encode directory > encode, and run ``mkvmerge @../options.json``\\n:::\\n\\n\\n## Merging Everything\\n\\nOnce you're done just encode your audio using ffmpeg (or just passthrough it), subtitles should be carried along with your video output, and merge them in MKVToolNix! Don't want Matroska files? That's fine, you can use FFmpeg or MP4Box to output into `mp4`, just keep in mind that PGS/SUP/VOBSUB subtitles are not supported and Opus audio support is still experimental.\\n\\n\\n## Tips & Tricks\\n\\n- `--denoise-noise-level=10` Alternative to `photon-noise`, slower than photon-noise and is the OG grain synthesis method, performs okay and just serves as an alternative. Don't attempt to use it at high values (>12) since it creates noticeable grain patterns.\\n\\n- `--arnr-maxframes` to set max reference frames that will be used to filter the encode, higher values would make the video blurrier at high fidelity but look better at lower bitrates.\\n\\n- `--butteraugli-resize-factor=2` if you use any of the butteraugli-based tunes (lavish, butteraugli) to speed it up without much losses and `--butteraugli-intensity-target=250` to match the content light level.\\n\\n\\n## Final Thoughts\\n\\nEncoding has always been about experimentation for the best, there is really no \\\"One size fits all\\\" for encoding content, as they differ from scene complexity, how it's captured (2D/Real life), film grain, dark scenes, etc. So experiment away for your specific type of content!\\n\\n> **Guide originally hosted on https://rentry.co/AV1, rewrite and migration by Simulping.**\"},{\"id\":\"site-optimization\",\"metadata\":{\"permalink\":\"/blog/site-optimization\",\"source\":\"@site/blog/2023-07-21-site-optimization.mdx\",\"title\":\"Reducing Image Load Online\",\"description\":\"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.\",\"date\":\"2023-07-21T00:00:00.000Z\",\"tags\":[{\"inline\":true,\"label\":\"image\",\"permalink\":\"/blog/tags/image\"},{\"inline\":true,\"label\":\"web\",\"permalink\":\"/blog/tags/web\"},{\"inline\":true,\"label\":\"compression\",\"permalink\":\"/blog/tags/compression\"}],\"readingTime\":9.25,\"hasTruncateMarker\":true,\"authors\":[{\"name\":\"Gianni Rosato\",\"title\":\"Maintainer\",\"url\":\"https://github.com/gianni-rosato\",\"image_url\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"key\":null,\"page\":null}],\"frontMatter\":{\"title\":\"Reducing Image Load Online\",\"description\":\"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery.\",\"slug\":\"site-optimization\",\"authors\":[{\"name\":\"Gianni Rosato\",\"title\":\"Maintainer\",\"url\":\"https://github.com/gianni-rosato\",\"image_url\":\"https://avatars.githubusercontent.com/u/35711760?v=4\",\"imageURL\":\"https://avatars.githubusercontent.com/u/35711760?v=4\"}],\"tags\":[\"image\",\"web\",\"compression\"],\"image\":\"/img/_DSC8466-smaller.jpg\",\"hide_table_of_contents\":false},\"unlisted\":false,\"prevItem\":{\"title\":\"AV1 Encoding for Dummies\",\"permalink\":\"/blog/av1-encoding-for-dummies\"}},\"content\":\"A big part of understanding any multimedia codec technology is knowing the application for such technology. For images, a big use case is web delivery. Compared to other multimedia, images are incredibly popular on the Web & knowing how to serve them properly can be a massive boon to your website's traffic as well as less of a headache for users on slower connections or who are under bandwidth constraints. The most disappointing part is that images are often poorly done on the web; all too frequently will you run into a site serving massive photographic PNGs for no reason, or photography sites serving photographs fresh out of the editing software with no thought put into their final delivery. A little effort, patience, & knowledge will go a long way toward improving the user experience for individuals using your site, & this article will illustrate some of the basics.\\n\\n\x3c!--truncate--\x3e\\n\\n:::caution\\nThese instructions are for *photographic* images; other kinds of images, like non-photographic, artwork, pixel art, etc. should likely be handled differently.\\n:::\\n\\n:::danger\\nMany images won't load properly unless your browser supports JXL, AVIF, & proper ICCv2 color management. This is for demonstration purposes only & shouldn't represent an actual common website experience. If you're curious anyway, the following browsers can display the contents of this page perfectly:\\n- [Thorium](https://thorium.rocks/) | *Linux, [macOS](https://github.com/Alex313031/Thorium-Special/releases), [Windows](https://github.com/Alex313031/thorium/releases/), [Android](https://github.com/Alex313031/Thorium-Special/releases)*\\n- [Waterfox](https://www.waterfox.net/) | *[Linux](https://flathub.org/apps/net.waterfox.waterfox), [macOS](https://www.waterfox.net/download/), [Windows](https://www.waterfox.net/download/)*\\n- [Mercury](https://thorium.rocks/mercury) | *[Linux](https://github.com/Alex313031/Mercury/releases), [Windows](https://github.com/Alex313031/Mercury/releases)*\\n:::\\n\\n## Fire & Forget\\n\\nFirst, we'll illustrate what *not* to do, which is fortunately not incredibly difficult to avoid. Taking an image straight out of your editing software at a massive size will often bloat the size & resolution to something that isn't generally usable for a website regardless of the codec you're using & its quality per bit. It can be argued there are specific use cases that demand incredible resolution & fidelity coexist on the Web, but we won't be covering those here. Here's an example of a bloated image:\\n\\n*exported straight from Darktable at JPEG q90, with no scaling*\\n\\n![bloated_jpeg](/img/_DSC8466.jpg)\\n\\n**2.2 MB**\\n\\n## Massive Improvement\\n\\nThe easiest way to have a large improvement without doing much work is to simply resize the image before serving it. Even if you exported a lossy JPEG, resizing should remove a lot of artifacts. The way to perceive a worst-case for an image's size on a site is to inspect the image element's width & height, which should give us an estimate of how large we should make our image. Any larger than this value is unreasonable since we're overfilling the element's size for no reason & the image is being scaled down anyway.\\n\\n![box-size-mac](/img/box-size-mac.avif)\\n*Inspect Element in Firefox. The Mac used to take this screenshot has a relatively high display resolution of 2560x1664. Because Macs scale things differently, we're probably going to want to double the horizontal resolution here.*\\n\\nThe width is the most important value here, so our new image is going to be exported with a width of 1699 pixels. This new image, encoded at JPEG q90 with `cjpegli`, looks like this:\\n\\n![smaller_jpeg](/img/_DSC8466-smaller.jpg)\\n\\nObviously, there's lost fidelity compared to the original, but considering this is *so much smaller*, it is worth the trade-off for many. It is also worth noting we are using an improved jpeg encoder in the form of `cjpegli`, although that is secondary to the resize. If it doesn't look as good as you want it to, you can always scale the resolution up a bit, though currently, it looks plenty passable for its size.\\n\\n2.2 MB -> **233 kB**\\n\\n### Lazy Loading\\n\\nA bonus tip is to add the `loading=\\\"lazy\\\"` attribute to your picture tag to allow the image to load only when scrolled to by a user. This doesn't save bandwidth, but it improves the user experience by loading images further down the page only when necessary. An example may look like this:\\n\\n```html\\n\\n \\\"alt\\n \\n```\\n\\n## New Codecs\\n\\nIf you desire further improvement, it may be time to consider using a newer codec like [AVIF](https://wiki.x266.mov/docs/images/AVIF) or [JPEG-XL](https://wiki.x266.mov/docs/images/JXL). These options will compress far more effectively than JPEG, with the only trade-off being browser support. We're not going to consider [WebP](/docs/images/WebP) or [HEIC](/docs/images/HEIC), since WebP is not competitive enough with JPEG for photographic imagery (often being worse) & HEIC has been superseded by AVIF - which sees greater support anyhow - & is not royalty free, effectively preventing widespread Web adoption forever. Again, we're just considering *lossy* compression for *photographic* images; it is a different story with WebP elsewhere, as it performs well on non-photographic content & is almost always better than PNG for 8-bit lossless compression. So, we are left with JXL & AVIF for now.\\n\\n### Fallbacks\\n\\nAVIF sees widespread support, but JPEG-XL isn't quite there yet with Web support as Google continues to push AVIF (it is debatable if it ever will be outside the Apple ecosystem). Even with AVIF, adoption isn't remotely close to JPEG, so it is worth providing a fallback. This can look like the following example:\\n\\n```html\\n\\n \\n \\n \\n \\\"alt\\n \\n```\\n\\nHere is a JXL falling back to an AVIF falling back to a WebP falling back to a JPEG. Pretty intense to have this many fallbacks unless you're really after the ultimate compression ratio, but it is certainly an option. AVIF & JPEG alone will probably be enough for most.\\n\\n### Compression Efficacy\\n\\nLet's look at how our image examples compare to the original with our new codec selection. We'll be aiming for high visual fidelity, so around the same quality as our initial JPEG encoded with `cjpegli` (which scores ~`83.01` with the [SSIMULACRA2](/docs/metrics/SSIMULACRA2) visual fidelity metric).\\n\\n![smaller_jxl](/img/_DSC8466-smaller.jxl)\\n\\n**137.0 kB** *JPEG-XL image, encoded with `cjxl lossless.png out.jxl -d 1.49 -e 9`. Score: ~`83.04`* *3.06s user time*\\n\\n![smaller_avif](/img/_DSC8466-smaller.avif)\\n\\n**124.8 kB** *AVIF image, encoded with `avifenc -c aom -s 4 -j 8 -d 10 -y 444 --min 1 --max 63 -a end-usage=q -a cq-level=16 -a tune=ssim lossless.png out.avif`. Score: ~`83.03`* *7.54s user time*\\n\\nJXL also supports lossless transcoding of JPEG images. This means every pixel is identical, the image just has a smaller filesize than the original JPEG; if you can use JXL, you can transcode existing JPEGs losslessly on your site & save some bandwidth that way. The JPEG transcode below gives a higher SSIMULACRA2 score than the original for some reason, but I'll chalk that up to a decoding inconsistency between how the `ssimulacra2` program decodes JPEG & JXL. Either way, the scores are fairly close.\\n\\n![smaller_jxl_jpeg-recomp](/img/_DSC8466-smaller-recomp.jxl)\\n\\n**189.4 kB** *JPEG-XL image from JPEG, encoded with `cjxl input.jpg input-recomp.jxl -d 0.0 -e 9 --brotli_effort=11`. Score: ~`84.92` (???)* *0.67s user time*\\n\\nThe final trick we can use, while not a new codec at all, still increases quality per bit. Encoding an XYB JPEG with `cjpegli` encodes with the perceptual XYB colorspace using an ICC profile to modify the original JPEG colors, avoiding JPEG's normal YCbCr which isn't perceptually optimized for the human visual system. Using XYB, we can afford identical quality with less bitrate than normal JPEG. This has universal compatibility, but not every application understands how to handle the XYB color profile (although color-managed modern browsers should be fine).\\n\\n![smaller_jpeg_xyb](/img/_DSC8466-smaller-xyb.jpg)\\n\\n**208.3 kB** *XYB JPEG, encoded with `cjpegli lossless.png out.jpg --xyb -d 1.155`. Score: ~`83.04`* *0.10s user time*\\n\\nIn this particular instance, AVIF seems to be the overall winner. This isn't always the case due to JXL's superiority at higher fidelity & with more detailed images, but according to SSIMULACRA2, AVIF has the best quality per bit with this image. You can use your own eyes to further clarify your choice, though. It is worth mentioning that as these were encoded from a 16-bit source PNG, the JXL image is the only one that maintains the full original bit depth, & AVIF isn't fast to encode.\\n\\n## Responsive Images\\n\\nDisplaying an image that is too large for a viewport is a waste of bandwidth, & displaying an image that's too small for the viewport leaves fidelity to be desired. Luckily, we have the [Responsive Image Linter](https://ausi.github.io/respimagelint/) that can help us figure out which image sizes we should be using.\\n\\n![responsive_image_linter](/img/responsive_image_linter.avif)\\n\\nIn our fire & forget example, we see that we are serving an image that is far too large. We already know that, but now we can see that given various viewport sizes we could be serving images that have respective widths of 270px, 958px, 1350px, 1660px, & 1916px to optimize for delivery to a variety of different devices. Here's how we'd write that in HTML:\\n\\n```html\\n\\n \\n \\n \\\"alt\\n\\n```\\n\\nIt is worth noting that this example above & the example below aren't perfect implementations of a responsive image given the conditions of this site, but the general concept still applies. Some things to note:\\n\\n- `srcset` = the images available to your browser to serve, & their respective widths\\n- `sizes` = the conditions given to the browser explaining under what conditions should it serve which image\\n- `(min-width: XXXpx) YYYpx` = Given the viewport is at least XXX wide, serve an image of YYY horizontal resolution. The browser will pick an image from srcset that is CSS pixels \\\\* display scaling.\\n- `calc(100vw - 24px)` = Usually preceded by a (min-width) condition. Specifies a value the browser should calculate on its own to pick the closest option from the srcset. Let's say we have `(min-width: 997px) calc(75vw - 257px)`. This means given the viewport is at least 997px wide, calculate 0.75 \\\\* the current viewport resolution - 257 to find the closest image in the srcset to fit the number of pixel specified.\\n\\n\\n \\n \\n \\\"alt\\n\\n\\nThat's all! Massive thanks to Auto-Rez Media Technologies for the inspiration behind this article & explicit permission to use their [Reduce Your Page's Image Load](https://autocompressor.net/blog/reduce-image-load) blog post when writing this entry. I have [confirmed](https://autumn.revolt.chat/attachments/GtFGuwNfeRdcwUN0MWzhDCAiiadWOk88XXC3pQv6RI) with their leadership that this wiki entry can be safely licensed under CC BY-SA 4.0.\"}]}}")}}]); \ No newline at end of file diff --git a/assets/js/f9208490.ac89ffd0.js b/assets/js/f9208490.ac89ffd0.js new file mode 100644 index 000000000..7de59e9f9 --- /dev/null +++ b/assets/js/f9208490.ac89ffd0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3229],{2264:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>p,frontMatter:()=>i,metadata:()=>r,toc:()=>d});const r=JSON.parse('{"id":"utilities/hdr10plus_tool","title":"hdr10plus_tool","description":"hdr10plus_tool is a command line tool written in Rust for working with HDR10+ in HEVC files. It was previously named hdr10plus_parser.","source":"@site/docs/utilities/hdr10plus_tool.mdx","sourceDirName":"utilities","slug":"/utilities/hdr10plus_tool","permalink":"/docs/utilities/hdr10plus_tool","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/hdr10plus_tool.mdx","tags":[],"version":"current","sidebarPosition":11,"frontMatter":{"title":"hdr10plus_tool","sidebar_position":11},"sidebar":"tutorialSidebar","previous":{"title":"eac3to","permalink":"/docs/utilities/eac3to"},"next":{"title":"MP4Box","permalink":"/docs/utilities/mp4box"}}');var a=n(4848),l=n(8453),s=n(1470),o=n(9365);const i={title:"hdr10plus_tool",sidebar_position:11},u="hdr10plus_tool",c={},d=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Extracting",id:"extracting",level:3},{value:"Injecting",id:"injecting",level:3},{value:"Removing HDR10+ Metadata",id:"removing-hdr10-metadata",level:3}];function h(e){const t={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",...(0,l.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.header,{children:(0,a.jsx)(t.h1,{id:"hdr10plus_tool",children:"hdr10plus_tool"})}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.strong,{children:"hdr10plus_tool"})," is a command line tool written in Rust for working with HDR10+ in HEVC files. It was previously named ",(0,a.jsx)(t.em,{children:"hdr10plus_parser"}),"."]}),"\n",(0,a.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,a.jsxs)(s.A,{children:[(0,a.jsxs)(o.A,{value:"unixlike",label:"Linux & macOS",children:[(0,a.jsxs)(t.p,{children:["You can download official pre-built binaries for Linux & macOS from ",(0,a.jsx)(t.a,{href:"https://github.com/quietvoid/hdr10plus_tool/releases",children:"the GitHub Releases"}),", or you may compile the tool yourself via the instructions below."]}),(0,a.jsx)(t.p,{children:"Ensure you have Rust installed."}),(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-bash",children:'git clone https://github.com/quietvoid/hdr10plus_tool.git\ncd hdr10plus_tool\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})})]}),(0,a.jsxs)(o.A,{value:"windows",label:"Windows",children:[(0,a.jsxs)(t.p,{children:["You can download official pre-built binaries for Windows from ",(0,a.jsx)(t.a,{href:"https://github.com/quietvoid/hdr10plus_tool/releases",children:"the GitHub Releases"}),", or you may compile the tool yourself via the instructions below."]}),(0,a.jsx)(t.p,{children:"Ensure you have Rust installed."}),(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-pwsh",children:"git clone https://github.com/quietvoid/hdr10plus_tool.git\ncd hdr10plus_tool\nset RUSTFLAGS=-C target-cpu=native \ncargo build --release\n"})})]})]}),"\n",(0,a.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-bash",metastring:'title="General usage"',children:"hdr10plus_tool [OPTIONS] \n"})}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-bash",metastring:'title="Get more options for a subcommand"',children:"hdr10plus_tool --help\n"})}),"\n",(0,a.jsx)(t.h3,{id:"extracting",children:"Extracting"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-bash",metastring:'title="Extract using FFmpeg pipe (Recommended)"',children:"ffmpeg -hide_banner -strict -2 -i input.mkv -map 0:v:0 -c copy -vbsf hevc_mp4toannexb -f hevc - | hdr10plus_tool extract -o metadata.json -\n"})}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-bash",metastring:'title="Extract from raw bitstream"',children:"hdr10plus_tool extract video.hevc -o metadata.json\n"})}),"\n",(0,a.jsx)(t.h3,{id:"injecting",children:"Injecting"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-bash",metastring:'title="Inject to raw bitstream"',children:"hdr10plus_tool inject -i video.hevc -j metadata.json -o injected_output.hevc\n"})}),"\n",(0,a.jsx)(t.h3,{id:"removing-hdr10-metadata",children:"Removing HDR10+ Metadata"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-bash",metastring:'title="Remove using FFmpeg pipe (Recommended)"',children:"ffmpeg -hide_banner -strict -2 -i input.mkv -map 0:v:0 -c copy -vbsf hevc_mp4toannexb -f hevc - | hdr10plus_tool remove -\n"})}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-bash",metastring:'title="Remove from raw bitstream"',children:"hdr10plus_tool remove video.hevc -o hdr10plus_removed_output.hevc\n"})})]})}function p(e={}){const{wrapper:t}={...(0,l.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},9365:(e,t,n)=>{n.d(t,{A:()=>s});n(6540);var r=n(4164);const a={tabItem:"tabItem_Ymn6"};var l=n(4848);function s(e){let{children:t,hidden:n,className:s}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,r.A)(a.tabItem,s),hidden:n,children:t})}},1470:(e,t,n)=>{n.d(t,{A:()=>w});var r=n(6540),a=n(4164),l=n(3104),s=n(6347),o=n(205),i=n(7485),u=n(1682),c=n(679);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,u.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,n])}function p(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function m(e){let{queryString:t=!1,groupId:n}=e;const a=(0,s.W6)(),l=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,i.aZ)(l),(0,r.useCallback)((e=>{if(!l)return;const t=new URLSearchParams(a.location.search);t.set(l,e),a.replace({...a.location,search:t.toString()})}),[l,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,l=h(e),[s,i]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!p({value:t,tabValues:n}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:l}))),[u,d]=m({queryString:n,groupId:a}),[b,f]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,l]=(0,c.Dv)(n);return[a,(0,r.useCallback)((e=>{n&&l.set(e)}),[n,l])]}({groupId:a}),v=(()=>{const e=u??b;return p({value:e,tabValues:l})?e:null})();(0,o.A)((()=>{v&&i(v)}),[v]);return{selectedValue:s,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);i(e),d(e),f(e)}),[d,f,l]),tabValues:l}}var f=n(2303);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=n(4848);function x(e){let{className:t,block:n,selectedValue:r,selectValue:s,tabValues:o}=e;const i=[],{blockElementScrollPositionUntilNextRender:u}=(0,l.a_)(),c=e=>{const t=e.currentTarget,n=i.indexOf(t),a=o[n].value;a!==r&&(u(t),s(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=i.indexOf(e.currentTarget)+1;t=i[n]??i[0];break}case"ArrowLeft":{const n=i.indexOf(e.currentTarget)-1;t=i[n]??i[i.length-1];break}}t?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.A)("tabs",{"tabs--block":n},t),children:o.map((e=>{let{value:t,label:n,attributes:l}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>i.push(e),onKeyDown:d,onClick:c,...l,className:(0,a.A)("tabs__item",v.tabItem,l?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function j(e){let{lazy:t,children:n,selectedValue:l}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===l));return e?(0,r.cloneElement)(e,{className:(0,a.A)("margin-top--md",e.props.className)}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==l})))})}function _(e){const t=b(e);return(0,g.jsxs)("div",{className:(0,a.A)("tabs-container",v.tabList),children:[(0,g.jsx)(x,{...t,...e}),(0,g.jsx)(j,{...t,...e})]})}function w(e){const t=(0,f.A)();return(0,g.jsx)(_,{...e,children:d(e.children)},String(t))}},8453:(e,t,n)=>{n.d(t,{R:()=>s,x:()=>o});var r=n(6540);const a={},l=r.createContext(a);function s(e){const t=r.useContext(l);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),r.createElement(l.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f9208490.f2bf03d7.js b/assets/js/f9208490.f2bf03d7.js deleted file mode 100644 index 1b554965e..000000000 --- a/assets/js/f9208490.f2bf03d7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[3229],{6450:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>p,frontMatter:()=>i,metadata:()=>u,toc:()=>d});var r=n(4848),a=n(8453),l=n(1470),s=n(9365);const i={title:"hdr10plus_tool",sidebar_position:11},o="hdr10plus_tool",u={id:"utilities/hdr10plus_tool",title:"hdr10plus_tool",description:"hdr10plus_tool is a command line tool written in Rust for working with HDR10+ in HEVC files. It was previously named hdr10plus_parser.",source:"@site/docs/utilities/hdr10plus_tool.mdx",sourceDirName:"utilities",slug:"/utilities/hdr10plus_tool",permalink:"/docs/utilities/hdr10plus_tool",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/hdr10plus_tool.mdx",tags:[],version:"current",sidebarPosition:11,frontMatter:{title:"hdr10plus_tool",sidebar_position:11},sidebar:"tutorialSidebar",previous:{title:"eac3to",permalink:"/docs/utilities/eac3to"},next:{title:"MP4Box",permalink:"/docs/utilities/mp4box"}},c={},d=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2},{value:"Extracting",id:"extracting",level:3},{value:"Injecting",id:"injecting",level:3},{value:"Removing HDR10+ Metadata",id:"removing-hdr10-metadata",level:3}];function h(e){const t={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",...(0,a.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.header,{children:(0,r.jsx)(t.h1,{id:"hdr10plus_tool",children:"hdr10plus_tool"})}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"hdr10plus_tool"})," is a command line tool written in Rust for working with HDR10+ in HEVC files. It was previously named ",(0,r.jsx)(t.em,{children:"hdr10plus_parser"}),"."]}),"\n",(0,r.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,r.jsxs)(l.A,{children:[(0,r.jsxs)(s.A,{value:"unixlike",label:"Linux & macOS",children:[(0,r.jsxs)(t.p,{children:["You can download official pre-built binaries for Linux & macOS from ",(0,r.jsx)(t.a,{href:"https://github.com/quietvoid/hdr10plus_tool/releases",children:"the GitHub Releases"}),", or you may compile the tool yourself via the instructions below."]}),(0,r.jsx)(t.p,{children:"Ensure you have Rust installed."}),(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",children:'git clone https://github.com/quietvoid/hdr10plus_tool.git\ncd hdr10plus_tool\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})})]}),(0,r.jsxs)(s.A,{value:"windows",label:"Windows",children:[(0,r.jsxs)(t.p,{children:["You can download official pre-built binaries for Windows from ",(0,r.jsx)(t.a,{href:"https://github.com/quietvoid/hdr10plus_tool/releases",children:"the GitHub Releases"}),", or you may compile the tool yourself via the instructions below."]}),(0,r.jsx)(t.p,{children:"Ensure you have Rust installed."}),(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-pwsh",children:"git clone https://github.com/quietvoid/hdr10plus_tool.git\ncd hdr10plus_tool\nset RUSTFLAGS=-C target-cpu=native \ncargo build --release\n"})})]})]}),"\n",(0,r.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",metastring:'title="General usage"',children:"hdr10plus_tool [OPTIONS] \n"})}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",metastring:'title="Get more options for a subcommand"',children:"hdr10plus_tool --help\n"})}),"\n",(0,r.jsx)(t.h3,{id:"extracting",children:"Extracting"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",metastring:'title="Extract using FFmpeg pipe (Recommended)"',children:"ffmpeg -hide_banner -strict -2 -i input.mkv -map 0:v:0 -c copy -vbsf hevc_mp4toannexb -f hevc - | hdr10plus_tool extract -o metadata.json -\n"})}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",metastring:'title="Extract from raw bitstream"',children:"hdr10plus_tool extract video.hevc -o metadata.json\n"})}),"\n",(0,r.jsx)(t.h3,{id:"injecting",children:"Injecting"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",metastring:'title="Inject to raw bitstream"',children:"hdr10plus_tool inject -i video.hevc -j metadata.json -o injected_output.hevc\n"})}),"\n",(0,r.jsx)(t.h3,{id:"removing-hdr10-metadata",children:"Removing HDR10+ Metadata"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",metastring:'title="Remove using FFmpeg pipe (Recommended)"',children:"ffmpeg -hide_banner -strict -2 -i input.mkv -map 0:v:0 -c copy -vbsf hevc_mp4toannexb -f hevc - | hdr10plus_tool remove -\n"})}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-bash",metastring:'title="Remove from raw bitstream"',children:"hdr10plus_tool remove video.hevc -o hdr10plus_removed_output.hevc\n"})})]})}function p(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},9365:(e,t,n)=>{n.d(t,{A:()=>s});n(6540);var r=n(4164);const a={tabItem:"tabItem_Ymn6"};var l=n(4848);function s(e){let{children:t,hidden:n,className:s}=e;return(0,l.jsx)("div",{role:"tabpanel",className:(0,r.A)(a.tabItem,s),hidden:n,children:t})}},1470:(e,t,n)=>{n.d(t,{A:()=>w});var r=n(6540),a=n(4164),l=n(3104),s=n(6347),i=n(205),o=n(7485),u=n(1682),c=n(679);function d(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:t,children:n}=e;return(0,r.useMemo)((()=>{const e=t??function(e){return d(e).map((e=>{let{props:{value:t,label:n,attributes:r,default:a}}=e;return{value:t,label:n,attributes:r,default:a}}))}(n);return function(e){const t=(0,u.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,n])}function p(e){let{value:t,tabValues:n}=e;return n.some((e=>e.value===t))}function m(e){let{queryString:t=!1,groupId:n}=e;const a=(0,s.W6)(),l=function(e){let{queryString:t=!1,groupId:n}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!n)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return n??null}({queryString:t,groupId:n});return[(0,o.aZ)(l),(0,r.useCallback)((e=>{if(!l)return;const t=new URLSearchParams(a.location.search);t.set(l,e),a.replace({...a.location,search:t.toString()})}),[l,a])]}function b(e){const{defaultValue:t,queryString:n=!1,groupId:a}=e,l=h(e),[s,o]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:n}=e;if(0===n.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!p({value:t,tabValues:n}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${n.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const r=n.find((e=>e.default))??n[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:t,tabValues:l}))),[u,d]=m({queryString:n,groupId:a}),[b,v]=function(e){let{groupId:t}=e;const n=function(e){return e?`docusaurus.tab.${e}`:null}(t),[a,l]=(0,c.Dv)(n);return[a,(0,r.useCallback)((e=>{n&&l.set(e)}),[n,l])]}({groupId:a}),f=(()=>{const e=u??b;return p({value:e,tabValues:l})?e:null})();(0,i.A)((()=>{f&&o(f)}),[f]);return{selectedValue:s,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:l}))throw new Error(`Can't select invalid tab value=${e}`);o(e),d(e),v(e)}),[d,v,l]),tabValues:l}}var v=n(2303);const f={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var g=n(4848);function x(e){let{className:t,block:n,selectedValue:r,selectValue:s,tabValues:i}=e;const o=[],{blockElementScrollPositionUntilNextRender:u}=(0,l.a_)(),c=e=>{const t=e.currentTarget,n=o.indexOf(t),a=i[n].value;a!==r&&(u(t),s(a))},d=e=>{let t=null;switch(e.key){case"Enter":c(e);break;case"ArrowRight":{const n=o.indexOf(e.currentTarget)+1;t=o[n]??o[0];break}case"ArrowLeft":{const n=o.indexOf(e.currentTarget)-1;t=o[n]??o[o.length-1];break}}t?.focus()};return(0,g.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.A)("tabs",{"tabs--block":n},t),children:i.map((e=>{let{value:t,label:n,attributes:l}=e;return(0,g.jsx)("li",{role:"tab",tabIndex:r===t?0:-1,"aria-selected":r===t,ref:e=>o.push(e),onKeyDown:d,onClick:c,...l,className:(0,a.A)("tabs__item",f.tabItem,l?.className,{"tabs__item--active":r===t}),children:n??t},t)}))})}function j(e){let{lazy:t,children:n,selectedValue:l}=e;const s=(Array.isArray(n)?n:[n]).filter(Boolean);if(t){const e=s.find((e=>e.props.value===l));return e?(0,r.cloneElement)(e,{className:(0,a.A)("margin-top--md",e.props.className)}):null}return(0,g.jsx)("div",{className:"margin-top--md",children:s.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==l})))})}function _(e){const t=b(e);return(0,g.jsxs)("div",{className:(0,a.A)("tabs-container",f.tabList),children:[(0,g.jsx)(x,{...t,...e}),(0,g.jsx)(j,{...t,...e})]})}function w(e){const t=(0,v.A)();return(0,g.jsx)(_,{...e,children:d(e.children)},String(t))}},8453:(e,t,n)=>{n.d(t,{R:()=>s,x:()=>i});var r=n(6540);const a={},l=r.createContext(a);function s(e){const t=r.useContext(l);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),r.createElement(l.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/fb02bab9.573df022.js b/assets/js/fb02bab9.573df022.js new file mode 100644 index 000000000..011199855 --- /dev/null +++ b/assets/js/fb02bab9.573df022.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5885],{7803:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>l,contentTitle:()=>a,default:()=>h,frontMatter:()=>o,metadata:()=>s,toc:()=>d});const s=JSON.parse('{"id":"filtering/stabilizing","title":"Stabilizing","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/filtering/stabilizing.mdx","sourceDirName":"filtering","slug":"/filtering/stabilizing","permalink":"/docs/filtering/stabilizing","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/stabilizing.mdx","tags":[],"version":"current","sidebarPosition":7,"frontMatter":{"title":"Stabilizing","sidebar_position":7},"sidebar":"tutorialSidebar","previous":{"title":"Decombing","permalink":"/docs/filtering/decombing"},"next":{"title":"Denoise","permalink":"/docs/filtering/denoise"}}');var n=t(4848),r=t(8453);const o={title:"Stabilizing",sidebar_position:7},a="Stabilizing",l={},d=[{value:"Overview",id:"overview",level:2},{value:"Usage",id:"usage",level:2},{value:"vidstabdetect Parameters",id:"vidstabdetect-parameters",level:3},{value:"vidstabtransform Parameters",id:"vidstabtransform-parameters",level:3},{value:"Notes",id:"notes",level:2}];function c(e){const i={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"stabilizing",children:"Stabilizing"})}),"\n",(0,n.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsx)(i.h2,{id:"overview",children:"Overview"}),"\n",(0,n.jsxs)(i.p,{children:["Stabilizing is the process of reducing unwanted camera movement and shakes in video clips using ",(0,n.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),". This improves overall encoding efficiency by minimizing unpredictable global movement, such as that from handheld cameras. The recommended method for stabilizing videos with FFmpeg is to use the VidStab library, which requires a build of FFmpeg compiled with ",(0,n.jsx)(i.code,{children:"--enable-libvidstab"}),"."]}),"\n",(0,n.jsx)(i.p,{children:"VidStab offers two filters within FFmpeg:"}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-shell",children:"ffmpeg -hide_banner -filters | grep vidstab\n ... vidstabdetect V->V Extract relative transformations, pass 1 of 2 for stabilization (see vidstabtransform for pass 2).\n ... vidstabtransform V->V Transform the frames, pass 2 of 2 for stabilization (see vidstabdetect for pass 1).\n"})}),"\n",(0,n.jsxs)(i.p,{children:["The ",(0,n.jsx)(i.code,{children:"vidstabdetect"})," filter is used in the first pass to generate a video transformations file (",(0,n.jsx)(i.code,{children:".trf"}),"), while ",(0,n.jsx)(i.code,{children:"vidstabtransform"})," is employed in the second pass to apply those transformations."]}),"\n",(0,n.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsx)(i.p,{children:"To stabilize a video using default parameters, follow these two steps:"}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-shell",children:"ffmpeg -i input.mp4 -vf vidstabdetect -f null -\nffmpeg -i input.mp4 -vf vidstabtransform output.mp4\n"})}),"\n",(0,n.jsxs)(i.p,{children:["After running the first command, a ",(0,n.jsx)(i.code,{children:"transforms.trf"})," file will be created in the directory where you executed FFmpeg. Once the stabilization process is complete, you can safely delete this file. The resulting ",(0,n.jsx)(i.code,{children:"output.mp4"})," video will have reduced shakiness."]}),"\n",(0,n.jsx)(i.p,{children:"For stabilizing high-framerate videos with strong camera movement:"}),"\n",(0,n.jsx)(i.pre,{children:(0,n.jsx)(i.code,{className:"language-shell",children:"ffmpeg -i input.mp4 -vf vidstabdetect=shakiness=8:result=a.trf -f null -\nffmpeg -i input.mp4 -vf vidstabtransform=smoothing=30:zoom=-5:input=a.trf output.mp4\n"})}),"\n",(0,n.jsx)(i.admonition,{type:"tip",children:(0,n.jsxs)(i.p,{children:["Remember to set appropriate video/audio codec parameters in the command before ",(0,n.jsx)(i.code,{children:"output.mp4"}),". You must not use ",(0,n.jsx)(i.code,{children:"-c:v copy"}),", as the video will undergo transformations."]})}),"\n",(0,n.jsx)(i.h3,{id:"vidstabdetect-parameters",children:"vidstabdetect Parameters"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.code,{children:"result"})," - Sets the output ",(0,n.jsx)(i.code,{children:".trf"})," file location"]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.code,{children:"shakiness"})," - Adjusts movement reduction, with ",(0,n.jsx)(i.code,{children:"1"})," being the least and ",(0,n.jsx)(i.code,{children:"10"})," the most reduction (highest stabilization). Default is ",(0,n.jsx)(i.code,{children:"5"}),"."]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.code,{children:"accuracy"})," - Controls movement reduction accuracy. Lower values use less CPU but may be less accurate. FFmpeg's minimum allowed value is ",(0,n.jsx)(i.code,{children:"3"}),". Processing speed was approximately ",(0,n.jsx)(i.code,{children:"21 fps"})," at ",(0,n.jsx)(i.code,{children:"3"})," and ",(0,n.jsx)(i.code,{children:"14 fps"})," at ",(0,n.jsx)(i.code,{children:"15"}),"."]}),"\n"]}),"\n",(0,n.jsxs)(i.p,{children:["For a complete list of parameters, refer to the ",(0,n.jsx)(i.a,{href:"https://ffmpeg.org/ffmpeg-filters.html#vidstabdetect-1",children:"vidstabdetect documentation"}),"."]}),"\n",(0,n.jsx)(i.h3,{id:"vidstabtransform-parameters",children:"vidstabtransform Parameters"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.code,{children:"input"})," - Specifies the input ",(0,n.jsx)(i.code,{children:".trf"})," file created by ",(0,n.jsx)(i.code,{children:"vidstabdetect"})]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.code,{children:"smoothing"})," - Determines the number of frames considered for future and past movement estimation. Default is ",(0,n.jsx)(i.code,{children:"10"}),"."]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.code,{children:"zoom"})," - Adjusts the zoom percentage, with ",(0,n.jsx)(i.code,{children:"0%"})," being the default. Negative values create a zoom-out effect."]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.code,{children:"interpol"})," - Sets the type of interpolation used:","\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.code,{children:"no"})," - No interpolation"]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.code,{children:"linear"})," - Only horizontal"]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.code,{children:"bilinear"})," - Faster but may result in blurry output (default)"]}),"\n",(0,n.jsxs)(i.li,{children:[(0,n.jsx)(i.code,{children:"bicubic"})," - Slower"]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,n.jsxs)(i.p,{children:["See the ",(0,n.jsx)(i.a,{href:"https://ffmpeg.org/ffmpeg-filters.html#vidstabtransform-1",children:"vidstabtransform documentation"})," for more details."]}),"\n",(0,n.jsx)(i.h2,{id:"notes",children:"Notes"}),"\n",(0,n.jsxs)(i.ul,{children:["\n",(0,n.jsx)(i.li,{children:"Stabilization is a lossy process that can reduce video quality due to zoom and interpolation effects."}),"\n",(0,n.jsx)(i.li,{children:"Some users may notice overall wobbliness in stabilized videos, especially at higher stabilization levels. This is an inherent characteristic of this filter."}),"\n",(0,n.jsx)(i.li,{children:"Depending on your use case, consider employing two-pass encoding along with these stabilization steps."}),"\n"]})]})}function h(e={}){const{wrapper:i}={...(0,r.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(c,{...e})}):c(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>o,x:()=>a});var s=t(6540);const n={},r=s.createContext(n);function o(e){const i=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:o(e.components),s.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/fb02bab9.88092581.js b/assets/js/fb02bab9.88092581.js deleted file mode 100644 index c9a99eec6..000000000 --- a/assets/js/fb02bab9.88092581.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5885],{5190:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>r,metadata:()=>a,toc:()=>l});var s=t(4848),n=t(8453);const r={title:"Stabilizing",sidebar_position:7},o="Stabilizing",a={id:"filtering/stabilizing",title:"Stabilizing",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/filtering/stabilizing.mdx",sourceDirName:"filtering",slug:"/filtering/stabilizing",permalink:"/docs/filtering/stabilizing",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/stabilizing.mdx",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"Stabilizing",sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"Decombing",permalink:"/docs/filtering/decombing"},next:{title:"Denoise",permalink:"/docs/filtering/denoise"}},d={},l=[{value:"Overview",id:"overview",level:2},{value:"Usage",id:"usage",level:2},{value:"vidstabdetect Parameters",id:"vidstabdetect-parameters",level:3},{value:"vidstabtransform Parameters",id:"vidstabtransform-parameters",level:3},{value:"Notes",id:"notes",level:2}];function c(e){const i={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,n.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"stabilizing",children:"Stabilizing"})}),"\n",(0,s.jsx)(i.admonition,{title:"Help Wanted",type:"danger",children:(0,s.jsxs)(i.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,s.jsx)(i.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,s.jsx)(i.h2,{id:"overview",children:"Overview"}),"\n",(0,s.jsxs)(i.p,{children:["Stabilizing is the process of reducing unwanted camera movement and shakes in video clips using ",(0,s.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),". This improves overall encoding efficiency by minimizing unpredictable global movement, such as that from handheld cameras. The recommended method for stabilizing videos with FFmpeg is to use the VidStab library, which requires a build of FFmpeg compiled with ",(0,s.jsx)(i.code,{children:"--enable-libvidstab"}),"."]}),"\n",(0,s.jsx)(i.p,{children:"VidStab offers two filters within FFmpeg:"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-shell",children:"ffmpeg -hide_banner -filters | grep vidstab\n ... vidstabdetect V->V Extract relative transformations, pass 1 of 2 for stabilization (see vidstabtransform for pass 2).\n ... vidstabtransform V->V Transform the frames, pass 2 of 2 for stabilization (see vidstabdetect for pass 1).\n"})}),"\n",(0,s.jsxs)(i.p,{children:["The ",(0,s.jsx)(i.code,{children:"vidstabdetect"})," filter is used in the first pass to generate a video transformations file (",(0,s.jsx)(i.code,{children:".trf"}),"), while ",(0,s.jsx)(i.code,{children:"vidstabtransform"})," is employed in the second pass to apply those transformations."]}),"\n",(0,s.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(i.p,{children:"To stabilize a video using default parameters, follow these two steps:"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-shell",children:"ffmpeg -i input.mp4 -vf vidstabdetect -f null -\nffmpeg -i input.mp4 -vf vidstabtransform output.mp4\n"})}),"\n",(0,s.jsxs)(i.p,{children:["After running the first command, a ",(0,s.jsx)(i.code,{children:"transforms.trf"})," file will be created in the directory where you executed FFmpeg. Once the stabilization process is complete, you can safely delete this file. The resulting ",(0,s.jsx)(i.code,{children:"output.mp4"})," video will have reduced shakiness."]}),"\n",(0,s.jsx)(i.p,{children:"For stabilizing high-framerate videos with strong camera movement:"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{className:"language-shell",children:"ffmpeg -i input.mp4 -vf vidstabdetect=shakiness=8:result=a.trf -f null -\nffmpeg -i input.mp4 -vf vidstabtransform=smoothing=30:zoom=-5:input=a.trf output.mp4\n"})}),"\n",(0,s.jsx)(i.admonition,{type:"tip",children:(0,s.jsxs)(i.p,{children:["Remember to set appropriate video/audio codec parameters in the command before ",(0,s.jsx)(i.code,{children:"output.mp4"}),". You must not use ",(0,s.jsx)(i.code,{children:"-c:v copy"}),", as the video will undergo transformations."]})}),"\n",(0,s.jsx)(i.h3,{id:"vidstabdetect-parameters",children:"vidstabdetect Parameters"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"result"})," - Sets the output ",(0,s.jsx)(i.code,{children:".trf"})," file location"]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"shakiness"})," - Adjusts movement reduction, with ",(0,s.jsx)(i.code,{children:"1"})," being the least and ",(0,s.jsx)(i.code,{children:"10"})," the most reduction (highest stabilization). Default is ",(0,s.jsx)(i.code,{children:"5"}),"."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"accuracy"})," - Controls movement reduction accuracy. Lower values use less CPU but may be less accurate. FFmpeg's minimum allowed value is ",(0,s.jsx)(i.code,{children:"3"}),". Processing speed was approximately ",(0,s.jsx)(i.code,{children:"21 fps"})," at ",(0,s.jsx)(i.code,{children:"3"})," and ",(0,s.jsx)(i.code,{children:"14 fps"})," at ",(0,s.jsx)(i.code,{children:"15"}),"."]}),"\n"]}),"\n",(0,s.jsxs)(i.p,{children:["For a complete list of parameters, refer to the ",(0,s.jsx)(i.a,{href:"https://ffmpeg.org/ffmpeg-filters.html#vidstabdetect-1",children:"vidstabdetect documentation"}),"."]}),"\n",(0,s.jsx)(i.h3,{id:"vidstabtransform-parameters",children:"vidstabtransform Parameters"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"input"})," - Specifies the input ",(0,s.jsx)(i.code,{children:".trf"})," file created by ",(0,s.jsx)(i.code,{children:"vidstabdetect"})]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"smoothing"})," - Determines the number of frames considered for future and past movement estimation. Default is ",(0,s.jsx)(i.code,{children:"10"}),"."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"zoom"})," - Adjusts the zoom percentage, with ",(0,s.jsx)(i.code,{children:"0%"})," being the default. Negative values create a zoom-out effect."]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"interpol"})," - Sets the type of interpolation used:","\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"no"})," - No interpolation"]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"linear"})," - Only horizontal"]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"bilinear"})," - Faster but may result in blurry output (default)"]}),"\n",(0,s.jsxs)(i.li,{children:[(0,s.jsx)(i.code,{children:"bicubic"})," - Slower"]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,s.jsxs)(i.p,{children:["See the ",(0,s.jsx)(i.a,{href:"https://ffmpeg.org/ffmpeg-filters.html#vidstabtransform-1",children:"vidstabtransform documentation"})," for more details."]}),"\n",(0,s.jsx)(i.h2,{id:"notes",children:"Notes"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Stabilization is a lossy process that can reduce video quality due to zoom and interpolation effects."}),"\n",(0,s.jsx)(i.li,{children:"Some users may notice overall wobbliness in stabilized videos, especially at higher stabilization levels. This is an inherent characteristic of this filter."}),"\n",(0,s.jsx)(i.li,{children:"Depending on your use case, consider employing two-pass encoding along with these stabilization steps."}),"\n"]})]})}function h(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>o,x:()=>a});var s=t(6540);const n={},r=s.createContext(n);function o(e){const i=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:o(e.components),s.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/fda0af90.0cdab8f6.js b/assets/js/fda0af90.0cdab8f6.js new file mode 100644 index 000000000..b8c9af810 --- /dev/null +++ b/assets/js/fda0af90.0cdab8f6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5376],{4616:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>o,contentTitle:()=>a,default:()=>h,frontMatter:()=>l,metadata:()=>s,toc:()=>d});const s=JSON.parse('{"id":"colorimetry/primaries","title":"Color Primaries","description":"This section details the first of three settings that are important","source":"@site/docs/colorimetry/primaries.mdx","sourceDirName":"colorimetry","slug":"/colorimetry/primaries","permalink":"/docs/colorimetry/primaries","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/colorimetry/primaries.mdx","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"title":"Color Primaries","sidebar_position":4},"sidebar":"tutorialSidebar","previous":{"title":"Color Range","permalink":"/docs/colorimetry/range"},"next":{"title":"Transfer Characteristics","permalink":"/docs/colorimetry/transfer"}}');var t=n(4848),r=n(8453);const l={title:"Color Primaries",sidebar_position:4},a="Color Primaries",o={},d=[{value:"1: BT.709",id:"1-bt709",level:3},{value:"2: Unspecified",id:"2-unspecified",level:3},{value:"4: BT.470M",id:"4-bt470m",level:3},{value:"5: BT.470BG",id:"5-bt470bg",level:3},{value:"6: SMPTE 170M",id:"6-smpte-170m",level:3},{value:"7: SMPTE 240M",id:"7-smpte-240m",level:3},{value:"8: Film",id:"8-film",level:3},{value:"9: BT.2020",id:"9-bt2020",level:3},{value:"10: SMPTE 428",id:"10-smpte-428",level:3},{value:"11: DCI-P3",id:"11-dci-p3",level:3},{value:"12: Display-P3",id:"12-display-p3",level:3},{value:"22: EBU Tech 3213",id:"22-ebu-tech-3213",level:3}];function c(e){const i={a:"a",code:"code",h1:"h1",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"color-primaries",children:"Color Primaries"})}),"\n",(0,t.jsx)(i.p,{children:"This section details the first of three settings that are important\nfor retaining accurate color when encoding videos, those settings\nbeing primaries, color matrix, and transfer characteristics."}),"\n",(0,t.jsxs)(i.p,{children:["Color primaries are used to indicate the correct coordinates for the\nred, blue, and green colors. There are historical reasons for\n",(0,t.jsx)(i.a,{href:"https://xkcd.com/927/",children:"why so many standards exist"}),", and this guide\nwill not go in depth into history lessons, but will explain what\nprimaries are available and when to use each one."]}),"\n",(0,t.jsxs)(i.p,{children:["Note that for primaries, matrices, and transfer, you can view the values\nthat are set on a video using a tool like ",(0,t.jsx)(i.a,{href:"https://mediaarea.net/en/MediaInfo",children:"MediaInfo"}),".\nIf there are no values set, the player will need to guess which values\nto use. A safe default assumption for most modern videos is BT.709,\nalthough this may vary depending on source and resolution for the video.\nIt is strongly recommended to set the correct values when encoding."]}),"\n",(0,t.jsx)(i.p,{children:"Each setting has at least one name and exactly one integer value\nrepresenting it--most encoder softwares will accept one or more of the names,\nbut some tooling such as Vapoursynth and MKVToolnix accepts the integer values\ninstead. The integer values are defined within universal specifications,\nand as such they will be the same across all encoding and playback tools."}),"\n",(0,t.jsx)(i.h3,{id:"1-bt709",children:"1: BT.709"}),"\n",(0,t.jsx)(i.p,{children:"BT.709 is the standard used for modern high-definition video, and is a safe default assumption."}),"\n",(0,t.jsx)(i.p,{children:"This color primary setting is used in the following standards:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.709-6"}),"\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.1361-0 conventional colour gamut\nsystem and extended colour gamut system (historical)"}),"\n",(0,t.jsx)(i.li,{children:"IEC 61966-2-1 sRGB or sYCC"}),"\n",(0,t.jsx)(i.li,{children:"IEC 61966-2-4"}),"\n",(0,t.jsx)(i.li,{children:"Society of Motion Picture and Television Engineers\n(SMPTE) RP 177 (1993) Annex B"}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"2-unspecified",children:"2: Unspecified"}),"\n",(0,t.jsx)(i.p,{children:"This value indicates that no color primary is set for the video, and the player must decide which value to use."}),"\n",(0,t.jsx)(i.p,{children:"mpv will use the following heuristics in this case:"}),"\n",(0,t.jsx)(i.pre,{children:(0,t.jsx)(i.code,{children:'if matrix == "BT.2020" {\n "BT.2020"\n} else if matrix == "BT.709" {\n "BT.709"\n} else if width >= 1280 || height > 576 {\n "BT.709"\n} else if height == 576 {\n "BT.470BG"\n} else if height == 480 || height == 488 {\n "SMPTE 170M"\n} else {\n "BT.709"\n}\n'})}),"\n",(0,t.jsx)(i.h3,{id:"4-bt470m",children:"4: BT.470M"}),"\n",(0,t.jsx)(i.p,{children:"BT.470M is a standard that was used in analog television systems in the United States."}),"\n",(0,t.jsx)(i.p,{children:"This color primary setting is used in the following standards:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.470-6 System M (historical)"}),"\n",(0,t.jsx)(i.li,{children:"United States National Television System Committee\n1953 Recommendation for transmission standards for\ncolor television"}),"\n",(0,t.jsx)(i.li,{children:"United States Federal Communications Commission\n(2003) Title 47 Code of Federal Regulations 73.682 (a) (20)"}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"5-bt470bg",children:"5: BT.470BG"}),"\n",(0,t.jsx)(i.p,{children:"BT.470BG is a standard that was used for European (PAL) television systems and DVDs."}),"\n",(0,t.jsx)(i.p,{children:"This color primary setting is used in the following standards:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.470-6 System B, G (historical)"}),"\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.601-7 625"}),"\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.1358-0 625 (historical)"}),"\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.1700-0 625 PAL and 625 SECAM"}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"6-smpte-170m",children:"6: SMPTE 170M"}),"\n",(0,t.jsx)(i.p,{children:"SMPTE 170M is a standard that was used for NTSC television systems and DVDs."}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.601-7 525"}),"\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.1358-1 525 or 625 (historical)"}),"\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.1700-0 NTSC"}),"\n",(0,t.jsx)(i.li,{children:"SMPTE ST 170 (2004)"}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"7-smpte-240m",children:"7: SMPTE 240M"}),"\n",(0,t.jsx)(i.p,{children:"SMPTE 240M was an interim standard used during the early days of HDTV (1988-1998). Its primaries are equivalent to SMPTE 170M."}),"\n",(0,t.jsx)(i.h3,{id:"8-film",children:"8: Film"}),"\n",(0,t.jsx)(i.p,{children:"This represents generic film using Illuminant C."}),"\n",(0,t.jsx)(i.h3,{id:"9-bt2020",children:"9: BT.2020"}),"\n",(0,t.jsx)(i.p,{children:"BT.2020 is a standard used for ultra-high-definition video, i.e. 4K and higher. It may be used with or without HDR, as HDR is defined by the transfer characteristics."}),"\n",(0,t.jsx)(i.p,{children:"This color primary setting is used in the following standards:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.2020-2"}),"\n",(0,t.jsx)(i.li,{children:"Rec. ITU-R BT.2100-2"}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"10-smpte-428",children:"10: SMPTE 428"}),"\n",(0,t.jsx)(i.p,{children:"SMPTE 428 is used for D-Cinema Distribution Masters, aka DCDM."}),"\n",(0,t.jsx)(i.p,{children:"This color primary setting is used in the following standards:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"SMPTE ST 428-1 (2019)"}),"\n",(0,t.jsx)(i.li,{children:"(CIE 1931 XYZ as in ISO 11664-1)"}),"\n"]}),"\n",(0,t.jsx)(i.h3,{id:"11-dci-p3",children:"11: DCI-P3"}),"\n",(0,t.jsx)(i.p,{children:"DCI-P3 is a wide-gamut colorspace used alongside RGB. It is used internally by most HDR monitors on the market."}),"\n",(0,t.jsx)(i.h3,{id:"12-display-p3",children:"12: Display-P3"}),"\n",(0,t.jsx)(i.p,{children:"Display-P3 is a variant of DCI-P3 developed by Apple because they wanted to be different."}),"\n",(0,t.jsx)(i.h3,{id:"22-ebu-tech-3213",children:"22: EBU Tech 3213"}),"\n",(0,t.jsx)(i.p,{children:"Nobody really knows what this is."})]})}function h(e={}){const{wrapper:i}={...(0,r.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>l,x:()=>a});var s=n(6540);const t={},r=s.createContext(t);function l(e){const i=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/fda0af90.cf56670d.js b/assets/js/fda0af90.cf56670d.js deleted file mode 100644 index b285b6950..000000000 --- a/assets/js/fda0af90.cf56670d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5376],{7615:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>o,contentTitle:()=>l,default:()=>h,frontMatter:()=>r,metadata:()=>a,toc:()=>d});var s=n(4848),t=n(8453);const r={title:"Color Primaries",sidebar_position:4},l="Color Primaries",a={id:"colorimetry/primaries",title:"Color Primaries",description:"This section details the first of three settings that are important",source:"@site/docs/colorimetry/primaries.mdx",sourceDirName:"colorimetry",slug:"/colorimetry/primaries",permalink:"/docs/colorimetry/primaries",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/colorimetry/primaries.mdx",tags:[],version:"current",sidebarPosition:4,frontMatter:{title:"Color Primaries",sidebar_position:4},sidebar:"tutorialSidebar",previous:{title:"Color Range",permalink:"/docs/colorimetry/range"},next:{title:"Transfer Characteristics",permalink:"/docs/colorimetry/transfer"}},o={},d=[{value:"1: BT.709",id:"1-bt709",level:3},{value:"2: Unspecified",id:"2-unspecified",level:3},{value:"4: BT.470M",id:"4-bt470m",level:3},{value:"5: BT.470BG",id:"5-bt470bg",level:3},{value:"6: SMPTE 170M",id:"6-smpte-170m",level:3},{value:"7: SMPTE 240M",id:"7-smpte-240m",level:3},{value:"8: Film",id:"8-film",level:3},{value:"9: BT.2020",id:"9-bt2020",level:3},{value:"10: SMPTE 428",id:"10-smpte-428",level:3},{value:"11: DCI-P3",id:"11-dci-p3",level:3},{value:"12: Display-P3",id:"12-display-p3",level:3},{value:"22: EBU Tech 3213",id:"22-ebu-tech-3213",level:3}];function c(e){const i={a:"a",code:"code",h1:"h1",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"color-primaries",children:"Color Primaries"})}),"\n",(0,s.jsx)(i.p,{children:"This section details the first of three settings that are important\nfor retaining accurate color when encoding videos, those settings\nbeing primaries, color matrix, and transfer characteristics."}),"\n",(0,s.jsxs)(i.p,{children:["Color primaries are used to indicate the correct coordinates for the\nred, blue, and green colors. There are historical reasons for\n",(0,s.jsx)(i.a,{href:"https://xkcd.com/927/",children:"why so many standards exist"}),", and this guide\nwill not go in depth into history lessons, but will explain what\nprimaries are available and when to use each one."]}),"\n",(0,s.jsxs)(i.p,{children:["Note that for primaries, matrices, and transfer, you can view the values\nthat are set on a video using a tool like ",(0,s.jsx)(i.a,{href:"https://mediaarea.net/en/MediaInfo",children:"MediaInfo"}),".\nIf there are no values set, the player will need to guess which values\nto use. A safe default assumption for most modern videos is BT.709,\nalthough this may vary depending on source and resolution for the video.\nIt is strongly recommended to set the correct values when encoding."]}),"\n",(0,s.jsx)(i.p,{children:"Each setting has at least one name and exactly one integer value\nrepresenting it--most encoder softwares will accept one or more of the names,\nbut some tooling such as Vapoursynth and MKVToolnix accepts the integer values\ninstead. The integer values are defined within universal specifications,\nand as such they will be the same across all encoding and playback tools."}),"\n",(0,s.jsx)(i.h3,{id:"1-bt709",children:"1: BT.709"}),"\n",(0,s.jsx)(i.p,{children:"BT.709 is the standard used for modern high-definition video, and is a safe default assumption."}),"\n",(0,s.jsx)(i.p,{children:"This color primary setting is used in the following standards:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.709-6"}),"\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.1361-0 conventional colour gamut\nsystem and extended colour gamut system (historical)"}),"\n",(0,s.jsx)(i.li,{children:"IEC 61966-2-1 sRGB or sYCC"}),"\n",(0,s.jsx)(i.li,{children:"IEC 61966-2-4"}),"\n",(0,s.jsx)(i.li,{children:"Society of Motion Picture and Television Engineers\n(SMPTE) RP 177 (1993) Annex B"}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"2-unspecified",children:"2: Unspecified"}),"\n",(0,s.jsx)(i.p,{children:"This value indicates that no color primary is set for the video, and the player must decide which value to use."}),"\n",(0,s.jsx)(i.p,{children:"mpv will use the following heuristics in this case:"}),"\n",(0,s.jsx)(i.pre,{children:(0,s.jsx)(i.code,{children:'if matrix == "BT.2020" {\n "BT.2020"\n} else if matrix == "BT.709" {\n "BT.709"\n} else if width >= 1280 || height > 576 {\n "BT.709"\n} else if height == 576 {\n "BT.470BG"\n} else if height == 480 || height == 488 {\n "SMPTE 170M"\n} else {\n "BT.709"\n}\n'})}),"\n",(0,s.jsx)(i.h3,{id:"4-bt470m",children:"4: BT.470M"}),"\n",(0,s.jsx)(i.p,{children:"BT.470M is a standard that was used in analog television systems in the United States."}),"\n",(0,s.jsx)(i.p,{children:"This color primary setting is used in the following standards:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.470-6 System M (historical)"}),"\n",(0,s.jsx)(i.li,{children:"United States National Television System Committee\n1953 Recommendation for transmission standards for\ncolor television"}),"\n",(0,s.jsx)(i.li,{children:"United States Federal Communications Commission\n(2003) Title 47 Code of Federal Regulations 73.682 (a) (20)"}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"5-bt470bg",children:"5: BT.470BG"}),"\n",(0,s.jsx)(i.p,{children:"BT.470BG is a standard that was used for European (PAL) television systems and DVDs."}),"\n",(0,s.jsx)(i.p,{children:"This color primary setting is used in the following standards:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.470-6 System B, G (historical)"}),"\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.601-7 625"}),"\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.1358-0 625 (historical)"}),"\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.1700-0 625 PAL and 625 SECAM"}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"6-smpte-170m",children:"6: SMPTE 170M"}),"\n",(0,s.jsx)(i.p,{children:"SMPTE 170M is a standard that was used for NTSC television systems and DVDs."}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.601-7 525"}),"\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.1358-1 525 or 625 (historical)"}),"\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.1700-0 NTSC"}),"\n",(0,s.jsx)(i.li,{children:"SMPTE ST 170 (2004)"}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"7-smpte-240m",children:"7: SMPTE 240M"}),"\n",(0,s.jsx)(i.p,{children:"SMPTE 240M was an interim standard used during the early days of HDTV (1988-1998). Its primaries are equivalent to SMPTE 170M."}),"\n",(0,s.jsx)(i.h3,{id:"8-film",children:"8: Film"}),"\n",(0,s.jsx)(i.p,{children:"This represents generic film using Illuminant C."}),"\n",(0,s.jsx)(i.h3,{id:"9-bt2020",children:"9: BT.2020"}),"\n",(0,s.jsx)(i.p,{children:"BT.2020 is a standard used for ultra-high-definition video, i.e. 4K and higher. It may be used with or without HDR, as HDR is defined by the transfer characteristics."}),"\n",(0,s.jsx)(i.p,{children:"This color primary setting is used in the following standards:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.2020-2"}),"\n",(0,s.jsx)(i.li,{children:"Rec. ITU-R BT.2100-2"}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"10-smpte-428",children:"10: SMPTE 428"}),"\n",(0,s.jsx)(i.p,{children:"SMPTE 428 is used for D-Cinema Distribution Masters, aka DCDM."}),"\n",(0,s.jsx)(i.p,{children:"This color primary setting is used in the following standards:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"SMPTE ST 428-1 (2019)"}),"\n",(0,s.jsx)(i.li,{children:"(CIE 1931 XYZ as in ISO 11664-1)"}),"\n"]}),"\n",(0,s.jsx)(i.h3,{id:"11-dci-p3",children:"11: DCI-P3"}),"\n",(0,s.jsx)(i.p,{children:"DCI-P3 is a wide-gamut colorspace used alongside RGB. It is used internally by most HDR monitors on the market."}),"\n",(0,s.jsx)(i.h3,{id:"12-display-p3",children:"12: Display-P3"}),"\n",(0,s.jsx)(i.p,{children:"Display-P3 is a variant of DCI-P3 developed by Apple because they wanted to be different."}),"\n",(0,s.jsx)(i.h3,{id:"22-ebu-tech-3213",children:"22: EBU Tech 3213"}),"\n",(0,s.jsx)(i.p,{children:"Nobody really knows what this is."})]})}function h(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(c,{...e})}):c(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>l,x:()=>a});var s=n(6540);const t={},r=s.createContext(t);function l(e){const i=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:l(e.components),s.createElement(r.Provider,{value:i},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/main.0d7a5f66.js b/assets/js/main.0d7a5f66.js deleted file mode 100644 index dccd1f010..000000000 --- a/assets/js/main.0d7a5f66.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see main.0d7a5f66.js.LICENSE.txt */ -(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8792],{5391:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;to});const o=function(){for(var e,t,n=0,o="";n{"use strict";n.d(t,{A:()=>p});n(6540);var r=n(3259),o=n.n(r),a=n(4054);const i={"0058b4c6":[()=>n.e(849).then(n.t.bind(n,6164,19)),"@generated/docusaurus-plugin-content-docs/default/p/docs-175.json",6164],"0092d9fd":[()=>n.e(9057).then(n.bind(n,3372)),"@site/docs/audio/FLAC.mdx",3372],"015d9d66":[()=>n.e(4598).then(n.bind(n,1854)),"@site/docs/metrics/PSNR.mdx",1854],"01a85c17":[()=>Promise.all([n.e(1869),n.e(8209)]).then(n.bind(n,9158)),"@theme/BlogTagsListPage",9158],"03af419f":[()=>Promise.all([n.e(1869),n.e(9305)]).then(n.bind(n,1865)),"@site/docs/encoders/VVenC.mdx",1865],"03e95fdf":[()=>n.e(3485).then(n.bind(n,1789)),"@site/docs/video/VP8.mdx",1789],"04dda763":[()=>n.e(6778).then(n.bind(n,3763)),"@site/blog/2024-06-24-av1-for-dummies-2.mdx",3763],"059e36ab":[()=>n.e(6838).then(n.bind(n,6587)),"@site/docs/video/utvideo.mdx",6587],"06ed4e86":[()=>n.e(8161).then(n.bind(n,3514)),"@site/docs/audio/Dolby.mdx",3514],"09a8bfdb":[()=>n.e(5579).then(n.bind(n,4070)),"@site/blog/2023-10-29-embedding-the-un-embeddable copy.mdx",4070],"09bc817a":[()=>n.e(1554).then(n.bind(n,5811)),"@site/docs/audio/Opus.mdx",5811],"0b185270":[()=>n.e(3482).then(n.bind(n,455)),"@site/docs/FAQ.mdx",455],"0c06159a":[()=>n.e(8258).then(n.bind(n,1339)),"@site/docs/data/tar.mdx",1339],"0e7f53a8":[()=>n.e(9954).then(n.bind(n,929)),"@site/docs/images/PNG.mdx",929],"112763a5":[()=>n.e(1779).then(n.bind(n,5836)),"@site/docs/terms-of-use.mdx",5836],"12b076f3":[()=>n.e(7222).then(n.bind(n,9905)),"@site/docs/data/zstd.mdx",9905],"12df3b9e":[()=>n.e(9993).then(n.bind(n,1793)),"@site/docs/images/QOI.mdx",1793],"138e0e15":[()=>n.e(4921).then(n.t.bind(n,1597,19)),"@generated/@easyops-cn/docusaurus-search-local/default/__plugin.json",1597],17896441:[()=>Promise.all([n.e(1869),n.e(8498),n.e(8401)]).then(n.bind(n,575)),"@theme/DocItem",575],"1817a557":[()=>n.e(6738).then(n.bind(n,6118)),"@site/docs/introduction/lossless.mdx",6118],"1a4e3797":[()=>Promise.all([n.e(1869),n.e(2138)]).then(n.bind(n,1283)),"@theme/SearchPage",1283],"1b67d0f3":[()=>n.e(842).then(n.bind(n,4476)),"@site/docs/data/gzip.mdx",4476],"1ca2b1db":[()=>n.e(7855).then(n.bind(n,9073)),"@site/docs/encoders_hw/mediacodec.mdx",9073],"1e5c3f00":[()=>n.e(9486).then(n.bind(n,3585)),"@site/blog/2024-07-20-codec-wiki-one-year-later.mdx",3585],"1ec3ce74":[()=>Promise.all([n.e(1869),n.e(2142)]).then(n.bind(n,5780)),"@site/docs/encoders/rav1e.mdx",5780],"1f391b9e":[()=>Promise.all([n.e(1869),n.e(8498),n.e(6061)]).then(n.bind(n,7973)),"@theme/MDXPage",7973],"1fabe0bd":[()=>n.e(5562).then(n.bind(n,3315)),"@site/docs/colorimetry/intro.mdx",3315],"20d769d8":[()=>n.e(3121).then(n.bind(n,7114)),"@site/blog/2023-10-29-embedding-the-un-embeddable copy.mdx?truncated=true",7114],"229f7513":[()=>n.e(7146).then(n.bind(n,4153)),"@site/docs/subtitles/webvtt.mdx",4153],"28bd9d7a":[()=>n.e(888).then(n.bind(n,1849)),"@site/docs/utilities/FFMetrics.mdx",1849],"299beccc":[()=>n.e(5479).then(n.bind(n,1531)),"@site/docs/data/7z.mdx",1531],"2d25ac87":[()=>n.e(5949).then(n.bind(n,822)),"@site/docs/utilities/autocompressor.mdx",822],"2e23a845":[()=>Promise.all([n.e(1869),n.e(5147)]).then(n.bind(n,2914)),"@site/docs/encoders/SVT-AV1-PSY.mdx",2914],"2fcb10cd":[()=>n.e(8158).then(n.bind(n,1162)),"@site/docs/audio/intro.mdx",1162],"318608aa":[()=>Promise.all([n.e(1869),n.e(6003)]).then(n.bind(n,3187)),"@site/docs/encoders/vpxenc.mdx",3187],32987299:[()=>n.e(7754).then(n.bind(n,5029)),"@site/docs/filtering/vapoursynth.mdx",5029],"345ef4f9":[()=>n.e(6509).then(n.bind(n,5389)),"@site/docs/utilities/MKVToolNix.mdx",5389],"36994c47":[()=>n.e(9858).then(n.t.bind(n,5516,19)),"@generated/docusaurus-plugin-content-blog/default/__plugin.json",5516],"37c719d6":[()=>Promise.all([n.e(6256),n.e(1227)]).then(n.bind(n,1800)),"@site/blog/2024-05-19-svt-av1-deep-dive2-v2-1-0.mdx",1800],"3a2db09e":[()=>n.e(8121).then(n.t.bind(n,8070,19)),"@generated/docusaurus-plugin-content-blog/default/p/blog-tags-df9.json",8070],"3d6cf458":[()=>n.e(2614).then(n.bind(n,6396)),"@site/docs/video/VC-1.mdx",6396],"43624f55":[()=>n.e(7844).then(n.bind(n,3676)),"@site/docs/filtering/ivtc.mdx",3676],"44e37655":[()=>Promise.all([n.e(1869),n.e(5958)]).then(n.bind(n,6147)),"@site/docs/metrics/SSIMULACRA2.mdx",6147],"45f4020c":[()=>n.e(4897).then(n.bind(n,9493)),"@site/docs/encoders_hw/videotoolbox.mdx",9493],"467a109f":[()=>n.e(7431).then(n.t.bind(n,891,19)),"@generated/docusaurus-plugin-content-blog/default/p/blog-tags-benchmarks-180.json",891],"48b7ca01":[()=>Promise.all([n.e(6256),n.e(1347)]).then(n.bind(n,9350)),"@site/blog/2023-12-30-svt-av1-deep-dive.mdx?truncated=true",9350],"49b64d14":[()=>Promise.all([n.e(1869),n.e(5993)]).then(n.bind(n,4493)),"@site/docs/encoders/SVT-AV1.mdx",4493],"4c678320":[()=>n.e(9664).then(n.bind(n,2051)),"@site/src/pages/markdown-page.mdx",2051],"4d877b09":[()=>n.e(2150).then(n.bind(n,8493)),"@site/docs/encoders_hw/qsv.mdx",8493],"522a92e3":[()=>n.e(5220).then(n.bind(n,2191)),"@site/docs/encoders_hw/nvenc.mdx",2191],"54a9c2bb":[()=>n.e(561).then(n.bind(n,3633)),"@site/docs/utilities/YUView.mdx",3633],56786013:[()=>n.e(8741).then(n.bind(n,3588)),"@site/docs/images/JPEG.mdx",3588],"59e6fde5":[()=>n.e(9724).then(n.bind(n,357)),"@site/blog/2024-06-24-av1-for-dummies-2.mdx?truncated=true",357],"5b209502":[()=>n.e(4176).then(n.bind(n,4296)),"@site/docs/filtering/deinterlace.mdx",4296],"5d1a7e8b":[()=>n.e(5936).then(n.bind(n,63)),"@site/docs/video-players.mdx",63],"5db6705b":[()=>n.e(1624).then(n.bind(n,9828)),"@site/docs/utilities/nmkoder.mdx",9828],"5e069031":[()=>n.e(5968).then(n.bind(n,9483)),"@site/docs/introduction/prologue.mdx",9483],"5e1194df":[()=>n.e(4822).then(n.bind(n,5160)),"@site/docs/data/zpaq.mdx",5160],"5e95c892":[()=>n.e(9647).then(n.bind(n,7121)),"@theme/DocsRoot",7121],"5e9f5e1a":[()=>Promise.resolve().then(n.bind(n,4784)),"@generated/docusaurus.config",4784],"5ec46d54":[()=>n.e(1481).then(n.bind(n,2886)),"@site/docs/video/ECM.mdx",2886],"5f74c797":[()=>Promise.all([n.e(1869),n.e(5745)]).then(n.bind(n,6185)),"@site/docs/utilities/av1an.mdx",6185],"632d0ef1":[()=>n.e(106).then(n.bind(n,1598)),"@site/docs/encoders/VTM.mdx",1598],"6549b2b5":[()=>n.e(4846).then(n.bind(n,2417)),"@site/blog/2023-07-21-site-optimization.mdx",2417],"65524f4d":[()=>n.e(6891).then(n.bind(n,2030)),"@site/docs/filtering/antialiasing.mdx",2030],66935117:[()=>n.e(2017).then(n.t.bind(n,5585,19)),"@generated/docusaurus-plugin-content-blog/default/p/blog-tags-anniversary-322.json",5585],"6875c492":[()=>Promise.all([n.e(1869),n.e(8498),n.e(8793),n.e(4813)]).then(n.bind(n,1086)),"@theme/BlogTagsPostsPage",1086],"68dcf780":[()=>n.e(1315).then(n.bind(n,1538)),"@site/docs/filtering/decombing.mdx",1538],"6bf0f114":[()=>n.e(881).then(n.bind(n,779)),"@site/docs/data/zip.mdx",779],"6c179ac5":[()=>n.e(4072).then(n.bind(n,9964)),"@site/docs/video/Theora.mdx",9964],"6d85920a":[()=>n.e(7800).then(n.bind(n,3911)),"@site/docs/introduction/terminology.mdx",3911],70006292:[()=>n.e(9987).then(n.bind(n,1359)),"@site/docs/encoders/x266.mdx",1359],"70de1c07":[()=>Promise.all([n.e(6256),n.e(544)]).then(n.bind(n,850)),"@site/blog/2023-12-30-svt-av1-deep-dive.mdx",850],"7385c97b":[()=>n.e(8415).then(n.bind(n,5322)),"@site/docs/images/AVIF.mdx",5322],"75936cdf":[()=>n.e(7564).then(n.bind(n,9613)),"@site/docs/filtering/graining.mdx",9613],"76096a15":[()=>n.e(8924).then(n.bind(n,8560)),"@site/docs/subtitles/SRT.mdx",8560],"7d09a242":[()=>Promise.all([n.e(1869),n.e(6692)]).then(n.bind(n,1586)),"@site/docs/encoders/aomenc.mdx",1586],"7eff0f1a":[()=>n.e(2515).then(n.bind(n,7199)),"@site/docs/video/AVC.mdx",7199],"7f76a12e":[()=>n.e(1502).then(n.bind(n,2225)),"@site/blog/2023-09-03-av1-for-dummies.mdx",2225],"7fa695a7":[()=>n.e(1363).then(n.bind(n,6046)),"@site/docs/images/GIF.mdx",6046],80447496:[()=>n.e(7715).then(n.bind(n,6520)),"@site/docs/video/VVC.mdx",6520],"80bfa96b":[()=>n.e(2901).then(n.bind(n,9340)),"@site/docs/resources.mdx",9340],"814f3328":[()=>n.e(7472).then(n.t.bind(n,5513,19)),"~blog/default/blog-post-list-prop-default.json",5513],81739261:[()=>n.e(4794).then(n.bind(n,2358)),"@site/docs/video/prores.mdx",2358],"83732ada":[()=>n.e(6840).then(n.bind(n,3387)),"@site/docs/video/HEVC.mdx",3387],"841b1305":[()=>Promise.all([n.e(1869),n.e(9939)]).then(n.bind(n,7026)),"@site/docs/encoders/uavs3e.mdx",7026],"842a7beb":[()=>n.e(6866).then(n.bind(n,7216)),"@site/docs/utilities/rAV1ator.mdx",7216],"84e198a2":[()=>n.e(6711).then(n.bind(n,2955)),"@site/docs/utilities/eac3to.mdx",2955],"86ba2311":[()=>n.e(8141).then(n.bind(n,4632)),"@site/docs/video/VP9.mdx",4632],"8a894f7b":[()=>n.e(538).then(n.bind(n,8245)),"@site/docs/introduction/video-artifacts.mdx",8245],"8aacd032":[()=>n.e(2897).then(n.bind(n,6669)),"@site/docs/video/AV1.mdx",6669],"8bdabb45":[()=>n.e(7957).then(n.bind(n,5575)),"@site/docs/encoders/AVM.mdx",5575],"8eb2df80":[()=>Promise.all([n.e(1869),n.e(7796)]).then(n.bind(n,5101)),"@site/docs/utilities/rav1ator-cli.mdx",5101],"8ee2fdd1":[()=>Promise.all([n.e(1869),n.e(8420)]).then(n.bind(n,4335)),"@site/docs/encoders/aom-av1-lavish.mdx",4335],"8f6f5e4c":[()=>n.e(8760).then(n.bind(n,4216)),"@site/docs/colorimetry/format.mdx",4216],"904009dc":[()=>n.e(822).then(n.t.bind(n,8235,19)),"@generated/docusaurus-plugin-content-blog/default/p/blog-tags-web-377.json",8235],"9060e84a":[()=>n.e(8320).then(n.bind(n,4e3)),"@site/docs/encoders/HM.mdx",4e3],"90aedb84":[()=>n.e(1691).then(n.bind(n,8872)),"@site/docs/introduction/psychovisual.mdx",8872],"915a111c":[()=>n.e(5889).then(n.bind(n,1389)),"@site/docs/filtering/dehalo.mdx",1389],"92fa5ef1":[()=>n.e(4044).then(n.t.bind(n,9232,19)),"@generated/docusaurus-plugin-content-blog/default/p/blog-tags-history-b17.json",9232],"939f23de":[()=>n.e(2590).then(n.bind(n,631)),"@site/docs/filtering/basics.mdx",631],"94782d2d":[()=>n.e(4597).then(n.bind(n,2774)),"@site/docs/colorimetry/range.mdx",2774],"95e9a4c5":[()=>n.e(3672).then(n.bind(n,7426)),"@site/docs/utilities/Discord.mdx",7426],"998d107e":[()=>n.e(274).then(n.bind(n,7672)),"@site/docs/video/FFV1.mdx",7672],"99c26446":[()=>n.e(8026).then(n.bind(n,1455)),"@site/docs/metrics/butteraugli.mdx",1455],"9ba56b79":[()=>n.e(1288).then(n.bind(n,5495)),"@site/docs/encoders_hw/amf.mdx",5495],"9c171e5c":[()=>n.e(8773).then(n.bind(n,3061)),"@site/docs/metrics/SSIM.mdx",3061],"9cae5962":[()=>Promise.all([n.e(1869),n.e(71)]).then(n.bind(n,5650)),"@site/docs/images/JXL.mdx",5650],"9e4087bc":[()=>n.e(2711).then(n.bind(n,9331)),"@theme/BlogArchivePage",9331],"9efd8a4a":[()=>n.e(5415).then(n.bind(n,1076)),"@site/docs/images/WebP.mdx",1076],"9f640ee8":[()=>n.e(6810).then(n.bind(n,5864)),"@site/docs/encoders/Aurora1.mdx",5864],"9f709603":[()=>n.e(5341).then(n.bind(n,3414)),"@site/docs/filtering/deband.mdx",3414],a6aa9e1f:[()=>Promise.all([n.e(1869),n.e(8498),n.e(8793),n.e(7643)]).then(n.bind(n,5124)),"@theme/BlogListPage",5124],a7456010:[()=>n.e(1235).then(n.t.bind(n,8552,19)),"@generated/docusaurus-plugin-content-pages/default/__plugin.json",8552],a7bd4aaa:[()=>n.e(7098).then(n.bind(n,4532)),"@theme/DocVersionRoot",4532],a8f610c9:[()=>n.e(8599).then(n.bind(n,5860)),"@site/docs/data/brotli.mdx",5860],a94703ab:[()=>Promise.all([n.e(1869),n.e(9048)]).then(n.bind(n,1377)),"@theme/DocRoot",1377],aaf3ff15:[()=>n.e(3170).then(n.t.bind(n,5890,19)),"@generated/docusaurus-plugin-content-blog/default/p/blog-tags-compression-44b.json",5890],aba21aa0:[()=>n.e(5742).then(n.t.bind(n,7093,19)),"@generated/docusaurus-plugin-content-docs/default/__plugin.json",7093],acecf23e:[()=>n.e(1903).then(n.t.bind(n,1912,19)),"~blog/default/blogMetadata-default.json",1912],acf4709b:[()=>n.e(7225).then(n.bind(n,1918)),"@site/docs/subtitles/SSA.mdx",1918],afe5e22f:[()=>n.e(8117).then(n.bind(n,1624)),"@site/docs/encoders/x265.mdx",1624],b0535000:[()=>n.e(7238).then(n.bind(n,851)),"@site/blog/2023-07-21-site-optimization.mdx?truncated=true",851],b261517a:[()=>Promise.all([n.e(6256),n.e(1454)]).then(n.bind(n,3012)),"@site/blog/2024-05-19-svt-av1-deep-dive2-v2-1-0.mdx?truncated=true",3012],b4030b4d:[()=>Promise.all([n.e(1869),n.e(3408)]).then(n.bind(n,6856)),"@site/docs/utilities/Aviator.mdx",6856],b4bbde8e:[()=>n.e(7989).then(n.bind(n,965)),"@site/docs/audio/AAC.mdx",965],b59b8cf7:[()=>n.e(1271).then(n.bind(n,5423)),"@site/docs/audio/Vorbis.mdx",5423],b8af02bf:[()=>n.e(3222).then(n.bind(n,1158)),"@site/docs/images/JPEG2000.mdx",1158],bb17976f:[()=>Promise.all([n.e(1869),n.e(8943)]).then(n.bind(n,2591)),"@site/docs/encoders/aom-psy101.mdx",2591],bc32b9c5:[()=>n.e(786).then(n.bind(n,8450)),"@site/docs/metrics/XPSNR.mdx",8450],bd173b27:[()=>n.e(1651).then(n.bind(n,4646)),"@site/docs/data/xz.mdx",4646],be236901:[()=>n.e(6795).then(n.bind(n,7090)),"@site/docs/contribution-guide.mdx",7090],bf9d09b6:[()=>Promise.all([n.e(1869),n.e(8270)]).then(n.bind(n,6491)),"@site/docs/encoders/SVT-HEVC.mdx",6491],c15d9823:[()=>n.e(8146).then(n.t.bind(n,9328,19)),"@generated/docusaurus-plugin-content-blog/default/p/blog-bd9.json",9328],c19fbcae:[()=>n.e(4501).then(n.bind(n,5341)),"@site/docs/audio/ALAC.mdx",5341],c224274c:[()=>n.e(3356).then(n.bind(n,4736)),"@site/docs/video/AVS3.mdx",4736],c4f5d8e4:[()=>Promise.all([n.e(1869),n.e(2634)]).then(n.bind(n,1459)),"@site/src/pages/index.js",1459],c7deb2e0:[()=>n.e(9551).then(n.bind(n,9009)),"@site/docs/audio/WavPack.mdx",9009],c92fe796:[()=>n.e(3034).then(n.bind(n,3083)),"@site/docs/utilities/ffmpeg.mdx",3083],c943a24a:[()=>n.e(5512).then(n.bind(n,556)),"@site/docs/introduction/high-dynamic-range.mdx",556],ccc49370:[()=>Promise.all([n.e(1869),n.e(8498),n.e(8793),n.e(3249)]).then(n.bind(n,3858)),"@theme/BlogPostPage",3858],cce09ffa:[()=>n.e(5556).then(n.bind(n,1939)),"@site/blog/2023-09-03-av1-for-dummies.mdx?truncated=true",1939],cd6cf5b7:[()=>n.e(5365).then(n.bind(n,9576)),"@site/docs/encoders/SVT-VP9.mdx",9576],ce98a713:[()=>n.e(6168).then(n.bind(n,4705)),"@site/docs/filtering/denoise.mdx",4705],cf7588c6:[()=>n.e(5971).then(n.bind(n,2493)),"@site/docs/encoders/x264.mdx",2493],d1becb09:[()=>n.e(8843).then(n.bind(n,5224)),"@site/docs/privacy-policy.mdx",5224],d337df6f:[()=>n.e(6496).then(n.bind(n,8051)),"@site/blog/2024-07-20-codec-wiki-one-year-later.mdx?truncated=true",8051],d5ab79da:[()=>n.e(8382).then(n.bind(n,2082)),"@site/docs/audio/MP3.mdx",2082],d5f89569:[()=>Promise.all([n.e(1869),n.e(1401)]).then(n.bind(n,7235)),"@site/docs/encoders/Kvazaar.mdx",7235],d6535278:[()=>Promise.all([n.e(1869),n.e(6977)]).then(n.bind(n,9963)),"@site/docs/metrics/VMAF.mdx",9963],d96727fd:[()=>n.e(1500).then(n.bind(n,8566)),"@site/docs/colorimetry/matrix.mdx",8566],ddce1156:[()=>n.e(1408).then(n.bind(n,5856)),"@site/docs/utilities/mp4box.mdx",5856],e157395a:[()=>n.e(7967).then(n.bind(n,8935)),"@site/docs/images/HEIC.mdx",8935],e1a437f7:[()=>n.e(9381).then(n.bind(n,801)),"@site/docs/data/bzip2.mdx",801],e1c48702:[()=>n.e(6377).then(n.bind(n,1356)),"@site/docs/introduction/lossy.mdx",1356],e23fa6d4:[()=>n.e(4704).then(n.t.bind(n,1696,19)),"@generated/docusaurus-plugin-content-blog/default/p/blog-tags-image-83d.json",1696],e33da66d:[()=>n.e(2361).then(n.t.bind(n,9109,19)),"@generated/docusaurus-plugin-content-blog/default/p/blog-tags-video-28b.json",9109],e3409e91:[()=>n.e(6231).then(n.t.bind(n,210,19)),"@generated/docusaurus-plugin-content-blog/default/p/blog-tags-discord-cfa.json",210],e3b00369:[()=>n.e(921).then(n.bind(n,1364)),"@site/docs/utilities/av1an-command-gen.mdx",1364],e641ee58:[()=>n.e(5738).then(n.bind(n,3493)),"@site/docs/audio/Speex.mdx",3493],edaea366:[()=>n.e(7978).then(n.bind(n,4992)),"@site/docs/colorimetry/transfer.mdx",4992],ee513c31:[()=>Promise.all([n.e(1869),n.e(1137)]).then(n.bind(n,7155)),"@site/docs/utilities/dovi_tool.mdx",7155],ee8c27e3:[()=>n.e(9819).then(n.bind(n,3835)),"@site/docs/encoders/uvg266.mdx",3835],f4fea690:[()=>n.e(4924).then(n.bind(n,278)),"@site/docs/encoders/JM.mdx",278],f81c1134:[()=>n.e(8130).then(n.t.bind(n,7735,19)),"@generated/docusaurus-plugin-content-blog/default/p/blog-archive-f05.json",7735],f9208490:[()=>Promise.all([n.e(1869),n.e(3229)]).then(n.bind(n,6450)),"@site/docs/utilities/hdr10plus_tool.mdx",6450],fb02bab9:[()=>n.e(5885).then(n.bind(n,5190)),"@site/docs/filtering/stabilizing.mdx",5190],fda0af90:[()=>n.e(5376).then(n.bind(n,7615)),"@site/docs/colorimetry/primaries.mdx",7615]};var s=n(4848);function l(e){let{error:t,retry:n,pastDelay:r}=e;return t?(0,s.jsxs)("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"},children:[(0,s.jsx)("p",{children:String(t)}),(0,s.jsx)("div",{children:(0,s.jsx)("button",{type:"button",onClick:n,children:"Retry"})})]}):r?(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,s.jsx)("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb",children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsx)("circle",{cx:"22",cy:"22",r:"8",children:(0,s.jsx)("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})}):null}var c=n(6921),u=n(3102);function d(e,t){if("*"===e)return o()({loading:l,loader:()=>n.e(2237).then(n.bind(n,2237)),modules:["@theme/NotFound"],webpack:()=>[2237],render(e,t){const n=e.default;return(0,s.jsx)(u.W,{value:{plugin:{name:"native",id:"default"}},children:(0,s.jsx)(n,{...t})})}});const r=a[`${e}-${t}`],d={},p=[],f=[],h=(0,c.A)(r);return Object.entries(h).forEach((e=>{let[t,n]=e;const r=i[n];r&&(d[t]=r[0],p.push(r[1]),f.push(r[2]))})),o().Map({loading:l,loader:d,modules:p,webpack:()=>f,render(t,n){const o=JSON.parse(JSON.stringify(r));Object.entries(t).forEach((t=>{let[n,r]=t;const a=r.default;if(!a)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof a&&"function"!=typeof a||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{a[e]=r[e]}));let i=o;const s=n.split(".");s.slice(0,-1).forEach((e=>{i=i[e]})),i[s[s.length-1]]=a}));const a=o.__comp;delete o.__comp;const i=o.__context;delete o.__context;const l=o.__props;return delete o.__props,(0,s.jsx)(u.W,{value:i,children:(0,s.jsx)(a,{...o,...l,...n})})}})}const p=[{path:"/blog",component:d("/blog","116"),exact:!0},{path:"/blog/archive",component:d("/blog/archive","182"),exact:!0},{path:"/blog/av1-encoding-for-dummies",component:d("/blog/av1-encoding-for-dummies","7e6"),exact:!0},{path:"/blog/av1-for-dummies",component:d("/blog/av1-for-dummies","36a"),exact:!0},{path:"/blog/codec-wiki-one-year-later",component:d("/blog/codec-wiki-one-year-later","053"),exact:!0},{path:"/blog/embedding-the-un-embeddable",component:d("/blog/embedding-the-un-embeddable","ddb"),exact:!0},{path:"/blog/site-optimization",component:d("/blog/site-optimization","79f"),exact:!0},{path:"/blog/svt-av1-deep-dive",component:d("/blog/svt-av1-deep-dive","32d"),exact:!0},{path:"/blog/svt-av1-second-deep-dive",component:d("/blog/svt-av1-second-deep-dive","ca6"),exact:!0},{path:"/blog/tags",component:d("/blog/tags","287"),exact:!0},{path:"/blog/tags/anniversary",component:d("/blog/tags/anniversary","00b"),exact:!0},{path:"/blog/tags/benchmarks",component:d("/blog/tags/benchmarks","ae5"),exact:!0},{path:"/blog/tags/compression",component:d("/blog/tags/compression","5f1"),exact:!0},{path:"/blog/tags/discord",component:d("/blog/tags/discord","2ab"),exact:!0},{path:"/blog/tags/history",component:d("/blog/tags/history","f7a"),exact:!0},{path:"/blog/tags/image",component:d("/blog/tags/image","2b9"),exact:!0},{path:"/blog/tags/video",component:d("/blog/tags/video","d7a"),exact:!0},{path:"/blog/tags/web",component:d("/blog/tags/web","e61"),exact:!0},{path:"/markdown-page",component:d("/markdown-page","53a"),exact:!0},{path:"/search",component:d("/search","822"),exact:!0},{path:"/docs",component:d("/docs","171"),routes:[{path:"/docs",component:d("/docs","fda"),routes:[{path:"/docs",component:d("/docs","2b2"),routes:[{path:"/docs/audio/AAC",component:d("/docs/audio/AAC","cc0"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/audio/ALAC",component:d("/docs/audio/ALAC","88f"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/audio/Dolby",component:d("/docs/audio/Dolby","be7"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/audio/FLAC",component:d("/docs/audio/FLAC","68a"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/audio/intro",component:d("/docs/audio/intro","c71"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/audio/MP3",component:d("/docs/audio/MP3","8b0"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/audio/Opus",component:d("/docs/audio/Opus","ede"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/audio/Speex",component:d("/docs/audio/Speex","efd"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/audio/Vorbis",component:d("/docs/audio/Vorbis","e65"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/audio/WavPack",component:d("/docs/audio/WavPack","faf"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/colorimetry/format",component:d("/docs/colorimetry/format","f03"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/colorimetry/intro",component:d("/docs/colorimetry/intro","dc6"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/colorimetry/matrix",component:d("/docs/colorimetry/matrix","56d"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/colorimetry/primaries",component:d("/docs/colorimetry/primaries","0ce"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/colorimetry/range",component:d("/docs/colorimetry/range","be1"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/colorimetry/transfer",component:d("/docs/colorimetry/transfer","0ec"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/contribution-guide",component:d("/docs/contribution-guide","a83"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/data/7z",component:d("/docs/data/7z","663"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/data/brotli",component:d("/docs/data/brotli","f1e"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/data/bzip2",component:d("/docs/data/bzip2","aea"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/data/gzip",component:d("/docs/data/gzip","644"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/data/tar",component:d("/docs/data/tar","548"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/data/xz",component:d("/docs/data/xz","a88"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/data/zip",component:d("/docs/data/zip","2e5"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/data/zpaq",component:d("/docs/data/zpaq","407"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/data/zstd",component:d("/docs/data/zstd","78a"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders_hw/amf",component:d("/docs/encoders_hw/amf","504"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders_hw/mediacodec",component:d("/docs/encoders_hw/mediacodec","e64"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders_hw/nvenc",component:d("/docs/encoders_hw/nvenc","851"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders_hw/qsv",component:d("/docs/encoders_hw/qsv","ce1"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders_hw/videotoolbox",component:d("/docs/encoders_hw/videotoolbox","426"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/aom-av1-lavish",component:d("/docs/encoders/aom-av1-lavish","14a"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/aom-psy101",component:d("/docs/encoders/aom-psy101","274"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/aomenc",component:d("/docs/encoders/aomenc","3c9"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/Aurora1",component:d("/docs/encoders/Aurora1","96b"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/AVM",component:d("/docs/encoders/AVM","1b8"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/HM",component:d("/docs/encoders/HM","09e"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/JM",component:d("/docs/encoders/JM","26a"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/Kvazaar",component:d("/docs/encoders/Kvazaar","723"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/rav1e",component:d("/docs/encoders/rav1e","8de"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/SVT-AV1",component:d("/docs/encoders/SVT-AV1","c47"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/SVT-AV1-PSY",component:d("/docs/encoders/SVT-AV1-PSY","673"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/SVT-HEVC",component:d("/docs/encoders/SVT-HEVC","d5b"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/SVT-VP9",component:d("/docs/encoders/SVT-VP9","952"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/uavs3e",component:d("/docs/encoders/uavs3e","8de"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/uvg266",component:d("/docs/encoders/uvg266","d2d"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/vpxenc",component:d("/docs/encoders/vpxenc","9fa"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/VTM",component:d("/docs/encoders/VTM","e57"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/VVenC",component:d("/docs/encoders/VVenC","469"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/x264",component:d("/docs/encoders/x264","26c"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/x265",component:d("/docs/encoders/x265","fb3"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/encoders/x266",component:d("/docs/encoders/x266","74f"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/FAQ",component:d("/docs/FAQ","5ed"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/filtering/antialiasing",component:d("/docs/filtering/antialiasing","118"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/filtering/basics",component:d("/docs/filtering/basics","c1f"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/filtering/deband",component:d("/docs/filtering/deband","2ca"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/filtering/decombing",component:d("/docs/filtering/decombing","08e"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/filtering/dehalo",component:d("/docs/filtering/dehalo","c4e"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/filtering/deinterlace",component:d("/docs/filtering/deinterlace","62f"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/filtering/denoise",component:d("/docs/filtering/denoise","129"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/filtering/graining",component:d("/docs/filtering/graining","e7d"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/filtering/ivtc",component:d("/docs/filtering/ivtc","d1b"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/filtering/stabilizing",component:d("/docs/filtering/stabilizing","d74"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/filtering/vapoursynth",component:d("/docs/filtering/vapoursynth","42f"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/images/AVIF",component:d("/docs/images/AVIF","371"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/images/GIF",component:d("/docs/images/GIF","677"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/images/HEIC",component:d("/docs/images/HEIC","70b"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/images/JPEG",component:d("/docs/images/JPEG","7f9"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/images/JPEG2000",component:d("/docs/images/JPEG2000","3f4"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/images/JXL",component:d("/docs/images/JXL","abb"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/images/PNG",component:d("/docs/images/PNG","9b0"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/images/QOI",component:d("/docs/images/QOI","c2e"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/images/WebP",component:d("/docs/images/WebP","b27"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/introduction/high-dynamic-range",component:d("/docs/introduction/high-dynamic-range","7e1"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/introduction/lossless",component:d("/docs/introduction/lossless","417"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/introduction/lossy",component:d("/docs/introduction/lossy","aeb"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/introduction/prologue",component:d("/docs/introduction/prologue","b4e"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/introduction/psychovisual",component:d("/docs/introduction/psychovisual","539"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/introduction/terminology",component:d("/docs/introduction/terminology","041"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/introduction/video-artifacts",component:d("/docs/introduction/video-artifacts","0af"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/metrics/butteraugli",component:d("/docs/metrics/butteraugli","a60"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/metrics/PSNR",component:d("/docs/metrics/PSNR","1e4"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/metrics/SSIM",component:d("/docs/metrics/SSIM","1ea"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/metrics/SSIMULACRA2",component:d("/docs/metrics/SSIMULACRA2","a14"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/metrics/VMAF",component:d("/docs/metrics/VMAF","62e"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/metrics/XPSNR",component:d("/docs/metrics/XPSNR","646"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/privacy-policy",component:d("/docs/privacy-policy","923"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/resources",component:d("/docs/resources","0e5"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/subtitles/SRT",component:d("/docs/subtitles/SRT","af2"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/subtitles/SSA",component:d("/docs/subtitles/SSA","c6a"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/subtitles/webvtt",component:d("/docs/subtitles/webvtt","d8f"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/terms-of-use",component:d("/docs/terms-of-use","70c"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/autocompressor",component:d("/docs/utilities/autocompressor","43c"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/av1an",component:d("/docs/utilities/av1an","53c"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/av1an-command-gen",component:d("/docs/utilities/av1an-command-gen","f4e"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/Aviator",component:d("/docs/utilities/Aviator","b18"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/Discord",component:d("/docs/utilities/Discord","849"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/dovi_tool",component:d("/docs/utilities/dovi_tool","6fd"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/eac3to",component:d("/docs/utilities/eac3to","fde"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/FFMetrics",component:d("/docs/utilities/FFMetrics","bb5"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/ffmpeg",component:d("/docs/utilities/ffmpeg","07b"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/hdr10plus_tool",component:d("/docs/utilities/hdr10plus_tool","d8d"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/MKVToolNix",component:d("/docs/utilities/MKVToolNix","2d7"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/mp4box",component:d("/docs/utilities/mp4box","d04"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/nmkoder",component:d("/docs/utilities/nmkoder","a80"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/rAV1ator",component:d("/docs/utilities/rAV1ator","88b"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/rav1ator-cli",component:d("/docs/utilities/rav1ator-cli","930"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/utilities/YUView",component:d("/docs/utilities/YUView","017"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/video-players",component:d("/docs/video-players","870"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/video/AV1",component:d("/docs/video/AV1","28f"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/video/AVC",component:d("/docs/video/AVC","e47"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/video/AVS3",component:d("/docs/video/AVS3","42e"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/video/ECM",component:d("/docs/video/ECM","568"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/video/FFV1",component:d("/docs/video/FFV1","ec1"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/video/HEVC",component:d("/docs/video/HEVC","df9"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/video/prores",component:d("/docs/video/prores","770"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/video/Theora",component:d("/docs/video/Theora","4cf"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/video/utvideo",component:d("/docs/video/utvideo","9f1"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/video/VC-1",component:d("/docs/video/VC-1","d82"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/video/VP8",component:d("/docs/video/VP8","88c"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/video/VP9",component:d("/docs/video/VP9","dc7"),exact:!0,sidebar:"tutorialSidebar"},{path:"/docs/video/VVC",component:d("/docs/video/VVC","1f7"),exact:!0,sidebar:"tutorialSidebar"}]}]}]},{path:"/",component:d("/","2e1"),exact:!0},{path:"*",component:d("*")}]},6125:(e,t,n)=>{"use strict";n.d(t,{o:()=>a,x:()=>i});var r=n(6540),o=n(4848);const a=r.createContext(!1);function i(e){let{children:t}=e;const[n,i]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{i(!0)}),[]),(0,o.jsx)(a.Provider,{value:n,children:t})}},7815:(e,t,n)=>{"use strict";var r=n(6540),o=n(5338),a=n(545),i=n(4625),s=n(4784),l=n(8193);const c=[n(119),n(6134),n(6294),n(1043),n(8015)];var u=n(8328),d=n(6347),p=n(2831),f=n(4848);function h(e){let{children:t}=e;return(0,f.jsx)(f.Fragment,{children:t})}var m=n(5260),g=n(4586),b=n(6025),y=n(6342),v=n(1213),x=n(2131),w=n(4090);const S="default";var k=n(440),_=n(1463);function E(){const{i18n:{currentLocale:e,defaultLocale:t,localeConfigs:n}}=(0,g.A)(),r=(0,x.o)(),o=n[e].htmlLang,a=e=>e.replace("-","_");return(0,f.jsxs)(m.A,{children:[Object.entries(n).map((e=>{let[t,{htmlLang:n}]=e;return(0,f.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:n},t)})),(0,f.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:"x-default"}),(0,f.jsx)("meta",{property:"og:locale",content:a(o)}),Object.values(n).filter((e=>o!==e.htmlLang)).map((e=>(0,f.jsx)("meta",{property:"og:locale:alternate",content:a(e.htmlLang)},`meta-og-${e.htmlLang}`)))]})}function C(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,g.A)(),r=function(){const{siteConfig:{url:e,baseUrl:t,trailingSlash:n}}=(0,g.A)(),{pathname:r}=(0,d.zy)();return e+(0,k.Ks)((0,b.Ay)(r),{trailingSlash:n,baseUrl:t})}(),o=t?`${n}${t}`:r;return(0,f.jsxs)(m.A,{children:[(0,f.jsx)("meta",{property:"og:url",content:o}),(0,f.jsx)("link",{rel:"canonical",href:o})]})}function A(){const{i18n:{currentLocale:e}}=(0,g.A)(),{metadata:t,image:n}=(0,y.p)();return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(m.A,{children:[(0,f.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,f.jsx)("body",{className:w.w})]}),n&&(0,f.jsx)(v.be,{image:n}),(0,f.jsx)(C,{}),(0,f.jsx)(E,{}),(0,f.jsx)(_.A,{tag:S,locale:e}),(0,f.jsx)(m.A,{children:t.map(((e,t)=>(0,f.jsx)("meta",{...e},t)))})]})}const T=new Map;var P=n(6125),L=n(6988),O=n(205);function N(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{const r=t.default?.[e]??t[e];return r?.(...n)}));return()=>o.forEach((e=>e?.()))}const j=function(e){let{children:t,location:n,previousLocation:r}=e;return(0,O.A)((()=>{r!==n&&(!function(e){let{location:t,previousLocation:n}=e;if(!n)return;const r=t.pathname===n.pathname,o=t.hash===n.hash,a=t.search===n.search;if(r&&o&&!a)return;const{hash:i}=t;if(i){const e=decodeURIComponent(i.substring(1)),t=document.getElementById(e);t?.scrollIntoView()}else window.scrollTo(0,0)}({location:n,previousLocation:r}),N("onRouteDidUpdate",{previousLocation:r,location:n}))}),[r,n]),t};function R(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,p.u)(u.A,e))).flat();return Promise.all(t.map((e=>e.route.component.preload?.())))}class I extends r.Component{previousLocation;routeUpdateCleanupCb;constructor(e){super(e),this.previousLocation=null,this.routeUpdateCleanupCb=l.A.canUseDOM?N("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=N("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),R(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return(0,f.jsx)(j,{previousLocation:this.previousLocation,location:t,children:(0,f.jsx)(d.qh,{location:t,render:()=>e})})}}const F=I,M="__docusaurus-base-url-issue-banner-container",z="__docusaurus-base-url-issue-banner",D="__docusaurus-base-url-issue-banner-suggestion-container";function B(e){return`\ndocument.addEventListener('DOMContentLoaded', function maybeInsertBanner() {\n var shouldInsert = typeof window['docusaurus'] === 'undefined';\n shouldInsert && insertBanner();\n});\n\nfunction insertBanner() {\n var bannerContainer = document.createElement('div');\n bannerContainer.id = '${M}';\n var bannerHtml = ${JSON.stringify(function(e){return`\n
\n

Your Docusaurus site did not load properly.

\n

A very common reason is a wrong site baseUrl configuration.

\n

Current configured baseUrl = ${e} ${"/"===e?" (default value)":""}

\n

We suggest trying baseUrl =

\n
\n`}(e)).replace(/{let{route:t}=e;return!0===t.exact})))return T.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return T.set(e.pathname,t),{...e,pathname:t}}((0,d.zy)());return(0,f.jsx)(F,{location:e,children:G})}function Y(){return(0,f.jsx)(H.A,{children:(0,f.jsx)(L.l,{children:(0,f.jsxs)(P.x,{children:[(0,f.jsxs)(h,{children:[(0,f.jsx)(U,{}),(0,f.jsx)(A,{}),(0,f.jsx)(V,{}),(0,f.jsx)(q,{})]}),(0,f.jsx)(W,{})]})})})}var K=n(4054);const Z=function(e){try{return document.createElement("link").relList.supports(e)}catch{return!1}}("prefetch")?function(e){return new Promise(((t,n)=>{if("undefined"==typeof document)return void n();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=()=>n();const o=document.getElementsByTagName("head")[0]??document.getElementsByName("script")[0]?.parentNode;o?.appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var X=n(6921);const J=new Set,ee=new Set,te=()=>navigator.connection?.effectiveType.includes("2g")||navigator.connection?.saveData,ne={prefetch:e=>{if(!(e=>!te()&&!ee.has(e)&&!J.has(e))(e))return!1;J.add(e);const t=(0,p.u)(u.A,e).flatMap((e=>{return t=e.route.path,Object.entries(K).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,X.A)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?Z(t).catch((()=>{})):Promise.resolve()})))},preload:e=>!!(e=>!te()&&!ee.has(e))(e)&&(ee.add(e),R(e))},re=Object.freeze(ne);function oe(e){let{children:t}=e;return"hash"===s.default.future.experimental_router?(0,f.jsx)(i.I9,{children:t}):(0,f.jsx)(i.Kd,{children:t})}const ae=Boolean(!0);if(l.A.canUseDOM){window.docusaurus=re;const e=document.getElementById("__docusaurus"),t=(0,f.jsx)(a.vd,{children:(0,f.jsx)(oe,{children:(0,f.jsx)(Y,{})})}),n=(e,t)=>{console.error("Docusaurus React Root onRecoverableError:",e,t)},i=()=>{if(window.docusaurusRoot)window.docusaurusRoot.render(t);else if(ae)window.docusaurusRoot=o.hydrateRoot(e,t,{onRecoverableError:n});else{const r=o.createRoot(e,{onRecoverableError:n});r.render(t),window.docusaurusRoot=r}};R(window.location.pathname).then((()=>{(0,r.startTransition)(i)}))}},6988:(e,t,n)=>{"use strict";n.d(t,{o:()=>d,l:()=>p});var r=n(6540),o=n(4784);const a=JSON.parse('{"docusaurus-plugin-content-docs":{"default":{"path":"/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/docs","mainDocId":"introduction/prologue","docs":[{"id":"audio/AAC","path":"/docs/audio/AAC","sidebar":"tutorialSidebar"},{"id":"audio/ALAC","path":"/docs/audio/ALAC","sidebar":"tutorialSidebar"},{"id":"audio/Dolby","path":"/docs/audio/Dolby","sidebar":"tutorialSidebar"},{"id":"audio/FLAC","path":"/docs/audio/FLAC","sidebar":"tutorialSidebar"},{"id":"audio/intro","path":"/docs/audio/intro","sidebar":"tutorialSidebar"},{"id":"audio/MP3","path":"/docs/audio/MP3","sidebar":"tutorialSidebar"},{"id":"audio/Opus","path":"/docs/audio/Opus","sidebar":"tutorialSidebar"},{"id":"audio/Speex","path":"/docs/audio/Speex","sidebar":"tutorialSidebar"},{"id":"audio/Vorbis","path":"/docs/audio/Vorbis","sidebar":"tutorialSidebar"},{"id":"audio/WavPack","path":"/docs/audio/WavPack","sidebar":"tutorialSidebar"},{"id":"colorimetry/format","path":"/docs/colorimetry/format","sidebar":"tutorialSidebar"},{"id":"colorimetry/intro","path":"/docs/colorimetry/intro","sidebar":"tutorialSidebar"},{"id":"colorimetry/matrix","path":"/docs/colorimetry/matrix","sidebar":"tutorialSidebar"},{"id":"colorimetry/primaries","path":"/docs/colorimetry/primaries","sidebar":"tutorialSidebar"},{"id":"colorimetry/range","path":"/docs/colorimetry/range","sidebar":"tutorialSidebar"},{"id":"colorimetry/transfer","path":"/docs/colorimetry/transfer","sidebar":"tutorialSidebar"},{"id":"contribution-guide","path":"/docs/contribution-guide","sidebar":"tutorialSidebar"},{"id":"data/7z","path":"/docs/data/7z","sidebar":"tutorialSidebar"},{"id":"data/brotli","path":"/docs/data/brotli","sidebar":"tutorialSidebar"},{"id":"data/bzip2","path":"/docs/data/bzip2","sidebar":"tutorialSidebar"},{"id":"data/gzip","path":"/docs/data/gzip","sidebar":"tutorialSidebar"},{"id":"data/tar","path":"/docs/data/tar","sidebar":"tutorialSidebar"},{"id":"data/xz","path":"/docs/data/xz","sidebar":"tutorialSidebar"},{"id":"data/zip","path":"/docs/data/zip","sidebar":"tutorialSidebar"},{"id":"data/zpaq","path":"/docs/data/zpaq","sidebar":"tutorialSidebar"},{"id":"data/zstd","path":"/docs/data/zstd","sidebar":"tutorialSidebar"},{"id":"encoders_hw/amf","path":"/docs/encoders_hw/amf","sidebar":"tutorialSidebar"},{"id":"encoders_hw/mediacodec","path":"/docs/encoders_hw/mediacodec","sidebar":"tutorialSidebar"},{"id":"encoders_hw/nvenc","path":"/docs/encoders_hw/nvenc","sidebar":"tutorialSidebar"},{"id":"encoders_hw/qsv","path":"/docs/encoders_hw/qsv","sidebar":"tutorialSidebar"},{"id":"encoders_hw/videotoolbox","path":"/docs/encoders_hw/videotoolbox","sidebar":"tutorialSidebar"},{"id":"encoders/aom-av1-lavish","path":"/docs/encoders/aom-av1-lavish","sidebar":"tutorialSidebar"},{"id":"encoders/aom-psy101","path":"/docs/encoders/aom-psy101","sidebar":"tutorialSidebar"},{"id":"encoders/aomenc","path":"/docs/encoders/aomenc","sidebar":"tutorialSidebar"},{"id":"encoders/Aurora1","path":"/docs/encoders/Aurora1","sidebar":"tutorialSidebar"},{"id":"encoders/AVM","path":"/docs/encoders/AVM","sidebar":"tutorialSidebar"},{"id":"encoders/HM","path":"/docs/encoders/HM","sidebar":"tutorialSidebar"},{"id":"encoders/JM","path":"/docs/encoders/JM","sidebar":"tutorialSidebar"},{"id":"encoders/Kvazaar","path":"/docs/encoders/Kvazaar","sidebar":"tutorialSidebar"},{"id":"encoders/rav1e","path":"/docs/encoders/rav1e","sidebar":"tutorialSidebar"},{"id":"encoders/SVT-AV1","path":"/docs/encoders/SVT-AV1","sidebar":"tutorialSidebar"},{"id":"encoders/SVT-AV1-PSY","path":"/docs/encoders/SVT-AV1-PSY","sidebar":"tutorialSidebar"},{"id":"encoders/SVT-HEVC","path":"/docs/encoders/SVT-HEVC","sidebar":"tutorialSidebar"},{"id":"encoders/SVT-VP9","path":"/docs/encoders/SVT-VP9","sidebar":"tutorialSidebar"},{"id":"encoders/uavs3e","path":"/docs/encoders/uavs3e","sidebar":"tutorialSidebar"},{"id":"encoders/uvg266","path":"/docs/encoders/uvg266","sidebar":"tutorialSidebar"},{"id":"encoders/vpxenc","path":"/docs/encoders/vpxenc","sidebar":"tutorialSidebar"},{"id":"encoders/VTM","path":"/docs/encoders/VTM","sidebar":"tutorialSidebar"},{"id":"encoders/VVenC","path":"/docs/encoders/VVenC","sidebar":"tutorialSidebar"},{"id":"encoders/x264","path":"/docs/encoders/x264","sidebar":"tutorialSidebar"},{"id":"encoders/x265","path":"/docs/encoders/x265","sidebar":"tutorialSidebar"},{"id":"encoders/x266","path":"/docs/encoders/x266","sidebar":"tutorialSidebar"},{"id":"FAQ","path":"/docs/FAQ","sidebar":"tutorialSidebar"},{"id":"filtering/antialiasing","path":"/docs/filtering/antialiasing","sidebar":"tutorialSidebar"},{"id":"filtering/basics","path":"/docs/filtering/basics","sidebar":"tutorialSidebar"},{"id":"filtering/deband","path":"/docs/filtering/deband","sidebar":"tutorialSidebar"},{"id":"filtering/decombing","path":"/docs/filtering/decombing","sidebar":"tutorialSidebar"},{"id":"filtering/dehalo","path":"/docs/filtering/dehalo","sidebar":"tutorialSidebar"},{"id":"filtering/deinterlace","path":"/docs/filtering/deinterlace","sidebar":"tutorialSidebar"},{"id":"filtering/denoise","path":"/docs/filtering/denoise","sidebar":"tutorialSidebar"},{"id":"filtering/graining","path":"/docs/filtering/graining","sidebar":"tutorialSidebar"},{"id":"filtering/ivtc","path":"/docs/filtering/ivtc","sidebar":"tutorialSidebar"},{"id":"filtering/stabilizing","path":"/docs/filtering/stabilizing","sidebar":"tutorialSidebar"},{"id":"filtering/vapoursynth","path":"/docs/filtering/vapoursynth","sidebar":"tutorialSidebar"},{"id":"images/AVIF","path":"/docs/images/AVIF","sidebar":"tutorialSidebar"},{"id":"images/GIF","path":"/docs/images/GIF","sidebar":"tutorialSidebar"},{"id":"images/HEIC","path":"/docs/images/HEIC","sidebar":"tutorialSidebar"},{"id":"images/JPEG","path":"/docs/images/JPEG","sidebar":"tutorialSidebar"},{"id":"images/JPEG2000","path":"/docs/images/JPEG2000","sidebar":"tutorialSidebar"},{"id":"images/JXL","path":"/docs/images/JXL","sidebar":"tutorialSidebar"},{"id":"images/PNG","path":"/docs/images/PNG","sidebar":"tutorialSidebar"},{"id":"images/QOI","path":"/docs/images/QOI","sidebar":"tutorialSidebar"},{"id":"images/WebP","path":"/docs/images/WebP","sidebar":"tutorialSidebar"},{"id":"introduction/high-dynamic-range","path":"/docs/introduction/high-dynamic-range","sidebar":"tutorialSidebar"},{"id":"introduction/lossless","path":"/docs/introduction/lossless","sidebar":"tutorialSidebar"},{"id":"introduction/lossy","path":"/docs/introduction/lossy","sidebar":"tutorialSidebar"},{"id":"introduction/prologue","path":"/docs/introduction/prologue","sidebar":"tutorialSidebar"},{"id":"introduction/psychovisual","path":"/docs/introduction/psychovisual","sidebar":"tutorialSidebar"},{"id":"introduction/terminology","path":"/docs/introduction/terminology","sidebar":"tutorialSidebar"},{"id":"introduction/video-artifacts","path":"/docs/introduction/video-artifacts","sidebar":"tutorialSidebar"},{"id":"metrics/butteraugli","path":"/docs/metrics/butteraugli","sidebar":"tutorialSidebar"},{"id":"metrics/PSNR","path":"/docs/metrics/PSNR","sidebar":"tutorialSidebar"},{"id":"metrics/SSIM","path":"/docs/metrics/SSIM","sidebar":"tutorialSidebar"},{"id":"metrics/SSIMULACRA2","path":"/docs/metrics/SSIMULACRA2","sidebar":"tutorialSidebar"},{"id":"metrics/VMAF","path":"/docs/metrics/VMAF","sidebar":"tutorialSidebar"},{"id":"metrics/XPSNR","path":"/docs/metrics/XPSNR","sidebar":"tutorialSidebar"},{"id":"privacy-policy","path":"/docs/privacy-policy","sidebar":"tutorialSidebar"},{"id":"resources","path":"/docs/resources","sidebar":"tutorialSidebar"},{"id":"subtitles/SRT","path":"/docs/subtitles/SRT","sidebar":"tutorialSidebar"},{"id":"subtitles/SSA","path":"/docs/subtitles/SSA","sidebar":"tutorialSidebar"},{"id":"subtitles/webvtt","path":"/docs/subtitles/webvtt","sidebar":"tutorialSidebar"},{"id":"terms-of-use","path":"/docs/terms-of-use","sidebar":"tutorialSidebar"},{"id":"utilities/autocompressor","path":"/docs/utilities/autocompressor","sidebar":"tutorialSidebar"},{"id":"utilities/av1an","path":"/docs/utilities/av1an","sidebar":"tutorialSidebar"},{"id":"utilities/av1an-command-gen","path":"/docs/utilities/av1an-command-gen","sidebar":"tutorialSidebar"},{"id":"utilities/Aviator","path":"/docs/utilities/Aviator","sidebar":"tutorialSidebar"},{"id":"utilities/Discord","path":"/docs/utilities/Discord","sidebar":"tutorialSidebar"},{"id":"utilities/dovi_tool","path":"/docs/utilities/dovi_tool","sidebar":"tutorialSidebar"},{"id":"utilities/eac3to","path":"/docs/utilities/eac3to","sidebar":"tutorialSidebar"},{"id":"utilities/FFMetrics","path":"/docs/utilities/FFMetrics","sidebar":"tutorialSidebar"},{"id":"utilities/ffmpeg","path":"/docs/utilities/ffmpeg","sidebar":"tutorialSidebar"},{"id":"utilities/hdr10plus_tool","path":"/docs/utilities/hdr10plus_tool","sidebar":"tutorialSidebar"},{"id":"utilities/MKVToolNix","path":"/docs/utilities/MKVToolNix","sidebar":"tutorialSidebar"},{"id":"utilities/mp4box","path":"/docs/utilities/mp4box","sidebar":"tutorialSidebar"},{"id":"utilities/nmkoder","path":"/docs/utilities/nmkoder","sidebar":"tutorialSidebar"},{"id":"utilities/rAV1ator","path":"/docs/utilities/rAV1ator","sidebar":"tutorialSidebar"},{"id":"utilities/rav1ator-cli","path":"/docs/utilities/rav1ator-cli","sidebar":"tutorialSidebar"},{"id":"utilities/YUView","path":"/docs/utilities/YUView","sidebar":"tutorialSidebar"},{"id":"video-players","path":"/docs/video-players","sidebar":"tutorialSidebar"},{"id":"video/AV1","path":"/docs/video/AV1","sidebar":"tutorialSidebar"},{"id":"video/AVC","path":"/docs/video/AVC","sidebar":"tutorialSidebar"},{"id":"video/AVS3","path":"/docs/video/AVS3","sidebar":"tutorialSidebar"},{"id":"video/ECM","path":"/docs/video/ECM","sidebar":"tutorialSidebar"},{"id":"video/FFV1","path":"/docs/video/FFV1","sidebar":"tutorialSidebar"},{"id":"video/HEVC","path":"/docs/video/HEVC","sidebar":"tutorialSidebar"},{"id":"video/prores","path":"/docs/video/prores","sidebar":"tutorialSidebar"},{"id":"video/Theora","path":"/docs/video/Theora","sidebar":"tutorialSidebar"},{"id":"video/utvideo","path":"/docs/video/utvideo","sidebar":"tutorialSidebar"},{"id":"video/VC-1","path":"/docs/video/VC-1","sidebar":"tutorialSidebar"},{"id":"video/VP8","path":"/docs/video/VP8","sidebar":"tutorialSidebar"},{"id":"video/VP9","path":"/docs/video/VP9","sidebar":"tutorialSidebar"},{"id":"video/VVC","path":"/docs/video/VVC","sidebar":"tutorialSidebar"}],"draftIds":[],"sidebars":{"tutorialSidebar":{"link":{"path":"/docs/introduction/prologue","label":"introduction/prologue"}}}}],"breadcrumbs":true}}}'),i=JSON.parse('{"defaultLocale":"en","locales":["en"],"path":"i18n","currentLocale":"en","localeConfigs":{"en":{"label":"English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"}}}');var s=n(2654);const l=JSON.parse('{"docusaurusVersion":"3.5.2","siteVersion":"0.1.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"3.5.2"},"docusaurus-plugin-content-blog":{"type":"package","name":"@docusaurus/plugin-content-blog","version":"3.5.2"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"3.5.2"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"3.5.2"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"3.5.2"},"docusaurus-plugin-image-zoom":{"type":"package","name":"plugin-image-zoom","version":"1.2.0"},"@easyops-cn/docusaurus-search-local":{"type":"package","name":"@easyops-cn/docusaurus-search-local","version":"0.40.1"}}}');var c=n(4848);const u={siteConfig:o.default,siteMetadata:l,globalData:a,i18n:i,codeTranslations:s},d=r.createContext(u);function p(e){let{children:t}=e;return(0,c.jsx)(d.Provider,{value:u,children:t})}},7489:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(6540),o=n(8193),a=n(5260),i=n(440),s=n(263),l=n(3102),c=n(4848);function u(e){let{error:t,tryAgain:n}=e;return(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"},children:[(0,c.jsx)("h1",{style:{fontSize:"3rem"},children:"This page crashed"}),(0,c.jsx)("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"},children:"Try again"}),(0,c.jsx)(d,{error:t})]})}function d(e){let{error:t}=e;const n=(0,i.rA)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,c.jsx)("p",{style:{whiteSpace:"pre-wrap"},children:n})}function p(e){let{children:t}=e;return(0,c.jsx)(l.W,{value:{plugin:{name:"docusaurus-core-error-boundary",id:"default"}},children:t})}function f(e){let{error:t,tryAgain:n}=e;return(0,c.jsx)(p,{children:(0,c.jsxs)(m,{fallback:()=>(0,c.jsx)(u,{error:t,tryAgain:n}),children:[(0,c.jsx)(a.A,{children:(0,c.jsx)("title",{children:"Page Error"})}),(0,c.jsx)(s.A,{children:(0,c.jsx)(u,{error:t,tryAgain:n})})]})})}const h=e=>(0,c.jsx)(f,{...e});class m extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){o.A.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??h)(e)}return e??null}}},8193:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,o={canUseDOM:r,canUseEventListeners:r&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:r&&"IntersectionObserver"in window,canUseViewport:r&&"screen"in window}},5260:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(6540);var r=n(545),o=n(4848);function a(e){return(0,o.jsx)(r.mg,{...e})}},8774:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(6540),o=n(4625),a=n(440),i=n(4586),s=n(6654),l=n(8193),c=n(3427),u=n(6025),d=n(4848);function p(e,t){let{isNavLink:n,to:p,href:f,activeClassName:h,isActive:m,"data-noBrokenLinkCheck":g,autoAddBaseUrl:b=!0,...y}=e;const{siteConfig:v}=(0,i.A)(),{trailingSlash:x,baseUrl:w}=v,S=v.future.experimental_router,{withBaseUrl:k}=(0,u.hH)(),_=(0,c.A)(),E=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(()=>E.current));const C=p||f;const A=(0,s.A)(C),T=C?.replace("pathname://","");let P=void 0!==T?(L=T,b&&(e=>e.startsWith("/"))(L)?k(L):L):void 0;var L;"hash"===S&&P?.startsWith("./")&&(P=P?.slice(1)),P&&A&&(P=(0,a.Ks)(P,{trailingSlash:x,baseUrl:w}));const O=(0,r.useRef)(!1),N=n?o.k2:o.N_,j=l.A.canUseIntersectionObserver,R=(0,r.useRef)(),I=()=>{O.current||null==P||(window.docusaurus.preload(P),O.current=!0)};(0,r.useEffect)((()=>(!j&&A&&l.A.canUseDOM&&null!=P&&window.docusaurus.prefetch(P),()=>{j&&R.current&&R.current.disconnect()})),[R,P,j,A]);const F=P?.startsWith("#")??!1,M=!y.target||"_self"===y.target,z=!P||!A||!M||F&&"hash"!==S;g||!F&&z||_.collectLink(P),y.id&&_.collectAnchor(y.id);const D={};return z?(0,d.jsx)("a",{ref:E,href:P,...C&&!A&&{target:"_blank",rel:"noopener noreferrer"},...y,...D}):(0,d.jsx)(N,{...y,onMouseEnter:I,onTouchStart:I,innerRef:e=>{E.current=e,j&&e&&A&&(R.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(R.current.unobserve(e),R.current.disconnect(),null!=P&&window.docusaurus.prefetch(P))}))})),R.current.observe(e))},to:P,...n&&{isActive:m,activeClassName:h},...D})}const f=r.forwardRef(p)},1312:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,T:()=>l});var r=n(6540),o=n(4848);function a(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=t?.[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var i=n(2654);function s(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return i[t??n]??n??t}function l(e,t){let{message:n,id:r}=e;return a(s({message:n,id:r}),t)}function c(e){let{children:t,id:n,values:r}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal children",t),new Error("The Docusaurus component only accept simple string values");const i=s({message:t,id:n});return(0,o.jsx)(o.Fragment,{children:a(i,r)})}},7065:(e,t,n)=>{"use strict";n.d(t,{W:()=>r});const r="default"},6654:(e,t,n)=>{"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function o(e){return void 0!==e&&!r(e)}n.d(t,{A:()=>o,z:()=>r})},6025:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,hH:()=>i});var r=n(6540),o=n(4586),a=n(6654);function i(){const{siteConfig:e}=(0,o.A)(),{baseUrl:t,url:n}=e,i=e.future.experimental_router,s=(0,r.useCallback)(((e,r)=>function(e){let{siteUrl:t,baseUrl:n,url:r,options:{forcePrependBaseUrl:o=!1,absolute:i=!1}={},router:s}=e;if(!r||r.startsWith("#")||(0,a.z)(r))return r;if("hash"===s)return r.startsWith("/")?`.${r}`:`./${r}`;if(o)return n+r.replace(/^\//,"");if(r===n.replace(/\/$/,""))return n;const l=r.startsWith(n)?r:n+r.replace(/^\//,"");return i?t+l:l}({siteUrl:n,baseUrl:t,url:e,options:r,router:i})),[n,t,i]);return{withBaseUrl:s}}function s(e,t){void 0===t&&(t={});const{withBaseUrl:n}=i();return n(e,t)}},3427:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6540);n(4848);const o=r.createContext({collectAnchor:()=>{},collectLink:()=>{}}),a=()=>(0,r.useContext)(o);function i(){return a()}},4586:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6540),o=n(6988);function a(){return(0,r.useContext)(o.o)}},6588:(e,t,n)=>{"use strict";n.d(t,{P_:()=>i,kh:()=>a});var r=n(4586),o=n(7065);function a(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,r.A)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}function i(e,t,n){void 0===t&&(t=o.W),void 0===n&&(n={});const r=a(e),i=r?.[t];if(!i&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return i}},2303:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6540),o=n(6125);function a(){return(0,r.useContext)(o.o)}},205:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);const o=n(8193).A.canUseDOM?r.useLayoutEffect:r.useEffect},6803:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6540),o=n(3102);function a(){const e=r.useContext(o.o);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}},6921:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;function o(e){const t={};return function e(n,o){Object.entries(n).forEach((n=>{let[a,i]=n;const s=o?`${o}.${a}`:a;r(i)?e(i,s):t[s]=i}))}(e),t}},3102:(e,t,n)=>{"use strict";n.d(t,{W:()=>i,o:()=>a});var r=n(6540),o=n(4848);const a=r.createContext(null);function i(e){let{children:t,value:n}=e;const i=r.useContext(a),s=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...n?.data};return{plugin:t.plugin,data:r}}({parent:i,value:n})),[i,n]);return(0,o.jsx)(a.Provider,{value:s,children:t})}},3886:(e,t,n)=>{"use strict";n.d(t,{VQ:()=>g,XK:()=>v,g1:()=>y});var r=n(6540),o=n(8295),a=n(7065),i=n(6342),s=n(679),l=n(9532),c=n(4848);const u=e=>`docs-preferred-version-${e}`,d={save:(e,t,n)=>{(0,s.Wf)(u(e),{persistence:t}).set(n)},read:(e,t)=>(0,s.Wf)(u(e),{persistence:t}).get(),clear:(e,t)=>{(0,s.Wf)(u(e),{persistence:t}).del()}},p=e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}])));const f=r.createContext(null);function h(){const e=(0,o.Gy)(),t=(0,i.p)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[a,s]=(0,r.useState)((()=>p(n)));(0,r.useEffect)((()=>{s(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function o(e){const t=d.read(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(d.clear(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,o(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[a,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){d.save(e,t,n),s((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function m(e){let{children:t}=e;const n=h();return(0,c.jsx)(f.Provider,{value:n,children:t})}function g(e){let{children:t}=e;return(0,c.jsx)(m,{children:t})}function b(){const e=(0,r.useContext)(f);if(!e)throw new l.dV("DocsPreferredVersionContextProvider");return e}function y(e){void 0===e&&(e=a.W);const t=(0,o.ht)(e),[n,i]=b(),{preferredVersionName:s}=n[e];return{preferredVersion:t.versions.find((e=>e.name===s))??null,savePreferredVersionName:(0,r.useCallback)((t=>{i.savePreferredVersion(e,t)}),[i,e])}}function v(){const e=(0,o.Gy)(),[t]=b();function n(n){const r=e[n],{preferredVersionName:o}=t[n];return r.versions.find((e=>e.name===o))??null}const r=Object.keys(e);return Object.fromEntries(r.map((e=>[e,n(e)])))}},2565:(e,t,n)=>{"use strict";n.d(t,{k:()=>a,v:()=>i});var r=n(8295),o=n(3886);function a(e,t){return`docs-${e}-${t}`}function i(){const e=(0,r.Gy)(),t=(0,r.gk)(),n=(0,o.XK)();return[...Object.keys(e).map((function(r){const o=t?.activePlugin.pluginId===r?t.activeVersion:void 0,i=n[r],s=e[r].versions.find((e=>e.isLast));return a(r,(o??i??s).name)}))]}},609:(e,t,n)=>{"use strict";n.d(t,{V:()=>l,t:()=>c});var r=n(6540),o=n(9532),a=n(4848);const i=Symbol("EmptyContext"),s=r.createContext(i);function l(e){let{children:t,name:n,items:o}=e;const i=(0,r.useMemo)((()=>n&&o?{name:n,items:o}:null),[n,o]);return(0,a.jsx)(s.Provider,{value:i,children:t})}function c(){const e=(0,r.useContext)(s);if(e===i)throw new o.dV("DocsSidebarProvider");return e}},6972:(e,t,n)=>{"use strict";n.d(t,{$S:()=>f,B5:()=>_,Nr:()=>p,OF:()=>x,QB:()=>k,Vd:()=>w,Y:()=>y,d1:()=>E,fW:()=>S,w8:()=>g});var r=n(6540),o=n(6347),a=n(2831),i=n(8295),s=n(9169),l=n(1682),c=n(3886),u=n(3025),d=n(609);function p(e){return"link"!==e.type||e.unlisted?"category"===e.type?function(e){if(e.href&&!e.linkUnlisted)return e.href;for(const t of e.items){const e=p(t);if(e)return e}}(e):void 0:e.href}function f(){const{pathname:e}=(0,o.zy)(),t=(0,d.t)();if(!t)throw new Error("Unexpected: cant find current sidebar in context");const n=v({sidebarItems:t.items,pathname:e,onlyCategories:!0}).slice(-1)[0];if(!n)throw new Error(`${e} is not associated with a category. useCurrentSidebarCategory() should only be used on category index pages.`);return n}const h=(e,t)=>void 0!==e&&(0,s.ys)(e,t),m=(e,t)=>e.some((e=>g(e,t)));function g(e,t){return"link"===e.type?h(e.href,t):"category"===e.type&&(h(e.href,t)||m(e.items,t))}function b(e,t){switch(e.type){case"category":return g(e,t)||e.items.some((e=>b(e,t)));case"link":return!e.unlisted||g(e,t);default:return!0}}function y(e,t){return(0,r.useMemo)((()=>e.filter((e=>b(e,t)))),[e,t])}function v(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const o=[];return function e(t){for(const a of t)if("category"===a.type&&((0,s.ys)(a.href,n)||e(a.items))||"link"===a.type&&(0,s.ys)(a.href,n)){return r&&"category"!==a.type||o.unshift(a),!0}return!1}(t),o}function x(){const e=(0,d.t)(),{pathname:t}=(0,o.zy)(),n=(0,i.vT)()?.pluginData.breadcrumbs;return!1!==n&&e?v({sidebarItems:e.items,pathname:t}):null}function w(e){const{activeVersion:t}=(0,i.zK)(e),{preferredVersion:n}=(0,c.g1)(e),o=(0,i.r7)(e);return(0,r.useMemo)((()=>(0,l.sb)([t,n,o].filter(Boolean))),[t,n,o])}function S(e,t){const n=w(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable sidebar ids are:\n- ${t.map((e=>e[0])).join("\n- ")}`);return r[1]}),[e,n])}function k(e,t){const n=w(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`Couldn't find any doc with id "${e}" in version${n.length>1?"s":""} "${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${(0,l.sb)(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function _(e){let{route:t}=e;const n=(0,o.zy)(),r=(0,u.r)(),i=t.routes,s=i.find((e=>(0,o.B6)(n.pathname,e)));if(!s)return null;const l=s.sidebar,c=l?r.docsSidebars[l]:void 0;return{docElement:(0,a.v)(i),sidebarName:l,sidebarItems:c}}function E(e){return e.filter((e=>!("category"===e.type||"link"===e.type)||!!p(e)))}},3025:(e,t,n)=>{"use strict";n.d(t,{n:()=>s,r:()=>l});var r=n(6540),o=n(9532),a=n(4848);const i=r.createContext(null);function s(e){let{children:t,version:n}=e;return(0,a.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(null===e)throw new o.dV("DocsVersionProvider");return e}},8295:(e,t,n)=>{"use strict";n.d(t,{d1:()=>l.d1,zK:()=>y,vT:()=>h,gk:()=>m,Gy:()=>p,$S:()=>l.$S,HW:()=>v,vF:()=>u.v,ht:()=>f,g1:()=>c.g1,r7:()=>b,jh:()=>g});var r=n(6347),o=n(6588);const a=e=>e.versions.find((e=>e.isLast));function i(e,t){return[...e.versions].sort(((e,t)=>e.path===t.path?0:e.path.includes(t.path)?-1:t.path.includes(e.path)?1:0)).find((e=>!!(0,r.B6)(t,{path:e.path,exact:!1,strict:!1})))}function s(e,t){const n=i(e,t),o=n?.docs.find((e=>!!(0,r.B6)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:o,alternateDocVersions:o?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(o.id):{}}}var l=n(6972),c=n(3886),u=n(2565);const d={},p=()=>(0,o.kh)("docusaurus-plugin-content-docs")??d,f=e=>{try{return(0,o.P_)("docusaurus-plugin-content-docs",e,{failfast:!0})}catch(t){throw new Error("You are using a feature of the Docusaurus docs plugin, but this plugin does not seem to be enabled"+("Default"===e?"":` (pluginId=${e}`),{cause:t})}};function h(e){void 0===e&&(e={});const t=p(),{pathname:n}=(0,r.zy)();return function(e,t,n){void 0===n&&(n={});const o=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.B6)(t,{path:n.path,exact:!1,strict:!1})})),a=o?{pluginId:o[0],pluginData:o[1]}:void 0;if(!a&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return a}(t,n,e)}function m(e){void 0===e&&(e={});const t=h(e),{pathname:n}=(0,r.zy)();if(!t)return;return{activePlugin:t,activeVersion:i(t.pluginData,n)}}function g(e){return f(e).versions}function b(e){const t=f(e);return a(t)}function y(e){const t=f(e),{pathname:n}=(0,r.zy)();return s(t,n)}function v(e){const t=f(e),{pathname:n}=(0,r.zy)();return function(e,t){const n=a(e);return{latestDocSuggestion:s(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},6294:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(5947),o=n.n(r);o().configure({showSpinner:!1});const a={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{o().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){o().done()}}},6134:(e,t,n)=>{"use strict";n.r(t);var r=n(1765),o=n(4784);!function(e){const{themeConfig:{prism:t}}=o.default,{additionalLanguages:r}=t;globalThis.Prism=e,r.forEach((e=>{"php"===e&&n(9700),n(875)(`./prism-${e}`)})),delete globalThis.Prism}(r.My)},1107:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});n(6540);var r=n(4164),o=n(1312),a=n(6342),i=n(8774),s=n(3427);const l={anchorWithStickyNavbar:"anchorWithStickyNavbar_LWe7",anchorWithHideOnScrollNavbar:"anchorWithHideOnScrollNavbar_WYt5"};var c=n(4848);function u(e){let{as:t,id:n,...u}=e;const d=(0,s.A)(),{navbar:{hideOnScroll:p}}=(0,a.p)();if("h1"===t||!n)return(0,c.jsx)(t,{...u,id:void 0});d.collectAnchor(n);const f=(0,o.T)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}",description:"Title for link to heading"},{heading:"string"==typeof u.children?u.children:n});return(0,c.jsxs)(t,{...u,className:(0,r.A)("anchor",p?l.anchorWithHideOnScrollNavbar:l.anchorWithStickyNavbar,u.className),id:n,children:[u.children,(0,c.jsx)(i.A,{className:"hash-link",to:`#${n}`,"aria-label":f,title:f,children:"\u200b"})]})}},3186:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(6540);const r={iconExternalLink:"iconExternalLink_nPIU"};var o=n(4848);function a(e){let{width:t=13.5,height:n=13.5}=e;return(0,o.jsx)("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:r.iconExternalLink,children:(0,o.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})}},263:(e,t,n)=>{"use strict";n.d(t,{A:()=>Dt});var r=n(6540),o=n(4164),a=n(7489),i=n(1213),s=n(6347),l=n(1312),c=n(5062),u=n(4848);const d="__docusaurus_skipToContent_fallback";function p(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function f(){const e=(0,r.useRef)(null),{action:t}=(0,s.W6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.getElementById(d);t&&p(t)}),[]);return(0,c.$)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&p(e.current)})),{containerRef:e,onClick:n}}const h=(0,l.T)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function m(e){const t=e.children??h,{containerRef:n,onClick:r}=f();return(0,u.jsx)("div",{ref:n,role:"region","aria-label":h,children:(0,u.jsx)("a",{...e,href:`#${d}`,onClick:r,children:t})})}var g=n(7559),b=n(4090);const y={skipToContent:"skipToContent_fXgn"};function v(){return(0,u.jsx)(m,{className:y.skipToContent})}var x=n(6342),w=n(5041);function S(e){let{width:t=21,height:n=21,color:r="currentColor",strokeWidth:o=1.2,className:a,...i}=e;return(0,u.jsx)("svg",{viewBox:"0 0 15 15",width:t,height:n,...i,children:(0,u.jsx)("g",{stroke:r,strokeWidth:o,children:(0,u.jsx)("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})})})}const k={closeButton:"closeButton_CVFx"};function _(e){return(0,u.jsx)("button",{type:"button","aria-label":(0,l.T)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"}),...e,className:(0,o.A)("clean-btn close",k.closeButton,e.className),children:(0,u.jsx)(S,{width:14,height:14,strokeWidth:3.1})})}const E={content:"content_knG7"};function C(e){const{announcementBar:t}=(0,x.p)(),{content:n}=t;return(0,u.jsx)("div",{...e,className:(0,o.A)(E.content,e.className),dangerouslySetInnerHTML:{__html:n}})}const A={announcementBar:"announcementBar_mb4j",announcementBarPlaceholder:"announcementBarPlaceholder_vyr4",announcementBarClose:"announcementBarClose_gvF7",announcementBarContent:"announcementBarContent_xLdY"};function T(){const{announcementBar:e}=(0,x.p)(),{isActive:t,close:n}=(0,w.M)();if(!t)return null;const{backgroundColor:r,textColor:o,isCloseable:a}=e;return(0,u.jsxs)("div",{className:A.announcementBar,style:{backgroundColor:r,color:o},role:"banner",children:[a&&(0,u.jsx)("div",{className:A.announcementBarPlaceholder}),(0,u.jsx)(C,{className:A.announcementBarContent}),a&&(0,u.jsx)(_,{onClick:n,className:A.announcementBarClose})]})}var P=n(2069),L=n(3104);var O=n(9532),N=n(5600);const j=r.createContext(null);function R(e){let{children:t}=e;const n=function(){const e=(0,P.M)(),t=(0,N.YL)(),[n,o]=(0,r.useState)(!1),a=null!==t.component,i=(0,O.ZC)(a);return(0,r.useEffect)((()=>{a&&!i&&o(!0)}),[a,i]),(0,r.useEffect)((()=>{a?e.shown||o(!0):o(!1)}),[e.shown,a]),(0,r.useMemo)((()=>[n,o]),[n])}();return(0,u.jsx)(j.Provider,{value:n,children:t})}function I(e){if(e.component){const t=e.component;return(0,u.jsx)(t,{...e.props})}}function F(){const e=(0,r.useContext)(j);if(!e)throw new O.dV("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,o=(0,r.useCallback)((()=>n(!1)),[n]),a=(0,N.YL)();return(0,r.useMemo)((()=>({shown:t,hide:o,content:I(a)})),[o,a,t])}function M(e){let{header:t,primaryMenu:n,secondaryMenu:r}=e;const{shown:a}=F();return(0,u.jsxs)("div",{className:"navbar-sidebar",children:[t,(0,u.jsxs)("div",{className:(0,o.A)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":a}),children:[(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:n}),(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:r})]})]})}var z=n(5293),D=n(2303);function B(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})})}function $(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})})}const V={toggle:"toggle_vylO",toggleButton:"toggleButton_gllP",darkToggleIcon:"darkToggleIcon_wfgR",lightToggleIcon:"lightToggleIcon_pyhR",toggleButtonDisabled:"toggleButtonDisabled_aARS"};function U(e){let{className:t,buttonClassName:n,value:r,onChange:a}=e;const i=(0,D.A)(),s=(0,l.T)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===r?(0,l.T)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,l.T)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return(0,u.jsx)("div",{className:(0,o.A)(V.toggle,t),children:(0,u.jsxs)("button",{className:(0,o.A)("clean-btn",V.toggleButton,!i&&V.toggleButtonDisabled,n),type:"button",onClick:()=>a("dark"===r?"light":"dark"),disabled:!i,title:s,"aria-label":s,"aria-live":"polite",children:[(0,u.jsx)(B,{className:(0,o.A)(V.toggleIcon,V.lightToggleIcon)}),(0,u.jsx)($,{className:(0,o.A)(V.toggleIcon,V.darkToggleIcon)})]})})}const H=r.memo(U),Q={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_X3D1"};function W(e){let{className:t}=e;const n=(0,x.p)().navbar.style,r=(0,x.p)().colorMode.disableSwitch,{colorMode:o,setColorMode:a}=(0,z.G)();return r?null:(0,u.jsx)(H,{className:t,buttonClassName:"dark"===n?Q.darkNavbarColorModeToggle:void 0,value:o,onChange:a})}var G=n(3465);function q(){return(0,u.jsx)(G.A,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function Y(){const e=(0,P.M)();return(0,u.jsx)("button",{type:"button","aria-label":(0,l.T)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle(),children:(0,u.jsx)(S,{color:"var(--ifm-color-emphasis-600)"})})}function K(){return(0,u.jsxs)("div",{className:"navbar-sidebar__brand",children:[(0,u.jsx)(q,{}),(0,u.jsx)(W,{className:"margin-right--md"}),(0,u.jsx)(Y,{})]})}var Z=n(8774),X=n(6025),J=n(6654);function ee(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}var te=n(3186);function ne(e){let{activeBasePath:t,activeBaseRegex:n,to:r,href:o,label:a,html:i,isDropdownLink:s,prependBaseUrlToHref:l,...c}=e;const d=(0,X.Ay)(r),p=(0,X.Ay)(t),f=(0,X.Ay)(o,{forcePrependBaseUrl:!0}),h=a&&o&&!(0,J.A)(o),m=i?{dangerouslySetInnerHTML:{__html:i}}:{children:(0,u.jsxs)(u.Fragment,{children:[a,h&&(0,u.jsx)(te.A,{...s&&{width:12,height:12}})]})};return o?(0,u.jsx)(Z.A,{href:l?f:o,...c,...m}):(0,u.jsx)(Z.A,{to:d,isNavLink:!0,...(t||n)&&{isActive:(e,t)=>n?ee(n,t.pathname):t.pathname.startsWith(p)},...c,...m})}function re(e){let{className:t,isDropdownItem:n=!1,...r}=e;const a=(0,u.jsx)(ne,{className:(0,o.A)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n,...r});return n?(0,u.jsx)("li",{children:a}):a}function oe(e){let{className:t,isDropdownItem:n,...r}=e;return(0,u.jsx)("li",{className:"menu__list-item",children:(0,u.jsx)(ne,{className:(0,o.A)("menu__link",t),...r})})}function ae(e){let{mobile:t=!1,position:n,...r}=e;const o=t?oe:re;return(0,u.jsx)(o,{...r,activeClassName:r.activeClassName??(t?"menu__link--active":"navbar__link--active")})}var ie=n(1422),se=n(9169),le=n(4586);const ce={dropdownNavbarItemMobile:"dropdownNavbarItemMobile_S0Fm"};function ue(e,t){return e.some((e=>function(e,t){return!!(0,se.ys)(e.to,t)||!!ee(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function de(e){let{items:t,position:n,className:a,onClick:i,...s}=e;const l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[l]),(0,u.jsxs)("div",{ref:l,className:(0,o.A)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":c}),children:[(0,u.jsx)(ne,{"aria-haspopup":"true","aria-expanded":c,role:"button",href:s.to?void 0:"#",className:(0,o.A)("navbar__link",a),...s,onClick:s.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d(!c))},children:s.children??s.label}),(0,u.jsx)("ul",{className:"dropdown__menu",children:t.map(((e,t)=>(0,r.createElement)(Ze,{isDropdownItem:!0,activeClassName:"dropdown__link--active",...e,key:t})))})]})}function pe(e){let{items:t,className:n,position:a,onClick:i,...l}=e;const c=function(){const{siteConfig:{baseUrl:e}}=(0,le.A)(),{pathname:t}=(0,s.zy)();return t.replace(e,"/")}(),d=ue(t,c),{collapsed:p,toggleCollapsed:f,setCollapsed:h}=(0,ie.u)({initialState:()=>!d});return(0,r.useEffect)((()=>{d&&h(!d)}),[c,d,h]),(0,u.jsxs)("li",{className:(0,o.A)("menu__list-item",{"menu__list-item--collapsed":p}),children:[(0,u.jsx)(ne,{role:"button",className:(0,o.A)(ce.dropdownNavbarItemMobile,"menu__link menu__link--sublist menu__link--sublist-caret",n),...l,onClick:e=>{e.preventDefault(),f()},children:l.children??l.label}),(0,u.jsx)(ie.N,{lazy:!0,as:"ul",className:"menu__list",collapsed:p,children:t.map(((e,t)=>(0,r.createElement)(Ze,{mobile:!0,isDropdownItem:!0,onClick:i,activeClassName:"menu__link--active",...e,key:t})))})]})}function fe(e){let{mobile:t=!1,...n}=e;const r=t?pe:de;return(0,u.jsx)(r,{...n})}var he=n(2131);function me(e){let{width:t=20,height:n=20,...r}=e;return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0,...r,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"})})}const ge="iconLanguage_nlXk";var be=n(1088),ye=n(5391);var ve=n(6588);const xe={},we=()=>(0,ve.kh)("docusaurus-plugin-content-docs")??xe;function Se(e){void 0===e&&(e={});const t=we(),{pathname:n}=(0,s.zy)();return function(e,t,n){void 0===n&&(n={});const r=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,s.B6)(t,{path:n.path,exact:!1,strict:!1})})),o=r?{pluginId:r[0],pluginData:r[1]}:void 0;if(!o&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return o}(t,n,e)}var ke=n(5891),_e=n(2384),Ee=n(4471),Ce=n(7674),Ae=n(6841),Te=n(3810);const Pe='',Le='',Oe='',Ne='',je='',Re='',Ie='',Fe={searchBar:"searchBar_RVTs",dropdownMenu:"dropdownMenu_qbY6",searchBarLeft:"searchBarLeft_MXDe",suggestion:"suggestion_fB_2",cursor:"cursor_eG29",hitTree:"hitTree_kk6K",hitIcon:"hitIcon_a7Zy",hitPath:"hitPath_ieM4",noResultsIcon:"noResultsIcon_EBY5",hitFooter:"hitFooter_E9YW",hitWrapper:"hitWrapper_sAK8",hitTitle:"hitTitle_vyVt",hitAction:"hitAction_NqkB",hideAction:"hideAction_vcyE",noResults:"noResults_l6Q3",searchBarContainer:"searchBarContainer_NW3z",searchBarLoadingRing:"searchBarLoadingRing_YnHq",searchClearButton:"searchClearButton_qk4g",searchIndexLoading:"searchIndexLoading_EJ1f",searchHintContainer:"searchHintContainer_Pkmr",searchHint:"searchHint_iIMx",focused:"focused_OWtg",input:"input_FOTf",hint:"hint_URu1",suggestions:"suggestions_X8XU",dataset:"dataset_QiCy",empty:"empty_eITn"};function Me(e){let{document:t,type:n,page:r,metadata:o,tokens:a,isInterOfTree:i,isLastOfTree:s}=e;const l=0===n,c=1===n,u=[];i?u.push(Re):s&&u.push(Ie);const d=u.map((e=>`${e}`)),p=`${l?Pe:c?Le:Oe}`,f=[`${(0,Te.C)(t.t,(0,Ce.g)(o,"t"),a)}`];if(!i&&!s&&be.tb){const e=r?(r.b??[]).concat(r.t).concat(t.s&&t.s!==r.t?t.s:[]):t.b;f.push(`${(0,Ee.$)(e??[])}`)}else l||f.push(`${(0,Ae.Z)(r.t||(t.u.startsWith("/docs/api-reference/")?"API Reference":""),a)}`);const h=`${Ne}`;return[...d,p,``,...f,"",h].join("")}function ze(){return`${je}${(0,l.T)({id:"theme.SearchBar.noResultsText",message:"No results"})}`}var De=n(2849),Be=n(3385);async function $e(){const e=await Promise.all([n.e(489),n.e(5741)]).then(n.t.bind(n,489,23)),t=e.default;return t.noConflict?t.noConflict():e.noConflict&&e.noConflict(),t}const Ve="_highlight";const Ue=function(e){let{handleSearchBarToggle:t}=e;const o=(0,D.A)(),{siteConfig:{baseUrl:a},i18n:{currentLocale:i}}=(0,le.A)(),c=Se();let d=a;try{const{preferredVersion:e}=function(){return n(8295).g1(...arguments)}(c?.pluginId??be.UB);e&&!e.isLast&&(d=e.path+"/")}catch(z){if(be.I$&&!(z instanceof O.dV))throw z}const p=(0,s.W6)(),f=(0,s.zy)(),h=(0,r.useRef)(null),m=(0,r.useRef)(new Map),g=(0,r.useRef)(!1),[b,y]=(0,r.useState)(!1),[v,x]=(0,r.useState)(!1),[w,S]=(0,r.useState)(""),k=(0,r.useRef)(null),_=(0,r.useRef)(""),[E,C]=(0,r.useState)("");(0,r.useEffect)((()=>{if(!Array.isArray(be.Hg))return;let e="";if(f.pathname.startsWith(d)){const t=f.pathname.substring(d.length);let n;for(const e of be.Hg){const r="string"==typeof e?e:e.path;if(t===r||t.startsWith(`${r}/`)){n=r;break}}n&&(e=n)}_.current!==e&&(m.current.delete(e),_.current=e),C(e)}),[f.pathname,d]);const A=!!be.O6&&Array.isArray(be.Hg)&&""===E,T=(0,r.useCallback)((async()=>{if(A||m.current.get(E))return;m.current.set(E,"loading"),k.current?.autocomplete.destroy(),y(!0);const[{wrappedIndexes:e,zhDictionary:t},n]=await Promise.all([(0,ke.Z)(d,E),$e()]);if(k.current=n(h.current,{hint:!1,autoselect:!0,openOnFocus:!0,cssClasses:{root:(0,ye.A)(Fe.searchBar,{[Fe.searchBarLeft]:"left"===be.ZG}),noPrefix:!0,dropdownMenu:Fe.dropdownMenu,input:Fe.input,hint:Fe.hint,suggestions:Fe.suggestions,suggestion:Fe.suggestion,cursor:Fe.cursor,dataset:Fe.dataset,empty:Fe.empty}},[{source:(0,_e.m)(e,t,be.AT),templates:{suggestion:Me,empty:ze,footer:e=>{let{query:t,isEmpty:n}=e;if(n&&(!E||!be.dz))return;const r=(e=>{let{query:t,isEmpty:n}=e;const r=document.createElement("a"),o=new URLSearchParams;let s;if(o.set("q",t),E){const e=E&&Array.isArray(be.Hg)?be.Hg.find((e=>"string"==typeof e?e===E:e.path===E)):E,t=e?(0,Be.p)(e,i).label:E;s=be.dz&&n?(0,l.T)({id:"theme.SearchBar.seeAllOutsideContext",message:"See results outside {context}"},{context:t}):(0,l.T)({id:"theme.SearchBar.searchInContext",message:"See all results in {context}"},{context:t})}else s=(0,l.T)({id:"theme.SearchBar.seeAll",message:"See all results"});if(!E||!Array.isArray(be.Hg)||be.dz&&n||o.set("ctx",E),d!==a){if(!d.startsWith(a))throw new Error(`Version url '${d}' does not start with base url '${a}', this is a bug of \`@easyops-cn/docusaurus-search-local\`, please report it.`);o.set("version",d.substring(a.length))}const c=`${a}search?${o.toString()}`;return r.href=c,r.textContent=s,r.addEventListener("click",(e=>{e.ctrlKey||e.metaKey||(e.preventDefault(),k.current?.autocomplete.close(),p.push(c))})),r})({query:t,isEmpty:n}),o=document.createElement("div");return o.className=Fe.hitFooter,o.appendChild(r),o}}}]).on("autocomplete:selected",(function(e,t){let{document:{u:n,h:r},tokens:o}=t;h.current?.blur();let a=n;if(be.CU&&o.length>0){const e=new URLSearchParams;for(const t of o)e.append(Ve,t);a+=`?${e.toString()}`}r&&(a+=r),p.push(a)})).on("autocomplete:closed",(()=>{h.current?.blur()})),m.current.set(E,"done"),y(!1),g.current){const e=h.current;e.value&&k.current?.autocomplete.open(),e.focus()}}),[A,E,d,a,p]);(0,r.useEffect)((()=>{if(!be.CU)return;const e=o?new URLSearchParams(f.search).getAll(Ve):[];setTimeout((()=>{const t=document.querySelector("article");if(!t)return;const n=new be.CU(t);n.unmark(),0!==e.length&&n.mark(e),S(e.join(" ")),k.current?.autocomplete.setVal(e.join(" "))}))}),[o,f.search,f.pathname]);const[P,L]=(0,r.useState)(!1),N=(0,r.useCallback)((()=>{g.current=!0,T(),L(!0),t?.(!0)}),[t,T]),j=(0,r.useCallback)((()=>{L(!1),t?.(!1)}),[t]),R=(0,r.useCallback)((()=>{T()}),[T]),I=(0,r.useCallback)((e=>{S(e.target.value),e.target.value&&x(!0)}),[]),F=!!o&&/mac/i.test(navigator.userAgentData?.platform??navigator.platform);(0,r.useEffect)((()=>{if(!be.WW)return;const e=e=>{!(F?e.metaKey:e.ctrlKey)||"k"!==e.key&&"K"!==e.key||(e.preventDefault(),h.current?.focus(),N())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[F,N]);const M=(0,r.useCallback)((()=>{const e=new URLSearchParams(f.search);e.delete(Ve);const t=e.toString(),n=f.pathname+(""!=t?`?${t}`:"")+f.hash;n!=f.pathname+f.search+f.hash&&p.push(n),S(""),k.current?.autocomplete.setVal("")}),[f.pathname,f.search,f.hash,p]);return(0,u.jsxs)("div",{className:(0,ye.A)("navbar__search",Fe.searchBarContainer,{[Fe.searchIndexLoading]:b&&v,[Fe.focused]:P}),hidden:A,children:[(0,u.jsx)("input",{placeholder:(0,l.T)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"}),"aria-label":"Search",className:"navbar__search-input",onMouseEnter:R,onFocus:N,onBlur:j,onChange:I,ref:h,value:w}),(0,u.jsx)(De.A,{className:Fe.searchBarLoadingRing}),be.WW&&be.pk&&(""!==w?(0,u.jsx)("button",{className:Fe.searchClearButton,onClick:M,children:"\u2715"}):o&&(0,u.jsxs)("div",{className:Fe.searchHintContainer,children:[(0,u.jsx)("kbd",{className:Fe.searchHint,children:F?"\u2318":"ctrl"}),(0,u.jsx)("kbd",{className:Fe.searchHint,children:"K"})]}))]})},He={navbarSearchContainer:"navbarSearchContainer_Bca1"};function Qe(e){let{children:t,className:n}=e;return(0,u.jsx)("div",{className:(0,o.A)(n,He.navbarSearchContainer),children:t})}var We=n(8295),Ge=n(6972);var qe=n(3886);function Ye(e,t){return t.alternateDocVersions[e.name]??function(e){return e.docs.find((t=>t.id===e.mainDocId))}(e)}const Ke={default:ae,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:r,queryString:o="",...a}=e;const{i18n:{currentLocale:i,locales:c,localeConfigs:d}}=(0,le.A)(),p=(0,he.o)(),{search:f,hash:h}=(0,s.zy)(),m=[...n,...c.map((e=>{const n=`${`pathname://${p.createUrl({locale:e,fullyQualified:!1})}`}${f}${h}${o}`;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===i?t?"menu__link--active":"dropdown__link--active":""}})),...r],g=t?(0,l.T)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[i].label;return(0,u.jsx)(fe,{...a,mobile:t,label:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(me,{className:ge}),g]}),items:m})},search:function(e){let{mobile:t,className:n}=e;return t?null:(0,u.jsx)(Qe,{className:n,children:(0,u.jsx)(Ue,{})})},dropdown:fe,html:function(e){let{value:t,className:n,mobile:r=!1,isDropdownItem:a=!1}=e;const i=a?"li":"div";return(0,u.jsx)(i,{className:(0,o.A)({navbar__item:!r&&!a,"menu__list-item":r},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:r,...o}=e;const{activeDoc:a}=(0,We.zK)(r),i=(0,Ge.QB)(t,r),s=a?.path===i?.path;return null===i||i.unlisted&&!s?null:(0,u.jsx)(ae,{exact:!0,...o,isActive:()=>s||!!a?.sidebar&&a.sidebar===i.sidebar,label:n??i.id,to:i.path})},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:r,...o}=e;const{activeDoc:a}=(0,We.zK)(r),i=(0,Ge.fW)(t,r).link;if(!i)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return(0,u.jsx)(ae,{exact:!0,...o,isActive:()=>a?.sidebar===t,label:n??i.label,to:i.path})},docsVersion:function(e){let{label:t,to:n,docsPluginId:r,...o}=e;const a=(0,Ge.Vd)(r)[0],i=t??a.label,s=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(a).path;return(0,u.jsx)(ae,{...o,label:i,to:s})},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:r,dropdownItemsBefore:o,dropdownItemsAfter:a,...i}=e;const{search:c,hash:d}=(0,s.zy)(),p=(0,We.zK)(n),f=(0,We.jh)(n),{savePreferredVersionName:h}=(0,qe.g1)(n),m=[...o,...f.map((function(e){const t=Ye(e,p);return{label:e.label,to:`${t.path}${c}${d}`,isActive:()=>e===p.activeVersion,onClick:()=>h(e.name)}})),...a],g=(0,Ge.Vd)(n)[0],b=t&&m.length>1?(0,l.T)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):g.label,y=t&&m.length>1?void 0:Ye(g,p).path;return m.length<=1?(0,u.jsx)(ae,{...i,mobile:t,label:b,to:y,isActive:r?()=>!1:void 0}):(0,u.jsx)(fe,{...i,mobile:t,label:b,to:y,items:m,isActive:r?()=>!1:void 0})}};function Ze(e){let{type:t,...n}=e;const r=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),o=Ke[r];if(!o)throw new Error(`No NavbarItem component found for type "${t}".`);return(0,u.jsx)(o,{...n})}function Xe(){const e=(0,P.M)(),t=(0,x.p)().navbar.items;return(0,u.jsx)("ul",{className:"menu__list",children:t.map(((t,n)=>(0,r.createElement)(Ze,{mobile:!0,...t,onClick:()=>e.toggle(),key:n})))})}function Je(e){return(0,u.jsx)("button",{...e,type:"button",className:"clean-btn navbar-sidebar__back",children:(0,u.jsx)(l.A,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)",children:"\u2190 Back to main menu"})})}function et(){const e=0===(0,x.p)().navbar.items.length,t=F();return(0,u.jsxs)(u.Fragment,{children:[!e&&(0,u.jsx)(Je,{onClick:()=>t.hide()}),t.content]})}function tt(){const e=(0,P.M)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?(0,u.jsx)(M,{header:(0,u.jsx)(K,{}),primaryMenu:(0,u.jsx)(Xe,{}),secondaryMenu:(0,u.jsx)(et,{})}):null}const nt={navbarHideable:"navbarHideable_m1mJ",navbarHidden:"navbarHidden_jGov"};function rt(e){return(0,u.jsx)("div",{role:"presentation",...e,className:(0,o.A)("navbar-sidebar__backdrop",e.className)})}function ot(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:a}}=(0,x.p)(),i=(0,P.M)(),{navbarRef:s,isNavbarVisible:d}=function(e){const[t,n]=(0,r.useState)(e),o=(0,r.useRef)(!1),a=(0,r.useRef)(0),i=(0,r.useCallback)((e=>{null!==e&&(a.current=e.getBoundingClientRect().height)}),[]);return(0,L.Mq)(((t,r)=>{let{scrollY:i}=t;if(!e)return;if(i=s?n(!1):i+c{if(!e)return;const r=t.location.hash;if(r?document.getElementById(r.substring(1)):void 0)return o.current=!0,void n(!1);n(!0)})),{navbarRef:i,isNavbarVisible:t}}(n);return(0,u.jsxs)("nav",{ref:s,"aria-label":(0,l.T)({id:"theme.NavBar.navAriaLabel",message:"Main",description:"The ARIA label for the main navigation"}),className:(0,o.A)("navbar","navbar--fixed-top",n&&[nt.navbarHideable,!d&&nt.navbarHidden],{"navbar--dark":"dark"===a,"navbar--primary":"primary"===a,"navbar-sidebar--show":i.shown}),children:[t,(0,u.jsx)(rt,{onClick:i.toggle}),(0,u.jsx)(tt,{})]})}var at=n(440);const it={errorBoundaryError:"errorBoundaryError_a6uf",errorBoundaryFallback:"errorBoundaryFallback_VBag"};function st(e){return(0,u.jsx)("button",{type:"button",...e,children:(0,u.jsx)(l.A,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again rendering when the React error boundary captures an error",children:"Try again"})})}function lt(e){let{error:t}=e;const n=(0,at.rA)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,u.jsx)("p",{className:it.errorBoundaryError,children:n})}class ct extends r.Component{componentDidCatch(e,t){throw this.props.onError(e,t)}render(){return this.props.children}}const ut="right";function dt(e){let{width:t=30,height:n=30,className:r,...o}=e;return(0,u.jsx)("svg",{className:r,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true",...o,children:(0,u.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"})})}function pt(){const{toggle:e,shown:t}=(0,P.M)();return(0,u.jsx)("button",{onClick:e,"aria-label":(0,l.T)({id:"theme.docs.sidebar.toggleSidebarButtonAriaLabel",message:"Toggle navigation bar",description:"The ARIA label for hamburger menu button of mobile navigation"}),"aria-expanded":t,className:"navbar__toggle clean-btn",type:"button",children:(0,u.jsx)(dt,{})})}const ft={colorModeToggle:"colorModeToggle_DEke"};function ht(e){let{items:t}=e;return(0,u.jsx)(u.Fragment,{children:t.map(((e,t)=>(0,u.jsx)(ct,{onError:t=>new Error(`A theme navbar item failed to render.\nPlease double-check the following navbar item (themeConfig.navbar.items) of your Docusaurus config:\n${JSON.stringify(e,null,2)}`,{cause:t}),children:(0,u.jsx)(Ze,{...e})},t)))})}function mt(e){let{left:t,right:n}=e;return(0,u.jsxs)("div",{className:"navbar__inner",children:[(0,u.jsx)("div",{className:"navbar__items",children:t}),(0,u.jsx)("div",{className:"navbar__items navbar__items--right",children:n})]})}function gt(){const e=(0,P.M)(),t=(0,x.p)().navbar.items,[n,r]=function(e){function t(e){return"left"===(e.position??ut)}return[e.filter(t),e.filter((e=>!t(e)))]}(t),o=t.find((e=>"search"===e.type));return(0,u.jsx)(mt,{left:(0,u.jsxs)(u.Fragment,{children:[!e.disabled&&(0,u.jsx)(pt,{}),(0,u.jsx)(q,{}),(0,u.jsx)(ht,{items:n})]}),right:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ht,{items:r}),(0,u.jsx)(W,{className:ft.colorModeToggle}),!o&&(0,u.jsx)(Qe,{children:(0,u.jsx)(Ue,{})})]})})}function bt(){return(0,u.jsx)(ot,{children:(0,u.jsx)(gt,{})})}function yt(e){let{item:t}=e;const{to:n,href:r,label:o,prependBaseUrlToHref:a,...i}=t,s=(0,X.Ay)(n),l=(0,X.Ay)(r,{forcePrependBaseUrl:!0});return(0,u.jsxs)(Z.A,{className:"footer__link-item",...r?{href:a?l:r}:{to:s},...i,children:[o,r&&!(0,J.A)(r)&&(0,u.jsx)(te.A,{})]})}function vt(e){let{item:t}=e;return t.html?(0,u.jsx)("li",{className:"footer__item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)("li",{className:"footer__item",children:(0,u.jsx)(yt,{item:t})},t.href??t.to)}function xt(e){let{column:t}=e;return(0,u.jsxs)("div",{className:"col footer__col",children:[(0,u.jsx)("div",{className:"footer__title",children:t.title}),(0,u.jsx)("ul",{className:"footer__items clean-list",children:t.items.map(((e,t)=>(0,u.jsx)(vt,{item:e},t)))})]})}function wt(e){let{columns:t}=e;return(0,u.jsx)("div",{className:"row footer__links",children:t.map(((e,t)=>(0,u.jsx)(xt,{column:e},t)))})}function St(){return(0,u.jsx)("span",{className:"footer__link-separator",children:"\xb7"})}function kt(e){let{item:t}=e;return t.html?(0,u.jsx)("span",{className:"footer__link-item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)(yt,{item:t})}function _t(e){let{links:t}=e;return(0,u.jsx)("div",{className:"footer__links text--center",children:(0,u.jsx)("div",{className:"footer__links",children:t.map(((e,n)=>(0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(kt,{item:e}),t.length!==n+1&&(0,u.jsx)(St,{})]},n)))})})}function Et(e){let{links:t}=e;return function(e){return"title"in e[0]}(t)?(0,u.jsx)(wt,{columns:t}):(0,u.jsx)(_t,{links:t})}var Ct=n(1122);const At={footerLogoLink:"footerLogoLink_BH7S"};function Tt(e){let{logo:t}=e;const{withBaseUrl:n}=(0,X.hH)(),r={light:n(t.src),dark:n(t.srcDark??t.src)};return(0,u.jsx)(Ct.A,{className:(0,o.A)("footer__logo",t.className),alt:t.alt,sources:r,width:t.width,height:t.height,style:t.style})}function Pt(e){let{logo:t}=e;return t.href?(0,u.jsx)(Z.A,{href:t.href,className:At.footerLogoLink,target:t.target,children:(0,u.jsx)(Tt,{logo:t})}):(0,u.jsx)(Tt,{logo:t})}function Lt(e){let{copyright:t}=e;return(0,u.jsx)("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:t}})}function Ot(e){let{style:t,links:n,logo:r,copyright:a}=e;return(0,u.jsx)("footer",{className:(0,o.A)("footer",{"footer--dark":"dark"===t}),children:(0,u.jsxs)("div",{className:"container container-fluid",children:[n,(r||a)&&(0,u.jsxs)("div",{className:"footer__bottom text--center",children:[r&&(0,u.jsx)("div",{className:"margin-bottom--sm",children:r}),a]})]})})}function Nt(){const{footer:e}=(0,x.p)();if(!e)return null;const{copyright:t,links:n,logo:r,style:o}=e;return(0,u.jsx)(Ot,{style:o,links:n&&n.length>0&&(0,u.jsx)(Et,{links:n}),logo:r&&(0,u.jsx)(Pt,{logo:r}),copyright:t&&(0,u.jsx)(Lt,{copyright:t})})}const jt=r.memo(Nt),Rt=(0,O.fM)([z.a,w.o,L.Tv,qe.VQ,i.Jx,function(e){let{children:t}=e;return(0,u.jsx)(N.y_,{children:(0,u.jsx)(P.e,{children:(0,u.jsx)(R,{children:t})})})}]);function It(e){let{children:t}=e;return(0,u.jsx)(Rt,{children:t})}var Ft=n(1107);function Mt(e){let{error:t,tryAgain:n}=e;return(0,u.jsx)("main",{className:"container margin-vert--xl",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,u.jsx)(Ft.A,{as:"h1",className:"hero__title",children:(0,u.jsx)(l.A,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed",children:"This page crashed."})}),(0,u.jsx)("div",{className:"margin-vert--lg",children:(0,u.jsx)(st,{onClick:n,className:"button button--primary shadow--lw"})}),(0,u.jsx)("hr",{}),(0,u.jsx)("div",{className:"margin-vert--md",children:(0,u.jsx)(lt,{error:t})})]})})})}const zt={mainWrapper:"mainWrapper_z2l0"};function Dt(e){const{children:t,noFooter:n,wrapperClassName:r,title:s,description:l}=e;return(0,b.J)(),(0,u.jsxs)(It,{children:[(0,u.jsx)(i.be,{title:s,description:l}),(0,u.jsx)(v,{}),(0,u.jsx)(T,{}),(0,u.jsx)(bt,{}),(0,u.jsx)("div",{id:d,className:(0,o.A)(g.G.wrapper.main,zt.mainWrapper,r),children:(0,u.jsx)(a.A,{fallback:e=>(0,u.jsx)(Mt,{...e}),children:t})}),!n&&(0,u.jsx)(jt,{})]})}},3465:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});n(6540);var r=n(8774),o=n(6025),a=n(4586),i=n(6342),s=n(1122),l=n(4848);function c(e){let{logo:t,alt:n,imageClassName:r}=e;const a={light:(0,o.Ay)(t.src),dark:(0,o.Ay)(t.srcDark||t.src)},i=(0,l.jsx)(s.A,{className:t.className,sources:a,height:t.height,width:t.width,alt:n,style:t.style});return r?(0,l.jsx)("div",{className:r,children:i}):i}function u(e){const{siteConfig:{title:t}}=(0,a.A)(),{navbar:{title:n,logo:s}}=(0,i.p)(),{imageClassName:u,titleClassName:d,...p}=e,f=(0,o.Ay)(s?.href||"/"),h=n?"":t,m=s?.alt??h;return(0,l.jsxs)(r.A,{to:f,...p,...s?.target&&{target:s.target},children:[s&&(0,l.jsx)(c,{logo:s,alt:m,imageClassName:u}),null!=n&&(0,l.jsx)("b",{className:d,children:n})]})}},1463:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(6540);var r=n(5260),o=n(4848);function a(e){let{locale:t,version:n,tag:a}=e;const i=t;return(0,o.jsxs)(r.A,{children:[t&&(0,o.jsx)("meta",{name:"docusaurus_locale",content:t}),n&&(0,o.jsx)("meta",{name:"docusaurus_version",content:n}),a&&(0,o.jsx)("meta",{name:"docusaurus_tag",content:a}),i&&(0,o.jsx)("meta",{name:"docsearch:language",content:i}),n&&(0,o.jsx)("meta",{name:"docsearch:version",content:n}),a&&(0,o.jsx)("meta",{name:"docsearch:docusaurus_tag",content:a})]})}},1122:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(6540),o=n(4164),a=n(2303),i=n(5293);const s={themedComponent:"themedComponent_mlkZ","themedComponent--light":"themedComponent--light_NVdE","themedComponent--dark":"themedComponent--dark_xIcU"};var l=n(4848);function c(e){let{className:t,children:n}=e;const c=(0,a.A)(),{colorMode:u}=(0,i.G)();return(0,l.jsx)(l.Fragment,{children:(c?"dark"===u?["dark"]:["light"]:["light","dark"]).map((e=>{const a=n({theme:e,className:(0,o.A)(t,s.themedComponent,s[`themedComponent--${e}`])});return(0,l.jsx)(r.Fragment,{children:a},e)}))})}function u(e){const{sources:t,className:n,alt:r,...o}=e;return(0,l.jsx)(c,{className:n,children:e=>{let{theme:n,className:a}=e;return(0,l.jsx)("img",{src:t[n],alt:r,className:a,...o})}})}},1422:(e,t,n)=>{"use strict";n.d(t,{N:()=>b,u:()=>c});var r=n(6540),o=n(8193),a=n(205),i=n(3109),s=n(4848);const l="ease-in-out";function c(e){let{initialState:t}=e;const[n,o]=(0,r.useState)(t??!1),a=(0,r.useCallback)((()=>{o((e=>!e))}),[]);return{collapsed:n,setCollapsed:o,toggleCollapsed:a}}const u={display:"none",overflow:"hidden",height:"0px"},d={display:"block",overflow:"visible",height:"auto"};function p(e,t){const n=t?u:d;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function f(e){let{collapsibleRef:t,collapsed:n,animation:o}=e;const a=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const e=t.current;function r(){const t=e.scrollHeight,n=o?.duration??function(e){if((0,i.O)())return 1;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${o?.easing??l}`,height:`${t}px`}}function s(){const t=r();e.style.transition=t.transition,e.style.height=t.height}if(!a.current)return p(e,n),void(a.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(s(),requestAnimationFrame((()=>{e.style.height=u.height,e.style.overflow=u.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{s()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,o])}function h(e){if(!o.A.canUseDOM)return e?u:d}function m(e){let{as:t="div",collapsed:n,children:o,animation:a,onCollapseTransitionEnd:i,className:l,disableSSRStyle:c}=e;const u=(0,r.useRef)(null);return f({collapsibleRef:u,collapsed:n,animation:a}),(0,s.jsx)(t,{ref:u,style:c?void 0:h(n),onTransitionEnd:e=>{"height"===e.propertyName&&(p(u.current,n),i?.(n))},className:l,children:o})}function g(e){let{collapsed:t,...n}=e;const[o,i]=(0,r.useState)(!t),[l,c]=(0,r.useState)(t);return(0,a.A)((()=>{t||i(!0)}),[t]),(0,a.A)((()=>{o&&c(t)}),[o,t]),o?(0,s.jsx)(m,{...n,collapsed:l}):null}function b(e){let{lazy:t,...n}=e;const r=t?g:m;return(0,s.jsx)(r,{...n})}},5041:(e,t,n)=>{"use strict";n.d(t,{M:()=>m,o:()=>h});var r=n(6540),o=n(2303),a=n(679),i=n(9532),s=n(6342),l=n(4848);const c=(0,a.Wf)("docusaurus.announcement.dismiss"),u=(0,a.Wf)("docusaurus.announcement.id"),d=()=>"true"===c.get(),p=e=>c.set(String(e)),f=r.createContext(null);function h(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,s.p)(),t=(0,o.A)(),[n,a]=(0,r.useState)((()=>!!t&&d()));(0,r.useEffect)((()=>{a(d())}),[]);const i=(0,r.useCallback)((()=>{p(!0),a(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&p(!1),!r&&d()||a(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:i})),[e,n,i])}();return(0,l.jsx)(f.Provider,{value:n,children:t})}function m(){const e=(0,r.useContext)(f);if(!e)throw new i.dV("AnnouncementBarProvider");return e}},5293:(e,t,n)=>{"use strict";n.d(t,{G:()=>b,a:()=>g});var r=n(6540),o=n(8193),a=n(9532),i=n(679),s=n(6342),l=n(4848);const c=r.createContext(void 0),u="theme",d=(0,i.Wf)(u),p={light:"light",dark:"dark"},f=e=>e===p.dark?p.dark:p.light,h=e=>o.A.canUseDOM?f(document.documentElement.getAttribute("data-theme")):f(e),m=e=>{d.set(f(e))};function g(e){let{children:t}=e;const n=function(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,s.p)(),[o,a]=(0,r.useState)(h(e));(0,r.useEffect)((()=>{t&&d.del()}),[t]);const i=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:o=!0}=r;t?(a(t),o&&m(t)):(a(n?window.matchMedia("(prefers-color-scheme: dark)").matches?p.dark:p.light:e),d.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",f(o))}),[o]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=d.get();null!==t&&i(f(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,i]);const l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||l.current?l.current=window.matchMedia("print").matches:i(null)};return e.addListener(r),()=>e.removeListener(r)}),[i,t,n]),(0,r.useMemo)((()=>({colorMode:o,setColorMode:i,get isDarkTheme(){return o===p.dark},setLightTheme(){i(p.light)},setDarkTheme(){i(p.dark)}})),[o,i])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function b(){const e=(0,r.useContext)(c);if(null==e)throw new a.dV("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},2069:(e,t,n)=>{"use strict";n.d(t,{M:()=>f,e:()=>p});var r=n(6540),o=n(5600),a=n(4581),i=n(7485),s=n(6342),l=n(9532),c=n(4848);const u=r.createContext(void 0);function d(){const e=function(){const e=(0,o.YL)(),{items:t}=(0,s.p)().navbar;return 0===t.length&&!e.component}(),t=(0,a.l)(),n=!e&&"mobile"===t,[l,c]=(0,r.useState)(!1);(0,i.$Z)((()=>{if(l)return c(!1),!1}));const u=(0,r.useCallback)((()=>{c((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&c(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:u,shown:l})),[e,n,u,l])}function p(e){let{children:t}=e;const n=d();return(0,c.jsx)(u.Provider,{value:n,children:t})}function f(){const e=r.useContext(u);if(void 0===e)throw new l.dV("NavbarMobileSidebarProvider");return e}},5600:(e,t,n)=>{"use strict";n.d(t,{GX:()=>c,YL:()=>l,y_:()=>s});var r=n(6540),o=n(9532),a=n(4848);const i=r.createContext(null);function s(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return(0,a.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(!e)throw new o.dV("NavbarSecondaryMenuContentProvider");return e[0]}function c(e){let{component:t,props:n}=e;const a=(0,r.useContext)(i);if(!a)throw new o.dV("NavbarSecondaryMenuContentProvider");const[,s]=a,l=(0,o.Be)(n);return(0,r.useEffect)((()=>{s({component:t,props:l})}),[s,t,l]),(0,r.useEffect)((()=>()=>s({component:null,props:null})),[s]),null}},4090:(e,t,n)=>{"use strict";n.d(t,{w:()=>o,J:()=>a});var r=n(6540);const o="navigation-with-keyboard";function a(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(o),"mousedown"===e.type&&document.body.classList.remove(o)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(o),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},4581:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var r=n(6540),o=n(8193);const a={desktop:"desktop",mobile:"mobile",ssr:"ssr"},i=996;function s(e){let{desktopBreakpoint:t=i}=void 0===e?{}:e;const[n,s]=(0,r.useState)((()=>"ssr"));return(0,r.useEffect)((()=>{function e(){s(function(e){if(!o.A.canUseDOM)throw new Error("getWindowSize() should only be called after React hydration");return window.innerWidth>e?a.desktop:a.mobile}(t))}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t]),n}},7559:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",blogAuthorsListPage:"blog-authors-list-page",blogAuthorsPostsPage:"blog-authors-posts-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",unlistedBanner:"theme-unlisted-banner",draftBanner:"theme-draft-banner",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{blogFooterTagsRow:"theme-blog-footer-tags-row",blogFooterEditMetaRow:"theme-blog-footer-edit-meta-row"},pages:{pageFooterEditMetaRow:"theme-pages-footer-edit-meta-row"}}},3109:(e,t,n)=>{"use strict";function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}n.d(t,{O:()=>r})},7485:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>i,aZ:()=>l});var r=n(6540),o=n(6347),a=n(9532);function i(e){!function(e){const t=(0,o.W6)(),n=(0,a._q)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}function s(e){const t=(0,o.W6)();return(0,r.useSyncExternalStore)(t.listen,(()=>e(t)),(()=>e(t)))}function l(e){return s((t=>null===e?null:new URLSearchParams(t.location.search).get(e)))}},1682:(e,t,n)=>{"use strict";function r(e,t){return void 0===t&&(t=(e,t)=>e===t),e.filter(((n,r)=>e.findIndex((e=>t(e,n)))!==r))}function o(e){return Array.from(new Set(e))}function a(e,t){const n={};let r=0;for(const o of e){const e=t(o,r);n[e]??=[],n[e].push(o),r+=1}return n}n.d(t,{$z:()=>a,XI:()=>r,sb:()=>o})},1213:(e,t,n)=>{"use strict";n.d(t,{e3:()=>p,be:()=>u,Jx:()=>f});var r=n(6540),o=n(4164),a=n(5260),i=n(6803),s=n(6025),l=n(4586);var c=n(4848);function u(e){let{title:t,description:n,keywords:r,image:o,children:i}=e;const u=function(e){const{siteConfig:t}=(0,l.A)(),{title:n,titleDelimiter:r}=t;return e?.trim().length?`${e.trim()} ${r} ${n}`:n}(t),{withBaseUrl:d}=(0,s.hH)(),p=o?d(o,{absolute:!0}):void 0;return(0,c.jsxs)(a.A,{children:[t&&(0,c.jsx)("title",{children:u}),t&&(0,c.jsx)("meta",{property:"og:title",content:u}),n&&(0,c.jsx)("meta",{name:"description",content:n}),n&&(0,c.jsx)("meta",{property:"og:description",content:n}),r&&(0,c.jsx)("meta",{name:"keywords",content:Array.isArray(r)?r.join(","):r}),p&&(0,c.jsx)("meta",{property:"og:image",content:p}),p&&(0,c.jsx)("meta",{name:"twitter:image",content:p}),i]})}const d=r.createContext(void 0);function p(e){let{className:t,children:n}=e;const i=r.useContext(d),s=(0,o.A)(i,t);return(0,c.jsxs)(d.Provider,{value:s,children:[(0,c.jsx)(a.A,{children:(0,c.jsx)("html",{className:s})}),n]})}function f(e){let{children:t}=e;const n=(0,i.A)(),r=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const a=`plugin-id-${n.plugin.id}`;return(0,c.jsx)(p,{className:(0,o.A)(r,a),children:t})}},9532:(e,t,n)=>{"use strict";n.d(t,{Be:()=>c,ZC:()=>s,_q:()=>i,dV:()=>l,fM:()=>u});var r=n(6540),o=n(205),a=n(4848);function i(e){const t=(0,r.useRef)(e);return(0,o.A)((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function s(e){const t=(0,r.useRef)();return(0,o.A)((()=>{t.current=e})),t.current}class l extends Error{constructor(e,t){super(),this.name="ReactContextError",this.message=`Hook ${this.stack?.split("\n")[1]?.match(/at (?:\w+\.)?(?\w+)/)?.groups.name??""} is called outside the <${e}>. ${t??""}`}}function c(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return(0,a.jsx)(a.Fragment,{children:e.reduceRight(((e,t)=>(0,a.jsx)(t,{children:e})),n)})}}},9169:(e,t,n)=>{"use strict";n.d(t,{Dt:()=>s,ys:()=>i});var r=n(6540),o=n(8328),a=n(4586);function i(e,t){const n=e=>(!e||e.endsWith("/")?e:`${e}/`)?.toLowerCase();return n(e)===n(t)}function s(){const{baseUrl:e}=(0,a.A)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function o(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(o).flatMap((e=>e.routes??[])))}(n)}({routes:o.A,baseUrl:e})),[e])}},3104:(e,t,n)=>{"use strict";n.d(t,{Mq:()=>f,Tv:()=>u,a_:()=>h,gk:()=>m});var r=n(6540),o=n(8193),a=n(2303),i=n(205),s=n(9532),l=n(4848);const c=r.createContext(void 0);function u(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function d(){const e=(0,r.useContext)(c);if(null==e)throw new s.dV("ScrollControllerProvider");return e}const p=()=>o.A.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function f(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=d(),o=(0,r.useRef)(p()),a=(0,s._q)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=p();a(e,o.current),o.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[a,n,...t])}function h(){const e=d(),t=function(){const e=(0,r.useRef)({elem:null,top:0}),t=(0,r.useCallback)((t=>{e.current={elem:t,top:t.getBoundingClientRect().top}}),[]),n=(0,r.useCallback)((()=>{const{current:{elem:t,top:n}}=e;if(!t)return{restored:!1};const r=t.getBoundingClientRect().top-n;return r&&window.scrollBy({left:0,top:r}),e.current={elem:null,top:0},{restored:0!==r}}),[]);return(0,r.useMemo)((()=>({save:t,restore:n})),[n,t])}(),n=(0,r.useRef)(void 0),o=(0,r.useCallback)((r=>{t.save(r),e.disableScrollEvents(),n.current=()=>{const{restored:r}=t.restore();if(n.current=void 0,r){const t=()=>{e.enableScrollEvents(),window.removeEventListener("scroll",t)};window.addEventListener("scroll",t)}else e.enableScrollEvents()}}),[e,t]);return(0,i.A)((()=>{queueMicrotask((()=>n.current?.()))})),{blockElementScrollPositionUntilNextRender:o}}function m(){const e=(0,r.useRef)(null),t=(0,a.A)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const o=document.documentElement.scrollTop;(n&&o>e||!n&&ot&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>e.current?.()}}},679:(e,t,n)=>{"use strict";n.d(t,{Wf:()=>u,Dv:()=>d});var r=n(6540);const o=JSON.parse('{"N":"localStorage","M":""}'),a=o.N;function i(e){let{key:t,oldValue:n,newValue:r,storage:o}=e;if(n===r)return;const a=document.createEvent("StorageEvent");a.initStorageEvent("storage",!1,!1,t,n,r,window.location.href,o),window.dispatchEvent(a)}function s(e){if(void 0===e&&(e=a),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,l||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),l=!0),null}var t}let l=!1;const c={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};function u(e,t){const n=`${e}${o.M}`;if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t,listen:t}}(n);const r=s(t?.persistence);return null===r?c:{get:()=>{try{return r.getItem(n)}catch(e){return console.error(`Docusaurus storage error, can't get key=${n}`,e),null}},set:e=>{try{const t=r.getItem(n);r.setItem(n,e),i({key:n,oldValue:t,newValue:e,storage:r})}catch(t){console.error(`Docusaurus storage error, can't set ${n}=${e}`,t)}},del:()=>{try{const e=r.getItem(n);r.removeItem(n),i({key:n,oldValue:e,newValue:null,storage:r})}catch(e){console.error(`Docusaurus storage error, can't delete key=${n}`,e)}},listen:e=>{try{const t=t=>{t.storageArea===r&&t.key===n&&e(t)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)}catch(t){return console.error(`Docusaurus storage error, can't listen for changes of key=${n}`,t),()=>{}}}}}function d(e,t){const n=(0,r.useRef)((()=>null===e?c:u(e,t))).current(),o=(0,r.useCallback)((e=>"undefined"==typeof window?()=>{}:n.listen(e)),[n]);return[(0,r.useSyncExternalStore)(o,(()=>"undefined"==typeof window?null:n.get()),(()=>null)),n]}},2131:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(4586),o=n(6347),a=n(440);function i(){const{siteConfig:{baseUrl:e,url:t,trailingSlash:n},i18n:{defaultLocale:i,currentLocale:s}}=(0,r.A)(),{pathname:l}=(0,o.zy)(),c=(0,a.Ks)(l,{trailingSlash:n,baseUrl:e}),u=s===i?e:e.replace(`/${s}/`,"/"),d=c.replace(e,"");return{createUrl:function(e){let{locale:n,fullyQualified:r}=e;return`${r?t:""}${function(e){return e===i?`${u}`:`${u}${e}/`}(n)}${d}`}}}},5062:(e,t,n)=>{"use strict";n.d(t,{$:()=>i});var r=n(6540),o=n(6347),a=n(9532);function i(e){const t=(0,o.zy)(),n=(0,a.ZC)(t),i=(0,a._q)(e);(0,r.useEffect)((()=>{n&&t!==n&&i({location:t,previousLocation:n})}),[i,t,n])}},6342:(e,t,n)=>{"use strict";n.d(t,{p:()=>o});var r=n(4586);function o(){return(0,r.A)().siteConfig.themeConfig}},2983:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addTrailingSlash=o,t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[i]=e.split(/[#?]/),s="/"===i||i===r?i:(l=i,c=n,c?o(l):a(l));var l,c;return e.replace(i,s)},t.addLeadingSlash=function(e){return(0,r.addPrefix)(e,"/")},t.removeTrailingSlash=a;const r=n(2566);function o(e){return e.endsWith("/")?e:`${e}/`}function a(e){return(0,r.removeSuffix)(e,"/")}},253:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=function e(t){if(t.cause)return[t,...e(t.cause)];return[t]}},440:(e,t,n)=>{"use strict";t.rA=t.Ks=t.LU=void 0;const r=n(1635);t.LU="__blog-post-container";var o=n(2983);Object.defineProperty(t,"Ks",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var a=n(2566);var i=n(253);Object.defineProperty(t,"rA",{enumerable:!0,get:function(){return i.getErrorCausalChain}})},2566:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPrefix=function(e,t){return e.startsWith(t)?e:`${t}${e}`},t.removeSuffix=function(e,t){if(""===t)return e;return e.endsWith(t)?e.slice(0,-t.length):e},t.addSuffix=function(e,t){return e.endsWith(t)?e:`${e}${t}`},t.removePrefix=function(e,t){return e.startsWith(t)?e.slice(t.length):e}},2849:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(6540);var r=n(5391);const o={loadingRing:"loadingRing_RJI3","loading-ring":"loading-ring_FB5o"};var a=n(4848);function i(e){let{className:t}=e;return(0,a.jsxs)("div",{className:(0,r.A)(o.loadingRing,t),children:[(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{})]})}},5891:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(8291),o=n.n(r),a=n(1088);const i=new Map;function s(e,t){const n=`${e}${t}`;let r=i.get(n);return r||(r=async function(e,t){{const n=`${e}${a.IH.replace("{dir}",t?`-${t.replace(/\//g,"-")}`:"")}`;if(new URL(n,location.origin).origin!==location.origin)throw new Error("Unexpected version url");const r=await(await fetch(n)).json(),i=r.map(((e,t)=>{let{documents:n,index:r}=e;return{type:t,documents:n,index:o().Index.load(r)}})),s=r.reduce(((e,t)=>{for(const n of t.index.invertedIndex)/\p{Unified_Ideograph}/u.test(n[0][0])&&e.add(n[0]);return e}),new Set);return{wrappedIndexes:i,zhDictionary:Array.from(s)}}return{wrappedIndexes:[],zhDictionary:[]}}(e,t),i.set(n,r)),r}},2384:(e,t,n)=>{"use strict";n.d(t,{m:()=>l});var r=n(8291),o=n.n(r);var a=n(1088);function i(e){return s(e).concat(s(e.filter((e=>{const t=e[e.length-1];return!t.trailing&&t.maybeTyping})),!0))}function s(e,t){return e.map((e=>({tokens:e.map((e=>e.value)),term:e.map((e=>({value:e.value,presence:o().Query.presence.REQUIRED,wildcard:(t?e.trailing||e.maybeTyping:e.trailing)?o().Query.wildcard.TRAILING:o().Query.wildcard.NONE})))})))}function l(e,t,n){return function(r,s){const l=function(e,t){if(1===t.length&&["ja","jp","th"].includes(t[0]))return o()[t[0]].tokenizer(e).map((e=>e.toString()));let n=/[^-\s]+/g;return t.includes("zh")&&(n=/\w+|\p{Unified_Ideograph}+/gu),e.toLowerCase().match(n)||[]}(r,a.BH);if(0===l.length)return void s([]);const c=function(e,t){const n=function(e,t){const n=[];return function e(r,o){if(0===r.length)return void n.push(o);const a=r[0];if(/\p{Unified_Ideograph}/u.test(a)){const n=function(e,t){const n=[];return function e(r,o){let a=0,i=!1;for(const s of t)if(r.substr(0,s.length)===s){const t={missed:o.missed,term:o.term.concat({value:s})};r.length>s.length?e(r.substr(s.length),t):n.push(t),i=!0}else for(let t=s.length-1;t>a;t-=1){const l=s.substr(0,t);if(r.substr(0,t)===l){a=t;const s={missed:o.missed,term:o.term.concat({value:l,trailing:!0})};r.length>t?e(r.substr(t),s):n.push(s),i=!0;break}}i||(r.length>0?e(r.substr(1),{missed:o.missed+1,term:o.term}):o.term.length>0&&n.push(o))}(e,{missed:0,term:[]}),n.sort(((e,t)=>{const n=e.missed>0?1:0,r=t.missed>0?1:0;return n!==r?n-r:e.term.length-t.term.length})).map((e=>e.term))}(a,t);for(const t of n){const n=o.concat(...t);e(r.slice(1),n)}}else{const t=o.concat({value:a});e(r.slice(1),t)}}(e,[]),n}(e,t);if(0===n.length)return[{tokens:e,term:e.map((e=>({value:e,presence:o().Query.presence.REQUIRED,wildcard:o().Query.wildcard.LEADING|o().Query.wildcard.TRAILING})))}];for(const o of n)o[o.length-1].maybeTyping=!0;const r=[];for(const i of a.BH)if("en"===i)a.sx||r.unshift(o().stopWordFilter);else{const e=o()[i];e.stopWordFilter&&r.unshift(e.stopWordFilter)}let s;if(r.length>0){const e=e=>r.reduce(((e,t)=>e.filter((e=>t(e.value)))),e);s=[];const t=[];for(const r of n){const n=e(r);s.push(n),n.length0&&t.push(n)}n.push(...t)}else s=n.slice();const l=[];for(const o of s)if(o.length>2)for(let e=o.length-1;e>=0;e-=1)l.push(o.slice(0,e).concat(o.slice(e+1)));return i(n).concat(i(l))}(l,t),u=[];e:for(const{term:t,tokens:o}of c)for(const{documents:r,index:a,type:i}of e)if(u.push(...a.query((e=>{for(const n of t)e.term(n.value,{wildcard:n.wildcard,presence:n.presence})})).slice(0,n).filter((e=>!u.some((t=>t.document.i.toString()===e.ref)))).slice(0,n-u.length).map((t=>{const n=r.find((e=>e.i.toString()===t.ref));return{document:n,type:i,page:0!==i&&e[0].documents.find((e=>e.i===n.p)),metadata:t.matchData.metadata,tokens:o,score:t.score}}))),u.length>=n)break e;!function(e){e.forEach(((e,t)=>{e.index=t})),e.sort(((t,n)=>{let r=t.type>0&&t.page?e.findIndex((e=>e.document===t.page)):t.index,o=n.type>0&&n.page?e.findIndex((e=>e.document===n.page)):n.index;return-1===r&&(r=t.index),-1===o&&(o=n.index),r===o?0===t.type?-1:0===n.type?1:t.index-n.index:r-o}))}(u),function(e){e.forEach(((t,n)=>{n>0&&t.page&&e.some((e=>e.document===t.page))&&(n{"use strict";function r(e){return e.join(" \u203a ")}n.d(t,{$:()=>r})},3103:(e,t,n)=>{"use strict";function r(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}n.d(t,{Z:()=>r})},7674:(e,t,n)=>{"use strict";function r(e,t){const n=[];for(const r of Object.values(e))r[t]&&n.push(...r[t].position);return n.sort(((e,t)=>e[0]-t[0]||t[1]-e[1]))}n.d(t,{g:()=>r})},6841:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3103);function o(e,t,n){const a=[];for(const i of t){const n=e.toLowerCase().indexOf(i);if(n>=0){n>0&&a.push(o(e.substr(0,n),t)),a.push(`${(0,r.Z)(e.substr(n,i.length))}`);const s=n+i.length;s${(0,r.Z)(e)}`:(0,r.Z)(e):a.join("")}},3810:(e,t,n)=>{"use strict";n.d(t,{C:()=>l});var r=n(3103),o=n(6841);const a=/\w+|\p{Unified_Ideograph}/u;function i(e){const t=[];let n=0,r=e;for(;r.length>0;){const o=r.match(a);if(!o){t.push(r);break}o.index>0&&t.push(r.substring(0,o.index)),t.push(o[0]),n+=o.index+o[0].length,r=e.substring(n)}return t}var s=n(1088);function l(e,t,n,a){void 0===a&&(a=s.rG);const{chunkIndex:l,chunks:c}=function(e,t,n){const a=[];let s=0,l=0,c=-1;for(;sl){const t=i(e.substring(l,u)).map((e=>({html:(0,r.Z)(e),textLength:e.length})));for(const e of t)a.push(e)}-1===c&&(c=a.length),l=u+d,a.push({html:(0,o.Z)(e.substring(u,l),n,!0),textLength:d})}}if(l({html:(0,r.Z)(e),textLength:e.length})));for(const e of t)a.push(e)}return{chunkIndex:c,chunks:a}}(e,t,n),u=c.slice(0,l),d=c[l],p=[d.html],f=c.slice(l+1);let h=d.textLength,m=0,g=0,b=!1,y=!1;for(;h0){const e=u.pop();h+e.textLength<=a?(p.unshift(e.html),m+=e.textLength,h+=e.textLength):(b=!0,u.length=0)}else{if(!(f.length>0))break;{const e=f.shift();h+e.textLength<=a?(p.push(e.html),g+=e.textLength,h+=e.textLength):(y=!0,f.length=0)}}return(b||u.length>0)&&p.unshift("\u2026"),(y||f.length>0)&&p.push("\u2026"),p.join("")}},3385:(e,t,n)=>{"use strict";function r(e,t){if("string"==typeof e)return{label:e,path:e};{const{label:n,path:r}=e;return"string"==typeof n?{label:n,path:r}:Object.prototype.hasOwnProperty.call(n,t)?{label:n[t],path:r}:{label:r,path:r}}}n.d(t,{p:()=>r})},1088:(e,t,n)=>{"use strict";n.d(t,{CU:()=>a,UB:()=>f,tb:()=>c,O6:()=>g,I$:()=>h,BH:()=>r,sx:()=>o,ZG:()=>p,WW:()=>u,pk:()=>d,Hg:()=>m,IH:()=>i,rG:()=>l,AT:()=>s,dz:()=>b});n(8291);const r=["en"],o=!1,a=null,i="search-index{dir}.json",s=8,l=50,c=!1,u=!0,d=!0,p="right",f=void 0,h=!0,m=null,g=!1,b=!1},1513:(e,t,n)=>{"use strict";n.d(t,{zR:()=>x,TM:()=>C,yJ:()=>f,sC:()=>T,AO:()=>p});var r=n(8168);function o(e){return"/"===e.charAt(0)}function a(e,t){for(var n=t,r=n+1,o=e.length;r=0;p--){var f=i[p];"."===f?a(i,p):".."===f?(a(i,p),d++):d&&(a(i,p),d--)}if(!c)for(;d--;d)i.unshift("..");!c||""===i[0]||i[0]&&o(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};var s=n(1561);function l(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function u(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function f(e,t,n,o){var a;"string"==typeof e?(a=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),a.state=t):(void 0===(a=(0,r.A)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(a.key=n),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=i(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a}function h(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=f(e,t,m(),x.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(x.entries[x.index]=o,d({action:r,location:o}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=x.index+e;return t>=0&&t{"use strict";var r=n(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),m=l(n),g=0;g{"use strict";e.exports=function(e,t,n,r,o,a,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},4634:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},8291:(e,t,n)=>{var r,o;!function(){var a,i,s,l,c,u,d,p,f,h,m,g,b,y,v,x,w,S,k,_,E,C,A,T,P,L,O,N,j,R,I=function(e){var t=new I.Builder;return t.pipeline.add(I.trimmer,I.stopWordFilter,I.stemmer),t.searchPipeline.add(I.stemmer),e.call(t,t),t.build()};I.version="2.3.9",I.utils={},I.utils.warn=(a=this,function(e){a.console&&console.warn&&console.warn(e)}),I.utils.asString=function(e){return null==e?"":e.toString()},I.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r0){var l=I.utils.clone(t)||{};l.position=[i,s],l.index=o.length,o.push(new I.Token(n.slice(i,a),l))}i=a+1}}return o},I.tokenizer.separator=/[\s\-]+/,I.Pipeline=function(){this._stack=[]},I.Pipeline.registeredFunctions=Object.create(null),I.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&I.utils.warn("Overwriting existing registered function: "+t),e.label=t,I.Pipeline.registeredFunctions[e.label]=e},I.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||I.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},I.Pipeline.load=function(e){var t=new I.Pipeline;return e.forEach((function(e){var n=I.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},I.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){I.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},I.Pipeline.prototype.after=function(e,t){I.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},I.Pipeline.prototype.before=function(e,t){I.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},I.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},I.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n1&&(ae&&(n=o),a!=e);)r=n-t,o=t+Math.floor(r/2),a=this.elements[2*o];return a==e||a>e?2*o:as?c+=2:i==s&&(t+=n[l+1]*r[c+1],l+=2,c+=2);return t},I.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},I.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t0){var a,i=o.str.charAt(0);i in o.node.edges?a=o.node.edges[i]:(a=new I.TokenSet,o.node.edges[i]=a),1==o.str.length&&(a.final=!0),r.push({node:a,editsRemaining:o.editsRemaining,str:o.str.slice(1)})}if(0!=o.editsRemaining){if("*"in o.node.edges)var s=o.node.edges["*"];else{s=new I.TokenSet;o.node.edges["*"]=s}if(0==o.str.length&&(s.final=!0),r.push({node:s,editsRemaining:o.editsRemaining-1,str:o.str}),o.str.length>1&&r.push({node:o.node,editsRemaining:o.editsRemaining-1,str:o.str.slice(1)}),1==o.str.length&&(o.node.final=!0),o.str.length>=1){if("*"in o.node.edges)var l=o.node.edges["*"];else{l=new I.TokenSet;o.node.edges["*"]=l}1==o.str.length&&(l.final=!0),r.push({node:l,editsRemaining:o.editsRemaining-1,str:o.str.slice(1)})}if(o.str.length>1){var c,u=o.str.charAt(0),d=o.str.charAt(1);d in o.node.edges?c=o.node.edges[d]:(c=new I.TokenSet,o.node.edges[d]=c),1==o.str.length&&(c.final=!0),r.push({node:c,editsRemaining:o.editsRemaining-1,str:u+o.str.slice(2)})}}}return n},I.TokenSet.fromString=function(e){for(var t=new I.TokenSet,n=t,r=0,o=e.length;r=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},I.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},I.Index.prototype.search=function(e){return this.query((function(t){new I.QueryParser(e,t).parse()}))},I.Index.prototype.query=function(e){for(var t=new I.Query(this.fields),n=Object.create(null),r=Object.create(null),o=Object.create(null),a=Object.create(null),i=Object.create(null),s=0;s1?1:e},I.Builder.prototype.k1=function(e){this._k1=e},I.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var o=0;o=this.length)return I.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},I.QueryLexer.prototype.width=function(){return this.pos-this.start},I.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},I.QueryLexer.prototype.backup=function(){this.pos-=1},I.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=I.QueryLexer.EOS&&this.backup()},I.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(I.QueryLexer.TERM)),e.ignore(),e.more())return I.QueryLexer.lexText},I.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(I.QueryLexer.EDIT_DISTANCE),I.QueryLexer.lexText},I.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(I.QueryLexer.BOOST),I.QueryLexer.lexText},I.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(I.QueryLexer.TERM)},I.QueryLexer.termSeparator=I.tokenizer.separator,I.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==I.QueryLexer.EOS)return I.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return I.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(I.QueryLexer.TERM),I.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(I.QueryLexer.TERM),I.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(I.QueryLexer.PRESENCE),I.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(I.QueryLexer.PRESENCE),I.QueryLexer.lexText;if(t.match(I.QueryLexer.termSeparator))return I.QueryLexer.lexTerm}else e.escapeCharacter()}},I.QueryParser=function(e,t){this.lexer=new I.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},I.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=I.QueryParser.parseClause;e;)e=e(this);return this.query},I.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},I.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},I.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},I.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case I.QueryLexer.PRESENCE:return I.QueryParser.parsePresence;case I.QueryLexer.FIELD:return I.QueryParser.parseField;case I.QueryLexer.TERM:return I.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new I.QueryParseError(n,t.start,t.end)}},I.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=I.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=I.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new I.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r){n="expecting term or field, found nothing";throw new I.QueryParseError(n,t.start,t.end)}switch(r.type){case I.QueryLexer.FIELD:return I.QueryParser.parseField;case I.QueryLexer.TERM:return I.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new I.QueryParseError(n,r.start,r.end)}}},I.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var o=e.peekLexeme();if(null==o){r="expecting term, found nothing";throw new I.QueryParseError(r,t.start,t.end)}if(o.type===I.QueryLexer.TERM)return I.QueryParser.parseTerm;r="expecting term, found '"+o.type+"'";throw new I.QueryParseError(r,o.start,o.end)}},I.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new I.QueryParseError(r,n.start,n.end)}else e.nextClause()}},I.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var o=e.peekLexeme();if(null!=o)switch(o.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+o.type+"'";throw new I.QueryParseError(r,o.start,o.end)}else e.nextClause()}},I.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new I.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var o=e.peekLexeme();if(null!=o)switch(o.type){case I.QueryLexer.TERM:return e.nextClause(),I.QueryParser.parseTerm;case I.QueryLexer.FIELD:return e.nextClause(),I.QueryParser.parseField;case I.QueryLexer.EDIT_DISTANCE:return I.QueryParser.parseEditDistance;case I.QueryLexer.BOOST:return I.QueryParser.parseBoost;case I.QueryLexer.PRESENCE:return e.nextClause(),I.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+o.type+"'";throw new I.QueryParseError(r,o.start,o.end)}else e.nextClause()}},void 0===(o="function"==typeof(r=function(){return I})?r.call(t,n,t,e):r)||(e.exports=o)}()},119:(e,t,n)=>{"use strict";n.r(t)},1043:(e,t,n)=>{"use strict";n.r(t)},5947:function(e,t,n){var r,o;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function o(e,t,n){return en?n:e}function a(e){return 100*(-1+e)}function i(e,t,n){var o;return(o="translate3d"===r.positionUsing?{transform:"translate3d("+a(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+a(e)+"%,0)"}:{"margin-left":a(e)+"%"}).transition="all "+t+"ms "+n,o}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=o(e,r.minimum,1),n.status=1===e?null:e;var a=n.render(!t),c=a.querySelector(r.barSelector),u=r.speed,d=r.easing;return a.offsetWidth,s((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(c,i(e,u,d)),1===e?(l(a,{transition:"none",opacity:1}),a.offsetWidth,setTimeout((function(){l(a,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var o,i=t.querySelector(r.barSelector),s=e?"-100":a(n.status||0),c=document.querySelector(r.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(o=t.querySelector(r.spinnerSelector))&&f(o),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+a)in n)return r;return t}function o(e){return e=n(e),t[e]||(t[e]=r(e))}function a(e,t,n){t=o(t),e.style[t]=n}return function(e,t){var n,r,o=arguments;if(2==o.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&a(e,n,r);else a(e,o[1],o[2])}}();function c(e,t){return("string"==typeof e?e:p(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=p(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=p(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function p(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(o="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=o)},8015:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(4784),o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=window.Promise||function(e){function t(){}e(t,t)},a=function(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{}).target,t=function(){var e={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},t=void 0,n=void 0;if(b.container)if(b.container instanceof Object)t=(e=o({},e,b.container)).width-e.left-e.right-2*b.margin,n=e.height-e.top-e.bottom-2*b.margin;else{var r=(i(b.container)?b.container:document.querySelector(b.container)).getBoundingClientRect(),a=r.width,l=r.height,c=r.left,u=r.top;e=o({},e,{width:a,height:l,left:c,top:u})}t=t||e.width-2*b.margin,n=n||e.height-2*b.margin;var d=y.zoomedHd||y.original,p=s(d)?t:d.naturalWidth||t,f=s(d)?n:d.naturalHeight||n,h=d.getBoundingClientRect(),m=h.top,g=h.left,v=h.width,x=h.height,w=Math.min(Math.max(v,p),t)/v,S=Math.min(Math.max(x,f),n)/x,k=Math.min(w,S),_="scale("+k+") translate3d("+((t-v)/2-g+b.margin+e.left)/k+"px, "+((n-x)/2-m+b.margin+e.top)/k+"px, 0)";y.zoomed.style.transform=_,y.zoomedHd&&(y.zoomedHd.style.transform=_)};return new r((function(n){if(e&&-1===f.indexOf(e))n(x);else{if(y.zoomed)n(x);else{if(e)y.original=e;else{if(!(f.length>0))return void n(x);var r=f;y.original=r[0]}if(y.original.dispatchEvent(c("medium-zoom:open",{detail:{zoom:x}})),g=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,m=!0,y.zoomed=function(e){var t=e.getBoundingClientRect(),n=t.top,r=t.left,o=t.width,a=t.height,i=e.cloneNode(),s=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,l=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return i.removeAttribute("id"),i.style.position="absolute",i.style.top=n+s+"px",i.style.left=r+l+"px",i.style.width=o+"px",i.style.height=a+"px",i.style.transform="",i}(y.original),document.body.appendChild(v),b.template){var o=i(b.template)?b.template:document.querySelector(b.template);y.template=document.createElement("div"),y.template.appendChild(o.content.cloneNode(!0)),document.body.appendChild(y.template)}if(y.original.parentElement&&"PICTURE"===y.original.parentElement.tagName&&y.original.currentSrc&&(y.zoomed.src=y.original.currentSrc),document.body.appendChild(y.zoomed),window.requestAnimationFrame((function(){document.body.classList.add("medium-zoom--opened")})),y.original.classList.add("medium-zoom-image--hidden"),y.zoomed.classList.add("medium-zoom-image--opened"),y.zoomed.addEventListener("click",d),y.zoomed.addEventListener("transitionend",(function e(){m=!1,y.zoomed.removeEventListener("transitionend",e),y.original.dispatchEvent(c("medium-zoom:opened",{detail:{zoom:x}})),n(x)})),y.original.getAttribute("data-zoom-src")){y.zoomedHd=y.zoomed.cloneNode(),y.zoomedHd.removeAttribute("srcset"),y.zoomedHd.removeAttribute("sizes"),y.zoomedHd.removeAttribute("loading"),y.zoomedHd.src=y.zoomed.getAttribute("data-zoom-src"),y.zoomedHd.onerror=function(){clearInterval(a),console.warn("Unable to reach the zoom image target "+y.zoomedHd.src),y.zoomedHd=null,t()};var a=setInterval((function(){y.zoomedHd.complete&&(clearInterval(a),y.zoomedHd.classList.add("medium-zoom-image--opened"),y.zoomedHd.addEventListener("click",d),document.body.appendChild(y.zoomedHd),t())}),10)}else if(y.original.hasAttribute("srcset")){y.zoomedHd=y.zoomed.cloneNode(),y.zoomedHd.removeAttribute("sizes"),y.zoomedHd.removeAttribute("loading");var s=y.zoomedHd.addEventListener("load",(function(){y.zoomedHd.removeEventListener("load",s),y.zoomedHd.classList.add("medium-zoom-image--opened"),y.zoomedHd.addEventListener("click",d),document.body.appendChild(y.zoomedHd),t()}))}else t()}}}))},d=function(){return new r((function(e){if(!m&&y.original){m=!0,document.body.classList.remove("medium-zoom--opened"),y.zoomed.style.transform="",y.zoomedHd&&(y.zoomedHd.style.transform=""),y.template&&(y.template.style.transition="opacity 150ms",y.template.style.opacity=0),y.original.dispatchEvent(c("medium-zoom:close",{detail:{zoom:x}})),y.zoomed.addEventListener("transitionend",(function t(){y.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(y.zoomed),y.zoomedHd&&document.body.removeChild(y.zoomedHd),document.body.removeChild(v),y.zoomed.classList.remove("medium-zoom-image--opened"),y.template&&document.body.removeChild(y.template),m=!1,y.zoomed.removeEventListener("transitionend",t),y.original.dispatchEvent(c("medium-zoom:closed",{detail:{zoom:x}})),y.original=null,y.zoomed=null,y.zoomedHd=null,y.template=null,e(x)}))}else e(x)}))},p=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).target;return y.original?d():u({target:e})},f=[],h=[],m=!1,g=0,b=n,y={original:null,zoomed:null,zoomedHd:null,template:null};"[object Object]"===Object.prototype.toString.call(t)?b=t:(t||"string"==typeof t)&&a(t);var v=function(e){var t=document.createElement("div");return t.classList.add("medium-zoom-overlay"),t.style.background=e,t}((b=o({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},b)).background);document.addEventListener("click",(function(e){var t=e.target;t!==v?-1!==f.indexOf(t)&&p({target:t}):d()})),document.addEventListener("keyup",(function(e){var t=e.key||e.keyCode;"Escape"!==t&&"Esc"!==t&&27!==t||d()})),document.addEventListener("scroll",(function(){if(!m&&y.original){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(g-e)>b.scrollOffset&&setTimeout(d,150)}})),window.addEventListener("resize",d);var x={open:u,close:d,toggle:p,update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;if(e.background&&(v.style.background=e.background),e.container&&e.container instanceof Object&&(t.container=o({},b.container,e.container)),e.template){var n=i(e.template)?e.template:document.querySelector(e.template);t.template=n}return b=o({},b,t),f.forEach((function(e){e.dispatchEvent(c("medium-zoom:update",{detail:{zoom:x}}))})),x},clone:function(){return e(o({},b,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}))},attach:a,detach:function(){for(var e=arguments.length,t=Array(e),n=0;n0?t.reduce((function(e,t){return[].concat(e,l(t))}),[]):f;return r.forEach((function(e){e.classList.remove("medium-zoom-image"),e.dispatchEvent(c("medium-zoom:detach",{detail:{zoom:x}}))})),f=f.filter((function(e){return-1===r.indexOf(e)})),x},on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f.forEach((function(r){r.addEventListener("medium-zoom:"+e,t,n)})),h.push({type:"medium-zoom:"+e,listener:t,options:n}),x},off:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return f.forEach((function(r){r.removeEventListener("medium-zoom:"+e,t,n)})),h=h.filter((function(n){return!(n.type==="medium-zoom:"+e&&n.listener.toString()===t.toString())})),x},getOptions:function(){return b},getImages:function(){return f},getZoomedImage:function(){return y.original}};return x},{themeConfig:d}=r.default,p=function(){if("undefined"==typeof window)return null;const{zoomSelector:e=".markdown img"}=d,{imageZoom:{selector:t=e,options:n}={}}=d;return setTimeout((()=>{u(t,n)}),1e3),{onRouteUpdate({location:e,previousLocation:r}){e&&e.hash&&e.hash.length||r&&e.pathname!==r.pathname&&setTimeout((()=>{u(t,n)}),1e3)}}}()},7022:()=>{!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,i=0;i{!function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(Prism)},6976:()=>{!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)},2514:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},5294:()=>{!function(e){var t=/\\(?:[^a-z()[\]]|[a-z*]+)/i,n={"equation-command":{pattern:t,alias:"regex"}};e.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:t,alias:"selector"},punctuation:/[[\]{}&]/},e.languages.tex=e.languages.latex,e.languages.context=e.languages.latex}(Prism)},9700:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,a){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof a&&!a(e))return e;for(var o,s=i.length;-1!==n.code.indexOf(o=t(r,s));)++s;return i[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,a=Object.keys(n.tokenStack);!function i(s){for(var l=0;l=a.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=a[o],d=n.tokenStack[u],p="string"==typeof c?c:c.content,f=t(r,u),h=p.indexOf(f);if(h>-1){++o;var m=p.substring(0,h),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),b=p.substring(h+f.length),y=[];m&&y.push.apply(y,i([m])),y.push(g),b&&y.push.apply(y,i([b])),"string"==typeof c?s.splice.apply(s,[l,1].concat(y)):c.content=y}}else c.content&&i(c.content)}return s}(n.tokens)}}}})}(Prism)},875:(e,t,n)=>{var r={"./prism-bash":7022,"./prism-diff":7839,"./prism-java":6976,"./prism-json":2514,"./prism-latex":5294};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=875},2694:(e,t,n)=>{"use strict";var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2551:(e,t,n)=>{"use strict";var r=n(6540),o=n(9982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n