High framerate Android camera preview (slow motion recording) - Java for Android App Development

It seems that most Android devices, even if they support slow motion recording with their native camera app, do not expose these settings via the official API.
On newer Samsung phones, you can enable a slow-motion preview via CameraParameter e.g. for 60Hz
parms.set("fast-fps-mode", 1);
parms.setPreviewFpsRange(60000, 60000);
How to enable slow-motion (high camera-preview) using the Android SDK?
Best, Fred

Related

CM13 - 60fps video recording ?

Hi everyone,
I'm using a G900F with CM13 and my S5 cannot record video at 60fps, when selected, it still records at 30 fps.
I have tried "A better Camera" and "Open Camera", but even with 60fps selected, the framerate remains at 30 fps no matter if I choose 720p or 1080p.
I have read that certain camera-features are only available when using the stock rom and the stock camera-app because certain camera-features cannot be done using Android's standard APIs. Is this true ?
If anyone knows how to make the phone record at 60fps, I'd be grateful.
Thanks.
is universal app for all cm 13 if its not work its not ready get another app like snap
snap camera hdr supports 720p 60fps hfr recording when advanced settings, hfr mode, video snapshots, and 60fps hfr is enabled.
Ragnar Eldur said:
snap camera hdr supports 720p 60fps hfr recording when advanced settings, hfr mode, video snapshots, and 60fps hfr is enabled.
Click to expand...
Click to collapse
Yeah, you cannot image how long I was locking for this. I've tested it with 1080p although and it works great. 120fps seems not working but never mind.
You sir, made my day

MOTO G5 + 120 fps slow mo

