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

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


Sponsored Links
 Hi,

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??

Thanks,
Deva

PS.
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 -  http://review.omapzoom.org/ #change,6889

-- 
Regards,
Deva
www.bittoggler.com




--


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
stream.

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

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

regards
Shashank




--



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
Handango
Handmark
Mogees)
at https://developer.motorola.com/platforms/android/distribute/

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?

Thanks
Jay

--

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

Hello!

I have developed an app called Jarmans ReverseLookup that opens upp a
webview on incoming calls and makes a reverselookup on the incoming
number.
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 (WhitePages.com) 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
added:

"Belgium: whitepages.truvo.be"
"Canada: WhitePages.ca"
"Canada: mobile.c411.ca"
"Denmark: mobil.eniro.dk"
"Denmark: eniro.dk (iPhone)"
"Finland: wap.eniro.fi"
"Finland: eniro.fi (iPhone)"
"France: i.118218.fr (iPhone)"
"France: 118218.fr"
"Germany: mobile.11880.com"
"Iceland: en.ja.is"
"Italy: Paginebianche.it"
"Italy: Paginegialle.it"
"Norway: mobil.gulesider.no"
"Norway: mobil.tlf.no"
"Norway: 1881.no (iPhone)"
"Sweden: mobil.eniro.se"
"Sweden: eniro.se (iPhone)"
"Sweden: mobil.hitta.se"
"Sweden: hitta.se"
"Sweden: 118100.se"
"Sweden: m.vemringde.se"
"Sweden: VemRingde.se"
"Switzerland: mobile.tel.local.ch"
"Switzerland: tel.search.ch"
"USA: WhitePages.com"
"USA: ReversePhoneDetective.com"
"USA: FreeCellPhoneTracer.com"
"USA: WhoCalled.us"

Best regards
Jarman

--

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