Encoding for G1 using ffmpeg

by Rob Campbell » Fri, 31 Jul 2009 08:28:02 GMT


Sponsored Links
 I have tried:
ffmpeg -i Eminem\ -\ We\ Made\ You\ \(Official\ Full\ Music\ Video\).mp4 -s
428x320 -vcodec libx264 -acodec libfaac -ac 1 -ar 16000 -r 13 -ab 32000
-aspect 3:2 -padright 26 -padleft 26 -y Em.3gp
ffmpeg -i Eminem\ -\ We\ Made\ You\ \(Official\ Full\ Music\ Video\).mp4 -s
428x320 -vcodec mpeg4 -acodec libfaac -ac 1 -ar 16000 -r 13 -ab 32000
-aspect 3:2 -padright 26 -padleft 26 -y Em.mp4
ffmpeg -i Eminem\ -\ We\ Made\ You\ \(Official\ Full\ Music\ Video\).mp4 -s
480x256 -vcodec mpeg4 -acodec libfaac -ac 1 -ar 16000 -r 13 -ab 32000
-aspect 3:2 -padtop 32 -padbottom 32 -y Em.mp4

But I just can't seem to find anything that works.  I put the files on a
website and then access it via the G1 and it doesn't play:
Cannot play video
Sorry, this video cannot be played

Can anyone assist?

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



Encoding for G1 using ffmpeg

by Mark Murphy » Fri, 31 Jul 2009 09:02:19 GMT


 


https://help.ubuntu.com/community/AndroidVideoEncoding
 http://android-unleashed.com/tag/convert-video-to-android-g1 
 http://www.harelmalka.com/?p=120 
 http://www.scribd.com/doc/16917356/Mastering-the-Android-Media-Framework 

For streaming, you need the moov atom before the mdat atom:



Sponsored Links


Encoding for G1 using ffmpeg

by Rob Campbell » Fri, 31 Jul 2009 10:16:40 GMT


 I will look int what you said.  I just realized that its streaming that is
causing the problem because I downloaded the file instead of playing it then
played it and it worked so it seems that the file is configured correctly.






\(Official\ Full\ Music\ ...
https://help.ubuntu.com/community/AndroidVideoEncoding
 http://android-unleashed.com/tag/convert-video-to-android-g1 
 http://www.harelmalka.com/?p=120 
 http://www.scribd.com/doc/16917356/Mastering-the-Android-Media-Framework 

For streaming, you need the moov atom before the mdat atom:




Encoding for G1 using ffmpeg

by Justin Grammens » Fri, 07 Aug 2009 20:10:28 GMT


 WOW. Thanks Mark for the links and explanation. Was wondering why the
same movie that I have on the SD card plays fine, but when I put it on
a website and accessed over http:// I get "This video can not be
played".
I'm sorry Android Devs, but this is very disappointing. Playing a
video via http:// should be brain dead simple, and alas with Android,
as compared to other platforms, it is not. Sounds like any video I (or
my clients) create, needs to have -hint associated with it and must be
run through MP4Box or some other program to it can be played when
served over http?
Bummer, as other platforms (iPhone) just play these video right out of
the box. What gives on Android? that the iPhone SDK is able to do, or
is there some other work around that I'm missing?






> 



Other Threads

1. Cannot get MSISDN (phone number) but can get IMSI on HTC G3

I want to use phone number as user ID,so i want to access the phone
number.
in my code,  i can get IMSI (International Mobile Subscriber Identity)
by using getSubscriberId().
but can not get  MSISDN by using  getLine1Number(),it returns null.

 my test phone is HTC G3,
anybody can solve the problem?

thanks!


  TelephonyManager tm = (TelephonyManager) getSystemService
(Context.TELEPHONY_SERVICE);

        String phoneNumber = tm.getLine1Number();
        if(phoneNumber == null || phoneNumber.trim().equals("")){
                phoneNumber = "cann't get the phone number";
                }


// permission has been added in Manifest
 <uses-permission android:name="android.permission.READ_PHONE_STATE" />

-- 

2. Including Third party Jars

Hi

I am making changes in the android codebase and wanted to include
third party jar "smack.jar" in the existing contact application.

I am able to run it successfully when i make another application using
the standard android sdk 1.6 and include the jar file in the lib
folder.

But when i add the same lib in the existing contact application, i am
facing the compilation issues when i do the make of the android
codebase.

Please let me know how i can include the third party jars in the
existing Contact application.

Thanks
anurag

-- 

3. Android 1.5 upgrade

4. Communication between AppWidgetProvider and Configuration Activity

5. Querying Media Artists, coming up 1 short

6. Task List

7. Installing APK from Internet?