[android-developers] Re: Problem with video playing

2009-03-06 Thread Dave Sparks
If you are trying to play this on a G1, the frame size is too large. The H.264 codec is base profile up to HVGA (480x320). It's pointless to encode at VGA when the screen is HGVA - you're wasting half your bandwidth for pixels you will never see. On Mar 6, 1:42 am, manoj

[android-developers] Re: Problem with video playing

2009-03-06 Thread manoj
so, how can I solve it? even if I fixed the holder size to 320*240, I am not getting the video, only audio comes. can you please help me. Thanks, Manoj. On Mar 6, 3:16 pm, Dave Sparks davidspa...@android.com wrote: If you are trying to play this on a G1, the frame size is too large. The

[android-developers] Re: Problem with video playing

2009-03-06 Thread dar
I think Dave is saying you have to transcode down to 480x320 - the maximum frame size the G1 supports. This brings up a second question, when we grab video assets, is there an api call to determine the maximum profile supported? I suppose that devices with better capabilities will come out and

[android-developers] Re: Problem with video playing

2009-03-06 Thread manoj
ok, thanks for your reply. I have some questions in my mind, when to use which SurfaceHolder's type. I mean when to use SURFACE_TYPE_GPU, SURFACE_TYPE_HARDWARE , SURFACE_TYPE_NORMAL, SURFACE_TYPE_PUSH_BUFFERS. Can you please explain me in detail. Thanks, Manoj. On Mar 6, 6:54 pm, dar

[android-developers] Re: Problem with video playing

2009-03-06 Thread manoj
Hi, From my log, I found the following errrors: E/MemoryHeapBase( 465): mmap(fd=19, size=233472) failed (Invalid argument) E/VideoMIO( 465): Error creating frame buffer heap can any one help me? Thanks, manoj. On Mar 6, 7:32 pm, manoj manojkumar.m...@gmail.com wrote: ok, thanks for your

[android-developers] Re: Problem with video playing

2009-03-06 Thread manoj
Here I am providing you my complete log file: I/ActivityManager( 52): Starting activity: Intent { comp= {bluemediaLab.vodcast.tests/ bluemediaLab.vodcast.tests.MediaPlayerDemo_Video} (has extras) } D/MediaPlayerDemo( 235): surfaceCreated called I/MediaPlayer-JNI( 235): prepareAsync:

[android-developers] Re: Problem with video playing

2009-03-06 Thread dar
This seems like a big hint: W/PlayerDriver( 465): Video cannot catch up. Are you playing a high quality content? E/MediaPlayer( 235): Error (44,0) Did you transcode your content to be smaller/less bandwidth before running this test according to the specs Dave gave above? On Mar 6, 10:22 

[android-developers] Re: Problem with video playing

2009-03-06 Thread manoj
Hi dar, can you please tell me how to transcode? waiting for your reply... Thanks, Manoj. On Mar 6, 9:03 pm, dar dher...@gmail.com wrote: This seems like a big hint: W/PlayerDriver(  465): Video cannot catch up. Are you playing a high quality content? E/MediaPlayer(  235): Error (44,0)

[android-developers] Re: Problem with video playing

2009-03-06 Thread dar
There are a bunch of different ways to transcode, the path you choose will depend, at least, on your source material and available tools. Here's the wikipedia entry, this should be enough to get you started in the right direction: http://en.wikipedia.org/wiki/Transcoding On Mar 6, 1:03 pm, manoj

[android-developers] Re: Problem with video playing

2009-03-06 Thread Eric
MPEG 4 is a family of encoding methods, of which H.264 is a video subset, also with a family of encoding methods. The first thing you need to do is determine what profile and level your second multimedia file contains. They you should find out what profile and level can be played by the H.264