youwee icon indicating copy to clipboard operation
youwee copied to clipboard

Can you optimize YouTube network and certification-related operations?

Open lkyoh opened this issue 8 months ago • 13 comments

Is it possible to log in to Google account to authorize login related to YouTube video authentication?

Image

lkyoh avatar Mar 06 '26 04:03 lkyoh

You only login in youtube account on your browser and select from browser with the profile has that account.

vanloctech avatar Mar 06 '26 06:03 vanloctech

Does this require closing the browser?

Image

lkyoh avatar Mar 06 '26 06:03 lkyoh

Yes with chrome, you need close browser.

You can firefox for login account and enable cookie with this browser for download and chrome is use normal.

vanloctech avatar Mar 06 '26 14:03 vanloctech

This will appear when using a browser, but it cannot be downloaded, is it possible to implement the built-in browser login method?

Image

lkyoh avatar Mar 07 '26 10:03 lkyoh

No, currently, yt-dlp does not support the built-in browser login method. And YouTube also doesn't allow this. It all depends on browser cookies.

vanloctech avatar Mar 10 '26 04:03 vanloctech

Yes, when you need to download a large number of videos on a daily basis, it is inconvenient when you need to authenticate and log in.

lkyoh avatar Mar 10 '26 08:03 lkyoh

The same link will result in different download outcomes depending on the option selected; option 1 will fail, while option 2 will succeed.

Image

lkyoh avatar Mar 12 '26 02:03 lkyoh

The cookie file method has a disadvantage, requiring frequent export of new cookie information.

lkyoh avatar Mar 14 '26 06:03 lkyoh

Yes, this is a yt-dlp issue. I think you should log into your YouTube account on a browser you don't use to watch videos and configure YouTube to use cookies in that browser. This will help avoid having to manually use cookie files.

vanloctech avatar Mar 18 '26 15:03 vanloctech

The same link will result in different download outcomes depending on the option selected; option 1 will fail, while option 2 will succeed.

Image

That's interesting information, I'll check it out.

vanloctech avatar Mar 18 '26 15:03 vanloctech

The same link will result in different download outcomes depending on the option selected; option 1 will fail, while option 2 will succeed.

Image

please show me command of number 1

vanloctech avatar Mar 18 '26 16:03 vanloctech

number 1 logs youwee-logs-2026-03-23.json

lkyoh avatar Mar 23 '26 03:03 lkyoh

Thanks for the logs. The issue is not caused by a different yt-dlp version. Both pages use the same yt-dlp binary, but the YouTube page was using a stricter format selector because its default video codec was set to H.264. That generated a command like bestvideo[vcodec^=avc]+bestaudio/..., while the Universal page uses auto codec selection. For some YouTube videos, the H.264-specific selector can fail with “Requested format is not available”, even though the same video works with automatic format selection. We’ve changed the default YouTube video codec to Auto so new downloads behave more like the Universal page. If you already have H.264 saved in settings, please switch Video Codec to Auto and retry.

vanloctech avatar May 29 '26 05:05 vanloctech