[DEV][Thinktank]Porting 4K & Timeshift video from Z2 to other Xperia devices

Search This thread

halleyrokz

Senior Member
Awesome

Ok guys new update! :D


after so many backtraces here's my progress log.

1. Camera taking picture now works!.
2. Normal video record works!
3. 4k works!
4. 120fps crashes when recording but preview/viewfinder works!(it's working on 60fps on media_profile.xml)

I will try to solve 120fps as of the moment. But if I can't get this work until tomorrow I'll post the 4k patch with 60fps timeshift video tomorrow :)

Also please note. This is only tested on Xperia Z1 Compact firmware 14.3.A.0.757 I can't guarantee this to be compatible on other firmwares/devices.

This News Made my day. A question though
-Does the mod do 1080p @60fps?
-Is there a 5 minute limitation on 4k video as the Xperia Z2?

ThanX
 
  • Like
Reactions: kdashjl

ThibaultAnd

Member
Jan 9, 2011
49
18
I've got camera snapshots working by adding some more libs: *kakao* and *choko*. 4 still broken. I tried adding the AAC enc lib, no luck. More tomorrow.

Do we have 120 FPS with this or we are stucked with 60fps ?

EDIT - Nevermind it's still 120 fps (+ now the ability to take pictures), thank you !
Sent from my C6903 using Tapatalk
 
Last edited:

olokos

Recognized Developer
Oct 16, 2011
2,945
2,494
Warsaw
Yup, 120fps works along with the regular camera. 4k crashes as expected. I'll provide some more footage and will try to flash the Z2 rom or at least part of it to my Z1 again as I realised just today that what I flashed before was just a deodex +root package. Downloading the rom right now. I plan to flash it tomorrow.

Sent from my C6903 using Tapatalk @lagalaga
I'm not sure if this is something on my side, but just your latest zip + supervideocamera didn't work, I had just a black camera view, but flashing the zip you PM'd me and then the latest in your post above worked well.
 
Last edited:

Riyal

Senior Member
Dec 16, 2011
3,038
1,770
Iloilo City
Warning: This is currently only working on Xperia Z1 & Z1 Compact. This patch won't work on Xperia Z series and older devices.

Latest version: 1.3
Download latest version: Here

Credits to @shem2409 for the video tutorial :D
http://xdaforums.com/showpost.php?p=53314821&postcount=1



Root Xperia Z1: http://youtu.be/zscUImoPLpM

Deodex Xperia Z1 by flashing this in recovery:
https://mega.co.nz/#!WgwRDQDa!UlO0Vx3FEHODmB8dUgmf_24cHpQ-6O6_zf5zhGpfktI

Necessary downloads:
1) Deodexing downloads (above)
2) 120fps + 4K MOD: http://xdaforums.com/attachment.php?attachmentid=2786475&stc=1&d=1402194839
3) Serajr Xperia Xposed (KK): http://repo.xposed.info/module/com.serajr.xperia.xposed.kk
4) Xposed framework: http://repo.xposed.info/module/de.robv.android.xposed.installer


Sample Timeshift Video (recorded with Xperia Z2)


Changelog

UPDATE v1.3:

  • Fix duplicate entries of 4k & Timeshift Video in camera add on selector box


UPDATE v1.2:

  • Fix Timeshift Burst compatibility


UPDATE v1.1:

  • Fixed force close error in Timeshift Video menu
  • Proper version naming of flashable zip :D

UPDATE(06-06-2014):

attachment.php


  • Temporarily disabled steadyshot in 4k video app.
  • Moved launcher icons from app drawer to Xperia Camera addons box
  • Updated libs to fix some low level errors in logcat
  • Replaced dependency libs with new Z2 firmware libs


How to install:

1. Make sure that your phone is rooted, no other camera mods & deodexed.
2. If you haven't yet... Apply superusermod either by modifying your system files or using xposed framework.
3. Install zip file using recovery.
4. Done.

UPDATE(06-05-2014): Everything working now(except steadyshot in 4k) thanks to @lagalaga
Edit: I reuploaded a new zip file that contains the SuperVideoCamera apk.



