Git Product home page Git Product logo

Comments (7)

zhongfly avatar zhongfly commented on June 17, 2024 1

https://github.com/media-kit/libmpv-win32-video-cmake/blob/main/packages/mpv.cmake#L27
I think it is lgpl

You can get binary from https://github.com/media-kit/libmpv-win32-video-build ,and it uses https://github.com/media-kit/libmpv-win32-video-cmake to build libmpv(video)

I find this libmpv link to a slim ffmpeg which disable all encoder and only support common formats.

from media-kit.

alexmercerind avatar alexmercerind commented on June 17, 2024 1

Hi!

My builds are highly stripped & LGPL, following variants are available:

  • video-full
  • video-default
  • audio-full
  • audio-default

Only *-default are available for Windows. You need --enable-encoder={*jpeg*,png} for screenshots to work.

https://github.com/media-kit/libmpv-win32-video-build/releases
https://github.com/media-kit/libmpv-win32-audio-build/releases

I'll most likely ship them by default, I need them somewhere.

from media-kit.

alexmercerind avatar alexmercerind commented on June 17, 2024 1

Currently, no image encoders are present to support screenshot-to-file sadly.

That's primarily because media_kit has built-in screenshot implementation:
https://github.com/media-kit/media-kit?tab=readme-ov-file#capture-screenshot

A solution can be to retrieve screenshot as pixel-buffer using screenshot-raw and manually encode it to JPEG/PNG e.g. using stb_image.h or etc. (different platforms have different APIs available).

from media-kit.

Dingo64 avatar Dingo64 commented on June 17, 2024

Thanks @zhongfly !

Calling property value 'mpv-configuration' gives me '--enable-lgpl' as one of the options so that's good.

Overall- a pretty great thing. For some reason screenshots don't work ('screenshot-to-file' command), which would be great and video filters are gone.

from media-kit.

alexmercerind avatar alexmercerind commented on June 17, 2024

I use setup from @ shinchiro & @ zhongfly to cross-compile Windows binaries.

from media-kit.

Dingo64 avatar Dingo64 commented on June 17, 2024

Can I use different file formats for screenshots and not recompile anything?

from media-kit.

Dingo64 avatar Dingo64 commented on June 17, 2024

Sounds promising, thanks. How about video filters? Any chance for them in the build?

from media-kit.

Related Issues (20)

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.