The problem is probably caused by the patch below: http://android.git.kernel.org/?p=platform/external/opencore.git;a=commitdiff;h=afa07b52460a1c9f88294f14f5a2a259543c88b5
Emulator uses base class MIO which locks 2 output buffers by default now instead of 1 buffer previously. PV OMX by default allocates 2 buffers only, and that's why only 2 frames are rendered. On real board we can use libopencorehw to customize the lock number or number of output buffers to avoid this problem. But it seems a big surprise that video playback can not work naturally in formal release. Is this a correct understanding? BTW, there are some voices of opencore replacement in next Android release. Is this true? On Thu, Feb 4, 2010 at 8:38 AM, abukustfan <[email protected]> wrote: > Hi all, > > I play a video file from Gallery but it did not play properly on my > android-2.1_r1. > Player's progress bar increase normally but it only show the first > frame on screen. > The kernel should be fine as android-1.6_r1 work. > > Does anyone else have the same problem as me? > > ---------------------------------- > # I/ActivityManager( 639): Starting activity: Intent > { act=android.intent.actio > n.VIEW dat=content://media/external/video/media/3 > cmp=com.android.gallery/com.an > droid.camera.MovieView (has > extras) } > V/MovieView( 861): > hasFocus > W/PlayerDriver( 625): Using generic video > MIO > I/ActivityManager( 639): Displayed activity com.android.gallery/ > com.android.cam > era.MovieView: 970 ms (total 970 > ms) > E/SW_DEC ( 625): PV SW DECODER is used for > MPEG4 > W/MediaPlayer( 861): info/warning (1, > 44) > I/MediaPlayer( 861): Info > (1,44) > D/MediaPlayer( 861): > getMetadata > V/MovieView( 861): > hasFocus > W/InputManagerService( 639): Window already focused, ignoring focus > gain of: co > m.android.internal.view.IInputMethodClient$Stub > $pr...@2d27f070 > D/dalvikvm( 772): GC freed 2118 objects / 95520 bytes in 89ms > > -- > unsubscribe: > [email protected]<android-porting%[email protected]> > website: http://groups.google.com/group/android-porting > -- Thanks, Andy -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
