FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: Original Audio track isnt applied when switching away from the legacy formats

Open pseudomonas opened this issue 11 months ago • 17 comments

Guidelines

Describe the bug

When I go to a video with multiple language tracks, I get offered the first language in the list (typically German). Neither the original language of the video, my system language, or my Freetube interface language is German.

This is not the same as https://github.com/FreeTubeApp/FreeTube/issues/4291 where the original language was always being provided.

Expected Behavior

My language is set as English (UK), so I would expect to be given

  • English (UK)
  • Any other English (arbitrarily chosen)
  • The original language of the video

in that order of preference; alternatively I would be fine with just always being given the video's original language.

Issue Labels

usability issue

FreeTube Version

v0.23.3 Beta

Operating System Version

Ubuntu 22.04

Installation Method

Flathub

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

No response

Nightly Build

pseudomonas avatar Apr 01 '25 13:04 pseudomonas

Please provide a link to the video you experienced this with. Additionally it would be good to know if this happens for every playback of that same video or only sometimes?

absidue avatar Apr 01 '25 14:04 absidue

@absidue examples:

https://youtu.be/08UfIjELhH4

https://youtu.be/4lPfnFo3FSg

https://youtu.be/m7-UdDg5uIw

I always get German by default. Every time. 0.23.3 Flatpak

My default language is also English UK.

ihatemakinganaccount avatar Apr 05 '25 01:04 ihatemakinganaccount

Im unable to reproduce with these urls

Perhaps it only happens when your IP address is in a country that has German as one of its official languages?

pseudomonas avatar Apr 05 '25 07:04 pseudomonas

Tried going to Germany with my VPN and im still unable to reproduce

@pseudomonas Which video quality do you have set as your default: Auto or one of the specific resolutions?

absidue avatar Apr 05 '25 07:04 absidue

I'll have to check when I'm back home on Monday

pseudomonas avatar Apr 05 '25 07:04 pseudomonas

I default to the first language in the list (usually German) if I'm using Legacy 480p, but default to English (original) with Dash 480p.

legacyt avatar Apr 05 '25 15:04 legacyt

I also have mine set to legacy (because of the autoplay bug that affects dash). Haven't thought of that lol. True, it doesn't seem to be the case when dash is selected as default.

ihatemakinganaccount avatar Apr 05 '25 22:04 ihatemakinganaccount

i can reproduce this way.

  1. Go to Player Settings
  2. Set Default Video Format to Legacy
  3. Go to https://youtu.be/m7-UdDg5uIw
  4. See that chosen track is German

Okay so what is happening is that it is failing to play the legacy format, there is only one and it is 360p with the original audio language (so in this case English), and is then switching to audio or DASH and when it does that it is just picking the first audio track, not the original one.

So long story short this is a bug when switching away from legacy to DASH or audio, not with the actual legacy formats playback.

absidue avatar Apr 06 '25 10:04 absidue

I also experience this bug for about a week ! My language is also set as English (UK) (Legacy, 360p by defaut in settings), and as you describe most videos come with German Audio. I am watching from France, so no German IP on my side :)

Choosing "DASH" format in the settings seems to solve the issue. Thanks for the suggestion.

debie-A320FL avatar Apr 06 '25 15:04 debie-A320FL

@absidue are you sure that's the reason?

  1. If I switch default format to audio, I get English as default language

  2. I'm using legacy format as default, because dash and audio are affected by the autoplay bug (disabling autoplay is effectively being ignored). If you're right and the legacy format setting is effectively ignored and it switches to dash, doesn't that mean that I should get autoplay even when legacy format is default?

And why is it even failing to play legacy then? That's weird.

Just checking...

ihatemakinganaccount avatar Apr 07 '25 08:04 ihatemakinganaccount

