Files
pgsql-jellyfin/Jellyfin.Server/wwwroot/playback-transcoding.e959baf9509d5b170095.chunk.js
T
2026-07-08 13:13:46 -04:00

1 line
22 KiB
JavaScript

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[55691],{7077:function(e,n,a){a.r(n),a.d(n,{Component:function(){return B},action:function(){return O}});var l=a(62540),t=a(63696),r=a(92779),o=a(57836),s=a(89348),i=a(68700),c=a(65242),p=a(5898),d=a(70140),h=a(84849),u=a(85637),A=a(85491),x=a(70564),m=a(26523),b=a(31720),v=a(96441),g=a(21840),y=a(6725),j=a(75487),f=a(43361),T=a(47891),w=a(63703),C=a(87404),H=a(9055),E=a(78397),k=a(39914),D=a(67430),P=a(94732),L=a(31297),S=[{name:"H264",codec:"h264",types:["amf","nvenc","qsv","vaapi","rkmpp","videotoolbox","v4l2m2m"]},{name:"HEVC",codec:"hevc",types:["amf","nvenc","qsv","vaapi","rkmpp","videotoolbox"]},{name:"MPEG1",codec:"mpeg1video",types:["rkmpp"]},{name:"MPEG2",codec:"mpeg2video",types:["amf","nvenc","qsv","vaapi","rkmpp"]},{name:"MPEG4",codec:"mpeg4",types:["nvenc","rkmpp"]},{name:"VC1",codec:"vc1",types:["amf","nvenc","qsv","vaapi"]},{name:"VP8",codec:"vp8",types:["nvenc","qsv","vaapi","rkmpp","videotoolbox"]},{name:"VP9",codec:"vp9",types:["amf","nvenc","qsv","vaapi","rkmpp","videotoolbox"]},{name:"AV1",codec:"av1",types:["amf","nvenc","qsv","vaapi","rkmpp","videotoolbox"]}],V=["amf","nvenc","qsv","vaapi","rkmpp"],F=["nvenc","qsv","vaapi"],M=a(8375),I=function(){return I=Object.assign||function(e){for(var n,a=1,l=arguments.length;a<l;a++)for(var t in n=arguments[a])Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e},I.apply(this,arguments)},N=function(e,n){var a="function"==typeof Symbol&&e[Symbol.iterator];if(!a)return e;var l,t,r=a.call(e),o=[];try{for(;(void 0===n||n-- >0)&&!(l=r.next()).done;)o.push(l.value)}catch(e){t={error:e}}finally{try{l&&!l.done&&(a=r.return)&&a.call(r)}finally{if(t)throw t.error}}return o},q=function(e,n,a){if(a||2===arguments.length)for(var l,t=0,r=n.length;t<r;t++)!l&&t in n||(l||(l=Array.prototype.slice.call(n,0,t)),l[t]=n[t]);return e.concat(l||Array.prototype.slice.call(n))},R="encoding",O=function(e){return n=void 0,a=[e],t=function(e){var n,a,l=e.request;return function(e,n){var a,l,t,r={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(i){return function(s){if(a)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(r=0)),r;)try{if(a=1,l&&(t=2&s[0]?l.return:s[0]?l.throw||((t=l.return)&&t.call(l),0):l.next)&&!(t=t.call(l,s[1])).done)return t;switch(l=0,t&&(s=[2&s[0],t.value]),s[0]){case 0:case 1:t=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,l=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!((t=(t=r.trys).length>0&&t[t.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!t||s[1]>t[0]&&s[1]<t[3])){r.label=s[1];break}if(6===s[0]&&r.label<t[1]){r.label=t[1],t=s;break}if(t&&r.label<t[2]){r.label=t[2],r.ops.push(s);break}t[2]&&r.ops.pop(),r.trys.pop();continue}s=n.call(e,r)}catch(e){s=[6,e],l=0}finally{a=t=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,i])}}}(this,(function(e){switch(e.label){case 0:if(!(n=D.tF.getCurrentApi()))throw new Error("No Api instance available");return[4,l.json()];case 1:return a=e.sent(),[4,(0,P.T)(n).updateNamedConfiguration({key:R,body:a})];case 2:return e.sent(),L.q.invalidateQueries({queryKey:[E.t,R]}),[2,{isSaved:!0}]}}))},new((l=void 0)||(l=Promise))((function(e,r){function o(e){try{i(t.next(e))}catch(e){r(e)}}function s(e){try{i(t.throw(e))}catch(e){r(e)}}function i(n){var a;n.done?e(n.value):(a=n.value,a instanceof l?a:new l((function(e){e(a)}))).then(o,s)}i((t=t.apply(n,a||[])).next())}));var n,a,l,t},B=function(){var e=(0,E.M)(R),n=e.data,a=e.isPending,D=e.isError,P=N((0,t.useState)(null),2),L=P[0],O=P[1],B=(0,C.cq)(),Q=(0,C.mP)(),G=(0,H.of)(),K="submitting"===B.state,z=N((0,t.useState)(!1),2),_=z[0],U=z[1];(0,t.useEffect)((function(){n&&null==L&&O(n)}),[n,L]);var W=(0,t.useCallback)((function(e){var n;O(I(I({},L),((n={})[e.target.name]=e.target.value,n)))}),[L]),X=(0,t.useCallback)((function(e){var n;O(I(I({},L),((n={})[e.target.name]=e.target.checked,n)))}),[L]),Y=(0,t.useCallback)((function(e){(null==L?void 0:L.HardwareDecodingCodecs)&&(e.target.checked?O(I(I({},L),{HardwareDecodingCodecs:q(q([],N(L.HardwareDecodingCodecs),!1),[e.target.name],!1)})):O(I(I({},L),{HardwareDecodingCodecs:L.HardwareDecodingCodecs.filter((function(n){return n!==e.target.name}))})))}),[L]),J=(0,t.useCallback)((function(){U(!1)}),[]),Z=(0,t.useCallback)((function(e){e.preventDefault(),L&&(U(!0),G(I({},L),{method:"post",encType:"application/json"}))}),[L,G]),$=(0,t.useCallback)((function(){var e=new g.default;e.show({callback:function(n){O(I(I({},L),{TranscodingTempPath:n})),e.close()},validateWriteable:!0,header:p.Ay.translate("HeaderSelectTranscodingPath"),instruction:p.Ay.translate("HeaderSelectTranscodingPathHelp")})}),[L]),ee=(0,t.useCallback)((function(){var e=new g.default;e.show({callback:function(n){O(I(I({},L),{FallbackFontPath:n})),e.close()},header:p.Ay.translate("HeaderSelectFallbackFontPath"),instruction:p.Ay.translate("HeaderSelectFallbackFontPathHelp")})}),[L]),ne=(null==L?void 0:L.HardwareAccelerationType)||k.l.None,ae=["amf","nvenc","qsv","vaapi","rkmpp","videotoolbox"].includes(ne),le=(0,t.useMemo)((function(){return S.filter((function(e){return e.types.includes(ne)}))}),[ne]);return a||!L?(0,l.jsx)(h.A,{}):(0,l.jsxs)(c.A,{id:"encodingSettingsPage",className:"mainAnimatedPage type-interior",title:p.Ay.translate("TitlePlayback"),children:[(0,l.jsx)(M.A,{open:_,onClose:J,title:p.Ay.translate("TitleHardwareAcceleration"),text:p.Ay.translate("HardwareAccelerationWarning")}),(0,l.jsx)(r.A,{className:"content-primary",children:D?(0,l.jsx)(T.A,{severity:"error",children:p.Ay.translate("TranscodingLoadError")}):(0,l.jsx)(H.lV,{method:"POST",onSubmit:Z,children:(0,l.jsxs)(d.A,{spacing:3,children:[(0,l.jsx)(s.A,{variant:"h1",children:p.Ay.translate("Transcoding")}),!K&&(null==Q?void 0:Q.isSaved)&&(0,l.jsx)(T.A,{severity:"success",children:p.Ay.translate("SettingsSaved")}),(0,l.jsxs)(o.A,{name:"HardwareAccelerationType",select:!0,label:p.Ay.translate("LabelHardwareAccelerationType"),value:L.HardwareAccelerationType,onChange:W,helperText:(0,l.jsx)(i.A,{href:"https://jellyfin.org/docs/general/administration/hardware-acceleration",target:"_blank",children:p.Ay.translate("LabelHardwareAccelerationTypeHelp")}),children:[(0,l.jsx)(u.A,{value:"none",children:p.Ay.translate("None")}),(0,l.jsx)(u.A,{value:"amf",children:"AMD AMF"}),(0,l.jsx)(u.A,{value:"nvenc",children:"Nvidia NVENC"}),(0,l.jsx)(u.A,{value:"qsv",children:"Intel Quicksync (QSV)"}),(0,l.jsx)(u.A,{value:"vaapi",children:"Video Acceleration API (VAAPI)"}),(0,l.jsx)(u.A,{value:"rkmpp",children:"Rockchip MPP (RKMPP)"}),(0,l.jsx)(u.A,{value:"videotoolbox",children:"Apple VideoToolBox"}),(0,l.jsx)(u.A,{value:"v4l2m2m",children:"Video4Linux2 (V4L2)"})]}),"vaapi"===ne&&(0,l.jsx)(o.A,{name:"VaapiDevice",label:p.Ay.translate("LabelVaapiDevice"),value:L.VaapiDevice,onChange:W,helperText:p.Ay.translate("LabelVaapiDeviceHelp")}),"qsv"===ne&&(0,l.jsx)(o.A,{name:"QsvDevice",label:p.Ay.translate("LabelQsvDevice"),value:L.QsvDevice,onChange:W,helperText:p.Ay.translate("LabelQsvDeviceHelp")}),"none"!==ne&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.A,{variant:"h3",children:p.Ay.translate("LabelEnableHardwareDecodingFor")}),(0,l.jsxs)(A.A,{children:[le.map((function(e){return(0,l.jsx)(v.A,{label:e.name,control:(0,l.jsx)(x.A,{name:e.codec,checked:(L.HardwareDecodingCodecs||[]).includes(e.codec),onChange:Y})},e.name)})),V.includes(ne)&&(0,l.jsx)(v.A,{label:"HEVC 10bit",control:(0,l.jsx)(x.A,{name:"EnableDecodingColorDepth10Hevc",checked:L.EnableDecodingColorDepth10Hevc,onChange:X})}),V.includes(ne)&&(0,l.jsx)(v.A,{label:"VP9 10bit",control:(0,l.jsx)(x.A,{name:"EnableDecodingColorDepth10Vp9",checked:L.EnableDecodingColorDepth10Vp9,onChange:X})}),F.includes(ne)&&(0,l.jsx)(v.A,{label:"HEVC RExt 8/10bit",control:(0,l.jsx)(x.A,{name:"EnableDecodingColorDepth10HevcRext",checked:L.EnableDecodingColorDepth10HevcRext,onChange:X})}),F.includes(ne)&&(0,l.jsx)(v.A,{label:"HEVC RExt 12bit",control:(0,l.jsx)(x.A,{name:"EnableDecodingColorDepth12HevcRext",checked:L.EnableDecodingColorDepth12HevcRext,onChange:X})})]})]}),"nvenc"===ne&&(0,l.jsxs)(b.A,{children:[(0,l.jsx)(v.A,{label:p.Ay.translate("EnableEnhancedNvdecDecoder"),control:(0,l.jsx)(x.A,{name:"EnableEnhancedNvdecDecoder",checked:L.EnableEnhancedNvdecDecoder,onChange:X})}),(0,l.jsx)(m.A,{children:p.Ay.translate("EnableEnhancedNvdecDecoderHelp")})]}),"qsv"===ne&&(0,l.jsx)(b.A,{children:(0,l.jsx)(v.A,{label:p.Ay.translate("PreferSystemNativeHwDecoder"),control:(0,l.jsx)(x.A,{name:"PreferSystemNativeHwDecoder",checked:L.PreferSystemNativeHwDecoder,onChange:X})})}),"none"!==ne&&(0,l.jsxs)(b.A,{variant:"standard",children:[(0,l.jsx)(s.A,{variant:"h3",children:p.Ay.translate("LabelHardwareEncodingOptions")}),(0,l.jsxs)(A.A,{children:[(0,l.jsx)(v.A,{label:p.Ay.translate("EnableHardwareEncoding"),control:(0,l.jsx)(x.A,{name:"EnableHardwareEncoding",checked:L.EnableHardwareEncoding,onChange:X})}),("qsv"===ne||"vaapi"===ne)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v.A,{label:p.Ay.translate("EnableIntelLowPowerH264HwEncoder"),control:(0,l.jsx)(x.A,{name:"EnableIntelLowPowerH264HwEncoder",checked:L.EnableIntelLowPowerH264HwEncoder,onChange:X})}),(0,l.jsx)(v.A,{label:p.Ay.translate("EnableIntelLowPowerHevcHwEncoder"),control:(0,l.jsx)(x.A,{name:"EnableIntelLowPowerHevcHwEncoder",checked:L.EnableIntelLowPowerHevcHwEncoder,onChange:X})}),(0,l.jsx)(m.A,{children:(0,l.jsx)(i.A,{href:"https://jellyfin.org/docs/general/post-install/transcoding/hardware-acceleration/intel#configure-and-verify-lp-mode-on-linux",target:"_blank",children:p.Ay.translate("IntelLowPowerEncHelp")})})]})]})]}),(0,l.jsxs)(b.A,{variant:"standard",children:[(0,l.jsx)(s.A,{variant:"h3",children:p.Ay.translate("LabelEncodingFormatOptions")}),(0,l.jsx)(m.A,{children:p.Ay.translate("EncodingFormatHelp")}),(0,l.jsxs)(A.A,{children:[(0,l.jsx)(v.A,{label:p.Ay.translate("AllowHevcEncoding"),control:(0,l.jsx)(x.A,{name:"AllowHevcEncoding",checked:L.AllowHevcEncoding,onChange:X})}),(0,l.jsx)(v.A,{label:p.Ay.translate("AllowAv1Encoding"),control:(0,l.jsx)(x.A,{name:"AllowAv1Encoding",checked:L.AllowAv1Encoding,onChange:X})})]})]}),("qsv"===ne||"vaapi"===ne)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(b.A,{children:[(0,l.jsx)(v.A,{label:p.Ay.translate("EnableVppTonemapping"),control:(0,l.jsx)(x.A,{name:"EnableVppTonemapping",checked:L.EnableVppTonemapping,onChange:X})}),(0,l.jsx)(m.A,{children:p.Ay.translate("AllowVppTonemappingHelp")})]}),(0,l.jsx)(o.A,{name:"VppTonemappingBrightness",value:L.VppTonemappingBrightness,onChange:W,label:p.Ay.translate("LabelVppTonemappingBrightness"),helperText:p.Ay.translate("LabelVppTonemappingBrightnessHelp"),type:"number",slotProps:{htmlInput:{min:0,max:100,step:1e-5}}}),(0,l.jsx)(o.A,{name:"VppTonemappingContrast",value:L.VppTonemappingContrast,onChange:W,label:p.Ay.translate("LabelVppTonemappingContrast"),helperText:p.Ay.translate("LabelVppTonemappingContrastHelp"),type:"number",slotProps:{htmlInput:{min:1,max:2,step:1e-5}}})]}),"videotoolbox"===ne&&(0,l.jsxs)(b.A,{children:[(0,l.jsx)(v.A,{label:p.Ay.translate("EnableVideoToolboxTonemapping"),control:(0,l.jsx)(x.A,{name:"EnableVideoToolboxTonemapping",checked:L.EnableVideoToolboxTonemapping,onChange:X})}),(0,l.jsx)(m.A,{children:p.Ay.translate("AllowVideoToolboxTonemappingHelp")})]}),("none"===ne||ae)&&(0,l.jsxs)(l.Fragment,{children:[ae&&(0,l.jsxs)(b.A,{children:[(0,l.jsx)(v.A,{label:p.Ay.translate("EnableTonemapping"),control:(0,l.jsx)(x.A,{name:"EnableTonemapping",checked:L.EnableTonemapping,onChange:X})}),(0,l.jsx)(m.A,{children:p.Ay.translate("AllowTonemappingHelp")})]}),(0,l.jsxs)(o.A,{name:"TonemappingAlgorithm",select:!0,label:p.Ay.translate("LabelTonemappingAlgorithm"),value:L.TonemappingAlgorithm,onChange:W,helperText:(0,l.jsx)(i.A,{href:"https://ffmpeg.org/ffmpeg-all.html#tonemap_005fopencl",target:"_blank",children:p.Ay.translate("TonemappingAlgorithmHelp")}),children:[(0,l.jsx)(u.A,{value:"none",children:p.Ay.translate("None")}),(0,l.jsx)(u.A,{value:"clip",children:"Clip"}),(0,l.jsx)(u.A,{value:"linear",children:"Linear"}),(0,l.jsx)(u.A,{value:"gamma",children:"Gamma"}),(0,l.jsx)(u.A,{value:"reinhard",children:"Reinhard"}),(0,l.jsx)(u.A,{value:"hable",children:"Hable"}),(0,l.jsx)(u.A,{value:"mobius",children:"Mobius"}),(0,l.jsx)(u.A,{value:"bt2390",children:"BT.2390"})]}),ae&&(0,l.jsxs)(o.A,{name:"TonemappingMode",select:!0,value:L.TonemappingMode,onChange:W,label:p.Ay.translate("LabelTonemappingMode"),helperText:p.Ay.translate("TonemappingModeHelp"),children:[(0,l.jsx)(u.A,{value:"auto",children:p.Ay.translate("Auto")}),(0,l.jsx)(u.A,{value:"max",children:"MAX"}),(0,l.jsx)(u.A,{value:"rgb",children:"RGB"}),(0,l.jsx)(u.A,{value:"lum",children:"LUM"}),(0,l.jsx)(u.A,{value:"itp",children:"ITP"})]}),(0,l.jsxs)(o.A,{name:"TonemappingRange",select:!0,value:L.TonemappingRange,onChange:W,label:p.Ay.translate("LabelTonemappingRange"),helperText:p.Ay.translate("TonemappingRangeHelp"),children:[(0,l.jsx)(u.A,{value:"auto",children:p.Ay.translate("Auto")}),(0,l.jsx)(u.A,{value:"tv",children:"TV"}),(0,l.jsx)(u.A,{value:"pc",children:"PC"})]}),(0,l.jsx)(o.A,{name:"TonemappingDesat",value:L.TonemappingDesat,onChange:W,label:p.Ay.translate("LabelTonemappingDesat"),helperText:p.Ay.translate("LabelTonemappingDesatHelp"),type:"number",slotProps:{htmlInput:{min:0,step:1e-5}}}),(0,l.jsx)(o.A,{name:"TonemappingPeak",value:L.TonemappingPeak,onChange:W,label:p.Ay.translate("LabelTonemappingPeak"),helperText:p.Ay.translate("LabelTonemappingPeakHelp"),type:"number",slotProps:{htmlInput:{min:0,step:1e-5}}}),(0,l.jsx)(o.A,{name:"TonemappingParam",value:L.TonemappingParam||"",onChange:W,label:p.Ay.translate("LabelTonemappingParam"),helperText:p.Ay.translate("LabelTonemappingParamHelp"),type:"number",slotProps:{htmlInput:{min:0,step:1e-5}}})]}),(0,l.jsxs)(o.A,{name:"EncodingThreadCount",value:L.EncodingThreadCount,onChange:W,label:p.Ay.translate("LabelTranscodingThreadCount"),helperText:p.Ay.translate("LabelTranscodingThreadCountHelp"),select:!0,children:[(0,l.jsx)(u.A,{value:"-1",children:p.Ay.translate("Auto")}),(0,l.jsx)(u.A,{value:"1",children:"1"}),(0,l.jsx)(u.A,{value:"2",children:"2"}),(0,l.jsx)(u.A,{value:"3",children:"3"}),(0,l.jsx)(u.A,{value:"4",children:"4"}),(0,l.jsx)(u.A,{value:"5",children:"5"}),(0,l.jsx)(u.A,{value:"6",children:"6"}),(0,l.jsx)(u.A,{value:"7",children:"7"}),(0,l.jsx)(u.A,{value:"8",children:"8"}),(0,l.jsx)(u.A,{value:"9",children:"9"}),(0,l.jsx)(u.A,{value:"10",children:"10"}),(0,l.jsx)(u.A,{value:"11",children:"11"}),(0,l.jsx)(u.A,{value:"12",children:"12"}),(0,l.jsx)(u.A,{value:"13",children:"13"}),(0,l.jsx)(u.A,{value:"14",children:"14"}),(0,l.jsx)(u.A,{value:"15",children:"15"}),(0,l.jsx)(u.A,{value:"16",children:"16"}),(0,l.jsx)(u.A,{value:"0",children:p.Ay.translate("OptionMax")})]}),(0,l.jsx)(o.A,{name:"FFmpegPath",value:L.EncoderAppPathDisplay,onChange:W,label:p.Ay.translate("LabelffmpegPath"),helperText:p.Ay.translate("LabelffmpegPathHelp"),disabled:!0}),(0,l.jsx)(o.A,{name:"TranscodingTempPath",value:L.TranscodingTempPath,onChange:W,label:p.Ay.translate("LabelTranscodePath"),helperText:p.Ay.translate("LabelTranscodingTempPathHelp"),slotProps:{input:{endAdornment:(0,l.jsx)(y.A,{position:"end",children:(0,l.jsx)(j.A,{edge:"end",onClick:$,children:(0,l.jsx)(f.A,{})})})}}}),(0,l.jsx)(o.A,{name:"FallbackFontPath",value:L.FallbackFontPath,onChange:W,label:p.Ay.translate("LabelFallbackFontPath"),helperText:(0,l.jsx)(i.A,{href:"https://jellyfin.org/docs/general/administration/configuration#fonts",target:"_blank",children:p.Ay.translate("LabelFallbackFontPathHelp")}),slotProps:{input:{endAdornment:(0,l.jsx)(y.A,{position:"end",children:(0,l.jsx)(j.A,{edge:"end",onClick:ee,children:(0,l.jsx)(f.A,{})})})}}}),(0,l.jsxs)(b.A,{children:[(0,l.jsx)(v.A,{label:p.Ay.translate("EnableFallbackFont"),control:(0,l.jsx)(x.A,{name:"EnableFallbackFont",checked:L.EnableFallbackFont,onChange:X})}),(0,l.jsx)(m.A,{children:p.Ay.translate("EnableFallbackFontHelp")})]}),(0,l.jsxs)(b.A,{children:[(0,l.jsx)(v.A,{label:p.Ay.translate("LabelEnableAudioVbr"),control:(0,l.jsx)(x.A,{name:"EnableAudioVbr",checked:L.EnableAudioVbr,onChange:X})}),(0,l.jsx)(m.A,{children:p.Ay.translate("LabelEnableAudioVbrHelp")})]}),(0,l.jsx)(o.A,{name:"DownMixAudioBoost",value:L.DownMixAudioBoost,onChange:W,label:p.Ay.translate("LabelDownMixAudioScale"),helperText:p.Ay.translate("LabelDownMixAudioScaleHelp"),type:"number",slotProps:{htmlInput:{required:!0,min:.5,max:3,step:.1}}}),(0,l.jsxs)(o.A,{name:"DownMixStereoAlgorithm",value:L.DownMixStereoAlgorithm,onChange:W,label:p.Ay.translate("LabelStereoDownmixAlgorithm"),helperText:p.Ay.translate("StereoDownmixAlgorithmHelp"),select:!0,children:[(0,l.jsx)(u.A,{value:"None",children:p.Ay.translate("None")}),(0,l.jsx)(u.A,{value:"Dave750",children:"Dave750"}),(0,l.jsx)(u.A,{value:"NightmodeDialogue",children:"NightmodeDialogue"}),(0,l.jsx)(u.A,{value:"Rfc7845",children:"RFC7845"}),(0,l.jsx)(u.A,{value:"Ac4",children:"AC-4"})]}),(0,l.jsx)(o.A,{name:"MaxMuxingQueueSize",value:L.MaxMuxingQueueSize,onChange:W,label:p.Ay.translate("LabelMaxMuxingQueueSize"),helperText:p.Ay.translate("LabelMaxMuxingQueueSizeHelp")}),(0,l.jsxs)(o.A,{name:"EncoderPreset",value:L.EncoderPreset,onChange:W,label:p.Ay.translate("LabelEncoderPreset"),helperText:p.Ay.translate("EncoderPresetHelp"),select:!0,children:[(0,l.jsx)(u.A,{value:"auto",children:p.Ay.translate("Auto")}),(0,l.jsx)(u.A,{value:"veryslow",children:"veryslow"}),(0,l.jsx)(u.A,{value:"slower",children:"slower"}),(0,l.jsx)(u.A,{value:"slow",children:"slow"}),(0,l.jsx)(u.A,{value:"medium",children:"medium"}),(0,l.jsx)(u.A,{value:"fast",children:"fast"}),(0,l.jsx)(u.A,{value:"faster",children:"faster"}),(0,l.jsx)(u.A,{value:"veryfast",children:"veryfast"}),(0,l.jsx)(u.A,{value:"superfast",children:"superfast"}),(0,l.jsx)(u.A,{value:"ultrafast",children:"ultrafast"})]}),(0,l.jsx)(o.A,{name:"H265Crf",value:L.H265Crf,onChange:W,label:p.Ay.translate("LabelH265Crf"),type:"number",slotProps:{htmlInput:{min:0,max:51,step:1}}}),(0,l.jsx)(o.A,{name:"H264Crf",value:L.H264Crf,onChange:W,label:p.Ay.translate("LabelH264Crf"),helperText:p.Ay.translate("H264CrfHelp"),type:"number",slotProps:{htmlInput:{min:0,max:51,step:1}}}),(0,l.jsxs)(o.A,{name:"DeinterlaceMethod",value:L.DeinterlaceMethod,onChange:W,label:p.Ay.translate("LabelDeinterlaceMethod"),helperText:p.Ay.translate("DeinterlaceMethodHelp"),select:!0,children:[(0,l.jsx)(u.A,{value:"yadif",children:p.Ay.translate("Yadif")}),(0,l.jsx)(u.A,{value:"bwdif",children:p.Ay.translate("Bwdif")})]}),(0,l.jsxs)(b.A,{children:[(0,l.jsx)(v.A,{label:p.Ay.translate("UseDoubleRateDeinterlacing"),control:(0,l.jsx)(x.A,{name:"DeinterlaceDoubleRate",checked:L.DeinterlaceDoubleRate,onChange:X})}),(0,l.jsx)(m.A,{children:p.Ay.translate("UseDoubleRateDeinterlacingHelp")})]}),(0,l.jsxs)(b.A,{children:[(0,l.jsx)(v.A,{label:p.Ay.translate("AllowOnTheFlySubtitleExtraction"),control:(0,l.jsx)(x.A,{name:"EnableSubtitleExtraction",checked:L.EnableSubtitleExtraction,onChange:X})}),(0,l.jsx)(m.A,{children:p.Ay.translate("AllowOnTheFlySubtitleExtractionHelp")})]}),(0,l.jsxs)(b.A,{children:[(0,l.jsx)(v.A,{label:p.Ay.translate("AllowFfmpegThrottling"),control:(0,l.jsx)(x.A,{name:"EnableThrottling",checked:L.EnableThrottling,onChange:X})}),(0,l.jsx)(m.A,{children:p.Ay.translate("AllowFfmpegThrottlingHelp")})]}),(0,l.jsxs)(b.A,{children:[(0,l.jsx)(v.A,{label:p.Ay.translate("AllowSegmentDeletion"),control:(0,l.jsx)(x.A,{name:"EnableSegmentDeletion",checked:L.EnableSegmentDeletion,onChange:X})}),(0,l.jsx)(m.A,{children:p.Ay.translate("AllowSegmentDeletionHelp")})]}),(0,l.jsx)(o.A,{name:"ThrottleDelaySeconds",value:L.ThrottleDelaySeconds,onChange:W,label:p.Ay.translate("LabelThrottleDelaySeconds"),helperText:p.Ay.translate("LabelThrottleDelaySecondsHelp"),type:"number",slotProps:{htmlInput:{min:10,max:3600,step:1}}}),(0,l.jsx)(o.A,{name:"SegmentKeepSeconds",value:L.SegmentKeepSeconds,onChange:W,label:p.Ay.translate("LabelSegmentKeepSeconds"),helperText:p.Ay.translate("LabelSegmentKeepSecondsHelp"),type:"number",slotProps:{htmlInput:{min:10,max:3600,step:1}}}),(0,l.jsx)(w.A,{type:"submit",size:"large",children:p.Ay.translate("Save")})]})})})]})};B.displayName="TranscodingPage"},8375:function(e,n,a){var l=a(62540),t=a(63703),r=a(62010),o=a(98756),s=a(37793),i=a(75720),c=a(9042),p=a(5898);a(63696),n.A=function(e){var n=e.open,a=e.title,d=e.text,h=e.onClose;return(0,l.jsxs)(r.A,{open:n,onClose:h,children:[a&&(0,l.jsx)(c.A,{children:a}),(0,l.jsx)(s.A,{children:(0,l.jsx)(i.A,{sx:{whiteSpace:"pre-wrap"},children:d})}),(0,l.jsx)(o.A,{children:(0,l.jsx)(t.A,{onClick:h,children:p.Ay.translate("ButtonGotIt")})})]})}},78397:function(e,n,a){a.d(n,{M:function(){return s},t:function(){return o}});var l=a(94732),t=a(80401),r=a(69410),o="NamedConfiguration",s=function(e){var n=(0,r.gf)().api;return(0,t.I)({queryKey:[o,e],queryFn:function(a){var t=a.signal;return function(e,n,a){return t=void 0,r=void 0,s=function(){return function(e,n){var a,l,t,r={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(i){return function(s){if(a)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(r=0)),r;)try{if(a=1,l&&(t=2&s[0]?l.return:s[0]?l.throw||((t=l.return)&&t.call(l),0):l.next)&&!(t=t.call(l,s[1])).done)return t;switch(l=0,t&&(s=[2&s[0],t.value]),s[0]){case 0:case 1:t=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,l=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!((t=(t=r.trys).length>0&&t[t.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!t||s[1]>t[0]&&s[1]<t[3])){r.label=s[1];break}if(6===s[0]&&r.label<t[1]){r.label=t[1],t=s;break}if(t&&r.label<t[2]){r.label=t[2],r.ops.push(s);break}t[2]&&r.ops.pop(),r.trys.pop();continue}s=n.call(e,r)}catch(e){s=[6,e],l=0}finally{a=t=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,i])}}}(this,(function(t){switch(t.label){case 0:return[4,(0,l.T)(e).getNamedConfiguration({key:n},a)];case 1:return[2,t.sent().data]}}))},new((o=void 0)||(o=Promise))((function(e,n){function a(e){try{i(s.next(e))}catch(e){n(e)}}function l(e){try{i(s.throw(e))}catch(e){n(e)}}function i(n){var t;n.done?e(n.value):(t=n.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,l)}i((s=s.apply(t,r||[])).next())}));var t,r,o,s}(n,e,{signal:t})},enabled:!!n})}}}]);