Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly more compact save video #2893

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ def close(self):
if_enum_group(16, Simplicity.ADVANCED)(
EnumInput(
VideoFormat,
label="Video Format",
label="Format",
label_style="inline",
option_labels={
VideoFormat.MKV: "mkv",
VideoFormat.MP4: "mp4",
Expand All @@ -292,6 +293,7 @@ def close(self):
EnumInput(
VideoEncoder,
label="Encoder",
label_style="inline",
option_labels={
VideoEncoder.H264: "H.264 (AVC)",
VideoEncoder.H265: "H.265 (HEVC)",
Expand All @@ -308,7 +310,12 @@ def close(self):
.with_id(3)
.wrap_with_conditional_group(),
if_enum_group(3, (VideoEncoder.H264, VideoEncoder.H265))(
EnumInput(VideoPreset, default=VideoPreset.MEDIUM)
EnumInput(
VideoPreset,
label="Preset",
label_style="inline",
default=VideoPreset.MEDIUM,
)
.with_docs(
"For more information on presets, see [here](https://trac.ffmpeg.org/wiki/Encode/H.264#Preset)."
)
Expand Down Expand Up @@ -366,6 +373,7 @@ def close(self):
conditions={
AudioSettings.COPY: ~Condition.enum(4, VideoFormat.WEBM)
},
label_style="inline",
)
.with_docs(
"The first audio stream can be discarded, copied or transcoded at 320 kb/s."
Expand Down
Loading