Comments (1)
Have been researching the proper parameters to pass to FFMPEG to generate previews properly. Came across this link:
https://superuser.com/questions/1732301/convert-10bit-hdr-video-to-8bit-frames/1732304
It suggests that this parameter passed in would generate a proper preview/thumbnail for a HDR video. I tested it manually by generating a single frame and it appears to work. Interested in discussing this with anyone, thanks!
-vf zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p
edit: AAAAAND, boom goes the dynamite. zscale isn't on every ffmpeg version so this won't work for everyone. Hmm...
edit2: Wow this is turning out to be more complicated than I thought. So FFMPEG needs zscale but not every FFMPEG is compiled with zscale enabled. Then, even with zscale, you can not use the same parameters for HDR source video as you would for SDR source video because if you do, the resultant image/preview file is very, very dark and generated wrong. So in order to properly do this, the source video must be read, and then if, and only if it is HDR should the proper parameters get added to the command line for FFMPEG. Maybe a config.php parameters needs to be added to indicate if the FFMPEG installation has zscale available, otherwise default to no?
from server.
Related Issues (20)
- [Bug]: Issue with File Previews in Shared Folders on Nextcloud 29.0
- 27.1.10 release please HOT 2
- Detect background jobs/migrations that still need to be ran before upgrading
- [Bug]: DeletedShareAPIController does not exist HOT 7
- [Bug]: user_ldap app can not establish secure connection
- [Bug]: Spurious "Failed to get an iterator for log entries" HOT 1
- [Bug]: Problems with moving files in batches HOT 3
- Handle the fileAction parent property in the multiple files action bar too
- [Bug]: While moving/copying a folder - clicking the New button does not refresh the UI and is unusable. HOT 1
- [Bug]: cron fails because of gd-webp HOT 3
- Expose snapshots to users using a wildcard entry in External Storage settings. HOT 1
- [Bug]: Duplicate File/folder names delete file when moving
- [Bug]: vcf handling
- [Bug]: Logging page freezing/not showing details HOT 4
- [Bug]: Right-click context menu on wrong position after switiching to grid view
- Test stability lately worse than normal? HOT 1
- [Bug]: Search for app in App section not working in v29 HOT 1
- [Bug]: APPs “Auf Gruppen beschränken” funktioniert nicht - v29.0.1 HOT 1
- [Bug]: When i try to process an event i get error Parse error: Invalid Mimedir file HOT 2
- Column is type Bool and also NotNull, so it can not store "false" HOT 2
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 server.