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
3
votes
2 answers

Videoview behavior on differents smartphone (with different stagefright)

I'm having compatibility problems using videoview (or MediaPlayer) for play rtsp streams in multiple videoviews in the same activity. I have opened another question on this problem here but now I know that isn't my code the responsible, because I…
tulkas85
  • 1,103
  • 1
  • 17
  • 43
3
votes
1 answer

Does MediaCodec truncate incoming packets for decoding?

I'm using MediaCodec to decode h264 packets that were encoded with ffmpeg. When I decode with ffmpeg, the frames display fine. However, when I decode with the MediaCodec hardware decoder I sometimes get black bars that show up in the middle of the…
mathieujofis
  • 349
  • 3
  • 16
3
votes
2 answers

Android: MPEG4Writer fails to start when using OMXCodec as MediaSource

I'm trying to encode a video from a byte array buffer and to do so I'm using MPEG4Writer API from native code. I have created my custom MediaSource class to provide the data and I'm wrapping it with OMXCodec to give it to…
dmarcato
  • 872
  • 8
  • 16
3
votes
1 answer

How to use MediaCodec API to invoke my custom decoder

I have a video decoder which is ported to android and is successfully working as a standalone application, however i want to integrate this code to android multimedia framework. So, this code i have added to android's media framework. That is i have…
3
votes
1 answer

Android - Stagefright framework consistency across devices/manufactures

Is there any sort of guaranteed consistency in the use of Stagefright across manufacturers and/or devices? Although Android introduced Stagefright in 2.x, is there anything that keeps manufacturers from making changes to it? As of ICS, Android…
Macho Matt
  • 1,286
  • 4
  • 16
  • 32
3
votes
2 answers

Android browser media player (stagefright?) displayed media name

When the Android browser opens a media file it can play, the built-in (stagefright?) media player opens up to stream it. A title for this media is displayed on the player dialog, based on the URL. The URL in this case was…
Brad
  • 159,648
  • 54
  • 349
  • 530
2
votes
0 answers

How to use Stagefright with a predefined buffer for decoded frames?

I would like to create a simple Android application which would play video file, but it would replace one color (of my choice) in the displayed frame with another color (of my choice). I assume there is some interface/API in which application could…
Bojan Milankovic
  • 847
  • 3
  • 11
  • 23
2
votes
1 answer

Accessing Native Codecs in Android 3.x version and above

I would like to use the native decoder for a custom video player. The VideoView and MediaPlayer does not provide functionality that will support my requirements. I am using FFMPEG (software decoder) right now, but I would prefer to use native…
2
votes
1 answer

Decode H.264(AVC) bitstream on Android?

I am writting an app which needs to decode H.264(AVC) bitstream. I find there are AVC codec sources exist in /frameworks/base/media/libstagefright/codecs/avc, does anyone know how can one get access to those codecs in an Android app? I guess it's…
2
votes
0 answers

Where is the hardcoded RTP video buffer size in stagefrightlib Android 2.3 Gingerbread?

Where exactly is the default buffer size stored? I got as far as void OMXCodec::setMinBufferSize() in media/libstagefright/OMXCodec.cpp I am interested in the H263-1998/H263-2000 decoder if it makes any difference.
Emil
  • 171
  • 1
  • 6
2
votes
1 answer

Why can't the compiler convert to bool implicitly from sp?

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…
Daniyal Yasin
  • 142
  • 1
  • 14
2
votes
1 answer

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 bit, How can I do this ? Thanks in Advance :)
2
votes
1 answer

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 function ParseTrackEntry() the default track settings…
2
votes
1 answer

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 understanding using the MediaPlayer state…
Sam2203
  • 21
  • 1
  • 3
2
votes
0 answers

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. For resolutions upto 480p it instantiates…
Kevin K
  • 589
  • 2
  • 7
  • 28