yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Android Development] tomascus:
Update: 110 Mbps video bitrate, trying higher. Seems pointless, but it's for the lols.

Update 2: Seemed to hit a hard ceiling at 160 mbps video bitrate.
[Xperia Z1 Android Development] jancarlos1597:
God damn!!!!!!!!!!!!!! D:

"PS. do you guys think the bitrate for 1080p @ 60 fps and Timeshift video should be modded?"

Yes, it would be great :D
[Xperia Z1 Android Development] TheEndHK:
I've already mod it personally for 1080@60fps and TimeShift Video both at 80Mbit/s now, I just tested all working correctly.

Copy them into /system/priv-app and set the right permission and remember reboot to recovery clean cache and dalvik cache. The SemcCamera.apk comes from Chocolatetrain's V7 8MP and SuperVideoCamera.apk from OP mod(80M 4k ver). Should work on both 4.4.2 and 4.4.4.

You guys please download both apk. SuperVideoCamera.apk only handle 4K and Timeshift stuffs, no 1080P@60fps.
[Xperia Z1 Android Development] tomascus:
Well that's awkward, you have successfully made post 2 quite redundant.
[Xperia Z1 Android Development] jancarlos1597:
Wow, very nice bro, i will test it, and report it back tomorrow, thanks :D

---------- Post added at 10:23 PM ---------- Previous post was at 10:08 PM ----------

My phone got in a bootloop now, haha WTF D: D:. i wiped cache and dalvik, and setted the correct permissons, idk what's happening bruh :s

---------- Post added at 10:31 PM ---------- Previous post was at 10:23 PM ----------

Got it working, thanks.
[Xperia Z1 Android Development] TheEndHK:
Please feel free to make a flashable zip for them #2, I don't have time to do that...lol

I've done some testing about high bitrate but it mainly improves the outdoor quality while indoor sure got improvement but not very significant.

720P is still 720P even boosted the bitrate to 80M the TimeShift result still not decent though more acceptable now.

I think 4K 160M still does very slightly improvement but will only happens at outdoor with real good direct sun light, not worth for that file size. People will need a fast 64GB SD card with 20MB/s write speed to handle it.

I don't know our s800 does support up to 160M. Actually, I've tried to mod the 1080p in the past but got artifacts when I reached 90M and anything above 90M seems will drop frames. I'm real surprised the 4K works well under 160M. I think the coding in 1080P(not sure about 720P) doesn't use the whole CPU potential.
[Xperia Z1 Android Development] Thechiller86:
[MENTION=4006638]TheEndHK[/MENTION]

Thanks for modding it for better bitrate in Timeshift video ?
[Xperia Z1 Android Development] tomascus:
Yeah i'll do that mate.

160 Mbps was just for fun, I just wanted to see how high I could go.

What i'm going to do in my free time is probably start debugging the camera and trying to reverse engineer the proprietary libs - already have linux environment setup but low level assembly language is very hard for me to understand. So far I tried to mod the sharpness values in camera.msm8974.so but no luck so far. As far as I know, Jinshu was the one who was really good at doing these camera mods and modifying libs.
[Xperia Z1 Android Development] dyepnoodle:
Dude im using this on my Z1 and im going to try it on my Z2 later, what file should i download?
[Xperia Z1 Android Development] TheEndHK:
1080P@60fps got real impressive result in every condition now while TimeShift and 4K only improvement been found at outdoor. Indoor also got improvement but little to none, the limit is on sensor and h264 encoder, they have been already pushed the hardware to limit at low light.

---------- Post added at 10:19 PM ---------- Previous post was at 10:17 PM ----------

just the one at #2
[Xperia Z1 Android Development] BlackSoulxxx:
So anybody wanna create AROMA installer which give you the decision to choose 2 mod to install in one file. Anyone? :P

