mpv-player / mpv-player/mpv

MPV with hwdec=cuda and X11 with deinterlacing does not works with latest FFMPEG

Open
#11,818 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

Important Information

Mpv works with FFMPEG older than the May 28, 2023 commit.
https://github.com/FFmpeg/FFmpeg/commits/master?after=024c30aa3b3cdb7d32fa5d79b0973ab8f3065ead+244&branch=master&qualified_name=refs%2Fheads%2Fmaster

With latest FFMPEG I have
[vo/gpu] Failed to commit atomic request: Error number 22 occurred

Provide following Information:

  • mpv version - latest git
  • Linux Distribution and Version - Ubuntu 22.04
  • Source of the mpv binary - compiled
  • Window Manager and version - X11
  • GPU driver and version - nvidia-535.54.03
Reproduction steps

Compile mpv with latest FFMPEG and use with vo=gpu hwdec=cuda gpu-context=x11 or gpu-context=x11egl and -vd-lavc-o=deint=adaptive

I have error and black screen.

With -vd-lavc-o=deint=weave all works fine.

Log file

mpv.log

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 with mpv.log and reproduce the reported configuration: vo=gpu, hwdec=cuda, gpu-context=x11 or x11egl, and adaptive deinterlacing, using the newer FFmpeg build. Compare it with the pre-May 28, 2023 FFmpeg behavior; done means adaptive deinterlacing no longer produces the atomic-request error or a black screen, while weave continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.