Discussion:
Why should we be Stage-Fright Compliant.
ajitabh saxena
2012-09-10 07:30:35 UTC
Permalink
Hi All,
I am in the process of adding hardware acceleration for media
playback for my platform. I think the shortest route for me is to write a
player at the same level as stage fright expose all the interfaces
equivalent to that exposed by StageFright and then hook up my hardware
below this player.
I have been told that this is not the right approach and we
should write OpenMAX IL layer to do this. My question is "Why?". If Google
is not going to change StageFright interface to higher layer I should be
fine writing my own StageFright, isn't it?

I really appreciate any information here.

Thanks,
- Ajitabh
--
unsubscribe: android-porting+unsubscribe-/***@public.gmane.org
website: http://groups.google.com/group/android-porting
ajitabh saxena
2012-09-13 07:48:03 UTC
Permalink
HI There,
I need to following the right design so please shed some light on this
one.

Thanks,
AJ
Post by ajitabh saxena
Hi All,
I am in the process of adding hardware acceleration for media
playback for my platform. I think the shortest route for me is to write a
player at the same level as stage fright expose all the interfaces
equivalent to that exposed by StageFright and then hook up my hardware
below this player.
I have been told that this is not the right approach and we
should write OpenMAX IL layer to do this. My question is "Why?". If Google
is not going to change StageFright interface to higher layer I should be
fine writing my own StageFright, isn't it?
I really appreciate any information here.
Thanks,
- Ajitabh
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-platform-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to android-platform+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.
Gabriel M. Beddingfield
2012-09-13 13:31:35 UTC
Permalink
Received: by 10.50.196.131 with SMTP id im3mr657453igc.6.1347543119979;
Thu, 13 Sep 2012 06:31:59 -0700 (PDT)
X-BeenThere: android-platform-/***@public.gmane.org
Received: by 10.50.41.165 with SMTP id g5ls6614365igl.2.gmail; Thu, 13 Sep
2012 06:31:51 -0700 (PDT)
Received: by 10.43.9.8 with SMTP id ou8mr1110529icb.4.1347543111165;
Thu, 13 Sep 2012 06:31:51 -0700 (PDT)
Received: by 10.43.9.8 with SMTP id ou8mr1110526icb.4.1347543111150;
Thu, 13 Sep 2012 06:31:51 -0700 (PDT)
Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com [209.85.214.171])
by gmr-mx.google.com with ESMTPS id dd6si3606436igc.0.2012.09.13.06.31.51
(version=TLSv1/SSLv3 cipher=OTHER);
Thu, 13 Sep 2012 06:31:51 -0700 (PDT)
Received-SPF: pass (google.com: domain of gabrbedd-***@public.gmane.org designates 209.85.214.171 as permitted sender) client-ip=209.85.214.171;
Received: by mail-ob0-f171.google.com with SMTP id v19so6038322obq.30
for <multiple recipients>; Thu, 13 Sep 2012 06:31:50 -0700 (PDT)
Received: by 10.60.22.33 with SMTP id a1mr2193548oef.57.1347543110900;
Thu, 13 Sep 2012 06:31:50 -0700 (PDT)
Received: from [10.74.18.164] ([198.47.22.164])
by mx.google.com with ESMTPS id q6sm19388973oec.7.2012.09.13.06.31.48
(version=SSLv3 cipher=OTHER);
Thu, 13 Sep 2012 06:31:50 -0700 (PDT)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0
In-Reply-To: <CA+DpWwXqeryatWr4AbaZ425=bBPo-1gC+S2sFDXf9YQhwOTt7A-JsoAwUIsXosN+***@public.gmane.org>
X-Original-Sender: gabrbedd-***@public.gmane.org
X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com:
domain of gabrbedd-***@public.gmane.org designates 209.85.214.171 as permitted sender)
smtp.mail=gabrbedd-***@public.gmane.org; dkim=pass header.i=@gmail.com
Precedence: list
Mailing-list: list android-platform-/***@public.gmane.org; contact android-platform+owners-/***@public.gmane.org
List-ID: <android-platform.googlegroups.com>
X-Google-Group-Id: 725556553501
List-Post: <http://groups.google.com/group/android-platform/post?hl=en_US>, <mailto:android-platform-/***@public.gmane.org>
List-Help: <http://groups.google.com/support/?hl=en_US>, <mailto:android-platform+help-/***@public.gmane.org>
List-Archive: <http://groups.google.com/group/android-platform?hl=en_US>
Sender: android-platform-/***@public.gmane.org
List-Subscribe: <http://groups.google.com/group/android-platform/subscribe?hl=en_US>,
<mailto:android-platform+subscribe-/***@public.gmane.org>
List-Unsubscribe: <http://groups.google.com/group/android-platform/subscribe?hl=en_US>,
<mailto:googlegroups-manage+725556553501+unsubscribe-/***@public.gmane.org>
Archived-At: <http://permalink.gmane.org/gmane.comp.handhelds.android.internals/1169>


I am not a lawyer... but yes, I believe that it is technically it's
possible for you to replace Stagefright on your device and still be able
to market it as "Android."

But here's why it's a bad idea:

1. It's freaking done. It's well tested, quality controlled, and
handles corner cases that you can't even imagine yet.

2. I wonder how easy it will be to pass CTS with your own
Stagefright implementation.

3. You have to implement more than just the MediaPlayer interface.
Several components (like Gallery player, camera) link directly to
Stagefright. So you also have to implement its binary interface.

4. Stagefright provides more than just "video." It is the focal
point of all things "media" -- audio, video, decoding, encoding,
A/V sync, etc. You'll have to re-implement all of that.

So, if you have a couple years to spend on this -- knock yourself out!
Otherwise, you can provide an OMX interface to your video layer and ship
somewhat sooner.

-gabriel
Post by ajitabh saxena
HI There,
I need to following the right design so please shed some light on
this one.
Thanks,
AJ
On Mon, Sep 10, 2012 at 1:00 PM, ajitabh saxena
Hi All,
I am in the process of adding hardware acceleration for
media playback for my platform. I think the shortest route for me is
to write a player at the same level as stage fright expose all the
interfaces equivalent to that exposed by StageFright and then hook
up my hardware below this player.
I have been told that this is not the right approach and
we should write OpenMAX IL layer to do this. My question is "Why?".
If Google is not going to change StageFright interface to higher
layer I should be fine writing my own StageFright, isn't it?
I really appreciate any information here.
Thanks,
- Ajitabh
--
You received this message because you are subscribed to the Google
Groups "android-platform" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/android-platform?hl=en.
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-platform-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to android-platform+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.
Glenn Kasten
2012-09-13 14:01:27 UTC
Permalink
See http://www.joelonsoftware.com/articles/fog0000000069.html

Of course, Stagefright itself is a rewrite of a previous media framework,
but even that replacement was done incrementally, not in one fell swoop.

On Thursday, September 13, 2012 6:32:01 AM UTC-7, Gabriel Beddingfield
Post by Gabriel M. Beddingfield
I am not a lawyer... but yes, I believe that it is technically it's
possible for you to replace Stagefright on your device and still be able
to market it as "Android."
1. It's freaking done. It's well tested, quality controlled, and
handles corner cases that you can't even imagine yet.
2. I wonder how easy it will be to pass CTS with your own
Stagefright implementation.
3. You have to implement more than just the MediaPlayer interface.
Several components (like Gallery player, camera) link directly to
Stagefright. So you also have to implement its binary interface.
4. Stagefright provides more than just "video." It is the focal
point of all things "media" -- audio, video, decoding, encoding,
A/V sync, etc. You'll have to re-implement all of that.
So, if you have a couple years to spend on this -- knock yourself out!
Otherwise, you can provide an OMX interface to your video layer and ship
somewhat sooner.
-gabriel
Post by ajitabh saxena
HI There,
I need to following the right design so please shed some light on
this one.
Thanks,
AJ
On Mon, Sep 10, 2012 at 1:00 PM, ajitabh saxena
Hi All,
I am in the process of adding hardware acceleration for
media playback for my platform. I think the shortest route for me is
to write a player at the same level as stage fright expose all the
interfaces equivalent to that exposed by StageFright and then hook
up my hardware below this player.
I have been told that this is not the right approach and
we should write OpenMAX IL layer to do this. My question is "Why?".
If Google is not going to change StageFright interface to higher
layer I should be fine writing my own StageFright, isn't it?
I really appreciate any information here.
Thanks,
- Ajitabh
--
You received this message because you are subscribed to the Google
Groups "android-platform" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/android-platform?hl=en.
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/dyhqUcaac2AJ.
To post to this group, send email to android-platform-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to android-platform+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.
Glenn Kasten
2012-09-13 14:47:41 UTC
Permalink
This is a duplicate post; follow-ups are at
https://groups.google.com/d/topic/android-platform/ZOHEmtK6rsI/discussion
Post by ajitabh saxena
HI There,
I need to following the right design so please shed some light on this
one.
Thanks,
AJ
Post by ajitabh saxena
Hi All,
I am in the process of adding hardware acceleration for media
playback for my platform. I think the shortest route for me is to write a
player at the same level as stage fright expose all the interfaces
equivalent to that exposed by StageFright and then hook up my hardware
below this player.
I have been told that this is not the right approach and we
should write OpenMAX IL layer to do this. My question is "Why?". If Google
is not going to change StageFright interface to higher layer I should be
fine writing my own StageFright, isn't it?
I really appreciate any information here.
Thanks,
- Ajitabh
--
unsubscribe: android-porting+unsubscribe-/***@public.gmane.org
website: http://groups.google.com/group/android-porting
Loading...