Hi everybody! I never use much video recording, so this may not be a huge problem.. anyway I would like to try solving it!
When shooting a video (using either cm7 camera and lgcamera) the video sometimes freezes for a second. That's obviously annoying, expecially if I want others to see that video.
So I searched about it and I found someone talking about a SD problem. The fact is I'm using a class 10 SD, so speed shouldn't be a problem!
Also, I'm using amarullz's a2sdx script (without any other kind of lag).
Could someone give me a hint?
Sent from my Ace on Apocalypse Rom
Are the cameras installed as system apps?
Amarullz mounts apps, data, dalvik-cache and other stuff to the partition, which even in a class 10 sd card has lower speed than internal.
If they are already system apps and lag still happens try messing around with the recording resolution or maybe you have many apps running as background processes.
Other than that, making a cwm backup and trying other roms to see if the lag comes from the rom itself?
Thank you for your answer.
I will try flashing other Roms and checking out if something changes, but I remember this to be happening even on vo-1's cm7, some time ago.
I would like to try moving LGcamera to system but I don't know if this may cause problems (i knew that some apps can't be forced as system apps, don't remember why though).
Anyway, since I suppose your video recording works fine, could you tell me what app/rom/a2sd script are you using? That may help!
Sent from my Ace on Apocalypse Rom
Im using cm7-rc3-aa, no extra scripts. Stock camera, class 6 sandisk sdcard. Default camera app. Link2sd to link apps to partition (ext3 format partition).
I don't experience lags while recording videos, i used to experience that lag with the class 2 sd card that was included in the stock phone (cheap bast**** at samsung). Since i changed to class 6 sdcard though, no lags. It's also true i haven't recorded any video longer than 5 mins.
dxppxd said:
Im using cm7-rc3-aa, no extra scripts. Stock camera, class 6 sandisk sdcard. Default camera app. Link2sd to link apps to partition (ext3 format partition).
I don't experience lags while recording videos, i used to experience that lag with the class 2 sd card that was included in the stock phone (cheap bast**** at samsung). Since i changed to class 6 sdcard though, no lags. It's also true i haven't recorded any video longer than 5 mins.
Click to expand...
Click to collapse
The problem seemed to be Ram. If I kill most apps (including launcher) there are no problems!
I didn't think camera apps were such ram - hungry about video recording! Hitter thanks for your help!
Sent from my Ace on Apocalypse Rom
Related
Hi everyone,
i'm having some hard time with the camera app. Either Stock or Modaco Gilgamesh ROM. Doesn't matter which one i use.
The first time after flashing i can shoot video perfectly. After the first reboot of the phone i can't shoot video anymore. Neither SD or HD, internal or external SD Card.
Taking pictures is not affected by it. I simply don't know if i am the one messing it up or if the camera app is just plain buggy. Anyone else experience this as well ?
I'm sitting here now with a useless video function
Thanks in advance,
Ben
I was using GOTO Lockscreen before and it was crashing my camera app. I couldnt use the camera when GOTO was installed, but after i uninstalled GOTO the camera started to work as normal. If you are using GOTO Lockscreen then uninstall it and see if it makes a difference
Hey Tookie,
thanks for your reply, i'm not using it though. In fact the app doesn't crash, i can use it, it just does not record any video file anymore. I can hit the record button and it makes new files on the SD card, but all with 0 bytes though.
The timer doesn't start counting as well.
EDIT: Am i really the only one experiencing this problem ? :S
EDIT: [email protected] has been added to nightly and bitrate has been set to 12mbps which is not that bad. Its hence not recommended to flash these anymore. If you want higher bitrate look in the thread for those. I think it was pastime who made them. Alternatively use root explorer to manually edit /etc/mediaprofiles.XML. again, read pastimes and related posts in the thread on that.
This will replace the Camera.apk from CM7 with a more tegra2 friendly version that enables [email protected] recording. There's also included an updated media_profiles.xml file that'll enable different bitrates. Choose wisely . To test the bitrate I recommend having it running for at a minute to make sure everything can keep up. Usually it starts out smooth and then starts stuttering as the ram gets filled up. I also upped the quality for still.
Videos (I'll add experimental stuff as well, such as ultra high bitrates and auto focus):
http://www.youtube.com/user/O2XdevVids
I would stay away with 64mb ram hacks for the time being. Maybe we can find some middle ground in the future .
Anyway, please give me feedback on how it works. Some beautiful videos would be nice. Weather is really depressing here.
Please don't use this for non-tegra 2 devices.
Also, I'm experimenting a lot. Expect a lot to be buggy. I do my best not to put something out that doesn't work, but a couple of runs is really the extend of my testing before it goes up (to be honest). The autofocus-mod is seriously buggy. The bitrate-mod should be pretty much as buggy as the std. cm7 Camera app.
And, of course, thx to all the great ppl who works on cm.
------------------------------------------------------------
Source code (just the 1080p mod):
https://github.com/LeJay/Camera
Versions & Changelog & TODO
--------------Autofocus1.1----------------- (Note this is horribly buggy)
Just adds auto focus (and 25/30fps if you're on nightly), no change to bitrate. Flash this AFTER you do the bitrate mods. Flashing with any of the bitrate mods will replace the Camera app and you'll lose autofocus.
----------------------------------------------
--------------FullHDmod 1.0---------------
->Video:
HD: [email protected]@20mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_high 1.0---------- (works for some, requires fast sd card)
->Video:
HD: [email protected]@26mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_mid 1.0---------- (Recommended)
->Video:
HD: [email protected]@17mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_low 1.0----------
->Video:
HD: [email protected]@14mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_LG 1.0---------- (It's the settings used as stock LG... except for 1080p being 30fps)
->Video:
HD: [email protected]@9mbps
High: [email protected]@4mbps
----------------------------------------------
----------BitrateMod(720p only)---------- (Does not replace Camera.apk. Works for 64mb ram hack, until we find other solution)
->Video:
HD: [email protected]@20mbps
High: [email protected]@10mbps
----------------------------------------------
All audio is 128 kbps and all stills are:
Super fine: 100
Fine: 90
Normal: 80
--------------------------------CHANGELOG----------------------------------------
1.0 Initial release.
---- Small bugfix of CM7s camera app + tegra 2 specific stuff.
1.1-pre-alpha
---- Enables autofocus prior to video capture. Cannot be turned off(I don't do UIs,lol). Need to restart app for each video.
Autofocus 1.1
---- No need to restart app.
Known issues:
Does no longer auto adjust for exposure while recording. In between recordings it will auto adjust again. (I have no idea why).
Cannot disable autofocus (have no idea how to do UI).
Rather buggy, lots of freezes. For best results, don't push it. Ie. don't start and stop recordings rapidly, stuff like that.
Don't switch quickly to video when opening app... I think that might be a cm7 issue.
---------------------------------------TODO----------------------------------------
Touch to focus.
continuous auto-focus.
FAQ
Q: Does this work for non-CM7 ROMS?
A: Probably not. Certainly not froyo. But feel free to try and let me know. On stock rom-based builds, please look at somemadcaaant's awesome work at http://forum.xda-developers.com/showthread.php?t=1090785.
Q: T-Mobile LG G2x support?
A: Yes.
Q: What are the disadvantages?
A: Larger filesize. Takes longer to save (give it time to save before doing anything else with the phone). Potential issues with playback on phone.
Q: Does this work with 64 mb ram hack?
A: No. You can still use a high bitrate 720p mod for that kernel, though.
Q: It stutters after a few secs of recording or freezes once in a while, why is this?
A: Your phone/sdcard is having issues trying to keep up. Try a lower bitrate mod. If there is no lower, ask for one. I'm experimenting a little myself, trying to find a stable bitrate.
Q: If I open the Camera app and very quickly change to video I get a black screen?
A: Don't do that. I get the same bug on std. cm7 Camera app.
Q: Isn't it overkill with an FAQ for a camera mod?
A: Yes. But people kept asking the same questions last time I made a thread.
THX so much I will test it and report.
i would also add "touch to re-focus during video capture"(like in htc's) to the to-do list
Tegra 2 is some impressive hardware.... bitrate goes up crazy high. I'll add some different versions, but do people have any thoughts on what kind of bit rates they'd like to see?
Damn, I think maybe my sdcard cant keep up with the ultra high bit rates I'm testing. Starts stuttering after 10 sec. Maybe someone out there with a class 10 card?
When switching on video mode, i get a black screen and FC afterwards.
ranrick said:
When switching on video mode, i get a black screen and FC afterwards.
Click to expand...
Click to collapse
I purposely made my tweaks so code is first running when you actually start recording... If it's a new problem it's because of the settings file.
Tried restarting the app?
Work great for me on Kang today buid !
gregman26 said:
Work great for me on Kang today buid !
Click to expand...
Click to collapse
Great news.
LeJay said:
I purposely made my tweaks so code is first running when you actually start recording... If it's a new problem it's because of the settings file.
Tried restarting the app?
Click to expand...
Click to collapse
I reinstalled. Thereafter i was able to start it. But Recording doesn't work so far.It starts at 720P but when ending the recodring, I get a FC. 1080p keeps black screen and no FC and no recording. Maybe because of the 64MB RAM hack in the vorkKernal.
Thanks LeJay
But i have a bug.... The video is lagging(I think my Sd Card is Class 2), so i think it is because of the high bitrate. And sometimes after shooting a video the camera just freezes and i have to pull the battery..
LG O2x, Latest Kang, stock kernel.
ranrick said:
I reinstalled. Thereafter i was able to start it. But Recording doesn't work so far.It starts at 720P but when ending the recodring, I get a FC. 1080p keeps black screen and no FC and no recording. Maybe because of the 64MB RAM hack in the vorkKernal.
Click to expand...
Click to collapse
Okay, so it officially doesn't work with the 64 mb ram hack. Not surprising. You can enable high bitrate 720p with some of my other mods.
TattooHtc said:
Thanks LeJay
But i have a bug.... The video is lagging(I think my Sd Card is Class 2), so i think it is because of the high bitrate. And sometimes after shooting a video the camera just freezes and i have to pull the battery..
LG O2x, Latest Kang, stock kernel.
Click to expand...
Click to collapse
Isnt that the case with cm7 nightlies and 1080p recording?
Can someone up a vid?
TattooHtc said:
Thanks LeJay
But i have a bug.... The video is lagging(I think my Sd Card is Class 2), so i think it is because of the high bitrate. And sometimes after shooting a video the camera just freezes and i have to pull the battery..
LG O2x, Latest Kang, stock kernel.
Click to expand...
Click to collapse
Hmm... I just recorded for 1 min straight with no issue. I do get similar issues on som2e of the higher bitrates I've been toying with(40mbps can make most sd cards cry). Does it start lagging as soon as you start recording?
I'm going to make higher and lower bitrate versions.
Works beautifully on the G2x as well. Thanks
@LeJay: you should contact arcee to include your mod in CM tree
TattooHtc said:
Thanks LeJay
But i have a bug.... The video is lagging(I think my Sd Card is Class 2), so i think it is because of the high bitrate. And sometimes after shooting a video the camera just freezes and i have to pull the battery..
LG O2x, Latest Kang, stock kernel.
Click to expand...
Click to collapse
Could you try the low bitrate mod?
Works grat! 40 sec of video went from 18mb to 99mb. Now that we need a fast memory isn't better to use the internal memory?
buch85 said:
@LeJay: you should contact arcee to include your mod in CM tree
Click to expand...
Click to collapse
Agreed.
LeJay, I also think that you should contact Ricardo (arcee) and see if he can merge you changes. He just changed from 1080 to 1088 the other day in the .xml file so we can record 1080p nativly. Kinda wierd that you have to set it to 1088?
The best thing would of course be if he could include all the different modes/profiles for us to freely choose:
"FPS: 15, 25, 30"
"Resolution: 1080p, 720p, ..."
"Bitrate: X, Y, Z"
"Sound: 44 Khz, ..."
etc... because I know my class 2 card can't keep up at the best options. Going to buy me a new one soon though.
Send him a message and see if he's interested. His todo list probably is long though....
Yesterday i tried to mess a bit with the camera so i decided to try the "[MOD][CAM] [email protected]@20mbps + auto-focus on CM7" (http://forum.xda-developers.com/showthread.php?t=1094424)
I did installed with the recovery. but after that i get very low fps on my videos..i tried every single file with about the same outcome.. so i wanna know how i can bring the cm7 default camera.apk back?
currently my videos are at 9 frames/sec wich is really bad...
I am using CM7.1.0 stable my phone is the greek version of Optimus X2 (its the speed) P990
My SD card speed is class 4 and i am using the sd booster app for a better performance..not big difference tbh...so either i would like to know where i can find the original camera.apk for cm7 or what i can do to fix this.. thanks in advance!
EDIT: I dont have experience on modding..just started messing around with phone following various step by step guides..
I have managed to put the default camera.apk and media_profiles.xml from CM7.1.0
to my mobile. I noticed small difference a bit better i think lik 12fps...
I have to mention that the light in the room was average.. when I had more light the frames gone up to like 25-26 fps... (i did monitored it with fraps) i have to try to daylight now...
Btw is that a general issue for all in dark video takes or its something wrong with my phone and/or software?
Any suggestions?
I am quite sure it has something to do with cm7 camera app. Alot of people do complaint about the quality of cm7's camera app comparing to the stock LG camera app on stock roms.
It's not a fault of CM team, the camera library is closed source, so it is hard to understand how O2X camera works.
Since I use the camcorder, I had to leave CM7 waiting for a fix
sodade21 said:
Yesterday i tried to mess a bit with the camera so i decided to try the "[MOD][CAM] [email protected]@20mbps + auto-focus on CM7" (http://forum.xda-developers.com/showthread.php?t=1094424)
I did installed with the recovery. but after that i get very low fps on my videos..i tried every single file with about the same outcome.. so i wanna know how i can bring the cm7 default camera.apk back?
currently my videos are at 9 frames/sec wich is really bad...
I am using CM7.1.0 stable my phone is the greek version of Optimus X2 (its the speed) P990
My SD card speed is class 4 and i am using the sd booster app for a better performance..not big difference tbh...so either i would like to know where i can find the original camera.apk for cm7 or what i can do to fix this.. thanks in advance!
EDIT: I dont have experience on modding..just started messing around with phone following various step by step guides..
Click to expand...
Click to collapse
A library system/lib/libcamera.so was changed in newer CM releases and it features auto compensation, that's the reason why video sucks in low light compared to stock.
You can use a libcamera.so from older CM nightlies/stable releases. But make sure that you also copy Camera.apk from that version.
ktxed said:
A library system/lib/libcamera.so was changed in newer CM releases and it features auto compensation, that's the reason why video sucks in low light compared to stock.
You can use a libcamera.so from older CM nightlies/stable releases. But make sure that you also copy Camera.apk from that version.
Click to expand...
Click to collapse
oh i see.. I'll try that thank you!
hmm this is interesting.. i too am not so happy with the camera on CM7.2 temasek
there's no way to install the stock camera apk on CM roms?
what i dearly miss from that camera is the ability for faster timer shots (2s).. the fastest timer is 10s for CM7 =\
Hi guys! At the moment i'm using PrimeHD as my ROM and it's awesome. However, i noticed that when i try to record videos using my phone's camera, i experienced lags for some reason and that was in the middle of the recording process. As a result, i was able to record but some parts are lagging where the video goes choppy a little bit but the audio was doing fine. Any thoughts on what tweaks or fixes should i use in order to avoid these types of issues from happening again in the near future? Thanks to those who would be willing to help.
Sent from my w8 using XDA.
Try using a third party application and see if the problem persists.
i'm also running PrimeHD, and i belive that your problem is because maybe you are running too much background applications, and therefore you have small amount of free RAM availible.
Try to record some video right after you reboot your phone (or after you've shuted down some unnecessary processes). I've took some videos at highest quality availible (2-5 min on stock camera in PrimeHD), and i have expirienced no such thing as lags.
thanks. i'll try that. i think i need to trim down the system apps that i don't really use if that might help. what system apps do you think can i uninstall for now in order to save more RAM than the usual? just to be sure that i'd be able to record videos with ease.
Supercharger help you i have 60-80 mb allways free
Sent from my E15i using xda premium
Everytime I load up samsung stock gallery app slow to load. I do have a lot of pictures, but still shouldn't be this slow. Anyone else having slow load times with gallery?
My gallery does not load thumbnails instantaneously, but I would say 1~2 seconds , my whole gallery data weighs almost 40 GB
winol said:
My gallery does not load thumbnails instantaneously, but I would say 1~2 seconds , my whole gallery data weighs almost 40 GB
Click to expand...
Click to collapse
Crap I got like 1/4th of pics that you got and takes 5-10 seconds. Guess it's best to stick to albums. Could also try 3rd party gallery app.
By the way, all my media is stored in the sd card, an A-Data 64Gb class 10
Nick216ohio said:
Everytime I load up samsung stock gallery app slow to load. I do have a lot of pictures, but still shouldn't be this slow. Anyone else having slow load times with gallery?
Click to expand...
Click to collapse
Same here. At first I thought it was Substratum , but its slow to load my thumbnails now. They remain grey for a good few seconds until they populate. Started about 2 weeks ago for me.
Sent from my SM-N950U using Tapatalk
Limeybastard said:
Same here. At first I thought it was Substratum , but its slow to load my thumbnails now. They remain grey for a good few seconds until they populate. Started about 2 weeks ago for me.
Click to expand...
Click to collapse
Going try 3rd party gallery apps. Stock always lacks features anyhow.
Quickpic
And disable all the stock gallery special cloud features
Working fine for me & never had slow loading issues. Not instantaneous on albums that have lots of pics but thumbnails load pretty quick as I scroll through them. I only use album view though. But my gallery size is only just over 10 GB, everything stored in my SD card as well. I've got cloud services disabled fully on my phone. Image analysis, stories, & customization service all disabled as well.