Video file size bigger than 1MB?

175 views
Skip to first unread message

saadaan

unread,
Apr 13, 2019, 2:08:07 PM4/13/19
to MIT App Inventor Forum
Hi,

I need to overcome this limit of video size being lower than 1MB. Is there any solution to it? I need to package the video inside the APK to keep it simple for the users, so I am trying to see if there is a better method than Taifun's 'external video download on first run'.

Please help!

Thanks,
Saad  

Taifun

unread,
Apr 13, 2019, 2:26:50 PM4/13/19
to MIT App Inventor Forum
what about following Hossein's method, which is also mentioned there?

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

TimAI2

unread,
Apr 13, 2019, 2:35:42 PM4/13/19
to MIT App Inventor Forum
re-encode the video using ffmpeg to get it down below 1mb ? (of course output standards depends on the original file size....)


scroll down to "Two Pass"

saadaan

unread,
Apr 13, 2019, 2:36:06 PM4/13/19
to MIT App Inventor Forum
It seems workable. I will try.

By the way, is using the AWS hosted server the workable solution too?

Taifun

unread,
Apr 13, 2019, 7:45:19 PM4/13/19
to MIT App Inventor Forum
all solutions mentioned there https://puravidaapps.com/filebyfile.php are workable
Taifun

BodyMindPower

unread,
Apr 14, 2019, 9:11:17 AM4/14/19
to MIT App Inventor Forum
Take a short test video (video.mp4 < 1MB) and create the AKP. Decomplete the APK, replace the test video file by the bigger one (1MB > video file size < 100 MB / PlayStore limit) (tools: AppToMarket, ...) and build the APK again.

Anke

saadaan

unread,
Apr 14, 2019, 2:50:21 PM4/14/19
to MIT App Inventor Forum
Thanks. This seems most practical and least hassle. However, for some reason, ApptoMarket is not decompiling the apk (I have v4.0 and 4.1 - Is this latest?). Is there any other tool i can try?

BodyMindPower

unread,
Apr 14, 2019, 3:00:11 PM4/14/19
to MIT App Inventor Forum

saadaan

unread,
Apr 15, 2019, 3:22:38 PM4/15/19
to MIT App Inventor Forum
Hey all,

So I have been successful in doing this through Anke's advice. I downloaded the APK from AI2, decompiled it through AppToMarket v4.1 tool, replaced the smaller video file with the big sized one, recompile through the same tool, sign and zip-align it, and got the new APK. The final APK gets installed on Android and works perfectly fine with the new heavy video. The final APK file size is around 18MB. Also note that I am directly installing on the phone (not publishing via Playstore).

Cheers,
Saad

Taifun

unread,
Apr 15, 2019, 4:00:31 PM4/15/19
to MIT App Inventor Forum
So I have been successful in doing this through Anke's advice.
which actually is the same as Hossein's advice from the list https://puravidaapps.com/filebyfile.php
Taifun

BodyMindPower

unread,
Apr 16, 2019, 2:13:09 AM4/16/19
to MIT App Inventor Forum
Hi Taifun, yes, but Hossein's advice is outdated and some issues have to be solved to get it working, including the update of apktool.jar

Anke

saadaan

unread,
Apr 16, 2019, 1:58:11 PM4/16/19
to MIT App Inventor Forum
Yes, of course. +1 to the whole page full of so many methods to make it work!!! :-) 
Reply all
Reply to author
Forward
0 new messages