Problem with video playing

by manoj » Fri, 06 Mar 2009 17:42:48 GMT


Sponsored Links
 Hi,

I have created a small application which plays video file.

I am using .mp4 files to play.

Its working for only some files, but for some files, I am getting only
audio there is no video at all.

When I observed the properties of the media files,

1. Format: MPEG-4 Video, 320*240, AAC     Movie FPS:29.97, Data size:
3.76, Data Rate:316.03 kbps, noram size:320*240, current size:320*240
-----> PLAYING PERFECTLY

2. Format:h.264, 640*480, AAC Movie FPS: 29.97  data size:25.76 MB
noramal size : 640*480, current size:640*480
-------------------------------------> NO VIDEO, ONLY AUDIO.

can any one please suggest me, how to solve this issue.

Thanks,
Manoj.



--~--~---------~--~----~------------~-------~--~----~



Problem with video playing

by Dave Sparks » Fri, 06 Mar 2009 18:17:02 GMT


 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.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Problem with video playing

by manoj » Fri, 06 Mar 2009 18:35:15 GMT


 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.




--~--~---------~--~----~------------~-------~--~----~



Problem with video playing

by dar » Fri, 06 Mar 2009 21:54:44 GMT


 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 it would be
nice to be able to give the higher quality streams to the better
devices.







--~--~---------~--~----~------------~-------~--~----~



Problem with video playing

by manoj » Fri, 06 Mar 2009 22:33:08 GMT


 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.






--~--~---------~--~----~------------~-------~--~----~



Problem with video playing

by manoj » Fri, 06 Mar 2009 22:57:00 GMT


 Hi,


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.







--~--~---------~--~----~------------~-------~--~----~



Problem with video playing

by manoj » Fri, 06 Mar 2009 23:22:15 GMT


 ere 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: surface=0x20b488 (id=2)
