pts discontinuous content (audio and video increase at the same time, but the actual content is aligned), playback is out of sync

Open
#10,277 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reproducing the issue with mpv --no-config and out_jump_40s.ts, then inspect the linked mpv.log while comparing playback with ffplay. Trace how mpv handles the discontinuous timestamps in the sample; done means the audio and video remain synchronized after the timestamp jump.

Written by the indexing model from the issue text.

Description

os:linux
Important Information

Provide following Information:

  • mpv version
    git master
  • Linux Distribution and Version
    ubuntu 20.04
  • Source of the mpv binary
    git master
  • If known which version of mpv introduced the problem
    none
  • Window Manager and version
    none
  • GPU driver and version
    none
  • Possible screenshot or video of visual glitches

If you're not using git master or the latest release, update.
Releases are listed here: https://github.com/mpv-player/mpv/releases

Reproduction steps

run:

mpv --no-config --log-file=~/Desktop/mpv.log  out_jump_40s.ts

The content's pts is not continuous, like this:

[0~10s][jump about 40s in the middle][51s~64s],

With ffplay playback sync well, mpv starts to get out of sync after +10s playback.

Expected behavior

sync well

Actual behavior

desync at +10s

Log file

mpv.log

Sample files

out_jump_40s.zip

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

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.

More from mpv-player/mpv

All issues in mpv-player/mpv

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.