154 questions
0
votes
0
answers
54
views
Why does plugin->makeComponentInstance fail silently with OMX_ErrorInsufficientResources in Android AOSP 10?
I am working with a device that is running Android AOSP 10. The problem I am facing is that the camera is not able to record video. After reviewing the log I have found that it is because the system ...
1
vote
2
answers
2k
views
Stagefright - Exploit? - recurring requests for same files
I get these following requests from useragent "stagefright" for some mp3 files in the webfolder, the IPs happen to be unique but the file names are always repeated (around 15 files are being requested)...
3
votes
0
answers
229
views
How to register alac decoder to multimedia framework?
Inside mp4 extractor we added support to parse ALAC encoded frames.
Added SoftOMXComponent for ALAC decoder
Following files we modified for decoder MIME type registration:
OMXUtils.cpp inside ...
-2
votes
1
answer
2k
views
Using MediaCodec asynchronously to decode and render a Video File
Recently started toying around with the Android Media Codec class to render the video frames from a Native C++ application. Was able to successfully decode and render both audio and video streams ...
0
votes
1
answer
645
views
In android multimedia framework how we decide which decoder will play this video if we have multiple decoder of same MIME type
We have integrated some customer decoder with android multimedia framework by writing OMX component.
When we play video usually we have mime type of VIDEO like video/avc.
If we have multiple ...
4
votes
2
answers
1k
views
Fuzzing shared libraries using libfuzzer
The fuzzing process using libfuzzer continues indefinitely until a bug is found.
Is there a flag or an option in libfuzzer to mutate and continue fuzzing even after discovering a bug ?
0
votes
1
answer
1k
views
run a shellcode in the context of mediaerver in android
I write an exploit for a vulnerability in mediaserver in android(CVE-2015-3864). The goal is running a shellcode with root privilege(such as kill all processes). every steps of exploit are working as ...
1
vote
1
answer
550
views
How to import media/stagefright/* classes in Android native code
I'm trying to compile some NDK code (via ndk-build ), but I get this error :
[armeabi] Compile++ thumb: wfd_jni <= SinkPlayer.cpp
In file included from jni/SinkPlayer.cpp:4:0:
jni/SinkPlayer.h:5:...
0
votes
0
answers
103
views
How to adjust Height and width in android stagefright Media Player
Is there any way to adjust height and width of a Video in file which is similar to SoftAVC.Cpp..
In my code the width and height is fixed(i.e 832*480) for particular video.But I want to play ...
0
votes
0
answers
248
views
Pause and Seek in android stagefright Media Player
I have RK3288 Hardware Board and I am trying to use software decoder on it..
I have already integrated my software decoder with the android stage-fright player..
It is perfectly integrated and video ...
0
votes
1
answer
840
views
Intermittent native crash in libstagefright_soft_aacdec.so when using MediaCodec (AAC decoding)
I'm getting an intermittent low level crash when using Android's MediaCodec API. I'm dealing with multiple (up to 8) raw AAC audio streams so I configure 8 MediaCodec instances and then feed them ...
3
votes
0
answers
1k
views
How to determine what is causing Android / LibStageFright to fail on freeBuffer?
I am running into an issue in my Android app where Galaxy Note 4, Galaxy Edge, and some other devices crash when trying to play H.264 video streamed from a server. I'm fairly certain that the H.264 ...
1
vote
1
answer
1k
views
How to write and port OpenMAX software video decoder component in stagefright media player?
I have gone through this links and few other links also,
khronos
OpenMax_Development_Guide
bellagio_openmax_il_open_source_implementation_enables_developers_to_create
but all of them just explains ...
7
votes
2
answers
5k
views
Developing H264 hardware decoder Android - Stagefright or OpenMax IL?
I am developing H264 H/W accelerated video decoder for android. So far, I've come around with some libraries MediaCodec, Stagefright, OpenMax IL, OpenMax AL and FFmpeg. After a bit research, I've ...
5
votes
1
answer
7k
views
Android hardware accelerated video decoder for H264 stream
I am developing an Android hardware accelerated video decoder for decoding real time H264 Annex B stream. After a bit research, it seems I need to get my hands dirty to do this. I came over several ...
0
votes
2
answers
356
views
Decoding hd video with libstagefright results in garbled video
I am using libstagefright to decode a 1020p video having baseline high and level 31 on android.
On emulator the video decoding fails, and i assume the reason is that softavc does not support high ...
0
votes
1
answer
192
views
Get yuv size size stored by Mediabuffer
I am use OpenMax to decode the video frame,my sample is like this:
FILE* fp = fopen("/data/local/tmp/test.yuv", "wb");
while(!isExit)
{
MediaBuffer *mVideoBuffer;
MediaSource::ReadOptions ...
0
votes
1
answer
2k
views
Stagefright - Gaining root access on Android 4.0.4 and 4.4
I've been reading some about the Stagefright exploit and I wish to know if it is possible to gain root access on an Android 4.4 or 4.0.4 device with this exploit.
The wiki page states
" allows an ...
2
votes
1
answer
193
views
Why can't the compiler convert to bool implicitly from sp<android::MetaData>?
I am trying to compile ffmpeg with libstagefright using NDK. I am getting the following error on the compilation of libstagefright.cpp:
libavcodec/libstagefright.cpp: In function 'int ...
1
vote
1
answer
2k
views
Where is Binder/ProcessState.h located?
I am trying to build IJKmediaplayer with libstagefright. But I am encountering an error.
Config.log says:
arm-linux-androideabi-g++ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -...
2
votes
1
answer
1k
views
64 bit Media Server in Nexus 9
Nexus 9 is claimed as 64bit device, But all media libs are 32 bit like mediaserver, stagefright, OMX, MediaPlayerservice etc . Can anyone help me to know why it is like that ? I need to make them 64 ...
0
votes
2
answers
925
views
How to assign read/write permission to services in Android
I have put file dump logic inside following file in Android.
frameworks/av/media/libstagefright/OMXCodec.cpp
And to access this, i have made android application.
Now, my issue is when my logic gets ...
0
votes
1
answer
1k
views
something about stagefright codec input format in android
i am using stagefright videoencoder to encode video in android 4.4;
sp<AMessage> format = new AMessage;
format->setInt32("width", 1080);
format->setInt32("height", 1920);
format->...
0
votes
1
answer
721
views
Undefined Reference to android::LPAPlayer::*
I am having great difficulty with a step in compiling CyanogenMod 11(Android 4.4) for an unsupported device based on an MSM7x27A/Snapdragon S1 platform. When I attempt to build libstagefright, I come ...
1
vote
0
answers
191
views
android video encoding with ffmepg and stagefright
I want to reduce file size that H.264 encoded video file in android.
so i consider two libraries both ffmepg and stagefright.
i need only reduce resolution and bit rate. View point of usage, ...
3
votes
1
answer
998
views
Secure Playback: Crash observed in MediaCodec
I am working on enabling secure playback on Lollipop. I am using ExoPlayer to validate the usecase. I am able to create a secure OMX video decoder component(H264.secure).
However, after the creation,...
2
votes
1
answer
675
views
MKV video file not playing on Lollipop
I was trying to play MKV video file on the Lollipop release but could not able to play, though it was working properly in Kitkat release.
My findings on debugging into the issue as below,
In the ...
0
votes
0
answers
497
views
Android, C++ ADBTool, "libstagefright.so" causing SIGILL
Environment
Android 5
Samsung G5
Windows Desktop (x64)
VisualGDB
ndk-r10d
Use-case
Implement an ADB tool that is linking against "libstagefright.so"
Implementation
Compile Android Source code ( arm*....
0
votes
1
answer
287
views
How to dump YUV in Android Native OMXCodec (S3 & Note 3)
i have followed below method to access YUV buffer. It works in few phones. But in S3 and Note 3 I'm getting problem. any reason ? Please help me.
sp<GraphicBuffer> mCurrGraphicBuffer;
void *...
2
votes
1
answer
6k
views
Difference between MediaCodec and OMXCodec
I have just started to work on the Android Multimedia Framework (Stagefright) and have a basic idea of how local playback works in AwesomePlayer which uses OMXCodec.
I have been mapping my ...
0
votes
1
answer
321
views
QCom Decoder Output YUV Buffer Distrubed
I'm trying to get images from HD Live Stream. Getting OMX Decoder YUV Streams and converting them into JPG. JPEG is completely disturbed. Tried some suggestions from group but not working.
My ...
11
votes
1
answer
3k
views
FFmpeg support for libstagefright hardware decoding
everyone:
I am new to ffmpeg. Recently I am working on project to port ffmpeg to android device.
At the beginning, I compiled ffmpeg to shared libs(.so files) in a very normal way following some ...
1
vote
0
answers
632
views
Android: Stagefright H.264 frame by frame decode in android 4.0.4
I am asking this question with reference to my previous question here.
As I was not able to solve the ownership issue for the last frame of the mp4 file in Motorola xoom device, I thought of trying a ...
0
votes
0
answers
453
views
Android: NativeWndowBuffer ownership issue in omxcodec for hardware h.264 decoding in android 4.0.4
I am working on stagefright to decode and display mp4 file in android 4.0.4 with hardware codec.
Currently I am testing in Motorola Xoom device with android 4.0.4. I was able to decode and display ...
1
vote
0
answers
478
views
Android libraries for ffmpeg + stagefright. language c++
I'v making cross-platform program in c++. In my program for Android platform i need video decoding hw acceleration. I have found out, that I need to look in libstagefright.cpp. which contains ffmpeg ...
2
votes
0
answers
1k
views
Android: Dequeuing native buffer returns error from omxcodec: Dequeued unrecognized buffer
I am using omxcodec of stage-fright framework to perform h.264 hardware decoding and the AwesomeNativeRenderer to render it to the surface.
Currently I am using karbonn A9+ device with android 4.0.4. ...
0
votes
1
answer
1k
views
How to set the max duration for camera preview and media recording in android
I am testing preview and recording use cases in Android. The camera preview is running for few seconds and getting terminated by itself (without pressing back button). I want to test continuous ...
1
vote
1
answer
1k
views
how to dump yuv buffer from omxcodec in android
I followed the steps mentioned in below link to get gralloc buffer. But how to get size of buffer?
How to dump YUV from OMXCodec decoding output
for testing i took length as, width x height x 1.5 as ...
1
vote
0
answers
299
views
Get GraphicBuffer from OMX and keep it (block data override from decoder)
Could someone help me to keep the graphicbuffer from OMX alive without copy please?
I retrieve a graphicbuffer from Android OMX using stagefright (in a mediabuffer) and I would like to store it and ...
4
votes
1
answer
2k
views
Android MediaCodec unable to decode wma files
I have managed to decode MP3 files using MediaCodec. But failing at decoding wmafiles of mime type = x/ms-wma. The code works as expected for MP3 files, and i see MP3Extractor is instantiated in [...
1
vote
1
answer
946
views
Audio buffer management at Android Stack
I'm trying to understand android audio buffer management for streaming usecases e.g. YouTube streaming. As per my understanding from the following URL: http://quandarypeak.com/2013/08/androids-...
0
votes
1
answer
697
views
stagefright for ffmpeg: undefined symbol '_ZTIN7android11MediaSourceE'
all... I want to try ffmpeg hw accelerate with libstagefright_h264 for android device.
Seems that the source code has a little bit old with ffmpeg 2.2.1 and android 4.2.2.
So I try to update the ...
1
vote
2
answers
1k
views
Miracast with Nexus 10 (stagefright 1.2): 505 RTSP version not supported
First, sorry for my grammar, I'm not native!!!
I'm try to develop Miracast application on Sink device. It's done with some Android phones (LG G, Asus...) which not base on stagefright like Nexus 10 (...
2
votes
1
answer
2k
views
Android: error: undefined reference to 'android_atomic_dec'
I am trying to build my code for h.264 video decoding using hardware decoder(OMX codec) in native code of android 4.0.4 by keeping it in the android source tree. The android source is already built. ...
2
votes
2
answers
3k
views
Android: How to build and replace modified AOSP code
I am starting to work with stage fright frame work to implement hardware decoder in android prior to Jelly bean in my video conferencing application.
I have downloaded and built the android source ...
1
vote
2
answers
2k
views
What is AwesomePlayer in Android Stagefright mutlimedia framework? [duplicate]
Can anyone who has worked on Android multimedia framework tell me what's the use AwesomePlayer in Android multimedia framework?
3
votes
1
answer
4k
views
Hardware accelerated video decode for H.264 in android prior to Jelly Bean
I am working on a video conferencing project. We were using software codec for encode and decode of video frames which will do fine for lower resolutions( up to 320p). We have planned to support our ...
12
votes
1
answer
4k
views
Why am I getting "Unsupported format" errors, reading H.264 encoded rtsp streams with the Android MediaPlayer?
I am trying to show H.264 encoded rtsp video on an Android device. The stream is coming from a Raspberry Pi, using vlc to encode /dev/video1 which is a "Pi NoIR Camera Board".
vlc-wrapper -...
0
votes
1
answer
2k
views
how to test webrtc aec in android?
Hi i want to test the webrtc aec and i want to know how it works..
Because i am going to integrate speex.
I dont know how to do all the things but i have to do.
So please give me the information ...
0
votes
1
answer
2k
views
Stagefright: NuPlayer implementations
I am going through the NuPlayer implementations in Android Stagefright. As per my understanding NuPlayerFactory is creating NuPlayerDriver in turn it creates ALooper and NuPlayer. I Couldn't ...