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
Related
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....
Hey guys, who knows is there any way to make the camera shooting longer, 15s is not enough in many circumstance.
[email protected] said:
Hey guys, who knows is there any way to make the camera shooting longer, 15s is not enough in many circumstance.
Click to expand...
Click to collapse
I guess it is just question of time. Root will be needed. 15s restriction is set up because of limited internal storage and for avoiding of transfering big video files via BT to phone.
I'm currently loading up several different camera apps to see if they make a difference to get past it. I've tried a couple that did - but the video came out all bad. Trying some more and will let you know.
bchliu said:
I'm currently loading up several different camera apps to see if they make a difference to get past it. I've tried a couple that did - but the video came out all bad. Trying some more and will let you know.
Click to expand...
Click to collapse
I was actually planning on building a camera app today to test out on the gear that will remove the time limit. I am thinking that I should have a storage overlay as well so that you know if you are running low on space. Will update when I have something to test.
I've decompiled and had a look at Samsung camera apk, but couldn't find any where to change it. I'm sure it's there, just not sure what I'm looking for
_____
Sent from my GT-i9505 using xda premium
I've tested a few Camera apps - can say that a lot of them force closes or records weirdly. However, UCam Pro is working without the 15sec limitation:
https://play.google.com/store/apps/details?id=com.ucamera.ucampro&hl=en
Its free too.. not too bad of an app but a touch on the fiddly side.
thank you guys for the reply, hope some one can make a new camera apk which get rid of the time limitation!!
bchliu said:
I've tested a few Camera apps - can say that a lot of them force closes or records weirdly. However, UCam Pro is working without the 15sec limitation:
https://play.google.com/store/apps/details?id=com.ucamera.ucampro&hl=en
Its free too.. not too bad of an app but a touch on the fiddly side.
Click to expand...
Click to collapse
is it just me, or when using this map the video quality is noticable lower than stock camera?
hurdlejade said:
is it just me, or when using this map the video quality is noticable lower than stock camera?
Click to expand...
Click to collapse
Are you in focus? Mine is working ok even when I replay it back on my 27" monitor..
Just flash the amazing Null Rom. Has a 60 second video limit plus loads of other goodies.
http://forum.xda-developers.com/showthread.php?t=2515696
HTH
Baz
Hello,
When I use creative effect mode with my Z3C I see a lot of lags on the screen when I move the phone (like... you know... when you make a video...). I thought it was normal and just on the screen but with normal final result. But when I record a video with creative effect, I see lags on the screen BUT also in the final video when I watch it.
Am I alone?
Thanks!
EDIT: NO I don't have Stamina mode
I've never tried video recording with creative effects, but it doesn't surprise me. Most of the creative effects seem to stress the processor and some have even experienced the camera app shutting down to prevent over-heating.
Too bad, I can't make "real" video with effect, always lags in some parts.
try clearing out all apps and running programs before recording one of the videos. have all processing power available.
OK thank you
`Ghost` said:
try clearing out all apps and running programs before recording one of the videos. have all processing power available.
Click to expand...
Click to collapse
I should not have to do that on a 2014-15 flagship. Just to be able to use all the features.... I'd accept it for 4yo phone if you want to use the latest softwares, but a new one? Completely unacceptable.
actually..you SHOULD have to do that. A cpu intensive task needs all power available.
also the videos with these effects on dont get the best frame rates to begin with. theyre for entertainment purposes, not to film a super bowl commercial
Camera become laggy when free ram get under 300mb, I fix it with rooting then use greenify to manage ram.. Smooth camera and fluid multitasking
I just wanted to ask if someone also has some problems with the recording/playback of videos. The video looks like it lags every seconds. It doesn't matter which settings I apply neither Full-HD nor 4K is working properly.
I've already tried different applications like the standard camera application and the open camera app, but there is still no improvement.
Send us a sample. I don't have any problems. What system version are u using?
Yes Big Time.........
flvcko10 said:
I just wanted to ask if someone also has some problems with the recording/playback of videos. The video looks like it lags every seconds. It doesn't matter which settings I apply neither Full-HD nor 4K is working properly.
I've already tried different applications like the standard camera application and the open camera app, but there is still no improvement.
Click to expand...
Click to collapse
Yes, It did for me twice and I missed something very imp that day..
Hi,
When I record a video (with stock camera app) in 4k that is longer than a minute in the photos app it laggs (1-4 fps), the sound is playing normally. When I try to play a 30 sec 4k video it runs smoothly. In other resolution everything is fine.
But, when I play that video in an other app (like Filemanager's built in video player) it is fine.
I deleted app data, and cache, still doesn't work.
I also tried to record a 4k 1 minute long video, wich is about 300MB, then I recorded a 10 minute video in FullHd wich is 1.6 GB, the FullHd video runs smoothly, so I don't think it is a problem with size. What could be the problem?
Same here brother. After i stabilized the video the vudeo become choppy. Or if I see recorded 4k video the video stuck at some piont and show like slidesjow of photos.
For the last 2 days, that is what i am frustratingly suffering. It was not sth existing a few days ago. I was wondering what caused this and saw your post. Appreciate all kinds of recommendations.
If anyone have a solution please let me know, I still have this problem. After June update all of my 4k videos are broken and I can't play them in Google photos.
Are you sure it happens only with videos longer than 1 min? I have the same problem but it's random.
Sometimes videos longer than 1 or 2 minutes play OK, sometimes very short videos lag.
Haven't tried less than 4k, though.
Super annoying - using VLC now.
Thuyamo said:
Hi,
When I record a video (with stock camera app) in 4k that is longer than a minute in the photos app it laggs (1-4 fps), the sound is playing normally. When I try to play a 30 sec 4k video it runs smoothly. In other resolution everything is fine.
But, when I play that video in an other app (like Filemanager's built in video player) it is fine.
I deleted app data, and cache, still doesn't work.
I also tried to record a 4k 1 minute long video, wich is about 300MB, then I recorded a 10 minute video in FullHd wich is 1.6 GB, the FullHd video runs smoothly, so I don't think it is a problem with size. What could be the problem?
Click to expand...
Click to collapse
I am facing the same problem
Hi, so I tried a few things, and it works.
Disable the app. If it asks to replace the app with the factory version click "ok". After that, enable the app, and DON'T update it, even if it asks to.
This worked for me, no problem at all, the 4k works, the slowmotion videos can be played without stopping too.
@Thuyamo so you lost the improved interface, dark mode and all that?
I am just afraid it will cause sync problems or something.
igavuzzo said:
@Thuyamo so you lost the improved interface, dark mode and all that?
I am just afraid it will cause sync problems or something.
Click to expand...
Click to collapse
I'm currently on version 4.11, the newest in play store is 4.19 so it's not that old. For me this downgrade didn't cause any sync problem. Since the screen is so dim I don't want to make it harder to see stuff on my phone outside the house?, so I don't use dark mode at all. But yes, I lost the dark mode feature. The improved interface is there, I didn't lose it.
If you have any questions, please feel free to ask.
I'm on 4.18.0.250747830 version, 1st play of recorded video was playing normally, smooth, but 2nd and so on lagging like hell
@godlesplay
https://www.apkmirror.com/apk/google-inc/photos/photos-4-11-0-236189753-release/
Try the second or the third one, please let me know if it works.
I don't care if it is working or not, to play videos I'm using MX Player Pro.
I created ticket [9-1423000026724] with Google One Support. Let's see how that goes.
Guys, this is a secret so SHHH don't tell anyone.
HTML:
https://play.google.com/store/apps/details?id=org.videolan.vlc
(Because, I mean, who in their right mind uses Google-anything. Just joking, but srsly.)
Ok, here is an update on ticket [9-1423000026724] with Google support.
Long story short, they said Google Photos cannot play 4k videos.
So I said that was not true and sent them screenshots of Photos running on an iPhone and on a Motorola Android phone, including the information pop-up that shows the video resolution.
They replied they did all they could and closed the case.
I am so dissapointed with their service. I did not expect a quick solution, but I thought they would acknowledge the bug.
What do we do now? I think opening more tickets with them is all we can do. Hope you guys can help me on that.