1080P Video Recording!!!!!! - Atrix 4G Android Development

Alright don't chew my arse if I am not right, but I think I just might be...
Gspot image attached of a 10sec. sample video using the below settings and attached media_profiles.xml
What I have done is edited the build.prop with a new property using Prop Editor:
Code:
ro.media.camcorder.1080p=mp4,h264,60,24000000,aac,128000,44100,2
So property is:
Code:
ro.media.camcorder.1080p
Value:
Code:
mp4,h264,60,24000000,aac,128000,44100,2
I also made changes to the Media_profiles.xml file and have attached that file in zip format.
To install:
Unzip the file
using root explorer go to /System/etc
Rename media_profiles.xml to media_profiles.xml.bak
copy the new media_profiles.xml file to /System/etc
Change permissions to rw-r--r--
Reboot
Open up the camcorder
Goto Settings 1080P Shows HD+ on the screen when recording..
enjoy 1080P video recording...
FYI.. In 720p mode the same 10sec video had a file size of 14MB
In 1080 mode same subject matter video 10 sec. with a file size of 21MB.
Another build.prop edit:
ro.camcorder.videoModes=true
Default is false
This enables Video mode, which includes Video message, Normal, Slow motion, and Fast motion.
Hope this helps!!

The BIG question is, why do you want 1080P recordings? The optics can not really even support 720P and 1080P will not make it look better, probably even worse and the file will be twice as big. Playback of 1080P I can understand.
Just my 0.02
Cheers

nice post, but is the 1080p recording still only 24fps?
Also, to solve the spacing problem in the post, put the lines inside the Code tags
Code:
ro.media.camcorder.1080p=mp4,h264,60,24000000,aac,128000,44100,2

pederb said:
The BIG question is, why do you want 1080P recordings? The optics can not really even support 720P and 1080P will not make it look better, probably even worse and the file will be twice as big. Playback of 1080P I can understand.
Just my 0.02
Cheers
Click to expand...
Click to collapse
Being able to extract any frame and have it 2mp is pretty cool to me. It the highest resolution, if you're playing it on a nice full HD screen, it will fill every pixel. It does look better in 1080p
andy2na said:
nice post, but is the 1080p recording still only 24fps?
Also, to solve the spacing problem in the post, put the lines inside the Code tags
Code:
ro.media.camcorder.1080p=mp4,h264,60,24000000,aac,128000,44100,2
Click to expand...
Click to collapse
I'm actually glad that it's 24fps. If you think, any professional movie on a dvd only plays 24fps. When it gets up to 30fps, it plays faster and looks more like a home video, so I like the 24fps look better.

Thanks for this will try it out tonight!
Sent from my MB860 using XDA Premium App

Not work on Stock rom! At least for me...

It looks better but our software is not optimized to record 1080p yet. So videos are slightly choppy.
Sent from my MB860 using XDA Premium App

Works great on CherryBlur!

Still a little choppy during recording, but the output file is definitely 1080p at 24fps.
Playback is very smooth.
Nice find on the xml file.

Doesn't work for me too!!!
p.s. atrix has far more optics than just 2.5 mpx (1080p)

agurzhiy said:
Doesn't work for me too!!!
p.s. atrix has far more optics than just 2.5 mpx (1080p)
Click to expand...
Click to collapse
same as me

A agurzhiy and yusmiza... Did you change the permissions of the media_profiles.xml to rw-r--r-- and reboot after copying the file over and making the changes in the build prop?

does the front camera work? noticed in you xml you put the high setting for the front cam at 720P

Seems to work for me. At least 720 and 1080 the file sizes were different anyway (for the same time frame) Nothing to really test it on here at work.
edit: When taking pictures the 720 and 1080 file sizes are different also...though both say 3.8 mp still

i just edited myself!
Please tell me the version of your FW and is it a stock camera?
p.s. i do not care 1080, i need SloMo, but my buildProp has on default ro.camcorder.videoModes=true
Default was true for me

running Ken's GB beta 4 and yes stock camera

i'll try to copy your file. I found slomo and fastmo
but both of them, while playing are just usual video. Nothing faster, nothing slower, despite the fact that camera on slomo each second counts as 3 seconds (so it shows after 3 seconds that 9 seconds were recorded)

