[htc camera] improving video recording quality/bitrate - Touch Diamond, MDA Compact IV General

hello,
I have found a location in the registry where you can change the bitrate which is used while recording videos.
registry path:
hlm/software/htc/camera/recparam/mp4large
dword name: bitrate and vsbitrate
my problem: descreasing bitrate takes effect but not encreasing the bitrate.
example: I tried to set the bitrate from 384000 to 768000=~768kbit/s but the recorded mp4-file has only ~320 kbit/s instead of ~768kbit/s
the camera settings are correct chosen, because by decreasing the bitrate for example to 128000 the video quality gets lower.
try it out, it works.
it would be nice the improve the video quality by trepassing the presetted 384000 bitrate border...
what to you think?
any idea how to get it working?
thanks & greetz
warlordy

my guess is that the encoder can only encode so much video at the same time, the write speed should not be a problem at all though.

Related

Enable VGA recording on HTC Pure

In case you guys didnt know, the HTC Pure or Tilt2 cannot do VGA video rec. You can enable VGA video rec if you install a program called BSB tweaks (google it). Go into the program and turn on "Enable hidden rec format", BUT DO NOT TURN ON "Improve MPEG bitrate", if you do it'll mess up the video camera and you'll have to hardreset. After the soft reset you can remove BSB tweaks if you want.
After that go into the camera settings and change the recording format to 3GPP2. Then you can change the resolution to VGA. To test if it really works, record 10 sec of footage with MPEG CIF resolution, then record 10 sec of 3GPP2 VGA resolution and you'll find that the VGA video is the larger file. I know it isnt true VGA video recording but its better than CIF.
Some video rec tips: Reduce camera brightness and change metering mode to average to increase framerate, reduce contract to see darker areas better.
BsbTweaks: http://forum.xda-developers.com/showthread.php?t=589305
Well the problem with mine is that the captured video looks so bad with 3GPP2 VGA that I would rather stick with QVGA... Unless I am doing something wrong.
If it looks bad then you probably turned on "Improve MPEG bitrate" in BsbTweaks. Once you had done that, you cannot reverse the process by turning it back off. The 3GPP VGA video will look worse than QVGA. You will have to hardreset, install Bsbtweaks, and ONLY turn on option "Hidden Video Rec". After the softreset, test it out and you will see the improvement.
Actually you don't need to install or remove any programs, just set the following registry value
HKEY_LOCAL_MACHINE\Software\HTC\Camera\P2:EncodeFormat
to
2147483647
kamerunka said:
Actually you don't need to install or remove any programs, just set the following registry value
HKEY_LOCAL_MACHINE\Software\HTC\Camera\P2:EncodeFormat
to
2147483647
Click to expand...
Click to collapse
Does it do more than 15fps with that method??
Because with my method Iam only getting 9-10 fps.
Nevermind, that Reg edit does the same thing.

[MOD] Stock camera mod LG GB V20e/i/j/l: No shutter sounds & improved Pic/Vid quality

[MOD] Stock camera mod LG GB V20e/i/j/l: No shutter sounds & improved Pic/Vid quality
Hi folks,
I modded the stock LG Camera-app and implemented new features.
Every improvement (except 16:[email protected]) is working seamlessly with this mod. Please find the list of improvements below.
I also included the "media_profiles.xml" in the package.
V1.0 is based on V20e and can be used up to V20e.
V2.x is based on V20l and can be used from V20i onwards.
Please find the modded camera apps attached to this post. Enjoy!
Installation Instructions:
Flash the attached zip with CWM ("install zip from sd-card" --> "choose zip from sd-card").
I modded the following (in every version of the mod):
Disabled shutter & AF sounds (picture & video) - timer sounds are still enabled (on purpose --> no change!)
Increased preview fps to 40 (--> reduced page tearing)
Picture quality:
Set normal picture quality to 80 (= 20% compression)
Set fine picture quality to 90 (= 10% compression)
Set superfine picture quality to 100 (= 0% compression)
Video quality 1080p:
Set FPS from 24 to 30 (varies a little, similar to stock LG app)
Set normal video quality from 5Mbps to 7Mbps (= fine in stock LG app)
Set fine video quality from 7Mbps to 12Mbps
Set superfine video quality from 9Mbps to 17Mbps
Video quality 720p:
Set normal video quality from 2Mbps to 4Mbps (= superfine in stock LG app)
Set fine video quality from 3Mbps to 9Mbps
Set superfine video quality from 4Mbps to 14Mbps
Additional changes in the V2.x (V20l) mod are the following:
Changed 5MP picture resolution to 6MP 16:9 (3264 x 1840) - Implemented additional preview setting logic; AR not correct yet! trying to fix it.
Increased video bit rate for VGA (improves esp. quality of videos recorded by the front cam):
- Superfine from 1.5 Mbps to 5 Mbps
- Fine from 1.2 Mbps to 3 Mbps
- Normal from 768 kbps to 1.5 Mbps
Persistent flash mode setting (i.e. last flash mode is being saved; default mode is off)
DCF compliance (adopted DCF requirements like directory- and filenames)
Storage path changed to "DCIM/CAMERA/" (DCF compliant)
Removed closing/ not starting on low battery (still shows a toast to remind you on your low charge though)
Shutter-sound menu adjusted/ fixed (only option now: "Off")
Several changes in German translations
Modded further resources
Additional changes in V2.1:
Increased video bit rate for 1080p:
- Superfine: 20Mbps
- Fine: 17Mbps
- Normal: 12Mbps
Increased audio bit rate to 128kbps for 1080p and 720p
Increased audio sampling rate to 44.1kHz for 1080p and 720p
Persistent focus mode setting (focus mode is being saved)
Persistent GPS setting (GPS mode is being saved)
Music keeps on playing (removed auto-pause music on app start)
Implemented ODEX fix for odexed roms (Camera.odex is being deleted automatically)
Fixed DCF compliance for video filenames (missing underscore)
ToDo:
Fix AR for 16:9 @ 6MP
Adjust preview size for 16:9 pictures
Optimize code for better performance
The rest is still stock.
PS:
1. If you have a darker icon for your camera app, then update script worked like it should!
2. If this is useful for you, hit the "Thanks" button on the lower right!
3. If you cook this mod in your rom, please give proper reference to this thread in the list of included features and in your change log!
yeaaaaaaaaaaah, thank you very much
Froyo compatible?
Installed it succesfully on 20e, but i can not see any difference in quality. Blown up the fotos taken before and after the mod, but no difference at all.
What should be the improvement, i ask myself.
Main differences are on video mode. Original LG couldn't take very high quality/bitrates video in high resolutions...
Very nice thing to have this plus stock features as panoramic images for example (not present in CM 7).
Great and fast job!!!
O2X withTopogigi ROM 1.5/NeoBlaze kernel
Lo_RaT_PeNaT said:
yeaaaaaaaaaaah, thank you very much
Click to expand...
Click to collapse
You're welcome mate
Mediax said:
Froyo compatible?
Click to expand...
Click to collapse
No. For Froyo you can use somemadcaaant's mod.
mach2005 said:
Installed it succesfully on 20e, but i can not see any difference in quality. Blown up the fotos taken before and after the mod, but no difference at all.
What should be the improvement, i ask myself.
Click to expand...
Click to collapse
If you compare just few pics, you probably won't see a difference. But technically speaking there is quite a difference (jpeg compression i.e. picture quality was changed from 90 to 100 in superfine setting - if you're familiar with image editing of any sort, you know what I'm talking about). You can use fine/ normal quality to limit file sizes though.
Additionally picture quality is just one (small) part, video quality (incl. fps) and removed shutter & auto-focus sounds the other
Striatum_bdr said:
Main differences are on video mode. Original LG couldn't take very high quality/bitrates video in high resolutions...
Very nice thing to have this plus stock features as panoramic images for example (not present in CM 7).
Great and fast job!!!
O2X withTopogigi ROM 1.5/NeoBlaze kernel
Click to expand...
Click to collapse
Correct. Thank you!
Great job, much appreciated!
Sent from my LG-P990 using XDA App
Hi,
thanks for that mod!!
But i have a question. Is it possible to increase the fps for 720p for getting good slowmotions?
thx
@AndiCP
Is there a chance to add "touch to focus" in video recording ? or some autoF in camcorder?
action294 said:
Great job, much appreciated!
Sent from my LG-P990 using XDA App
Click to expand...
Click to collapse
Thank you!
dickeplatte said:
Hi,
thanks for that mod!!
But i have a question. Is it possible to increase the fps for 720p for getting good slowmotions?
thx
Click to expand...
Click to collapse
I'll try that in the next few days, but I think it won't work due to limitation in the kernel (max fps=30, otherwise reverting to standard fps).
petyo.tsanov said:
@AndiCP
Is there a chance to add "touch to focus" in video recording ? or some autoF in camcorder?
Click to expand...
Click to collapse
Let me see what I can do. Constant AF is not a target for me though, as the only effect would be AF-pumping (AF constantly analyzing the whole focus range to get the sharpest picture).
Possible future to do list:
-Option to pause video while recording, similar to Nokia N8 feature.
-Enhance tweak for Photo quality higher bitrate.
Is possible? Tks
Lo_RaT_PeNaT said:
Possible future to do list:
-Option to pause video while recording, similar to Nokia N8 feature.
-Enhance tweak for Photo quality higher bitrate.
Is possible? Tks
Click to expand...
Click to collapse
And it could be very useful an option to take 16:9 pictures.
Nice work guys!
Further Development
Picture quality (in terms of compression) is maxed already.
Pause mode is not possible, because it is not implemented in the API (only start & stop are).
Same goes for a non-pumping AF during video recording (not supported by API).
But I have 16:9 format for pictures and a 60 FPS mode for 720p on my list
Let's see when I can find some time to play with it...I'll keep you updated.
question...will this mod work if i'm using a CM7 or should i use this with a stock rom ?
AndiCP said:
But I have 16:9 format for pictures and a 60 FPS mode for 720p on my list
Let's see when I can find some time to play with it...I'll keep you updated.
Click to expand...
Click to collapse
sounds good
looking forward to 720p60
AndiCP said:
But I have 16:9 format for pictures and a 60 FPS mode for 720p on my list
Let's see when I can find some time to play with it...I'll keep you updated.
Click to expand...
Click to collapse
Great!!! Thx a lot!
Thanks! Working perfectly with the 20E version!
is it ok with v20c leak GB ? because i used Flair GB v3 rom atm..
update: tested already.. it's fine.. looks better for video as not lagging as before..
720p60 would be good, but 1080p24 would be very welcome too. And, I guess, easier to make
Thanks for this great Mod
The 16:9 will be amazing feature as it is a lot better to watch pics in 16:9 dipslay, which became a standard
The 720p at 60 fps will give some nice effects

