Camera Mod [Higher Quality/Better]

TheEndHK

Senior Member
Apr 25, 2011
2,667
808
0
I decided to poke around today and figured out (cheers kevinrocksman & alexhc18) how to raise both the 4k and 1080p bitrates as well as 100% image quality on 4.4.2 TW.

Here is my modified SamsungCamera2.apk file with the following bitrates:

4k @ 80mbit
1080p @ 22mbit
192kbps audio for both
100% image quality (uncompressed)

Working great on my N9005 :)
Thanks finally got a mod on 4.4.2 but can you please raise the 1080P to 30mbit?
 

killa12222

Senior Member
Apr 1, 2012
363
143
0
Perth
Any chance of you uploading a quick video at 80mbit?
I would give you the video but the file size is humongous. Takes about 10mb per second of video! Quality is fantastic though, no more pixelation when panning quickly in 4k.

---------- Post added at 12:37 PM ---------- Previous post was at 12:36 PM ----------

Thanks finally got a mod on 4.4.2 but can you please raise the 1080P to 30mbit?
Sure thing. I'll get to it when I get home.
 
  • Like
Reactions: cdss

killa12222

Senior Member
Apr 1, 2012
363
143
0
Perth
Thanks again. If you have more time, please make it to unlimited 4k recording, so no more time limiting.
No worries. I'll see what I can do :)

---------- Post added at 02:20 PM ---------- Previous post was at 02:19 PM ----------

Nly snaPdragon?....:mad: :what:

via Tapatalk
Yeah only snapdragon..

---------- Post added at 02:20 PM ---------- Previous post was at 02:20 PM ----------

Maybe an apk for TW 4.3

Sent from my SM-N900T using Tapatalk
Hmm in OP?
 

CekMTL

Senior Member
May 16, 2011
757
2,002
0
Cork
PreCog.me
Ossom MOD and thank you very much killa12222 !

So, from my testings and checks with mediainfo, it seems that 4K is still limited to 50Mbps, but the Audio is in fact 192Kbps now.
For 1080p @ 30 fps, it is 30 Mbps & 192 Kbps audio, so spot on! :)
As for 1080p @ 60 fps it is still limited to around 28 Mbps and 128 Kbps Audio, so I presume this one wasn't touched.

I think maybe I missed something else that I may have needed to do apart from dropping the modded apk?

Is it possible to know exactly what to modify inside the apk so I can play around and adjust it to my needs?
Thank you very much!! :)

PS : Running stock TW N9005XXUENB3.

PS2 : Interesting enough, I edited the media_profiles.xml and the 4K is now 80Mbps. Still would like to know how to edit the camera.apk to change the settings myself.
 
Last edited:

kevinrocksman

Senior Member
Oct 18, 2009
3,804
4,456
0
No worries. I'll see what I can do :)

---------- Post added at 02:20 PM ---------- Previous post was at 02:19 PM ----------



Yeah only snapdragon..

---------- Post added at 02:20 PM ---------- Previous post was at 02:20 PM ----------



Hmm in OP?

well then..lol i thought this thread was long gone. But thank you killa12222. I may just make this a devb thread and make you an OP. I have since lost all my 4.3 files... and all my files to be exact due to a crash. But there is someone by the name of alexhc that has the 4.3 version somehwere around here. If i find the thread ill post it.

So you modified the bitrate? What about length?
 
  • Like
Reactions: killa12222 and cdss

killa12222

Senior Member
Apr 1, 2012
363
143
0
Perth
Ossom MOD and thank you very much killa12222 !

So, from my testings and checks with mediainfo, it seems that 4K is still limited to 50Mbps, but the Audio is in fact 192Kbps now.
For 1080p @ 30 fps, it is 30 Mbps & 192 Kbps audio, so spot on! :)
As for 1080p @ 60 fps it is still limited to around 28 Mbps and 128 Kbps Audio, so I presume this one wasn't touched.

