Skip to content

Commit

Permalink
Version 5.5.6 (#496)
Browse files Browse the repository at this point in the history
* Fixing #485 Cannot Restore Queue Containing HDR10+ Entries (thanks to Maddie Davis)
* Fixing #487 Filename corrupted on path change (thanks to Maddie Davis)
* Fixing #491 Can't open Setting in Chinese upgraded from old version (thanks to 谈天才)
* Fixing #493 Profiles did not load config for remove hdr, remove metadata or copy chapter toggles (thanks to micron888)
* Fixing #494 frame rate change in 2 pass mode ("Bitrate" mode) results in error for AVC x264 encoder (thanks to Ivan Gorin)
  • Loading branch information
cdgriffith committed Jun 15, 2023
1 parent a4f71bd commit 9a6a50a
Show file tree
Hide file tree
Showing 23 changed files with 67 additions and 50 deletions.
10 changes: 9 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# Changelog

## Version 5.5.6

* Fixing #485 Cannot Restore Queue Containing HDR10+ Entries (thanks to Maddie Davis)
* Fixing #487 Filename corrupted on path change (thanks to Maddie Davis)
* Fixing #491 Can't open Setting in Chinese upgraded from old version (thanks to 谈天才)
* Fixing #493 Profiles did not load config for remove hdr, remove metadata or copy chapter toggles (thanks to micron888)
* Fixing #494 frame rate change in 2 pass mode ("Bitrate" mode) results in error for AVC x264 encoder (thanks to Ivan Gorin)

## Version 5.5.5

* Fixed #479 some zho and jpn translations, fixed some typos (thanks to Jing Luo)
* Fixing #479 some zho and jpn translations, fixed some typos (thanks to Jing Luo)
* Fixing incorrect PNG profiles for mac toolbox icons

## Version 5.5.4
Expand Down
4 changes: 2 additions & 2 deletions fastflix/encoders/av1_aom/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

def build(fastflix: FastFlix):
settings: AOMAV1Settings = fastflix.current_video.video_settings.video_encoder_settings
beginning, ending = generate_all(fastflix, "libaom-av1")
beginning, ending, output_fps = generate_all(fastflix, "libaom-av1")

beginning += (
"-strict experimental "
Expand All @@ -25,7 +25,7 @@ def build(fastflix: FastFlix):

if settings.bitrate:
pass_log_file = fastflix.current_video.work_path / f"pass_log_file_{secrets.token_hex(10)}"
command_1 = f'{beginning} -passlogfile "{pass_log_file}" -b:v {settings.bitrate} -pass 1 {settings.extra if settings.extra_both_passes else ""} -an -f matroska {null}'
command_1 = f'{beginning} -passlogfile "{pass_log_file}" -b:v {settings.bitrate} -pass 1 {settings.extra if settings.extra_both_passes else ""} -an {output_fps} -f matroska {null}'
command_2 = (
f'{beginning} -passlogfile "{pass_log_file}" -b:v {settings.bitrate} -pass 2 {settings.extra} {ending}'
)
Expand Down
4 changes: 2 additions & 2 deletions fastflix/encoders/avc_x264/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def build(fastflix: FastFlix):
settings: x264Settings = fastflix.current_video.video_settings.video_encoder_settings

beginning, ending = generate_all(fastflix, "libx264")
beginning, ending, output_fps = generate_all(fastflix, "libx264")

beginning += f'{f"-tune:v {settings.tune}" if settings.tune else ""} {generate_color_details(fastflix)} '

Expand All @@ -22,7 +22,7 @@ def build(fastflix: FastFlix):
if settings.bitrate:
command_1 = (
f"{beginning} -pass 1 "
f'-passlogfile "{pass_log_file}" -b:v {settings.bitrate} -preset:v {settings.preset} {settings.extra if settings.extra_both_passes else ""} -an -sn -dn -f mp4 {null}'
f'-passlogfile "{pass_log_file}" -b:v {settings.bitrate} -preset:v {settings.preset} {settings.extra if settings.extra_both_passes else ""} -an -sn -dn {output_fps} -f mp4 {null}'
)
command_2 = (
f'{beginning} -pass 2 -passlogfile "{pass_log_file}" '
Expand Down
10 changes: 5 additions & 5 deletions fastflix/encoders/common/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def generate_ending(
output_fps: Union[str, None] = None,
disable_rotate_metadata=False,
**_,
) -> str:
):
ending = (
f" {'-map_metadata -1' if remove_metadata else '-map_metadata 0'} "
f"{'-map_chapters 0' if copy_chapters else '-map_chapters -1'} "
Expand All @@ -126,7 +126,7 @@ def generate_ending(
ending += f'"{clean_file_string(sanitize(output_video))}"'
else:
ending += null
return ending
return ending, f"{f'-r {output_fps}' if output_fps else ''} "


def generate_filters(
Expand Down Expand Up @@ -247,7 +247,7 @@ def generate_all(
vaapi: bool = False,
start_extra: str = "",
**filters_extra,
) -> Tuple[str, str]:
) -> Tuple[str, str, str]:
settings = fastflix.current_video.video_settings.video_encoder_settings

audio = build_audio(fastflix.current_video.video_settings.audio_tracks) if audio else ""
Expand Down Expand Up @@ -281,7 +281,7 @@ def generate_all(
**filter_details,
)

ending = generate_ending(
ending, output_fps = generate_ending(
audio=audio,
subtitles=subtitles,
cover=attachments,
Expand All @@ -303,7 +303,7 @@ def generate_all(
**settings.dict(),
)

return beginning, ending
return beginning, ending, output_fps


def generate_color_details(fastflix: FastFlix) -> str:
Expand Down
2 changes: 1 addition & 1 deletion fastflix/encoders/copy/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def build(fastflix: FastFlix):
beginning, ending = generate_all(fastflix, "copy", disable_filters=True)
beginning, ending, output_fps = generate_all(fastflix, "copy", disable_filters=True)
rotation = 0
if not fastflix.current_video.current_video_stream:
return []
Expand Down
6 changes: 4 additions & 2 deletions fastflix/encoders/ffmpeg_hevc_nvenc/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
def build(fastflix: FastFlix):
settings: FFmpegNVENCSettings = fastflix.current_video.video_settings.video_encoder_settings

beginning, ending = generate_all(fastflix, "hevc_nvenc", start_extra="-hwaccel auto" if settings.hw_accel else "")
beginning, ending, output_fps = generate_all(
fastflix, "hevc_nvenc", start_extra="-hwaccel auto" if settings.hw_accel else ""
)

beginning += f'{f"-tune:v {settings.tune}" if settings.tune else ""} {generate_color_details(fastflix)} -spatial_aq:v {settings.spatial_aq} -tier:v {settings.tier} -rc-lookahead:v {settings.rc_lookahead} -gpu {settings.gpu} -b_ref_mode {settings.b_ref_mode} '

Expand All @@ -28,7 +30,7 @@ def build(fastflix: FastFlix):
command_1 = (
f"{beginning} -pass 1 "
f'-passlogfile "{pass_log_file}" -b:v {settings.bitrate} -preset:v {settings.preset} -2pass 1 '
f'{settings.extra if settings.extra_both_passes else ""} -an -sn -dn -f mp4 {null}'
f'{settings.extra if settings.extra_both_passes else ""} -an -sn -dn {output_fps} -f mp4 {null}'
)
command_2 = (
f'{beginning} -pass 2 -passlogfile "{pass_log_file}" -2pass 1 '
Expand Down
4 changes: 2 additions & 2 deletions fastflix/encoders/h264_videotoolbox/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def build(fastflix: FastFlix):
settings: HEVCVideoToolboxSettings = fastflix.current_video.video_settings.video_encoder_settings
beginning, ending = generate_all(fastflix, "h264_videotoolbox")
beginning, ending, output_fps = generate_all(fastflix, "h264_videotoolbox")

beginning += generate_color_details(fastflix)

Expand All @@ -28,7 +28,7 @@ def clean_bool(item):
pass_log_file = fastflix.current_video.work_path / f"pass_log_file_{secrets.token_hex(10)}"
beginning += f" "

command_1 = f"{beginning} -b:v {settings.bitrate} {details} -pass 1 -passlogfile \"{pass_log_file}\" {settings.extra if settings.extra_both_passes else ''} -an -f mp4 {null}"
command_1 = f"{beginning} -b:v {settings.bitrate} {details} -pass 1 -passlogfile \"{pass_log_file}\" {settings.extra if settings.extra_both_passes else ''} -an {output_fps} -f mp4 {null}"
command_2 = f'{beginning} -b:v {settings.bitrate} {details} -pass 2 -passlogfile "{pass_log_file}" {settings.extra} {ending}'
return [
Command(command=command_1, name=f"First pass bitrate", exe="ffmpeg"),
Expand Down
4 changes: 2 additions & 2 deletions fastflix/encoders/hevc_videotoolbox/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def build(fastflix: FastFlix):
settings: HEVCVideoToolboxSettings = fastflix.current_video.video_settings.video_encoder_settings
beginning, ending = generate_all(fastflix, "hevc_videotoolbox")
beginning, ending, output_fps = generate_all(fastflix, "hevc_videotoolbox")

beginning += generate_color_details(fastflix)

Expand All @@ -28,7 +28,7 @@ def clean_bool(item):
pass_log_file = fastflix.current_video.work_path / f"pass_log_file_{secrets.token_hex(10)}"
beginning += f" "

command_1 = f"{beginning} -b:v {settings.bitrate} {details} -pass 1 -passlogfile \"{pass_log_file}\" {settings.extra if settings.extra_both_passes else ''} -an -f mp4 {null}"
command_1 = f"{beginning} -b:v {settings.bitrate} {details} -pass 1 -passlogfile \"{pass_log_file}\" {settings.extra if settings.extra_both_passes else ''} -an {output_fps} -f mp4 {null}"
command_2 = f'{beginning} -b:v {settings.bitrate} {details} -pass 2 -passlogfile "{pass_log_file}" {settings.extra} {ending}'
return [
Command(command=command_1, name=f"First pass bitrate", exe="ffmpeg"),
Expand Down
4 changes: 2 additions & 2 deletions fastflix/encoders/hevc_x265/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
def build(fastflix: FastFlix):
settings: x265Settings = fastflix.current_video.video_settings.video_encoder_settings

beginning, ending = generate_all(fastflix, "libx265")
beginning, ending, output_fps = generate_all(fastflix, "libx265")

if settings.tune and settings.tune != "default":
beginning += f"-tune:v {settings.tune} "
Expand Down Expand Up @@ -182,7 +182,7 @@ def get_x265_params(params=()):
command_1 = (
f'{beginning} {get_x265_params(["pass=1", "no-slow-firstpass=1"])} '
f'-passlogfile "{pass_log_file}" -b:v {settings.bitrate} -preset:v {settings.preset} {settings.extra if settings.extra_both_passes else ""} '
f" -an -sn -dn -f mp4 {null}"
f" -an -sn -dn {output_fps} -f mp4 {null}"
)
command_2 = (
f'{beginning} {get_x265_params(["pass=2"])} -passlogfile "{pass_log_file}" '
Expand Down
4 changes: 2 additions & 2 deletions fastflix/encoders/rav1e/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

def build(fastflix: FastFlix):
settings: rav1eSettings = fastflix.current_video.video_settings.video_encoder_settings
beginning, ending = generate_all(fastflix, "librav1e")
beginning, ending, output_fps = generate_all(fastflix, "librav1e")

beginning += (
"-strict experimental "
Expand Down Expand Up @@ -59,7 +59,7 @@ def build(fastflix: FastFlix):
command_1 = f"{beginning} -b:v {settings.bitrate} {settings.extra} {ending}"
return [Command(command=command_1, name=f"{pass_type}", exe="ffmpeg")]
else:
command_1 = f"{beginning} -b:v {settings.bitrate} -pass 1 {settings.extra if settings.extra_both_passes else ''} -an -f matroska {null}"
command_1 = f"{beginning} -b:v {settings.bitrate} -pass 1 {settings.extra if settings.extra_both_passes else ''} -an {output_fps} -f matroska {null}"
command_2 = f"{beginning} -b:v {settings.bitrate} -pass 2 {settings.extra} {ending}"
return [
Command(command=command_1, name=f"First pass {pass_type}", exe="ffmpeg"),
Expand Down
6 changes: 3 additions & 3 deletions fastflix/encoders/svt_av1/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@reusables.log_exception("fastflix", show_traceback=True)
def build(fastflix: FastFlix):
settings: SVTAV1Settings = fastflix.current_video.video_settings.video_encoder_settings
beginning, ending = generate_all(fastflix, "libsvtav1")
beginning, ending, output_fps = generate_all(fastflix, "libsvtav1")

beginning += f"-strict experimental " f"-preset {settings.speed} " f"{generate_color_details(fastflix)} "

Expand Down Expand Up @@ -93,11 +93,11 @@ def convert_me(two_numbers, conversion_rate=50_000) -> str:
return [Command(command=command_1, name=f"{pass_type}", exe="ffmpeg")]
else:
if settings.bitrate:
command_1 = f"{beginning} -b:v {settings.bitrate} -pass 1 {settings.extra if settings.extra_both_passes else ''} -an -f matroska {null}"
command_1 = f"{beginning} -b:v {settings.bitrate} -pass 1 {settings.extra if settings.extra_both_passes else ''} -an {output_fps} -f matroska {null}"
command_2 = f"{beginning} -b:v {settings.bitrate} -pass 2 {settings.extra} {ending}"

elif settings.qp is not None:
command_1 = f"{beginning} -qp {settings.qp} -pass 1 {settings.extra if settings.extra_both_passes else ''} -an -f matroska {null}"
command_1 = f"{beginning} -qp {settings.qp} -pass 1 {settings.extra if settings.extra_both_passes else ''} -an {output_fps} -f matroska {null}"
command_2 = f"{beginning} -qp {settings.qp} -pass 2 {settings.extra} {ending}"
else:
return []
Expand Down
2 changes: 1 addition & 1 deletion fastflix/encoders/svt_av1_avif/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@reusables.log_exception("fastflix", show_traceback=True)
def build(fastflix: FastFlix):
settings: SVTAVIFSettings = fastflix.current_video.video_settings.video_encoder_settings
beginning, ending = generate_all(fastflix, "libsvtav1", audio=False)
beginning, ending, output_fps = generate_all(fastflix, "libsvtav1", audio=False)

beginning += f"-strict experimental " f"-preset {settings.speed} " f"{generate_color_details(fastflix)} "

Expand Down
2 changes: 1 addition & 1 deletion fastflix/encoders/vaapi_h264/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
def build(fastflix: FastFlix):
settings: VAAPIH264Settings = fastflix.current_video.video_settings.video_encoder_settings
start_extra = f"-init_hw_device vaapi=hwdev:{settings.vaapi_device} -hwaccel vaapi -hwaccel_device hwdev -hwaccel_output_format vaapi "
beginning, ending = generate_all(
beginning, ending, output_fps = generate_all(
fastflix,
"h264_vaapi",
start_extra=start_extra,
Expand Down
2 changes: 1 addition & 1 deletion fastflix/encoders/vaapi_hevc/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def build(fastflix: FastFlix):
settings: VAAPIHEVCSettings = fastflix.current_video.video_settings.video_encoder_settings
start_extra = f"-init_hw_device vaapi=hwdev:{settings.vaapi_device} -hwaccel vaapi -hwaccel_device hwdev -hwaccel_output_format vaapi "
beginning, ending = generate_all(
beginning, ending, output_fps = generate_all(
fastflix,
"hevc_vaapi",
start_extra=start_extra,
Expand Down
2 changes: 1 addition & 1 deletion fastflix/encoders/vaapi_mpeg2/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def build(fastflix: FastFlix):
settings: VAAPIMPEG2Settings = fastflix.current_video.video_settings.video_encoder_settings
start_extra = f"-init_hw_device vaapi=hwdev:{settings.vaapi_device} -hwaccel vaapi -hwaccel_device hwdev -hwaccel_output_format vaapi "
beginning, ending = generate_all(
beginning, ending, output_fps = generate_all(
fastflix,
"mpeg2_vaapi",
start_extra=start_extra,
Expand Down
2 changes: 1 addition & 1 deletion fastflix/encoders/vaapi_vp9/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def build(fastflix: FastFlix):
settings: VAAPIVP9Settings = fastflix.current_video.video_settings.video_encoder_settings
start_extra = f"-init_hw_device vaapi=hwdev:{settings.vaapi_device} -hwaccel vaapi -hwaccel_device hwdev -hwaccel_output_format vaapi "
beginning, ending = generate_all(
beginning, ending, output_fps = generate_all(
fastflix,
"vp9_vaapi",
start_extra=start_extra,
Expand Down
6 changes: 3 additions & 3 deletions fastflix/encoders/vp9/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

def build(fastflix: FastFlix):
settings: VP9Settings = fastflix.current_video.video_settings.video_encoder_settings
beginning, ending = generate_all(fastflix, "libvpx-vp9")
beginning, ending, output_fps = generate_all(fastflix, "libvpx-vp9")

beginning += f'{"-row-mt 1" if settings.row_mt else ""} ' f"{generate_color_details(fastflix)} "

Expand All @@ -33,13 +33,13 @@ def build(fastflix: FastFlix):
exe="ffmpeg",
)
]
command_1 = f"{beginning} -speed:v {'4' if settings.fast_first_pass else settings.speed} -b:v {settings.bitrate} {details} -pass 1 {settings.extra if settings.extra_both_passes else ''} -an -f webm {null}"
command_1 = f"{beginning} -speed:v {'4' if settings.fast_first_pass else settings.speed} -b:v {settings.bitrate} {details} -pass 1 {settings.extra if settings.extra_both_passes else ''} -an {output_fps} -f webm {null}"
command_2 = (
f"{beginning} -speed:v {settings.speed} -b:v {settings.bitrate} {details} -pass 2 {settings.extra} {ending}"
)

elif settings.crf:
command_1 = f"{beginning} -b:v 0 -crf:v {settings.crf} {details} -pass 1 {settings.extra if settings.extra_both_passes else ''} -an -f webm {null}"
command_1 = f"{beginning} -b:v 0 -crf:v {settings.crf} {details} -pass 1 {settings.extra if settings.extra_both_passes else ''} -an {output_fps} -f webm {null}"
command_2 = (
f"{beginning} -b:v 0 -crf:v {settings.crf} {details} "
f'{"-pass 2" if not settings.single_pass else ""} {settings.extra} {ending}'
Expand Down
4 changes: 2 additions & 2 deletions fastflix/encoders/vvc/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
def build(fastflix: FastFlix):
settings: VVCSettings = fastflix.current_video.video_settings.video_encoder_settings

beginning, ending = generate_all(fastflix, "libvvenc")
beginning, ending, output_fps = generate_all(fastflix, "libvvenc")

if settings.tier:
beginning += f"-tier:v {settings.tier} "
Expand Down Expand Up @@ -109,7 +109,7 @@ def get_vvc_params(params=()):
command_1 = (
f'{beginning} {get_vvc_params(["pass=1", "no-slow-firstpass=1"])} '
f'-passlogfile "{pass_log_file}" -b:v {settings.bitrate} -preset:v {settings.preset} {settings.extra if settings.extra_both_passes else ""} '
f" -an -sn -dn -f mp4 {null}"
f" -an -sn -dn {output_fps} -f mp4 {null}"
)
command_2 = (
f'{beginning} {get_vvc_params(["pass=2"])} -passlogfile "{pass_log_file}" '
Expand Down
2 changes: 1 addition & 1 deletion fastflix/encoders/webp/command_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
def build(fastflix: FastFlix):
settings: WebPSettings = fastflix.current_video.video_settings.video_encoder_settings

beginning, ending = generate_all(fastflix, "libwebp", audio=False, subs=False)
beginning, ending, output_fps = generate_all(fastflix, "libwebp", audio=False, subs=False)

return [
Command(
Expand Down
2 changes: 1 addition & 1 deletion fastflix/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = "5.5.5"
__version__ = "5.5.6"
__author__ = "Chris Griffith"
17 changes: 12 additions & 5 deletions fastflix/widgets/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,12 @@ def set_profile(self):
logger.error(
f"Profile not set properly as we don't have encoder: {self.app.fastflix.config.opt('encoder')}"
)

self.widgets.remove_hdr.setChecked(self.app.fastflix.config.opt("remove_hdr"))
# self.widgets.deinterlace.setChecked(self.app.fastflix.config.opt("deinterlace"))
self.widgets.chapters.setChecked(self.app.fastflix.config.opt("copy_chapters"))
self.widgets.remove_metadata.setChecked(self.app.fastflix.config.opt("remove_metadata"))

if self.app.fastflix.current_video:
self.video_options.new_source()
finally:
Expand Down Expand Up @@ -1142,6 +1148,7 @@ def stop_me():
except Exception:
logger.exception(f"Could not load video {self.input_video}")
else:
self.page_update(build_thumbnail=False)
self.add_to_queue()
signal.emit(int((i / total_items) * 100))

Expand Down Expand Up @@ -1181,7 +1188,7 @@ def save_file(self, extension="mkv"):
filename = QtWidgets.QFileDialog.getSaveFileName(
self,
caption="Save Video As",
dir=str(Path(*self.generate_output_filename)) + f".{self.widgets.output_type_combo.currentText()}",
dir=str(Path(*self.generate_output_filename)) + f"{self.widgets.output_type_combo.currentText()}",
filter=f"Save File (*.{extension})",
)
if filename and filename[0]:
Expand Down Expand Up @@ -1345,10 +1352,10 @@ def clear_current_video(self):
self.widgets.video_track.removeItem(0)
self.widgets.preview.setText(t("No Video File"))

self.widgets.deinterlace.setChecked(False)
self.widgets.remove_hdr.setChecked(False)
self.widgets.remove_metadata.setChecked(True)
self.widgets.chapters.setChecked(True)
# self.widgets.deinterlace.setChecked(False)
# self.widgets.remove_hdr.setChecked(False)
# self.widgets.remove_metadata.setChecked(True)
# self.widgets.chapters.setChecked(True)

self.widgets.flip.setCurrentIndex(0)
self.widgets.rotate.setCurrentIndex(0)
Expand Down
16 changes: 8 additions & 8 deletions fastflix/widgets/panels/queue_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,14 @@ def queue_startup_check(self, queue_file=None):
):
self.app.fastflix.conversion_list = new_queue

registered_metadata = set()
for video in self.app.fastflix.conversion_list:
if getattr(video.video_settings.video_encoder_settings, "hdr10plus_metadata", None):
registered_metadata.add(Path(video.video_settings.video_encoder_settings.hdr10plus_metadata).name)

for metadata_file in (self.app.fastflix.config.work_path / "queue_extras").glob("*.json"):
if metadata_file.name not in registered_metadata:
metadata_file.unlink(missing_ok=True)
# registered_metadata = set()
# for video in self.app.fastflix.conversion_list:
# if getattr(video.video_settings.video_encoder_settings, "hdr10plus_metadata", None):
# registered_metadata.add(Path(video.video_settings.video_encoder_settings.hdr10plus_metadata).name)
#
# for metadata_file in (self.app.fastflix.config.work_path / "queue_extras").glob("*.json"):
# if metadata_file.name not in registered_metadata:
# metadata_file.unlink(missing_ok=True)

self.new_source()
save_queue(self.app.fastflix.conversion_list, self.app.fastflix.queue_path, self.app.fastflix.config)
Expand Down

0 comments on commit 9a6a50a

Please sign in to comment.