smplayer-dev / smplayer

Free Media Player for Windows, Linux and Mac OS with YouTube support.
https://smplayer.info
GNU General Public License v2.0
679 stars 95 forks source link

SMPlayer isn't selecting default sub and audio tracks anymore #877

Open rado84-github opened 10 months ago

rado84-github commented 10 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Download or make a mkv with multiple audio and subtitle tracks of different languages. Also make the english audio and subs tracks to be default.
  2. Set SMPlayer to automatically choose ENG audio and subtitles.
  3. Run the mkv and see (and hear) it selects the first audio and subs track available, completely ignoring your settings, even when these tracks are default. Especially in the subtitles case, if you click on the menu named "Subtitles" above the video, you'll see that the ENG track isn't selected.

Expected behavior SMPlayer should always select the first available track (audio and subtitles) whose language label matches the ones you've entered in "preferred language and subtitles".

Your Enviroment

Additional context When there are multiple audio tracks, SMP selects the first audio track, regardless of your preferred language settings. When there's only one audio track left in the mkv, SMP selects that audio track automatically but not the subtitles. As you can see in picture1.png, I've set the subtitles and the audio to be default and yet picture2.png clearly shows that SMP hasn't selected the subtitles at all.

picture1 picture2 picture3

I tried downgrading SMP to an older version but that didn't change anything, so I assume the problem is in one of its dependencies, but IDK which one. I also deleted the entire ~/.config/smplayer directory in order to recreate the configuration from scratch but that didn't change anything either. When SMP was version 22.7.0 with the dependencies for that version, everything was working fine.

rado84-github commented 10 months ago

I forgot to attach the log, so here it is: smplayer_log.txt

smplayer-dev commented 10 months ago

I've just tested in my computer with the snap package with smplayer 23.13 and mpv 0.36 with a couple of mvks and I'm afraid I can't reproduce the issue. For me the audio and subtitles are correctly selected, respecting the preferred languages.

rado84-github commented 10 months ago

As I said, the same thing happens with deleted config and freshly installed system, even when smp has been downgraded, that's why I think the problem is in one of its dependencies. But IDK enough about each of them to know which dep could cause it. As for 23.13, I guess I'll have to wait for it to come to Arch's repo cuz we don't use snap and flatpaks and I'm not a big fan of them either. Though I doubt anything will change even with 23.13. Mpv is 0.37 here.

rado84-github commented 10 months ago

Update: I just found out what was causing the problem and you wouldn't believe what it was - the stupid Qt! Deleting ~/.config/QtProject.conf fixed the problem and now everything in my preferred languages is selected properly, even when they're NOT set as default tracks.