[REQUEST][4.1.2][APP][MOD]Camera with ability to choose proper fps - Galaxy S II Themes and Apps

Hello, respected developers!
As the topics concerning camera app are slowly fading down, I start a new one here.
I tried both existing mods/apps of a 4.1 standard camera and a custom apps like lgCamera. Still I can't get 25 fps in recorded videos even when I set it to this particular value. I can get it when i use AxelVoyager in-car videorecorder, but it's quite buggy and not that common-to-operate and this setting must be applied manually every time before I start record.
I need this 25 fps setting because my other video recordings are in PAL (25 fps) and it's not a common task to convert fps correctly to match each other.
As far as I can understand with my many-years-ago-IT-background, this should not be a problem for an experienced person to compile a version of a standard camera app with pathced media profiles that have 25 instead of 30 fps in 1080p and 720p HD media-profiles. So I kindly ask for that.
Thanks.

Related

Looking for optimized video recording setup

Hello folks,
I tried to record decent 1080p video on my SGSII. Turned out that really gets a problem.
My device runs on Android 4.0.3 (IML74.XXLPQ) in combination with the Siyah kernel (3.0.32-Siyah-v3.2.5.2+ [email protected] #113). Secondrom is some CM9 ROM.
First, I just tried the stock Samsung camera app, but I can't work with the refocusing. Seems impossible to turn off the autofocus.
Besides that, the automatic white balance is crap. When I run through, wearing an orange shirt, it fu**s up the white balance and the picture gets a blue tint for a few seconds. Presets aren't the best, too.
I tried the ICS camera (while using CM9 secondrom). Same problems, but video stops recording after 16 minutes or so, and it doesn't proceed. I mean, what the f**k?
At this point, I'm looking for a camera app that:
- (optionally) has manual white balance (for me to set it using a white sheet of paper).
- can set the focus to fixed.
- records as long as I want it to, until the memory is full or I interrupt it. (When hitting 4GB, it will have to split, but it should automatically continue recording).
That was when I started looking for good camera apps. I tried some, and the best I could find until now was lgCamera. I used the free variant.
It works mostly like I want it to, though I have to set the white balance to some fixed setting. Focuses and fixes it. Everything seems to be okay.
Then it continuously stopped recording, after 4:17 minutes (@30Mbit/s), or after 1:32 minutes (@100Mbit/s). Looking at the files, it only uses 765 MB before stopping. Remember, it has to run as long as I don't stop it and there's memory left!
Of course, I used the free version, but the Play Store says:
Free version limitations:
-sometimes program shows BUYME dialog.
-program icon with red label FREE.
Click to expand...
Click to collapse
I tried the Pro version, but it keeps stopping.
BUT not enough with stopping recording! lgCamera also freezes some times. Especially while recording at 100Mbit/s (usind only 65) when stopping, it just freezes to death, leaving the phone unusable and I have to reboot. Yup, I waited whole 15 minutes, before I rebooted. I also saw how it worked like it should. Very slow when stopped, but hey, no freezes.
At this point, the app also should:
- never freeze! (Can't be that hard to find for an ex-mainstream phone...)
In addition to all that what I mentioned above, the phone loses battery like hell, of course. So I also look for a ROM which is very stable (!) and also very battery-saving while not limiting power used by the video recording app.
Aaand... And this one is a huge bummer... Absolutely every app with which I recorded produces unbelievable crappy framerates!
I set it to 30fps and I get random sh*t between 25 and 32 fps. This is a big downside, because I really get problems working with it in Adobe Premiere/After Effects and also encoding it. Even if I encode it to a “real” framerate, which all editing programs understand, it's still async!
So after I collected hours and hours of material, I don't really want to encode (assuming it would work) every single video (of whose every single one has a different framerate!), because it would take ages (and, of course, the encoding will cost a little quality)!
At this point, it has to:
- have conform fps output (29.970 or 30.000) or at least another fps which stays the same in every video!
- run on a stable, battery-saving ROM.
I don't need any other apps besides the recording one, because I will edit the video on my computer.
If you have read all this, I hope you also help me out.
Which ROM should I use as a pure video recording ROM?
Which app is a stable one for use on the SGSII and has the features I mentioned above?
Do you have any tips for me, how to get the perfect video?
I really hope anyone will help me with this.
Thanks in advance!
Great post.
I will be recording a conference using my SGS2 but, its a long video and I wanted to recorded without crashing the app after I stop the record as it happen using the deffault camera with ICS 4.0.3
Nice post.
I'm looking for exactly what you had written especially a camera application that can automatically resume recording after it reach 4Gb file limit.
I tried several program such as IgCamera and others application but it won't work.
After googling around and spend about a few hours, I found some methods that might workaround this issue.
A. Month External_sd card to NTFS.
This method might workaround 4Gb limit problem for FAT file system and with this I think that Camera application may not automatically stop when recording video file reach their limit.
From camera behavior , It seem that camera application can record video at maximum size upon maximum size of current file system.
Then , I suggest that if event "Reach max file size" occurred , android system whose monitor events will send some signal and command to stop camera application.
So if I can month external_sd card with NTFS file system , I can workaround this issue.
Unfortunately , After I read several topic and spend a few hours to find out how to month NTFS on my android device.
I'm still no luck . I got "fuse device is missing try modprobe fuse as root" and I read somewhere on internet,
someone said that this message may telling me that my kernel won't support the NTFS month.
Now I'm going to move forward to another kernel that have capable of month NTFS as native and trying to month external_sd in NTFS format in a few day.
B. Modify Camera.apk
This method can workaround 4Gb limit problem for FAT file system If you could modify camera.apk.
by modifying method that will be called when recording file reach 4Gb file limit, adding a few line of code to start a new record automatically. I think that this might work.
Some of xda member (Potatoman and rafalense), had successfully modified bitrate and audio sampling rate of camera application
(http://forum.xda-developers.com/showthread.php?t=1104051)
They grab some camera application for their phone , decompile binary source into .class to locate a sample rate of video. After they found an integer that represent a sample rate of video, they made another decompile binary source into a file called ".smali" with a lot less understandable than a class file then edit it and recompile the program.
But, This method won't only just modify a sample rate of video, we needed to modify some part of method.
Since modify Camera application won't easy like sample rate, you needed to grab your camera application from your phone, decompile a binary source, unsign , sign , compile and etc and it is a long story. So I decided to move to another method.
C. Automatic touch simulate program by period.
This workaround work without modify any of your file format , kernel or anything.
If you could find some application to trig the record button after some period of time. So file size limit event won't occur anymore.
Only concern about this method is automatic touch simulate program may not survive long enough to trig the record button for all day.
I'm finding these kind of application and if anyone whose read this topic and know these kind of application , please let me know.
D. Compile your Camera application from Opensource
This is a last method I will ever choose. This is a really hard method but really easy to explain.
This method is about download sourcecode of your rom , edit camera application at the first place then complie it yourself. Since I din't complete reading a guide for compile a rom , I suggest that inorder to make modified camera application work , you may need to compile all of rom.
From my phone manufacturer(samsung), they had released some sourcecode of for Galaxy S2 ICS ROM
For anyone whose interest please find it in the link below.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Update
Hi , all
I just successfully found a workaround for video file size limit issue.
This workaround is based on approach C. Automatic touch simulate program by period and it also need a root access.
All credit goes to Yahor Paulavets from
http://softteco.blogspot.com/2011/03/android-low-level-shell-click-on-screen.html
To complete this workaround , I write some shell script that send a low-level script via Scripting Layer for Android (SL4A) to stop video recording then send the same command again to start new record before its size reach 4 Gb. After finished writing shell script, I use terminal editor (with root access) to run this script when I start recording video.
That sound easy, but in fact, you need to capture a "touch event" with have difference signature based on the device.
Yahor Paulavets write some great article which explain how to capture this signature in the link below
http://softteco.blogspot.com/2011/03/android-clickonscreenxy-shell-script.html
____________________________________________________________________________________
Below are list of related topic that might help you
[1] Is there anyway around the 4GB video recording limit?
http://forum.xda-developers.com/showthread.php?t=1140483
[2] How to mount NTFS or EXT4 format microSD to tab
http://forum.xda-developers.com/showthread.php?t=1552674
[3] [MOD] Hacked Camera.APK for better audio quality, usage with any battery life & MORE!
http://forum.xda-developers.com/showthread.php?t=1104051
[4] App for long video recording
http://forum.xda-developers.com/showthread.php?t=1471449
[5] How can I bypass the 4gb limit on filesizes for HD Recording?
http://forum.xda-developers.com/showthread.php?t=1130973
[6] Month ExternalSD Card to NTFS for Android
http://forum.xda-developers.com/showpost.php?p=15167790&postcount=41
[7] Samsung opensource
http://opensource.samsung.com

Camcorder hack for (Much?) better video recording

OK,I guess most experienced people would know about this,but still,here goes.
If you have a root browser(downloadable from play store),then you can edit the media_profiles.XML found in system/etc.
This can be edited to get your video recording from 640*480 @ 24fps to 720*480 @ 30 fps.(This is excellent for viewing on the wildfire S.)While technically higher resolutions and frame rates are possible,the stock Gingerbread camcorder app doesn't seem to list it in settings.Plus,higher frame rates don't work properly for me anyway.
So,here's how to do it :
In media_profiles.XML,under encoder profile high, change the width to 720,height to 480 and frame rate to 30.
(I'm not really sure about the following part,although no harm in trying.I'm just not sure whether this is really necessary).
Under each of the encoders below that (h264,h263,m4v) make the maximum height and width to anything you want above 720*480 and frame rate(if below 30) to 30.Max bitrates can be changed too,if you want.
I think its possible to change the camera encoding quality too,although for general day to day purposes,It's not too useful.
I'm open to any suggestions/Improvements if found.
Thanks for reading!
have u tried it??
kye04 said:
have u tried it??
Click to expand...
Click to collapse
Well,yeah.I don't see how I could have known this otherwise.
Actualy on the stock 2.26 these values are 720/480/24 by default dunno what rom were you testing this at.
If you do it once,even if you completely reset it,it goes to 720*480/24.
Maybe it's an update by HTC,as initially it's supposed to be 640*480/24.
Anyway the main thing is changing the framerate to 30 fps.....really improves overall video recording.

Video FPS

This seems to be a known problem, but the last thread I can find about it is back in May. Is the 23 fps in video recording hardware related, or is it the software? Is there a way to get constant 30 FPS while recording 1080p like almost all the other phones out there?
Sense JB update has a fully rebuilt camera and is capable of up to 30 fps, also camera mods get you up to around 28-29 fps.
Still, videos look choppy and just crap.

[Q] How to modify media_profiles.xml to increase camera quality?

I've been trying to increase my camera's quality by editing the "media_profiles.xml" file, without luck. It seems like it's been ignoring my changes to the file. The first thing I've tried to do was simply to increase the fps from 30 to 60, to see what happens. There are many different encoder profiles for 1080p video, so I've edited them all, without luck.
I know that you can already record in 60 fps by selecting the different mode i the camera app, but I'd also like to increase the bitrate of both the video and the audio, and also the resolution (if possible) to the camera sensor's maximum of 2688х1520 pixels. (120 fps possible, for ultra slowmotion?)
I'm s-off with the newest firmware for 4.4.3 and running Android Revolution 9.1 (wiped this morning, so fresh installation).
I know about this thread: http://forum.xda-developers.com/showthread.php?t=2743174&page=52
But unfortunately it doesn't work for my phone since the 4.4.3 update (even though there's a person saying that it does work for him/her) I also want to learn how to edit the settings so I can customize it so it suits me.
Thanks for reading
Bump!
I'd really appreciate some help!
Help will be greatly appreciated!
KKLD said:
I've been trying to increase my camera's quality by editing the "media_profiles.xml" file, without luck. It seems like it's been ignoring my changes to the file. The first thing I've tried to do was simply to increase the fps from 30 to 60, to see what happens. There are many different encoder profiles for 1080p video, so I've edited them all, without luck.
I know that you can already record in 60 fps by selecting the different mode i the camera app, but I'd also like to increase the bitrate of both the video and the audio, and also the resolution (if possible) to the camera sensor's maximum of 2688х1520 pixels. (120 fps possible, for ultra slowmotion?)
I'm s-off with the newest firmware for 4.4.3 and running Android Revolution 9.1 (wiped this morning, so fresh installation).
I know about this thread: http://forum.xda-developers.com/showthread.php?t=2743174&page=52
But unfortunately it doesn't work for my phone since the 4.4.3 update (even though there's a person saying that it does work for him/her) I also want to learn how to edit the settings so I can customize it so it suits me.
Thanks for reading
Click to expand...
Click to collapse
I can't help with this, but have you tried asking in the picture thread? There are a couple of guys in there that might help.
Pictures Taken With M8
Alright, in the thread I linked in OP, I followed the instructions some users suggested and made the mod work again
It works flawlessly for me and many others.
Unfortunately OP is banned, so I've attached the file that's I've edited to work (per the instructions) with Sense 4.4.3 ROMS, happy flashing!

LG G3 4K Video on AOSP - did it ever work for anyone at all?

A while back CM12 had a patch that enabled 4K video recording. I remember that it even worked SOME of the time, but mostly it showed to be recording without saving anything. Currently on CM12 and Blisspop the option is again removed - probably because it was buggy: review.cyanogenmod.org/#/c/103494
I've tried many different camera ZIPs from other manufacturers (Motorola cam, Lenovo cam) but they do not appear to enable 4K either.
I tried playing around with the media_profiles configuration file, uncommenting the 4K profile. This does enable 4K video recording - even saving, but the framerate is really bad (<10), both with stock and third party cameras.
So my question: Did anyone ever get smooth 4K video to work on AOSP? If so what was the combination of software used?
yes it did work for idiots who;
1) flased xXcameraXxfix_AROMA_VIPERPRO_v4_FAKXDA_LIKE_SUBSCRIBE_DONATE_YOUTELLMEBUGS.zip
2) set the resolution to 4K
3) shot a video
4) never realized it didn't even save, even if it did, it was lagging between 5 and 15 fps
TL;DR
no, it did not, i have flashed all the 3rd party crap from random monkeys claiming they fixed the camera on aosp promising stock quality
to those who come in here telling me it does, provide proof or gtfo
geekmystique said:
A while back CM12 had a patch that enabled 4K video recording. I remember that it even worked SOME of the time, but mostly it showed to be recording without saving anything. Currently on CM12 and Blisspop the option is again removed - probably because it was buggy: review.cyanogenmod.org/#/c/103494
I've tried many different camera ZIPs from other manufacturers (Motorola cam, Lenovo cam) but they do not appear to enable 4K either.
I tried playing around with the media_profiles configuration file, uncommenting the 4K profile. This does enable 4K video recording - even saving, but the framerate is really bad (<10), both with stock and third party cameras.
So my question: Did anyone ever get smooth 4K video to work on AOSP? If so what was the combination of software used?
Click to expand...
Click to collapse
flash 1. https://drive.google.com/file/d/0B023yzk713HzTkhNcFVvU1Z2NHc/view?pli=1
and 2. https://mega.nz/#!lhsg1bwB!ehggjqI-hCbPCHsLr2x2MirRpXRE3XMr8_gHry_NPfs
BUT, is there any non-stock ROM with STOCK camera quality? No 4K, I do not need that, only 1080p (60 fps or 30).
Nope Coki4, unfortunately Tehosiris is right: with the HTC cam and resolution "fix" I can record in 4K, but it is still way too low framerate (15 FPS or worse).
Voterx: To me 4K is most important, hence the thread. If i want proper pictures I take my DSLR anyway... 4K video is something that is really a beautiful thing if you have the screen to display it. There is a huge difference between 1080p and 4K.
To me it is starting to look like the camera driver in AOSP source is just not able to push the pixels?
Snap camera does it. I have also found that snap camera takes as good, or better in some cases, pictures as the stock camera.
cynikalJ said:
Snap camera does it. I have also found that snap camera takes as good, or better in some cases, pictures as the stock camera.
Click to expand...
Click to collapse
no it does not
and
not it definitely does not
Then your using it wrong, because it does for me
geekmystique said:
Nope Coki4, unfortunately Tehosiris is right: with the HTC cam and resolution "fix" I can record in 4K, but it is still way too low framerate (15 FPS or worse).
Voterx: To me 4K is most important, hence the thread. If i want proper pictures I take my DSLR anyway... 4K video is something that is really a beautiful thing if you have the screen to display it. There is a huge difference between 1080p and 4K.
To me it is starting to look like the camera driver in AOSP source is just not able to push the pixels?
Click to expand...
Click to collapse
you're wrong
With snap camera
What are you doing to get those file properties? Want to check what my jerky files say..
edit:
Properties here also shows 30 fps, but the video is jerky as fuuuuuu* - i guess it is saved "as" 30 FPS but it just drops a bunch. Yes it is 4K but def not 30 FPS, even if the file shows it to be (for me).
but.. if it is smooth for you I want to know your exact rom details so I can try to achieve my holy grail.
can one of the digital cowboys upload these fabled 4k videos shot on aosp?
i still yet to see a nonstock 4k video that doesn't lag like ****
@geekmystique the jerkyness doesn't show in properties, they are just the same as regular videos, you can check the properties in root explorer or any other file explorer.
it does not matter , it is important that you are not right
coki4 said:
it does not matter , it is important that you are not right
Click to expand...
Click to collapse
your 2nd screenshot shows that the 4k video is in 59.9 fps, now THAT i'd like to see.
bending physics with an apk eh? :laugh:
edit: judging from the amount of silence after the bigface comments, i assume it takes an awful lot of time to upload the fabled 60fps 4k video (translation: someone is full of **** and/or clueless)
Let's not make this into a flamewar of sorts.
This is a video I took of my hand waving in front of the camera, whatever the file info says, it is not 30 FPS - by far, it is dropping frames like crazy. The file properties say 30 FPS in MPCHC, but windows properties shows the truth: 18 FPS.
https://mega.nz/#!lkkFHbrT!gi3qGdzcnBxpsoPMObzLk9jZPAtrYacJ_03mYBYwu2A
If your video looks better, great - let me know what you did. And if you can spare the time, post it please.
Let's discuss
I do not need 4K, I just need stock quality camera in custom ROMS It's different question.
Voterx said:
I do not need 4K, I just need stock quality camera in custom ROMS It's different question.
Click to expand...
Click to collapse
i suggest you take a look at the camera comparison post here on xda, showing stock / moto / htc / whatever side-by-side
there is no such thing as stock quality on non-LG driver backed software
Anyways, i'm absolutely on geekmystique's side here, i've had multiple people giving me lectures how i need to flash xyz.zip set ABC settings to DEF, align my device towards Mars, count to 7 and stand on my left foot to have AMAZING STOCK QUALITY PHOTOS AND VIDEOS.
Guess what, i've done all those steps, flashed all the zips, pirated all the ****ty apks and gotten nothing but disappointment.
Thats why there is sarcasm towards these 'BUT MY AOSP CAMERA IZ BETTUR BRUH YOU SUK', when it's clearly not. Hell, half of the conversations ended at 'WHO NEEDS 4K' or 'I DONT NEED CAMERA ANYWAYS' which is ridiculus when it's these people giving lectures on how to flash stuff they don't even know what it contains.
dudumm tsss
coki4 said:
it does not matter , it is important that you are not right
Click to expand...
Click to collapse
If so.. Please post the video - my video that I posted also says 30 FPS, but it stutters like mad. If you can get better video I would be really happy to know.
Guess the aosp camera is just as good as stock boys are back in their caves.
I use Cloudy only because of Xcam. I really would like a [email protected] or [email protected] for CM12.1

Categories

Resources