I think maybe I missed something else that I may have needed to do apart from dropping the modded apk?

Is it possible to know exactly what to modify inside the apk so I can play around and adjust it to my needs?
Thank you very much!! :)

PS : Running stock TW N9005XXUENB3.

PS2 : Interesting enough, I edited the media_profiles.xml and the 4K is now 80Mbps. Still would like to know how to edit the camera.apk to change the settings myself.
Yeah I didn't edit 1080/60p. And yeah, media_profiles.xml defines the upper limits.

Sure, I learnt it from kevinrocksman's other thread here. I used alexhc18's tools from post #94 to compile/decompile the classes.dex file. The file to edit is found in com\sec\android\app\camera\MediaRecorderProfile.smali. Post #79 shows what the values mean. Also, inside the MediaRecorderProfile.smali file you should see the profiles line ".field private static final PROFILE_1920_1080:I = 0x0", 0x0 corresponds to the first array count so in this case it's line 773. Another example is ".field private static final PROFILE_1920_1080_60FPS:I = 0xb" would be counting 11 arrays down from from line 773 which would bring you down to line 927.

Hope this helps! :)

---------- Post added at 11:12 AM ---------- Previous post was at 11:09 AM ----------

well then..lol i thought this thread was long gone. But thank you killa12222. I may just make this a devb thread and make you an OP. I have since lost all my 4.3 files... and all my files to be exact due to a crash. But there is someone by the name of alexhc that has the 4.3 version somehwere around here. If i find the thread ill post it.

So you modified the bitrate? What about length?
I was bored one weekend and poked around haha. Your thread here helped me heaps!
That would be awesome, thanks.
4.4 files were basically the same except for the slight change in smali layout.

Yep, just bitrate for 1080 and 4k so far. Haven't tried to modify the length yet. I'll see what I can do.
 
Last edited:
  • Like
Reactions: TheEndHK and cdss

killa12222

Senior Member
Apr 1, 2012
363
143
0
Perth
EXCELLENT!!!!

Thank you soooo much killa12222 !!!
Now let's see what I can do and how many times I'm gonna break it xD
Have fun there!! Also, thank kevin and alexhc18 :D

---------- Post added at 09:22 PM ---------- Previous post was at 09:21 PM ----------

Thanks again. If you have more time, please make it to unlimited 4k recording, so no more time limiting.
I poked around again today and tried modifying the time and size but I would only get "Camera has stopped" when opening the app :/
 
  • Like
Reactions: TheEndHK

TheEndHK

Senior Member
Apr 25, 2011
2,667
808
0
well then..lol i thought this thread was long gone. But thank you killa12222. I may just make this a devb thread and make you an OP. I have since lost all my 4.3 files... and all my files to be exact due to a crash. But there is someone by the name of alexhc that has the 4.3 version somehwere around here. If i find the thread ill post it.

So you modified the bitrate? What about length?
Can you share some idea for killa12222 to make unlimited 4k recording? He got failed on his first attempt. Though you lost all source files but I think there must be some tricky things....

---------- Post added at 11:25 PM ---------- Previous post was at 10:57 PM ----------

I poked around again today and tried modifying the time and size but I would only get "Camera has stopped" when opening the app :/
Still Thanks :good: Can you share the method to edit 100% JPG as well?

Any idea on [email protected] 30Mbit modding? I found the quality really dropped compared to [email protected] at 30Mbit. Double frame rate spend a lot of videobit. Is that 30Mbit is the max. supported? HTC does support up to 40Mbit 1080P modding on all phones.

For the unlimited recording, I think you can try reverse engineering and learn from it for the 4.4 camera. Decompile the OP of 4.3k camera.apk take out all source files and use some professional editor(like UltraEdit) to compare the different to the decompiled stock 4.3k camera.apk one by one file.
 
Last edited:

killa12222

Senior Member
Apr 1, 2012
363
143
0
Perth
Can you share some idea for killa12222 to make unlimited 4k recording? He got failed on his first attempt. Though you lost all source files but I think there must be some tricky things....

