Skip to content

Commit 4df5097

Browse files
committed
* Adding global disable interlace check (thanks to Wontell)
1 parent e2b3212 commit 4df5097

File tree

6 files changed

+15
-4
lines changed

6 files changed

+15
-4
lines changed

CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## Version 5.10.0
4+
5+
* Adding global disable interlace check (thanks to Wontell)
6+
7+
38
## Version 5.9.0
49

510
* Adding QP mode for FFmpeg Nvenc encoding

fastflix/flix.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ def get_auto_crop(
407407

408408
def detect_interlaced(app: FastFlixApp, config: Config, source: Path, **_):
409409
"""http://www.aktau.be/2013/09/22/detecting-interlaced-video-with-ffmpeg/"""
410-
411410
# Interlaced
412411
# [Parsed_idet_0 @ 00000] Repeated Fields: Neither: 815 Top: 88 Bottom: 98
413412
# [Parsed_idet_0 @ 00000] Single frame detection: TFF: 693 BFF: 0 Progressive: 39 Undetermined: 269

fastflix/models/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ class Config(BaseModel):
127127
custom_after_run_scripts: dict = Field(default_factory=dict)
128128
profiles: dict[str, Profile] = Field(default_factory=get_preset_defaults)
129129
priority: Literal["Realtime", "High", "Above Normal", "Normal", "Below Normal", "Idle"] = "Normal"
130+
disable_deinterlace_check: bool = False
130131
stay_on_top: bool = False
131132
portable_mode: bool = False
132133
ui_scale: str = "1"

fastflix/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3-
__version__ = "5.9.0"
3+
__version__ = "5.10.0"
44
__author__ = "Chris Griffith"

fastflix/widgets/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,10 +1502,11 @@ def update_video_info(self, hide_progress=False):
15021502
tasks = [
15031503
Task(t("Parse Video details"), parse),
15041504
Task(t("Extract covers"), extract_attachments),
1505-
Task(t("Detecting Interlace"), detect_interlaced, dict(source=self.source_material)),
15061505
Task(t("Determine HDR details"), parse_hdr_details),
15071506
Task(t("Detect HDR10+"), detect_hdr10_plus),
15081507
]
1508+
if not self.app.fastflix.config.disable_deinterlace_check:
1509+
tasks.append(Task(t("Detecting Interlace"), detect_interlaced, dict(source=self.source_material)))
15091510

15101511
try:
15111512
ProgressBar(self.app, tasks, hidden=hide_progress)

fastflix/widgets/settings.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ def __init__(self, app: FastFlixApp, main, *args, **kwargs):
257257
)
258258
self.clean_old_logs_button.setChecked(self.app.fastflix.config.clean_old_logs)
259259

260+
self.disable_deinterlace_button = QtWidgets.QCheckBox(t("Disable interlace check"))
261+
self.disable_deinterlace_button.setChecked(self.app.fastflix.config.disable_deinterlace_check)
262+
260263
# Layouts
261264

262265
layout.addWidget(self.use_sane_audio, 7, 0, 1, 2)
@@ -273,13 +276,14 @@ def __init__(self, app: FastFlixApp, main, *args, **kwargs):
273276

274277
layout.addWidget(self.clean_old_logs_button, 21, 0, 1, 3)
275278
layout.addWidget(self.disable_end_message, 22, 0, 1, 3)
279+
layout.addWidget(self.disable_deinterlace_button, 23, 0, 1, 3)
276280

277281
button_layout = QtWidgets.QHBoxLayout()
278282
button_layout.addStretch()
279283
button_layout.addWidget(cancel)
280284
button_layout.addWidget(save)
281285

282-
layout.addLayout(button_layout, 24, 0, 1, 3)
286+
layout.addLayout(button_layout, 25, 0, 1, 3)
283287

284288
self.setLayout(layout)
285289

@@ -365,6 +369,7 @@ def save(self):
365369
self.app.fastflix.config.clean_old_logs = self.clean_old_logs_button.isChecked()
366370
self.app.fastflix.config.sticky_tabs = self.sticky_tabs.isChecked()
367371
self.app.fastflix.config.disable_complete_message = self.disable_end_message.isChecked()
372+
self.app.fastflix.config.disable_deinterlace_check = self.disable_deinterlace_button.isChecked()
368373

369374
self.main.config_update()
370375
self.app.fastflix.config.save()

0 commit comments

Comments
 (0)