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
212
votes
10 answers

FFmpeg on Android

I have got FFmpeg compiled (libffmpeg.so) on Android. Now I have to build either an application like RockPlayer or use existing Android multimedia framework to invoke FFmpeg. Do you have steps / procedures / code / example on integrating FFmpeg on…
Jag
  • 2,121
  • 3
  • 13
  • 5
35
votes
3 answers

How to use hardware accelerated video decoding on Android?

I need hardware-accelerated H.264 decoding for a research project, to test a self-defined protocol. As I have Search on the web, I have found a few ways to perform hardware-accelerated video decoding on Android. Use ffmpeg libstagefright (overview…
Glenn Yu
  • 603
  • 1
  • 7
  • 11
24
votes
2 answers

How to use MediaCodec without MediaExtractor for H264

I need to use MediaCodec without the MediaExtractor and I'm reading the file using a FileInputStream. Currently it is not working, it is showing a greenish scrambled image on the screen. This is the whole source code: FileInputStream in = new…
thiagolr
  • 6,703
  • 6
  • 37
  • 59
19
votes
3 answers

Stagefright architecture

Is there a documentation explaining android Stagefright architecture? Can I get some pointers on these subjects?
Renjith
  • 516
  • 1
  • 6
  • 25
14
votes
1 answer

Android - Include native StageFright features in my own project

I am currently developing an application that needs to record audio, encode it as AAC, stream it, and do the same in reverse - receiving stream, decoding AAC and playing audio. I successfully recorded AAC (wrapped in a MP4 container) using the…
pablitar
  • 143
  • 1
  • 1
  • 7
12
votes
1 answer

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 -vvv v4l2:///dev/video1 --v4l2-width $WIDTH --v4l2-height…
Jon Shemitz
  • 1,225
  • 12
  • 28
9
votes
1 answer

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 guides on Internet, load them into my android app. It…
Ming Zhang
  • 91
  • 1
  • 4
9
votes
2 answers

Possible to Override system .so library in App

I have to modify the Http Live Streaming implementation of Android Media Player. The implementation is under the stagefright library http://androidxref.com/4.0.4/xref/frameworks/base/media/libstagefright/httplive/LiveDataSource.cpp I think these…
eroy4u
  • 149
  • 10
8
votes
1 answer

Android: How to integrate a decoder to multimedia framework

Recently i have ported a video decoder to android successfully. Also dumped the output on a surfaceview and checked the output using native API's. Now the next task is to implement play, pause, streaming etc. i.e. the other features of the media…
Zax
  • 2,612
  • 6
  • 44
  • 69
7
votes
1 answer

FFMpeg Android Stagefright SIGSEGV error (h264 decode)

I need to decode h264 file to YUV on Android 2.3+. As I understand I need to communicate with Stagefright, as it`s the only way now, after closing access with OpenMAX IL implementations. I have used FFmpeg 0.10 (and tried 0.9/0.9.1..) for this…
Sergey Ochkur
  • 71
  • 1
  • 4
7
votes
1 answer

How MediaCodec finds the codec inside the framework in Android?

I am trying to understanding how MediaCodec is used for hardware decoding. My knowledge in android internal is very limited. Here is my findings: There is a xml file which represents the codec details in the android system . …
Whoami
  • 12,364
  • 16
  • 75
  • 133
6
votes
2 answers

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 found that - I found a great resource of using…
Kaidul
  • 14,015
  • 11
  • 68
  • 139
6
votes
1 answer

Access StageFright.so directly to decode H.264 stream from JNIlayer in Android

Is there a way to access libstagefright.so directly to decode H.264 stream from JNI layer on Android 2.3 or above?
ljfxmu
  • 113
  • 2
  • 7
6
votes
2 answers

How to access own libmediaplayerservice library from libmedia_jni in Android Gingerbread

By default android Gigerbread 2.3 use PV_Player(opencore library). I found one solution just it should be patched system build.prop file, but I don't want to patch system. I want to create my own library using android media frame work which will use…
Suvam Roy
  • 1,272
  • 2
  • 10
  • 20
5
votes
3 answers

Play .ts video file on Android?

I am pretty new at streaming video, so please bear with me. :) I am trying to port an m3u8 stream over from iPhone to Android. Looking in the m3u8 feed, I found some .ts files. From what I can tell, .ts files are, themselves, wrappers that…
user359519
  • 701
  • 2
  • 16
  • 28
1
2 3
10 11