y2... Thanks for catching that!! I didn't realize I didn't put the front camera setting back to norm.. My front Camera doesn't work due to a swimming pool incident with my Atrix, but it will usually come up with a black screen.. now I get a FC.. I will make the appropriate changes and update the file.. Let me know if the new file lets the front cam work on yours...

agurzhiy said:
Doesn't work for me too!!!
p.s. atrix has far more optics than just 2.5 mpx (1080p)
Click to expand...
Click to collapse
the optics don't matter, it's the sensor. the sensor is also not able to capture constant data at the full 5 MP (video); it can take pictures at that level but it can't handle video at that level. that's why whenever you record a video on you digital camera, it's at a much smaller resolution, or why when you do burst-mode on some cameras, the maximum size is smaller than the regular MP rating.

agurzhiy said:
i'll try to copy your file. I found slomo and fastmo
but both of them, while playing are just usual video. Nothing faster, nothing slower, despite the fact that camera on slomo each second counts as 3 seconds (so it shows after 3 seconds that 9 seconds were recorded)
Click to expand...
Click to collapse
ag.. Mine records like you said counts as 3, but will play back slow. I do have the app HERE loaded as well...

Related

[Possible MOD] Editing build.prop to enable 1080p video recording

There a way to change this part of the build.prop to enable 1080p video recording? I tried just changing the resolution to 1920X1080 and lowered the fps to 25 but it didnt do anything.
ro.media.dec.vid.wmv.enabled=1
ro.media.dec.aud.wma.enabled=1
ro.media.enc.hprof.file.format=3gp
ro.media.enc.hprof.aud.hz=44100
ro.media.enc.hprof.aud.ch=2
ro.media.enc.hprof.codec.aud=aac
ro.media.enc.hprof.aud.bps=128000
ro.media.enc.hprof.vid.bps=4000000
ro.media.enc.hprof.vid.width=1280
ro.media.enc.hprof.vid.height=720
ro.media.enc.hprof.codec.vid=h264
ro.media.enc.hprof.vid.fps=30
this would be great!!
Thatsball the phone is missing.
tassadar898 said:
There a way to change this part of the build.prop to enable 1080p video recording? I tried just changing the resolution to 1920X1080 and lowered the fps to 25 but it didnt do anything.
ro.media.dec.vid.wmv.enabled=1
ro.media.dec.aud.wma.enabled=1
ro.media.enc.hprof.file.format=3gp
ro.media.enc.hprof.aud.hz=44100
ro.media.enc.hprof.aud.ch=2
ro.media.enc.hprof.codec.aud=aac
ro.media.enc.hprof.aud.bps=128000
ro.media.enc.hprof.vid.bps=4000000
ro.media.enc.hprof.vid.width=1920
ro.media.enc.hprof.vid.height=1080
ro.media.enc.hprof.codec.vid=h264
ro.media.enc.hprof.vid.fps=30
Click to expand...
Click to collapse
Try that.
10 char
yea tried that didnt do anything. still 1280 X720
I just saw this myself. You may need to up the bit rate if you up the resolution though. Definitely worth playing around with though.
I've also tried this, I think the issue is that the video app doesn't have an option to attempt 1080 video recording. Perhaps a 3rd party app will allow it.
-James
LGcamera maybe?
Have to agree.
jmacdonald801 said:
I've also tried this, I think the issue is that the video app doesn't have an option to attempt 1080 video recording. Perhaps a 3rd party app will allow it.
-James
Click to expand...
Click to collapse
This is correct. It must be enabled in the system, but also in the application.
Sent from my MB860 using XDA App
could it be recording in 1080 but only showint 720 in the app?
aonavy said:
could it be recording in 1080 but only showint 720 in the app?
Click to expand...
Click to collapse
You could try moving the file to a PC and opening to see what the res is there, that'll let you know if it's recording in 1080 or not. But, more than likely, the app would have to allow it as well.
HD 1080 p capable
Capture – 720p MPEG4 and H.264 at 30 fps
Playback – 1080p MPEG4, H.264, WMV, Xvid at 30 fps
(Playback through HDMI is 720p at launch and will be upgraded to 1080p via SW upgrade post-launch)
Streaming – VGA in MPEG4, H.264, H.263 at 30 fps
from http://mediacenter.motorola.com/Fact-Sheets/Motorola-ATRIX-4G-Fact-Sheet-353b.aspx
why not beat motorola to this update
This phone should be able to do 1080p recording no problem. Several reviews before its release stated that if 1080p isn't supported then it would be possible to "enable it easily" via software. The bitrate will definitely need to increase. I'm curious to see if the 720p recordings would also benefit from an increase in kb/s. I am waiting for my Atrix upgrade.. I really want to try out the camera possibilities. I also agree that the kink here is the camera app/software needs to match the settings of the phone. The Atrix will be my first droid and I can't tell you how exited I am at the possibility of 1080p on my phone!
I will gladly test any scripts/apps that anyone posts. Just found this site and I LOVE IT! Thank you to all the devs (amateur and pro) who donate their time here. I plan on donating to a few key people once I get my phone!
*Also, is it possibly to enable more than one recording setting/profile in the "build.prop" file? If that question sounds dumb I'm sorry.
Well, before build.prop mod LGCamera fails to record at 1080p, after mod it records fine with some settings adjustment for the encoder. I, however, am at work for another hour so I cannot check the actual resolution of the recorded files.
Awesome! I'm hoping it works!
do we know for sure this phone has the hardware to handle 1080 recording?
lasersocks said:
do we know for sure this phone has the hardware to handle 1080 recording?
Click to expand...
Click to collapse
They already said it was coming in an update so yeah it is
sent from my Tegra Beast MB860
Upon viewing the recorded "1080p" videos from LGCamera at home... yes, they are in fact recorded at 1080p. It doesn't have the best framerate ever, most likely due to LGCamera, but it is 1080p.
I will check settings and see which looks the nicest...
edit: http://www.youtube.com/watch?v=sfmIPrXNV2w 1080p video from my atrix.
Diviance said:
Upon viewing the recorded "1080p" videos from LGCamera at home... yes, they are in fact recorded at 1080p. It doesn't have the best framerate ever, most likely due to LGCamera, but it is 1080p.
I will check settings and see which looks the nicest...
edit: http://www.youtube.com/watch?v=sfmIPrXNV2w 1080p video from my atrix.
Click to expand...
Click to collapse
I tried LGcamera also and 1080P seems to be working. Sweet.
Sent from my Bell Motorola Olympus.

