DISCLAIMER: SINCE RELEASING THIS POST I HAVE BEEN CONTACTED BY PROFESSIONAL DCP ENCODING LABS POINTING OUT FLAWS IN THE WAY OpenDCP CREATES DCPs. PLEASE READ DAVID MARGOLIS'S POST IN THE COMMENTS SECTION BELOW AND CONSIDER USING A PROFESSIONAL LAB.
The standard DCP resolutions are:
2K 4K
2048 x 858 (2.39 aspect ratio) 4096 x 1716 (2.39 aspect ratio)
1998 x 1080 (1.85 aspect ratio) 3996 x 2160 (1.85 aspect ratio)
Some DCP servers will play back HD 1920x1080 but given that I rarely have a chance to test a DCP before a screening I opt to convert to standard resolutions.
Video is encoded as Jpeg 2000 image sequences and audio is encoded as uncompressed PCM in a WAV container at 24 bits per sample, 48 kHz or 96 kHz. These are then wrapped in MXF containers as designated by Digital Cinema Initiatives.
The software I use in this example is After Effects (although it could be done in most NLE or compositing packages), Audacity and OpenDCP.
A big thanks to Ian Banks, Clive Gillman and Alice Black at the DCA for allowing me to test the DCPs at their fantastic cinema while I was learning the process.
Step 1: Converting video to standard 2K image sequences.
In After Effects I import the video file and drag it onto the film strip icon in the project window to create a new composition which matches the video.
Next, in the Composition Settings dialogue box I change the composition resolution to 1998x1080. This is the standard 2K 1.85 aspect ratio resolution. I now have black bars to the left and right of the original video. I could scale the video up to fill the composition but opt against it so as not to soften the video.
I now add the composition to the render cue and change the format in the Output Module to Tiff Sequence. If your project has a 10bit or greater colour depth then set Depth to 'Trillions of Colors'. My source in this example was 8-bit so I left it at 'Millions of Colors'.
I then click on Output To and create a folder in which to store the Tiff sequence and click render.
Step 2: Converting Audio to DCP standard.
I drag and drop the Quicktime file into Audacity (freeware) and use the Change Speed effect to slow the audio down by 4%. This converts it from 25 to 24 frames a second.
From the drop down arrow at the left of the stereo track I choose Split Stereo Track. I then double click on the left channel and choose File, Export Selection.
Under format I choose Other Uncompressed Files, then click Options and set the Header to WAV (Microsoft) and the Encoding to Signed 24 bit PCM. I then save the file with an "_L" suffix (for left channel). I then do the same for the right channel with the suffix "_R".
Step 3: Converting the Tiffs into Jpeg2000.
I launch Open DCP (freeware) and leave the Jpeg2000 Encoder Parameters and Image Parameters at their default settings. I then add the Tiff directory created previously to the Input Directory and create a new folder to hold the Jpeg2000 images under the Output Directory. Next I click Convert and wait for the Jpeg2000 images to be rendered.
Step 4: Creating the MXF files.
In OpenDCP I switch to the MXF Creator. I leave MXF Parameters at default and open the folder containing the Jpeg2000 images under Picture Input. Under Output Files I create a new folder with the suffix "_DCP" and save the file with the suffix "_V.mxf" to label it as the video MXF. I then click Create MXF.
Next I change the Source in MXF parameters to WAV, keeping the Sound Parameters at Stereo and enter the left and right channel audio in the Sound Input. Under Output File, in the I save the file with the suffix "_A.mxf" in the DCP folder. I then click Create MXF. (According to dcpinfo.com, the Academy require a minimum of three audio channels, left, right and centre, for a DCP to qualify for an Academy Award. However DCP server systems seem happy with two channels of audio.)
Step 5: Creating the DCP.
Now in OpenDCP I switch to DCP package. In Composition Parameters I enter the title and any other info. Then under Reel I enter the video MXF in Picture and the sound MXF in Sound. The duration of frames should match but if they are out by one frame then use the arrows to reduce the duration of the longer MXF to match the shorter. Now click Create DCP and select the DCP folder you created for the MXF files to house the Asset Map etc.
The final result should look like this, a folder containing everything a DCP server needs to play your film. The DCP should be loaded onto a Linux formatted drive, housed in a Dataport hard drive caddy for ingestion onto a DCP server. I've had success with an NTFS formated Lacie Rugged external drive but this is not recommended. Knut Erik Evensen has written a great guide to best common practice on delivering DCP's.
The film in this demonstration was Rose Hendry's award nominated short Egg & Fag.

