mpv-player / mpv-player/mpv

mpv hangs with certain (unusual) FLAC files

Open
#9,385 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Important Information
Reproduction steps
  1. start mpv
  2. load the problematic files (file 54 and/or file 55 of the testbench)
Expected behavior

mpv plays the files

Actual behavior

mpv hangs and has to be force-closed

Sample files

The files are part of the "FLAC decoder testbench": https://wiki.hydrogenaud.io/index.php?title=FLAC_decoder_testbench
The problematic files are "54 - 1000x repeating VORBISCOMMENT.flac" and "55 - file 48-53 combined.flac".

The hanging can be avoided by using title=${filename} in the config, but even then mpv takes a long time before starting to play file 55.

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 hang with files 54 and 55 from the FLAC decoder testbench, then compare behavior with title=${filename} in the configuration. Trace the playback path for these files and verify that both begin playback without requiring a force-close or an excessive delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc, 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.