Coder Social home page Coder Social logo

feature request ffmpeg hwaccel about lazygal HOT 4 OPEN

sintaxx avatar sintaxx commented on September 26, 2024
feature request ffmpeg hwaccel

from lazygal.

Comments (4)

niol avatar niol commented on September 26, 2024 1

Thanks for your feedback.

I just added what I think would enable hwaccel in ae5dad7 . I do not have the hardware to test. Please tell me how it works for you.

from lazygal.

niol avatar niol commented on September 26, 2024 1

Then I understand that this issue is about the following requests:

  • improve webm transcoding quality
  • provide a configuration parameter to copy original video if already readable by a web browser
  • provide a configuration parameter to add/replace what is passed on ffmpeg

from lazygal.

sintaxx avatar sintaxx commented on September 26, 2024

After some testing and reading more into the GPU decoder/encoder it unfortunately appears that WEBM is not supported for hardware acceleration, only H264 and H265. Would it be possible to add options to either use your default of WEBM (libvpx-vp9) or to just leave the video files as-is, with no converting ? worst case they could be resized by a percentage to H264 and use full GPU acceleration in the future, or even H265 but if they could be left as-is and only have thumbs generated i think that would work better. I love webm but they also have some issues with iOS playback last time i checked. Another option which is probably more troublesome would be to allow flags to be passed to lazygal to fully specify to use GPU or not, as well as letting the user choose which video/audio codec and resize percentage. In the meantime if you'd allow an option to disable transcoding and copying the files, generating thumbnails that would be amazing.

if you need a machine to use to test gpu params i could always spin up a docker container with a debian system in it with access to my GPU, just an idea.

I tested -hwaccel cuda and -hwaccel cuvid and they both DO use the GPU but offer no speed improvements from what I observed. Tested on an 11MB MP4 video file.

It turns out that some newer Intel CPU's offer encoding acceleration for VP8/VP9 via Intel Quicksync (QSV). I can do some testing with this later on, my servers use Xeons and they do not have QSV extensions.

Update: after messing with this all day i've not had any success at hardware accelerating encoding using GPU or CPU(QSV Intel), it's a huge pain in the ass. I personally think the best thing would be to just have an option to disable the transcoding altogether since it appears that most webm files become fairly low quality with defaults, so i'm not sure if the time involved is worth it, for me at least.

from lazygal.

sintaxx avatar sintaxx commented on September 26, 2024

sounds perfect !

from lazygal.

Related Issues (17)

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.