[Q] develop camera app with slow motion - Galaxy S 5 Q&A, Help & Troubleshooting

Dear all
I am going to develop an app that include only slow motion recording, and only for S5 (school project I need to demo only). The problem is, I tried to use open camera and it fails to have 120 fps. After searching, some said that standard camera api does not support high frame rate record. Then I tried to decompile the bulid-in samsung camera apk to found the part that responsible for hfr recording but I cant found it.
1. Does anyone have experience that is related can share to me?
2. Also I am wondering if my decompiled apk is not correct. Could anyone help me to decompile a succeed one, even some apk modded by others?
3. And if anyone can directly give me related source code? I need only the part of recording 120fps video.
Thanks for reading my wordy and bad english.

Take a look at: http://forum.xda-developers.com/galaxy-s5/development/mod-hx-camera-mod1-0quality-t2816831
Hyper-X managed to get 720p working with 120 FPS.

Dabylpmis said:
Take a look at: http://forum.xda-developers.com/galaxy-s5/development/mod-hx-camera-mod1-0quality-t2816831
Hyper-X managed to get 720p working with 120 FPS.
Click to expand...
Click to collapse
Thank Dabylpmis, the app is good but I would like to have some source code..

Related

[Q] What would be required to get slow motion camera on AOSP?

What exactly would need to be done to get the S4 120FPS video working on something like CM10? Is this just a matter of writing software to take 120FPS or is there special hardware interaction? Is it just waiting to be done or does it need to be "figured out" or reverse engineered?

Solution 4 unlimited video record on android record over 4gb and no time restricted

Hi All,
i found solution for unlimited recording on android device, it has pros and cons so hopefully some programmer will come and modify the buildin camera apk.
here are solutions they are working perfects but the problem is the quality is no where close to the buildin cam apk.
1. lgCamera
2. Snap Camera HDR
3. moto x camera apk its free and in my opinion its quality better than the other 2.
so the problem of limited recording is not due to format fat32, because htc on buildin cam apk record 30 minutes and stops and its size is 4gb, but i have tried lgcamera was recording over an hours and its size was 5.7gb.
i do not keep it long, i hope some programmer modify htc one cam apk to record unlimit or auto splitted to 30 minutes duration, also modify its zoom default to the value of 50% because htc one cam is way zoomed out.
so if any genius person modify the camera apk then it will be best solution, it just need to override the default camera apk setting when some one modifying its camera apk.
some time when we have party i do not like to go and modify zoom setting and start record again every half an hour.
Thanks for any programmer who modify this and good luck with the rest for temporary solution.
Hi,
snap camera records 30fps with 20mbit in low light, but the result is darker then htc stock camera.
regards
starbase64
I could be off here, but since you said recording stops at 30 minutes, I think I have a solution:
In /system/etc/media_profiles.xml, there is a "duration=" setting for each encoder profile. This can be set to either 30 or 60, and currently all profiles except qvga are set to 30. You may be able to set this to 60 and be able to record up to 60 minutes. Report back.
zindu said:
i do not keep it long, i hope some programmer modify htc one cam apk to record unlimit or auto splitted to 30 minutes duration, also modify its zoom default to the value of 50% because htc one cam is way zoomed out.
Click to expand...
Click to collapse
You do realise that routinely changing the zoom is a terrible idea on the One?
It's a digital zoom, not an optical one, so all you are doing by zooming in is losing pixels - this is fine if you are shooting something and wish to zoom in for effect, but as a general rule if you want to get the best quality out of the camera, you should leave zoom well alone. This is especially true of the One as it doesn't have that many pixels to play with in the first place.
See here for more info - http://www.tfpsoft.com/fun/digitalcameraguide/digitalversusopticalzoom.html
Regards,
Dave
unlimited video recording android
In /system/etc/media_profiles.xml, there is a "duration=" setting for each encoder profile. This can be set to either 30 or 60, and currently all profiles except qvga are set to 30. You may be able to set this to 60 and be able to record up to 60 minutes. Report back.[/QUOTE]
hello homeslice976
Thank you very much for the information you have provided. i have uploaded 2 screen shots of the xml file you have stated and also uploaded 2 xml file which are original xml file on my htc device, but i think the device must be rooted to replace those xml files? am i wrong?
if i need to root my device then i will try to do it later today as my connection is very slow right now.
Regards,
zindu
unlimited video recording htc one
It's a digital zoom, not an optical one, so all you are doing by zooming in is losing pixels - this is fine if you are shooting something and wish to zoom in for effect, but as a general rule if you want to get the best quality out of the camera, you should leave zoom well alone. This is especially true of the One as it doesn't have that many pixels to play with in the first place.
Regards,
Dave[/QUOTE]
Thank you Dave,
i will test to video one with zoomin at let say 40% and other will let zoom alone but i will crop the video to equivalent of 40% zoomin video, i will compare the 2 side by side and will report back the result.
Regards,
Zindu
zindu said:
In /system/etc/media_profiles.xml, there is a "duration=" setting for each encoder profile. This can be set to either 30 or 60, and currently all profiles except qvga are set to 30. You may be able to set this to 60 and be able to record up to 60 minutes. Report back.
Click to expand...
Click to collapse
hello homeslice976
Thank you very much for the information you have provided. i have uploaded 2 screen shots of the xml file you have stated and also uploaded 2 xml file which are original xml file on my htc device, but i think the device must be rooted to replace those xml files? am i wrong?
if i need to root my device then i will try to do it later today as my connection is very slow right now.
Regards,
zindu[/QUOTE]
yes you'll need to be rooted. you don't need to do anything with media_codecs.xml. Just media_profiles.xml.
unlimited video recording android
yes you'll need to be rooted. you don't need to do anything with media_codecs.xml. Just media_profiles.xml.[/QUOTE]
Thank you, i will try to rooted later on today and report back if i succeed.
regards,
zindu
zoomin htc one
hello Dave,
i have tested the video, i captured 2 video phone was at stable position, one without touching zoom and the other shoot was zoomed about 60%
then i cropped the one with 0 zoom to the same frame as the one with 60% zoom.
the result is as follows:
after cropping the video file from 1920 x 1080 became 775 x 425 well if i keep this size the file remain same quality but when i cropped back to
1920 x 1080 the quality is blury and no where near the original or the video was shooted with 60% zoomin.
so i believe the zoomin in htc one does not effect its quality as long as you are not zoomed extreme.
when you crop video and resized you will lose quality the same as zoomin, but all camcorders allow certain zoom without affecting quality, so i believe htc one zoomin is the same, but some video camera have advanced zoomin to go beyond limited for instance 72x advanced zoomin and the normal zoomin is 20x, so if you go beyond 20 you still zoomin further but you will lose quality and shaky footage.so the safe is to stay with 20x range.
all edited with after effects and even i did not export the out put, but after editing them compared them side by side, it is like day and night the quality differences between the 2 videos.
thank you though for information, i will try first to root my device and see if i can go beyond the limited recording.
homeslice976 said:
I could be off here, but since you said recording stops at 30 minutes, I think I have a solution:
In /system/etc/media_profiles.xml, there is a "duration=" setting for each encoder profile. This can be set to either 30 or 60, and currently all profiles except qvga are set to 30. You may be able to set this to 60 and be able to record up to 60 minutes. Report back.
Click to expand...
Click to collapse
hello again
i have changed those number to 60
i started from
<!ATTLIST EncoderProfile duration (60|60) #REQUIRED>
and each
<EncoderProfile quality="cif" fileFormat="mp4" duration="60">
so as you see all are in 60 minutes but no luck sofar i tried twice
1st record 25:39
2nd attempt records 26:04
both size are 3.79 gb in size
now i started recording again to see what is the the outcome if it is the same then i have to try to changed back to 30 at least its 30minutes, so i think it is the size limit thing
update: it is size limit issue, i checked again it says video size limit is reached.
i think it is be useful if some one try to write a code to state when ever the video reach limited time then start again automatically.
but thanks for the advice, i will let you know if i come with better solution..
thank you.
regards,
zindu
update: it is size limit issue, i checked again it says video size limit is reached.
zindu said:
update: it is size limit issue, i checked again it says video size limit is reached.
Click to expand...
Click to collapse
Sorry - that was just a theory anyway. I'll keep looking around for something else that might be limiting the file size.
homeslice976 said:
Sorry - that was just a theory anyway. I'll keep looking around for something else that might be limiting the file size.
Click to expand...
Click to collapse
Hi guys, this seems to be the only real discussion on this issue going on at all.
Has anyone been able to find a way around this limitation?
the problem is there are many know how to solved but they do not shared with us.
only who does not know and they spread a word over the net and same crap like, it is due to format type, let me tell you i have solved mine on htc one no problem what so ever until i stopped manually.
i am not a programmer but currently when i have time i try to learn java then i will after that develop simple app and progressing from there and will help the community but that take up to 1 to 2 years.
any way how i solved mine? i do not know my self but i did 2 things will shared with all of you.
1. i rooted my htc one device, there is plenty guide on this forum.
2. i decompile my camera apk and i change a picture and i can not remember if i mess little with codes or not but i doubt i did, so i deleted the original camera apk and replaced with my modification.
i will be glad to share my camera apk with you if you think it might be due to this modifications, i tell you what? i never update the system software now, because i am afraid i will lose the unlimited recording, so it works for me but i do not know how, but in future when i understand java programming i will help every one in this community.
zindu said:
the problem is there are many know how to solved but they do not shared with us.
only who does not know and they spread a word over the net and same crap like, it is due to format type, let me tell you i have solved mine on htc one no problem what so ever until i stopped manually.
i am not a programmer but currently when i have time i try to learn java then i will after that develop simple app and progressing from there and will help the community but that take up to 1 to 2 years.
any way how i solved mine? i do not know my self but i did 2 things will shared with all of you.
1. i rooted my htc one device, there is plenty guide on this forum.
2. i decompile my camera apk and i change a picture and i can not remember if i mess little with codes or not but i doubt i did, so i deleted the original camera apk and replaced with my modification.
i will be glad to share my camera apk with you if you think it might be due to this modifications, i tell you what? i never update the system software now, because i am afraid i will lose the unlimited recording, so it works for me but i do not know how, but in future when i understand java programming i will help every one in this community.
Click to expand...
Click to collapse
Zindu, thank you so much for sharing.
I emailed Google about this here is the response I got:
"Thank you for contacting Google. I appreciate your patience with me as I look into this issue. It seems as though the limit placed on the video data file of 2gb is written into the android operating system. This is in effect on all types of android devices.
I have researched a few video control apps, they follow the same rule and stop at 1.9-2gb. At this time I do not believe there is a work around for this issue. I do not have software update information available either. Some of the research I have done points to a possible legislative law that limits the video recording time of mobile devices as it takes away from video recorders."
pal first thing you do undock the cam apk from the bar dock on your phone, see if it is working, what i mean by the dock is the bar on your phone on the bottom which have space for 4 or 5 applications, so undock cam apk from this dock and used on the main windows view.
if that does not work root ur phone and undock cam apk from dock bar.
if both does not work then if you have htc one i will upload my cam apk so you can install it on urs.
mine was limited to 4gb now its unlimited in size and durations, a programmer can develop application to over ride the camera system settings, so if i learn java in future my first apk will be try to over ride system setting.
zindu said:
pal first thing you do undock the cam apk from the bar dock on your phone, see if it is working, what i mean by the dock is the bar on your phone on the bottom which have space for 4 or 5 applications, so undock cam apk from this dock and used on the main windows view.
if that does not work root ur phone and undock cam apk from dock bar.
if both does not work then if you have htc one i will upload my cam apk so you can install it on urs.
mine was limited to 4gb now its unlimited in size and durations, a programmer can develop application to over ride the camera system settings, so if i learn java in future my first apk will be try to over ride system setting.
Click to expand...
Click to collapse
I have a Nexus 5. My camera app is not docked. What should I do next?
if its not docked then rooted anyway see if it works?
what i did i undocked, rooted, modified a pick and some codes in xml file, and it works for me so i do not know which step caused the fix, but you need to root your device if you want to replace system application on your phone.
try to root your device first and try to modify xml file see if it works, if it was htc one i could help because i can upload xml and apk file.
that is all i know for now hope someone who have better knowledges to help you out but i hope i learn java within a year or too then i be able to fix this issue.
m__singh said:
Zindu, thank you so much for sharing.
I emailed Google about this here is the response I got:
"Thank you for contacting Google. I appreciate your patience with me as I look into this issue. It seems as though the limit placed on the video data file of 2gb is written into the android operating system. This is in effect on all types of android devices.
I have researched a few video control apps, they follow the same rule and stop at 1.9-2gb. At this time I do not believe there is a work around for this issue. I do not have software update information available either. Some of the research I have done points to a possible legislative law that limits the video recording time of mobile devices as it takes away from video recorders."
Click to expand...
Click to collapse
So far this has been the most insightful information. Still, no idea how to overcome something this stupid.
joint.striker said:
So far this has been the most insightful information. Still, no idea how to overcome something this stupid.
Click to expand...
Click to collapse
Ikr, it is pretty ridiculous. Zindu is right though, it's simple enough but the people who can figure it out don't care. Most people just don't seem to need their phone for our purpose.
My workaround has been SVR Pro:
-Upsides -It will record in fragments until your storage is full.
-You can use your device while recording
-You can record with the screen turned off !! which is epic for battery life!
-Downside -you loose like a second of video between the fragments
Link: play.google.com/store/apps/details?id=com.zeronoiseapps.secretvideorecorderpro

