Questions tagged [stagefright]

Stagefright is the android media framework. Use this tag for questions specific to stagefright framework. Also add android tag.

Stagefright is the android media framework. It replaced earlier opencore framework.

Use this tag for questions specific to stagefright framework. Also add tag.

153 questions
1
vote
1 answer

Is it possible to create multiple instances of OMXCodec using stagefright

I want to use libstagefright.so in android phones for media operations. I have explored example given in this page. I have been trying to implement the same. While testing this implementation for multiple OMXCodec instances, it's output buffer…
sam18
  • 631
  • 1
  • 10
  • 24
1
vote
1 answer

how to access StageFright API's to decode h264 video and render from application layer on Android (Gb and ICS)

Is there any sample code which gives me an idea about how to access StageFright API's to decode h264 video as well as Rendering the Decoded data (which will be in YUV420 ) using Surfaceflinger APIs from application layer on Android (GB,ICS).
Prashant
  • 39
  • 1
  • 8
1
vote
1 answer

HLS support on ICS

We are having certain hardware installed with ICS operating system where we need to play secure m3u8 (using key files just like how IOS handles). We need to control playback in many ways like fast forward,rewind,manipulating stream on the fly and…
PGU
  • 495
  • 6
  • 21
1
vote
2 answers

stagefright CameraSource::read returns small frames (20 bytes) on Samsung Galaxy S2

I am trying to grab the frames captured by the camera, encode them and finally send them using RTP/RTSP. To do the capturing I am using the CameraSource class of stagefright. The preview on the screen (Surface passed from Java) is great. But when I…
feldi
  • 151
  • 1
  • 8
0
votes
2 answers

Access StageFright API to decode JPEG from Application layer in Android

Is there a way to access StageFright API's to decode JPEG image from application layer on Android 2.3?
Rohit
  • 6,941
  • 17
  • 58
  • 102
0
votes
1 answer

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 decoder component of same mime type, so where we decided…
Mohan
  • 1,871
  • 21
  • 34
0
votes
1 answer

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 expected until it reaches the shell code(at this…
hamed farsi
  • 39
  • 1
  • 7
0
votes
0 answers

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 different video's What should I do?, so that I can play…
Pooja
  • 1
  • 1
0
votes
0 answers

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 is also running completely.. But now the problem…
Pooja
  • 1
  • 1
0
votes
1 answer

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 sample buffers as they arrive (from a single thread…
Dean Wild
  • 5,886
  • 3
  • 38
  • 45
0
votes
2 answers

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 baseline according to the code here But I tested this…
Daniyal Yasin
  • 142
  • 1
  • 14
0
votes
1 answer

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 options; status_t err =…
Jayden
  • 3
  • 1
  • 1
  • 3
0
votes
1 answer

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 attacker to perform arbitrary operations on the…
user4326368
0
votes
2 answers

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 called inside OMXCodec.cpp it gives file open error…
Bhagirathsinh Gohil
  • 673
  • 1
  • 9
  • 25
0
votes
1 answer

something about stagefright codec input format in android

i am using stagefright videoencoder to encode video in android 4.4; sp format = new AMessage; format->setInt32("width", 1080); format->setInt32("height", 1920); format->setString("mime", "video/avc"); format->setInt32("color-format",…