mpv-player / mpv

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

Playing "Bad Apple!! PV" with libsixel #14785

Closed RealYukiSan closed 2 weeks ago

RealYukiSan commented 2 weeks ago

mpv Information

[hemlo@ASUS ~]$  mpv --version
mpv v0.38.0-dirty Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Jul  3 2024 05:59:22
libplacebo version: v7.349.0
FFmpeg version: n7.0.2
FFmpeg library versions:
   libavutil       59.8.100
   libavcodec      61.3.100
   libavformat     61.1.100
   libswscale      8.1.100
   libavfilter     10.1.100
   libswresample   5.1.100

Other Information

- Linux version: `Arch Linux`
- Kernel Version: `6.10.6-arch1-1`
- GPU Model: AMD Phoenix1 and NVIDIA AD106M
- Mesa/GPU Driver Version: `4.6 (Compatibility Profile) Mesa 24.1.6-arch1.1`
- Window Manager and Version: latest DWM
- Source mpv: Arch Linux repository
- Introduced in version: current used version
- Related link: Github's comment (https://github.com/mpv-player/mpv/issues/2183#issuecomment-737323328)
- xrandr information:

$ xrandr --listmonitors --listproviders
Providers: number : 2
Provider 0: id: 0x5b cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 9 associated providers: 1 name:AMD Radeon 780M @ pci:0000:66:00.0
Provider 1: id: 0x1fd cap: 0x2, Sink Output crtcs: 4 outputs: 4 associated providers: 1 name:NVIDIA-G0
Monitors: 1
 0: +HDMI-1-0 1920/480x1080/270+0+0  HDMI-1-0

Reproduction Steps

  1. boot into linux
  2. start dwm within Xorg server with startx
  3. open st -e tmux terminal
  4. disable the main/primary monitor and switch to external monitor that are connected through HDMI cable with xrandr
  5. start mpv with mpv --vo=sixel --no-config --gpu-debug --log-file=/tmp/output.txt ~/Music/bad_apple_pv.mp4

Expected Behavior

The video playing properly

Actual Behavior

It only print + on the entire screen as screenshot below: image

Log File

output.txt

Sample Files

I download the video from youtube

I carefully read all instruction and confirm that I did the following:

llyyr commented 2 weeks ago

tmux only supports sixel from 3.4 or newer, and it needs to be manually enabled during compile time. Can you try without tmux?

RealYukiSan commented 2 weeks ago

without tmux: image

I don't have an idea what's going on there

llyyr commented 2 weeks ago

Actually I don't think st supports sixel either without a patch, are you using a patch? Can you try with another sixel player or another terminal that does support sixel?

RealYukiSan commented 2 weeks ago

Actually I don't think st supports sixel either without a patch, are you using a patch?

No, I use a default st without modification.

Can you try with another sixel player or another terminal that does support sixel?

Alright, I will try installing another terminal and give a feedback

RealYukiSan commented 2 weeks ago

Wait, do you have any recommendation for terminal software that support sixel out of the box?

EDIT: nvm, I will try alacritty first

llyyr commented 2 weeks ago

EDIT: nvm, I will try alacritty first

https://github.com/alacritty/alacritty/issues/910 It doesn't support sixel. You can probably try kitty. You can use vo=kitty with kitty though.

Wait no, kitty doesn't support it either. Find a terminal here https://www.arewesixelyet.com

RealYukiSan commented 2 weeks ago

Thanks for the awesome resources! the st patch provided on the site actually worked with some limitations described in the gist

as a note: I must lower the st version to apply the patch without any conflict:

git log --until="2017-06-11"

closing the issue as this is not related to MPV player