.jpg)
Thx for the tutorial. When I playback the dcp on my Mac with EasyDCP Player or the seperate audio mxf with VLC it sounds pitched down. Not just 4% or something. Do you ever had this issue ? I hope its a problem of my Mac and will sound good in cinema.
ReplyDeleteno same in cinema...
DeleteHi, are you using the Change Speed effect in Audacity? The 4% slow down should keep your audio in sync with a 25p source playing back at 24p.
DeleteIf that is the case and the pitch change is unacceptable, you could look at the Change Tempo effect in Audacity. This will keep the original pitch but could result in other audio artefacts so listen carefully to the result.
Hi, thanks a lot for the tutorial. I am newbie in dcp. I've managed to make my dcp. but i have the same problem with JBKING. the audio sounds terrible although it sync nicely with the video.
Deletei've check the splits .wav file exported in audacity, and there's no problem.
Need help for this.
thanks
Hi guys - I had exactly the same "pitch shift" problem which I solved by using "Split Stereo to Mono" rather than Matt's instruction "Split Stereo Track" in Audacity... I think Split Stereo Track actually exports a stereo audio file with 2 tracks, where Split Stereo to Mono creates a single audio channel.
DeleteAnyway, this seems to have worked for me.
Thanks Matt, this guide was invaluable...
Hi Chris, as far as I can see, the the difference between 'Split Stereo Track' and 'Split Stereo to Mono' is the way Audacity labels the tracks in the session. If you select each track (double click) before going to File, Export Selection you will get a mono file for the left channel and a mono file for the right.
DeleteGlad you've made good use of the tutorial!
Why convert 25 to 24 if you make a SMPTE DCP ??? .. for 24fps DCP you have to use interop package
ReplyDeleteHi Staphane.
DeleteAs far as I am aware, Interop is being superseded by SMPTE for all DCP packages. 24fps SMPTE has worked for me so far.
See; http://isdcf.com/papers/ISDCF-Doc2-DCP-TransitionReview.pdf
Hi there,
ReplyDeleteHow do you play back the DCP as to test if its working properly?
Hi, as far as I know there are no free solutions.
DeleteYou could try this; http://www.digitall.net.au/products/dcp-player.html
So far I have only tested in the cinema.
Stereoscopic Player on the PC also plays back DCP's. It's not free but it only costs 89 EURO for the Commercial license.
Deletehttp://www.3dtv.at/products/player/index_en.aspx
FYI - The unlicenced Stereoscopic Player will play the first 5 minutes of a DCP.
Delete3dtv only plays back essences (From my understanding) ie only video or audio. dcpPlayer plays back the cpl of the dcp. Ie what the dci-cinema player does. Audio and video at the same time. dcpPlayer is more at $250, but.. only playing essences is next to useless. your biggest issue is making sure the video and audio are synced and sound and look right.
DeleteA bit risky. We have a low budget opening in Toronto but I just fear so much not testing beforehand.
ReplyDeleteThanks Matt.
Monica
I suggest you ask the cinema to let you test it before hand. I'm sure they wouldn't want it to fail either.
DeleteGood luck!
Hi,
ReplyDeletehow to buy the Dcp software. for converter to mxf digital cinema..
Hi,
DeleteOpenDCP is free to download. http://code.google.com/p/opendcp/
The thing that seems to cost at the moment is a software DCP player to test your package with.
Yes Software DCP players usually use licensed technology. OpenJPEG is and will never likely have and optimized hi-speed implementation. (Very expensive and time consuming and not really enough need for it) So any dcpPlayer technology.. will only be a payed tool.
DeleteEncoding speed is not an issue so tools like OpenDCP are fine. And if you know what your doing work fine.
Thanks for the info!
ReplyDeleteI'm currently trying to help a friend create a DCP for a short film, and am learning the ropes of this...
What I'm missing from your process is any reference to color space and converting the video from 25p to 24.
Also, does the 4% audio change accurate enough? dont you get sync issues?
Thanks again
Hi dEUcE,
DeleteMy source videos are sRGB colour space and OpenDCP converts it to XYZ colour space when it converts the image sequence you supply to Jpeg2000.
The 4% slow down is completely accurate given that DCP's play back at true 24fps (not 23.976 in the case of NTSC). The calculation is as follows;
24/25=0.96 Meaning 24fps is 96% the speed of 25fps, therefore a slowdown of 4% is required for the audio to remain in sync at 24fps.
Hope that helps,
Matt
Thanks a bunch for the quick response..
DeleteI'm going to get the project any day now, and will try to follow your workflow. I really wish Avid had a "export to DCP" option.
Anyway, I reserve the right to coem back with more questions! :)
Hah! Yeah I think Avid and Adobe will be adding DCP to their authoring tools before long but in the mean time OpenDCP has taken the hard work out of it. Before them the only option was command based software!
DeleteYes, Adobe and Avid May add it, but maybe not. DCI and the implementation of making DCPs is changing a lot so,, apart from making a simple 24fps Interop/SMPTE DCP, I do not see them adding all the other features. So the need to specialty companies will be needed. Especially for the QC issues.
DeleteDanny Lacey has put up a vid on youtube using your method but he kept his at 25 fps and it worked, so I'm a bit confused.
ReplyDeleteI'm showing a feature film at a German fest soon and can't afford to pay for a DCP. It was shot on HDV and edited on fcp.
Yeah, I've seen Danny's video.
DeleteI've only had a handful of opportunities to test my DCPs on a cinema server and the first one that worked for me I made at 24 rather than 25fps.
I would like to test a 25fps DCP again but until I have made one that works myself I can't update my tutorial.
Using the native frame rate of 25fps makes sense but I would try to get it tested on at the cinema before your screening.
Cheers.
Hi Matt,
ReplyDeleteI have to convert premiere pro video to dcp for a 2k digital christie projector. I have problems with audio files: with audacity I have split the two channels left and righe 24 bit pcm, but while using these files in mxf creator wav an error comes out, something like "failed to create mxf".
How can I fix the problem?
ps: thanks for your tutorial!
Luca
Hi Luca, is your sample rate either 48.000 or 96.000 kHz? I don't think it works with 44.100 kHz.
DeleteCheers,
Matt
All the detail on how to prepare audio for DCP can be found on page 30 of this doc; http://www.dcimovies.com/DCIDigitalCinemaSystemSpecv1_2.pdf
DeleteOh yeah, it was 44.1 MHz. Thanks.
Deletebye bye from Italy!
Hi Matt!
ReplyDeleteThx for the tutorial!
I just change the format to Tiff Sequence (1998x1020).
but, when I try to convert in a jpeg2000, openDCP close suddenly and an error message appears. How I can resolve it?
bernat
1998x1020 is not an accepted DCP resolution. Check here for the resolutions you can use;
Deletehttp://en.wikipedia.org/wiki/Digital_Cinema_Package#Picture_MXF_files
Hi Matt
ReplyDeleteThank you for this tutorial!
Question: Why not convert to jpeg2000 directly from After Effects?
Matias
Hi Mattar,
DeleteI originally avoided going to jpeg2000 out of After Effects because I wasn't sure about the colour space conversion from sRGB to XYZ. Patrik O'Rurke of http://www.sleepingwarrior.com/ has had success using the http://www.fnordware.com/j2k/ plugin and exporting jpeg2000's in the 'DCDMX'Y'Z'(Gamma 2.6) 5900K (by Adobe)' colour space directly from AE.
Once I've had a successful test using this method I will update the tutorial.
Hey, you are stupid guy. If you REALLY don't know how to do QUALITY DCP why you teach others. Digital cinema is high quality professional activity tht is NOT intended for garage guys like you. The result is bad dcps and a lot time and money spending from us,we dealing with festivals projections. You don't care, but we should spend a lot of time making your supergreat "films" at least toingest and be showing. If your dcp will show on some quartier,garage cinema this not mean that will be shown also on professional festivals or other venues.
ReplyDeleteStop teaching peoples how to make bad dCPs and let do your main activity,"VFX" and "film director" (may be on weddings?
Radoslav MArkov
AES,SMPTE,CST,EDCF,DCS
Hi Radoslav,
DeleteThe reason I put this post up was because I had a hard time finding resources on how to create a DCP. There will continue to be people like me who can't afford to pay for a professionally made DCP and that is who this tutorial is aimed at.
If you notice any specific points where the method I have outlined reduces quality, please let me know. Better still, share your knowledge with the community.
Matt
This comment has been removed by a blog administrator.
DeleteHi Matt,
ReplyDeletethank you very much for the detailed walkthrough. One question: Why do you export the 16 bit audio from your Quicktime file in 24 bit wav audio? I thought this way Audacity would just add 8 empty bits to the 16 bit audio?
Correct, there is no quality benefit in going from 16 to 24 bit, however 24 bit audio is required in the DCP specifications. You can find the details on page 30 of this doc; http://www.dcimovies.com/DCIDigitalCinemaSystemSpecv1_2.pdf
Deletereply
ReplyDeleteHi there Matt. I'm a professional digital cinema encoder and have been for five years. There is a very strong case for using labs for this work and it’s important to educate yourself about the difference between a homemade hacked DCP and something made by a professional lab.
In my opinion your method will produce dreadful results. The JPEG encoder on this software is diabolical. The RGB to XYZ matrix is completely off making the picture look milky. Not to mention when I tested this program I found 6 major errors in the CPL and PKL which will cause issues with many servers. And if that's not enough, it's insanely slow! What this method could do in days we could do in about 3 hours. I think this is a bit of a hack to be honest.
If you're interested in DCPs come to our lab in London and I can show you what real digital cinema mastering involves. It's skilled work and there are lots of people like myself who work very hard to keep digital cinema content looking good. We have some pretty amazing tools to work with that are getting better all the time. And I think it's a real shame that people would want to exhibit their hard work like this. It sucks and I can prove it to you if you come here!
We're also trying to organise some talks at London film schools to try to educate film students about digital cinema mastering. We've even spoken with DVS who might consider supplying some lone equipment for students to check out. So any film students reading this who want to learn more, get in touch with me and maybe we can organise something with your school.
And please remember that digital cinema mastering is not as expensive as you think. Just make sure you ask your lab:
1. Do you have a calibrated cinema for testing content? DCPs work in XYZ colour space and only a Xenon lamp projector will show you what you really have. And only a calibrated audio environment will give you an idea how it will sound.
2. Do you use proper equipment to encode with such as DVS Clipster which encodes the majority of what you see in the cinema today.
3. What experience have you had? Which major distributors / studios have you worked with and on what titles? This is a serious business and you don’t want beginners.
4. Do they have a proper KDM system with a TDL database along with 24 hour technical support for cinemas. This is imperative as cinemas (who are firing most of their projectionists nowadays) often need help with DCPs. You need an experienced technical team on call to back them up.
We're Soho Digital Cinema on +44 (0)20 7287 6353 if you'd like to chat. Or email me - david.margolis@sohodigitalcinema.com. Website: www.sohodigitalcinema.com.
Thanks for reading.
David Margolis.
Hi David,
DeleteThanks for taking the time to offer such a detailed case for using a professional lab.
I didn't imagine that a freeware approach on a PC would match up to what a facility like yours can offer. However, when I first did research into DCPs, the lab prices I saw would have made up a large percentage of the budget of the shorts we have been making.
I won't be removing this post but I will offer a warning at the top of the page and refer them to your response. I will be strongly considering using a lab next time I need a DCP of one of my short films and would love to visit Soho Digital next time I'm in London.
Best,
Matt
I have a feature shot and mixed in 5.1 at a frame rate of 23.976.
ReplyDeleteCut in FCP and mixed in Protools as 48000 24bit.
I am looking to export DCP 24fps.
What would be the best way to convert my surround audio stems?
Cheers,
Stu.
Hi Stu,
DeleteI have never needed to do this before but if you divide 23.976 by 24 you get 0.999 or 99.9%. So if you were to use the Audacity Speed Change method and increase the speed by 00.1% then I suppose that would work.
Cheers,
Matt
Hi Stu,
ReplyDeleteGoing between 23.98 or 29.97 ("video speed") and 24fps ("film speed") is really quite common.
I'm assuming that you have your master session with the 5.1 mix @ 23.98fps/48kHz in a protools session. If you've worked in reels, they should each be starting on their respective hour (i.e.R1 @ 01:00:00:00, R2 @ 02:00:00:00 etc.). If you have a tail pop (two seconds after last frame of picture) make a note of the time code where it lives (for each reel).
An easy way (and the way I always do it) is to create a new empty protools session first. Set the session up like this (Command - 2):
TC: 24fps
Feet: 24fps
SR: 48kHz.
Now use import session data (File Menu), navigate to your master session (which is 23.98), select all the tracks and before hitting import enable the checkmark "use SRC" (its slightly different in each version of protools). Now there is a drop-down menu that lets you select a source sample rate. The nice folks at avid have provided a "pull-up, pull-down" section and you want to select "from NTSC to film" (or more technically speaking 48.048kHz). Chose the quality "tweakhead" and let it ripp!
Once protools has calculated the SRC and then the waveform overview, you can now zoom in and check that your tail pop is at the same tc address as it was in your master session. Your new 24fps@48kHz files are now in the audio files folder of this new session - relabel them right away (from within protools) so there won't be ever any question which one is which ;-).
Hope this helps...
best,
Kaspar
p.s.: Matt, I seem to have problems with color space when using your workflow... the image seems washed out, only back items (such as mats and burnins) that probably have a black level of 0 seem to be accurate. Any thoughts, solutions, suggestions?
p.p.s: maybe Dave @ sohodigitalcinema has some suggestions?
Hi Kaspar,
ReplyDeleteI think David's suggestion is to go with a professional lab. The other option might be to avoid the OpenDCP encoding and instead export the Jpeg2000's from After Effects.
Here is a quote from a previous post;
"I originally avoided going to jpeg2000 out of After Effects because I wasn't sure about the colour space conversion from sRGB to XYZ. Patrik O'Rurke of http://www.sleepingwarrior.com/ has had success using the http://www.fnordware.com/j2k/ plugin and exporting jpeg2000's in the 'DCDMX'Y'Z'(Gamma 2.6) 5900K (by Adobe)' colour space directly from AE."
Thanks,
Matt
Hi Matt,
ReplyDeleteI want to DCP stereoscopic for dolby 3d cinema.dolby 3d glasses is wavelength multiplex visualization (WMV).How to shoot size(1920x1080),Fps(24),and OpenDCP encoding?Can i shoot Side by side stereo 3d?please reply.
NayLinTun
The workflow described above may not be optimal and lack of experience is shown, however, it is very possible to make DCPs with open source tools such as OpenDCP.
ReplyDeleteProfessional houses use expensive professional software and gear to test and make sure there workflows work. (On all DCI players.)
That is the main difference between free and non-free.
If you can use OpenDCP and get a result on screen that works for you. Great. You have taken the time to archive the result you need.
But as a film maker that just wants to know it will work.. on any screen they walk into, I do suggest you use a professional house.
I make the dcpPlayer software, and I know a lot of smaller DCP-creators use it to check the DCPs they make. dcpPlayer is by no means a fully featured Quality Control software but it makes sure the result looks right, color wise and is all audio synced etc.. (I also suggest a recent video that allows you to pipe DCI audio into a AC3 sound processor to allow listening to the result on you PC with 5.1 out... and also get 5.1 levels to check your audio. see http://youtu.be/hWz4e-wMOeQ).
In terms of making sure it plays on all the DCI-players out there.. the ONLY way to do this is to have them to test on.
I have a Doremi, GDC and Qube player we check content we produce. Why. well. If you ever make a DCP, imagine you send it out to a few hundred locations and 20% don;t work because of some obscure issue to occurs in the latest software upgrade.. You just cannot afford it.
Its an insurance issue to go to a facility that will take on that responsibility...
But if you are making stuff for yourself and test it yourself etc. Its fine.. you have a problem, go back fix it..
But really, OpenDCP and the workflow needed is complex and very risky for those who are not trained and professional at it. So.. you pay for what you get. But as I always say, you can still get what you want with Free.. but pay in other areas..
I have made DCP fine with OpenDCP. However, I know what I am doing.. and know what to do and what not to do. How to get audio right and video right, and especially the color space or conversion to XYZ right.
It all takes time and experience.
The two biggest suggestions I have.. Forget SMPTE for now (probably 2 more years) only make Interop 24 fps DCPs. AND put them on NTFS formatted devices.
This is not completely standard (Disk wise) but is still supported on all systems and will bypass more of the harder issues that hit the novice DCP maker.
Good luck..
James
Hi!
ReplyDeleteAnd thanks for the tutorial!
I used it to make a dcp that worked fine when we tested at professional place. Unfortunately i found an aesthetic thing that I wanted to change and did another version (thinking that my previous settings and method was ok). It probably was but i also probably did something wrong the second time because the festival couldn't play the file when I later sent the dcp. ”Content title-tagg” was missing.
1. Judging of this error message, did I just forget to write all the info in the Title generator you think? Could that be it?
2. You could click in the ”add xml digital signatures”-box. Is that something you should do?
3. Is it important to fill in the info you filled in under two ”annotation” and one ”issuer”? The same info?
Also I thought that the picture (when we tested) looked a little milky/lacking contrast and blackness.
4. Should we have gone for 709 source color when encoding to jpeg2000 instead? Made a difference you think?
I also realize that in a world full of money we would all leave this to a lab but it's great that there's an opportunity to do it yourself. And with time knowledgde will gain and this won't feel like shooting in the dark, I hope.
Regards
Carl
This comment has been removed by the author.
ReplyDeleteI am total newbie to this, and in urgent rush thanx to festival invitation from Jeonju fest in Korea. They want DCP. I have downloaded OpenDCP, I have generated TIFF folders of the 2 films, one 75 mins, one 89 mins in length, shot on XDcamEX-1. I have no idea what to do next. If someone can take me by the hand and tell me, much appreciated. Here, or via email, clarandjon@msn.com. I cannot afford to send it to a professional house.
ReplyDeleteMatt Sir... Thanks for valuable post and for ur time too..
ReplyDeleteSir I m finding some difficulty in creating sound. mxf file please help.
I have created sound file as per instruction given by u
MXF Parameters
Type: wav
Label: SMPTE
Frame Rate: 24
SOUND Parameters
Stereo
When clicked create.mxf it shows
MXF File Creation: Writing 809 of 809. MXF file sound.mxf creation failed.
You are a Godsend. I had no idea how to get OpenDCP to work. Your tutorial worked exactly as it should. Thank you!
ReplyDelete