Comments (3)
Framerate works for android on the HighestQuality preset. It was just a test I did, but I will remove it, as I found that to work on most devices without any artifacts, I will have to follow a bitrate pattern, and framerate and screen resolution.
(I can create a custom preset too, and leave the API available when I'm done).
Flutter's PlatformView itself has limitations that make certain views appear with green artifacts.
I tested the same video using VideoView, and then using platformview for the same VideoView (instead of using the Video_Player plugin) and the artifacts only appear on Flutter. The videos also have artifacts on Linux and Windows, only on Mac is played, because Mac has the best existing support for MP4. I have badly encoded files that do not open in chrome on linux or windows, but open normally on the Mac.
Unfortunately it is not so easy to solve. I'm creating countless test presets to try to reach something satisfactory, but I still don't know if I will reach something that will cover 100% of the cases, because it can involve a lot, from the skia's rendering engine, to the byte headers of the container mp4.
However, it seems that multiplying frame height x frame width x 4 for bitrate (for resolutions below HD +) has shown the best results so far. Anything less than that generates artifacts.
I will continue with the tests, and do an update when ready.
from videocompress.
interesting, i'll play around with it as well. Thank you
from videocompress.
Framerate works for android on the HighestQuality preset. It was just a test I did, but I will remove it, as I found that to work on most devices without any artifacts, I will have to follow a bitrate pattern, and framerate and screen resolution. (I can create a custom preset too, and leave the API available when I'm done). Flutter's PlatformView itself has limitations that make certain views appear with green artifacts. I tested the same video using VideoView, and then using platformview for the same VideoView (instead of using the Video_Player plugin) and the artifacts only appear on Flutter. The videos also have artifacts on Linux and Windows, only on Mac is played, because Mac has the best existing support for MP4. I have badly encoded files that do not open in chrome on linux or windows, but open normally on the Mac. Unfortunately it is not so easy to solve. I'm creating countless test presets to try to reach something satisfactory, but I still don't know if I will reach something that will cover 100% of the cases, because it can involve a lot, from the skia's rendering engine, to the byte headers of the container mp4. However, it seems that multiplying frame height x frame width x 4 for bitrate (for resolutions below HD +) has shown the best results so far. Anything less than that generates artifacts. I will continue with the tests, and do an update when ready.
why frameRate Still exists
from videocompress.
Related Issues (20)
- #Issue Could not find com.otaliastudios:transcoder:0.9.1. HOT 15
- Remove permission of external storage. Issue in uploading on playstore
- Running from isolate throws exception
- MissingPluginException(No implementation found for method compressVideo and getFileThumbnail on channel video_compress) HOT 1
- will you please provide OC version for me? HOT 1
- java.lang.IllegalArgumentException: could not access /data/user/0/com.example.test_compress/app_flutter/Trimmer/VID_20230725_163032_446_trimmed:Aug4,2023-17:32:10.mp4 HOT 1
- Could not find com.otaliastudios:transcoder:0.9.1 HOT 13
- Work with isolate
- Missing link to repo in pub.dev
- Add support for dart native HOT 1
- compression cancel
- Please add more compression options
- Support for Windows/Linux
- Plans for Implementing Privacy Manifest Support?
- Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17). HOT 6
- Fatal error while transcoding, this might be invalid format or bug in engine or Android. VideoCompress HOT 1
- MissingPluginException(No implementation found for method setLogLevel on channel video_compress) HOT 4
- Compression progress never getting to 100 on iOS HOT 2
- Android issue
- Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. HOT 4
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 videocompress.