Questions tagged [grafika]

Grafika is an open-source SDK app which provides a collection of hacks for testing graphics features. It is developed by Google for API 18 (Android 4.3).

Grafika is an app which provides a collection of hacks for testing graphics features. It is developed by Google for API 18 ().

Grafika is available on GitHub.

71 questions
1
vote
1 answer

how to limit project grafika circular continuous camera recorder maximum seconds?

there is a MAX_LENGTH value that we can set. that value limits the recording approximately.. sometimes it can get up to double. so lets say i set the value of MAX_LENGTH to 15 then launch the app and start recording sometimes it exceed that…
Barina
  • 53
  • 8
1
vote
1 answer

Capturing SurfaceView into video file based on google/grafika examples

I would like to load video from file, make some transformation on it and render it back into file. Said transformation is mainly two videos overlapping and shifting one of them in time. Grafika has some examples relevant to this issue.…
Krzysztof Kansy
  • 305
  • 2
  • 13
1
vote
0 answers

Android: Recorded video is black after applying OpenGL effect on Moto G2

I'm applying a visual effect on a video using OpenGL. The effect is separately applied to the video preview and the part where it is saved to the file, the same way as it works in Grafika, CameraCaptureActivity. This works perfectly fine on a Nexus…
Samarth
  • 201
  • 1
  • 3
1
vote
0 answers

Frame rate (interval) issues in recording GL rendering with a GLSurfaceView using MediaCodec

I've been developing a recording component of our app, which records GL renderings on a GLSurfaceView using MediaCodec and Muxer. I found a nice set of examples by fadden (like bigflake and Grafika... Thanks so much fadden), and tried those stuff…
1
vote
0 answers

Video Audio muxing issue (java.lang.IllegalStateException: Failed to stop the muxer)

I'm making an app to record video without using the default video recorder. To make the video I'm using the MediaMuxer. The audio and video recording is done on separate threads. The app randomly crashes when I stop recording, and the log…
Preethi Rao
  • 5,117
  • 1
  • 16
  • 29
0
votes
0 answers

Display android.graphics.Bitmap constantly in TextureView

I have written a Fragment class, which is dedicated to display a constant stream of android.graphics.Bitmap. The stream of Bitmap objects is delivered by JavaCV. Do I have to use the Canvas.drawBitmap method to display the Bitmaps in order to get a…
Mike Weiss
  • 13
  • 1
  • 6
0
votes
1 answer

Recording selected area of screen in android

I am trying to implement screen recorder. I followed grafika . Simply giving Surface from encoder.getInputSurface() to VirtualDisplay does the trick. Now my task is to encode a certain part of the screen. So, I was trying to modify the input Surface…
singularity
  • 147
  • 1
  • 11
0
votes
0 answers

grafika continuous encode video with camera2 in background

I used grafika library to continuous encode video frames with old camera API. Because the old camera API needs a visible SurfaceView to receive data from camera, so I'm trying to use camera2 to replace old camera API. The camera2 API can use…
Morshues
  • 125
  • 1
  • 12
0
votes
1 answer

Buffering or holding back frames in OpenGLES

I am trying to buffer upto 10 frames in GLES on Android. The incoming frames come from a camera to a surfacetexture and I process the image using OpenGles. I'm attempting to do this because I'm applying several gles filters causing the GPU to choke,…
Crearo Rotar
  • 559
  • 7
  • 23
0
votes
0 answers

Android camera color lookup error

I'm trying to implement lookup texture to my live camera preview.Everything looks fine except shine and shadows. The shine appears blueish and shadow sometimes has red spot. I'm using Grafika's Camera Capture. I have referred GpuImage's Shader. I…
Jay Parikh
  • 1
  • 1
  • 3
0
votes
1 answer

why the animation is accelerating

I have problem with my code. Why this animation still accelerates. [in this link is code ][1] [1]:enter code here http://jsfiddle.net/74j0u5zf/4/
0
votes
1 answer

android mediacodec encode drop frame

hi,I try to use Android MediaCodec to encode. I follow the code of "grafika", but I find the encode video drop some frames. I check my input, every frame is different from each other, but in my encode output video, for example, frame 71 is same to…
user6943953
  • 13
  • 1
  • 5
0
votes
0 answers

How can I get a Surface object from an EGLSurface?

I need to write a frame from a video stream to an image file. The stream is coming from a GStreamer Player, so it needs to be directed to a Surface object (it won't accept an EGLSurface). However, I'm trying to use Grafika's OffscreenSurface as the…
MarkyDD
  • 272
  • 5
  • 16
0
votes
1 answer

Video Lag and FPS drop on Android Lollipop on touching screen

I am using MediaCodec to play 1080p@60fps video. This is on freescale SabreSD platform with Android Lollipop 5.1. Initially because of BufferQueue Synchronous Mode, the FPS was way below 60.I could now manage to play at 70FPS by changing the…
0
votes
1 answer

Android - Gaussian blur like effect - OpenGL

Where not specified this question is just building on top of the CameraCaptureActivity within the grafika project found on github. It has a built in blur effect that utilises a 3x3 kernel kernel = new float[] { 1f/16f, 2f/16f, 1f/16f, …
Joe Maher
  • 5,354
  • 5
  • 28
  • 44