I do but lots of error and a awful theme:rolleyes::rolleyes::rolleyes:
[Xperia Z1 Android Development] tomascus:
Post 2 contains all mods.
[Xperia Z1 Android Development] TheEndHK:
Yup, it'll spend you lots of time so I just don't have time to touch it. The situation on other brands(HTC, LG, Samsung) are all much better, not to mention their libs and camera.apk are well written and also easier to mod in the first place.

Sony is rubbish you will need to help Sony to debug /system and kernel. For the sharpness, the codes in kernel usually plays the major role from what I'm understanding on HTC, not sure about Sony.
[Xperia Z1 Android Development] pepeo123:
could someone record a video with high bitrate and other with normal bitrate of the same location, open it in media player and save a picture of it in bmp(uncompressed) and post it here so we can compare the quality of both?
[Xperia Z1 Android Development] TheEndHK:
No offensive really. I know you are from z2 board but if you have much money to buy a Z2 and no money to get a SD card then I'm really surprised. I can't believe people on z2 board even asked to lower the bitrate below the stock.......

The improvement at outdoor is noticeable but indoor only minor, hope this answer could help. Or you can backup the original SemcCameraUI.apk and SuperVideoCamera.apk before you flash the mod.
[Xperia Z1 Android Development] pepeo123:
lol you interpreted it completely wrong. i dont have a z2 actually, and i wanted this comparison between the original bitrate and the high bitrate because im interested in the quality improvements. i am really interested in the quality achievable by this high bitrate
[Xperia Z1 Android Development] tomascus:
Try it yourself if you're interested since a picture won't completely capture VIDEO quality.
[Xperia Z1 Android Development] TheEndHK:
http://xdaforums.com/xperia-z2/general/testers-z2-4k-bitrate-mod-t2845509

Don't realize you don't actually own Z2 but please don't doubt our skills if it doesn't get improvement at all then we won't release the mod because people isn't idiots. The result is noticeable.

It is required to push high bitrate because the H264 encoder isn't good on z1/z2 compared to HTC or Samsung. You should try it out before raising questions.
[Xperia Z1 Android Development] sheraro:
can we have 80mbps/s but only for 1080/60fps and timeshift (keep 4k default) ?
[Xperia Z1 Android Development] Thechiller86:
...just read the op!
[Xperia Z1 Android Development] tomascus:
urgh I don't have time to mod it back to 55 mbps
[Xperia Z1 Android Development] pepeo123:
i know, but if you take a bmp image of the video it will save the exact frame of the video without any kind of compression, of course it does not completely tells us the video quality, but the frame by frame comparison is possible

im not doubting anyone, i was just curious about how much more quality this could bring. like you said sony h264 encoder isnt that good compared to others, gs5 for example can capture lower bitrate videos but with the same or better quality. and with this mod we could push the z1/z2/z1c to the limits and pwn the other phones

i dont have the z1c anymore to test, i sold mine but i am interested in this since i plan to buy a new xperia
[Xperia Z1 Android Development] TheEndHK:
It won't really blow the air after increased bitrate so we simply just got no one want to spend time do frame by frame comparison, because the video encoder is just too suck. Sadly, I'll only call the quality at 80M just about same level with S5 at stock bitrate but with larger sensor and aperture rate, the indoor quality should somewhat better than S5.

There was a news claimed z3/z3c will get major quality improvement on camera software so if you are looking for a new xperia, you should wait for z3/z3c but we will also try port it to z1/z1c.
[Xperia Z1 Android Development] CM17X:
I've tried this )Most exactly thge flashable zip at the second post of this thread= and for some reason it didn't work, my camera just stopped working and i'm not able to use it.

Im on stock 108 Nut's and deodexed.
[Xperia Z1 Android Development] TheEndHK:
Maybe you should try clean all camera related settings in settings/apps first and reflash it again. Did you clean cache and dalvik cache after flashed?

