Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playback becomes stuck using avfoundation audio driver #14092

Open
low-batt opened this issue May 8, 2024 · 1 comment · May be fixed by #14096
Open

Playback becomes stuck using avfoundation audio driver #14092

low-batt opened this issue May 8, 2024 · 1 comment · May be fixed by #14096

Comments

@low-batt
Copy link
Contributor

low-batt commented May 8, 2024

Important Information

Provide following Information:

  • mpv version master at d6803c4
  • macOS Version 13.6.3
  • Source of the mpv binary or bundle: local build using mpv-build
  • If known which version of mpv introduced the problem: unknown
  • Possible screenshot or video of visual glitches: N/A

Reproduction steps

  • Start playing the video below with --ao=avfoundation
  • Click the OSC ⏯ button to pause playback
  • Press the → key to move the playback position forward
  • Click the OSC ⏯ button to resume playback
  • Repeat until clicking the OSC ⏯ button fails to resume playback

This shows options used when reproducing the problem:

low-batt@gag mpv-build (master %=)$ mpv/build/mpv --no-config  --log-file=mpv.log --ao=avfoundation --keep-open ~/Movies/Advanced\ stream\ H.264\:HEVC\:UHD\:Dolby\ Vision\:Dolby\ Digital\:Dolby\ Atmos.mp4 
 (+) Video --vid=1 (*) (hevc 3840x2160 23.976fps)
 (+) Audio --aid=1 (*) (eac3 6ch 48000Hz)
AO: [avfoundation] 48000Hz 5.1(side) 6ch float
VO: [libmpv] 3840x2160 yuv420p10
AV: 00:00:19 / 00:01:38 (20%) A-V:  0.000 Dropped: 5                    
Exiting... (Quit)
low-batt@gag mpv-build (master %=)$ 

Expected behavior

Playback can be paused and resumed using the OSC ⏯ button.

Actual behavior

Playback becomes stuck and will not resume using the OSC ⏯ button. Once playback is stuck you can click the OSC ⏯ button over and over again and playback will not resume. Changing the playback position with the button showing ⏸ clears the problem and playback resumes.

This was reported against IINA in issue iina/iina#4921.

Log file

At the end of the log file you can see me clicking pause/resume over and over again without the video playing. Then I change the playback position and the video starts playing:
mpv.log

Process sample while playback is stuck:
Sample of mpv.txt

Sample files

I reproduced this using the Apple example file Advanced stream
H.264/HEVC/UHD/Dolby Vision/Dolby Digital/Dolby Atmos
.

@Akemi
Copy link
Member

Akemi commented May 8, 2024

pinging @ruihe774

@ruihe774 ruihe774 linked a pull request May 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants