[android-developers] Making Video files Android ready for playback over HTTP

2010-07-09 Thread Samuh
I am working on an Android application which is supposed to play
videos over HTTP on Android devices. Before we setup a server to host
the video files just wanted a few things clarified:

As per the developer documentation, Android supports .mp4 and .3gp
container formats for video. The audio-video codec used for our media
files is H.263(video) and AAC LC (Audio).

I did a little experiment and passed URL of one of the video files to
the MediaPlayer class and got the following error:
Command PLAYER_INIT completed with an error or info
PVMFErrContentInvalidForProgressivePlayback

From the docs, I came to know that for progressive playback, the
video's index (e.g moov atom) should be at the start of the file.

How do we make our videos Android-ready?
What are the different considerations that we need to make?

Please help.

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Making Video files Android ready for playback over HTTP

2010-07-09 Thread Mark Murphy
MP4Box -hint does the trick:

http://www.videohelp.com/tools/mp4box

More info here:

https://help.ubuntu.com/community/AndroidVideoEncoding

On Fri, Jul 9, 2010 at 6:17 AM, Samuh samuh.va...@gmail.com wrote:
 I am working on an Android application which is supposed to play
 videos over HTTP on Android devices. Before we setup a server to host
 the video files just wanted a few things clarified:

 As per the developer documentation, Android supports .mp4 and .3gp
 container formats for video. The audio-video codec used for our media
 files is H.263(video) and AAC LC (Audio).

 I did a little experiment and passed URL of one of the video files to
 the MediaPlayer class and got the following error:
 Command PLAYER_INIT completed with an error or info
 PVMFErrContentInvalidForProgressivePlayback

 From the docs, I came to know that for progressive playback, the
 video's index (e.g moov atom) should be at the start of the file.

 How do we make our videos Android-ready?
 What are the different considerations that we need to make?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en