Also please take note that my patch is only tested on a Xperia Z1 Compact kitkat firmware. I haven't tested it on a Xperia Z1 yet so feedback from you guys would be appreciated. So I can publish the 60fps version if it works on majority of the users here. If it's not working please upload a stock version of the libs matching those on the patch so I could create a different one for you guys.

And as for the Xperia Z carefully try the patch first and if it's not working I need a clean stock system dump so I can have a look at if I can port it on your devices.
 

Attachments

  • 4kpatch120fps.zip
    9.6 MB · Views: 5,441
  • 4kpatch120fps-New(06-06-2014).zip
    11.2 MB · Views: 28,627
  • 4K-HFRv1.1.zip
    11.2 MB · Views: 6,873
  • 4K-HFRv1.2.zip
    11.2 MB · Views: 11,816
  • 4K-HFRv1.3.zip
    11.2 MB · Views: 109,524
Last edited:

PinG91

Senior Member
Jul 11, 2011
69
13
Chile
i tested the 4k-60frms. First open the apps seems to work but after push the red botton, the screen freeze and the video doesn't get saved. The second time the screen goes black. :c. tested on 757 custom rom kitslim. supersusermod. Z2 camport. Also, camera break.

Update-
@Riyal
After the reboot all is working. 4k-cam-timeshift.
 
Last edited:
  • Like
Reactions: Riyal

Riyal

Senior Member
Dec 16, 2011
3,038
1,770
Iloilo City
i tested the 4k-60frms. First open the apps seems to work but after push the red botton, the screen freeze and the video doesn't get saved. The second time the screen goes black. :c. tested on 757 custom rom kitslim. supersusermod. Z2 camport. Also, camera break.
@PinG91

Hi! After that please reboot and try timeshift video. Does it work? If no please send me a copy of your stock libs matching those on the zip so I could compare.

And oh make sure your camera is set to save videos on internal storage instead of sd card. class 8 and below cards can't cope up with the IO of 4k.
 
Last edited:
  • Like
Reactions: M7ammad

kantk20111

Senior Member
Feb 26, 2011
1,400
625
Edit: I reuploaded a new zip file that contains the SuperVideoCamera apk.

(Posted in general section and here for viewability)

I tried out your 60FPS Timeshift+4K video (the second one) with iHackers ROM KK, locked BL. Wiped dalvik cache during install.


I can confirm 4K video is working. It's working great! No hiccups whatsoever. It appears the audio lag present in the Z2 is not here either, but I can't confirm that since I don't have a Z2, but it looks like audio is synced fine!

Camera is also working fine, so is 1080P video. Phone gets really hot recording 4K but that is expected. Great, great stuff! Thank you! All we need is 120FPS Timeshift and we're set! :laugh:
 

Riyal

Senior Member
Dec 16, 2011
3,038
1,770
Iloilo City
Thanks for the feedback! And glad it's working! :D Anyways it's really weird that some users are facing issue with using 4k. In fact even @lagalaga is encountering this issue to think that he initiated the 4k port. This isn't device specific nor firmware specific so I having a hard time figuring out what's causing some of the issues.

And yes it's working fine on me too :D Not sure about the A/V sync issue on Xperia Z2 though I don't have that device too so I'm unaware of such.

And yeah I agree. I really want 120fps on my phone and also tap2wake I don't even care about 4k lol! Though progress is still progress. I hope this could attract some more devs to help us like @krabappel2548 since he was the first one who attempted this.

(Posted in general section and here for viewability)

I tried out your 60FPS Timeshift+4K video (the second one) with iHackers ROM KK, locked BL. Wiped dalvik cache during install.


I can confirm 4K video is working. It's working great! No hiccups whatsoever. It appears the audio lag present in the Z2 is not here either, but I can't confirm that since I don't have a Z2, but it looks like audio is synced fine!

Camera is also working fine, so is 1080P video. Phone gets really hot recording 4K but that is expected. Great, great stuff! Thank you! All we need is 120FPS Timeshift and we're set! :laugh:


