MLVProducer: [v3200]

Started by AWPStar, May 29, 2015, 10:44:45 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

user0597

The result is this (Resolve 12):

AWPStar

@user0597
That's not a good news.
I'll make 32bit DNG fro DaVinci.
MLVProducer. p.s. sorry for my bad english.

user0597

For extra information, the file cannot be opened in Premiere either. Also, Irfanview displays an error of "Decode Error: Not a valid RAW file" when trying to view it. A dng from MLRV for example is viewable, though very very pink in Irfanview.

AWPStar

@user0597
Quotethe file cannot be opened in Premiere either
Strange. It works with ACR in AE and PS.
MLVProducer. p.s. sorry for my bad english.

Danne

Could you reupload the file without having it opened in acr before?

AWPStar

MLVProducer. p.s. sorry for my bad english.

Danne

Thanks! Unfortunately no luck in premiere pro cc over here.
I see that black level is set to 0. That ain,t gonna work. I tried to fix it with exiftool then got this answer.

exiftool "-blacklevel=2042" /Users/D/Desktop/tst2.dng
Warning: [minor] Removed 3 invalid entries from IFD0 - /Users/D/Desktop/tst2.dng
    0 image files updated
    1 image files unchanged


Here is a file from mlvfs that works.
https://drive.google.com/file/d/0B4tCJMlOYfirV0VjVnRDYW5LMGs/view?usp=sharing

AWPStar

@Danne
Thanks!
It should be zero, because i've already subtracted it and scaled range to 16bit.

I can make two versions: compressed and none-compressed .
MLVProducer. p.s. sorry for my bad english.

Danne

Ok, no idea how that works. How are you creating your dng:s? Curious of your code and such.

senzazn12

Is it possible for the program to import DNG file folders or Dual ISO DNG's? It would be great if you can implement this.

AWPStar

MLVProducer. p.s. sorry for my bad english.

Danne


reddeercity

@AWPStar Great work ,that's Quick ! I can comfirm works in A.E. cc , PS cc & PS cc 2015 but Not Premiere Pro cc , Premiere Pro cc 2015 & Speed Grade cc 2015.
Dose not open in Preview on the MAC , Plus the Size is Wrong , should be more like 3 Mb image not 800Kbs , therefore you have Compression and by the Mac preview
Info it has "Zip" compression and that the problem , Kill the Compression and it should work .
I see it in the "tiff" tags 'Compression
    i = addtag( 259, 3, 1)
    memcpy @FS[i], @Compression, 2

but I'm not sure , I think "1" for Uncompressed
Found this now, Have a look  EXIF Compression Values you have
"2 = CCITT 1D" for compression
  "1 = Uncompressed" so yea if you change that to "1" for Uncompressed  then it should work fine .

edit: I also notice you are using "DNG Version 1.2" not sure that a issue but the ones that work have been either 'DNG version 1.1 or 1.4"

reddeercity

 Looks like only 2 tags of compression supported in dng_spec_1.4.0.0.pdf
QuoteCompression
Two Compression tag values are supported in DNG versions before 1.4.0.0:
•Value = 1: Uncompressed data.
•Value = 7: JPEG compressed data, either baseline DCT JPEG, or lossless JPEG compression.

AWPStar

@reddeercity
I tried any versions. 1.0-1.4

third parameter of memcpy is data length. not value.

Dim As UShort Compression = 8
8 - Adobe Deflate



Probably CinemaDNG doesn't support Deflate.


But ACR can read it.
MLVProducer. p.s. sorry for my bad english.

reddeercity

just tried RawTherapee 4.2.312 on Windows7 and the Cdng is all black  but when I run it thought the "Adobe dng Convertor"
The only setting I change from default was "no jpeg preview" and "Embed Original Raw File"
Then RawTherapee 4.2.312 would see the image.

Plus  Photo Editor "Aperture" on Mac can't see it ,
Have a look at this post from MLVFS thread when dmilligan was getting the tags for cdng tags for DNG 1.4.0.0 Validation
not sure it that will help
& also source code for "raw2cdng" code/raw2cdng_v2

That's about my limit I can help  :)

reddeercity