[APP] Recording video at resolution 640.480 for galaxy mini.

ok first this it not my work.
thanks to RubberBigPepper for his great work. for download link, go to original thread:
http://forum.xda-developers.com/showthread.php?t=1677645
but the thing i want to share here, it is very simple, but its VERY GREAT.
this camera help us to recording video at resolution 640.480 most camera app, from stock camera to apps from store, or porting..only can record at max res 320.240
but with this camera app, we can really record at 640.480
for this, just install camera normally.then go to camcoder, setting:
scene mode: action
video resolution: 640.480 (higher is not supported)
video encoder: mpeg4
video file format: mpeg4
video bitrate:5Mbit
other is default.then exit apps. open it again (u need to do it because it still in beta and have bug)
now u can record, then open in your computer.u can see, resolution it 640.480, video it much more better and detail
the only problem is framerate only 10, while with stock we have 15.but i think because this does not have right config for mini (same as miui camera.it only can record at res 320.240 with framerate 10 )
notice, this app still in dev so it may have bugs.but the important thing i want to share you and hope devs hack it, its that our mini can record video at higher resolution, and if anyone can make the framerate more than 15, this would be very great
devs, please looking for this!
Very Good
Has many options for camera and camcorder!
nvt992 said:
ok first this it not my work.
thanks to RubberBigPepper for his great work. for download link, go to original thread:
http://forum.xda-developers.com/showthread.php?t=1677645
but the thing i want to share here, it is very simple, but its VERY GREAT.
this camera help us to recording video at resolution 640.480 most camera app, from stock camera to apps from store, or porting..only can record at max res 320.240
but with this camera app, we can really record at 640.480
for this, just install camera normally.then go to camcoder, setting:
scene mode: action
video resolution: 640.480 (higher is not supported)
video encoder: mpeg4
video file format: mpeg4
video bitrate:5Mbit
other is default.then exit apps. open it again (u need to do it because it still in beta and have bug)
now u can record, then open in your computer.u can see, resolution it 640.480, video it much more better and detail
the only problem is framerate only 10, while with stock we have 15.but i think because this does not have right config for mini (same as miui camera.it only can record at res 320.240 with framerate 10 )
notice, this app still in dev so it may have bugs.but the important thing i want to share you and hope devs hack it, its that our mini can record video at higher resolution, and if anyone can make the framerate more than 15, this would be very great
devs, please looking for this!
Click to expand...
Click to collapse
Already knew that...
But I can record at 30 fps
so what is negative effect from "framerate only 10" ?
I don't understand about resolution, or fps etc
can someone give an explanation?
KoperKiller said:
Already knew that...
But I can record at 30 fps
Click to expand...
Click to collapse
how can? or you using cm rom?
im using emanoN now...it can not record more than 10fps.
Hey guys! Did you try this app with a Gingerbread stock ROM?
No replies??

