mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.39k stars 2.91k forks source link

gpu-next: AV1 film grain shader flips luma plane on OpenGL ES #14651

Open sfan5 opened 2 months ago

sfan5 commented 2 months ago

mpv Information

mpv v0.38.0-682-g88885c0401 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Aug  8 2024 11:33:44
libplacebo version: v7.349.0 (v7.349.0-5-g82bf46ae)
FFmpeg version: n7.0.2
FFmpeg library versions:
   libavcodec      61.3.100
   libavdevice     61.1.100
   libavfilter     10.1.100
   libavformat     61.1.100
   libavutil       59.8.100
   libswresample   5.1.100
   libswscale      8.1.100

Important Information

Tested on Arch Linux w/ AMD Radeon RX 6600 but also reproduces on various Android devices.

Reproduction Steps

mpv --no-config --vo=gpu-next fosdem-2024-2581.webm --vd-lavc-dr=no --profile=fast --opengl-es --vd-lavc-film-grain=gpu --geometry=1920x1080

note: it's important that you have 1080p in fullscreen or a window of that size. as soon as any scaling happens the bug disappears.

vd-lavc-film-grain=cpu gets rid of the issue and so does using OpenGL since that uses a different code path inside libplacebo.

Expected Behavior

correct video rendering

Actual Behavior

wrong

Log File

asdf.log

Sample Files

fosdem-2024-2581.webm

sfan5 commented 2 months ago

original report: https://github.com/mpv-android/mpv-android/issues/833