Closed microraptor closed 2 years ago
I updated MPV, but the histogram still doesn't show:
[ 0.004][v][cplayer] mpv 0.34.1 Copyright © 2000-2021 mpv/MPlayer/mplayer2 projects
[ 0.004][v][cplayer] built on Thu Jan 13 05:58:50 UTC 2022
[ 0.004][v][cplayer] FFmpeg library versions:
[ 0.004][v][cplayer] libavutil 56.70.100
[ 0.004][v][cplayer] libavcodec 58.134.100
[ 0.004][v][cplayer] libavformat 58.76.100
[ 0.004][v][cplayer] libswscale 5.9.100
[ 0.004][v][cplayer] libavfilter 7.110.100
[ 0.004][v][cplayer] libswresample 3.9.100
[ 0.004][v][cplayer] FFmpeg version: 4.4.1
I'll try reproducing it. Which build of mpv are you using? Default Ubuntu packages?
I tried it first on Ubuntu 20.04 with the built of the default repo, then updated to this built linked at mpv.io: https://non-gnu.uvt.nl/debian/focal/mpv/mpv_0.34.1+fruit.2_amd64.deb
I also tried it on another computer running Win 10 with mpv 0.34.1 and an old Ubuntu with mpv 0.27.
They all have the same behavior where 'h' doesn't seem to do anything and the other keybindings show only the OSD message.
I narrowed the problem down and got it wo work if these conditions are met:
skiptosilence.lua
is also loaded via cli option or scripts directory--no-config
is NOT specifiedI tested it without any .conf file settings on Win 10 and Ubuntu
I fixed the weird behavior described in the previous comment with PR #6. On one computer the script now functions correctly on Win 10 and Ubuntu. However, on my other computer there is a new error now, if I toggle the histogram on. The video filter is created, but immediately disabled without showing anything onscreen, and the log messages output this error from ffmpeg:
Impossible to convert between the formats supported by the filter 'Parsed_split_0' and the filter 'auto_scaler_0'
After a quick google search it seems such an error message is often related to specific hardware. I am running integrated Intel graphics on that computer.
Sorry, I made a mistake and still had hardware decoding enabled on that one computer, which lead to the error message. As explained in PR #6 hardware decoding can be easily toggled off, if one of the key bindings is changed. I also noted it in the readme. With those changes the PR fully resolves this issue.
I haven't had time to look at this issue due to other work, but I'm very glad to see you've managed to resolve it yourself and produced some quality PRs in the process. Thank you for your contributions.
Pressing h does nothing and pressing Shift+h or Ctrl+h gives the corresponding OSD messages, but no histogram is displayed.
MPV is loaded with no config or other scripts:
mpv --no-config --load-scripts=no -player-operation-mode=pseudo-gui --log-file=log.txt --script=histogram.lua test.mp4
I am running Ubuntu 20.04 and tried it with multiple video files.
I added some debug messages:
The log output:
#vf_table > 0
returns false apparently and the problem seems to be with the vf_table.