MiraVision, ClearMotion & (more of 30FPS Now is possible!)

There are at least two very important things for me, and that would be an excellent improvement to the user experience of this phone.
The first is can use MiraVision. This is a great improvement to the image quality.
The software comes preinstalled !!! at least in the weekly version 5.11.26 and 5.12.3 ...
Now you can be activated, and it is magnificent !!! but the settings can not be saved.
When turning off the display, it returns to the default setting.
The second is be able to record video at normal speed, at least at 60FPS. Helio x10 can do that and much more, and the image sensor too, the software why not?
If we succeed in this, the phone would win many positive points.
Anyone wants help me?
Of course you can't save the settings, miui have a stock screen management
Sent from my Redmi Note 2 using Tapatalk
Well ... Now you can record video in HD at 60FPS (or more)
The solution is here
But we need help to make it work the "slow motion".
We need the name of the tag for this mode.
You know if it's possible to use clear motion in CM?
That feature is really amazing..
FAP31 said:
Well ... Now you can record video in HD at 60FPS (or more)
The solution is here
But we need help to make it work the "slow motion".
We need the name of the tag for this mode.
Click to expand...
Click to collapse
Can u translate it to English? I can't find the media.profile.XML in root explorer. Please help.
Javi22 said:
You know if it's possible to use clear motion in CM?
That feature is really amazing..
Click to expand...
Click to collapse
+1 can someone test that?
60 FPS camera
Simply MIUI lacks media_profiles.xml, that usually is included in every Android version in /system/etc
This file is read from multimedia apps in order to get phone's capabilities with camcorder.
If you insert that file in MIUI the stock camera app will read it and the camcorder fps drop will be bypassed. The camera will record at 60fps also in low light condition! Actually file works fine, in fact it will put the exposure at a low level in order to get best fps performance. But it isn't so optimized and the Spanish team is working on it. You can download the file from https://drive.google.com/file/d/0B1jCoBYPR8eGbVVXZkM1V2VBdUk/view?usp=sharing
You have to set permission to 644 RW R R
Slow motion will not work for now. But it's great that at least we will have a perfect camera fps for now (720p 60fps and 1080p 46fps).
The question is, why if the hardware of our phone is so powerful Xiaomi made a rom that actually doesn't reflect this powerfulness??
For cyanogenmod we don't have anything right....?
Superb job!
Sent from my Redmi Note 2 using Tapatalk
jack_21 said:
60 FPS camera
Simply MIUI lacks media_profiles.xml, that usually is included in every Android version in /system/etc
This file is read from multimedia apps in order to get phone's capabilities with camcorder.
If you insert that file in MIUI the stock camera app will read it and the camcorder fps drop will be bypassed. The camera will record at 60fps also in low light condition! Actually file works fine, in fact it will put the exposure at a low level in order to get best fps performance. But it isn't so optimized and the Spanish team is working on it. You can download the file from https://drive.google.com/file/d/0B1jCoBYPR8eGbVVXZkM1V2VBdUk/view?usp=sharing
You have to set permission to 644 RW R R
Slow motion will not work for now. But it's great that at least we will have a perfect camera fps for now (720p 60fps and 1080p 46fps).
The question is, why if the hardware of our phone is so powerful Xiaomi made a rom that actually doesn't reflect this powerfulness??
Click to expand...
Click to collapse
Amazing work ?
hey guys and for the 4k? mtk6795 can recoring and camera sensor too!!
Guys how to open the miravision app
It shows up in my installed apps list but how to open the app
Well guys, I've some good news. I've successfully managed to get ClearMotion running on MIUI
Will share it today or tomorrow!
Here you go guys!
http://forum.xda-developers.com/red...d-enable-clearmotion-miui-based-roms-t3278552
jack_21 said:
60 FPS camera
Simply MIUI lacks media_profiles.xml, that usually is included in every Android version in /system/etc
This file is read from multimedia apps in order to get phone's capabilities with camcorder.
If you insert that file in MIUI the stock camera app will read it and the camcorder fps drop will be bypassed. The camera will record at 60fps also in low light condition! Actually file works fine, in fact it will put the exposure at a low level in order to get best fps performance. But it isn't so optimized and the Spanish team is working on it. You can download the file from https://drive.google.com/file/d/0B1jCoBYPR8eGbVVXZkM1V2VBdUk/view?usp=sharing
You have to set permission to 644 RW R R
Slow motion will not work for now. But it's great that at least we will have a perfect camera fps for now (720p 60fps and 1080p 46fps).
The question is, why if the hardware of our phone is so powerful Xiaomi made a rom that actually doesn't reflect this powerfulness??
Click to expand...
Click to collapse
I got fhd 60fps, 30mb/s, thanks
Its working but..
In HD - 60 FPS but the video is very dark
In FHD - video is bright, but 16 FPS
Slow-motion works with this mod 60fps hd video?
Sent from my Redmi Note 2 using Tapatalk
vipkokata said:
Slow-motion works with this mod 60fps hd video?
Sent from my Redmi Note 2 using Tapatalk
Click to expand...
Click to collapse
Nope.

