mpv-conf's Issues
vo_gpu-next: Thumbnail: Hue shift
The case happens when I use vo=gpu-next
to show thumbs.
Not sure if it would happen on Macos.
RavuxCFL variant testing
Since the discussion in previous issue isn't about the downscaler, probably should move the discussion to avoid spamming Artoriaz.
Tested the latest AR changes, it's better than previous but not better than the one without the 2 except it's slightly better on the Junji Ito sample or samples with ringing.
The one I posted in the previous issue may look good but it's pretty damn heavy, I also forgot there isn't any RGB versions of the LITE shaders. Maybe just doing CHROMA 2 * would be better anyway for speed reasons.
EDIT: Actually I think the CfL_Prediction_Ravu2 version may be better at high scaling factors as it looks notably better on 480 sample.
Limitation of the directory?
mpv.log
It seems that Thumbnailer do not support the long words of the directory.
the artifacts of cfl_lite
Reloaded videos won't show thumbnails
Tested on win10
It seems it can just generate the thumbnails and show them correctly for the first time. If I reload the video again, the thumbs won't appear and I can see the similar information (in the log) which is reported by Console.
[Thumbnailer] A subdirectory or file ~~/thumbnail_cache\Secrets - OneRepublic (Cover by Tiffany Alvord & The Piano Guys) already exists. [Thumbnailer] Subprocess cmd failed. | Status: 1 | MPV Error: n/a | Subprocess Error: _ | Stdout: _ | Stderr: _ [Thumbnailer] Subprocess cmd failed. | Status: 1 | MPV Error: n/a | Subprocess Error: _ | Stdout: _ | Stderr: _
Line 942:mpv.log
Q: Thumbnail scripts differences?
There is not much information about your thumbnail scripts here, or elsewhere online. Just curious how they differ from https://github.com/marzzzello/mpv_thumbnail_script , did you choose to write/maintain your own alternative?
No correct thumbnails when playing the BDMV
When I play the BDMV, if I use the "mpv", all the thumbnails are black. Whatever any way it will fail.(open the .m2ts
directly // drag into the whole folder // open the MovieObject.bdmv
)
If I use the "ffmpeg", all the thumbnails are transparent. (In fact, it cannot generate any thumbs.)
It only works when I use "ffmpeg" and open the .m2ts
directly.
[Thumbnailer_Worker] errors and broken thumbnails
[Windows 10] automatically create extra folders in the current working directory
For thumbnailer, if the blank space
( DBCS / 2-byte-input mode) exist in the filename, few empty folders would be created in the current folder while generating thumbnails
I tested it in windows 10.
Help
Please tell me how to use CfL+Ravu and Ravu-zoom-ar
Thanks.
[high_quality2]
vo=gpu-next
gpu-api=opengl
gpu-context=win
profile=gpu-hq
fbo-format=rgba16hf
vd-lavc-threads=16
#scale=ewa_lanczos
scale=ewa_lanczossharp
dscale=mitchell
#csale=ewa_lanczos
cscale=sinc
cscale-window=blackman
cscale-radius=3
glsl-shaders-append="~~/shaders/CfL_Prediction_Ravu_R2X.glsl"
glsl-shaders-append="~~/shaders/ravu-zoom-ar-r2.hook"
glsl-shaders-append="~~/shaders/ravu-zoom-ar-r2-rgb.hook''
Thumbnailer don't auto delete thumbnail
Test on win 10 with mpv 0.33
auto_delete=1
or auto_delete=2
in thumbnailer.conf don't work.Thumbnail still in cache dir.
`Thumbnailer.lua`
If auto_gen=no
, it seems to be no diff to use the script-message-to Thumbnailer Thumbnailer-start
or script-message-to Thumbnailer Thumbnailer-toggle-gen
at runtime. When mpv switched to another video in the playlist, it cannot generate the thumbs. Is it a bug?
The similar situation also happened on the another option —— auto_show=no
.... script-message-to Thumbnailer Thumbnailer-toggle-osc
work as the same with script-message-to Thumbnailer Thumbnailer-show
mcp 2012 running on catalina (Error parsing option and unable to run scripts)
whenever i start mpv these errors show up not sure how to fix it
Error parsing option icc-cache-dir (option not found)
/Users/rayan/.config/mpv/mpv.conf:26: setting option icc-cache-dir='/Users/Shared/Library/Caches/mpv/icc/' failed.
Error parsing option zimg-fast (option not found)
/Users/rayan/.config/mpv/mpv.conf:39: setting option zimg-fast='no' failed.
Error parsing option zimg-scaler (option not found)
/Users/rayan/.config/mpv/mpv.conf:40: setting option zimg-scaler='spline36' failed.
Error parsing option zimg-scaler-chroma (option not found)
/Users/rayan/.config/mpv/mpv.conf:41: setting option zimg-scaler-chroma='spline36' failed.
Error parsing option osc (option not found)
/Users/rayan/.config/mpv/mpv.conf:147: setting option osc='no' failed.
Error parsing option load-stats-overlay (option not found)
/Users/rayan/.config/mpv/mpv.conf:148: setting option load-stats-overlay='no' failed.
Error parsing option ytdl-raw-options-append (option not found)
/Users/rayan/.config/mpv/mpv.conf:179: setting option ytdl-raw-options-append='sub-lang="th,tha,thTH,th-TH,en,eng,enUS,en-US"' failed.
Error parsing option ytdl-raw-options-append (option not found)
/Users/rayan/.config/mpv/mpv.conf:180: setting option ytdl-raw-options-append='write-sub=' failed.
Error parsing option ytdl-raw-options-append (option not found)
/Users/rayan/.config/mpv/mpv.conf:181: setting option ytdl-raw-options-append='write-auto-sub=' failed.
Error parsing option icc-3dlut-size (option not found)
/Users/rayan/.config/mpv/mpv.conf:325: setting option icc-3dlut-size='256x256x256' failed.
Error parsing option icc-contrast (option not found)
/Users/rayan/.config/mpv/mpv.conf:326: setting option icc-contrast='1000' failed.
Error parsing option icc-profile-auto (option not found)
/Users/rayan/.config/mpv/mpv.conf:327: setting option icc-profile-auto='yes' failed.
Error parsing option script-opts-append (option not found)
/Users/rayan/.config/mpv/mpv.conf:381: setting option script-opts-append='Shaders-enabled=no' failed.
Error parsing option script-opts-append (option not found)
/Users/rayan/.config/mpv/mpv.conf:390: setting option script-opts-append='Shaders-enabled=no' failed.
Error parsing option script-opts-append (option not found)
/Users/rayan/.config/mpv/mpv.conf:399: setting option script-opts-append='Shaders-enabled=no' failed.
Error parsing option script-opts-append (option not found)
/Users/rayan/.config/mpv/mpv.conf:408: setting option script-opts-append='Shaders-enabled=yes' failed.
Error parsing option script-opts-append (option not found)
/Users/rayan/.config/mpv/mpv.conf:426: setting option script-opts-append='Mac_Window-display_w=2560' failed.
/Users/rayan/.config/mpv/mpv.conf: too many errors, stopping.
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Thumbnailer.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Misc.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Test.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Filter_Audio_ScaleTempo.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Filter_Video.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Thumbnailer_OSC.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Tagger.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Shaders.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Equalizer_Profiles.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/zones.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Thumbnailer_Worker.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Mac_Integration.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Filter_Audio.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Subliminal.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Mac_Window.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Language_Switcher.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Filter_Manager.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/Mac_Host_Profile.lua
Can't load unknown script: /Users/rayan/.config/mpv/scripts/stats.lua
Thumbnails are transparent without ffmpeg
License?
What is the license for this repo? I'd like to use and share it to my friends.
[Thumbnailer.lua] delete_cache_dir has problem with multi instance
When I open two video windows and create thumbnails, if one video window is closed, the thumbnails of the other video that is not closed will also be deleted.
osc always try to show the thumbnail with ignoring the options.
auto_gen=no
auto_show=no
It seems doesn't work now.
Thumbnailer.lua crashes when toggling OSC in a freshly launched mpv
Steps to reproduce
- Open any video file.
- Don't do anything else or move your cursor.
- Toggle
Thumbnailer-toggle-osc
using the keybind. - Thumbnailer.lua crashes and the stack trace is shown in the console:
stack traceback:
[string "C:\Users\Blob\AppData\Roaming/mpv/scripts/Thu..."]:692: in function 'osc_set_visibility'
[string "C:\Users\Blob\AppData\Roaming/mpv/scripts/Thu..."]:715: in function 'handler'
mp.defaults:380: in function 'handler'
mp.defaults:510: in function 'call_event_handlers'
mp.defaults:552: in function 'dispatch_events'
mp.defaults:503: in function <mp.defaults:502>
[C]: at 0x7ff797fd32a0
[C]: at 0x7ff797fd1520
Lua error: [string "C:\Users\Blob\AppData\Roaming/mpv/scripts/Thu..."]:343: attempt to index upvalue 'state' (a nil value)
This might not always be reproducible. If the OSC is shown at least once, then this error doesn't occur.
Workaround
My current workaround is to change these lines
mpv-conf/scripts/Thumbnailer.lua
Lines 690 to 693 in 62fa158
to
local function osc_set_visibility(is_visible)
if is_visible and not initialized then start(true)
elseif osc_name then osc_update(nil, osc_set_options(is_visible), nil)
else return end
end
[feature request] To avoid the multi-regeneration of thumbs
If these options were set with different values, each time of cycling fullscreen would lead to regenerate thumbnails.
scalewindowed=
scalefullscreen=
scaleforcedwindow=
[noob q] Command-line invocation for lua script
This is a newbee question, please don't shoot ! :)
The lua script in question is Filter_Audio.lua .
The goal is trying to use a specific filter (iiuc the code adds several new audio filters) like DenoiseAudio for example.
This isn't working:
mpv --script=Filter_Audio.lua --af DenoiseAudio 1.mp3
Tried
mpv --script=Filter_Audio.lua --af Filter_Audio-DenoiseAudio 1.mp3
also,... no joy.
The (obvious by now) question is : how to run mpv by selecting a specifc filter (or several) from the script - or , even better - toggle on / off in a circular fashion through all of the filters (during playback ) ?
The bonus questions :)
- how would one build the mpv command line by calling the ffmpeg filters directly, i.e. '
mpv ... --af= '? or / and 'mpv --lavfi=...'
for various filters? - (in a more general note) The end-goal for me is to liste to some very bad voice recording ; bad meaning'big room' effect / distant speaker , or simply low-quality mic.. not sure... fact is at least 2 filters would be needed: volume normalize + 'voice' enhancement.
Thanks !
Lots of repetitive errors reported by the console
Some thumbnails are skipped
Hello,
At first I found some thumbnails would not appear as cursor hovering over the progress bar. I suspected that 120 thumbnails are too much to be shown so tired 60 but it still behave incorrectly. I also tired toggling ffmpeg to mpv, and accurate_seek option, but all turned out the same. This is confusing and there maybe something wrong with the script, please have a look at it.
video1, 120 thumbnails
https://user-images.githubusercontent.com/30799958/162909156-72e9d6c0-47ec-4b71-a100-d0789a89ca93.mp4
video1, 60 thumbnails
https://user-images.githubusercontent.com/30799958/162912721-ebc0ec9e-fab0-4f03-8f4e-c55c379e358e.mp4
video2, 60 thumbnails, accurate_seek=yes
https://user-images.githubusercontent.com/30799958/162913577-b074c733-5e72-4a4b-b2f1-96de58878698.mp4
Windows Compatability
The Files doesn't seem to work on Windows. I've tried changing the profile under [default] to pc and also then to win and finally with all macos commands removed. But still no avail.
thumbnailer_worker could not be found
mpv-player/mpv@84821db After this commit, thumbnailer could not work in Windows.
No thumbnails for network streams mpv
The thumbnail script works great for local video files, but it doesn't work for network streams. I tried to play around with the configuration, but I can't seem to get it to work. (I am using Linux)
My configuration in ~/.config/mpv/script-opts/
# MPV - thumbnailer.conf
# deus0ww - 2021-05-27
# General
#auto_gen=no
#auto_show=no
auto_delete=2
#start_delay=2
# Paths
cache_dir=/tmp/thumbnails
#worker_script_path=
#exec_path=/opt/homebrew/bin/
# Thumbnail
dimension=400
#thumbnail_count=61
#min_delta=5
#max_delta=30
remote_delta_factor=1
#stream_delta_factor=2
bitrate_delta_factor=1
#bitrate_threshold=8
# OSC
#spacer=2
#show_progress=1
#centered=yes
#update_time=0.25
# Worker
#max_workers=4
worker_remote_factor=1
#worker_bitrate_factor=1
#worker_delay=1
#worker_timeout=5
#accurate_seek=yes
use_ffmpeg=no
#prefer_ffmpeg=yes
#ffmpeg_threads=1
#ffmpeg_scaler=spline
############
# Defaults #
############
# General
#auto_gen=yes # Auto generate thumbnails
#auto_show=yes # Show thumbnails by default
#auto_delete=0 # Delete the thumbnail cache. Use at your own risk. 0=No, 1=On file close, 2=When quiting
#start_delay=2 # Delay the start of the thumbnailer (seconds)
# Paths
#cache_dir=default_cache_dir # Note: Files are not cleaned afterward by default
#worker_script_path='' # Only needed if the script can't auto-locate the file to load more workers
#exec_path='' # This is appended to PATH to search for mpv, ffmpeg, and other executables.
# Thumbnail
#dimension=320 # Max width and height before scaling
#thumbnail_count=120 # Try to create this many thumbnails within the delta limits below
#min_delta=5 # Minimum time between thumbnails (seconds)
#max_delta=30 # Maximum time between thumbnails (seconds)
#remote_delta_factor=2 # Multiply delta by this for remote sources
#stream_delta_factor=2 # Multiply delta by this for streams (youtube, etc)
#bitrate_delta_factor=2 # Multiply delta by this for high bitrate sources
#bitrate_threshold=8 # The threshold to consider a source to be high bitrate (Mbps)
# OSC
#spacer=2 # Size of borders and spacings
#show_progress=1 # Display the thumbnail-ing progress. (0=never, 1=while generating, 2=always)
#centered=no # Center the thumbnail on screen
#update_time=0.5 # Fastest time interval between updating the OSC with new thumbnails
# Worker
#max_workers=4 # Number of active workers. Must have at least one copy of the worker script alongside this script
#worker_remote_factor=0.5 # Multiply max_workers by this for remote streams or when MPV enables cache
#worker_bitrate_factor=0.5 # Multiply max_workers by this for high bitrate sources
#worker_delay=0.5 # Delay between starting workers (seconds)
#worker_timeout=3 # Wait this long in seconds before killing encoder. 0=No Timeout (Linux or Mac w/ coreutils installed only)
#accurate_seek=no # Use accurate timing instead of closest keyframe for thumbnails. (Slower)
#use_ffmpeg=no # Use FFMPEG
[mpv.log](https://github.com/deus0ww/mpv-conf/files/9668030/mpv.log)
when appropriate. FFMPEG must be in PATH or in the MPV directory
#prefer_ffmpeg=no # Use FFMPEG when available
#ffmpeg_threads=1 # Limit FFMPEG/MPV LAVC threads per worker. Also limits filter and output threads for FFMPEG
#ffmpeg_scaler='bicublin' # Applies to both MPV and FFMPEG. See: https://ffmpeg.org/ffmpeg-scaler.html#
strange bahaviour about Thumbnailer worker
thanks for the script
thanks a lot for the script - Language_Switcher.lua
the player could not select the Japanese track internal if there were external files, now everything works correctly as it should
due to the specifics of my hands, the tracks of another language are external files for me, and the player connects only them by default, not allowing you to choose Japanese.
this script solved all the problems.
Thumbnails rotated 180 degrees on my linux machine
Hello,
I managed to make your brilliant configuration files work on my pc, but I noticed that the thumbnails were rotated, so I edited the Thumbnailer_Worker.lua script changing line 377 from
add_args(args, '-noautorotate')
to
add_args(args, '-autorotate')
and thumbnails are now correct.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.