---------- Post added at 11:52 AM ---------- Previous post was at 11:50 AM ----------

This News Made my day. A question though
-Does the mod do 1080p @60fps?
-Is there a 5 minute limitation on 4k video as the Xperia Z2?

ThanX

Hi! I'm not sure about 1080p @60fps. I would assume no. Does it exist on Z2? If yes then I think it would require a port of the regular camera app rather than the supervideo add on camera.

With regards to 5minute limit I haven't tried yet. You can flash the zip below though and try it for yourself. 9 to 10mb/s seems too big I don't think I have enough free space to test a 5minute 4k video though...
 
Last edited:

lagalaga

Senior Member
Oct 11, 2010
127
174
Thanks for the feedback! And glad it's working! :D Anyways it's really weird that some users are facing issue with using 4k. In fact even @lagalaga is encountering this issue to think that he initiated the 4k port. This isn't device specific nor firmware specific so I having a hard time figuring out what's causing some of the issues.

Yeah, it's weird, I am getting a black screen as well. Perhaps we have different superVideoCamera.apk files - I might have to try yours. I don't really care about 4k, though :) I think we should compare logcats.

My latest zip should enable 120fps and taking pictures - so maybe we can combine our magic. @olokos says the first zip I provided is necessary as well.
 

jancarlos1597

Senior Member
Oct 17, 2011
311
123
YAY!!!!!!!!!!


All is working man, thanks for this, been waiting for months :D


The only "problem" i have right now is that i can't edit videos on timeshift video app... i dunno why...

Then, everything is working alright.


Thanks you, and thanks @lagalaga for this.
 

kantk20111

Senior Member
Feb 26, 2011
1,400
625
YAY!!!!!!!!!!


All is working man, thanks for this, been waiting for months :D


The only "problem" i have right now is that i can't edit videos on timeshift video app... i dunno why...

Then, everything is working alright.


Thanks you, and thanks @lagalaga for this.

You have to use the in built video editor to slow down time. It doesn't work through the timeshift app.
 

lagalaga

Senior Member
Oct 11, 2010
127
174
Yeah, it's weird, I am getting a black screen as well. Perhaps we have different superVideoCamera.apk files - I might have to try yours. I don't really care about 4k, though :) I think we should compare logcats.

My latest zip should enable 120fps and taking pictures - so maybe we can combine our magic. @olokos says the first zip I provided is necessary as well.