If it is not working again, try install the two apks manually with root explorer and clean cache and dalvik cache.
[Xperia Z1 Android Development] Thechiller86:
Maybe you have two apks of each. Take a look in the system/apps and system /priv-apps folder and search for semccameraui.apk and supervideocamera.apk if it's in both folders
[Xperia Z1 Android Development] TheEndHK:
Well, I really see better quality on 4K both outdoor and indoor, though indoor isn't noticeable but mainly the artifacts/noises appeared to be smoother and also the video a little bit sharper, it doesn't let you capture more details indoor but will give you an overall better feeling. Outdoor is even more better. I think 80Mbit 4K is worth.

The improvement on 1080@60fps is superb! On the other hand, I don't real found any major improvement on TimeShift only slightly better.
[Xperia Z1 Android Development] CM17X:
None of these methods have worked for me. I did clear and wipe after flash, but didn't work.

I have just a file of each into priv-app.

For the record, I am flashing it over Chocolatetrain V7 mod, in case it matters.
[Xperia Z1 Android Development] Thechiller86:
Does chocolatetrains v7 work for you?

Because I installed this bitrate mod over v7 too. And I don't have any problems.

As I was on v7, I have just cleared cache of the camera apps. Than deleting the 2 apks in the priv-app folder, download the 2 apks from TheEndHKs post on page two and moved it into system. And than move it to priv-apps and set premissions to 0644. Reboot and finish. At the first start of the camera apps I there was no Manuel camera mode, but after restarting the app all was perfect ?

Sorry for my English, hope it helped
[Xperia Z1 Android Development] tomascus:
I listed his mod as a base requirement.

I just flashed the zip in post 2 and faced no issues.
[Xperia Z1 Android Development] CM17X:
Yes, Chocolatetrain mod works perfectly on my device.

What i didn't was delete the two apps first. I'll try that move later.

Just a question. You have to leave a copy of both into system and another copy on priv-apps? Cause that move is new for me.

Replacing both files on priv-apps didn't worked for me before.

After clean the camera apps related (Camera, Cameras, Cameracommon, Camera Extensions) I flashed the flashable zip, but all what I got was no camera icon.
[Xperia Z1 Android Development] Thechiller86:
[MENTION=5271336]CM17X[/MENTION]

No, don't copy it from system to priv-apps, you have to move it. I don't know if this way is relevant, but long time ago somebody helped me with this way.

Edit: cleaned also data from video in apps?
[Xperia Z1 Android Development] dyepnoodle:
Works on Z2 (2nd post) the only problem is the Steady Shot in 4k is not avail if this mod is used in Z2.
[Xperia Z1 Android Development] tomascus:
Can you please send me your stock SuperVideoCamera.apk from system/priv-app?

