mfcc64 / mpv-scripts Goto Github PK
View Code? Open in Web Editor NEWmpv lua scripts
License: The Unlicense
mpv lua scripts
License: The Unlicense
Hello, i am using mpv with visualizer.lua for years and it works well.
But in this month i found i can't play mp3 files when it has no album art embed.
I will get the error below
I am using windows 10 x64 bit with the build
https://sourceforge.net/projects/mpv-player-windows/files/64bit/
The error occur after the build mpv-x86_64-20240211-git-f5c4f0b.7z
When i remove visualizer.lua mpv can play these mp3 normal.
Below is the test mp3 file
https://xgf.nu/d0SS3
Thanks for your reading.
Is there any way to turn off the visualization of the bar and the keys when using showcqt
and showcqtbar
for the visualizer.lua?
I tried to mess around a bit but couldn't manage do it myself.
I don't understand lua, how can I change the color of "showwaves"
I want the waves to be white
Thanks for these great scripts.
I was just wondering how did you came up with such peculiar firequalizer gain equation values:
cubic_interpolate(2.8853900817779269*log(f/157.48+1)
In the documentation, the default is simply:
cubic_interpolate(f)
If you open a video file after an audio file, for example via ctrl+o (filenavigator.lua), then the visualization continues.
the image loads, but some part of the data is corrupted in the base64
https://github.com/mfcc64/mpv-scripts/blob/master/visualizer.lua
There are 4 conditions:
name
to off
, Run the audio from GUI (explorer/finder). It will show up as a black screen ✅name
to off
, Run the audio from the terminal. It doesn't show up anything ❎ (Although it's normal (without this scripts) I think you should still show up the window. Or maybe add the option if you still want to show up the window?)name
to not off
. Run the audio from GUI (explorer/finder). Cycle it with c
. The visualizer freeze on the previous state (showwaves
) ❎name
to not off
. Run the audio from the terminal. Cycle it with c
. The MPV window disappears, but still, play the video, you still can cycle it with c
in the terminal ❎ (Although it's normal (without this scripts) I think you should still show up the window. Or maybe add the option if you still want to show up the window?)I suggest it will show up normally (black screen), just like the number 1
Hi,
First, I just wanted to say: this the coolest! I'd love to get it working, but unfortunately, every time I drop in an audio file (wav or flac), mpv crashes. I have been able to get firequalizer15.lua working, so I'm not sure exactly where the problem lies. It could be my general cluelessness when it comes to mpv and lua, but any help at all would be really appreciated.
I'm on mpv 0.27.0 for macOS, and I've been placing visualizer.lua in a scripts directory within mpv's .config
Thanks!
Ben
Mplug is like a package manager but for mpv scripts.
Please add your script there (if already not there) and also installation instructions in manifest - https://github.com/Nudin/mpv-script-directory/blob/master/HOWTO_ADD_INSTALL_INSTRUCTIONS.md
hi, i had a lot of issues setting mpv window size when playing audio but your amazing script seems to have fixed it for me while looking cool doing it, the only issue i have left is the window is too wide and i like to have the option to set width too if it's possible.
Unfortunately, it seems that only showwaves can run dsf files, and you cannot open dsf files if you use other Visualizers. Can you fix this problem?
Hello,
title says it all, wether I use the --replaygain=type option or the replaygain=type key/value in my config, having visualizer.lua in my scripts dir disable replaygain application.
Great work!
Is it possible to have a keybind to cycle through your different visualizations?
Hi, I noticed you use mp.register_event("playback-restart", ... ), to update EQ values, when seeking.
I'm on Windows 10, and this is indeed necessary for me, otherwise I lose the current EQ values when I seek in the timeline.
Do you know if this also happens in Linux?
Thank you for your firequalizer15.lua
script.
Can you please add / help me to add keybindings: 0-9, A-E for each band?
One variable to define the scaling factor would also be nice to jump high / low rates, I think right now it increases/decreases with factor 0.1.
Trying to use for example hstack to watch two videos at same time is not possible when visualizer script is in script directory.
What is the license of these scripts? Can a license file be added to make this more clear?
Without the script when playing music files from terminal, mpv does not open a window and played music in terminal only.
With script, when playing the music file from terminal, mpv window is launched with the visualizer.
Can the script be configured to only show visualizer when a file is played by right-clicking or played with mpv command --player-operation-mode=pseudo-gui
and does not trigger to open a mpv window when playing music files from terminal?
Could there be an option to show the album art (Maybe darkened) behind visualizations?
When I try to switch video streams using _ and I reach audio only, then I am stuck in the visualizer and can't go back to a video stream.
MPV version:
mpv 0.36.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
built on Tue Aug 01 10:56:31 2023
libplacebo version: v6.292.0-78-gabf34ba-dirty
FFmpeg version: N-111661-g567e78b28
FFmpeg library versions:
libavutil 58.14.100
libavcodec 60.22.100
libavformat 60.10.100
libswscale 7.3.100
libavfilter 9.10.100
libswresample 4.11.100
OS: Windows 11 Pro 22H2 22621.2428 Windows Feature Experience Pack 1000.22674.1000.0
what version of the ffmpeg is compatible with the script? Or maybe some packages are missing on my system? Or maybe the libs should have been compiled with specific options added which wasn't the case with the Ubuntu? Tried to install libavfilter-extra additionally but it didn't help
here is what i have installed:
ii ffmpeg 7:3.2.4-1build2 amd64 Tools for transcoding, streaming and playing of multimedia files
ii libavcodec57:amd64 7:3.2.4-1build2 amd64 FFmpeg library with de/encoders for audio/video codecs - runtime files
ii libavdevice57:amd64 7:3.2.4-1build2 amd64 FFmpeg library for handling input and output devices - runtime files
ii libavfilter6:amd64 7:3.2.4-1build2 amd64 FFmpeg library containing media filters - runtime files
ii libavformat57:amd64 7:3.2.4-1build2 amd64 FFmpeg library with (de)muxers for multimedia containers - runtime files
ii libavresample3:amd64 7:3.2.4-1build2 amd64 FFmpeg compatibility library for resampling - runtime files
ii libavutil55:amd64 7:3.2.4-1build2 amd64 FFmpeg library with functions for simplifying programming - runtime files
ii libpostproc54:amd64 7:3.2.4-1build2 amd64 FFmpeg library for post processing - runtime files
ii libswresample2:amd64 7:3.2.4-1build2 amd64 FFmpeg library for audio resampling, rematrixing etc. - runtime files
ii libswscale4:amd64 7:3.2.4-1build2 amd64 FFmpeg library for image scaling and various conversions - runtime files
The visualizer is working fine for audio files but when playing a video file with mpv --player-operation-mode=pseudo-gui --no-video filename.mp4
, the visualizer is not showing up.
I use this functionality to listen to youtube videos as audio with "open with" firefox extention and this command mpv --player-operation-mode=pseudo-gui --no-video --fs=no
.
The visualizer looks nice. Thanks for your work. Is there a way of opening the visualizer on demand by pressing a key?
Also, I'm getting a warning when the script loads:
[ffmpeg] Parsed_showcqt_4: fractional step
Do you know what this is?
How do I change the background color of "showwaves" please!
mode
to novideo
or force
this doesn't happen for files with video so it might be some behaviour of rendering a still image for the art? but also it only crashes while playing, if i switch while paused it doesn't crash until i hit play
I am so sorry about that, but while testing #22 I noticed that the way it is now is actually wrong and it used to be correct.
Please either revert that, or remove it using a force-push for a cleaner git history.
It have different frequency scales support: linear, log, mel, bark, erbs, etc...
And many other features, including bargraph support and different color mode and slide modes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.