12-bit (and 10-bit) RAW video development discussion

Started by d, May 22, 2013, 10:58:34 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

1%

Have a better patch to raw_rec.mo? I think mine was a little lacking. 

IMO, should have an option in raw_rec 10/12/etc bit. So cameras like 600D can do 10 bit and push the res up to somewhere acceptable while 6D/5d3/etc can still do the higher ones, etc.




xxxbugxxxx

Just curious, does Canon hard code 14bit raw processing? Is it possible to change bitdepth in some native way to change the RAW AD converter to do 12bit or even 10 bit? I know on Nikon D600 you can choose between 14bit or 12bit. Wonder if that can be easier?

Thank you for the great work.


KenFTW

Quote from: eyeland on May 23, 2013, 01:24:12 PM
This is one of the threads that will wear down my F5 key ...

this and about three others... monumental stuff people, the rules have been changed.

AnotherDave

The big question is... 

Is it going to be possible to shoot 3.6k @ 24fps, 10bit on the 5D3 without dropping frames?

If the percentages listed by d are correct, that would put the 3592 x 1320 at about 5MB/frame with a throughput of ~120MB/sec...  a bit much for most cards, but possible?

Is there anyway to drop it even lower to 8bit?  *I'd rather have color information... but if the resolution can be achieved it would certainly be a bonus.  :-)

coutts

Quote from: xxxbugxxxx on May 23, 2013, 03:51:49 PM
Just curious, does Canon hard code 14bit raw processing? Is it possible to change bitdepth in some native way to change the RAW AD converter to do 12bit or even 10 bit? I know on Nikon D600 you can choose between 14bit or 12bit. Wonder if that can be easier?

Thank you for the great work.

There's a factory function named "FA_SetCRawBitNum", located at 0xFF47C0D8 in the 6D.113, seems to just store a number at 0x82734 . It can be called via the Call function, maybe this will work?

call( "FA_SetCRawBitNum", 10 );

N/A

Quote from: 1% on May 23, 2013, 03:46:15 PM
So cameras like 600D can do 10 bit and push the res up to somewhere acceptable while 6D/5d3/etc can still do the higher ones, etc.
600D would make a perfect b-roll if we could match resolution
7D. 600D. Rokinon 35 cine. Sigma 30 1.4
Audio and video recording/production, Random Photography
Want to help with the latest development but don't know how to compile?

bumkicho

This is such an important and exciting development!!

1%

I messed with that function... but was trying for H264.. I wonder if it cuts bits out of the "debug" raw we're using.

Called it and shot 2 silent pics... they are the same size :(

coutts

Quote from: 1% on May 23, 2013, 04:13:44 PM
I messed with that function... but was trying for H264.. I wonder if it cuts bits out of the "debug" raw we're using.
at first test with 5d2, the location is empty (0), maybe i need to call lv_save_raw first.

1%

Location changes to a (10) when I call it.

Mayo

Finally got everything running, but the output seems shifted. Can't tell yet if it's my modified raw_rec or modified raw2dng.
The corrupted dngs are the correct size though.

Also, I didn't write more frames at high resolutions compared to 14-bit, so this probably wouldn't help getting higher resolutions.
The only interest would be in saving card space  :-\

1%

Shifted.. like all tesselated? Post an example?

If the files are smaller at all then you'll get a few more frames... right now maybe CPU usage > size savings?  I think it had to go into a separate task like a1ex said to not interfere with writing.

AnotherDave

Mayo: what camera are you on? Settings?

Mayo

I'm on 6D, I shoot in photo mode, global draw off.

But wait a minute... I noticed raw2dng just saves the raw frames, but nowhere saves a bitdepth or linewidth...
So how could DNG software (like ACR) read this properly if they don't know it's 12-bit?
Does the DNG format support anything other than 14-bit?
If it does not, we need to convert 12-bit back to 14-bit to export as dng. (I'm really not sure I have the skills to do this properly).
Reading chdk-dng.c now...

1%

I think DNG supports all bit depths but the DNG meta data will say it X bit.

AnotherDave

Has anyone tested this on a 5D3 yet with the fastest card?

*I'm excited! 

1%

We're barely getting it running :)

gebo

I'm checking these forums daily to see how things are developing. Congratulations, you're doing the "impossible"!
I'm so excited I even have trouble sleeping... :o

seanturco

I'm amazed by the work. I wish to be a developers one days :p
But I'm just a photographer  ;D

JohnBarlow

Maybe silly questions--->

Is this sRGB or ADobe RGB?

If the former will it cause a processor drain?

Is Adobe RGB possible seeing that we are dealing with a stream of stills?

1%

Both? Neither? Whichever one you pick?

Mayo

Quote from: 1% on May 23, 2013, 06:52:57 PM
I think DNG supports all bit depths but the DNG meta data will say it X bit.

Right, I found it, had to overwrite raw_info.bits_per_pixel=12; in raw2dng.

Now the image is good, only the colors are messed up.

Looks like this in irfan view (doesn't open in ACR):



(It's the bottom of a (very dirty) window)

JohnBarlow

Do you mean you can have either?


Quote from: 1% on May 23, 2013, 07:18:56 PM
Both? Neither? Whichever one you pick?

AnotherDave

Quote from: Mayo on May 23, 2013, 07:23:20 PM
Right, I found it, had to overwrite raw_info.bits_per_pixel=12; in raw2dng.

Now the image is good, only the colors are messed up.

Looks like this in irfan view (doesn't open in ACR):



(It's the bottom of a (very dirty) window)

Too bad the 'Predator' franchise is finished... :-/ 

1%