or alternatively "adb pull system/priv-app/SuperVideoCamera.apk"
[Xperia Z1 Android Development] TheEndHK:
This SuperVideoCamera.apk should also come from Chocolatetrain's 4k mod V7 and he disabled the SteadyShot because it doesn't work on z1/z1c(I think mainly is the kernel problem, it won't work without also port the z2 kernel).

Upload your Z2 original SuperVideoCamera.apk from 17.1.2.A.0.314 and wait us to mod it for you.

---------- Post added at 10:44 PM ---------- Previous post was at 10:39 PM ----------

I think he forgot to wipe Video's apps data and I don't get what is no camera? If he refer to the camera icon in camera widget, then yes they may disappear but after launched the camera first time they will come back thereafter.

---------- Post added at 10:47 PM ---------- Previous post was at 10:44 PM ----------

lol ... my computer isn't compatible to you. I will mark it "CM17X" please don't download next time j/k :D
[Xperia Z1 Android Development] CM17X:
Dang, dude, you want to make me feel "special". Tahnk you! :D

Now, being serious, i think i found the problem, i was trying to use this (Flasshable zip or replacing the apk's) over a previous nandroid i've done with the other timeshift mod. Seems like i missed the right nandroid. Now is working like a charm.

But... I have some doubts. First of all, the 80 bitrate is just for the 120fps video or for the video resultant from the timeshift editor? Because i've compared a video before the mod and another after applied your mod, and i can't see any difference.

The other question is, can we have the 20MP on Superior Auto just like Chocolatetrain mod had on V7? I really miss it, and now after your mod it's gone... gone forever? Hope dont.
[Xperia Z1 Android Development] Chocolatetrain:
The other question is, can we have the 20MP on Superior Auto just like Chocolatetrain mod had on V7? I really miss it, and now after your mod it's gone... gone forever? Hope dont.[/QUOTE]

Yeah I'll make it with the 20mp version and post it in my thread, I've got permission hahaha
[Xperia Z1 Android Development] CM17X:
Yeah I'll make it with the 20mp version and post it in my thread, I've got permission hahaha[/QUOTE]

So, what are you waiting for, man? A heart attack for me? :P

Thank you!
[Xperia Z1 Android Development] TheEndHK:
The 80Mbits/s is for all 4K, TimeShift Video and 1080p@60fps. But if after timeshift editor modified then I don't promise, never tried, it may save it at a lower bitrate?? Why I see you 40Mbit? Your rom seems very weird and many bugs, I'll suggest to setup from scratch again.

It seems only 8MP will utilize the Bionz, so I never suggest to use 20MP. I know 20MP got a bit more details but it will hurt the focus, it's not worth.

---------- Post added at 03:17 PM ---------- Previous post was at 03:07 PM ----------

Chocolatetrain told me he will make it in the next ver but since 4.4.4 on z2 got delayed again so the next ver probably will available next month....lol

---------- Post added at 03:21 PM ---------- Previous post was at 03:17 PM ----------

http://xdaforums.com/xperia-z2/development/rom-patch-deodex-zipaling-4-4-2-d6543-t2847594

Maybe you can check that if the SemcCameraUI.apk and SuperVideoCamera.apk in the last Z2 OTA(17.1.2.A.0.314) got any updates...
[Xperia Z1 Android Development] CM17X:
Nah, no, man, no bugs at all. Itr was just a BIG mistake by my side. I was using a nandroid of a rom which had another mod and no Chocolatetrain mod, so that's why it wasnt working.

Yes, you can see that one of my vids are 40Mbit, but they all are after the Timeshift editor. The video recorded before pass it on the Timeshift video is 80Mbits
[Xperia Z1 Android Development] TheEndHK:
I've confirmed after editing it will save at 40M. I tried to find any setting to force it save at 80M but failed to find it in SuperVideoCamera.apk. I think it used some outsider apps to do editing which I have no idea....
[Xperia Z1 Android Development] tomascus:
Are you guys talking about the in-app Timeshift editor after film is captured or the one used after in gallary?
[Xperia Z1 Android Development] CM17X:
Part of both.

1 - The video captured with the Timeshift App is saved to the Gallery at 120fps with 1080 and 80Mbits. That's the resultant video that you can find after use the App.

2 - If you use the Timeshift video editor to "edit" the video and add slow motion, when you press saved there will be another video saved into the gallery, and that's the one saved to 40.5 or 40Mbits.
[Xperia Z1 Android Development] tomascus:
As you can see, it launches com.sonymobile.moviecreator, which should be SomcMovieCreator. Time to dig.
[Xperia Z1 Android Development] TheEndHK:
Not totally correct. Yesterday Ive tested to use Movie Creator and it can save at 80M. But we can still look into that apk.
[Xperia Z1 Android Development] Shivatink:
time shifting video to 180fps r 220

Was there any chance of increasing time shifting video fps to 160 r 220 something like that .....
[Xperia Z1 Android Development] CM17X:
No, it goes beyond the hardware provided.
[Xperia Z1 Android Development] Perfectdevil:
Will this mod still work on .133??
[Xperia Z1 Android Development] hasona:
So I just did a quick test to just see differences when I zoom in on my PC and it looks better.

Here are my test videos, obviously not the best but I'll see what I can do tomorrow with some flower videos which should make it more apparent

Taken on my Z2

Original 4k https://www.flickr.com/photos/108213427@N06/14785854107/

80mbit 4k https://www.flickr.com/photos/108213427@N06/14972033762/
[Xperia Z1 Android Development] eddvys:
What are the advantages of using more bitrates than it actually is? I read somewhere that increased bitrates only takes up more space but does not provide any performance increase. Sorry but I'm just curious as 4K video takes a lot of space already I don't want to waste my space if it doesn't provide any good. :good: :angel:

EDIT: Just seen a comparison from [MENTION=3367278]hasona[/MENTION] and 80mbit look well smoother, but what does the changes do exactly?
[Xperia Z1 Android Development] CM17X:
To look smoother.
[Xperia Z1 Android Development] hasona:
Higher bitrate mostly means that you loose unwanted grain, artifacts and compression which is caused because of the fact that bandwidth isn't too high. Think of it like netflix streaming where it adapts depending on your bandwidth and it pushes out different looks only difference is that they keep it to resolution grades instead of having a 1mbit/s 1080P streamwhich looks like **** they rather give you a 480P stream that looks good.

Note: Its not entirely the same but its a similiar process

55mbit/s in itself looks already good enough for a lot of people and that is not mentioning that not many have 4K enabled TVs, but upon a closer look into video you will see less artifacts in a original 80 video than on a 55 one

Of course there is ceiling where having a enourmous amount of bitrate won't actually do you any favours and in those cases you are just waisting memory space, so if you are completely happy with the 55mbit/s(30mbit/s on 1080p) then there is absolutely no reason to sacrifice space for unwanted extra bitrate
[Xperia Z1 Android Development] darkflyer1983:
Does it work on Z1 compact?

Thanks for the great camera mod. just wondering if it will work Z1 C (kitslim rom for example)? since Z1 and Z1C have almost same hardware and software
[Xperia Z1 Android Development] eddvys:
Very clear and we'll explained thank you sir +1 for you ?
[Xperia Z1 Android Development] CM17X:
Ye, it works
[Xperia Z1 Android Development] TheEndHK:
Description from hasona is correct. 80Mbit will only improve noises, compression artifacts and video looks a little bit sharper. Actually, it is exactly the same idea with shooting photo for Best quality or Good quality(160M is Ultra quality). Good quality at 55Mbit should nearly same with Best mode 80Mbit but comes with a bit more noises and slightly softer. That's pretty much about it.

Most people should satisfy with Good quality but if you got a large and fast sdcard, it has no harm to use 80Mbit.
[Xperia Z1 Android Development] Jhon998:
You can't be sure if you are last one...
[Xperia Z1 Android Development] mharckk:
he's referring for reserving post. :D
[Xperia Z1 Android Development] tomascus:
lol yeah, i'm planning on releasing something else but struggling to find free time.
[Xperia Z1 Android Development] Jhon998:
Okay okay
[Xperia Z1 Android Development] Lasantha:
Are you deodexed?
[Xperia Z1 Android Development] jcsy:
what are the steps to REVERT this mod, if one day I need the stock one again :D

nice video btw, what game is that :D
[Xperia Z1 Android Development] hasona:
Well I had a backup made before fashing this one so that's one way. Otherwise you could ask someone here to provide you the original unmodded versions of the apks(SemcCameraUI.apk and SuperVideoCamera.apk) I would have sent them if I wasn't using the mod but someone should be a ble to help you.

The game is Plants vs. Zombies Garden Warfare(PS4) and it's one crazy game I tell you
[Xperia Z1 Android Development] jcsy:
how about the APK's from a deodex zip file (444mb) and taking them from the /system/priv-app/ folder ?

:D

i see it inside there
[Xperia Z1 Android Development] hasona:
Well you could always abckup the mod and try resoring them from the zip :P
[Xperia Z1 Android Development] a1b2c3901:
Yeap:)
[Xperia Z1 Android Development] Croize:
Is this gonna work on z2 ?? :) And will it work on complete stock?? and does 160mb works good ?? :)
[Xperia Z1 Android Development] tomascus:
It breaks steadycam on 4k resolution, better not use it.
[Xperia Z1 Android Development] Croize:
But i could right ? or my rom NEED Deodxed ?
[Xperia Z1 Android Development] tomascus:
yes, you can
[Xperia Z1 Android Development] tomascus:
yes, you can, need deodex
[Xperia Z1 Android Development] dryla:
Can somebody do bitrate at 80mb/s in 1080p@60fps and 720p@120fps? I can't find lines to edit some smali files, would be grateful :)