---------- Post added at 11:25 PM ---------- Previous post was at 10:57 PM ----------



Still Thanks :good: Can you share the method to edit 100% JPG as well?

Any idea on [email protected] 30Mbit modding? I found the quality really dropped compared to [email protected] at 30Mbit. Double frame rate spend a lot of videobit. Is that 30Mbit is the max. supported? HTC does support up to 40Mbit 1080P modding on all phones.

For the unlimited recording, I think you can try reverse engineering and learn from it for the 4.4 camera. Decompile the OP of 4.3k camera.apk take out all source files and use some professional editor(like UltraEdit) to compare the different to the decompiled stock 4.3k camera.apk one by one file.
I tried editing parts based on what Kevin and Alex discussed on the other thread but it didn't work in my case. I have no Java knowledge so I can't do much further..

For 1080p/60fps, the video quality is slightly worse as it looks to be mildly upscaled compared to the native 1080/30p. Raising the bitrate would not be much of a help I reckon. Currently 1080/60p sits at ~28mbit which I think is plenty.

From my initial poking around, the files are relatively different hence why the 4.3 mod isn't compatible with 4.4.
 

kevinrocksman

Senior Member
Oct 18, 2009
3,804
4,456
0
Can you share some idea for killa12222 to make unlimited 4k recording? He got failed on his first attempt. Though you lost all source files but I think there must be some tricky things.....
I have very limited knowledge on how to edit this and plenty of us have tried and failed at getting unlimited. 4k we managed to get to around 15 minutes (because of the size limit 4gb), as soon as it hits 3.8gb it stops recording we found the hex for FFFFFFFF (4294967295 bytes) but have changed it in multiple locations to no avail
 

TheEndHK

Senior Member
Apr 25, 2011
2,667
808
0
For 1080p/60fps, the video quality is slightly worse as it looks to be mildly upscaled compared to the native 1080/30p. Raising the bitrate would not be much of a help I reckon. Currently 1080/60p sits at ~28mbit which I think is plenty.
Higher frame rate does need more bitrate. A poor H.264 encoder will need around 50% more videobit to achieve the same quality if fps increased to 60 from 30. :laugh:

---------- Post added at 03:46 AM ---------- Previous post was at 03:23 AM ----------

I have very limited knowledge on how to edit this and plenty of us have tried and failed at getting unlimited. 4k we managed to get to around 15 minutes (because of the size limit 4gb), as soon as it hits 3.8gb it stops recording we found the hex for FFFFFFFF (4294967295 bytes) but have changed it in multiple locations to no avail
You're right. Default 50Mbit is roughly 6MB/s, you actually only got 11 mins on 3.8GB. If raise the bitrate to 80Mbit will probably hit 3.8GB after 6.6 mins.
 

kevinrocksman

Senior Member
Oct 18, 2009
3,804
4,456
0
Higher frame rate does need more bitrate. A poor H.264 encoder will need around 50% more videobit to achieve the same quality if fps increased to 60 from 30. :laugh:

---------- Post added at 03:46 AM ---------- Previous post was at 03:23 AM ----------



You're right. Default 50Mbit is roughly 6MB/s, you actually only got 11 mins on 3.8GB. If raise the bitrate to 80Mbit will probably hit 3.8GB after 6.6 mins.
Ya so the thing we need to figure out is what is limiting the filesize


Does it work on a Nexus 4?
this is only for the note 3 unless the apk allows (from the nexus, the note 3 apk will note work with any other to m knowledge)
 
Last edited:
  • Like
Reactions: TheeWolf

TheeWolf

Senior Member
Oct 8, 2011
871
187
0
this is only for the note 3 unless the apk allows (from the nexus, the note 3 apk will note work with any other to m knowledge)
Shouldn't this be in the Note 3 forum than? I was surprised to see it in the general Android forum and see that the file's name is samsungcamera.apk (something like that). Didn't make any sense.