Git Product home page Git Product logo

mpv-scripts's People

Contributors

christoph-heinrich avatar mfcc64 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mpv-scripts's Issues

Error with visualizer.lua

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
Clip279

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.

Feature request / question

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.

Video after audio

If you open a video file after an audio file, for example via ctrl+o (filenavigator.lua), then the visualization continues.

[Feature Request] Off Visualizer should show black screen

There are 4 conditions:

  1. Set the name to off, Run the audio from GUI (explorer/finder). It will show up as a black screen ✅
  2. Set the 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?)
  3. Set the name to not off. Run the audio from GUI (explorer/finder). Cycle it with c. The visualizer freeze on the previous state (showwaves) ❎
  4. Set the 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

mpv crash with visualizer.lua?

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

feature request: add width option for visualizer

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.

Replaygain disabled

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.

Question: updating values when seeking?

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?

keybindings for each bands

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.

Clarify license

What is the license of these scripts? Can a license file be added to make this more clear?

Can't play music files in terminal without opening mpv with gui

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?

When cycling video streams, I cannot get back to a video stream using _

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

firequalizer option 'fft2' and showcqt 'attack' are not found

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

Visualizer not showing with mpv --no-video command

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.

Key for toggling the visualizer

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?

firequalizer15.lua: Add a function to turn the equalizer + Smoother equalizer text, minor changes

  1. Add a function to turn the equalizer on and off, similar to https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/acompressor.lua
  2. Smoother equalizer text, minor changes:
    local freq_label = {
    eq0 = "# 0 Hz: ",
    eq1 = "# 65 Hz: ",
    eq2 = "# 157 Hz: ",
    eq3 = "# 288 Hz: ",
    eq4 = "# 472 Hz: ",
    eq5 = "# 733 Hz: ",
    eq6 = "# 1.1k Hz: ",
    eq7 = "# 1.6k Hz: ",
    eq8 = "# 2.4k Hz: ",
    eq9 = "# 3.4k Hz: ",
    eq10 = "# 4.9k Hz: ",
    eq11 = "# 7k Hz: ",
    eq12 = "# 10k Hz: ",
    eq13 = "# 14k Hz: ",
    eq14 = "# 20k Hz: "
    }
    ...
    local fontfamily = "monospace"
    ...
    local function gain_line(x)
    ...
    x = x + 10
    ...
    local function show_osd_ass()
    ...
    str = str .. pval .. freq_label[eq(x)] .. string.format("%+05.1f", gain_table[eq(x)]*0.1) .. " dB |" .. gain_line(x) .. "\n"
    Буфер обмена01

crash when switching visualizer to album art

  • add visualizer.lua to the mpv scripts
  • set mode to novideo or force
  • play a audio track
  • switch to the album art
  • Segmentation fault (core dumped)

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

support for showcwt

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.