mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #5800 from gnattu/trickplay-KeyFrameOnlyExtraction
Add trickplay key frame only extraction option
This commit is contained in:
commit
dd8b9e4bc1
2 changed files with 16 additions and 1 deletions
|
@ -33,6 +33,7 @@ const PlaybackTrickplay: FC = () => {
|
||||||
|
|
||||||
(page.querySelector('.chkEnableHwAcceleration') as HTMLInputElement).checked = options?.EnableHwAcceleration || false;
|
(page.querySelector('.chkEnableHwAcceleration') as HTMLInputElement).checked = options?.EnableHwAcceleration || false;
|
||||||
(page.querySelector('.chkEnableHwEncoding') as HTMLInputElement).checked = options?.EnableHwEncoding || false;
|
(page.querySelector('.chkEnableHwEncoding') as HTMLInputElement).checked = options?.EnableHwEncoding || false;
|
||||||
|
(page.querySelector('.chkEnableKeyFrameOnlyExtraction') as HTMLInputElement).checked = options?.EnableKeyFrameOnlyExtraction || false;
|
||||||
(page.querySelector('#selectScanBehavior') as HTMLSelectElement).value = (options?.ScanBehavior || TrickplayScanBehavior.NonBlocking);
|
(page.querySelector('#selectScanBehavior') as HTMLSelectElement).value = (options?.ScanBehavior || TrickplayScanBehavior.NonBlocking);
|
||||||
(page.querySelector('#selectProcessPriority') as HTMLSelectElement).value = (options?.ProcessPriority || ProcessPriorityClass.Normal);
|
(page.querySelector('#selectProcessPriority') as HTMLSelectElement).value = (options?.ProcessPriority || ProcessPriorityClass.Normal);
|
||||||
(page.querySelector('#txtInterval') as HTMLInputElement).value = options?.Interval?.toString() || '10000';
|
(page.querySelector('#txtInterval') as HTMLInputElement).value = options?.Interval?.toString() || '10000';
|
||||||
|
@ -79,6 +80,7 @@ const PlaybackTrickplay: FC = () => {
|
||||||
const options = config.TrickplayOptions;
|
const options = config.TrickplayOptions;
|
||||||
options.EnableHwAcceleration = (page.querySelector('.chkEnableHwAcceleration') as HTMLInputElement).checked;
|
options.EnableHwAcceleration = (page.querySelector('.chkEnableHwAcceleration') as HTMLInputElement).checked;
|
||||||
options.EnableHwEncoding = (page.querySelector('.chkEnableHwEncoding') as HTMLInputElement).checked;
|
options.EnableHwEncoding = (page.querySelector('.chkEnableHwEncoding') as HTMLInputElement).checked;
|
||||||
|
options.EnableKeyFrameOnlyExtraction = (page.querySelector('.chkEnableKeyFrameOnlyExtraction') as HTMLInputElement).checked;
|
||||||
options.ScanBehavior = (page.querySelector('#selectScanBehavior') as HTMLSelectElement).value as TrickplayScanBehavior;
|
options.ScanBehavior = (page.querySelector('#selectScanBehavior') as HTMLSelectElement).value as TrickplayScanBehavior;
|
||||||
options.ProcessPriority = (page.querySelector('#selectProcessPriority') as HTMLSelectElement).value as ProcessPriorityClass;
|
options.ProcessPriority = (page.querySelector('#selectProcessPriority') as HTMLSelectElement).value as ProcessPriorityClass;
|
||||||
options.Interval = Math.max(1, parseInt((page.querySelector('#txtInterval') as HTMLInputElement).value || '10000', 10));
|
options.Interval = Math.max(1, parseInt((page.querySelector('#txtInterval') as HTMLInputElement).value || '10000', 10));
|
||||||
|
@ -170,6 +172,17 @@ const PlaybackTrickplay: FC = () => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div className='checkboxContainer checkboxContainer-withDescription'>
|
||||||
|
<CheckBoxElement
|
||||||
|
className='chkEnableKeyFrameOnlyExtraction'
|
||||||
|
title='LabelTrickplayKeyFrameOnlyExtraction'
|
||||||
|
/>
|
||||||
|
<div className='fieldDescription checkboxFieldDescription'>
|
||||||
|
<div className='fieldDescription'>
|
||||||
|
{globalize.translate('LabelTrickplayKeyFrameOnlyExtractionHelp')}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className='verticalSection'>
|
<div className='verticalSection'>
|
||||||
<div className='selectContainer fldSelectScanBehavior'>
|
<div className='selectContainer fldSelectScanBehavior'>
|
||||||
|
|
|
@ -1706,7 +1706,9 @@
|
||||||
"Trickplay": "Trickplay",
|
"Trickplay": "Trickplay",
|
||||||
"LabelTrickplayAccel": "Enable hardware decoding",
|
"LabelTrickplayAccel": "Enable hardware decoding",
|
||||||
"LabelTrickplayAccelEncoding": "Enable hardware accelerated MJPEG encoding",
|
"LabelTrickplayAccelEncoding": "Enable hardware accelerated MJPEG encoding",
|
||||||
"LabelTrickplayAccelEncodingHelp": "Currently only available on QSV and VAAPI, this option has no effect on other hardware acceleration methods.",
|
"LabelTrickplayAccelEncodingHelp": "Currently only available on QSV, VAAPI and VideoToolbox, this option has no effect on other hardware acceleration methods.",
|
||||||
|
"LabelTrickplayKeyFrameOnlyExtraction": "Only generate images from key frames",
|
||||||
|
"LabelTrickplayKeyFrameOnlyExtractionHelp": "Extract key frames only for significantly faster processing with less accurate timing. If the configured hardware decoder does not support this mode, will use the software decoder instead.",
|
||||||
"NonBlockingScan": "Non Blocking - queues generation, then returns",
|
"NonBlockingScan": "Non Blocking - queues generation, then returns",
|
||||||
"BlockingScan": "Blocking - queues generation, blocks scan until complete",
|
"BlockingScan": "Blocking - queues generation, blocks scan until complete",
|
||||||
"LabelScanBehavior": "Scan Behavior",
|
"LabelScanBehavior": "Scan Behavior",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue