Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th April 2021, 00:20   #1  |  Link
utack
Registered User
 
Join Date: Apr 2018
Posts: 63
Useable Android Video encoder

Hi folks,

I am looking for a reasonable Android Video Encoder
It should be offering access to all hardware encoders present in the device, and options to set bitrate
The ones I found on Google Play so far are all crap, using a software encoder or offering zero options
I will gladly pay for such software, if it is a paid one.

Thank you for your suggestions!
utack
utack is offline   Reply With Quote
Old 24th April 2021, 14:00   #2  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 9,619
I've never tried it, but you might give this a try [FFmpeg Media Encoder]:- https://play.google.com/store/apps/d...hl=en_GB&gl=US

Maybe google "android x264 encoder".

EDIT: This specifically mentions hardware encode,
LiTr: A lightweight video/audio transcoder for Android
Quote:
Lightweight hardware accelerated video/audio transcoder for Android, or LiTr for short
https://engineering.linkedin.com/blo...er-for-android
It seems to be a programmer API, but maybe if you use the name in searches, you may find something that uses it.

EDIT:
Its on GitHub, only as source code.
Google ""litr" android".
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 24th April 2021 at 14:10.
StainlessS is offline   Reply With Quote
Old 24th April 2021, 19:50   #3  |  Link
utack
Registered User
 
Join Date: Apr 2018
Posts: 63
Quote:
Originally Posted by StainlessS View Post
Thank you, that looks interesting
utack is offline   Reply With Quote
Old 25th April 2021, 21:11   #4  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Metropolitan City of Milan, Italy
Posts: 1,740
Keep in mind that the vast majority of devices running Android is ARM and not x86, so don't expect good performances from those poor little CPUs, especially in x264/x265
FranceBB is offline   Reply With Quote
Old 25th April 2021, 21:47   #5  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 9,619
FaBB, Android x86 also runs on PC [I tried it for a little while].
Android x86:- https://www.android-x86.org/
LineageOS:- https://www.youtube.com/watch?v=yp_5pQZdQIU
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 26th April 2021, 01:17   #6  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Metropolitan City of Milan, Italy
Posts: 1,740
I'll give it a shot!
FranceBB is offline   Reply With Quote
Old 10th May 2021, 21:27   #7  |  Link
utack
Registered User
 
Join Date: Apr 2018
Posts: 63
Quote:
Originally Posted by FranceBB View Post
Keep in mind that the vast majority of devices running Android is ARM and not x86, so don't expect good performances from those poor little CPUs, especially in x264/x265
Don't underestimate them, a x264 medium 4K->720p encode can run at about 15fps and that is certainly worth it to send out a few good quality videos in Whatsapp every now and then
On an Iphone it can probably do 1080p30 in realtime
utack is offline   Reply With Quote
Old 11th May 2021, 01:06   #8  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 9,619
Here an old 2018 phone,
Sony Xperia XZ2 Premium:- https://www.gsmarena.com/sony_xperia...emium-9166.php

Code:
Sony Xperia XZ2 Premium

Platform
OS              Android 8.0 (Oreo), upgradable to Android 10
Chipset         Qualcomm SDM845 Snapdragon 845 (10 nm)
CPU             Octa-core (4x2.7 GHz Kryo 385 Gold & 4x1.7 GHz Kryo 385 Silver)
GPU             Adreno 630

Memory
Card slot       microSDXC (uses shared SIM slot) - dual SIM model only
Internal        64GB 6GB RAM
                UFS 2.1

Display
Type            IPS LCD, HDR10
Size            5.8 inches, 91.5 cm2 (~72.4% screen-to-body ratio)
Resolution      3840 x 2160 pixels, 16:9 ratio (~765 ppi density)
Protection      Corning Gorilla Glass 5
                Triluminos display
                X-Reality Engine

Main Camera
Dual            19 MP, f/1.8, 25mm (wide), 1/2.3", 1.22Ám, predictive PDAF, Laser AF
                12 MP B/W, f/1.6, 1/2.3", 1.55Ám, predictive PDAF
Features        LED flash, panorama, HDR
Video           4K@30fps, 1080p@30/60fps (5-axis gyro-EIS), 1080p@960fps, HDR
I've been thinking about getting one of those for a while now [I've got an old Xperia Z2],
I like its screen size and resolution, and as the Z2 X-Reality Engine is pretty damn impressive, I guessin the
XZ2 Premium is gonna be great.
If the phone can shoot 4K @ 30FPS, & 1080p @ 60 FPS 5-axis stabilized, & 1080p @ 960fps,
its gorra be a bit tasty at simple encode. [3 year old phone, current ones gotta be even more flavoursome].

EDIT: Oh, and its 16:9 aspect ratio display too, big plus point for me.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 11th May 2021 at 01:09.
StainlessS is offline   Reply With Quote
Old 11th May 2021, 05:23   #9  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Metropolitan City of Milan, Italy
Posts: 1,740
I have been using a Google Pixel 5 since November 2020 and it actually can encode in UHD 60p H.265 100 Mbit/s in LogV2 or just the plain old BT709 SDR or even BT601 SDR (yes BT 601 in 4K, I don't even know why they're supporting this). My worse surprise of this phone was the very bad performance of the sensor in terms of dynamic range and also the lack of BT2020 support and the lack of 10bit support (8bit only). Of course it has an H.264 legacy mode as well, but I rarely use it. For pictures it's fine, mostly 'cause Google filters out the crap out of your pictures even during the night with lots of noise and I gotta say that most of the times it does a better job than me and I like it 'cause I don't have to bother opening Avisynth or Adobe Lightroom and Photoshop, but some other times it's overfiltered, but it also allows me to save the raw log lossless dng output from the camera so I'm ok with it.

Anyway about ARM encoding I thought it was done by some sort of ASIC a bit like when we encode on Intel CPU/GPU via Intel VAAPI/Quick Sync, which is why I thought they were not going to be that good on plain x264 CPU encoding.
That and the fact that they're all passive devices and I don't wanna make them extremely hot...

Last edited by FranceBB; 11th May 2021 at 05:25.
FranceBB is offline   Reply With Quote
Old 11th May 2021, 15:39   #10  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 9,619
h265 [EDIT: soft encode]
Quote:
Conclusion

If you want to use your spare Android or iPhone for H.265 video encoding, forget about it! It is painstakingly slow.
Apparently, forget about h265 encode on ARM:-
https://quanticdev.com/articles/h265...g-on-arm-cpus/

Clip on Youtube [ How Fast is H.265/HEVC Software Encoding on ARM CPUs (iPhone/Android) With FFmpeg?] :- https://www.youtube.com/watch?v=UZCKD-zcrfU
See the YT comments,
D9 thread [EDIT: post] mentioned in comments:- https://forum.doom9.org/showthread.p...80#post1817880

Google "android x265 hardware encoder"
https://www.google.co.uk/search?q=an...4dUDCAg&uact=5

EDIT: There is apparently almost no development going on for ARM processor, thats why so slow.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 24th May 2021 at 15:46.
StainlessS is offline   Reply With Quote
Old 20th May 2021, 08:55   #11  |  Link
Bello
Registered User
 
Join Date: Oct 2020
Posts: 3
Quote:
Originally Posted by utack View Post
Don't underestimate them, a x264 medium 4K->720p encode can run at about 15fps and that is certainly worth it to send out a few good quality videos in GBWhatsapp every now and then
On an Iphone it can probably do 1080p30 in realtime
I would say its probably good enough for small tasks but mobile apps will never be able to beat a full desktop machine and the use of a keyboard and mouse with a large monitor IMHO
Bello is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:43.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.