Questions tagged [android-mediacodec]

MediaCodec is a class from the package "android.media" of Android API that can be used to access low-level, native media codec, i.e. encoder/decoder components.

MediaCodec is a class from the package android.media of Android API that can be used to access low-level, native media codec, i.e. encoder/decoder components. Along with the common IO it supports input data of the following decoder mime types:

  • "video/x-vnd.on2.vp8" - VPX video (i.e. video in .webm)
  • "video/avc" - H.264/AVC video
  • "video/mp4v-es" - MPEG4 video
  • "video/3gpp" - H.263 video
  • "audio/3gpp" - AMR narrowband audio
  • "audio/amr-wb" - AMR wideband audio
  • "audio/mpeg" - MPEG1/2 audio layer III
  • "audio/mp4a-latm" - AAC audio
  • "audio/vorbis" - vorbis audio
  • "audio/g711-alaw" - G.711 alaw audio
  • "audio/g711-mlaw" - G.711 ulaw audio

The reference to the API docs: http://developer.android.com/reference/android/media/MediaCodec.html

1173 questions
0
votes
1 answer

Media Codec and Rendering using GLSurfaceview, Optimization for OnDrawFrame

I am using media codec for encoding frame coming from camera and render it using gl surface view. my ondrawframe looks like this public void onDrawFrame(GL10 unused) { float[] mtx = new float[16]; …
0
votes
0 answers

MediaCodec for Simultaneous Camera

I am working on development for simultaneous camera streaming and the recording using MediaCodec API. I want to merge the frame from both the camera and give to rendering as well as to Mediacodec for recording as surface. I do not want to create…
0
votes
1 answer

Android MediaCodec -long processing for each frame

Edit as i wasn't clear at first time: I'm trying to use android MediaCodec to get each frame from existing video file(videoBefore.MP4) ,process the frame(like blur) and then encode each frame to a new video file(videoAfter.MP4). The new video have…
yarin
  • 543
  • 1
  • 5
  • 18
0
votes
0 answers

Can't do constant encoding using MediaCodec on Android Tablet

I am trying to use MediaCodec for hardware encoder on Samsung Tablet GT-P5100. But I only can get a few frames. The preview can get the constant video information and show it but there is something wrong with the encoder function after several…
Brendon Tsai
  • 1,267
  • 1
  • 17
  • 31
0
votes
0 answers

Youtube javascript api iframe playback on android - no Audio

This issue is only on youtube iframe playback on ( 4.3/4.4 on Nexus 7). I go to any media site embedding YT player in an Iframe and the sound does not play. The player will launch and will show controls but, no sound. The logcat msg is : …
0
votes
0 answers

MediaCodec decoder strange behaviour

In my implementation I use for MediaCodec decoders to decode videos in a sequential order frame by frame and everything works fine. But if before starting the decoding process I play some media using MediaPlayer and TextureView (extended TextureView…
feisal
  • 585
  • 1
  • 8
  • 20
0
votes
2 answers

MediaCodec hardware decoder much slower with different server configuration?

I've been using the Android MediaCodec in order to (hardware) decode H.264 frames on my Galaxy S4 coming from a Live 555 RTSP live (real-time) stream. After changing my Live 555 server configuration from using ffmpeg (with x264) to encode frames,…
mathieujofis
  • 349
  • 3
  • 16
0
votes
1 answer

Android mediacodec crash

I am building an android video player app with the new API MediaCodec and MediaExtractor (available from API 16). It normally works well but sometimes I have a crash with a very meaningless messages: 09-30 16:39:13.985: A/MediaCodec(6508):…
vodkhang
  • 18,639
  • 11
  • 76
  • 110
0
votes
0 answers

What are lib_k3_generic_audio_extractor.so, lib_k3_mov_extractor.so, and so on?

I'm experimenting with Android MediaCodec, with the code I got from here: https://code.google.com/p/android-source-browsing.platform--cts When I tried to run the code…
hubeir
  • 1,279
  • 2
  • 13
  • 24
-1
votes
1 answer

Getting following error when trying to prepare more than one exoplayer instance in android

I am trying to create a TikTok like app, for that I am using viewPager2, FragmentStateAdapter and ExoPlayer(2.16.1), I am injecting new instance of exoPlayer in every new VideoFragment and initializing/prepare exoplayer in onViewCreated method and…
Ankit Pandey
  • 220
  • 5
  • 9
-1
votes
1 answer

How to feed the video frames directly to Encoder surface, without using Decoder?

I am developing a video compressor app where the general architecture everyone follow is first decode the video frames on the Output surface of decoder then swap those buffer directly to the Input surface and then encode it. Here we are using both…
Mohan
  • 53
  • 5
-1
votes
1 answer

Serious delay using Huawei MediaCodec decoding H264 rendering TextureView

"Huawei P30 uses MediaCodec hardware to decode the H264 stream, and then directly render it to TextureView for display." It is found that compared to other mobile phone platforms, the delay of Huawei P30 is about 200ms longer than other mobile…
user13703166
-1
votes
1 answer

mix auido to video,when stop MediaMuxer ,get a issue

When I use mediacodec audio merging into the video, I just want to capture audio a fragment, from 10 s of the audio, when I call android. Media. MediaExtractor# seekTo, introduced into 10 s parameters, the final stop MediaMuxer will be an error, …
-1
votes
1 answer

How to trim a video without using ffmpeg on Android?

I am building an application in which I need to trim videos. It is possible to do this using ffmpeg, but I can't use it because it uses the gpl license. I tried using mediaCodec but can't use the codes I found. How can i trim videos on android?
Vitor Ferreira
  • 1,075
  • 1
  • 14
  • 28
-1
votes
1 answer

Video Compression on Android

I want to compress video files on android device before uploading them to server. I have looked for Mediacodec (feature supported in 4.3+) and ffmpeg for android but unable to decide which one to use. Is there any compariosion available based on…
1 2 3
78
79