Camera framerate fix for 32gb Mi2s

Discussion in 'Xiaomi Mi 2 / Mi 2S' started by shrhtnd.in, Nov 8, 2013.

  1. shrhtnd.in

    shrhtnd.inMembers

    Jun 19, 2013
    28
    6
    13
    This bug was posted on github months ago by another and I but Ivan seems to ignore it. I've asked M1cha about a possible fix but he's busy just trying the merge the camera driver into his kernel. If any experienced hackers here can inform me, is this framerate limit a ROM or kernel issue? It seems the android hal code for camera parameters limit the range between 10-25 fps. Could this limit be changed without asking Ivan or Xiaomi since the Qualcomm driver code is closed source? It's pretty annoying to record 22.5fps video (to the point of selling this phone).
     
  2. Lixander

    LixanderMembers

    Nov 1, 2013
    2
    1
    23
    Male
    Gaeta, Italy
    I hope that someone could make somo optimisation for the camera because it realy sucks especialy with moving scenes.
     
    Dizplay likes this.
  3. squallmx

    squallmxMembers

    Sep 2, 2013
    10
    1
    13
    Male
    With CineDroid I can capture video up to 25 fps, unfortunately audio recording is broken :(. to bad because the program is amazing and has lots of cool features.
     
  4. shrhtnd.in

    shrhtnd.inMembers

    Jun 19, 2013
    28
    6
    13
    Haha, this is my app. I first developed it on a HTC One S which allowed me to lock framerates. The version you're using is when I tried to force the framerate with the capture rate. It doesn't allow audio to be recorded as it's a mode used for timelapse.
     
  5. Tenant

    TenantMembers

    Oct 16, 2013
    68
    12
    18
    @shrhtnd.in
    Any chance releasing a new version for xiaomi, that fixes the audio issue?
     
  6. blackysan小黑

    Sep 28, 2013
    16
    1
    13
    r u sure about the framerate limitation? i'm using the 32GB mi2s and i have no problem recording 30fps video even in HDR mode. just go in the camera setting and toggle Movie Solid: OFF.
     
  7. shrhtnd.in

    shrhtnd.inMembers

    Jun 19, 2013
    28
    6
    13
    30fps only works in HDR mode. In normal mode, with good light the framerate averages at 22.25fps. They're plenty of users who report this issue. Record a video without HDR and look at the media info in the gallery player. MXPlayer confirms framerate as well.
     
  8. shrhtnd.in

    shrhtnd.inMembers

    Jun 19, 2013
    28
    6
    13
    I believe I went back to normal recording that fixed audio in my latest update. Honestly I haven't looked at my code in a few months now since the device fragmentation with camera functions has kinda disheartened my drive for this type of app on Android. Only devices with the Omnivision 8mp f2.0 camera works fully (One S/One X, Mi2/Mi2s 16gb). Most Android device cameras have pure auto or capped framerate modes which defeats the purpose for a cinema style camera app. Combined with various quality autofocus modules on the sensors, this app relies on too many hardware components to be "perfect".
     
  9. Tenant

    TenantMembers

    Oct 16, 2013
    68
    12
    18
    That's pity. To think that I went for the Mi2s 32gb instead of Mi2a, mainly for its "better" camera. :(
     
  10. Tenant

    TenantMembers

    Oct 16, 2013
    68
    12
    18
    Yesterday I received my Mi2s 32gb. Cinedroid is undoubtedly a great app (fps bug is solved), but no matter which settings I tried, I could capture audio. Is there something I'm doing wrong? (version 1.0.9.2)
     
  11. ramezzidane

    Jul 21, 2012
    20
    4
    23
    Male
    Damascus, Syria
    any update?

    cause i have the same issue
     
  12. ramezzidane

    Jul 21, 2012
    20
    4
    23
    Male
    Damascus, Syria
    heloo... any reply
     
  13. shrhtnd.in

    shrhtnd.inMembers

    Jun 19, 2013
    28
    6
    13
    Yeah, the problem is from the timelapse mode I'm using. My next plan is to scrape this app in it's current form and rewrite it using a custom video codec based purely off the preview frames. Once audio works the framerate will go back to the B.S. 22.5fps. I just need to stick to devices that at least have 30-60fps in 1080p at least. Android's camera api is weak at best and I'm having trouble finding how to hack the camera using v4l.
     
    jauling and deini like this.
  14. qcom uses it's own v4l camera HAL and drivers. And they are closed source.
    Because they make problems with 4.3 upgrade. I decided to write our own v4l drivers.
    However to increase the framerate this is not needed I think because these values are defined in kernel drivers.
     
  15. I am so sorry but i have still this problem on my mi2s 32 g.
    Video fps is equivalent 22.25.
    I tried to set up MIUI v6 4.9.26 Special Edition (miui.su)
    and wiui 4.8.29 but nothing changed.
    Please help me because i can't find any solutions.
     
  16. When the switch from TDB to GRUB is done and we have CM12 I'll try to port the open Nexus4 camera HAL.
    It will most likely break compatibility with MIUICamera, but thx to the openess we can fix up things later then.

    I hope we'll be able to fix framerates, then too.
     
    kamakasnh, oile, orlanddon and 4 others like this.
  17. As I understood this is some driver for camera?
    could you describe in more detail how to install it?

    Thank you for help !
     
  18. what u mean?
     
  19. Means ready application, that it can be installed in the MI2s .
    Or this application will only cm12?
     
  20. it's for cm12 only. at least right now. technically it should be possible to is the HAL with other rom's too
     
    MSephiroth and amadeus like this.
  21. jordan87

    jordan87Members

    Dec 14, 2013
    24
    0
    13
    Male
    Great news!!
     
  22. sema-sv

    sema-svMembers

    May 10, 2013
    6
    0
    21
    Male
    odessa
    when there is a new version?
     
  23. can sbd test in which rom's the time watermark works?
    It should be available since MIUI 3.6.28: http://en.miui.com/thread-4473-1-1.html

    I thought it's a bug in my opensource HAL but it doesn't work in cm11 either.
    Most interesting ROM's would be MIUIv5 and MIUIv6.
     

Share Our Site