The auto-play problem is completely unrelated, is already covered in a different ticket (plus many duplicates because people don't search through the existing issues before opening a new one) and is already fixed in the development branch, so the fix for that will be in 0.24.0 (no ETA for that).

And why is it even failing to play legacy then? That's weird.

If you look in the console you'll see a 403 error just before it switches away from the legacy formats. YouTube only seems to error in the first few seconds, if you switch back to it afterwards it will work just fine, as for why it happens we aren't quite sure yet. yt-dlp issue about the same thing: https://github.com/yt-dlp/yt-dlp/issues/12794

absidue avatar Apr 07 '25 08:04 absidue

Hi, I'm having the exact same problem.

[ SETTINGS ]

{"_id":"backendFallback","value":true} {"_id":"backendPreference","value":"local"} {"_id":"barColor","value":false} {"_id":"baseTheme","value":"catppuccinMocha"} {"_id":"bounds","value":{"x":1920,"y":37,"width":1920,"height":1043,"maximized":true,"fullScreen":false}} {"_id":"currentLocale","value":"system"} {"_id":"defaultCaptionSettings","value":"{"backgroundColor":"#000","backgroundOpacity":"1","color":"#FFF","fontFamily":"proportionalSansSerif","textOpacity":"1","windowColor":"#000","windowOpacity":"0"}"} {"_id":"defaultInvidiousInstance","value":"http://127.0.0.1:3001"} {"_id":"defaultQuality","value":"auto"} {"_id":"defaultVideoFormat","value":"dash"} {"_id":"defaultViewingMode","value":"theatre"} {"_id":"displayVideoPlayButton","value":false} {"_id":"expandSideBar","value":false} {"_id":"forceLocalBackendForLegacy","value":false} {"_id":"hideUpcomingPremieres","value":true} {"_id":"mainColor","value":"DraculaCyan"} {"_id":"playNextVideo","value":true} {"_id":"proxyProtocol","value":"http"} {"_id":"proxyVideos","value":true} {"_id":"region","value":"BR"} {"_id":"secColor","value":"DraculaCyan"} {"_id":"settingsPassword","value":""} {"_id":"sponsorBlockInteraction","value":{"color":"Green","skip":"showInSeekBar"}} {"_id":"sponsorBlockSelfPromo","value":{"color":"Yellow","skip":"showInSeekBar"}} {"_id":"sponsorBlockUrl","value":"https://sponsor.ajay.app"} {"_id":"useProxy","value":false} {"_id":"useRssFeeds","value":false} {"_id":"useSponsorBlock","value":true}

[ INFO ]

Test videos: [1] https://youtu.be/8JDIcxhWgeQ [2] https://youtu.be/uRA10nidKSc

The video [1] has 2 audio tracks: Brazilian Portuguese (original) and American English The video [2] has 1 audio track: Brazilian Portuguese

Ps: [1] It's a channel of an American guy who creates content in Brazilian Portuguese. The first sentence is in English ("What's up"), but the rest of the video is in Brazilian Portuguese

On Freetube, the audio from video [1] is in English, even though the original audio is in Brazilian Portuguese and I don't have the audio track selection button in the player to select the original one. And the expected behavior would be to play the original audio track (Brazilian Portuguese) by default instead of the English one.

The audio from video [2] is in Brazilian Portuguese, since it's the only audio track available.

As you can see in the Freetube screenshot, I don't have the audio track selection button in the Freetube Player.

Below, my selfhosted Invidious instance settings. It plays the English audio track by default, but at least I have the option to select the original one.

Image

Image

Image

Image

darwin-brandao avatar Jun 27 '25 11:06 darwin-brandao

@darwin-brandao Your issue is the pinned one #6683, which is unrelated to this one.

absidue avatar Jun 27 '25 12:06 absidue

Hi ! I see the same problem with this video, for example https://www.youtube.com/watch?v=3GXFBL0wW0Y. I discovered this problem with this video.

When I launch the video in “DASH format”, it's the English voice generated by Youtube that reads. What's more, the video only launches in 360p.

When I launch the video in “LEGACY format”, however, I get the basic French voice and the video in 720p as intended by the Legacy format.

azeinier avatar Jul 04 '25 00:07 azeinier