[GUIDE] 4K Recording on CM13 and Custom Roms!!!

As we know, for all Cyanogenmod Users was the Camera app a little bit flawed, it did not let you record in 4K. I found an easy workaround
for that, which should work with any ROM, not only CM.
Just go to the Google Play Store and Download Open Camera, with the link here: https://play.google.com/store/apps/d...encamera&hl=en .
The open it and click the Settings Icon, go to Video Settings and set the Resolution to Highest; 4K Ultra HD. And that is basically it!
The app overall is a great replacement, it has way more controls over Focus etc. There is a bug though, when switching to video mode, the brightness will go on the lowest level. Clicking the settings and going back will fix that. I hope I could help you, Feedback is welcome!

1080p and 60 FPS on the OnePlus 2?

Hello Guys,
is there any way to get 60 FPS on the OnePlus 2 with 1080p?
I searched a bit in xda, but i didnt find anything helpful.
Is there a rom or a mod that can enable this feature?
Cause its supported by the hardware..
Thank you for help!
There is a thread that points to it. Look harder
Yeah i found this: https://forum.xda-developers.com/oneplus-2/general/enable-60fps-video-recording-t3424628
But i dont understand how it works, i dont get the instruction.
I was hoping there would be another way to do it, like a custom rom that supports it from the beginning.
It's simply.
WORKING ON MM and N
Go to the system / vendor / lib folder and look for libmmcamera5648.so and libmmcamera13860.so and rename them .bak. Then copy these files to the same folder and give them the permissions rwrr (0644) with root explorer, restart et voila.
I wrote about 60 fps as for front and rear camera
dom_tucc said:
I wrote about 60 fps as for front and rear camera
Click to expand...
Click to collapse
Thank you for the post! I researched a bit too and tried out similar Versions in combination with FreeDCam. There are several issues, so i would like to ask you, with which Rom do you use this and with which camera app?
MaaaanBeeeen said:
Thank you for the post! I researched a bit too and tried out similar Versions in combination with FreeDCam. There are several issues, so i would like to ask you, with which Rom do you use this and with which camera app?
Click to expand...
Click to collapse
Front camera stock oos camera. For rear camera you can use or freedcam or bacon camera . With bacon camera you have to choose 60 fps or highspeed or slowmotion i dont remember well

best camera app? [nougat]

Which camera apps are people using? Curious to also know what the latest version of Google Camera is that you found can work (fully) with our phone?
I managed to get 3.2 working (only 720p recording though).
Any recommendations are highly appreciated.
Hi. I'm using Google Camera 2.5.052
https://www.apkmirror.com/apk/google-inc/camera/camera-2-5-052-release/
latest fully working camera apk for nexus 4 Google Camera 2.7.008 (this version in apkmirror) panaroma and photo sphere and also so is working
if you don't want google camera maybe you like camera mx. camera mx is fully working too. (latest version in google play )
xda-dvlprs said:
latest fully working camera apk for nexus 4 Google Camera 2.7.008 (this version in apkmirror) panaroma and photo sphere and also so is working
if you don't want google camera maybe you like camera fx. camera fx is fully working too. (latest version in google play )
Click to expand...
Click to collapse
I have been testing out Camera zoom FX, it seems to have all the features that the N4 can use, but i don't like the way it handles HDR.
The thing is that Google Camera (at least the 3.2 version i have) is the quickest to open (<3 sec), which is something I care about.
Open Camera is also ok, while "perfectly clear" is complete **** (which i was very surprised about).
camera mx
sorry, maybe you try camera mx, I think is so good.
HubrisRev5 said:
I have been testing out Camera zoom FX, it seems to have all the features that the N4 can use, but i don't like the way it handles HDR.
The thing is that Google Camera (at least the 3.2 version i have) is the quickest to open (<3 sec), which is something I care about.
Open Camera is also ok, while "perfectly clear" is complete **** (which i was very surprised about).
Click to expand...
Click to collapse
Does Nexus 4 support Camera 2 API to use HDR+? I doubt it but I ask just to be sure.
Stuart0610 said:
Does Nexus 4 support Camera 2 API to use HDR+? I doubt it but I ask just to be sure.
Click to expand...
Click to collapse
I never found a complete answer for this, but what i understood is that N4 does not go beyond LEGACY level for Camera 2 API. (other options being LIMITED and FULL).
This may be due to firmware issues, sensor limitation, or DSP/ISP.
So, max I think devs can do is make an app install on the N4 but none of the "extra" features will work (like manual controls, RAW images).
I did want to mention that there are apps out there that seem to "reproduce" some of the features of more modern cameras.
For example burst mode, or some exposure settings, even ISO. (e.g., Camera FV-5).
This is mainly why I asked this question here, to find out if there is a full feature packed app out there that N4 users prefer. Since most of these camera apps might have more features than the stock google cam one but the end results are crap...
Google Camera 4.1.006 seems to work fine if you have a ROM running 6.0+ (I think). I have encountered a few bugs though.
Best two camera APK
take spherical 360 panoramic photo with any android phone
You just have to install : Specific version of HTC Camera on your phone
You can see the explanation here:
i can't post youtube link cause i'm new users, so search on youtube with this title:
How to take spherical 360 panoramic photo with any android phone
Ghuria Channel
and the apk URL under the video
-----------------------------------------------------------------------------------------------------------
take portrait mode photo ( blur / bokeh background ) on any android phone
You just have to install : Specific version of Google Camera Apk on your phone
You can see the explanation here:
i Can't post youtube link cause i'm new users, so search on youtube with this title:
How to take portrait mode photo ( blur / bokeh background ) on any android phone
Ghuria Channel
and you'll find the apk URL under the video
I use Cameringo
footej camera
Stock camera app from LineageOS 15.1, works for me.
Latest Google Camera working on LineageOS 15.1 Android Pie
The Nexus 4 is a ARM device (arm-v7a). I tested Google Camera APKs from APKMirror on Nexus 4 running LineageOS 15.1 Android Pie. I had to manually uninstall the app between versions, otherwise the other versions refused to install.
Google Camera 4.2.035 doesn't work. Force closes on start up.
Google Camera 4.2.022 doesn't work. Force closes on start up.
Google Camera 4.1.006 works. Video @ 1080 causes app to crash. To work around this, go to settings and change video resolution to 720p.
Google Camera 3.2.045 works. To get past the tutorial, change to selfie camera. Video @ 1080 causes app to crash. To work around this, go to settings and change video resolution to 720p.
Overall v4.1.006 is the latest version that works on the Nexus 4.

Categories

Resources