D/MediaPlayerDemo( 235): surfaceChanged called
I/ActivityManager( 52): Displayed activity
bluemediaLab.vodcast.tests/.MediaPlayerDemo_Video: 224 ms
E/MemoryHeapBase( 465): mmap(fd=19, size=233472) failed (Invalid
argument)
E/VideoMIO( 465): Error creating frame buffer heap
D/MediaPlayerDemo( 235): onPrepared called
W/AudioFlinger( 465): write blocked for 96 msecs
W/PlayerDriver( 465): Video cannot catch up. Are you playing a high
quality content?
E/MediaPlayer( 235): Error (44,0)
D/MediaPlayerDemo( 235): onCompletion called
D/MediaPlayerDemo( 235): surfaceDestroyed called
I/DEBUG ( 464): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG ( 464): Build fingerprint: 'android-devphone1/
dream_devphone/dream/trout:1.0/UNLOCKED/116222:userdebug/test-keys'
I/DEBUG ( 464): pid: 465, tid: 487 >>> /system/bin/mediaserver <<<
I/DEBUG ( 464): signal 11 (SIGSEGV), fault addr 803180c8
I/DEBUG ( 464): r0 803180a8 r1 0004a80c r2 40507e64 r3 0004a80c
I/DEBUG ( 464): r4 0004a80c r5 0004a808 r6 800030c8 r7 00001540
I/DEBUG ( 464): r8 40407bbc r9 afe35d78 10 a9d2760d fp 00000001
I/DEBUG ( 464): ip 00000010 sp 40507e60 lr 80002335 pc
80001ef2 cpsr 00000030
I/DEBUG ( 464): #00 pc 80001ef2 /system/lib/
libOmxCore.so
I/DEBUG ( 464): #01 pc 80002332 /system/lib/
libOmxCore.so
I/DEBUG ( 464): #02 pc 8000249e /system/lib/
libOmxCore.so
I/DEBUG ( 464): #03 pc a70df844 /system/lib/
libpvplayer.so
I/DEBUG ( 464): #04 pc a7172f74 /system/lib/
libpvplayer.so
I/DEBUG ( 464): #05 pc a7172f92 /system/lib/
libpvplayer.so
I/DEBUG ( 464): #06 pc a9d27674 /system/lib/libutils.so
I/DEBUG ( 464): #07 pc afe0ed08 /system/lib/libc.so
I/DEBUG ( 464): #08 pc afe0e87c /system/lib/libc.so
I/DEBUG ( 464): stack:
I/DEBUG ( 464): 40507e20 afe35ee8
I/DEBUG ( 464): 40507e24 afe1226d /system/lib/libc.so
I/DEBUG ( 464): 40507e28 0004b754 [heap]
I/DEBUG ( 464): 40507e2c 40507e6c
I/DEBUG ( 464): 40507e30 afe2fe38 /system/lib/libc.so
I/DEBUG ( 464): 40507e34 40507e6c
I/DEBUG ( 464): 40507e38 0004b500 [heap]
I/DEBUG ( 464): 40507e3c afe0dd48 /system/lib/libc.so
I/DEBUG ( 464): 40507e40 00002bb4
I/DEBUG ( 464): 40507e44 afe2fe38 /system/lib/libc.so
I/DEBUG ( 464): 40507e48 afe35d78
I/DEBUG ( 464): 40507e4c a71af168
I/DEBUG ( 464): 40507e50 00001540
I/DEBUG ( 464): 40507e54 afe12921 /system/lib/libc.so
I/DEBUG ( 464): 40507e58 df002777
I/DEBUG ( 464): 40507e5c e3a070ad
I/DEBUG ( 464): #00 40507e60 00000019
I/DEBUG ( 464): 40507e64 afe2fe38 /system/lib/libc.so
I/DEBUG ( 464): 40507e68 0004a80c [heap]
I/DEBUG ( 464): 40507e6c 800030c8
I/DEBUG ( 464): 40507e70 a71af168
I/DEBUG ( 464): 40507e74 80002335 /system/lib/libOmxCore.so
I/DEBUG ( 464): #01 40507e78 0004b6e8 [heap]
I/DEBUG ( 464): 40507e7c 80003148
I/DEBUG



Problem with video playing

by dar » Sat, 07 Mar 2009 00:04:06 GMT


 his 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:22am, manoj <manojkumar.m...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Problem with video playing

by manoj » Sat, 07 Mar 2009 02:04:01 GMT


 i dar,

can you please tell me how to transcode?

waiting for your reply...

Thanks,
Manoj.


On Mar 6, 9:03pm, dar <dher...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Problem with video playing

by dar » Sat, 07 Mar 2009 03:16:20 GMT


 here 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:03pm, manoj <manojkumar.m...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Problem with video playing

by Eric » Sat, 07 Mar 2009 10:54:20 GMT


 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 codec. You will find your problem there. You
certainly exceed the level that can be handled by the codec, and
likely you exceed the encoding complexity as well.

Mobile devices generally only handle baseline profiles at low levels
with data rates limited by the EDGE class supported by the device
radio and the carrier network. Exceed any one of these, and it is not
going to work.

Formats and data rates that you can play on your computer will NOT
work on a mobile device.




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Enabling FUSE in Android kernel

Hi,

I am wondering if FUSE is enabled in the Anrdoid kernel. My search
revealed this thread 

2. Cross Compiling

I have some questions as I cross compile items for Android use.

 

Specifically, I am cross compiling a bootloader.

 

The toolchain has me a bit confused. 

 

What is the difference between the Codesourcery ARM/GNU and
ARM/GNU-Linux?

 

And for that matter, what exactly is a gnueabi?

 

Thanks.

 

-- 

3. Porting android to samsung corby pro (B5310)

4. ACTION_POWER_CONNECTED not working

5. Buying your own App, Testing Licensing

6. Application related data and cache options

7. root operations for Android porting