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
2
votes
1 answer

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. I am using mm command to build my decoder…
Kevin K
  • 589
  • 2
  • 7
  • 28
2
votes
2 answers

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 code in Mac system. I am not clear with the whole…
Kevin K
  • 589
  • 2
  • 7
  • 28
2
votes
1 answer

What is the best way to achieve Audio Video Synchronization in Android Based Media Player Application using MediaCodec API?

I'm trying to implement a Media Player in android using the MediaCodec API. I've created three threads Thread 1 : To de-queue the input buffers to get free indices and then queuing the audio and video frames in respective codec's input buffer Thread…
2
votes
1 answer

Android: Creating an OMX component for a video decoder

I have a new task of integrating a decoder(HEVC) from FFMPEG to Android's Stagefright. To do this, i first need to created an OMX component, My next thing is to register my codec in media_codecs.xml and then the OMX component registration in…
Zax
  • 2,870
  • 7
  • 52
  • 76
2
votes
1 answer

Android Kitkat 4.4.2: Adaptive Playback impact on SurfaceFlinger

I came across this generic question on Adaptive Playback in Android Kitkat in SO. However, I have some specific queries as below: I am able to understand the implications on the codec and the related framework. However, there is one specific point…
Ganesh
  • 5,880
  • 2
  • 36
  • 54
2
votes
3 answers

Decoding h264 raw stream on Android 2.3.3

I'm trying to decode a raw h264 stream on "older" Android versions. I've tried MediaPlayer class and does not seem to support the stream format. I can see the stream on other Cam Viewer apps from the market, so I figure there must be a way to do it,…
Cheborra
  • 2,627
  • 4
  • 23
  • 39
2
votes
0 answers

How to build stagefright-plugins for Android in Ubuntu

I tried compile stagefright-plugins for Android in Ubuntu ( https://github.com/omxcodec/stagefright-plugins) but i have a problem with step: you should merge my android_frameworks_native(branch: cm_maguro-10.1) and …
Joson Daniel
  • 409
  • 1
  • 9
  • 18
2
votes
1 answer

How to register a OMX core for adding a new decoder

I'm referring to the post: Android: How to integrate a decoder to multimedia framework Following it i have registered my new decoder (Which is currently not supported by Android) in media_codecs.xml. The Step 2 of the above post requires me to…
sam
  • 289
  • 5
  • 16
2
votes
1 answer

No Encoder found while listing component names and model using IOMX but still android can record .mp4 files with H264 encoded frames

I have been trying to list out all supported codec in android device using IOMX as shown here by binding with media player service. I got my code working and get the list of components. But I observed that there were no encoder component. Only all…
sam18
  • 631
  • 1
  • 10
  • 24
2
votes
1 answer

How to use hardware decoding of media files using ffmpeg android?

i am developing a media player application in android which uses ffmpeg for decoding which i think is software decoding. it doesn't play high resolution videos smoothly so i would like to switch to hardware decoding. I came to know that…
Anoop AR.
  • 118
  • 1
  • 12
2
votes
3 answers

Android MediaPlayer.prepare() takes very long time for API > 2.3 (Is it because of StageFright?)

(This question is partly related to Why does it take so long for Android's MediaPlayer to prepare some live streams for playback?) I tried to play the following audio stream on different devices with android MediaPlayer:…
sdabet
  • 18,360
  • 11
  • 89
  • 158
2
votes
1 answer

Windows Media Player cannot play MPEG-TS file created in Android.

I tested the StageFright record sample (frameworks/base/cmds/stagefright/record) to create a mpeg2 TS file. While it can be played on Android default Media player, it cannot be played in Windows Media Player or MPlayer. Any suggestions? Note that I…
mophead
  • 21
  • 4
1
vote
2 answers

Support for OMX interface in Android StageFright software codecs

Do Android software codecs (for example OMX.PV.mpeg4enc) support OpenMAX (OMX) interface? For example, do they support standard OMX functions like OMX_FillThisBuffer, OMX_EmptyThisBuffer etc? Or only hardware decoder support OMX interface?
Eric Lin
  • 333
  • 2
  • 4
  • 15
1
vote
0 answers

null pointer in postDataTimestamp - CameraSource.cpp (Stagefright)

Currently, I m trying to access the camera data and send it to default encoder from my application. I need to access the data returned by camera in postDataTimestamp() in camerasource.cpp. On checking the data pointer I found it was null. But in…
Indhu
  • 9,806
  • 3
  • 18
  • 17
1
vote
1 answer

how to change the default video buffer size in Android

I have found that the default video buffer size was set to 8 seconds in Gingerbread, so any clips shorter than this could not be played. Is there any way to change default buffer size on streaming MediaPlayer?
Renjith
  • 546
  • 1
  • 8
  • 28