Skip to content

fix: align with yt-dlp's behavior again - #724

Open
atsushi2965 wants to merge 5 commits into
jely2002:mainfrom
atsushi2965:patch-2
Open

fix: align with yt-dlp's behavior again#724
atsushi2965 wants to merge 5 commits into
jely2002:mainfrom
atsushi2965:patch-2

Conversation

@atsushi2965

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 984671fbc2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src-tauri/src/runners/ytdlp_args.rs Outdated
Comment thread src-tauri/src/runners/ytdlp_args.rs
Removed audio encoding from sort fields and updated test expectations.
@atsushi2965

Copy link
Copy Markdown
Contributor Author

btw i deprioritized b[language={lang}]

because the current situation isnt permanent,
and (somehow) even with bv*+ba, if theres the pre-merged format in same quality, yt-dlp chooses it.

@jely2002 thank you for ur review in advance

@jely2002 jely2002 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest looks fine, we'll see how it goes. I do think tests are failing.

args.push("--no-embed-chapters".into());
// Ensure we don't get black screens or missing audio.
args.push("--force-keyframes-at-cuts".into());
if output_settings.video.policy == TranscodePolicy::AllowReencode {

@jely2002 jely2002 Mar 29, 2026

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a fan of this change, without this option we get very bad cuts and broken keyframes. If a user chooses to download only part of a video, we can just assume its okay to add the option.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in our colleagues' environment, without it yt-dlp just downloads a bit wider sections than the setting, but doesnt have them broken.
and it forces reencoding, which i dont think its intended by the users who dont want it to reencode


pub fn build_format_args(
format_options: &FormatOptions,
output_settings: &OutputSettings,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused variable

@atsushi2965

Copy link
Copy Markdown
Contributor Author

i wonder if specifying the codec string from info to -S works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants