yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] skeletronz:
MT4GS

Really awesome work on this! I was under the impression that you had to upgrade to Lollipop + wait for updated drivers (or just get a N5/N6/OPO) in order to shoot raw, so this is pretty exciting.

How are you editing dcraw.c to support converting RAW files from new phones? I managed to get FreeDCam v2_1.2 installed on my myTouch 4G Slide (HTC Doubleshot) and took some raw images without any issues, but when I try to use dcraw I get an error saying that dcraw was unable to decode the RAW file.

I've attached a zipped up camera.parameters.txt from CineDroid and a sample RAW in case you want to have a look.

EDIT: I think I've found the struct where you're adding info. Now I just need to figure out what lf, cf, max, and flags are supposed to be...
[Android Apps and Games] defcomg:
Here you go

Added MT4G

This Version Replaces the One S as the both have the same identifier in dcraw but the MT4G has a different Bayer order.

About How I add devices I explained in some earlier post on this thread lol too lazy to look for it hehe.
[Android Apps and Games] defcomg:
yup its doable I had made attempt to add it to rawtherapee but had issue with cmake files and mingw but the source can be patched infact rawtherapee uses libraw lib version of dcraw and I had that patched just never got around to fixing mingw
[Android Apps and Games] skeletronz:
Thanks! Any chance you could post the updated dcraw.c or the modified struct line?

My decoded RAW file has some coloration issues... it looks like red and blue are inverted, but I can't figure out if I can fix that with -r values or not. Do you have any ideas? I attached an example RAW (zipped) and its decoded JPEG, featuring Bach sitting on a stapler.

My dcraw cmd:

dcraw_x86_x64.exe -v -a -T IMG_20141211_174018_raw.raw
[Android Apps and Games] defcomg:
Try Use DCRAW Ui then change config to Xperia L / HTC Double

Settings > Xperia L / HTC Double Shoot Button > Save > Click back Icon "<" then drag or select file and start conversion.

but will post update dcraw.c in a min lemme just add some comments in it
[Android Apps and Games] skeletronz:
I tried the UI's MT4GS parameters and got a similar result, but it's a deeper blue (for the record, the background should be gray and Bach's garb is teal/light blue, not orange). I'll play around with different dcraw -r values more when I get home today and I'll post back once I get it looking better. Or maybe I should be trying different color filter values in the dcraw source?

EDIT: Just swapped the red and blue channels in the output TIFF (thanks, MATLAB!) and now I have a much better looking image. Colors are right, it's just kinda dark. Almost there!
[Android Apps and Games] defcomg:
here is the source
[Android Apps and Games] skeletronz:
Sweet, color issues are resolved after changing the MT4GS Bayer order from 0x94 to 0x16. Now all I have to do is tweak my dcraw flags.

Thanks again :laugh:
[Android Apps and Games] defcomg:
if you using raw color space You need to make custom Color profile in Photoshop and make the Gamma 1.00

ie with this switch -4 -o 0 that's why it appear dark

else if using srgb adobe etc gamma should look fine

anyway here is something to try if you feel colours are still not correct

webstaff.itn.liu.se/~karlu/div/howto/cameraProfile.php
[Android Apps and Games] MatteoB92:
M8 any news? :)
[Android Apps and Games] troopii:
no, no news didnt met him. also i dont think that i will work on it this year.

got a new toy the sony qx1 and im adding the sony api to freedcam also started playing around with camera2.

but i have other worse news about L and raw capture.

according to the camera2 api. only full supported devices will have raw working on L.

That means yet only nexus 5/6 (will) have raw support.

lg released the L update for g3, and what happens,

they didnt fully implement camera2, and its get listed as legacy device with no raw support for L.

i think this will happen to the most devices wich was released with KK...... and get the L update.....

but its possible to capture raw with the old camera api again if it was supported on KK

after finding out that, i commited the code out wich activate api2.... frustration level: HIGH
[Android Apps and Games] defcomg:
Comvert Old Raws into DNG

Currently only Supports

G2 G3 Nubia Z5S Z7max mini Vibe X

Basically S800+ Device with imx135 / 214

input extension .raw will keep .raw and produce DNG

.draw / ".jpg' raw file with jpeg extension it will overwrite the file just rename to DNG.

Credit Troop he made the engine that does all the converting hehe
[Android Apps and Games] troopii:
https://github.com/troop/FreeDCam/releases/tag/3.3.30

new try for s4. found a bug when loading picmodule zsl was not set to off.

also this contains now a preview for camera2 api on lolipop.

you can switch in settings between both.
[Android Apps and Games] xk0niR:
It did not work for me.

When I take a picture, a message appears "data size < 4kb".

Maybe someone else has success
[Android Apps and Games] troopii:
well we get closer, 4kb is a good sign.

the raw is a jpeg^^ dont know realy whats wrong, picformat is set to raw, zsl is off, mce is off. everything off wich normaly affects it.

single-isp-output-enabled=false maybe thats the problem and it need to set true.

as long you take jpeg it should be stable. raw caputre freez moste time somwhere in the isp setting up the buffer. you only notice it when it freez, the camera its self throws no error, thats the big problem
[Android Apps and Games] skulliza:
Yeah, I noticed, that's why i wrote "fake" :P

Honestly do you think that the raw feature will ever be available for the M7? I can't find any real position about this, only contradictory post here and there...

I also saw that HTC is working on the Lollipop release, some says between January and March, but i don't know if this will guarantee a real DNG support.

I'm a photographer, that's why I'm asking. A "smartphone slash mirrorless" could help me on job (without claims of professiona results, of course), and most important, could help me to save up to 1200 euros, the price of a real mirrorless to use alongside the reflex.

Sorry for the long post.

TL;DR: I envy the M8 RAW / DNG support, and I want it for my M7 too. :)
[Android Apps and Games] troopii:
[MENTION=6269163]skulliza[/MENTION]

defcomg told me, when he looked into it on kitkat, there was no raw support.

now it would be interessting what the camera parameters says in kitkat.

if there is real no raw support, then it was added with cm12. and then the question is. how far is it implemented.

but that are informations you have to bring, i dont have that device and im no magician. :P

logcat tutorialwith adb

how to configure catlog on android

how to use ddms

as catlog filter use "cam" !!!!! and you need root since KK to get systemlogs with logcat

i would say no
[Android Apps and Games] EmptySD:
Thank you very much! I was looking for this since i got my G3.
[Android Apps and Games] stavBodik:
tnx
[Android Apps and Games] Hid3rs:
Do you guys have any idea why raw capturing doesn't work on CM12 builds? I have a G2 and I just can't get it to work. Is the problem kernel or ROM related? It honestly makes me sad because stock Android - espacially 5.0 - is superior to stock G2/G3 ROMs, so I don't really feel like going back to stock, but I also don't like the crappy AOSP camera.

IMO, Google could have done a better job with this whole Camera2 stuff, it doesn't make too much sense if only Nexus devices have full support, smh.
[Android Apps and Games] nelsdzyre:
Using Moto G 2012 on FreeDCam ver 3.3.30 doesn't seems to work once I use the api2 settings.

The api1 settings works fine, but there's no other option besides jpeg. I can switch to api2, and once I tap on jpeg (to see if I can switch to RAW) the settings overlay just disappear. When I swipe to right trying to bring out the settings page again, it just won't come out unless I restart the app. But, funny thing is the app is still running fine ( I can see my camera working still).

So with api2 setting, I tried to snap a picture, a snap was seen but a picture never come out/produce. The app kind of stuck at the snapshot screen and it stays there until i restarted the app.

Hoping further development will be done and I'll be willing to help if you need any. Would love to be able to get RAW format because the compressed jpeg this phone gives out is just terrible (brushed out background).

Thanks!
[Android Apps and Games] troopii:
no idea why i not works on cm12 builds. without logcat no help, i have no wireless debugger... :p

well thats the problem if the manufactur is willing to implement full camera2.

api2 is heavy alpha. and i stopped until found out that the g3 is a legacy device with L. maybe i countinue when im done with other stuff

im currently reworking the ui to better work with different apis.

freedcam will support next sony remote api.

also it would be good to see the camera parameters.

that are all devices where i have the params from. https://github.com/troop/FreeDCam/tree/master/Parameters
[Android Apps and Games] roursamajor:
Is there a easiest way to capture RAWs on MTK phones, than using MTK tools? In an app like Freedcam cannot be implemented only the camera mode from MTK tools?
[Android Apps and Games] troopii:
[MENTION=5138470]roursamajor[/MENTION]

public void setTHL5000Raw(boolean raw)
{
Log.d(TAG, "THL5000 try to set mode");
if (!raw) {
cameraParameters.set("[B]rawsave-mode[/B]", 0);
cameraParameters.set("[B]isp-mode[/B]", 0);
Log.d(TAG, "THL5000 set mode to jpeg");
}
else
{
cameraParameters.set("[B]rawsave-mode[/B]", 1);
cameraParameters.set("[B]isp-mode[/B]", 1);
Log.d(TAG, "THL5000 set mode to RAW");
}
cameraHolder.SetCameraParameters(cameraParameters);
}

public void setTHL5000rawFilename(String filename)
{
cameraParameters.set("[B]rawfname[/B]", filename);
cameraHolder.SetCameraParameters(cameraParameters);
}

thats what i have from the enginer tool from thl5000 and its not working. pls tell me what im missing to get it working with freedcam. i dont have a mtk device. thx

if you cant tell me, then its your only chance to use the engineertool....
[Android Apps and Games] roursamajor:
Tell me, please, how can i help you and I'll do it. I don't know at all programming.... for me is foreign language. :laugh:

I attached Camera Parameters.txt

If something else is needed, tell me and, as far as I can, I'll help you gladly.
[Android Apps and Games] troopii:
[MENTION=5138470]roursamajor[/MENTION] [MENTION=5236875]_NemO_[/MENTION]

https://github.com/troop/FreeDCam/releases/tag/3.3.31

new try you should see now raw in pictureformat, the pics should get saved to /DCIM/cap00/
[Android Apps and Games] roursamajor:
Nope, still no raw option, but a new one is there: exposure lock.
[Android Apps and Games] troopii:
https://github.com/troop/FreeDCam/releases/tag/3.3.32

now you should see raw option
[Android Apps and Games] roursamajor:
Indeed the raw option is there, but when I took pictures camera freezed, then crashed. And no raw was saved.
[Android Apps and Games] troopii:
in need a log. no idea what crashs

How to take a catlog
[Android Apps and Games] roursamajor:
Sorry for the late response. Here it was a massive power breakdown (due to the blizzard) and I couldn't use the Internet. In the mean time, I played with Logcat, but it recorded nothing in the log. I made all settings as in attached link. I changed priority to Verbose, put cam in Filter field, start record then start Freedcam. Stop recording, it says that the log saved, but it is empty. Also, nothing is shown on the Logcat screen...

Watch this:

https://www.youtube.com/watch?v=03a70ZkjHfo&feature=youtu.be

Maybe there is another way to save a system log? Or am I doing something wrong?
[Android Apps and Games] troopii:
[MENTION=5138470]roursamajor[/MENTION]

looks like your device is not rooted.

well then lets try it in a different way, for that you need a pc and usb debugging activated on the device.

http://freedcam.hol.es/viewtopic.php?f=3&t=3&p=3#p4

if this works for you i need 2 logs.

one from the engineer tool when you set raw image and take a raw picture.

the same from freedcam.

would be good if you splitt both logs :D
[Android Apps and Games] roursamajor:
Yes, it's not rooted.

What is DDMS and where I can download it?
[Android Apps and Games] budies3:
Pastebin Files

I did some playing, and heres my logs:

Sent in PM.

---------- Post added at 04:50 AM ---------- Previous post was at 04:48 AM ----------

[/COLOR]

http://developer.android.com/sdk/index.html

I think that's what you need?
[Android Apps and Games] roursamajor:
Sent them on PM.
[Android Apps and Games] troopii:
Its ok to post logs in the thread because defcomg can read it to. They does not contain personal informations wit cam.

About s5 no idea why its not working. The mipi format gets set and buffer too. It crash then on pictake...

About mtk devices. No idea whats wrong. Need to read the logs again

Happy new year
[Android Apps and Games] budies3:
That's the fun part (I think), about beta testing:)
[Android Apps and Games] PetyoBG:
On note 3 snapdragon,when I took pictures in raw or dng format camera freezed, then crashed. And no raw was saved. I attached camera parameters.
[Android Apps and Games] defcomg:
Crash needs Logcat to see where things went wrong
[Android Apps and Games] troopii:
About m7 raw capture disable/enable denoise. Need response if it works with or without denoise.
[Android Apps and Games] PetyoBG:
The logcat while picture is being taken in raw format. Hope that helps.
[Android Apps and Games] budies3:
Logs, Etc.

I saved my logs, Camera Par., and the 2 normal pics turning that on and off. If you think they would help, just let me know.
[Android Apps and Games] defcomg:
@ S5 Note 3

Try This

Set Scene Mode to HDR

exit Freedcam

try capture.

if that does not work try

renaming libmmcamera_fidelix_eeprom.so to

libmmcamera_fidelix_eeprom.ori

see if cam still works

If it does

try raw capture again

as usual Logcat.

you will find these files vendor/libs backup device before renaming the files
[Android Apps and Games] budies3:
No Luck Here

I'm sorry to say that I didn't have any luck. Let me know if you want the files.
[Android Apps and Games] PetyoBG:
On note 3 when rename libmmcamera_fidelix_eeprom.so to libmmcamera_fidelix_eeprom.ori camera not working. When Scene Mode is in HDR and try to capture in raw format camera freezed again at the snapshot, then crashed. I attached the logcat...First I open the freedcam set Scene Mode to HDR exit freedcam, second I open the freedcam and try raw capture. Hope that helps.
[Android Apps and Games] budies3:
Update, and Logs

That's the same as me. The latest update just froze on startup. 1 log is after install, then after reboot.
[Android Apps and Games] defcomg:
from this Logcat it seem you used HDR Bracket mode . via mode toggle

Did you Swipe right > Mode Settings > Scene then select hdr ?

if yes

the search continues

if no try it
[Android Apps and Games] PetyoBG:
I tried this way,but when I Swipe right > Mode settings > Scene I have only option auto.
[Android Apps and Games] budies3:
Done

I didn't try that, but I did here. It takes me a few times to get it to stay up. Here's the logs from that.
[Android Apps and Games] roursamajor:
3.3.33 still crashes when set to raw. Same behaviour as 3.3.32.

Log attached.
[Android Apps and Games] budies3:
My S4 Info

I thought I would try it out on my S4. For the most part it seems to work on the previous version. I have raw, hdr, and jpg files. Here's the log, maybe it will be helpful?
[Android Apps and Games] mark2410:
hey, dont now if anyone had tried it on a samsung galaxy camera 2, i just did and sadly it doesnt play nice at all.
[Android Apps and Games] troopii:
here we go... rawtherapee with bayer 10bit support

credits goes to all people involved to rawtherapee, dave coffin and defcomg

and me for building^^

http://freedcam.hol.es/viewtopic.php?f=4&t=8

hf
[Android Apps and Games] ImNoobie9495:
Wow !! Finally and awesome .. Cant wait to test on my device tomorrow ??
[Android Apps and Games] roursamajor:
Nobody saw my log? Nothing new for MTK?
[Android Apps and Games] troopii:
sure i saw it but i didnt change something for mtk because i dont know whats wrong.

something about the work process:

reading a logcat with 500kb takes 15-20min until i have found the needed information or not.

the s4/5 have a own camera wrapper like lg has for the g3. to get that implementet i had to rework (ALL!!!) menuitems. i did it in 5 hours...

building raw therapee took me 8hours. (it was not a problem with the source but with my building env)

and i did both on the same day....

what i want to say is, im only one whos doing all that stuff and its timeexpensive.

and im realy trying to get all that devices working with freedcam.

but if you want to push me to a hurry, i get lazy and think why i should do this, i dont have that devices why should i care....

im doing this in my free time...

//missing libs for rt

http://freedcam.hol.es/download/rt_libs_64.zip
[Android Apps and Games] ImNoobie9495:
Thanks [MENTION=5128617]troopii[/MENTION]i .. [MENTION=5138470]roursamajor[/MENTION].. Hey guys,be patient .. Just let him do what he want and dont ever push developer .. They also human and need time ..
[Android Apps and Games] roursamajor:
Hey, I didn't want it to sound like this. I know and I really, really appreciate your effort. I just wanted to know if there is a progress in making RAWs to work on MTK devices too. Indeed, I'm a little impatient... :D

If you need something else to test or anything else, I will be entierly available for this.

A happy new year!
[Android Apps and Games] troopii:
thx you too,

raw capture seems now to work for you. but it crash after the take picture callback has recieved because of focus. no idea why that happens.

but this crash avoid freedcam to add this file to the mediascanner.

and thats why you dont see the file in the filesystem.

try sd scanner from playstore or reboot your device. then somewhere should be .raw file i hope :p

if not i must add more logoutput.
[Android Apps and Games] 5136614:
Hi, im using gionee elfie e7, which version of this app i should use? In lastest ver, when i take pic with raw and dng setting its create file raw 17mb size but nothing in it, i mean i have file raw but that file seem to be corrupted.
[Android Apps and Games] troopii:
[MENTION=2618653]5136614[/MENTION]

pls upload both files(raw+dng);

the raw can now open with rawtherapee on windows.

i think the dng looks corruput because the rowsize is wrong calculated.

for mosted devices i need to hardcode it to get it working, but thats only possible with a sample raw.

also i want to see the cameraparameters.txt
[Android Apps and Games] 5136614:
Thanks for your quick reply. Here is link to 2 file raw and dng, but i cant create txt file. There is no such option in quality setting menu :(

https://docs.google.com/file/d/0B8C_nX3zKE3xbHJOYUw3czdON1E/edit?usp=docslist_api

https://docs.google.com/file/d/0B8C_nX3zKE3xNHN3VXdQSGlkTG8/edit?usp=docslist_api
[Android Apps and Games] troopii:
[MENTION=2618653]5136614[/MENTION]

the dng file itself works but something wrong with the colors^^.

the raw cant read it with rawthereapee. its the same problem with the g3 raws on lollipop, but im on it
[Android Apps and Games] roursamajor:
In fact, Freedcam freezes. The captured picture freezes on the screen. Then, if/when I touch the screen it crashes.

Rebooted the phone, no RAW file inside, unfortunately...

Though, maybe you'll find the way to make RAW capture to work. :crying:

If needed, I'll make new logs or video captures with what's happend during RAW capture.

EDIT: watch the video https://www.youtube.com/watch?v=It2hF431rOU&list=UUucO6GCvwuzRgL2Quj4h61A
[Android Apps and Games] troopii:
for s4/5 i implementet the Seccamera from samsung into freedcam maybe this fix rawcaputre.

for mtk fixed preview bug

https://github.com/troop/FreeDCam/releases/tag/3.3.34

happy testing

[MENTION=5138470]roursamajor[/MENTION]

not root no logcat extreme working. ^^

[MENTION=2618653]5136614[/MENTION]

http://freedcam.hol.es/viewtopic.php?f=4&t=8

update for rawtherapee added the elife e7 to it.

i can open both files with it. for the dng it seems freedcam use wrong color format

but im soon reworking that part then you can choose the format.
[Android Apps and Games] budies3:
A couple of things for you sir:)

Thank you, but now the screen come up but nothing works.
[Android Apps and Games] troopii:
I forget to add to cameraprameters reading for seccamera. Will add it in the afternoon.

//edit [MENTION=2040665]budies3[/MENTION]

https://github.com/troop/FreeDCam/releases/tag/3.3.35
[Android Apps and Games] budies3:
Starts, but Shuts Down.

Here's the 2 logs I did. 1 is after the install, then the other is after rebooting. It gets to the start-up screen, where you tap the ok button. I think I still have the raw files that I got at the beginning, would they help?
[Android Apps and Games] troopii:
when i read the logs correct freedcam crash now when the preview gets sized to the screen?

so raw capture was working for you once?

i didnt expect that it works for you now ;P

i think more the problem is the set mipi format. on the m8 it works only when using bayer-mipi-10grbg. every other profile freez it. the g3 takes only bggr on kk, others freez.

that are your values jpeg,bayer-qcom-10gbrg,bayer-qcom-10grbg,bayer-qcom-10rggb,bayer-qcom-10bggr,bayer-mipi-10gbrg,bayer-mipi-10grbg,bayer-mipi-10rggb,bayer-mipi-10bggr,yuv422sp

b=blue; g=green; r=red; more info about bayer

freedcam is always using the last mipi format

one thing i forgot for s4/5, dont switch to video module. i didnt yet implement the the secmediarecorder^^
[Android Apps and Games] budies3:
I didn't even see that option the short time it was on. I only had the take a picture button, and the close.
[Android Apps and Games] troopii:
https://github.com/troop/FreeDCam/releases/tag/3.3.36

new try added secmediarecorder,

fixed somebugs

for s4/s5 play with memorycolorenhancement and digitalimagestabilization, maybe one of them is the bad boy
[MENTION=5138470]roursamajor[/MENTION]

for you the preview bug should fixed.
[Android Apps and Games] budies3:
This time it comes up fine. I noticed all settings were empty (it's happened before), so I go in to set everything and the only time it shuts down on me is when I try to set the ISO. Here are the before and after logs on this try:)
[Android Apps and Games] troopii:
You understood me wrong sorry.

I will add it that you can choose the format.

The stuff about bayer was a info.

It seems switching to the hashmap broke a bit the menu loading
[Android Apps and Games] peshellas:
Hi mate, on my S4 9505 with Android 5 GPE unless i set the settings first everything freezes, but after i set them, i can use it as a normal camera with Api1, but there is no advanced feature, only like a normal camera and no raw support. If i try to set it to Api2 it FC and it keeps FC everytime i open it until i uninstall and reinstall it, although this must mean that sasmsung didnt implemnt Camera2 Api in the GPE. Lastly if i choose Sony it just reverts back to Api1 automatically. im willingto test more version for the s4 mate on android 5.0 GPE, or even some older 4.4 roms or the note4 port for 9505. Keep up the good work and if u have a fix for the s4 u need to test just pm me or quote me.. XD
[Android Apps and Games] troopii:
https://github.com/troop/FreeDCam/releases/tag/3.3.37

menu is fixed

on all devices i have yet seen zeroshutterlag(zsl) must disabled to get raw caputre working.

this has now all pictureformats. pls try all bayer profiles. if cam freez close and change to next profile.

if a profile works rename the raw to .jpeg an look if you can open it, if yes the profile is fooling us^^ if no congrats you have a raw :D

pls send me one then i can add it to rawtherapee

if no profile works, try to change one of these values down and the try all bayerprofiles again:

MemoryColorEnhancement

DigitalImageStabilisation

this breaks dng support but will come back

happy testing