1,203 questions
1 vote
0 answers
50 views
Draw YUV image on screen hardware accelerated
We have a live RTSP stream with 30 fps H.264 decoded video frames. To render them on screen, we tried using a Surface that we pass to our MediaCodec. Additionally, we need to expose the decoded frames ...
0 votes
0 answers
42 views
Streaming video over a local Wi-Fi router using RTP over UDP causes pixelation and lag. But my code working correctly on some devices
I build app for stream video between two android devices. its work with rtp over udp and some time use tcp for send SSP and PPS. I am use MideaCodec for encoding and decoding This app can act as Video ...
1 vote
0 answers
40 views
How to determine exact format for YUV AImage in Android?
I'm working on VLC for Android. It have Decoding Acceleration feature, which uses hardware for decoding and CPU for rendering. I'm using AImageReader with AIMAGE_FORMAT_YUV_420_888 and MediaCodec ...
0 votes
1 answer
63 views
the mediacode become too slow when the APP go background?
I am using MediaCodec to transform the screen to H.264 and then send it to my desktop C++ software. And when the app goes to the background (I open another), the H264 becomes too slow. Then I think I ...
2 votes
0 answers
61 views
Medicodec dequeue out failing with ImagerReader [closed]
I'm adding imagereader support in VLC-Android decoder pipeline. VLC has OutThread for dequeuing output and another thread for queuing input. When buffers are used dequeue_out (wrapper for ...
1 vote
0 answers
155 views
Getting SecurityException when starting foreground service with MediaProjection on Android 14+ (SDK 34)
I have a live app on the Play Store that recently started crashing on Android 15 devices with the following error: Caused by java.lang.SecurityException Starting FGS with type microphone callerApp=...
0 votes
0 answers
57 views
Unity Android Native Video Player - Audio Works but Video Renders Black
Unity Android Native Video Player - Audio Works but Video Renders Black I'm developing a Unity AR application that needs to play videos on 3D objects using a custom Android native plugin. The audio ...
1 vote
0 answers
49 views
How to provide raw video/audio recording data from mediacodec to ffmpeg kit in Kotlin?
I want to make chunks of 5 secs from the ongoing recording by MediaCodec in Android. I am using the ffmpeg kit for this. How can I provide continuous recording data to ffmpeg to make chunks ...
1 vote
1 answer
61 views
Deprecated ColorFormat produces better result than recommended
I'm trying to mux an array of bitmaps into an MP4 video using MediaCodec Library. Im mostly using this (https://stackoverflow.com/a/51278232/2041475) implementation, but I noticed that on my Google ...
0 votes
0 answers
160 views
HW Accelerated Video Decoding on Quest 3
I've struggled with this for a while. I'm building a VR Android app (C++/OpenXR) that receives and displays video from a GStreamer RTP stream. I've been able to successfuly decode two simoultaneous ...
1 vote
0 answers
69 views
android mediacodec decode data to surface and save to mp4
The Byte Stream is being fed live to me from an external source with websocket I use encoder bind new surface encodeSurface = encoder.createInputSurface(); bind the decode to the surface ...
0 votes
1 answer
67 views
How to encode audio AAC in HE-AAC V1 in new android API 33
android api 33 add new fields in android.media.MediaFormat links: https://developer.android.com/sdk/api_diff/33/changes/android.media.MediaFormat https://developer.android.com/reference/android/media/...
0 votes
0 answers
110 views
mediaCodec.dequeueOutputBuffer returns INFO_TRY_AGAIN_LATER on Google Pixel but not on Samsung Galaxy
I am trying to convert some bitmaps to video and encode them with this library https://github.com/israel-fl/bitmap2video In the FrameBuilder.kt, it encodes a given into AVC/H264. However, ...
1 vote
1 answer
76 views
Unable to set timestamp on Android MediaCodec Image object from native c++ code
I have an created a queue to store images from ImageReader in cpp. while copying the queued items to the Image object from MediaCodec.getInputImage(index) method I'm facing an issue where the byte ...
0 votes
0 answers
371 views
Video decode and re-encode performance and implementation issues while using MediaCodec on Android
I have an application that takes in the camera feed (Camera2 API) and creates a video output at the chosen resolution using MediaCodec and MediaMuxer. This app works like a dashcam producing 10 sec ...