can moto g5 plus do slow mo (120 fps ) at 720p ???
Yes, it support 120fps in 720 ,slow motion
Mastermind8087 said:
can moto g5 plus do slow mo (120 fps ) at 720p ???
Click to expand...
Click to collapse
I was confused by it (since my previous phone didn't have slow-mo). Slow-mo isn't part of the Video recorder when you're using the Camera. It's a separate "mode" you choose (in the same area where you switch from camera to video recorder). The one where it's a circle of dashes with a triangle in the middle. So slow-motion isn't an option of the regular video recorder: It's a separate camera mode altogether.
And there are no options to configure for slow motion. It's set to 720p, etc.
It works pretty well. Once you record the video and view it, you can adjust when the slow motion starts and stop by dragging along the dashed/solid line. (You'll see what I mean)

What camera app for video recording

Oneplus 6t has bad camera app for photos but for recording movies it's even worse.
What app for recording videos do you use?
I'm looking for an app that will have manual options like: manual focus, 24fps, exposure lock, iso, flat video recording.
I have tried Opencamera but its so bugged. It cant record 24fps on our phone and the interface is uncomfortable.
I found HedgeCam 2. It's a fork of Opencamera. It has much better interface but it also has bugs from Opencamera (no 24fps).
Is there any working app?
I really like the gcam port, also for video recording. It's smoothness during zoom in/out is very good, almost as iphone.

HDR support

Hi. It is possible by Magisk or Kernel to activate HDR support. I think the processor and the display can run it.
Thanks
I don't know if the full HDR support can be forcibly activated on Tab S5e, but some things can be done even on stock firmware:
A hidden setting, called Video Enhancer, can be turned on (by QuickShortcutMaker or similar app). It's of great importance to play HDR video online or offline.
The native Samsung Video Player works just fine with downloaded HDR video content (see a HDR label on the video thumbnail/title) as well as MX Player, VLC player, etc.
YouTube Vanced Mod (both for Rooted & Non-Rooted devices) has no problem to play HDR video content in YouTube. (How To: download and install both MicroG & Vanced Apps, give MicroG all Permissions needed, start Yotube Vanced and go to Vanced Settings, tap several times on About to unhide Codec Override menu, and tap on Galaxy S8+ to enable hardware HDR support)
Well, playing HDR video on Tab S5e is just amazing!
I already have YouTube Vanced, but where do you find the Video Enhancer toggle on the tablet? I've looked all through the settings and can't find it (it's definitely not under the Advanced Settings tab).
Geese1 said:
where do you find the Video Enhancer toggle on the tablet?
Click to expand...
Click to collapse
I said above that the Video Enhancer option is hidden on Tab S5e by Samsung. We have to unhide it by apps capable to read Android activities, e.g. QuickShortcutMaker...
Just click on the QuickShortcutMaker hyperlink in my post above or here:
https://www.guidingtech.com/69325/samsung-galaxy-s8-video-enhancer/
and you can see how to start this option... (btw, QuickShortcutMaker is an old gold app and already can not create shortcuts on the latest Android versions, but you can launch Video Enhancer option tapping on Try)
legi0neer said:
i don't know if the full hdr support can be forcibly activated on tab s5e, but some things can be done even on stock firmware:
A hidden setting, called video enhancer, can be turned on (by quickshortcutmaker or similar app). It's of great importance to play hdr video online or offline.
The native samsung video player works just fine with downloaded hdr video content (see a hdr label on the video thumbnail/title) as well as mx player, vlc player, etc.
youtube vanced mod (both for rooted & non-rooted devices) has no problem to play hdr video content in youtube. (how to: Download and install both microg & vanced apps, give microg all permissions needed, start yotube vanced and go to vanced settings, tap several times on about to unhide codec override menu, and tap on galaxy s8+ to enable hardware hdr support)
well, playing hdr video on tab s5e is just amazing!
Click to expand...
Click to collapse
thanks for help you are a lifesavesr!
LeGi0NeeR said:
I said above that the Video Enhancer option is hidden on Tab S5e by Samsung. We have to unhide it by apps capable to read Android activities, e.g. QuickShortcutMaker...
Just click on the QuickShortcutMaker hyperlink in my post above or here:
https://www.guidingtech.com/69325/samsung-galaxy-s8-video-enhancer/
and you can see how to start this option... (btw, QuickShortcutMaker is an old gold app and already can not create shortcuts on the latest Android versions, but you can launch Video Enhancer option tapping on Try)
Click to expand...
Click to collapse
Thanks, went ahead and downloaded the app and turned on the Video Enhancer feature.
By the way, something I noticed in YouTube Vanced is that I can have 4k resolution, or HDR, but not both. Looks like HDR tops out at 1080p, but if I use the VP9 code I can go up to 2160p. Is this correct, or is there a workaround for this as well?
Yes, all 4 codecs in Vanced Override Menu support max resolution of 4K (2160p) 60FPS. 2 of them support (hardware/software) HDR video playing - up to FHD (1080p) 60FPS HDR. It seems that 1080p60 HDR is a Google limitation for mobile devices.
The good news is that Tab S5e handles YouTube streaming video perfectly in all resolutions, FPS and codecs, and the picture quality is just amazing!
Thanks for the info.
But when I am running LineageOS I do not have Samsung Video Enhancer.
On Youtube Vanced active the HDR but the colors are washed.
If the Samsung Video Enhancer option is not implemented in custom ROMs, you may try Video Enhancer app from Google Play:
https://play.google.com/store/apps/details?id=jp.snowlife01.android.free_videoenhancer
Doesn't the SGTS5e support HDR right out the box?
Aht stock rom are you using
Video enhancer does not work
Hdr
LeGi0NeeR said:
I don't know if the full HDR support can be forcibly activated on Tab S5e, but some things can be done even on stock firmware:
A hidden setting, called Video Enhancer, can be turned on (by QuickShortcutMaker or similar app). It's of great importance to play HDR video online or offline.
The native Samsung Video Player works just fine with downloaded HDR video content (see a HDR label on the video thumbnail/title) as well as MX Player, VLC player, etc.
YouTube Vanced Mod (both for Rooted & Non-Rooted devices) has no problem to play HDR video content in YouTube. (How To: download and install both MicroG & Vanced Apps, give MicroG all Permissions needed, start Yotube Vanced and go to Vanced Settings, tap several times on About to unhide Codec Override menu, and tap on Galaxy S8+ to enable hardware HDR support)
Well, playing HDR video on Tab S5e is just amazing!
Click to expand...
Click to collapse
Vanced mod hdr working
Very pleased
Thank you
Video enhancer has no effect for me
I'm using stock running vanced 1440 resolution is maximum it allows me and that's fine I guess, but annoying it always defaults as 720.
Some notes from my recent observations on the HDR video playback in Tab S5e (Stock Firmware):
1. Tab S5e has a good hardware (SOC - SD670; GPU - Adreno 615; Super AMOLED Display) capable to play HDR video without problems. Playing the 1080p 60FPS HDR or 2160p 60FPS streaming videos by Modded YouTube Vanced just proves that.
2. But, there is a real problem for local HDR video playback with hardware support - the colors are slightly pale and washed as regards the same video played by YouTube Vanced or in other premium SAMSUNG devices. No matter which video player is used, no matter if Video Enhancer is on or off, the colors are washed... I tested almost all known video players for Android and all they show washed colors because all they rely on the native hardware support in the related devices.
- So, it seems that SAMSUNG has stripped the hardware support of 10-bit pipelines in the Tab S5e video codecs. Obviously, this is intentionally done by SAMSUNG (to sell much more expensive Tab S6?!) and can be easily corrected with a software update... But, at the moment, we can not play locally hardware accelerated video with rich HDR colors!
3. But, we have a little surprise: the SAMSUNG's competitive HDR format - Dolby Vision, plays on Tab S5e just fine in all glorious colors and hardware support even by the native SAMSUNG video player!
4. I tested on Tab S5e several dozens of 4K HDR & Dolby Vision videos/movies flying in the Net... The only video player that played all of them in their native resolution without lags, freezing, black screen, audio only, etc. (i.e. with good hardware acceleration), was nPlayer! All others couldn't handle with various video formats/codecs and especially with most of the Dolby Vision videos. nPlayer is amazing but... the colors of HDR videos on Tab S5e are still washed...
5. So, how to play offline HDR videos on Tab S5e with native rich colors?
It seems that only VLC player for Android can do that at the moment with the following limitations:
- Video Quality: up to 1080p 60FPS HDR (yes, the same limitations as in YouTube for mobile devices!)
- Hardware Acceleration: Disabled (i.e. without hardware GPU acceleration giving washed colors on Tab S5e)
- Recommended: Force video chroma - RGB 16-bit; Deblocking Filter Settings - No Deblocking; Frame Skip - Checked; Optimize Battery Usage for VLC - Not Optimized
(VLC can play videos with upper resolutions, e.g. 1440p 60 FPS HDR and up, but don't cry if video lags...)
6. Most of the videos/movies in the Net are 4k 60FPS HDR, so we have to downscale them to 1080p 60FPS HDR to watch normal rich colors on Tab S5e.
I personally use VidCoder to downscale the originals to 1080p 60FPS HDR. A good preset, for example, is [Vimeo YouTube HQ 1080p60] with video codec - H.265 10-bit (x265). It's important to use 10-bit codecs otherwise, the video output will not be of HDR quality! You will be really surprised to see the file size difference between the input and output video...
See the difference between the colors of one and the same hardware accelerated (washed) and software decoded (rich) HDR video by VLC on the attached shots below:
Software hdr better than no hdr
Thankyou for showing us vlc hdr on s5e
LeGi0NeeR said:
Some notes from my recent observations on the HDR video playback in Tab S5e (Stock Firmware):
See the difference between the colors of one and the same hardware accelerated (washed) and software decoded (rich) HDR video by VLC on the attached shots below:
Click to expand...
Click to collapse
The only difference I see is in the color saturation, which has nothing what so ever to do with resolution.
edit: And in reality, the first picture is MUCH more natural. The only time you'd see the vivid colors of the second picture, on a woman's face, would be if she worked on the streets.
lewmur said:
The only difference I see is in the color saturation, which has nothing what so ever to do with resolution.
edit: And in reality, the first picture is MUCH more natural...
Click to expand...
Click to collapse
Yes, SAMSUNG know very well that many customers always like whatever they are offered, no matter what was stripped or disabled without any reason at all...
But I don't want SAMSUNG (or you!) to tell me which color saturation is better or worse for me. I just want to watch the movies/videos in the color palette, brightness & resolution in which their creators made them! That's all! So, a multimedia tablet (as Tab S5e was advertised) without HDR hardware support (intentionally disabled by the manufacturer) is a full nonsense in 2020!
BTW, not only HDR video playback was stripped in Tab S5e, but also 10-bit HDR video capture by the back camera...
LeGi0NeeR said:
Yes, SAMSUNG know very well that many customers always like whatever they are offered, no matter what was stripped or disabled without any reason at all...
But I don't want SAMSUNG (or you!) to tell me which color saturation is better or worse for me. I just want to watch the movies/videos in the color palette, brightness & resolution in which their creators made them! That's all! So, a multimedia tablet (as Tab S5e was advertised) without HDR hardware support (intentionally disabled by the manufacturer) is a full nonsense in 2020!
BTW, not only HDR video playback was stripped in Tab S5e, but also 10-bit HDR video capture by the back camera...
Click to expand...
Click to collapse
I don't give a hardy what you like or dislike. I just pointed out the the pictures you use to make a point about lack of hi def resolution had nothing to do with the resolution.
lewmur said:
I just pointed out the the pictures you use to make a point about lack of hi def resolution had nothing to do with the resolution.
Click to expand...
Click to collapse
What resolution? It's one and the same resolution on both pictures. The problem is in the color saturation... OMG, do you really think that HDR = "hi def resolution"? No words...
Enabled video enhancer but on vanced I have VP9 in override codecs section! HDR option still not visible on vanced youtube!

Possible to record 1080p at 60fps?

I recently found out that the videos I'd thought I was recording (through a GCam port) at 60fps weren't even hitting 25fps. I was using a Pie-based ROM (Validus) at the time, and since all the GCam ports have been focused on Android 10 for a while, I went ahead and flashed crdroid 6.9 along with a fairly minimal opengapps install.
On crdroid, trcamera again only hits 25fps when selecting 60fps. Same story with Open Camera under default settings. But when I switched the camera API from "original" to "Camera2," two things happened:
1. The max resolution I could set for video was now 720p
2. Videos I told it to record at 60fps would actually get captured at 76fps
So has anyone had any luck recording at 1080p/60fps on Potter (using any ROM / any app / any settings)?

Categories

Resources