`--alang` isn't effective. Audio selection defaults to the first track.
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- c
- Domain
- audio-video-rtc, cli
Research direction
No source file or test is named. Start by reproducing the issue with the provided mpv command and inspect output.txt, comparing the logged audio-track selection with the track actually played. Done means --alang selects the zho audio track while preserving the currently correct subtitle selection.
Written by the indexing model from the issue text.
Description
mpv Information
mpv v0.41.0-1084-ga1bf4b655 Copyright © 2000-2026 mpv/MPlayer/mplayer2 projects
built on Sep 26 2026 16:07:32
libplacebo version: v7.372.0 (v7.360.0-132-gc42968d-dirty)
FFmpeg version: N-126899-gd97584959
FFmpeg library versions:
libavcodec 63.14.100
libavdevice 63.2.100
libavfilter 12.4.100
libavformat 63.7.100
libavutil 61.8.100
libswresample 7.3.100
libswscale 10.2.100
Other Information
- Windows version:10.0.29671.1000
- GPU model, driver and version: Intel Arc Graphics
- Source of mpv: zhongfly/mpv-winbuild/releases
- Latest known working version: No longer traceable (Note: The builds on zhongfly's repo only date back to 8/28, and that version already had this issue.)
- Issue started after the following happened:
Reproduction Steps
Run mpv bd:// --bluray-device="X:\temp\1.iso" --alang=zh,chi,zho,zh-CN,zh-Hans,en,eng --slang=zh,chi,zho,zh-CN,zh-Hans,en,eng
Note: I append --slang= just for sanity check and reference. It is not directly related to the issue reported here, but is helpful for generating screenshots below for problem statement.
Expected Behavior
The tested .iso file has both audio and subtitle in zho (Chinese). I expect mpv to autoselect those for playback.
Actual Behavior
Even though the log file seems to indicate that mpv selects the right audio track (line 710) and subtitle track (line 723), in reality it plays the first audio track (English). The subtitle selection is correct, though. See the screenshots below.
Log File
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
- I tested and confirmed that the issue exists with the latest release version or newer.
- I provided all required information including system and mpv version.
- I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of
--log-file=output.txt. - I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
- I attached the full, untruncated log file.
- I attached the backtrace in the case of a crash.
- Dominant language
- C
- Stars
- 38.2k
- Forks
- 3.7k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 76
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mpv-player/mpv
-
meta:feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
mpv-player/mpv#18855 · 2 comments ·
Maintainers usually reply within 1 day
-
meta:feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
mpv-player/mpv#18683 · 4 comments ·
Maintainers usually reply within 1 day
-
Subtitle delay value displays "-0ms"May be free again A pull request for this issue was closed without being merged. Openos:linux
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
mpv-player/mpv#18649 · 1 comment ·
Maintainers usually reply within 1 day
-
meta:feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mpv-player/mpv#18464 ·
Maintainers usually reply within 1 day
-
Keyboard shortcut next and previous secondary subtitle filePossibly taken @ravarnax claimed this 225 days ago. Openmeta:feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
mpv-player/mpv#17693 · 5 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
`sha256()` returns a wrong hash when libsql-ffi is built with gcc 11 or laterPossibly taken @colinhacks claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tursodatabase/libsql#2333 ·
Maintainers usually reply within 11 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenPrinting/cups#1826 ·
Maintainers usually reply within 1 day
-
Backport to 3.0 advertises a suffix that does not existPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
389ds/389-ds-base#8152 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RetroAchievements/rcheevos#580 · 1 comment ·
Maintainers usually reply within 5 days