Ok one more thing  :D
I check the DNG template from "raw2cdng" with Exiftool and got the following
ExifTool Version Number         : 10.02
File Name                       : dngtemplate20.dng
Directory                       : C:/Users/i5Dell/Downloads/exiftool-10.02
File Size                       : 7.5 kB
File Modification Date/Time     : 2015:10:17 15:47:39-06:00
File Access Date/Time           : 2015:10:17 15:57:08-06:00
File Creation Date/Time         : 2015:10:17 15:57:08-06:00
File Permissions                : rw-rw-rw-
File Type                       : DNG
File Type Extension             : dng
MIME Type                       : image/x-adobe-dng
Exif Byte Order                 : Little-endian (Intel, II)
Subfile Type                    : Full-resolution Image
Image Width                     : 1170
Image Height                    : 778
Bits Per Sample                 : 16
Compression                     : Uncompressed
Photometric Interpretation      : Color Filter Array
Make                            : Canon
Camera Model Name               : ML CHMEE
Strip Offsets                   : 7728
Orientation                     : Horizontal (normal)
Samples Per Pixel               : 1
Rows Per Strip                  : 778
Strip Byte Counts               : 1820520
Planar Configuration            : Chunky
Artist                          : MagicLantern
CFA Repeat Pattern Dim          : 2 2
CFA Pattern 2                   : 0 1 1 2
Copyright                       : ML_RAW2013
Time Zone Offset                : 0 0
Date/Time Original              : 2013:05:21 12:12:42
DNG Version                     : 1.2.0.0
Unique Camera Model             :
CFA Plane Color                 : Red,Green,Blue
CFA Layout                      : Rectangular
Black Level Repeat Dim          : 1 1
Black Level                     : 754
White Level                     : 3348
Default Scale                   : 1 1
Default Crop Origin             : 4 3
Default Crop Size               : 1162 772
Color Matrix 1                  : 0.7162 -0.1339 -0.0465 -0.6462 1.3801 0.2944 -
0.0838 0.1147 0.7184
Color Matrix 2                  : 0.6257 -0.0303 -0.1 -0.788 1.5621 0.2396 -0.17
14 0.1904 0.7046
Camera Calibration 1            : 1.004 0 0 0 1 0 0 0 1.012
Camera Calibration 2            : 1.004 0 0 0 1 0 0 0 1.012
Analog Balance                  : 1 1 1
As Shot Neutral                 : 0.471672 1 0.677697
Baseline Exposure               : 0
Baseline Noise                  : 1.25
Baseline Sharpness              : 1.5
Bayer Green Split               : 100
Linear Response Limit           : 1
Camera Serial Number            : MAGICLANTERN0
Anti Alias Strength             : 1
Shadow Scale                    : 1
Calibration Illuminant 1        : Standard Light A
Calibration Illuminant 2        : D65
Best Quality Scale              : 1
Active Area                     : 0 0 778 1170
Forward Matrix 1                : 0.8259 0.0184 0.12 0.3835 0.6715 -0.055 0.1129
-0.2582 0.9705
Forward Matrix 2                : 0.8001 0.0303 0.1339 0.3876 0.7158 -0.1034 0.0
623 -0.1346 0.8975
Time Codes                      : 01:00:00.00
Frame Rate                      : 24
Reel Name                       : REELNAME
CFA Pattern                     : [Red,Green][Green,Blue]
Image Size                      : 1170x778
Megapixels                      : 0.910
-- press any key --

