mpv-player / mpv-player/mpv

mpv has trouble playing symlinked audio file

Open
#16,714 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os:linux
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

mpv Information
mpv v0.40.0-287-g194ce88ac Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
 built on Aug 16 2025 21:33:13
libplacebo version: v7.351.0
FFmpeg version: n7.1.1
FFmpeg library versions:
   libavcodec      61.19.101
   libavdevice     61.3.100
   libavfilter     10.4.100
   libavformat     61.7.100
   libavutil       59.39.100
   libswresample   5.3.100
   libswscale      8.3.100
Other Information
- Linux version: Artix (Arch), rolling, uptodate
- Kernel Version: 6.15.9
- File system: ext4 on a USB stick
- Window Manager and Version: CLI
- Source of mpv: mpv-git
- Latest known working version: -\\('-')/-
Reproduction Steps

I organize my music via symlinks. Only some of the symlinks (but always the same) will have trouble playing while the original file works fine.

  • symlink song.ogg
  • play symlink
  • do that with a hundred songs, some will have
[ffmpeg/demuxer] ogg: Cannot identify new stream
[ffmpeg/demuxer] ogg: failed to create or replace stream
[lavf] error reading packet: Invalid data found when processing input.
[ffmpeg/demuxer] ogg: Cannot identify new stream
[ffmpeg/demuxer] ogg: failed to create or replace stream
[lavf] error reading packet: Invalid data found when processing input.

and fail after 50% to 70% playing.

  • re-linking doesn't help.
  • file only says that it is a symlink, nothing broken.
  • File- and link name doesn't contain any special characters, except whitespace.

With --profile=fast and --no-config i get

[ffmpeg/demuxer] ogg: Codec not found
A: 00:00:03 / 00:00:04 (73%)
Exiting... (End of file)
Expected Behavior

Play audio file symlink normally; symlinks are considered transparent.

Actual Behavior

mpv sees (some) audio file symlinks as corrupted.

Log File

output.txt

Sample Files

https://limewire.com/d/GwXjn#WaxOrvWvuw

https://limewire.com/d/XUQUh#LX9hbB4Kdr

I carefully read all instruction and confirm that I did the following:
  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • 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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure from the command line with the supplied sample files, comparing each symlink with its original while reviewing output.txt. The issue names no source file or test; done means the affected symlinked Ogg files play normally without the demuxer errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.