android-mediacodec Questions

2

Solved

Background: I do video file demuxing, decode the video track, apply some changes to frames received, decode and mux them again. The known issue doing this in Android are the number of vendor speci...
Chitter asked 14/2, 2016 at 17:41

3

Solved

I'm trying to get all frames from video file using MediaCodec. If I try display video on SurfaceView, everything is ok. But if surface is null, and when I try get Bitmap from byte array, alwaus get...
Reformatory asked 27/4, 2014 at 9:54

3

I'm using MediaCodec in my project to encode videos from camera. For some reasons i need to set KEY_I_FRAME_INTERVAL to 0, which means that every frame in recorded mp4 video will be a key frame (ke...
Reamy asked 1/2, 2016 at 15:29

3

Solved

I'm trying to get video raw data by Preview, get audio raw data by AudioRecord. Then I will send them to MediaCodec(I will set two Codec instance). After that I will send the video data and audio d...
Chemosmosis asked 7/1, 2014 at 12:47

2

Solved

The following code generates java.lang.IllegalStateException once in a while: int iInputBufIndex = _mcDecoder.dequeueInputBuffer(TIMEOUT_USEC); where _mcDecoder is an instance of MediaCodec. Th...
Hosbein asked 17/8, 2014 at 18:37

3

Solved

Here is the stack trace: E/ACodec: [OMX.qcom.video.encoder.avc] configureCodec returning error -1010 E/ACodec: signalError(omxError 0x80001001, internalError -1010) E/MediaCodec: Codec reported...
Neurotomy asked 28/4, 2016 at 12:56

3

Solved

I'm writing an Android application, and in it, I have a VirtualDisplay to mirror what is on the screen and I then send the frames from the screen to an instance of a MediaCodec. It works, but, I wa...
Dryer asked 20/7, 2015 at 22:4

3

I'm working with Android MediaCodec and use it for a realtime H264 encoding and decoding frames from camera. I use MediaCodec in synchronous manner and render the output to the Surface of decoder a...
Canticle asked 14/6, 2021 at 20:17

9

Solved

I'm looking for efficient way to reduce some video weight (as a File, for upload) and obvious answer for that is: lets reduce resolution! (fullHD or 4K not needed, simple HD is sufficient for me) I...

3

Solved

I'm using Official Flutter Video Player Package for my flutter app, but the displayer is totally black and I also got this error while displaying it on the screen: E/flutter (10774): [ERROR:flutter...

2

I use the MediaCodec class provided by the Android SDK since API level 16 with the OMX.SEC.aac.enc encoder to encode audio to a file. I get the audio input from the AudioRecord class. My instance ...
Inflame asked 7/3, 2013 at 15:55

2

Solved

I'm creating a screen recorder app using the MediaProjection API. In my app, I'm showing the stop button as a small overlay window. I've kept this view as secure so that it doesn't come up in the f...

2

Solved

Is there a way to find out if the decoder that received using MediaCodec.createDecoderByType(type) is a hardware decoder or a software decoder?

3

I'm manually reading a RTP/H264 stream and pass the H264 frames to the Android MediaCodec. I use the "markerBit" as a border for the frames. The MediaCodec is tied to a OpenGL Texture (SurfaceTextu...
Quinquennial asked 5/7, 2016 at 9:5

1

I have PCM audio data with sample rate 48000, I want to encode audio to AAC with sample rate 44100? Is it possible to do so with MediaCodec?
Pentane asked 6/11, 2015 at 14:0

5

Solved

I'm on Android 4.2 and calling MediaExtractor.setDataSource, and it sometimes throws an IOException of "failed to instantiate extractor". I've found where this is thrown from the C++ implementation...
Aerosol asked 12/5, 2014 at 14:51

2

Solved

I'm trying to record the screen with MediaProjection API. I want to trim the video that was recorded by the media projection. Is there a way to do that without using any 3rd party dependency?

3

Basic Info targetSdkVersion 28 Goal: The objective of the class is to resize a video before sending to my server. Problem: The app crashes only on API 29, whether with real devices or using AVD....

1

This is my first post, so bear with me. I'm trying to play raw h264 video onto a Surface object in an android app. I'm using android 5.0.1 on an HTC one. After reading through the android docs, I'...
Berger asked 26/8, 2015 at 23:50

2

Solved

I am using the Android MediaExtractor like this: MediaExtractor extractor = new MediaExtractor(); extractor.setDataSource("path/to/my/wav/file.wav"); extractor.selectTrack(0); ByteBuffer inputBuf...
Lynxeyed asked 24/6, 2016 at 8:41

0

I am having trouble trimming video files without causing the Video/Audio to go out of sync. From what I understand, using the seek argument -ss before or after the input file results in two d...
Oocyte asked 23/12, 2019 at 19:5

2

Solved

I'm trying to use mediaCodec for creating mp4 video from openGl ES surface. I have an eglSurface, and the source surface of that eglSurface is MediaCodec input surface. I can have different sizes ...
Moorwort asked 29/9, 2016 at 16:45

2

I am working on a video conferencing project. My video display is using surface view. Now during a video call there is a chance of aspect ratio change for the incoming frames. So i have tried the f...
Archeozoic asked 10/12, 2013 at 10:9

2

I am working with AMediaCodec and AMediaExtractor, all works fine on all devices(I hope:), but if I check the same code on Android Q (in my case Pixel 2XL) I got such error AMEDIA_ERROR_UNSUPPORTED...

1

I have a screen recording app that uses a MediaCodec encoder to encode the video frames. Here's one way I retrieve the video-encoder: videoCodec = MediaCodec.createEncoderByType(MediaFormat.MIMETY...
Bellyful asked 8/12, 2017 at 13:21

© 2022 - 2024 — McMap. All rights reserved.