Giter Club home page Giter Club logo

simple-grafika's Introduction

simple-grafika

Optimise camera recordings on-the-fly without FFMPEG or other heavy-weight libraries Originally forked from https://github.com/google/grafika

About Grafika

  • A collection of hacks exercising graphics features.
  • An SDK app, developed for API 18 (Android 4.3). While some of the code may work with older versions of Android, no effort will be made to support them.
  • Open source (Apache 2 license), copyright by Google. So you can use the code according to the terms of the license (see "LICENSE").
  • A perpetual work-in-progress. It's updated whenever the need arises.

To some extent, Grafika can be treated as a companion to the Android System-Level Graphics Architecture document. The doc explains the technology that the examples rely on, and uses some of Grafika's activities as examples. If you want to understand how the code here works, start by reading that.

But we have built a simplest version of demo which solves few major problems :

About this sample-grafika

Attempts to record at 720p from the default camera, displaying the preview and recording it simultaneously.(CameraCaptureActivity.java)

  • Recording continues until stopped. If you back out and return, recording will start again, with a real-time gap. If you try to play the movie while it's recording, you will see an incomplete file (and probably cause the play movie activity to crash).
  • The output is stored at home directory of your SD card ("grafika-2372377731.mp4").
  • It can optimise your media/video on-the-fly from camera while recording
  • You can change video key-frames, bitrates,framerates,size and encodings(VideoEncoderCore.java)
  • The best part is everything will happen on the fly so when your recording stops, the video should be already prepared :)
  • You don't need FFMPEG or other heavy libraries to perform all the above tasks
  • All code is written in the Java programming language -- the NDK is not used.

simple-grafika's People

Contributors

ajitjati avatar

Stargazers

Piyush Malaviya avatar Hbtech avatar  avatar Majid Mohammadnejad avatar mjw avatar

Watchers

James Cloos avatar  avatar

Forkers

jaechoon2

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.