mpv Information
mpv v0.41.0-774-g2339eb727 Copyright © 2000-2026 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.360.1
FFmpeg version: 7.1.3
FFmpeg library versions:
libavcodec 61.19.101
libavdevice 61.3.100
libavfilter 10.4.100
libavformat 61.7.100
libavutil 59.39.100
libswresample 5.3.100
libswscale 8.3.100
Other Information
- Linux version: Gentoo
- Kernel Version: 6.13.2 vanilla
- GPU Model: Navi 23 [Radeon RX 6600/6600 XT/6600M]
- Mesa/GPU Driver Version: 4.6 (Compatibility Profile) Mesa 25.3.6
- Window Manager and Version: e16 (Gentoo's version number 1.0.31) on xlibre (bug also on xorg)
- Source of mpv: Gentoo ebuild git build (version 9999)
- Latest known working version: Years back, don't know, sorry.
- Issue started after the following happened: Years back, don't know, probably after some update of mpv. Sorry.
Reproduction Steps
When playing any video file, MPV creates a window that is slightly larger than the actual video frame size. For most videos, this yields like a 1920x1082 video for a full hd video (instead of the correct size of 1920x1080). The window the has a black pixel line on top and one on bottom, the video is offset by 0x1 in the window. Opening the same video in ffplay creates a window of the correct size of 1920x1080 and no black pixel lines are shown. Not always will the bug be adding extra pixel lines, instead I have some files like with size 576x432 which creates a window of size 576x433 and adds a (only one) black pixel column on the right side.
Expected Behavior
Obviously correct window sizes and not added black pixel lines/columns.
Actual Behavior
Wrong window size by 1/2px.
Log File
Two example excerpts from the logfile which hints to the place where things get actually wrong. There is one mention of a frame size of 576x450 and later another sizes of 288x432 and 288x216 are mentioned, but the most important moment is libplacebo requesting an image size of 576x433. This is the output of grep "576x|x432|x433|x450|288x|x216[^0]" -5 output.log, if you really need more log content I am willing to provide that but I believe, this is enough. Additionally I added the output for another file (grep "1280x|x720|x722|640x|x360" -5 output.log) - same problem, same location where it first appears in the log (log files from running mpv --no-config --gpu-debug --log-file=output.log "$file"):
[ 0.216][d][osc] osc_init
[ 0.217][v][cplayer] Running hook: auto_profiles/on_loaded
[ 0.217][v][cplayer] Failed sending hook command auto_profiles/on_loaded. Removing hook.
[ 0.217][v][lavf] select track 0
[ 0.217][v][lavf] select track 1
[ 0.217][i][cplayer] ● Video --vid=1 (h264 576x432 23.976 fps 273 kbps) [default]
[ 0.217][i][cplayer] ● Audio --aid=1 --alang=eng (aac 1ch 48000 Hz 32 kbps) [default]
[ 0.219][v][vo/gpu-next] Probing for best GPU context.
[ 0.219][v][vo/gpu-next/auto] Initializing GPU context 'auto'
[ 0.219][v][vo/gpu-next/vulkan] Initializing GPU context 'x11vk'
[ 0.222][v][vo/gpu-next/libplacebo] Initialized libplacebo v7.360.1 (API v360)
--
[ 0.520][v][file] stream level seek from 209897371 to 2202052
[ 0.534][v][af] [in] 48000Hz stereo 2ch floatp
[ 0.534][v][af] [userspeed] 48000Hz stereo 2ch floatp
[ 0.534][v][af] [userspeed] (disabled)
[ 0.534][v][af] [convert] 48000Hz stereo 2ch floatp
[ 0.534][d][ffmpeg/video] h264: Reinit context to 576x432, pix_fmt: yuv420p
[ 0.538][d][vd] DR parameter change to 576x450 yuv420p align=64
[ 0.538][d][vd] Allocating new (host-cached) DR image...
[ 0.538][d][vo/gpu-next/libplacebo] Allocating 434304 memory of type 0xe (id 5) in heap 0: unknown
[ 0.538][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 0.538][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 0.538][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
--
[ 0.543][d][vd] Allocating new (host-cached) DR image...
[ 0.543][d][vd] Allocating new (host-cached) DR image...
[ 0.548][d][vd] Allocating new (host-cached) DR image...
[ 0.548][d][vd] Allocating new (host-cached) DR image...
[ 0.559][v][vd] Using software decoding.
[ 0.559][v][vd] Decoder format: 576x432 [0:1] yuv420p auto/auto/auto/auto/auto CL=mpeg2/4/h264 crop=576x432+0+0 A=none
[ 0.559][v][vf] [in] 576x432 yuv420p bt.601/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=576x432+0+0 A=none
[ 0.559][v][vf] [userdeint] 576x432 yuv420p bt.601/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=576x432+0+0 A=none
[ 0.559][v][vf] [userdeint] (disabled)
[ 0.559][v][vf] [autovflip] 576x432 yuv420p bt.601/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=576x432+0+0 A=none
[ 0.559][v][vf] [autovflip] (disabled)
[ 0.559][v][vf] [autorotate] 576x432 yuv420p bt.601/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=576x432+0+0 A=none
[ 0.559][v][vf] [autorotate] (disabled)
[ 0.559][v][vf] [convert] 576x432 yuv420p bt.601/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=576x432+0+0 A=none
[ 0.559][v][vf] [convert] (disabled)
[ 0.559][v][vf] [out] 576x432 yuv420p bt.601/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=576x432+0+0 A=none
[ 0.559][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.559][d][osd/libass] ASS library version: 0x1704000 (runtime 0x1704000)
[ 0.559][v][osd/libass] libass API version: 0x1704000
[ 0.559][v][osd/libass] libass source: tarball: 0.17.4
[ 0.559][v][osd/libass] Shaper: FriBidi 1.0.16 (SIMPLE) HarfBuzz-ng 12.2.0 (COMPLEX)
--
[ 0.643][v][cplayer] AO: Description: ALSA audio output
[ 0.643][v][autoconvert] inserting resampler
[ 0.643][v][swresample] format change, reinitializing resampler
[ 0.643][v][swresample] 48000Hz stereo floatp -> 48000Hz stereo float
[ 0.643][v][af] [out] 48000Hz stereo 2ch float
[ 0.643][i][cplayer] VO: [gpu-next] 576x432 yuv420p
[ 0.643][v][cplayer] VO: Description: Video output based on libplacebo
[ 0.643][d][vd] Allocating new (host-cached) DR image...
[ 0.643][v][vo/gpu-next] reconfig to 576x432 yuv420p bt.601/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=576x432+0+0 A=none
[ 0.643][d][vo/gpu-next] max content size: 3840x2160
[ 0.643][d][vo/gpu-next] monitor size: 3840x2160
[ 0.643][d][vo/gpu-next/libplacebo] Allocating 6948864 memory of type 0xe (id 5) in heap 0: unknown
[ 0.644][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 0.644][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
--
[ 0.644][d][vo/gpu-next/libplacebo] 10: flags 0xce heap 0
[ 0.644][d][vo/gpu-next/libplacebo] Spent 0.336 ms allocating slab
[ 3.187][d][vo/gpu-next/libplacebo] Requested alpha compositing mode: VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR
[ 3.187][d][vo/gpu-next/libplacebo] Requested surface transform: VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR
[ 3.187][d][vo/gpu-next/libplacebo] Requested image count: 3 (min 3 max 0)
[ 3.187][d][vo/gpu-next/libplacebo] Requested image size: 576x433 (min 576x433 < cur 576x433 < max 576x433)
[ 3.187][d][vo/gpu-next/libplacebo] (Re)creating swapchain of size 576x433
[ 3.192][v][vo/gpu-next] Window size: 576x433 (Borders: l=0 t=0 r=0 b=0)
[ 3.192][v][vo/gpu-next] Video source: 576x432 (1:1)
[ 3.192][v][vo/gpu-next] Video display: (0, 0) 576x432 -> (0, 0) 576x432
[ 3.192][v][vo/gpu-next] Video scale: 1.000000/1.000000
[ 3.192][v][vo/gpu-next] OSD borders: l=0 t=0 r=0 b=1
[ 3.192][v][vo/gpu-next] Video borders: l=0 t=0 r=0 b=1
[ 3.193][d][vo/gpu-next/libplacebo] First frame received with non-zero PTS 0.083417
[ 3.193][d][vo/gpu-next/libplacebo] (Re)creating 576x432x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.193][d][vo/gpu-next/libplacebo] Allocating 258048 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.194][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.194][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.194][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.194][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
--
[ 3.194][d][vo/gpu-next/libplacebo] 7: flags 0xc1 heap 1
[ 3.194][d][vo/gpu-next/libplacebo] 8: flags 0xc6 heap 0
[ 3.194][d][vo/gpu-next/libplacebo] 9: flags 0xc7 heap 1
[ 3.194][d][vo/gpu-next/libplacebo] 10: flags 0xce heap 0
[ 3.194][d][vo/gpu-next/libplacebo] Spent 0.671 ms allocating slab
[ 3.205][d][vo/gpu-next/libplacebo] (Re)creating 288x216x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.205][d][vo/gpu-next/libplacebo] Allocating 245760 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.205][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.205][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.205][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.205][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
--
[ 3.205][d][vo/gpu-next/libplacebo] 7: flags 0xc1 heap 1
[ 3.205][d][vo/gpu-next/libplacebo] 8: flags 0xc6 heap 0
[ 3.205][d][vo/gpu-next/libplacebo] 9: flags 0xc7 heap 1
[ 3.205][d][vo/gpu-next/libplacebo] 10: flags 0xce heap 0
[ 3.205][d][vo/gpu-next/libplacebo] Spent 0.503 ms allocating slab
[ 3.205][d][vo/gpu-next/libplacebo] (Re)creating 288x216x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.205][d][vo/gpu-next/libplacebo] (Re)creating 576x432x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.205][d][vo/gpu-next/libplacebo] Allocating 516096 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.205][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.205][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.205][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.205][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
--
[ 3.205][d][vo/gpu-next/libplacebo] 7: flags 0xc1 heap 1
[ 3.205][d][vo/gpu-next/libplacebo] 8: flags 0xc6 heap 0
[ 3.205][d][vo/gpu-next/libplacebo] 9: flags 0xc7 heap 1
[ 3.205][d][vo/gpu-next/libplacebo] 10: flags 0xce heap 0
[ 3.205][d][vo/gpu-next/libplacebo] Spent 0.319 ms allocating slab
[ 3.205][d][vo/gpu-next/libplacebo] (Re)creating 288x216x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.205][d][vo/gpu-next/libplacebo] (Re)creating 288x216x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.205][d][vo/gpu-next/libplacebo] Allocating 245760 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.206][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.206][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.206][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.206][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
--
[ 3.206][d][vo/gpu-next/libplacebo] 7: flags 0xc1 heap 1
[ 3.206][d][vo/gpu-next/libplacebo] 8: flags 0xc6 heap 0
[ 3.206][d][vo/gpu-next/libplacebo] 9: flags 0xc7 heap 1
[ 3.206][d][vo/gpu-next/libplacebo] 10: flags 0xce heap 0
[ 3.206][d][vo/gpu-next/libplacebo] Spent 0.105 ms allocating slab
[ 3.206][d][vo/gpu-next/libplacebo] (Re)creating 576x432x0 texture with format rgba16hf: src/renderer.c:3863
[ 3.206][d][vo/gpu-next/libplacebo] Allocating 2293760 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.206][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.206][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.206][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.206][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
--
[ 3.206][d][vo/gpu-next/libplacebo] 7: flags 0xc1 heap 1
[ 3.206][d][vo/gpu-next/libplacebo] 8: flags 0xc6 heap 0
[ 3.206][d][vo/gpu-next/libplacebo] 9: flags 0xc7 heap 1
[ 3.206][d][vo/gpu-next/libplacebo] 10: flags 0xce heap 0
[ 3.206][d][vo/gpu-next/libplacebo] Spent 0.096 ms allocating slab
[ 3.206][d][vo/gpu-next/libplacebo] (Re)creating 288x216x0 texture with format rg8: src/renderer.c:1689
[ 3.206][d][vo/gpu-next/libplacebo] Allocating 143360 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.206][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.206][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.206][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.206][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
--
[ 3.382][d][vo/gpu-next/libplacebo] 7: flags 0xc1 heap 1
[ 3.382][d][vo/gpu-next/libplacebo] 8: flags 0xc6 heap 0
[ 3.382][d][vo/gpu-next/libplacebo] 9: flags 0xc7 heap 1
[ 3.382][d][vo/gpu-next/libplacebo] 10: flags 0xce heap 0
[ 3.382][d][vo/gpu-next/libplacebo] Spent 0.537 ms allocating slab
[ 3.382][d][vo/gpu-next/libplacebo] (Re)creating 288x432x0 texture with format rg16hf: src/renderer.c:768
[ 3.382][d][vo/gpu-next/libplacebo] Allocating 516096 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.382][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.382][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.382][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.382][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
[ 0.025][v][cplayer] Running hook: ytdl_hook/on_preloaded
[ 0.025][d][osc] osc_init
[ 0.025][v][cplayer] Running hook: auto_profiles/on_loaded
[ 0.025][v][cplayer] Failed sending hook command auto_profiles/on_loaded. Removing hook.
[ 0.025][v][lavf] select track 0
[ 0.025][i][cplayer] ● Video --vid=1 (av1 1280x720 25.017 fps 74 kbps) [default]
[ 0.025][v][vo/gpu-next] Probing for best GPU context.
[ 0.025][v][vo/gpu-next/auto] Initializing GPU context 'auto'
[ 0.025][v][vo/gpu-next/vulkan] Initializing GPU context 'x11vk'
[ 0.025][v][vo/gpu-next/libplacebo] Initialized libplacebo v7.360.1 (API v360)
[ 0.025][d][vo/gpu-next/libplacebo] Available instance version: 1.4.335
--
[ 0.097][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.097][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.097][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.097][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.110][v][vd] Using software decoding.
[ 0.110][v][vd] Decoder format: 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/auto CL=unknown crop=1280x720+0+0 A=none
[ 0.110][v][vf] [in] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1280x720+0+0 A=none
[ 0.110][v][vf] [userdeint] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1280x720+0+0 A=none
[ 0.110][v][vf] [userdeint] (disabled)
[ 0.110][v][vf] [autovflip] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1280x720+0+0 A=none
[ 0.110][v][vf] [autovflip] (disabled)
[ 0.110][v][vf] [autorotate] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1280x720+0+0 A=none
[ 0.110][v][vf] [autorotate] (disabled)
[ 0.110][v][vf] [convert] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1280x720+0+0 A=none
[ 0.110][v][vf] [convert] (disabled)
[ 0.110][v][vf] [out] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1280x720+0+0 A=none
[ 0.110][v][cplayer] Set property: user-data/osc/margins={"t":0,"b":0,"r":0,"l":0} -> 1
[ 0.117][i][cplayer] VO: [gpu-next] 1280x720 yuv420p
[ 0.117][v][cplayer] VO: Description: Video output based on libplacebo
[ 0.117][v][vo/gpu-next] reconfig to 1280x720 yuv420p bt.709/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=1280x720+0+0 A=none
[ 0.117][d][vo/gpu-next] max content size: 3840x2160
[ 0.117][d][vo/gpu-next] monitor size: 3840x2160
[ 3.779][d][vo/gpu-next/libplacebo] Requested alpha compositing mode: VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR
[ 3.779][d][vo/gpu-next/libplacebo] Requested surface transform: VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR
[ 3.779][d][vo/gpu-next/libplacebo] Requested image count: 3 (min 3 max 0)
[ 3.779][d][vo/gpu-next/libplacebo] Requested image size: 1280x722 (min 1280x722 < cur 1280x722 < max 1280x722)
[ 3.779][d][vo/gpu-next/libplacebo] (Re)creating swapchain of size 1280x722
[ 3.783][v][vo/gpu-next] Window size: 1280x722 (Borders: l=0 t=0 r=0 b=0)
[ 3.783][v][vo/gpu-next] Video source: 1280x720 (1:1)
[ 3.783][v][vo/gpu-next] Video display: (0, 0) 1280x720 -> (0, 1) 1280x720
[ 3.783][v][vo/gpu-next] Video scale: 1.000000/1.000000
[ 3.783][v][vo/gpu-next] OSD borders: l=0 t=1 r=0 b=1
[ 3.783][v][vo/gpu-next] Video borders: l=0 t=1 r=0 b=1
[ 3.792][d][vo/gpu-next/libplacebo] (Re)creating 1280x720x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.792][d][vo/gpu-next/libplacebo] Allocating 983040 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.793][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.793][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.793][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.793][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
--
[ 3.793][d][vo/gpu-next/libplacebo] 8: flags 0xc6 heap 0
[ 3.793][d][vo/gpu-next/libplacebo] 9: flags 0xc7 heap 1
[ 3.793][d][vo/gpu-next/libplacebo] 10: flags 0xce heap 0
[ 3.793][d][vo/gpu-next/libplacebo] Spent 0.501 ms allocating slab
[ 3.793][d][vo/gpu-next/libplacebo] Imported host pointer is not page-aligned. This should normally be fine on most platforms, but may cause issues in some rare circumstances.
[ 3.794][d][vo/gpu-next/libplacebo] (Re)creating 640x360x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.794][d][vo/gpu-next/libplacebo] Allocating 245760 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.794][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.795][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.795][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.795][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
--
[ 3.795][d][vo/gpu-next/libplacebo] 7: flags 0xc1 heap 1
[ 3.795][d][vo/gpu-next/libplacebo] 8: flags 0xc6 heap 0
[ 3.795][d][vo/gpu-next/libplacebo] 9: flags 0xc7 heap 1
[ 3.795][d][vo/gpu-next/libplacebo] 10: flags 0xce heap 0
[ 3.795][d][vo/gpu-next/libplacebo] Spent 0.460 ms allocating slab
[ 3.795][d][vo/gpu-next/libplacebo] (Re)creating 640x360x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.795][d][vo/gpu-next/libplacebo] Allocating 491520 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.795][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.795][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.795][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.795][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
--
[ 3.795][d][vo/gpu-next/libplacebo] 7: flags 0xc1 heap 1
[ 3.795][d][vo/gpu-next/libplacebo] 8: flags 0xc6 heap 0
[ 3.795][d][vo/gpu-next/libplacebo] 9: flags 0xc7 heap 1
[ 3.795][d][vo/gpu-next/libplacebo] 10: flags 0xce heap 0
[ 3.795][d][vo/gpu-next/libplacebo] Spent 0.183 ms allocating slab
[ 3.795][d][vo/gpu-next/libplacebo] (Re)creating 640x360x0 texture with format rg8: src/renderer.c:1689
[ 3.795][d][vo/gpu-next/libplacebo] Allocating 589824 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.795][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.795][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.795][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.795][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
--
[ 3.875][d][vo/gpu-next/libplacebo] 7: flags 0xc1 heap 1
[ 3.875][d][vo/gpu-next/libplacebo] 8: flags 0xc6 heap 0
[ 3.875][d][vo/gpu-next/libplacebo] 9: flags 0xc7 heap 1
[ 3.875][d][vo/gpu-next/libplacebo] 10: flags 0xce heap 0
[ 3.875][d][vo/gpu-next/libplacebo] Spent 0.457 ms allocating slab
[ 3.875][d][vo/gpu-next/libplacebo] (Re)creating 640x720x0 texture with format rg16hf: src/renderer.c:768
[ 3.875][d][vo/gpu-next/libplacebo] Allocating 2031616 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.876][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.876][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.876][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.876][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
--
[ 3.898][d][vo/gpu-next/libplacebo] Pass statistics: size 0, SPIR-V: vert 0 frag 0 comp 0
[ 3.898][v][cplayer] first video frame after restart shown
[ 3.898][d][cplayer] starting video playback
[ 3.898][v][cplayer] playback restart complete @ 0.000000, audio=eof, video=playing
[ 3.898][v][vo/gpu-next/x11] Disabling screensaver.
[ 3.899][d][vo/gpu-next/libplacebo] (Re)creating 1280x720x0 texture with format rgba16hf: src/renderer.c:3863
[ 3.899][d][vo/gpu-next/libplacebo] Allocating 7929856 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.899][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.899][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.899][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.899][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
--
[ 3.907][d][vo/gpu-next/libplacebo] Spent 0.071 ms creating pipeline
[ 3.907][d][vo/gpu-next/libplacebo] Pass statistics: size 0, SPIR-V: vert 0 frag 0 comp 0
[ 3.907][d][cplayer] Run command: define-section, flags=64, args=[name="input_osc", contents="", flags="default"]
[ 3.907][d][cplayer] Run command: enable-section, flags=64, args=[name="input_osc", flags="allow-hide-cursor+allow-vo-dragging"]
[ 3.908][v][vo/gpu-next/libplacebo] Detected fps ratio 0.0000 below threshold 0.0100, disabling interpolation
[ 3.908][d][vo/gpu-next/libplacebo] (Re)creating 1280x720x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.908][d][vo/gpu-next/libplacebo] Allocating 1966080 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.908][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.908][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.908][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.908][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
--
[ 3.908][d][vo/gpu-next/libplacebo] 7: flags 0xc1 heap 1
[ 3.908][d][vo/gpu-next/libplacebo] 8: flags 0xc6 heap 0
[ 3.908][d][vo/gpu-next/libplacebo] 9: flags 0xc7 heap 1
[ 3.908][d][vo/gpu-next/libplacebo] 10: flags 0xce heap 0
[ 3.908][d][vo/gpu-next/libplacebo] Spent 0.042 ms allocating slab
[ 3.908][d][vo/gpu-next/libplacebo] (Re)creating 640x360x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.908][d][vo/gpu-next/libplacebo] (Re)creating 640x360x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.908][d][vo/gpu-next/libplacebo] Allocating 983040 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.908][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 3.908][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 3.908][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 3.908][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
--
[ 3.908][d][vo/gpu-next/libplacebo] 9: flags 0xc7 heap 1
[ 3.908][d][vo/gpu-next/libplacebo] 10: flags 0xce heap 0
[ 3.908][d][vo/gpu-next/libplacebo] Spent 0.420 ms allocating slab
[ 3.939][d][cplayer] Run command: define-section, flags=64, args=[name="input_forced_osc", contents="", flags="force"]
[ 3.939][d][cplayer] Run command: enable-section, flags=64, args=[name="input_forced_osc", flags="allow-hide-cursor+allow-vo-dragging"]
[ 3.939][d][vo/gpu-next/libplacebo] (Re)creating 1280x720x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.939][d][vo/gpu-next/libplacebo] (Re)creating 640x360x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.940][d][vo/gpu-next/libplacebo] (Re)creating 640x360x0 texture with format r8: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 3.940][d][osc] osc_init
[ 3.940][d][global] user path: '~~/menu.conf' -> 'menu.conf'
[ 3.940][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 3.940][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 3.940][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
--
[ 3.943][v][ao/pipewire] Library version: 1.4.10
[ 3.947][v][ao/pipewire] Could not connect to context '(default)': Host is down
[ 4.019][v][vo/gpu-next/libplacebo] Estimated source FPS: 25.017, display FPS: 25.017
[ 4.473][d][cplayer] Run command: cycle, flags=73, args=[name="pause", value="1.000000"]
[ 4.473][v][cplayer] Set property: pause -> 1
[ 4.498][d][vo/gpu-next/libplacebo] (Re)creating 1280x720x0 texture with format rgba16hf: src/renderer.c:3863
[ 4.498][d][vo/gpu-next/libplacebo] Allocating 15859712 memory of type 0x1 (id 0) in heap 1: ../libplacebo-v7.360.1/src/utils/upload.c:239
[ 4.498][d][vo/gpu-next/libplacebo] Memory types supported by device:
[ 4.498][d][vo/gpu-next/libplacebo] 0: flags 0x1 heap 1
[ 4.498][d][vo/gpu-next/libplacebo] 1: flags 0x1 heap 1
[ 4.498][d][vo/gpu-next/libplacebo] 2: flags 0x6 heap 0
Sample Files
No sample files because the issue happens with basically every single file, so any will do.
I carefully read all instruction and confirm that I did the following:
mpv Information
Other Information
Reproduction Steps
When playing any video file, MPV creates a window that is slightly larger than the actual video frame size. For most videos, this yields like a 1920x1082 video for a full hd video (instead of the correct size of 1920x1080). The window the has a black pixel line on top and one on bottom, the video is offset by 0x1 in the window. Opening the same video in ffplay creates a window of the correct size of 1920x1080 and no black pixel lines are shown. Not always will the bug be adding extra pixel lines, instead I have some files like with size 576x432 which creates a window of size 576x433 and adds a (only one) black pixel column on the right side.
Expected Behavior
Obviously correct window sizes and not added black pixel lines/columns.
Actual Behavior
Wrong window size by 1/2px.
Log File
Two example excerpts from the logfile which hints to the place where things get actually wrong. There is one mention of a frame size of 576x450 and later another sizes of 288x432 and 288x216 are mentioned, but the most important moment is libplacebo requesting an image size of 576x433. This is the output of grep "576x|x432|x433|x450|288x|x216[^0]" -5 output.log, if you really need more log content I am willing to provide that but I believe, this is enough. Additionally I added the output for another file (grep "1280x|x720|x722|640x|x360" -5 output.log) - same problem, same location where it first appears in the log (log files from running mpv --no-config --gpu-debug --log-file=output.log "$file"):
Sample Files
No sample files because the issue happens with basically every single file, so any will do.
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt.