Droid Dev Newb - Camera Dev Help :( - Android Software Development

Hey,
I'm new to android dev (extremely) but I'm not new to software dev, but I'm very confused.
So here's my end objective: To capture a photo and be able to edit it at the pixel level.
I'm completely lost in how to do that. Okay, let me rephrase, not completely lost. PLEASE don't link me to a bunch of tutorials, I've read them all.
I'm lost on a few apparently key concepts:
- SurfaceView - What exactly IS a surface? I read the doc from android dev for it, but I'm not quite grasping it. Is it just used to display or subclass it for OpenGL, or picture viewports? Or is there more to it?
- Every camera tutorial mentions subclassing surface.holder, implementing canvas methods methods (changed, create, destroyed), and that's that - which is fine, if you're going to preview an image there, which I want...but what about taking the actual picture, that leads me to..
- StartPreview function, what the hell does this thing do, all it does is crash my phone, I don't want to "preview" anything, I want to take a picture using the built in camera activity, and store in a surface, do whatever pixel manipulations I need, and possibly write it back out to the SDCard
What does the preview have to do with anything? Every tutorial (including android's includes it), but I can't figure out for the life of me what the thing does...I could see if you wanted a camera viewport in your app, but I don't.
Now what I DID do was start the camera activity using the intent, then store the callback "data" into the surface, the problem with this, though, is it's EXTREMELY pixelated, the image previewed in the surface is of horrible quality, like it's a thumbnail. What gives? I used this code:
Code:
Bitmap thumbNail = (Bitmap)data.getExtras().get("data");
mImageViewer.setImageBitmap(thumbNail);
So yeah, sorry the questions are so sparsed out, just been confused as hell and am unfortunately on a truncated time table - nobody's been able to explain anything so far, just have what I have from playing with it..
TIA, sorry for the long post

Bump*
Anybody? Somebody's had to use the camera before in an app..

Related

Contact Picture Quality

I'm probably not the first to 'complain' about this... but I thought I'd put it all together in one post and see if anyone was having the same issues, or same results...
So...
Trying to 'Sync' Facebook contact pics with my x10 contact pics - tried a few apps, and while most of them did the job to some degree, with varying results, but mainly the same level of disappointment, one thing I found with all of them was that the resolution was abysmal to say the least...
I found also that if I opened Facebook, I could view any of my own profile pics, and I was given the option to assign them to a contact – great (sort of) providing the only people I know are myself. Friends pictures were ‘locked’ such that the assign to contact option did not exist - silly, really.
Now, while fiddling with my phone, I discovered that the some of the Facebook contact syncing apps actually downloaded a full quality pic to my device – perfect – now let me see if I can open them and assign them to a contact... nope, no luck – interestingly, they were ‘locked’ just like they were when I opened them through Facebook – no option to assign them to a contact.
Now, I move them to another folder (one which had pics that I could assign) and all of a sudden, they were unlocked... funniest thing was that pics left in the original folder I took them from were also unlocked... odd... good too, but odd.
So happily assigning all these full definition contact pics, I then had a look at them, and the resolution was again abysmal... WTF...! Anyway, one last go, and instead of going via the picture to assign it to a contact, I went through the contact then assigned a picture to it... Success...! this time proper resolution...!
So from this I assume that going through the picture, or any syncing apps, you’re only getting a contact pic as good a quality as the Android system expects. However, if you go through the contact, the x10 is getting a contact pic at the full quality it knows it needs to display...
Anyway, take what you will from this, but I thought it was interesting...
same over here, the pictures I assigned to my contacts are very high quality and they all look like sh#t on the phone when some one calls me.
It is full of noise and extremely blurry. Really don't understand why...They can't be made this for such a low quality so I assume we do something wrong, but I can't figure it out. Do we need very big resolution pictures to get them proper on this phone? But thanks for the tip, working the other way around does work good, but it keeps being strange...
Cheers.
Arnold
Consider that a phone call needs to pop-up right away. Why waste the processing speed to show a full resolution image?
Note: I think an update that went around to some regions cleaned up the resolution a bit.
iead1 said:
Consider that a phone call needs to pop-up right away. Why waste the processing speed to show a full resolution image?
Note: I think an update that went around to some regions cleaned up the resolution a bit.
Click to expand...
Click to collapse
Not the brazilian update.
I'm willing to swear that it's a donut issue... mainly because going the Android way in is ugly, and the SE way in is on the money...
You'll also notice the Android way gives you a square pic, and the SE way gives you an elongated pic to fit with their interface...
iead1 said:
Consider that a phone call needs to pop-up right away. Why waste the processing speed to show a full resolution image?
Click to expand...
Click to collapse
Agreed that it might be low res for this reason, but the x10 can handle the hi res just as good - and considering the contact pics are so large, you definitely want them full res.
Hopefully SE do some updates to improve this... Hopefully...
k1sr said:
You'll also notice the Android way gives you a square pic, and the SE way gives you an elongated pic to fit with their interface...
Click to expand...
Click to collapse
Problem is, I don't wan't the elongated pic or the square pic.
With WinMo I could put any pic format.
Why should I be restricted in Android?

[Q] Camera and SD Card

Sup, ppl?
Hey, I have a new X8 phone (3 weeks old) and I have a major issue with my camera from day 1!!! It's all glitchy and blurry, with wrong lighting and i can't take pictures at all. Sometimes when I repair the update with PC Companion or SEUS it gets to work again, but after using the phone for some time, it bugs again, especially after playing Angry Birds (even for just once!!!). I have never rooted my phone, it's all original.
I had it repaired by the service center, they said they just ran a software update (and I had the latest version) and I don't know how all my apps were still on the phone (I never manage to do this, everytime I repair the update I lose all my apps, how can I keep them?). I searched the web for several hours and haven't found anyone with my problem. I have posted question on SE support forums and on their Facebook page, but no one seems to help me. I think I'm having this unit replaced.
Another thing is that I formatted my SD card, and I thought I could get the original content again, but I was wrong. I had the "music" folder backed up, but I don't have the "media" folder. I lost some of the alarms (like the "multi alarm" one) and the notifications. Can someone upload the media folder for me please?
Thanks for all the help.
Felipe MacLeod said:
Sup, ppl?
I have a major issue with my camera from day 1!!! It's all glitchy and blurry, with wrong lighting and i can't take pictures at all.
Click to expand...
Click to collapse
What did u mean blurry? Maybe this phone does no come with an auto focus camera that why when you take picture will blur. Correct me if i'm wrong.
It's not exactly blurry, but it look horrible. For example if you edit a picture and you start messing with hue, saturation or color balance. The more you mess, the worse it gets. The display shows an bad colored looking picture and taking pictures does not work. Tried searching everywhere but can't find anyone with similar problem.
Can you post some photos? The best would be if you could put the phone fg on a table and take a photo without moving it at all. Cause to me it looks like either the camera itself is the issue or something wrong with software, if you're saying that when you mess with settings it gets even worse.
owiec said:
Can you post some photos? The best would be if you could put the phone fg on a table and take a photo without moving it at all. Cause to me it looks like either the camera itself is the issue or something wrong with software, if you're saying that when you mess with settings it gets even worse.
Click to expand...
Click to collapse
It's not that I can mess with the settings, the camera app doesn't have ANY settings to mess. The messing with settings exampled I used was about using a photo editor and try messing with the color levels or hue/saturation of any picture. My camera is displaying a screwed up image as if there was some color filter applied to it, someting that would react really poorly to lighting. Just like if you picked up a 16 million color picture with many gray colors (variant colors) and you converted it to like 256 colors, it would look really poor. That's the image my camera shows.
And did you try others apps for camera? Maybe there's something wrong with it. If not - go for warranty
owiec said:
And did you try others apps for camera? Maybe there's something wrong with it. If not - go for warranty
Click to expand...
Click to collapse
It happens to any camera app.
I'm an IT guy and I know sometimes unexplainable things happen with hardware/software. Today when I woke up, when I was going to put the phone in the pocket for leaving home, it slipped and fell to the ground scattering parts all over (cover and battery). After rassembling it i thought: "Wtf? I'll try the camera!". And believe or not: it was working PERFECTLY. And is perfect to this very moment. Some problems just don't have a reasonable explanation.
Original SD Content
Now the only missing piece is the original SD content, which I happened to wipe out unadvertedly. I tried some undelete tools, but none found the data, and I probably already overwrote all the data with many backups that I made.
So, if anyone could be very kind to post me the media folder contents (with the alarms and everything) and also the pictures that came in the images folder I guess?
Thanks, ppl.
-snip-
shutup-----

how could samsung screw up the camera THIS badly..

besides unnecessary parental control put in place on the camera, like battery limitations, forcing your music to stop when its loaded, and inability to function when mediascanner is running, theyve also, and made a unmutable shutter sound and auto focus sound, and removed the option to adjust saturation, sharpness, and brightness.. and in the video camera, removed the the ability to pause the video, now you have to straight out stop it and take another one.
why did they do this you might ask? because they added extremely watered down picture editor, and video clip editor. and they somehow think that adding these after picture/video editors was such a good idea, that they should just remove them from the camera entirely.. wtf samsung?
now what i wanna know is what WE can do to fix this? is it possible to take these settings from the galaxy s1's camera app, and add them in to the s2's? the camera apps are extremely similar
EDIT: a solution?
i really think these things can be fixed, maybe not adding the saturation, sharpness, and brightness back, that seems like alot of hard work, and i guess it isnt TOO hard to edit the picture afterwards.. but i think removing the 'parental controls' put in place, is simply a matter of deleting that area of the app's code. i wonder if adding the ability to pause the video would be hard, it seems like a simple enough thing to do.. but i dont fully understand how one would go about doing this..
for SGS1 owners, do you guys remember Fr4gg0r? he created a hacked camera app that removed the battery limitation, music from stopping when camera loads, and even added the ability to use the hardware lockkey as a camera shutter button!, and he added a thumbnail of recently taken picture in the bottom right hard corner (which we now see built in to the sgs2). really amazing work! however i spoke with him, and he doesnt plan to get the sgs2, but i wonder if we looked at his changelog from the origional apk to the modded, if then we could just make the same mods to the s2..
can anyone a little more knowledgeable than me give me their thoughts?
SGS [APP] Hacked Camera.apk <- link to his thread for original hacked camera app
Modding the camera app is very difficult since it's closed source. Might be able to take the AOSP camera app and hook the driver up, but that's hard too... amount of work depends on how good the camera driver meshes with the AOSP camera app.. I think?
I've never tried to do anything with the camera so hopefully someone with more knowledge of it can pitch in!
As to your complaint about the settings... do you really sit there before taking a picture on a phone camera and fiddle with contrast/brightness settings? I wish I had your dedication to taking good pictures!
I'm guessing suspending other applications when the camera's running is to preserve resources. I don't think I've ever been listening to music when I've used my phone as a camera. I don't agree with taking away flexibility but I think the percentage of people impacted isn't going to be high.
I can understand your concern but I don't think these restrictions justify saying they screwed up the camera badly.. maybe if they used a crappy sensor, but judging from the photos and video's I've seen posted quality looks very acceptable!
the reason i expect u cant use camera whilst media scanner is running is due to the fact samsungs internal memory, where pics are stored by default, is mounted like an SD card... also ive only ever had media scanner running once re-mounting from mass storage or when turning phone on... although ive never actually tested this senario as my phone is always on and storage mounted...
neither of those issues are a problem for me though... at least ive never encountered them during usage...
Dickie
i know removing the battery limit requires deleting some lines of code, same goes for it killing music, and forcing a shutter sound and focus sound, but would it be incredibly hard work to add the ability to pause a video, as i find this really necessary when taking videos
soraxd said:
i know removing the battery limit requires deleting some lines of code, same goes for it killing music, and forcing a shutter sound and focus sound, but would it be incredibly hard work to add the ability to pause a video, as i find this really necessary when taking videos
Click to expand...
Click to collapse
I fully agree about pausing a video recording. I've often used that feature on my SGS, and find it very puzzling, and annoying, that they would eliminate it. Quite odd.
i really think these things can be fixed, maybe not adding the saturation, sharpness, and brightness back, that seems like alot of hard work, and i guess it isnt TOO hard to edit the picture afterwards.. but i think removing the 'parental controls' put in place, is simply a matter of deleting that area of the app's code. i wonder if adding the ability to pause the video would be hard, it seems like a simple enough thing to do.. but i dont fully understand how one would go about doing this..
for SGS1 owners, do you guys remember Fr4gg0r? he created a hacked camera app that removed the battery limitation, music from stopping when camera loads, and even added the ability to use the hardware lockkey as a camera shutter button!, and he added a thumbnail of recently taken picture in the bottom right hard corner (which we now see built in to the sgs2). really amazing work! however i spoke with him, and he doesnt plan to get the sgs2, but i wonder if we looked at his changelog from the origional apk to the modded, if then we could just make the same mods to the s2..
can anyone a little more knowledgeable than me give me their thoughts?
SGS [APP] Hacked Camera.apk <- link to his thread for original hacked camera app
screw camera up??? except for the battery and music "issue" in my opinion this is one of the best cameras on a mobile, i tried many different modes and the pictures are quite good ))
unfortunately we cannot always have everything in just one gadged )))
well we may not be able to have everything, but i wont stop until i get some results.. ive been talking to a clever developer lately, whos on board to help me modify this app
I've started modding the camera app for battery level etc. Will take a look more today
These mods shouldn't be hard to implement and there is no closed source when it comes to android. We have apktool and smali / baksmali, we don't need source code from Samsung for this.

