Thread: Digital Cinema Package

Reply to Thread
Page 6 of 50 FirstFirst ... 234567891016 ... LastLast
Results 51 to 60 of 491
  1. #51  
    Senior Member
    Join Date
    Apr 2007
    Posts
    3,579
    Quote Originally Posted by fabrizio carraro View Post
    2) how to encrypt it?
    Why do you need to encrypt it?
    Reply With Quote  
     

  2. #52  
    Member
    Join Date
    Dec 2009
    Location
    Penza,Russia
    Posts
    31
    I've finally done windows script (.bat) for video->dcp convertion.
    This script is based on some Wolfgang Woehl's researches, other post of this thread and a bit of my own experiments.

    I've used some additional programs, such as:

    MPlayer

    ImageMagick
    Open Cinema Tools

    So.

    Script itself (%catalog%/script/repack.bat) as well as catalog structure are in the attachment.

    Some important moments.

    This script is made for 3d dcp, 1 channel sound, for output resolution of 2048x853. But you can easily modify it for your own workflow.

    How to use it.

    Edit %catalog%/script/repack.bat.

    Set var DIRNAME as your repack directory name (it's %catalog%)
    (Exc.
    rem Project Directory Name
    SET DIRNAME=E:\Temp\3dContent\007-Sign)

    All directory names - without ending "\".


    Put your audio file into %catalog%\input\audio\
    Format - Wav
    Depth - 24 bits
    Channals - Mono
    Freq - 48 kHz

    Its name is given for var AUDIOINPUT
    (Exc.
    rem AudioFile Name
    SET AUDIOINPUT=sound.wav)

    Put 2 MPlayer-convertabe (uncomressed will be ok) video files for right and left eye in %catalog%\input\video\
    Video will be resized to 2048x853 (edit 2 lines such as %MPLAYERDIRNAME%\mplayer -vo pnm -zoom -x 2048 -y 853 "%DIRNAME%\input\video\%VIDEOINPUTLEFT%" if you need other resolution)

    Set names for vars VIDEOINPUTLEFT and VIDEOINPUTRIGHT
    (Exc.
    rem Video for Left Eye
    SET VIDEOINPUTLEFT=Left_Eye_Render.avi
    rem Video for Right Eye
    SET VIDEOINPUTRIGHT=Right_Eye_Render.avi)

    Set directory names for 3rd part programs
    (Exc.
    rem MPlayer Directory Name
    SET MPLAYERDIRNAME=D:\Pak\Programs\MPlayer
    rem ImageMagick Directory Name
    SET IMDIRNAME=D:\Pak\Programs\ImageMagick-6.5.8-4
    rem Open Cinema Tools Directory Name
    SET OCTDIRNAME=D:\Pak\Programs\opencinematools)


    Set other vars according to your needs
    (PROJNAME - Any String - Name of your project
    CONKIND - I use "test", I've used one other, but it didn't work. Need more experiments.
    ANNTEXT - string - annotattion text
    and so on).

    Run %catalog%/script/repack.bat

    Files in the %catalog%/out/ directory will be your dcp project

    If everything is ok you can delete %catalog%/processing/ directory with temp files

    P.S.
    Any questions?

    On my machine WinXP Core2Duo 2.8 GHz, 2048 Gb, 17-seconds' clip repacked in about 1 hour.
    Attached Files
    Last edited by Pavel Klepinin; 05-16-2010 at 12:59 AM.
    Reply With Quote  
     

  3. #53  
    Senior Member
    Join Date
    Oct 2008
    Location
    Munich
    Posts
    168
    Hi Pavel,
    your convert line doesn't provide for gamma decompression (before sRGB to XYZ) and gamma compression (after colorspace conversion) to 2.6. Is that on purpose?

    Also order of parameters matters with "convert". So padding with zeroes after the "-recolor sRGB to XYZ" gives you a different result than doing so before. Have you tested the difference? I'd put the "-depth 12" before any color transformations. But then it never occurred to me to try the other way around, so there.

    Right now I'm trying to wrap my mind around the "White" issue, stuff like mastering white, calibration white, white gamut, chromatic adaptation. Read an interesting paper: "SMPTE Digital Cinema White Gamut Practices Study Group Report" (SMPTE Journal, October 2009) and how a DCDM/DCP mastering process would acknowledge the problems identified by the study group and adjust.

    I've realized (testing and reading the paper) that transforming to DCI calibration white (0.314, 0.351) is not right and I'm kind of close to "realizing" that doing no chromatic adaptation at all (the DCI specs suggest that the luminance headroom can accomodate a number of standard illuminants, like D65, D55) is not the right way to see your mastering whites in projection either. Have you done any testing in relation to this?

    Btw: http://www.digitalcinemanamingconvention.com/ lists, well, naming conventions. Useful.
    Reply With Quote  
     

  4. #54  
    Member
    Join Date
    Dec 2009
    Location
    Penza,Russia
    Posts
    31
    Thnx 2 Wolfgang, fixing errors and moving on.

    your convert line doesn't provide for gamma decompression (before sRGB to XYZ) and gamma compression (after colorspace conversion) to 2.6. Is that on purpose?
    Nope. It's nothing, but my mistake. Looks like i've used your old script line
    Code:
    for f in *tif; do
    convert $f -alpha Off -resize 2048x1080 -recolor "
    0.4124564 0.3575761 0.1804375
    0.2126729 0.7151522 0.0721750
    0.0193339 0.1191920 0.9503041" -depth 12 ../tiffs-xyz-scaled/$f;
    Instead of

    Code:
    for f in *tif; do
    convert $f 
    -alpha Off -resize 2048x1080 -depth 12 -gamma 1.181818 
    -recolor
    "0.4124564 0.3575761 0.1804375
    0.2126729 0.7151522 0.0721750
    0.0193339 0.1191920 0.9503041"
    ../tiffs-final/$f;
    Is gamma compression/decompression can be replaced by adding "-gamma 1.181818" or it's some other thing?


    Also order of parameters matters with "convert". So padding with zeroes after the "-recolor sRGB to XYZ" gives you a different result than doing so before. Have you tested the difference? I'd put the "-depth 12" before any color transformations. But then it never occurred to me to try the other way around, so there.
    Really? I didn't know that. I thought it was just a set of parameters order-independent. So i can fix it shortly.
    But as for testing the difference.
    Here's a trouble. How are you comparing images. How are you playing dcp on computer. Demo version of easyDCP (which i use) shows the wrong colors (as if there is no need in colorspace conversion). So, i compare colors by playing dcp on Dolby DSS-200 server with original image/video on my notebook. It's not the right measurement. I think it should be some other way. What programs/tools are you using?

    And the question about all this white staff. Is this white-correction depends on server/screen/video type and so on, or it's universal and finding the magic numbers will bring some kind of magic workflow?
    Reply With Quote  
     

  5. #55  
    Senior Member
    Join Date
    Oct 2008
    Location
    Munich
    Posts
    168
    Quote Originally Posted by Pavel Klepinin View Post
    Is gamma compression/decompression can be replaced by adding "-gamma 1.181818" or it's some other thing?
    Colorspace conversion has to be done with linear light numbers. Assuming your source material is sRGB (with a standard gamma of approximately 2.2) you would have to
    Code:
    convert srgb.tiff -depth 12 -gamma 0.454545 -recolor "$srgb_to_xyz_matrix" -gamma 2.6
    1 / 2.2 = ~ 0.454545, so applying this value with convert you "decode"/"decompress" the 2.2 gamma and get linear color values.

    As a final step -- /after/ any other operation (colorspace conversion, maybe chromatic adaptation) -- you apply the DCI spec'd gamma of 2.6.

    Quote Originally Posted by Pavel Klepinin View Post
    How are you comparing images. How are you playing dcp on computer. Demo version of easyDCP (which i use) shows the wrong colors (as if there is no need in colorspace conversion). So, i compare colors by playing dcp on Dolby DSS-200 server with original image/video on my notebook. It's not the right measurement. I think it should be some other way. What programs/tools are you using?
    Like you say: It's not correct but if you don't have a calibrated display you're pretty much left with subjective judgement.

    And the question about all this white staff. Is this white-correction depends on server/screen/video type and so on, or it's universal and finding the magic numbers will bring some kind of magic workflow?
    Here's a quote from the study group report:

    "Regarding a specific white point for digital cinema, there is wide-spread disagreement across the production, exhibition and manufacturing communities."

    From the data and proposals in the report I take it that targeting DCI's calibration white (0.314, 0.351) is not the right thing to do. But the stuff about white gamut and their proposed virtual white hasn't sunk in enough yet to know the numbers for a chromatic adaptation from sRGB's D65 to DCI projection.
    It has been suggested that DCI spec'd projectors accomodate a range of source white points but fact is that a white out of mastering isn't necessarily reproduced at the projector's end.

    It'd be great if M Most could chime in and share his experience and practices, much appreciated (Would also be great to learn more about DCP content protection and encryption, of course. Mike, your question seemed to suggest the approach was twisted?)
    Reply With Quote  
     

  6. #56  
    Member
    Join Date
    Dec 2009
    Location
    Penza,Russia
    Posts
    31
    Remade script according to Wolfgang's remarks.

    And, yeah, having image_to_j2k churn through an hour worth of tiff's for days feels more like a workcrawl rather than a practical workflow. CUDA to the rescue. One, kind-of-working, example is CUJ2K (http://cuj2k.sourceforge.net/index.html)
    As I understood, CUJ2K makes dcp-incompatible j2k files, they are needed of further transformation, that minimizes the time profit, am I right?
    Last edited by Pavel Klepinin; 03-30-2010 at 11:48 PM.
    Reply With Quote  
     

  7. #57  
    Senior Member
    Join Date
    Oct 2008
    Location
    Munich
    Posts
    168
    Pavel,
    apparently the problem is related to markers in cuj2k's output (QCD). I've contacted the authors (student project at University of Stuttgart) to see what can be done. Anyway, the project demonstrates that an acceleration with commodity hardware (GPUs) is feasible. Something will come up.

    Another option would be dedicated boards like the intoPIXs (see http://www.intopix.com/products/inde.../id/17/lang/en). I'm looking into prices etc.
    Reply With Quote  
     

  8. #58 DCP creation with CineAsset from Doremi Cinema 
    Junior Member
    Join Date
    Jan 2010
    Posts
    2
    I thought you may find interest in a windows based software solution to create DCP's from Doremi Cinema called CineAsset. A free trial download is available at http://www.doremicinema.com/cineasset.html
    Reply With Quote  
     

  9. #59 DCP creation with OpenCinemaTools 
    Junior Member
    Join Date
    Jan 2010
    Location
    Massachusetts
    Posts
    9
    Hi all. This thread has been immensely helpful and fascinating.

    Yesterday I tried creating a Linux command-line script to execute the entire pipeline. I used Pavel's bat file as a model. We had to compile (and re-compile) lots of things (openjpeg, asdcplib, etc) but eventually I got a pkl.xml file out the other side.

    I have a few questions/comments:

    1) audio. It seems that asdcp-test is used to create the audio.mxf file from single-channel 24bit WAV files. There don't appear to be command-line args to identify the number of audio channels or their location (aka L, R, sub, etc). How do we keep full control over the audio during this process, especially when we have stereo and/or 5.1 surround sound?

    2) Previewing the final DCP. This has come up a few times on the thread. The corrected colors look strange on my computer LCD, of course. Is the only way to see how they ultimately look to take the DCP to a theater?

    3) More on colors. If my source material was finaled on a Mac, do I need to use a different gamma/color correction than the one presented in this thread?

    4) Time. Converting to TIFFs and then to jpegs does take time. However, once the images have been extracted from the original movie file itself, the process is easily run in parallel. We're planning to distribute the conversion to a cluster of linux boxes, hopefully that will help. If we create any tools that facilitate this, we'll certainly share them.

    Thanks in advance for your input.

    - chris
    Reply With Quote  
     

  10. #60  
    Member
    Join Date
    Dec 2009
    Location
    Penza,Russia
    Posts
    31
    1) audio. It seems that asdcp-test is used to create the audio.mxf file from single-channel 24bit WAV files. There don't appear to be command-line args to identify the number of audio channels or their location (aka L, R, sub, etc). How do we keep full control over the audio during this process, especially when we have stereo and/or 5.1 surround sound?
    As i understood, asdcp-test is made for multichannel audio (5.1 i think). You feed asdcp-test by several wav single-channel files. Each for L, R, sub and etc. And it generates real multichannel audio.
    So, if you need to make stereo audio, you should make in your audio editing program 2->5.1 conversion. And render 6 single-channel wav-files. These 6 files appear to be command-line args for asdcp-test.

    2) Previewing the final DCP. This has come up a few times on the thread. The corrected colors look strange on my computer LCD, of course. Is the only way to see how they ultimately look to take the DCP to a theater?
    It's my big question too. I use easyDCP player, but demo version shows wrong colors. I don't know how to check it on computer.
    Reply With Quote  
     

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts