FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: v0.23.5 selects/plays the wrong auto-dubbed audio track not the original due to SABR workaround

Open j4reporting opened this issue 11 months ago • 12 comments

Guidelines

  • [x] I have encountered this bug in the latest release of FreeTube.
  • [x] I have encountered this bug in the official downloads of FreeTube.
  • [x] I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
  • [x] I have searched the documentation for information that matches the description of the bug I want to file, without success.
  • [x] This issue contains only one bug.

Describe the bug

version 0.22.1 plays this video 4rEnJO-fwic with the original audio track Player does not select the auto-dubbed English audio track.

The new version starts playing the English track, not the original German audio track ( this is consistent with local and invidious API) THis happens every time then video begins to play. I'm aware of issue https://github.com/FreeTubeApp/FreeTube/issues/4291 but this looks like a regression.

Changing the 'Locale Preference' to 'German' had no effect either.

0.22.1 does list the available audio tracks in different order 1. German 2. English 0.23.0 shows English then German.

yt-dlp.exe -F https://youtu.be/4rEnJO-fwic
[youtube] Extracting URL: https://youtu.be/4rEnJO-fwic
[youtube] 4rEnJO-fwic: Downloading webpage
[youtube] 4rEnJO-fwic: Downloading tv client config
[youtube] 4rEnJO-fwic: Downloading player f3d47b5a
[youtube] 4rEnJO-fwic: Downloading tv player API JSON
[youtube] 4rEnJO-fwic: Downloading ios player API JSON
[youtube] 4rEnJO-fwic: Downloading m3u8 information
[info] Available formats for 4rEnJO-fwic:
ID    EXT   RESOLUTION FPS CH │    FILESIZE    TBR PROTO │ VCODEC           VBR ACODEC      ABR ASR MORE INFO
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb3   mhtml 48x27        0    │                    mhtml │ images                                   storyboard
sb2   mhtml 80x45        0    │                    mhtml │ images                                   storyboard
sb1   mhtml 160x90       0    │                    mhtml │ images                                   storyboard
sb0   mhtml 320x180      0    │                    mhtml │ images                                   storyboard
233-0 mp4   audio only        │                    m3u8  │ audio only           unknown             [en-US] American English - dubbed
234-0 mp4   audio only        │                    m3u8  │ audio only           unknown             [en-US] American English - dubbed
233-1 mp4   audio only        │                    m3u8  │ audio only           unknown             [de-DE] Deutsch (Deutschland) - original (default)
234-1 mp4   audio only        │                    m3u8  │ audio only           unknown             [de-DE] Deutsch (Deutschland) - original (default)
249-0 webm  audio only      2 │     5.04MiB    47k https │ audio only           opus        47k 48k [en-US] English (United States) (default), low, webm_dash
250-0 webm  audio only      2 │     6.10MiB    57k https │ audio only           opus        57k 48k [en-US] English (United States) (default), low, webm_dash
249-1 webm  audio only      2 │     5.34MiB    50k https │ audio only           opus        50k 48k [de-DE] German (Germany) original, low, webm_dash
250-1 webm  audio only      2 │     6.13MiB    57k https │ audio only           opus        57k 48k [de-DE] German (Germany) original, low, webm_dash
140-0 m4a   audio only      2 │    13.82MiB   129k https │ audio only           mp4a.40.2  129k 44k [en-US] English (United States) (default), medium, m4a_dash
140-1 m4a   audio only      2 │    13.82MiB   129k https │ audio only           mp4a.40.2  129k 44k [de-DE] German (Germany) original, medium, m4a_dash
251-0 webm  audio only      2 │    11.68MiB   109k https │ audio only           opus       109k 48k [en-US] English (United States) (default), medium, webm_dash
251-1 webm  audio only      2 │    11.38MiB   107k https │ audio only           opus       107k 48k [de-DE] German (Germany) original, medium, webm_dash

Expected Behavior

play original audio track if possible. Works also in newpipe and ReVanced on Android.

Issue Labels

inconsistent behavior

FreeTube Version

0.23.0

Operating System Version

Win10

Installation Method

.zip / .7z

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

0.22.1

Additional Information

I noticed that this also happen with the browser (firefox)

Nightly Build

j4reporting avatar Jan 31 '25 11:01 j4reporting

This is what I can observe while watching youtube with a browser ( firefox): It looks like youtube selects the language according to the browser's preferred language setting for displaying pages. If I move German to the top of this list, then video plays the German audio track.

Even more annoying is the fact that an empty list (no preferred language set) let Youtube select the language according to your location ( ip address ). Verified with a video with English Original audio track sF5LYGgKbUA.

YouTube seems to hate multilingual users. This is bonkers!

j4reporting avatar Jan 31 '25 21:01 j4reporting

Hello,

I hope you will do something urgently to fix this problem which is extremely annoying for me too.

I am a native French speaker (I do not speak English). When I launch a video from a French channel, it is systematically translated and broadcast in English. I have to adjust the audio settings to French every time to watch the videos in my language and in the long run it just puts me off using FreeTube... Indeed because of this problem, the comfort of using FreeTube is clearly inferior to Youtube...

Thank you for trying to fix this as soon as possible, and thank you again for this software which is very useful to us when it wants to work without complications.

Regards.

Phil995511 avatar Feb 09 '25 10:02 Phil995511

@Phil995511 you can also contact the content creators and ask them to disable youtube's auto ai dubbing. I guess most are not even aware that this new annoying feature has been enabled by default.

Turn off automatic dubbing for your channel https://support.google.com/youtube/answer/15569972?hl=en

it's also possible to delete the already existing dubs.

j4reporting avatar Feb 09 '25 20:02 j4reporting

Closed by #6867

absidue avatar Feb 22 '25 07:02 absidue

In that case, it's a regression because not happening in previous build.

Dirk9220 avatar Apr 12 '25 19:04 Dirk9220

I'm not sure why this was closed. It's still happening or happening again, v0.23.5-nightly-5993 Beta and 5992. I'm now regularly getting audio served that is translated into english instead of the original audio. I'm not using an VPN and my IP points to my correct location. I cannot say exactly when it started because I download a new build about once every 2 weeks and it did not happen end of April. The videos I watched then in the correct language now have the AI audio. I cannot try an earlier Freetube build because those don't work anymore.

I have tried to change "locale preference" to the original language of the videos, to system default and to random languages and I've tried both APIs but nothing helps, I'm still getting english audio. Sadly this renders Freetube practically unusable.

You'll probably close this again but please just say why? Is this something Youtube enforces that Freetube cannot influence?

ilu33 avatar May 07 '25 18:05 ilu33

@ilu33 you have to be more clear. This was fixed a while ago like you can see for yourself. Please provide steps so we can reproduce.

So probably a regression as the previous poster mentioned.

FreeTube Version v0.23.5-nightly-5993 Beta and 5992 Beta Operating System Version: Debian 12 Installation Method: .zip / .7z/appimage - tried all Primary API used: tried both Last Known Working FreeTube Version (If Any): not sure

Video examples with audio still working correctly end of April (not sure which build I used) - and now auto translating: https://youtu.be/nP7vU4kEQm8 https://youtu.be/uCPUV4l0kRY

yt-dlp -F --audio-multistreams https://youtu.be/uCPUV4l0kRY
...
[info] Available formats for uCPUV4l0kRY:
ID    EXT   RESOLUTION FPS CH ���   FILESIZE   TBR PROTO ��� VCODEC          VBR ACODEC      ABR ASR MORE INFO
...
233-0 mp4   audio only        ���                  m3u8  ��� audio only          unknown             [en-US] American English - dubbed-auto
234-0 mp4   audio only        ���                  m3u8  ��� audio only          unknown             [en-US] American English - dubbed-auto
233-1 mp4   audio only        ���                  m3u8  ��� audio only          unknown             [de-DE] Deutsch (Deutschland) - original, low (default)
234-1 mp4   audio only        ���                  m3u8  ��� audio only          unknown             [de-DE] Deutsch (Deutschland) - original, high (default)
249-0 webm  audio only      2 ���    8.97MiB   56k https ��� audio only          opus        56k 48k [en-US] English (United States) (default), low, webm_dash
250-0 webm  audio only      2 ���   11.63MiB   73k https ��� audio only          opus        73k 48k [en-US] English (United States) (default), low, webm_dash
249-1 webm  audio only      2 ���    8.18MiB   51k https ��� audio only          opus        51k 48k [de-DE] German (Germany) original, low, webm_dash
250-1 webm  audio only      2 ���   10.46MiB   65k https ��� audio only          opus        65k 48k [de-DE] German (Germany) original, low, webm_dash
140-0 m4a   audio only      2 ���   20.77MiB  129k https ��� audio only          mp4a.40.2  129k 44k [en-US] English (United States) (default), medium, m4a_dash
140-1 m4a   audio only      2 ���   20.77MiB  129k https ��� audio only          mp4a.40.2  129k 44k [de-DE] German (Germany) original, medium, m4a_dash
251-0 webm  audio only      2 ���   22.44MiB  140k https ��� audio only          opus       140k 48k [en-US] English (United States) (default), medium, webm_dash
251-1 webm  audio only      2 ���   19.02MiB  119k https ��� audio only          opus       119k 48k [de-DE] German (Germany) original, medium, webm_dash

Not sure which additional details you need?Should I open a new issue?

ilu33 avatar May 07 '25 18:05 ilu33

Video examples with audio still working correctly

This isnt concrete at all. State what audio these videos should play and what audio you receive.

They should play the original language, which is german as you can see from the yt-dlp output. I'm not sure which audio I receive, probably American English - dubbed-auto - can I check this somehow?

With "yt-dlp https://youtu.be/uCPUV4l0kRY" I'm downloading the correct original audio.

ilu33 avatar May 07 '25 18:05 ilu33

Tested 5994 appimage and still no joy.

But: The latest build by Pikachu https://github.com/PikachuEXE/FreeTube/actions/runs/14897993296 does not have the bug, the videos I checked are delivered with correct original audio. Going to use Pikachus build now and will report if the problem returns.

Hope this helps.

ilu33 avatar May 08 '25 13:05 ilu33

@ilu33 this issue came back in v0.23.5 because we needed to implement a workaround for the playback issues as described in our release notes. What was not properly described in there that it would reintroduce this issue.