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.

154 questions
0
votes
1 answer

Why AVCodecContext extradata is NULL?

I am trying to decode h264 video using ffmpeg and stagefright library. I'm using this example. The example shows how to decode mp4 files, but i want to decode only h264 video. Here is piece of my code.. AVFormatSource::AVFormatSource(const…
Arsen Davtyan
  • 1,531
  • 7
  • 20
  • 32
0
votes
1 answer

Android libstagefright_h264 ff_get_buffer was not declared in this scope error

i am trying to built ffmpeg with decoder as libstagefright_h264, slightly modified the given script in ffmpeg to point to android source in local file system. When make, i get ff_get_buffer was not declared in this scope error. What is causing…
nmxprime
  • 1,386
  • 2
  • 18
  • 52
0
votes
1 answer

H264 HW accelerated decoding in Android using stagefright library

I`m trying to decode h264 video using HW with Stagefright library. i have used an example in here. Im getting decoded data in MedaBuffer. For rendering MediaBuffer->data() i tried AwesomeLocalRenderer in AwesomePlayer.cpp. but picture in screen…
Arsen Davtyan
  • 1,531
  • 7
  • 20
  • 32
0
votes
2 answers

Android MusicPlayer uses Stagefright or opencore

I read that if media.stagefright.enable-player is set true then the device uses Stagefright. In my device's build.prop i see media.stagefright.enable-player = false When i tired below MediaPlayer mp = new…
nmxprime
  • 1,386
  • 2
  • 18
  • 52
0
votes
2 answers

How to use libstagefright's MediaBuffer properly?

I: Create android::MediaBufferGroup; Fill it up with multiple buf_group.add_buffer(new android::MediaBuffer(bufsize)); on initialisation; Do buf_group->acquire_buffer(&buffer) when I need a buffer to send somewhere; Use buffer->data() to get actual…
Vi.
  • 29,583
  • 14
  • 78
  • 138
0
votes
1 answer

Demux .mp4 file using openmax and android stagefright

how can i demux .mp4 file and separate audio/video and then render individually using openmax and android stagefright. 1.If i have to implement all functions in jni file. 2.what if i use ffmpeg for demuxing,how it can be integrated with android…
Mayank Agarwal
  • 377
  • 1
  • 5
  • 20
0
votes
1 answer

android MediaSource not recogonized as class in jni code

I am trying to use android ndk to develop simple decoder/player application.I created one project using android sdk and then i created a folder named jni in my project directory. Inside the jni directory i created one omx.cpp file and i want to…
Mayank Agarwal
  • 377
  • 1
  • 5
  • 20
0
votes
2 answers

What is the raw data color format after android hardware decoding?

Are there a constant color format for hardware decoding or each different android device has its own color format? I want to get the raw data which result from hardware decoding and render it myself. Thanks.
Zachary
  • 117
  • 1
  • 13
0
votes
1 answer

Using Stagefright to stream small audio files in Android

I have a lot of small .ogg sound files (average size of ~35-50KB) that I need to have played from my AWS S3, and then once played, they need to be cached on the device. There are approximately 200 sounds, and that is 1/10th of what the finished…
0
votes
1 answer

can some one give some samples or resource above stagefright?

I am studying android recently,I want to decode TS stream with stagefright and want to know how stagefright deal with video file or stream,but I know little about stagefright.can some one give some samples ,project or resource above stagefright…
ljfxmu
  • 113
  • 2
  • 7
0
votes
1 answer

Android 4.0 onwards OMX-IL HW Decoding from Native side

Is it possible to use Android native code and OMX-IL (maybe using stagefright even) for HW decoding in Android 4.1 onward (maybe you will suggest creating an instance of OMXCodec). But I want to do my own surface allocation and handling done from…
itsmeagain
  • 31
  • 4
0
votes
3 answers

OMXCodec::onEvent -- OMX Bad Parameter

I have been trying to use OMXCodec through Stagefright. I have implemented the code for ICS version of Android.I have two classes CustomDataSource which derives MediaSource and another is CustomOmxCodec which calls OMXCodec::Create method and…
sam18
  • 631
  • 10
  • 24
0
votes
1 answer

.data.rel.ro+0x8 error: undefined reference to 'typeinfo for android::MediaSource'

I cannot solve an issue while compiling my JNI source in android using ndk-build. The class which is causing error is as below: class MxDataSource : public MediaSource { public: MxdataSource(); virtual status_t start(MetaData…
sam18
  • 631
  • 10
  • 24
0
votes
1 answer

Android : java.lang.NoSuchField Exception for mSurface while trying use surface from native

I want to feed buffer of the surface from Native code. So I get the surface from SurfaceView's SurfaceHolder's getSurface method. Now all I want is to use it from the native to feed buffer to render image. I have included SurfaceClinger/Surface.h.…
sam18
  • 631
  • 10
  • 24
0
votes
2 answers

Can i encode or decode video in Android using OpenCORE or StageFright?

Does this Android Frameworks give capabilities for develop encoding and decoding functions for one Android app? I know there is one high level API with 4.1 named MediaCodec which gives the capabilities for encoding and decoding video, but i dont…
javiaf
  • 107
  • 3
  • 12
1 2 3
10
11