Giter Club home page Giter Club logo

Comments (11)

jonfryd avatar jonfryd commented on May 30, 2024 1

Adding XML parsing would likely require integrating a library (and I'm not a fan of the XML format in general). I'm keen to keep the tool's dependencies limited to SDL2 and FFmpeg libraries to maintain simplicity and reduce the potential for issues associated with additional dependencies.

Something like mpv's config file format (https://github.com/mpv-player/mpv/blob/master/etc/mpv.conf) would be a better option.

from video-compare.

jonfryd avatar jonfryd commented on May 30, 2024

Hi @tormento,

Thanks for sharing your idea!

Yes, it should be doable by lending some ideas and patterns from https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/hw_decode.c

I'm not going to work on this (there is a fair amount of work involved and I rarely need the extra performance boost), but I'm open to PRs.

from video-compare.

jonfryd avatar jonfryd commented on May 30, 2024

In theory Vulkan decoding should be supported in the latest Windows build from what I can see (https://www.gyan.dev/ffmpeg/builds/). I don't have the drivers or hardware to test it myself, though.

Please see: #42 (comment)

I'm closing this for now. Let me know if it works for you.

from video-compare.

jonfryd avatar jonfryd commented on May 30, 2024

@tormento: I've added support for HW accelerated decoding in today's release (this is separate from the decoder selection I did in July). You can now enable Vulkan decoding via --left-hwaccel vulkan and/or --right-hwaccel vulkan.

from video-compare.

tormento avatar tormento commented on May 30, 2024

Thank you!

I think you should keep it as default, as I can't see a reason why not to.

from video-compare.

jonfryd avatar jonfryd commented on May 30, 2024

Cheers!

Hardware acceleration with FFmpeg's libraries is a complex topic. Its effectiveness and compatibility depend on several factors, including the specific hardware, drivers, codec, and pixel format used. While CPU decoding offers a more universally compatible solution, hardware acceleration can provide significant performance benefits like you know.

If hardware acceleration via Vulkan GPU decoding works well in your specific setup, I recommend creating a shell alias or a .bat command for convenience when launching the tool. This approach allows you to leverage the benefits of GPU decoding while maintaining the fallback option of CPU decoding. However, I have no plans for making HW acceleration the default for now, as I aim to ensure the tool remains as universally compatible as possible.

from video-compare.

tormento avatar tormento commented on May 30, 2024

What about a ,ini file?

from video-compare.

jonfryd avatar jonfryd commented on May 30, 2024

That's fine for Windows, but it has to be done in a cross-platform fashion (https://github.com/Malvineous/cfgpath could be an option perhaps). I'm open to PRs.

from video-compare.

tormento avatar tormento commented on May 30, 2024

Why? You can store settings in txt or xml file in Linux too. Enough that the program can read files in its own directory.

from video-compare.

tormento avatar tormento commented on May 30, 2024

You had time to sort out some solution?

My fingers are getting old and painful to type all that switches ;)

from video-compare.

jonfryd avatar jonfryd commented on May 30, 2024

Haha, sorry... I'm not working on this - a shell alias or script is still the quick fix for now. It should help ease the typing strain ;)

from video-compare.

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.