Andy's description of the problem is right. I saw this myself
yesterday.

You can try to increase the number below to 5.
File: codecs_v2/omx/omx_m4v/include/omx_mpeg4_component.h
#define NUMBER_OUTPUT_BUFFER_MP4  2 <<<<<<<<< Change this to 5

-Ravi

On Mar 3, 8:36 pm, Andy Quan <androidr...@gmail.com> wrote:
> The problem is probably caused by the patch 
> below:http://android.git.kernel.org/?p=platform/external/opencore.git;a=com...
>
> 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 <abukust...@gmail.com> 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: 
> > android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting
>
> --
> Thanks,
> Andy

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to