Hopefully fixed, need libmmcamera2* - let me know @Chocolatetrain @Riyal @albertobom - obviously needs fresh system partition to show a difference. This should get it working for @Chocolatetrain (who pm'ed me).

UNTESTED! Flash at your own risk!
 

Attachments

  • camera_libs_flashable_1401941205.zip
    7.3 MB · Views: 143
Last edited:

Pablosch23

Senior Member
Mar 5, 2014
251
235
And as for the Xperia Z carefully try the patch first and if it's not working I need a clean stock system dump so I can have a look at if I can port it on your devices.
hi, I tested this on my xperia z, not working as expected, I can make a system dump of my stock rom tomorrow if you wish
 
Last edited:
  • Like
Reactions: Nauju

halleyrokz

Senior Member
Hi! I'm not sure about 1080p @60fps. I would assume no. Does it exist on Z2? If yes then I think it would require a port of the regular camera app rather than the supervideo add on camera.

With regards to 5minute limit I haven't tried yet. You can flash the zip below though and try it for yourself. 9 to 10mb/s seems to big I don't think I have enough free space to test a 5minute 4k video though...

Camera not available error popping up. What to do?
 

einfachgaer

Senior Member
Hopefully fixed, need libmmcamera2* - let me know @Chocolatetrain @Riyal @albertobom - obviously needs fresh system partition to show a difference. This should get it working for @Chocolatetrain (who pm'ed me).

UNTESTED! Flash at your own risk!

I've tested your zip in combination of the superVideoCamera.apk of Riyal. 4K and Timeshift Video 120 FPS seem to be working!! Only issue is that whitebalance seems to not work. Even the manual -2 -1 0 +1 +2 slider to brighten or darken the video doesn't change the output. Taking a photo works with whitebalance.

Great progress!!
 
  • Like
Reactions: lagalaga

kantk20111

Senior Member
Feb 26, 2011
1,400
625
I think I found a bug with Riyal's working 4k/60fps timeshift combo. When I activate SteadyShot in 4K and press the record button the whole app freezes and doesn't record anything. It works fine without steadyshot. Can someone please confirm?
 

jancarlos1597

Senior Member
Oct 17, 2011
311
123
I flashed "camera_libs_flashable_1401941205.zip" and It is working, but when i check the FPS, it's say 25 FPS WTF :|


Tomorrow i'll give it a look!
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 160
    Warning: This is currently only working on Xperia Z1 & Z1 Compact. This patch won't work on Xperia Z series and older devices.

    Latest version: 1.3
    Download latest version: Here

    Credits to @shem2409 for the video tutorial :D
    http://xdaforums.com/showpost.php?p=53314821&postcount=1



    Root Xperia Z1: http://youtu.be/zscUImoPLpM

    Deodex Xperia Z1 by flashing this in recovery:
    https://mega.co.nz/#!WgwRDQDa!UlO0Vx3FEHODmB8dUgmf_24cHpQ-6O6_zf5zhGpfktI

    Necessary downloads:
    1) Deodexing downloads (above)
    2) 120fps + 4K MOD: http://xdaforums.com/attachment.php?attachmentid=2786475&stc=1&d=1402194839
    3) Serajr Xperia Xposed (KK): http://repo.xposed.info/module/com.serajr.xperia.xposed.kk
    4) Xposed framework: http://repo.xposed.info/module/de.robv.android.xposed.installer


    Sample Timeshift Video (recorded with Xperia Z2)


    Changelog

    UPDATE v1.3:

    • Fix duplicate entries of 4k & Timeshift Video in camera add on selector box


    UPDATE v1.2:

    • Fix Timeshift Burst compatibility


    UPDATE v1.1:

    • Fixed force close error in Timeshift Video menu
    • Proper version naming of flashable zip :D

    UPDATE(06-06-2014):

    attachment.php


    • Temporarily disabled steadyshot in 4k video app.
    • Moved launcher icons from app drawer to Xperia Camera addons box
    • Updated libs to fix some low level errors in logcat
    • Replaced dependency libs with new Z2 firmware libs


    How to install:

    1. Make sure that your phone is rooted, no other camera mods & deodexed.
    2. If you haven't yet... Apply superusermod either by modifying your system files or using xposed framework.
    3. Install zip file using recovery.
    4. Done.

    UPDATE(06-05-2014): Everything working now(except steadyshot in 4k) thanks to @lagalaga
    Edit: I reuploaded a new zip file that contains the SuperVideoCamera apk.



    Also please take note that my patch is only tested on a Xperia Z1 Compact kitkat firmware. I haven't tested it on a Xperia Z1 yet so feedback from you guys would be appreciated. So I can publish the 60fps version if it works on majority of the users here. If it's not working please upload a stock version of the libs matching those on the patch so I could create a different one for you guys.

    And as for the Xperia Z carefully try the patch first and if it's not working I need a clean stock system dump so I can have a look at if I can port it on your devices.
    74
    I've seen dozens of threads about 4K recording and Timeshift video. None of them work. Let's keep all relevant DEVELOPMENT info here. It will be way easier for real developers and other people that could share some useful info or their attempts to get 4K & 120 FPS recording on other device than the Z2.

    If you can contribute, please do it here instead of your own threads. Working alone is much harder. Let's work together on this, so we could finally get it to work. That's what XDA is all about. :)

    Please don't spam this thread. I've made it to ACTUALLY get this finally working.

    Featured on:
    Softpedia
    gsmarena
    xperiablog.net
    androidbeat
    nextpowerup
    gadgethelpline - no link to this thread
    androidheadlines
    techshout
    sonyxperiaz.co.uk
    XDA :D


    Let me know about any others :D @lagalaga @Riyal - we're getting famous xD


    If you want to discuss about it or ask some questions about it then do it here in the link below and keep this thread clean:
    http://xdaforums.com/showthread.php?t=2768422
    27
    FAQ:

    Is this going to work on my xxx?
    For now it's only compatible with Z1 and Z1c on 4.4. We're working on fixing all of the bugs and then we'll try to bring it to more devices. Z Ultra will propably be the next device that will get this mod ported as it also boasts S800 chip.

    Does it work on CM11?
    You tell us, it's really fresh! :)

    How do I install it?
    1. Root your phone
    2. Make a nandroid backup in a recovery, just in case something goes wrong.
    3. Install xposed framework
    4. Install Serajr's modulemodule
    5. Enable Serjar's module after installing it.
    6. Reboot.
    7. Flash the latest zip from this post
    8. Enjoy!

    Why do I need Serajr's "Xperia Xposed (KK)" Module?
    Serajr's module contains the so-called "SuperUser mod". Please be aware that this is different from the SuperUser root management app. So, what does this mean?

    The .apks contained in this mod have a different signature from the original .apk files. This prevents them from using the extended camera functions added by Sony. Serajr's "Xperia Xposed" mod disables this signature verification. If you do not want to install the Xposed framework or Serajr's module, you can also disable signature verification by patching the services.jar. Please see DavidMKD's instructions here.

    I keep getting "Camera not available" errors in 4k or Timeshift Video
    You probably do not have SuperUser mod installed properly. If you are using Serajr's Xposed module, you need to make sure that the Xposed framework is installed properly. Just launch the Xposed app, click on the first menu it and make sure app_process and XposedBridge.jar are installed and highlighted in green. If it still does not work, make sure that Serajr's module is in fact activated. Yes, you need to activate a module after downloading it. This also requires a reboot after activating the module.

    My camera freezes when I record in 4k
    You probably have SteadyShot enabled. This is currently not supported. It's also a good idea to make sure you've flashed the latest version of this mod. The Steadyshot menu item is disabled in the APK, but sometimes the setting is already activated in the app's database. You need to go to app settings and clear data for the following apps (thanks @jasonx20ac):

    Cameracommon
    Cameras
    Camera extensions
    Camera
    Video

    Video is too dark in Timeshift Video/120fps
    olokos said:
    Try blinking 120 times per second. I bet you won't see anything anything even if you blink 10 times per second.. That's pretty much it with the camera.

    This is a hardware limitation, nothing we can do.

    How do I uninstall your mod
    You revert back to the backup you made just before you installed our mod. You did get a nandroid, right?[/QUOTE]

    xxx doesn't work, help/other random questions and stuff
    Don't post about it in this thread!!!
    If you want to discuss about it or ask some questions about it then do it here in the link below and keep this thread clean! :
    http://xdaforums.com/showthread.php?t=2768422


    What else needs to be done?
    For this moment only steadyshot doesn't work on 4k recording.
    Let me know if you have any other questions and I'll add them to the FAQ.

    Will this work on Z Ultra/Z/T/V etc?
    For now we will work on the Steadyshot and Z Ultra. Anything else that is not a sony device and is running older SoC than Snapdragon 800 won't be able to do 4k videos due to hardware limitations. 120fps MIGHT be possible on other devices than the S800 family, but first we'll have to deal with steadyshot or Z Ultra port. For now this is only working for Z1/Z1c.
    16
    Hi guys! :D Want a major easter egg in the patch? :p

    Do the following...

    1. From your homescreen open settings->Apps->All tab
    2. Look for the app Camera and select it
    3. Clear data
    4. Open Camera app
    5. Select manual mode
    6. Switch to video mode
    7. Open settings app and notice the difference :)
    @Ame123

    attachment.php
    14
    Download it from here
    Discuss/talk about it here.
    Thanks to me, @lagalaga and @Riyal .