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 5 Guests are viewing this topic.

DTSET123

Maybe he is from Canon giving us hints?  ???

1%

Its up in the 6D repo... see if it does anything.

menoc

Quote from: DTSET123 on May 23, 2013, 01:52:40 AM
Maybe he is from Canon giving us hints?  ???

Please don't spook him . . .

DTSET123

QuoteIts up in the 6D repo... see if it does anything.
im scared lol

RenatoPhoto

Probably Canons way of bricking all our cams!! 8)
http://www.pululahuahostal.com  |  EF 300 f/4, EF 100-400 L, EF 180 L, EF-S 10-22, Samyang 14mm, Sigma 28mm EX DG, Sigma 8mm 1:3.5 EX DG, EF 50mm 1:1.8 II, EF 1.4X II, Kenko C-AF 2X

1%

Its will smith giving us all a virus. But must be slow acting cuz my cam still works :)

DTSET123


N/A

What the hell, t3i's are dirt cheap now, I'll give it a run if someone hooks a t3i link up.

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?

RenatoPhoto

Quote from: 1% on May 23, 2013, 02:02:42 AM
Its will smith giving us all a virus. But must be slow acting cuz my cam still works :)

I am dying to know ...  I will write a How to (Brick)  Manual...   :o
http://www.pululahuahostal.com  |  EF 300 f/4, EF 100-400 L, EF 180 L, EF-S 10-22, Samyang 14mm, Sigma 28mm EX DG, Sigma 8mm 1:3.5 EX DG, EF 50mm 1:1.8 II, EF 1.4X II, Kenko C-AF 2X

1%

Try it... I can't tell as latest modules do like 30MB/s for me. I guess you'd have to see if you're getting any additional frames.

DTSET123

did not do anything for me... same speed

silvertonesx24

Quote from: Alia5 on May 23, 2013, 01:48:30 AM
Reading this: http://francoismalan.com/2011/10/raw-12bit-or-14bit-lossy-or-lossless/
... i guess that it would only make a very very slight difference!

If this is really working... I just dont have words for how awesome this is...

Absolutely! I just used 5D raw for a paying client today (stupid, I know, but it ran without a hitch) and the only pain really was swapping cards around. Need to load up on a few 64gbs. Any space or efficiency savings are welcomed.

Audionut

Quote from: DTSET123 on May 23, 2013, 02:14:10 AM
did not do anything for me... same speed

Are the DNG frames in the RAW video smaller then without this mod?

g3gg0

just linking wont work. the raw rec module must call the routines to reduce the bit depth.
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

1%

Ok, will edit then ... as per first post I guess?

DTSET123

QuoteAre the DNG frames in the RAW video smaller then without this mod?

nope its the same
g3gg0 did it work for you?

g3gg0

@1%: yep. (of course linking into the raw rec module makes more sense than in ML Core)

@DTSET123: nope, as i am busy with some other stuff atm
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!


Mayo

I think he was answering 1%  ;)

We'll need to update raw_get_pixel() in raw2dng with the 12/10bit format, maybe store bit-depth in raw header and process raw accordingly?

1%

Well its a bit fucked because new code uses a struct and not buffer_size_used, etc.


1%

I did this:



        if (saving_buffer_index != capturing_buffer_index)
        {
    if (!t0) t0 = get_ms_clock_value();
            void* ptr = buffers[saving_buffer_index].ptr;
            int size_used = buffers[saving_buffer_index].used;
buffer_size_compressed = (size_used * 12) / 14;
raw14_to_raw12(ptr, size_used);     
int r = FIO_WriteFile(f, ptr, buffer_size_compressed);
            if (r != buffer_size_compressed) goto abort;
            written += size_used;
//~ writtenL = (uint32_t) written;
            saving_buffer_index = mod(saving_buffer_index + 1, buffer_count);
        }



I think it needs more changes...says its writing at 33MB/s, lol

It compiled... will have to make new bin

Audionut

Is the code just truncating bits, or is it compressing them into the remaining?

edit:  The OP states that the bits are being compressed.

1%

I guess I'll find out?

http://pastebin.com/PviXPWNZ

It is saving files... I don't see any increase in speed but maybe a few extra frames... I think the change is still incomplete.

Pink garbage when I open them :(

Second shot had image cut up into squares like lv_rec used to do when it was out of sync.

Mayo