Author Topic: 12-bit (and 10-bit) RAW video development discussion  (Read 859909 times)

dfort

  • Guest
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #750 on: December 14, 2016, 03:25:03 AM »
Working on 6D and 7D

Great. Make sure and check out the comment @nikfreak posted on the 650D/700D pull request. You're probably way ahead of me!

budafilms

  • Hero Member
  • *****
  • Posts: 711
  • 5D Mark a1ex
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #751 on: December 16, 2016, 06:26:49 AM »
Can someone upgrade the first post, it's from 2013...!

eNnvi

  • New to the forum
  • *
  • Posts: 48
  • 700D
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #752 on: December 16, 2016, 06:47:52 PM »
i think i got 6D almost working, need my tester to tell me if the last build works.

Can someone please share me a 60D ROM1.bin file? need it to find the way to find (strange to say :P ) the address of 7D

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1741
  • 6d - Nightly build user
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #753 on: December 16, 2016, 08:13:20 PM »
Great work eNnvi  :)
Rawslurp for 6d.
Happily willing to test, is the source somewhere available on bitbucket?

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #754 on: December 16, 2016, 09:41:16 PM »
eNnvi: unfortunately, the 60D won't help you solving the 7D. It's old generation, and the dual processor makes it probably the most difficult of all models.

From what I've tried so far on those old models (without much success yet), we have at least two problems:
- the raw buffer is not allocated all the time (as it's done on the new models) -> easy to fix, see the 1100D raw branch
- the vsync hook currently used doesn't appear to be the best for getting a raw image
- the exact behavior of EDMAC in case of input/output dimension mismatch is not very well known

Solving those models may require either some serious low-level research, or a great dose of luck. I'm just scratching the surface here.

D_Odell

  • Member
  • ***
  • Posts: 187
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #755 on: December 16, 2016, 10:04:43 PM »
Im getting some really great images in lowlight with 10 and 12-bit mod. Really superb work from you guys. Thanks!
5D3 (OLPF removed) :: 1.1.3 :: Canon FD L Serie

ShootMeAlready

  • Senior
  • ****
  • Posts: 264
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #756 on: December 17, 2016, 06:47:14 PM »
Did a little testing on my 600D.
At 12 bit, 1280 @ 2:35 / 23.9fps, got 31s.  For Indy film, this is about 90% of your shots.
At 10bit, 1280 @ 2:35 /23.9fps, continuous.  For Indy film, the few shots longer than 30s switch to 10 bit. 

Selected MLV_raw, and notice that playback at 12 bit crashes camera, but at 10 bit, it doesn't but its preview is only white with verticle lines. raw_twk.mo provides 12bit & 10bit previews

I am mega impressed with the improvements. 
1280 @ 2:35/24 fps 10 bit raw, finally makes the humblest of cams a useful raw video cam (new learner or student).
Sorry I have not been using raw video in over 1.5 years.
I am using Windows 10, what's the best automated work-flow to convert my MLV_raw into PPro or Resolve friendly format?
(PM please as I dont want to go off topic on a dev forum). 

T3i+ML & 70D.112+ML, Tokina 11-16 2.8, Sigma 18-35 1.8, 50-150 II 2.8, 50 1.4, Canon 28 1.8, 35 2, 85 1.8 "Shoot Wide and Prosper"

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7701
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #757 on: December 17, 2016, 07:18:44 PM »
For 10/12bit playback add the excellent raw_twk.mo module which g3gg0 recently polished.

ddelreal

  • Member
  • ***
  • Posts: 109
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #758 on: December 17, 2016, 08:46:16 PM »
How's 550D? Last time I tried it had pink every other frame.

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #759 on: December 17, 2016, 09:32:33 PM »
How hard is to type 550D in your browser's search box?

ddelreal

  • Member
  • ***
  • Posts: 109
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #760 on: December 18, 2016, 12:06:50 AM »
I did, I just thought that maybe somebody had info that wasn't yet shared here. Sorry I ruffled your feathers.

g3gg0

  • Developer
  • Hero Member
  • *****
  • Posts: 3190
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #761 on: December 18, 2016, 01:05:32 AM »
For 10/12bit playback add the excellent raw_twk.mo module which g3gg0 recently polished.

i just polished mlv_play and raw_twk and pushed them into unified.

mlv_play directly uses raw_twk now if available.
-> no raw preview lockups during recording

(also added a zoom feature when pressing zoom button during playback)

needs for sure some tests.
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: paypal@g3gg0.de
ONLY donate for things we have done, not for things you expect!

ShootMeAlready

  • Senior
  • ****
  • Posts: 264
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #762 on: December 18, 2016, 05:47:58 AM »
Processed the 600D 1280x544 (2:35), 24fps (canon default) for 29s.

Used Mystic to convert to DNG, but got few lost frames.  In LR saved to TIFFs 16bit sRGB, and built clip in AE with skipped frames.   Got wierd wabble when panned.

Tried again by DNG dropped from card into Resolve Lite, had bigtime shadow noise but no wierd wabble on same pan. 


T3i+ML & 70D.112+ML, Tokina 11-16 2.8, Sigma 18-35 1.8, 50-150 II 2.8, 50 1.4, Canon 28 1.8, 35 2, 85 1.8 "Shoot Wide and Prosper"

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2303
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #763 on: December 18, 2016, 07:22:03 AM »
@ShootMeAlready the only Correct extractors are MLVFS and new updated mlv_dump
all others are not designed to extract bit reduced raw (10-12bit) you may get a some what usable
image from 10bit raw with other convertors but it will not look right or have noise etc.... .
the others are designed to read 14bit raw . If others do it will be only by chance .

dfort

  • Guest
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #764 on: December 18, 2016, 07:31:15 AM »
i just polished mlv_play and raw_twk and pushed them into unified.

Could you please merge unified into raw_video_10bit_12bit or at least raw_twk into raw_video_10bit_12bit? Seems like the reduced bit raw files really need it.

mlv_rec directly uses raw_twk now if available.

You mean mlv_play, right?

DeafEyeJedi

  • Hero Member
  • *****
  • Posts: 3413
  • 5D3 | M1 | 7D | 70D | SL1 | M2 | 50D
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #765 on: December 18, 2016, 09:07:31 AM »
Could you please merge unified into raw_video_10bit_12bit or at least raw_twk into raw_video_10bit_12bit? Seems like the reduced bit raw files really need it.

+1

You mean mlv_play, right?

Pretty sure that's what he meant.
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

g3gg0

  • Developer
  • Hero Member
  • *****
  • Posts: 3190
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #766 on: December 18, 2016, 12:27:31 PM »
yeah i meant mlv_play of course. corrected that last post.
grafted that patches into the branch. happy testing ;)
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: paypal@g3gg0.de
ONLY donate for things we have done, not for things you expect!

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #767 on: December 18, 2016, 01:07:53 PM »
i just polished mlv_play and raw_twk and pushed them into unified.