And this is your Cdng from Exiftool
ExifTool Version Number         : 10.02
File Name                       : tst2.dng
Directory                       : C:/testcdng/New folder
File Size                       : 875 kB
File Modification Date/Time     : 2015:10:17 13:26:18-06:00
File Access Date/Time           : 2015:10:17 14:41:59-06:00
File Creation Date/Time         : 2015:10:17 14:41:59-06:00
File Permissions                : rw-rw-rw-
File Type                       : DNG
File Type Extension             : dng
MIME Type                       : image/x-adobe-dng
Exif Byte Order                 : Little-endian (Intel, II)
Subfile Type                    : Full-resolution Image
Image Width                     : 1568
Image Height                    : 882
Bits Per Sample                 : 16
Compression                     : Adobe Deflate
Photometric Interpretation      : Color Filter Array
Make                            : Canon
Camera Model Name               : Canon EOS 50D
Strip Offsets                   : 691
Orientation                     : Horizontal (normal)
Samples Per Pixel               : 1
Rows Per Strip                  : 882
Strip Byte Counts               : 887427
Planar Configuration            : Chunky
Artist                          : <MLVProducer>
XMP Toolkit                     : Adobe XMP Core 5.6-c011 79.156380, 2014/05/21-
23:38:37
Format                          : image/dng
Document ID                     : 497393F9131A4B377545C773CF5BF335
Original Document ID            : 497393F9131A4B377545C773CF5BF335
Instance ID                     : xmp.iid:597bffd4-43f7-4a4f-a6b0-b650e2b677cb
Raw File Name                   : tst2.dng
Version                         : 9.1.1
Process Version                 : 6.7
White Balance                   : Custom
Auto White Version              : 134348800
Color Temperature               : 5450
Tint                            : +6
Saturation                      : +23
Sharpness                       : 19
Luminance Smoothing             : 32
Color Noise Reduction           : 57
Vignette Amount                 : 0
Shadow Tint                     : -5
Red Hue                         : 0
Red Saturation                  : -3
Green Hue                       : +8
Green Saturation                : +13
Blue Hue                        : 0
Blue Saturation                 : -14
Vibrance                        : +22
Hue Adjustment Red              : +12
Hue Adjustment Orange           : +15
Hue Adjustment Yellow           : -8
Hue Adjustment Green            : +8
Hue Adjustment Aqua             : 0
Hue Adjustment Blue             : 0
Hue Adjustment Purple           : +3
Hue Adjustment Magenta          : 0
Saturation Adjustment Red       : -9
Saturation Adjustment Orange    : +19
Saturation Adjustment Yellow    : +3
Saturation Adjustment Green     : +30
Saturation Adjustment Aqua      : +36
Saturation Adjustment Blue      : +18
Saturation Adjustment Purple    : 0
Saturation Adjustment Magenta   : 0
Luminance Adjustment Red        : 0
Luminance Adjustment Orange     : +22
Luminance Adjustment Yellow     : +9
Luminance Adjustment Green      : 0
Luminance Adjustment Aqua       : 0
Luminance Adjustment Blue       : -37
Luminance Adjustment Purple     : 0
Luminance Adjustment Magenta    : 0
Split Toning Shadow Hue         : 47
Split Toning Shadow Saturation  : 22
Split Toning Highlight Hue      : 62
Split Toning Highlight Saturation: 3
Split Toning Balance            : 0
Parametric Shadows              : -10
Parametric Darks                : +3
Parametric Lights               : -21
Parametric Highlights           : +51
Parametric Shadow Split         : 10
Parametric Midtone Split        : 55
Parametric Highlight Split      : 81
Sharpen Radius                  : +1.0
Sharpen Detail                  : 25
Sharpen Edge Masking            : 0
Post Crop Vignette Amount       : 0
Grain Amount                    : 0
Luminance Noise Reduction Detail: 37
Color Noise Reduction Detail    : 64
Luminance Noise Reduction Contrast: 38
Color Noise Reduction Smoothness: 64
Lens Profile Enable             : 0
Lens Manual Distortion Amount   : 0
Perspective Vertical            : 0
Perspective Horizontal          : 0
Perspective Rotate              : 0.0
Perspective Scale               : 100
Perspective Aspect              : 0
Perspective Upright             : 0
Auto Lateral CA                 : 0
Exposure 2012                   : -0.55
Contrast 2012                   : -16
Highlights 2012                 : -23
Shadows 2012                    : +14
Whites 2012                     : +16
Blacks 2012                     : +19
Clarity 2012                    : +27
Defringe Purple Amount          : 0
Defringe Purple Hue Lo          : 30
Defringe Purple Hue Hi          : 70
Defringe Green Amount           : 0
Defringe Green Hue Lo           : 40
Defringe Green Hue Hi           : 60
Dehaze                          : 0
Tone Map Strength               : 0
Convert To Grayscale            : False
Tone Curve Name                 : Medium Contrast
Tone Curve Name 2012            : Linear
Camera Profile                  : Embedded
Camera Profile Digest           : 6EBFDE13C6A1F5581298C73B69D9701D
Lens Profile Setup              : LensDefaults
Has Settings                    : True
Has Crop                        : False
Already Applied                 : False
Rating                          : 0
Metadata Date                   : 2015:10:17 13:26:18-06:00
Creator                         : <MLVProducer>
Rights                          : MLVProducer
History Action                  : saved
History Instance ID             : xmp.iid:597bffd4-43f7-4a4f-a6b0-b650e2b677cb
History When                    : 2015:10:17 13:26:18-06:00
History Software Agent          : Adobe Photoshop Camera Raw 9.1.1 (Windows)
History Changed                 : /metadata
Tone Curve                      : 0, 0, 32, 22, 64, 56, 128, 128, 192, 196, 255,
255
Tone Curve Red                  : 0, 0, 255, 255
Tone Curve Green                : 0, 0, 255, 255
Tone Curve Blue                 : 0, 0, 255, 255
Tone Curve PV2012               : 0, 0, 255, 255
Tone Curve PV2012 Red           : 0, 0, 255, 255
Tone Curve PV2012 Green         : 0, 0, 255, 255
Tone Curve PV2012 Blue          : 0, 0, 255, 255
CFA Repeat Pattern Dim          : 2 2
CFA Pattern 2                   : 0 1 1 2
Copyright                       : MLVProducer
Exif Version                    : 0221
Date/Time Original              : 0000.00.00 00:00:00
DNG Version                     : 1.2.0.0
Unique Camera Model             : Canon EOS 50D
CFA Plane Color                 : Red,Green,Blue
CFA Layout                      : Rectangular
Black Level Repeat Dim          : 1 1
Black Level                     : 0
White Level                     : 65535
Default Scale                   : 1 1
Default Crop Origin             : 0 0
Default Crop Size               : 1568 882
Color Matrix 1                  : 0.5852 -0.0578 -0.0041 -0.4691 1.1696 0.3427 -
0.0886 0.2323 0.6879
As Shot Neutral                 : 472 1000 775
Time Codes                      : 00:00:00.00
Frame Rate                      : 24
Reel Name                       : REELNAME.
CFA Pattern                     : [Red,Green][Green,Blue]
Image Size                      : 1568x882
Megapixels                      : 1.4
-- press any key --