I changed only 1080p@30fps resolution bitrate, Audio at 500kb/s and is better than original, so I want this to other resolutions.

Thanks anyway.

P.S. This is for Xperia Z2

Sorry for my bad English :D
[Xperia Z1 Android Development] tomascus:
smali\com\sonymobile\android\addoncamera\supervideo\parameters\VideoSize$VideoProfile$Builder.smali

everything should be in there, bottom half written in the usual hexadecimal format.
[Xperia Z1 Android Development] dryla:
I can't find this line, seriously.

Maybe it isn't for X2.
[Xperia Z1 Android Development] tomascus:
dude I just decompiled your file and I see everything...

oh yeah, changing these lines don't always do magic..

.line 301
const v2, 0x3473bc0

iput v2, v0, Landroid/media/CamcorderProfile;->videoBitRate:I

goto :goto_0

.line 305
:pswitch_1
invoke-static {v3}, Landroid/media/CamcorderProfile;->get(I)Landroid/media/CamcorderProfile;

move-result-object v0

.line 306
const v2, 0x1c9c380

iput v2, v0, Landroid/media/CamcorderProfile;->videoBitRate:I

.line 307
const/16 v2, 0x3c

iput v2, v0, Landroid/media/CamcorderProfile;->videoFrameRate:I

goto :goto_0

