Coder Social home page Coder Social logo

Comments (3)

jonataslaw avatar jonataslaw commented on July 16, 2024 1

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.

khainhero avatar khainhero commented on July 16, 2024

interesting, i'll play around with it as well. Thank you

from videocompress.

wengxianxun avatar wengxianxun commented on July 16, 2024

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)

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.