I understand now why A.E. & PS can read the Cdng is because you have put in the
XMP Toolkit : Adobe XMP Core
so all the raw adjustment are there for it to read

Edit: just thought of something else , maybe drop the XMP tool kit , doesn't seem to be needed for the metadata from the "raw2cdng"
cdng template file and it looks like it uses dng version 1.2.0.0

dmilligan

Subtracting the black level in the output data is a bad idea. Leave the data as is and put the black level in the appropriate DNG tag (Nikon made this mistake and it is the reason that no astrophotographers use Nikons). There are values below the black level and they are important for certain image processing tasks (such as dark frame subtraction, noise reduction, and image calibration for scientific purposes).

Premiere and SpeedGrade are picky and don't actually conform to the full CDNG standard. Only specific "flavors" of CDNG will work. You can refer to the source code of mlvfs or raw2cdng for what specific tags and structure are necessary, but please keep in mind that these programs are GPL, and if you use their source you are required to release your own source.

Timecode metadata is very important for Resolve and some special extra wav metadata in the audio file is required for correct audio sync in Resolve.

AWPStar

@dmilligan
QuoteSubtracting the black level in the output data is a bad idea.
You r right. i actually did it as test.

QuotePremiere and SpeedGrade are picky and don't actually conform to the full CDNG standard.
Yes, but as i understand, cdng requires uncompressed data or lossless JPEG. And Premiere supports them.

And i can implement only deflate.
MLVProducer. p.s. sorry for my bad english.

natan069

When i click MAZE ---> 600D
I get the
"runtime error 13.
Type mismatch"


I use the canon 600D
also, "BMDFilm" is a good choice for 600d?
50D + 600D

AWPStar

@natan069
Do not use old presets. They are not compatible with new version.

Quotealso, "BMDFilm" is a good choice for 600d?
idk. It depends on what you want to get.
MLVProducer. p.s. sorry for my bad english.

natan069

I use for creating prores files to apply a LUT later in premiere, Bmdfilm is working good

but there is a better option for applying later standard Log Luts?
just to know what you recommend.
canon t3i
50D + 600D

AWPStar

@natan069
It depends on a lut-file. If lut-file requires specific input color space, then you should use that color space.
If not, then it doesn't matter. Use what you like.

P.S. i use sRGB.
MLVProducer. p.s. sorry for my bad english.

natan069

tried to open a 40minute .mlv (segmented 01, 02, the way it got out of the card)

get this error after some waiting:

runtime error 9
subscript out of range .
50D + 600D

AWPStar

@natan069
Can you send me first(.mlv) and the last file?
MLVProducer. p.s. sorry for my bad english.