continous autofocus problem

I wish to turn off continous autofocus when i take videos, the only thing this continously does is - it continoutly ruin my videos with excessive amout of blur that makes it impossible to use in many cases.
Interior videos, even outside it tends to totally mess up any attempts to make a decent video.
I saw some custom roms have a option to disable it in options, but i would like to keep the original rom - Root it and change whatever magic inaccesible settings i need to change (like the silent camera shutter ro.camera.sound.forced=0 setting).
I saw Potatoman's camera.apk mod but that does not have any options regarding video autofocus.
totally useless
i am with you on that problem, i don't even film anymore. all movies with moving objects or even if i move my camera are useless. i don't know why they made it this way. hope for a quick and reliable solution.
Its annoying as hell. I also dont bother recording! . Sad really.
Sent from my porn shoot using GT-I9100.
+1 for this problem.
I saw some custom roms have a option to disable it in options
Click to expand...
Click to collapse
Can you provide a link to a such rom?
It is miui for galaxy s2, i saw this in action and it has a option to disable auto-bluring of videos but i dislike the rest of gui. Plus i lose stuff like usb otg if i put that rom on so i'm searching for another solution:
http://forum.xda-developers.com/showthread.php?t=1130951
No luck Tried the camera apk from miui and it doesn't work on my kf3 stock rom.
I think our best hope is that Potatoman fixes this, i cannot reply in his topic (10 posts limit), but i sent him a private message about this and i hope he reads it.
I looked into disassembly tools for apk files and so far had no success taking apart the camera app myself, otherwise if i had a working way to disassemble and reassemble it i would do this myself (baksmali fails on me with a "Could not find the main class: R:\Internet\baksmali-1.2.7.jar. Program will exit." message).
JernejL said:
I looked into disassembly tools for apk files and so far had no success taking apart the camera app myself, otherwise if i had a working way to disassemble and reassemble it i would do this myself (baksmali fails on me with a "Could not find the main class: R:\Internet\baksmali-1.2.7.jar. Program will exit." message).
Click to expand...
Click to collapse
You should extract the classes.dex file from the Camera.apk (using WinRar) and put it to the same folder with baksmali-1.2.7.jar.
I managed to do that, and found the magic command line parameters for running it, i have the smali files but this looks like one big mess.
I found startTimer in onVideoRecordingStart
and .method public handleMessage(Landroid/os/MessageV in camera main handler, this contains text such as "AF_WAIT_TIMER_EXPIRED" and calls to restartTouchAutoFocus, it could be the timer which continously calls autofocus, but it's not in camcorder classes but the camera class - i am not sure how the classes are interconnected and if this is really what i was looking for, i wish potatoman can help better with this.
I found something else, it looks like continous focus is a camera property - focusing mode:
.method public static getFocusModeString(I)Ljava/lang/String;
it has modes: "auto, fixed, macro, facedetect, continuous-video" and is saved to preferences as "pref_camera_focus_key" (this is my guess based on what i am seeing)
It seems that android api confirms this:
developer.android.com/reference/android/hardware/Camera.Parameters.html#FOCUS_MODE_CONTINUOUS_VIDEO
called with:
developer.android.com/reference/android/hardware/Camera.Parameters.html#setFocusMode%28java.lang.String%29
camcorderengine:
.method public doPrepareVideoRecordingAsync()V
const-string v3, "continuous_af"
this goes into..
const-string v1, "continuous_af"
const/4 v1, 0x0
invoke-virtual {v0, v3, v1}, Lcom/sec/android/seccamera/SecCamera$Parameters;->set(Ljava/lang/String;I)V
useful info here too:
pastebin.com/V94HYCnk
Code:
// Parse continuous autofoucs into a format the driver understands
conAf = pars.get("enable-caf");
if (conAf != 0 && strcmp(conAf, "on") == 0) {
mContinuousAf = true;
}
else {
mContinuousAf = false;
}
pars.set("continuous_af", mContinuousAf ? 1 : 0);
I hope this research opens up the possibility that potatoman fixes this for us, i can barely read this .smali assembly and i'm afraid i'll break everything if i change anything.
note: i had to cripple all the http links because i have too few posts to link to things externally.. :/
Hey guys, just a heads up that I'm working on v2 of my mod now, so while I'm doing that I'll take a look at this too. I don't usually film video though, so just to be clear, do you guys want it to just stop adjusting the focus entirely, or adjust the focus faster so that it isnt blurry for so long (since atm it takes like 5s before refocusing.) Personally I think the best solution would be to refocus on tapping the screen like the camera does, but I'm not sure if that's possible during capture, so I'd have to look into it.
Please post telling me which, so I know what I'm trying to implement here. I don't want to make it worse!
Refocus when tapping the screen will be the best way i think...
Sent from my GT-I9100 using XDA App
Based on the code and documentation that i saw, it's not even possible to adjust the focusing speed.
I would prefer that any automatic focusing is simply disabled during video recording / camcorder mode.
If tap to focus works can be done that would be brilliant, but no automatic adjustments as this ruined every video i took so far.
The phone simply starts refocusing / enters blur mode for no reason while the picture is already totally crisp and then ruins 3-5 seconds of video with blur while it tries to find "focus".
we need touch to focus
is the best solution
today i read online that choosing for a lower resolution then the full had filming wil fix the problem, i havent got any time yet to test it ........
Tap2Focus would be awesome! BUT simple disabling continuous af would be enough for start
I wish the operation is as following:
1, The focus start and lock when I touch the Record icon.
2, The focus is disable and start to record when I release my finger from the Record icon
mrky said:
today i read online that choosing for a lower resolution then the full had filming wil fix the problem, i havent got any time yet to test it ........
Click to expand...
Click to collapse
I tried this - one of first things i tried, it doesn't really help at all in my case (tested this outside in a clear well sun lit scene)
stev2010 said:
I wish the operation is as following:
1, The focus start and lock when I touch the Record icon.
2, The focus is disable and start to record when I release my finger from the Record icon
Click to expand...
Click to collapse
+1 Yes please!
But I would settle for ANYTHING to disable auto-focus because it make videos totally useless.
I actually have no problem with autofocus itself... but my issue is that auto focus does not work at ALL on any resolution lower than 1080... Anyone else have this issue?

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

Categories

Resources