The unified branch doesn't have variable bit depth support in raw.c, so I'm not sure what was the reason for pushing directly to unified. Ran a quick test on 5D3 and recordings at lower bit depths are corrupted.

Sounds like a rushed move to me. Looks like the mlv_rec changes were committed by mistake, sorry, all fine now.

g3gg0

  • Developer
  • Hero Member
  • *****
  • Posts: 3190
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #768 on: December 18, 2016, 01:33:32 PM »
wait, you used unified (which doesnt support 10/12 bit video) to play back files that were recorded with raw_video_10bit_12bit branch?
how did you get the lower bit depth recordings with it? :D
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: paypal@g3gg0.de
ONLY donate for things we have done, not for things you expect!

g3gg0

  • Developer
  • Hero Member
  • *****
  • Posts: 3190
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #769 on: December 18, 2016, 01:51:38 PM »
ah now i understood. initially i wanted to graft the mlv_play patch that adds variable bit depth only.
things went wrong and the whole patch was grafted into unified, giving 10/12/14 bit mlv_rec in unified which obviously doesn't work :)

fixed now, thanks a1ex
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: paypal@g3gg0.de
ONLY donate for things we have done, not for things you expect!

dfort

  • Guest
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #770 on: December 18, 2016, 04:48:44 PM »
@g3gg0

I see that raw_twk is now in the raw_video_10bit_12bit branch--Thanks!

A couple of questions.

Shouldn't the raw_twk module be added to Makefile.modules.default on the raw_video_10bit_12bit branch since it is required for playing back 10/12 bit video?

Does raw_twk load automatically with mlv_play or does the user have to turn on both modules? Obviously having to turn on just mlv_play would be better but merging raw_twk into mlv_play might be even better, if that's possible.

g3gg0

  • Developer
  • Hero Member
  • *****
  • Posts: 3190
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #771 on: December 18, 2016, 05:55:15 PM »
i'd say it makes the most sense in ML core.
but it is not as good as i want it to be, guess a1ex sees it likewise.

so either keep it as optional module and research how to make stuff clean, faster and more stable
or integrate that half-cooked stuff into core, requiring some workarounds.

well, i'd prefer to keep it as an (surprisingly stable) option for those who need the high performance.
and meanwhile we look for the golden solution with full engine support.
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: paypal@g3gg0.de
ONLY donate for things we have done, not for things you expect!

chmee

  • Contributor
  • Hero Member
  • *****
  • Posts: 1031
  • raw2cdng
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #772 on: December 18, 2016, 07:14:53 PM »
@all
could someone post some 10/12bit samples? (samples-thread)

regards chmee

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7701
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #773 on: December 18, 2016, 08:42:07 PM »
Some initial testing around the blazing fast raw_twk module. I also tested it with the magnificent crop_rec module on a 5D mark III.

Pros
5D mark III mlv_lite
1 - The 3xzoom mode grayscale preview crash bug is gone!
2 - Playback works great also with the magnificent crop_rec module(tested centred 5xzoom)
3 - 10bit, 12bit, 14bit works

550D mlv_lite
1 -  Briefly tested on a 550D and all seems to work the same as for the 5D mark III but with the lack of slurp stream causing 10bit, 12bit files corruption(another issue not related to raw_twk).

eos m mlv_lite
1 - All is working but no overlay buttons. Can,t delete etc.

Cons (initial testing summary)
1 - Scrolling back and forth between mlv files will soon cause the previewing to turn black. This behaviour exists for both mlv_lite and mlv_rec
2 - Eos m still lacks play, pause, next, delete buttons


@Chmee, posted some samples of my cat and linked the clips in your samples thread.

GutterPump

  • Member
  • ***
  • Posts: 185
  • 5DIII/5DII/550D
Re: 12-bit (and 10-bit) RAW video development discussion
« Reply #774 on: December 18, 2016, 08:56:36 PM »
Some initial testing around the blazing fast raw_twk module. I also tested it with the magnificent crop_rec module on a 5D mark III.

Pros
5D mark III mlv_lite
1 - The 3xzoom mode grayscale preview crash bug is gone!
2 - Playback works great also with the magnificent crop_rec module(tested centred 5xzoom)
3 - 10bit, 12bit, 14bit works



Amazing new ! Can't wait to test the new 10/12bits build coupled with the super crop_rec module version :)