Giter Site home page Giter Site logo

Comments (3)

otsaloma avatar otsaloma commented on June 3, 2024

Mpv on bionic does not support the --vf=scale=128:128/dar option syntax. I had to remove "/dar" from the option to make it work. As I could not locate any documentation about /dar I cannot provide a clean fix. I presume /dar refers to the display aspect ratio, and in fact thumbnails look compressed as a result. I could not find an equivalent setting for bionic's mpv (--vf=scale=128:-2 comes close but produces oversized icons for portrait mode videos).

I added that dar over two years ago to fix the aspect ratio in some cases, I think it was "anamorphic" videos where the container metadata contains the true display aspect ratio. So, your fix should be good if you need compatibility with a really old mpv.

d8b03d0

On Debian and Ubuntu, the Gnome install path is /usr/bin, so the install script and the .thumbnailer file need tweaking to remove '/local' from all paths. With the bubblewrap security, symlinks are not sufficient.

If you set the PREFIX in the install command, it should install under /usr if that's what you like.

make
make PREFIX=/usr install

from mpv-thumbnailer.

driehuis avatar driehuis commented on June 3, 2024

Thanks for your quick response!

Could you point me towards online documentation for the "/dar" option to the scale video filter? I could not find it anywhere...

Sorry for scribbling these "notes to self" in the issue tracker :-) I'll see if I can add build support for Debian and Ubuntu and submit a proper pull request. Rust is new to me, but adding a command line flag to tweak the mpv command line will be an interesting exercise.

from mpv-thumbnailer.

otsaloma avatar otsaloma commented on June 3, 2024

I think mpv in some way uses ffmpeg's filters, so the documentation is there.

https://ffmpeg.org/ffmpeg-filters.html#Options-1

If you're thinking of some kind of a fix, I recommend just forking the code. Ubuntu 18.04 is already old, it's not the latest LTS, I don't want to include any work arounds for an old OS.

from mpv-thumbnailer.

Related Issues (2)

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.