improve camera

sony camara give picture with much compression, and its affect a quality and definition
i found a program camara, that can give a picture with a 100% quality a think
in play store "vignette"
BEFORE TAKE A PICTURE
IMPORTANT!!
configuration! vignette
resolution 13 megapixeles
quality
superfine
effects
no efects
and important
Auto save = 2 seconds
and the pictures now are excelentys

[UNIVERSAL] Camera sensor 4k 30fps/FHD 60fps binary patch for kenzo(s5k3p3/ov5670)

This patch removes 26fps limit on the s5k3p3_omida01 sensor and forces recording fixed 30fps in low light condition.
supported sensor:
s5k3p3_omida01 (4k 30fps and fixed 4k 30fps/1080p 60fps in low light patch)
ov5670_omi5f06 (fixed 1080p 30fps in low light patch)
Instructions:
Download flashable zip, then flash it via recovery.
Use opencamera 1.40 or 1.42 without video snapshot version with camera2 api to record 4k 30fps video.
If the camera app supports video snapshot,the average frame rate will drop to 26fps.
Download:
s5k3p3_omida01 4k 30fps
ov5670_omi5f06 1080p 30fps
s5k3p3 1080p 60fps ISO100
s5k3p3 1080p 60fps ISO800
Mediainfo:
4k 30fps h264:
Code:
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings : 1 Ref Frames
Format settings, CABAC : No
Format settings, RefFrames : 1 frame
Format settings, GOP : M=1, N=30
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 30 s 230 ms
Source duration : 30 s 334 ms
Bit rate : 41.8 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Rotation : 90°
Frame rate mode : Variable
Frame rate : 29.571 FPS
Minimum frame rate : 7.236 FPS
Maximum frame rate : 40.161 FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.170
Stream size : 151 MiB (99%)
Source stream size : 151 MiB (99%)
Title : VideoHandle
Language : English
4k 30fps hevc:
Code:
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : [email protected]@Main
Codec ID : hvc1
Codec ID/Info : High Efficiency Video Coding
Duration : 30 s 140 ms
Source duration : 30 s 234 ms
Bit rate : 41.5 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Rotation : 90°
Frame rate mode : Variable
Frame rate : 29.635 FPS
Minimum frame rate : 7.822 FPS
Maximum frame rate : 40.107 FPS
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.169
Stream size : 149 MiB (99%)
Source stream size : 150 MiB (99%)
Title : VideoHandle
Language : English
Caution:
It is a binary hack, use at your own risk.
Tested on Lineageos 6.0.1 and 7.1.2
Credits :
Shell Script by osm0sis @ xda-developers
How to check my sensor?
khanhdx said:
How to check my sensor?
Click to expand...
Click to collapse
Why don't you try this app
https://play.google.com/store/apps/details?id=com.cpuid.cpu_z
Or this
https://play.google.com/store/apps/details?id=com.finalwire.aida64
khanhdx said:
How to check my sensor?
Click to expand...
Click to collapse
Install a terminal emulator app and gain root permissions
type su
type dmesg | grep "probe succeeded"
**Working thanks
kiraryu said:
Install a terminal emulator app and gain root permissions
type su
type dmesg | grep "probe succeeded"
Click to expand...
Click to collapse
I don't get anything. Do i have to install Busybox?
khanhdx said:
I don't get anything. Do i have to install Busybox?
Click to expand...
Click to collapse
If you use agni kernel, then just go to its app and scroll down and see camera info
khanhdx said:
I don't get anything. Do i have to install Busybox?
Click to expand...
Click to collapse
Enable the debugging mode in developer settings.. then you will get the output.
mahesh2040 said:
Enable the debugging mode in developer settings.. then you will get the output.
Click to expand...
Click to collapse
Nothing happen, too. I also use local terminal in Develop setting.
khanhdx said:
Nothing happen, too. I also use local terminal in Develop setting.
Click to expand...
Click to collapse
Use terminal emulator for android from play store.
Is it possible to do 1080p 60 on this sensor, even in low light? RR 5.8.x nougat rom, seems like as soon as light situation changes to a bit dark, the 60fps drops to 26 using camera2 api apps or stock camera
crazyguns said:
Is it possible to do 1080p 60 on this sensor, even in low light? RR 5.8.x nougat rom, seems like as soon as light situation changes to a bit dark, the 60fps drops to 26 using camera2 api apps or stock camera
Click to expand...
Click to collapse
Come on bro... You cant expect more, for low light you need better sensor to capture the frames at 60fps... Do u think we have better camera sensor, as we al know low light pictures wasn't that great compared to day light one...
crazyguns said:
Is it possible to do 1080p 60 on this sensor, even in low light? RR 5.8.x nougat rom, seems like as soon as light situation changes to a bit dark, the 60fps drops to 26 using camera2 api apps or stock camera
Click to expand...
Click to collapse
no,it seem like only can recording 1080p at average 57fps to 59fps in low light condition.
update:
Video recording at 30fps in low light patch for ov5670_omi5f06 sensor.
download:
https://www.androidfilehost.com/?fid=817906626617950240
Thanks, tested on oreo (MCAOSP)
how can i know wich sensor i have?
paul89rulez said:
how can i know wich sensor i have?
Click to expand...
Click to collapse
reboot your phone and try the below link.
https://forum.xda-developers.com/showpost.php?p=74422595&postcount=4
update:
Video recording at 1080p 57fps to 59fps in low light patch for all s5k3p3 sensors.
Not tested on s5k3p3_f3p3man and s5k3p3_f16s01c sensors.
Use google camera MGC_5.1.018_7.0+C2API_min_2_AllinOne by B-S-G to record 1080p 60fps video.
download:
https://www.androidfilehost.com/?fid=889964283620771342
which zip file i will flash with my sensor
ho�ng ng said:
which zip file i will flash with my sensor
Click to expand...
Click to collapse
You can try to flash kenzo_s5k3p3_1080p_60fps.zip

General HDR10+ in 4K too low bitrate

When selecting HDR10+ in 4K the resulting video only has 35MBit/s which is way too low for reasonable quality.
The sky is not rendered with a smooth gradient and the amount of details is very low.
If someone selects these type of video good quality is expected. To get this at least 80-120MBit/s are required.
Sample (Amozon Photos, no transcoding)
Sample (YouTube)

Categories

Resources