Stagefright Mediaextractor: how to detect interlaced streams in video files?

by Deva R » Tue, 07 Sep 2010 18:45:17 GMT

Sponsored Links

Is it possible to detect scan type (progressive or interlaced) of a video
file in stagefright?

I see below listed fields are query-able with metadata of file through
stagefright, but not scan-type which i guess is avaiable in MP4 file header.
Any hint on how to detect scan-type of video file at Stagefright player
driver? Or is it available in opencore??


enum {
    kKeyMIMEType          = 'mime',
    kKeyWidth             = 'widt',
    kKeyHeight            = 'heig',
    kKeyChannelCount      = '#chn',
    kKeySampleRate        = 'srte',
    kKeyBitRate           = 'brte',
    kKeyESDS              = 'esds',
    kKeyAVCC              = 'avcc',
    kKeyVorbisInfo        = 'vinf',
    kKeyVorbisBooks       = 'vboo',
    kKeyWantsNALFragments = 'NALf',
    kKeyIsSyncFrame       = 'sync',
    kKeyIsCodecConfig     = 'conf',
    kKeyTime              = 'time',
    kKeyDuration          = 'dura',
    kKeyColorFormat       = 'colf',
    kKeyPlatformPrivate   = 'priv',
    kKeyDecoderComponent  = 'decC',
    kKeyBufferID          = 'bfID',
    kKeyMaxInputSize      = 'inpS',
    kKeyThumbnailTime     = 'thbT',

    kKeyAlbum             = 'albu',
    kKeyArtist            = 'arti',
    kKeyAlbumArtist       = 'aart',
    kKeyComposer          = 'comp',
    kKeyGenre             = 'genr',
    kKeyTitle             = 'titl',
    kKeyYear              = 'year',
    kKeyAlbumArt          = 'albA',
    kKeyAlbumArtMIME      = 'alAM',
    kKeyAuthor            = 'auth',
    kKeyCDTrackNumber     = 'cdtr',
    kKeyDiscNumber        = 'dnum',
    kKeyDate              = 'date',
    kKeyWriter            = 'writ',


Stagefright Mediaextractor: how to detect interlaced streams in video files?

by Deva R » Mon, 04 Oct 2010 21:56:18 GMT

 [resolved now]

i realized lately that its beyond the scope of file parser., and
supposed to be done by codec component.
written a custom parser to detect interlaced content,
and posted to local gerrit - #change,6889



Sponsored Links

Stagefright Mediaextractor: how to detect interlaced streams in video files?

by Shashank » Fri, 22 Oct 2010 05:02:09 GMT

 Yes Deva, You are right.

The information regarding interlace is stored in compressed bit

Codec component should be able to provide this information to the
application, i.e. OMX Client. In case of Android :: Stagefright, its

Once this information is retrieved, developer can choose to do field
interlacing / selection for display at awesome player.



Other Threads

1. Motorola App Accelerator program - is it a dead end?

Have any other developers tried this Motorola App Accelerator program?
It claims to help distribution:
"App Delivery Channels -
Submit your app into the MOTODEV app delivery channel today and be
ready to distribute to customers."

When I submit an app, after two weeks it gets approved, and then goes
into an eternal "Publishing" status.

Is this just smoke and mirrors, or is Motorola planning to launch
their own market for Android apps, or as they somehow going to
distribute submitted apps to all markets (they do list several markets
in a non-committal way like:
Android Market
Artificial Life

By the way, I emailed them about this and got no response.

If there are any Motorola marketers or developers on this group, maybe
they can comment?



2. Jarmans ReverseLookup - First app that manages to open a webview on incoming calls and overrides the in-call screen?


I have developed an app called Jarmans ReverseLookup that opens upp a
webview on incoming calls and makes a reverselookup on the incoming
I think this app is first one that actually manages to open a webview
on incoming calls and overrides the in-call screen, I havent seen any
other app doing this.

The user can choose between different searchproviders in the following
countries (I will add more countries over time):
Canada, USA ( Belgium, France, Sweden, Denmark,
Finland, Norway, Iceland, Germany, and Switzerland.

The app also features an integrated call log with single click
reverselookup with the user defined searchprovider. Manual
reverselookup is also possible.

Its free to download on the Market, check it out.
I would like to have your comments on overriding the in-call screen.
Are you supposed to do this or is it "illegal"?

Here is a list of the currently available searchproviders I have

"Denmark: (iPhone)"
"Finland: (iPhone)"
"France: (iPhone)"
"Norway: (iPhone)"
"Sweden: (iPhone)"

Best regards


3. Running an app created in Android 2.0 SDK in Android 1.6

4. Buttons within custom dialog?

5. Android 2.0 - Starting Service/App when core app starts

6. How to create context menus when using CursorAdapter in ListActivity's

7. Mobile web pages