.line 311
:pswitch_2
const/4 v2, 0x5

invoke-static {v2}, Landroid/media/CamcorderProfile;->get(I)Landroid/media/CamcorderProfile;

move-result-object v0

.line 312
const v2, 0x2faf080

iput v2, v0, Landroid/media/CamcorderProfile;->videoBitRate:I

.line 313
const/16 v2, 0x78

iput v2, v0, Landroid/media/CamcorderProfile;->videoFrameRate:I

goto :goto_0

.line 325
.end local v1 #quality:I
:cond_2
iget-object v2, p0, Lcom/sonymobile/android/addoncamera/supervideo/parameters/VideoSize$VideoProfile$Builder;->mInOutputFormat:Ljava/lang/Integer;

invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

move-result v2

invoke-direct {p0, v2}, Lcom/sonymobile/android/addoncamera/supervideo/parameters/VideoSize$VideoProfile$Builder;->setupOutputFormatWithFormat(I)V
[Xperia Z1 Android Development] dryla:
Ok, so how change bitrate in this? I'm green in modding codes, and if You can do this, can You upload files with bitrate at 80mb/s?
[Xperia Z1 Android Development] tomascus:
everyone has to start from somewhere, change the strings like:

const v2, 0x1c9c380

0x1c9c380 corresponds to 30000000 in decimal, which is 30 Mbps - the bitrate for 1080p60 video.

Example - you want to change to 60 Mbps, which is 60000000 or 0x3938700 in hexidecimal:

const v2, 0x3938700

HINT: Use google

Quick rundown:

const v2, 0x2faf080 (constant of v2 is set to 0x2faf080)

iput v2, v0, Landroid/media/CamcorderProfile;->videoBitRate:I (put this value v2 into VideoBitrate)

const/16 v2, 0x78 (put 16-bit value 0x78 into v2)

iput v2, v0, Landroid/media/CamcorderProfile;->videoFrameRate:I (put this value v2 into VideoFrameRate)
[Xperia Z1 Android Development] dryla:
I do everything step by step and Camera app is always force stop (clearing data app isn"t help) Would be grateful if You do this, change video bitrate 60mb/s in 720p@120fps and 1080p@60fps.I can't do this always is broken file, please man help me :)

I want to make my first rom for Z2 and to do this I must change video bitrate to 60mb/s. If I make this rom I write your credits for help :) (if You want, your choice) :laugh: