mov-cli-youtube icon indicating copy to clipboard operation
mov-cli-youtube copied to clipboard

Incorrect audio playback

Open Effectimminent opened this issue 1 year ago • 8 comments

Portuguese audio plays back despite English being the default

URL: https://www.youtube.com/watch?v=yWBzsBaU-Os

Works with just mpv + yt-dlp

[INFO] (mov_cli) - Using 'youtube.DEFAULT' scraper... [INFO] (mov_cli) - Searching for 'potato pc'... [INFO] (mov_cli) - Scraping 'It CAN be done - The Potato PC ~ Linus Tech Tips'... [WARNING] (mov_cli) - [YTDlpScraper] Couldn't find the right audio for your currently selected language so audio localisation will be disabled and the first audio from the YouTube video will be selected. [INFO] (mov_cli) - Playing 'It CAN be done - The Potato PC ~ Linus Tech Tips' with MPV...

ive tried

rebooting resetting ytdlp , mpv and mov-cli configs changing mpv.conf to use a specific audio stream although mov-cli seems to not respect those settings (i suspect this is the issue) tried it on different hardware and a different distro

Effectimminent avatar Nov 14 '24 05:11 Effectimminent

It states it failed to find the localized version of the audio (english), did you change the language in mov-cli's config by any chance?

@r3tr0ananas I think it's possible that this exact video has a different language tag for English, if you're free I would insist having a look.

When v4.5 of mov-cli releases this will definitely be fixed as in v4.5 you are allowed to pass multiple audio streams and switch between them in the video editor.

We'll try and fix this for v4.4 though, thanks for reporting.

THEGOLDENPRO avatar Nov 14 '24 10:11 THEGOLDENPRO

No. other than to add the YouTube scraper when i first installed it. ive also reset the config and that did not resolve the issue. probably should add that in my original comment.

Effectimminent avatar Nov 14 '24 12:11 Effectimminent

fixed the issue should i go ahead and make a pr?

Effectimminent avatar Nov 14 '24 15:11 Effectimminent

Sure

ananasmoe avatar Nov 14 '24 15:11 ananasmoe

I can't reproduce this issue, even with the same video.

ananasmoe avatar Nov 15 '24 14:11 ananasmoe

I can't reproduce this issue, even with the same video.

huh, I could when I tried it. Maybe we have different versions of yt-dlp. (I haven't updated mine in a while.)

EDIT: just updated to yt-dlp-2024.11.4 and same issue

THEGOLDENPRO avatar Nov 15 '24 17:11 THEGOLDENPRO

Is there even a portion of users who prefer auto-dubbed tracks over the original audio? I adapted the scrape calling function in question (in yt-dlp.py) to prefer the original audio track over trying to find a matching version of language preference. Personally, as a user I expected the config language to apply only for subtitles, and do not expect the scraper to fetch auto-dubbed audio tracks - and if the scraper still fetches german auto-dubbed audio even when my config language is "en", something is def wrong.

I fixed it for me now and are happy to publish the fork, should I make an PR?

@Effectimminent @r3tr0ananas @THEGOLDENPRO

hanspeteroliver avatar Mar 28 '25 13:03 hanspeteroliver

Sure

ananasmoe avatar Mar 31 '25 07:03 ananasmoe

I don't know if this will help but, there's an issue in yt-dlp like this too. Someone said when AI dubbing was introduced, some videos will do that. This user suggested doing this -f "bv+(ba[format_note*=original]/ba)" and that supposedly fixes it. However, I don't know to make mov-cli-youtube do that.

https://github.com/yt-dlp/yt-dlp/issues/11753#issuecomment-2540806487

KingCanute92 avatar Sep 03 '25 13:09 KingCanute92

I'm really really sorry for the late fix. Life has been busy.

Should be fixed in the latest version (on pip) of mov-cli-youtube, let me know if it's still broken for you.

THEGOLDENPRO avatar Oct 05 '25 22:10 THEGOLDENPRO