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
15
votes
1 answer

Android camera preview stretched using Grafika CameraCapture code

I'm looking for help with an issue I'm facing using Grafika's CameraCaptureActivity code. I want to build an app that can record camera and display a preview, so this sample and code looked like exactly what I wanted and so far it's been great, this…
Benoit
  • 1,168
  • 8
  • 16
10
votes
1 answer

Crop video before encoding with MediaCodec for Grafika's "Continuous Capture" Activity

I am learning about Grafika's "Continuous Capture" Activity, It is about recording a video with MediaCodec. The activity source code is at https://github.com/google/grafika/blob/master/src/com/android/grafika/ContinuousCaptureActivity.java The…
dragonfly
  • 1,151
  • 14
  • 35
10
votes
0 answers

Android Video Circular Buffer with Sound

I am using Google's Open Source Example: Grafika. I am using it's ContinuousCaptureActivity.java The CircularBuffer's Implementation is demonstrated in this Activity, but there is no audio included in the resultant Video file. I want to add the…
Salman Khakwani
  • 6,684
  • 7
  • 33
  • 58
7
votes
2 answers

How to add Audio to Video while Recording [ContinuousCaptureActivity] [Grafika]

I implement Video recording using ContinuousCaptureActivity.java. it's work perfectly. Now i want to add Audio in this video. I know using MediaMuxer it is possible to add audio in video. But the problem is i don't know how to i use…
Ali
  • 3,346
  • 4
  • 21
  • 56
7
votes
2 answers

setPreviewTexture failed in MTK device

Recently I am learning android Camera and OpenglES by grafika (Thanks fadden).It's good on most device, but I encounter bugs in some device, espacially MTK device(such as MT6580,MT8163...). For example, when "CameraCaptureActivity" run in MTK. I am…
orcs Yang
  • 113
  • 1
  • 7
6
votes
1 answer

OMX.qcom encoder random crash

The app is based on Grafika's camera capture activity (https://github.com/google/grafika/tree/master/src/com/android/grafika). The user taps on a button to record a video. A random crash is happening on Nexus 5x. Posted below are 2 logs of when it…
Ziad Halabi
  • 964
  • 11
  • 31
6
votes
2 answers

Use rotateM() of Matrix to rotate matrix from SurfaceTexture but corrupt the video output

I managed to play video with opengl es, I used the way of grafika's ContinuousCaptureActivity, my data source is MediaPlayer rather than Camera which makes no difference. MediaPlayer produces video frames continuously and I draw each frame to screen…
dragonfly
  • 1,151
  • 14
  • 35
5
votes
0 answers

glMapBufferRange() is slow and memcpy() of the mapped data is also slow on Android

I managed to write a video recording demo which is similar to ContinuousCaptureActivity of grafika(Source code of ContinuousCaptureActivity.java). The difference is that grafika used hardware encoding but I used software encoding. For software…
dragonfly
  • 1,151
  • 14
  • 35
5
votes
1 answer

MediaCodec Encoded video has green bar at bottom and chrominance screwed up

I started a project from Grafika and modified it. I've got a framework (not too different from the original) which captures a preview from the Camera and continuously encodes it to a video at the same time both at different resolutions. MediaCodec…
Sahil Bajaj
  • 890
  • 6
  • 16
5
votes
1 answer

Android Precise seeking of video

I'm struggling with precise seeking using MediaExtractor's seekTo(). While I can seek to sync frames without problems, I would like to seek to specific time. This question led me to some ideas how to do this, but I'm not sure if they are valid.…
5
votes
0 answers

SurfaceTexture.getTimestamp() returning 0 during playback

Recently I've encountered a strange problem on Android 5.0.2 (API 21). My application is using SurfaceTexture to display video. Playback mechanics are mostly based on google/grafika's CameraCaptureAvtivity, but the video source is decoded .mp4 movie…
Krzysztof Kansy
  • 305
  • 2
  • 13
4
votes
1 answer

Seek through a video with MediaCodec and GLSurfaceView

I'm trying to implement seeking through video file with MediaCodec decoder which outputs to GLSurfaceView. The solution's based on Bigflake examples and fadden comments. It works with SurfaceView, but I'm facing some troubles using…
4
votes
1 answer

Android mirror the camera Preview using SurfaceTexture TransformMatrix

I started from Grafika example and I want to render the camera preview with GlRenderView. My question is how I can modify the transform matrix obtained from surfacetexture in order to get video preview mirrored like with device front…
Siv
  • 193
  • 2
  • 16
4
votes
1 answer

eglPresentationTimeANDROID(): Can I use microedition.khronos instead of android.opengl?

I want to use eglPresentationTimeANDROID in my ExtendedGLSurfaceView (extended from GLSurfaceView). The method appears in: EGLExt.eglPresentationTimeANDROID(android.opengl.EGLDisplay display, android.opengl.EGLSurface surface, long time); My main…
4
votes
1 answer

Android: Crop video while recording using MediaCodec and MediaMuxer

I am trying to record the video using GLSurfaceView and audio from the AudioRecord. In MediaMuxer I am sending both audio and video data when onFrameAvailable called. I set the camera preview size of 1280 * 720 and preview on the full screen. I am…
Amit Thaper
  • 2,117
  • 4
  • 26
  • 49
1
2 3 4 5