[GUIDE]Record better videos+low light fps workaround+increase bitrate on the Redmi 2

So you want to record more natural looking videos on your Redmi 2? Maybe so you get more headroom when video editing? Or does recording in low light look too choppy? Then this might be for you!
After reading Redmi 2 on XDA and checking out FreeDCam, I can say that it’s the best looking video recorder I’ve tried on my phone.
Of course you want to see some samples (Sorry if the samples aren’t that great but there weren’t any colourful flowers around. )
YouTube samples
Outside and sunny...
CM Snap
FreeDCam
Outside...
CyanogenMod Snap
FreeDCam
FreeDCam with some adjustments
Low light with workaround
CyanogenMod Snap
FreeDCam
This camera app will give you more manual controls than any other video recording app plus, you can even change them while recording! Here’s some specific settings that you should change…
Exposure: Adjust so nothing looks too dark or too bright (find the balance).
Contrast: Change to 0 (or something slightly higher). I guess the problem with other apps is that the contrast is set too high and makes shadows look too dark and highlights look too bright.
Sharpness: Set to 0 as the video will look more soft and natural. Sharpening after recording (i.e. using a program) seems to look better…
Denoise: Turn off as colours get washed out and we start to lose some of that detail. (Or keep it on if you really hate noise.)
There’s some issues regarding focussing, manual focus doesn’t seem to work. If you want to set your focus to infinity, after launching the app, set the focus to auto, tap to focus once and then set your focus to infinity.
Ok great now I can record better videos! But at night the video looks blurry, choppy…
The reason why this happens is so that more light can enter the camera for longer, causing the video to look blurry, choppy and noisy. Here is a workaround where you can now record at a constant 30fps even in the dark! This idea came from some OnePlus thread where you could rename a front camera video binary file to the rear camera video binary as the front camera records at a constant 30fps. Be aware there is a trade-off and it is that dark places won’t be as bright at 30fps compared to 15fps!
If you don’t do this, then 15fps could actually be helpful as you can see more with less light! FreeDCam will help a lot with a low light situation with the increased exposure and decreased contrast. You’ll get more noise though. You can either activate the denoiser and/or run a denoiser plugin after you have recorded your video.
(Note: I’m not responsible for anything that might happen on your phone. I’ve only tested this on cm13 so the files might be different across different roms.)
Note that this mod will affect all apps that record video and dark places will look very dark.
Go to /vendor/lib/
Copy the name libchromatix_ov8865_sunny_default_video.so and then back it up (rename it to something like libchromatix_ov8865_sunny_default_video.so1
Create a copy of libchromatix_ov2680_5987fhq_default_video.so and rename it to libchromatix_ov8865_sunny_default_video.so
To revert change libchromatix_ov8865_sunny_default_video.so1 back to libchromatix_ov8865_sunny_default_video.so
Increase bitrate…
You can increase the video bitrate with FreeDCam (or any other video recording app if you mess with media_profile.xml) so you can record all that fine detail (including especially the noise). Here, we’ll change the bitrate to 40Mbps.
Just head to /system/etc/media_profiles.xml and look for: (tip: near the end)
<VideoEncoderCap name="h264" enabled="true"
minBitRate="64000" maxBitRate="20000000"
minFrameWidth="176" maxFrameWidth="1920"
minFrameHeight="144" maxFrameHeight="1088"
minFrameRate="15" maxFrameRate="30"
maxHFRFrameWidth="1920" maxHFRFrameHeight="1080"
maxHFRMode="120" />
Click to expand...
Click to collapse
Change maxBitRate to 40000000 and save. This edit only tells the phone the maximum bitrate it can encode at.
In FreeDCam, make sure you’re in 1080p! Change video bitrate to 40000000 and audio bitrate 320000. Be aware that the video size will now be around 300MB/min so make sure you have plenty of storage. (I tried using an USB OTG Drive. It works! But the USB device interfered with the microphones and created noise. )
So yeah. The difference might not be that noticeable to some, but to me, it looks a lot better to me. While recording, the viewfinder might lag a bit but in the actual recorded video, it’ll be fine. I might put more samples up or maybe you try this out and get some samples for me! Hopefully there are some people here who are interested in video. :good:
My first thread
Awesome!! Works flawlessly with this app!
why dont you just give the edited file
gamernayeem said:
why dont you just give the edited file
Click to expand...
Click to collapse
Of what?
magmar452 said:
Of what?
Click to expand...
Click to collapse
media_profiles.xml
gamernayeem said:
media_profiles.xml
Click to expand...
Click to collapse
I'll make a flashable zip for both the mods
magmar452 said:
I'll make a flashable zip for both the mods
Click to expand...
Click to collapse
thanks
If you can you post guide for better picture quality in general,I am overwhelmed by amount of options it provides can you post screenshots of balanced set of options to choose specifically for our device. Thanks for this thread anyway .
rohitsonone said:
If you can you post guide for better picture quality in general,I am overwhelmed by amount of options it provides can you post screenshots of balanced set of options to choose specifically for our device. Thanks for this thread anyway .
Click to expand...
Click to collapse
Sorry, this is a video specific guide. I'm making some flashable zips and I'll put some screenshots when I have time. Perhaps @shanx_verma can make a picture guide? If I have lots of time then maybe I'll make one.
Prioritizing FPS Over Exposure
Hi magmar452.
Thank you very much for this. This is some juicy detail you uncovered here!
magmar452 said:
Go to /vendor/lib/
Copy the name libchromatix_ov8865_sunny_default_video.so and then back it up (rename it to something like libchromatix_ov8865_sunny_default_video.so1
Create a copy of libchromatix_ov2680_5987fhq_default_video.so and rename it to libchromatix_ov8865_sunny_default_video.so
To revert change libchromatix_ov8865_sunny_default_video.so1 back to libchromatix_ov8865_sunny_default_video.so
Click to expand...
Click to collapse
My front-facing camera also goes into "Slideshow Mode" in low light, so following your exact steps above didn't work for me. However, I fiddled a bit and found what does work for me:
Trade exposure for fps priority:
1. Go to /vender/lib/
2. Rename "libchromatix_ov8865_sunny_default_video.so" to "libchromatix_ov8865_sunny_default_video.so1"
3. Create a copy of "libchromatix_ov8865_sunny_hfr_60fps.so" and rename it to "libchromatix_ov8865_sunny_default_video.so"
EDIT1: Getting decent night time results using "libchromatix_ov8865_q8v18a_default_video.so" as the source. It actually allows me proper exposure/fps control. "libchromatix_ov8865_q8v18a_hfr_60fps.so" handles similarly, but prioritizes fps.
EDIT2: Various vendor libs from github/TheMuppets/xiaomi/cancro also work. However, results are all over the place.
This isn't a proper fix, but it's really good to be Slideshow-free.
Samples:
ov8865_sunny (default): youtu.be/pS544qW35ZM
ov8865_q8v18a: youtu.be/PcCC95EIceg
imx226_video_hdr: youtu.be/E79zcYlq7pU
pexxie said:
Hi magmar452.
Thank you very much for this. This is some juicy detail you uncovered here!
My front-facing camera also goes into "Slideshow Mode" in low light, so following your exact steps above didn't work for me. However, I fiddled a bit and found what does work for me:
1. Go to /vender/lib/
2. Rename "libchromatix_ov8865_sunny_default_video.so" to "libchromatix_ov8865_sunny_default_video.so.org"
3. Create a copy of "libchromatix_ov8865_sunny_hfr_60fps.so" and rename it to "libchromatix_ov8865_sunny_default_video.so"
EDIT: I'm getting decent night time results using "libchromatix_ov8865_q8v18a_default_video.so" as the source. It actually allows me proper exposure/fps control.
Not sure why it works, but it works. Maybe it's coincidence. I still get the occasional brief dips to 20-odd fps, but they're too infrequent to be a nuisance. It's not a proper fix, but it's really good to be Slideshow-free.
Short Samples: Original & Hack Job
Original: youtu.be/3VHuGj33vp4
Hack Job: youtu.be/oEH2E7t_5EI
P.S. I'm running CyanogenMod Nightly 6.0.1 (wt88047) on my Redmi 2 Pro (2014817)
Click to expand...
Click to collapse
I think most roms have switch to the lollipop canera blobs and that's why the front camera is choppy now to fix the 'dark video' problem. I've switched to Resurrection Remix, there are some few changes that had to be made to the instructions (getting the old front camera file) so I can still get 30fps.I'll check it out renaming to the 60fps file. Currently I'm quite busy
magmar452 said:
So you want to record more natural looking videos on your Redmi 2? Maybe so you get more headroom when video editing? Or does recording in low light look too choppy? Then this might be for you!
Afterreading Redmi 2 on XDA and checking out FreeDCam, I can say that it’s the best looking video recorder I’ve tried on my phone.
Of course you want to see some samples (Sorry if the samples aren’t that great but there weren’t any colourful flowers around. )
YouTube samples
Outside and sunny...
CM Snap
FreeDCam
Outside...
CyanogenMod Snap
FreeDCam
FreeDCam with some adjustments
Low light with workaround
CyanogenMod Snap
FreeDCam
This camera app will give you more manual controls than any other video recording app plus, you can even change them while recording! Here’s some specific settings that you should change…
Exposure: Adjust so nothing looks too dark or too bright (find the balance).
Contrast: Change to 0 (or something slightly higher). I guess the problem with other apps is that the contrast is set too high and makes shadows look too dark and highlights look too bright.
Sharpness: Set to 0 as the video will look more soft and natural. Sharpening after recording (i.e. using a program) seems to look better…
Denoise: Turn off as colours get washed out and we start to lose some of that detail. (Or keep it on if you really hate noise.)
There’s some issues regarding focussing, manual focus doesn’t seem to work. If you want to set your focus to infinity, after launching the app, set the focus to auto, tap to focus once and then set your focus to infinity.
Ok great now I can record better videos! But at night the video looks blurry, choppy…
The reason why this happens is so that more light can enter the camera for longer, causing the video to look blurry, choppy and noisy. Here is a workaround where you can now record at a constant 30fps even in the dark! This idea came from some OnePlus thread where you could rename a front camera video binary file to the rear camera video binary as the front camera records at a constant 30fps. Be aware there is a trade-off and it is that dark places won’t be as bright at 30fps compared to 15fps!
If you don’t do this, then 15fps could actually be helpful as you can see more with less light! FreeDCam will help a lot with a low light situation with the increased exposure and decreased contrast. You’ll get more noise though. You can either activate the denoiser and/or run a denoiser plugin after you have recorded your video.
(Note: I’m not responsible for anything that might happen on your phone. I’ve only tested this on cm13 so the files might be different across different roms.)
Note that this mod will affect all apps that record video and dark places will look very dark.
Go to /vendor/lib/
Copy the name libchromatix_ov8865_sunny_default_video.so and then back it up (rename it to something like libchromatix_ov8865_sunny_default_video.so1
Create a copy of libchromatix_ov2680_5987fhq_default_video.so and rename it to libchromatix_ov8865_sunny_default_video.so
To revert change libchromatix_ov8865_sunny_default_video.so1 back to libchromatix_ov8865_sunny_default_video.so
Increase bitrate…
You can increase the video bitrate with FreeDCam (or any other video recording app if you mess with media_profile.xml) so you can record all that fine detail (including especially the noise). Here, we’ll change the bitrate to 40Mbps.
Just head to /system/etc/media_profiles.xml and look for: (tip: near the end)
Change maxBitRate to 40000000 and save. This edit only tells the phone the maximum bitrate it can encode at.
In FreeDCam, make sure you’re in 1080p! Change video bitrate to 40000000 and audio bitrate 320000. Be aware that the video size will now be around 300MB/min so make sure you have plenty of storage. (I tried using an USB OTG Drive. It works! But the USB device interfered with the microphones and created noise. )
So yeah. The difference might not be that noticeable to some, but to me, it looks a lot better to me. While recording, the viewfinder might lag a bit but in the actual recorded video, it’ll be fine. I might put more samples up or maybe you try this out and get some samples for me! Hopefully there are some people here who are interested in video. :good:
My first thread
Click to expand...
Click to collapse
Can you make a guide for MI 5? I'm trying to record guitar videos but it's choppy
luigi0824 said:
Can you make a guide for MI 5? I'm trying to record guitar videos but it's choppy
Click to expand...
Click to collapse
Sorry I don't have an Mi 5. See if lowering resolution helps or not having enough light causes this issue.
flashable zip is there?
It will be easy then

Video file framesize not matching what Camera sees

Hello people! I'm trying to record video with my new OP3T, but when I watch the recording, the video frame size (or field of view I suppose) is smaller than what it looks like when I'm shooting. I mean the video resolution is still 1920x1080, but things at the edges of the screen are now out of view. I'm using 1920x1080 @30 FPS, stock camera app, Android 7.0. Same thing happens with other resolutions and FPS settings, and with OpenCamera app for example. But it does not happen when taking pictures, and even when I take a static shot WHILE shooting video, that picture comes out fine.
Is this a known issue? How could I solve this? Is there any modification that could help?
PhantomGlass said:
Hello people! I'm trying to record video with my new OP3T, but when I watch the recording, the video frame size (or field of view I suppose) is smaller than what it looks like when I'm shooting. I mean the video resolution is still 1920x1080, but things at the edges of the screen are now out of view. I'm using 1920x1080 @30 FPS, stock camera app, Android 7.0. Same thing happens with other resolutions and FPS settings, and with OpenCamera app for example. But it does not happen when taking pictures, and even when I take a static shot WHILE shooting video, that picture comes out fine.
Is this a known issue? How could I solve this? Is there any modification that could help?
Click to expand...
Click to collapse
Seems to be a known issue. Watch this video (pay attention at 3:30): https://www.youtube.com/watch?v=XFC9OB85Tpk&t
I don't know if this can be solved as i received my 3T yesterday and haven't had a chance to use the camera yet.
panart said:
Seems to be a known issue. Watch this video (pay attention at 3:30): (snip)
I don't know if this can be solved as i received my 3T yesterday and haven't had a chance to use the camera yet.
Click to expand...
Click to collapse
It seems so, yeah. Do you know if this sort of cropping happens during shooting or is it a separate process that's done afterwards? I figured this might be solvable somehow, since you do see the whole picture while you're recording. So it's not a physical limitation of the camera lens or anything.
PhantomGlass said:
It seems so, yeah. Do you know if this sort of cropping happens during shooting or is it a separate process that's done afterwards? I figured this might be solvable somehow, since you do see the whole picture while you're recording. So it's not a physical limitation of the camera lens or anything.
Click to expand...
Click to collapse
Sorry, but i don't know why this happens.
panart said:
Sorry, but i don't know why this happens.
Click to expand...
Click to collapse
Noticed that OpenCamera has a function to enable Camera2 API, which fixed the cropping! Also I found that on stock camera app, recording on 4K UHD (3840x2160) doesn't crop the video frame. But it limits to 10 minutes per shot (also workable on OpenCamera due to its restart recording function.)
It's the electronic image stabilisation. It needs to zoom in a little bit to stabilize the video. That's why the 4k isn't cropped, because in 4k, there is only OIS, and not EIS.
G4B33 said:
It's the electronic image stabilisation. It needs to zoom in a little bit to stabilize the video. That's why the 4k isn't cropped, because in 4k, there is only OIS, and not EIS.
Click to expand...
Click to collapse
Exactly what I thought was the cause of it, thanks for clearing this up ??
Is there any way to disable stabilisation? Different camera app, some mod or something? Even OpenCamera doesn't specifically have a setting for that, but I guess Camera2 API doesn't support EIS or something, which feels like a crutch "solution" at best.
PhantomGlass said:
Is there any way to disable stabilisation? Different camera app, some mod or something? Even OpenCamera doesn't specifically have a setting for that, but I guess Camera2 API doesn't support EIS or something, which feels like a crutch "solution" at best.
Click to expand...
Click to collapse
Scan build.prop see if there is some line related to ois or eis.

Categories

Resources