Comments (4)
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.
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.
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.
sounds perfect !
from lazygal.
Related Issues (17)
- lazygal video transcode fails if no audio HOT 1
- filtering out tags
- Access arbitrary image metadata from templates
- auto space thumbnail page
- Minor typo "dl_asset" HOT 1
- video tests fail if ffmpeg/ffprobe are not in PATH HOT 2
- test_usercomment_empty_and_encoding fails on Fedora rawhide HOT 1
- Exception "adding same dep twice" HOT 4
- Support for HEIF/HEIC images HOT 8
- Lazygal fails on background color with cannot write mode RGBA with JPEG HOT 4
- Gif image support
- DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12 HOT 1
- Import from multiple source directories HOT 4
- feature request, enlarge images and remove margine
- Incorrect number of images in subdir HOT 3
- Next/Previous image overlap main image HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lazygal.