Forum Post

Constraining the size of a Dolby Vision profile 7 encode?
I need to reduce the output size of my Dolby Vision 7 encode (with FEL) so that I can fit it on a UHD Blu-Ray (BD-100) with additional assets such as menus and audio.

From the options given in the Dolby Encoding Engine Documentation, it appears this method doesn't work because the engine will always target the maximum file size allowed by the Blu-Ray specification, even if the FFMPEG preset is set to slower presets or the encoding passes are increased to 2.

I am using the self-compiled x265 encoder with a ProRes input, outputting a base-layer and enhancement-layer (with a FEL).

  • Mehmet Gueney (Dolby Labs)

    I assume you are referring to sample Python script (encode_dvmezz_to_dv7.py). This script implements Profile7 encoding workflow and it uses 3rd party encoders x265 or Beamr for HEVC compression. Some HEVC compression settings such as bitrate/buffer values are hardcoded in the script. However, you can edit the script and change those values. Please note this script is a reference solution to help our customers implement their own workflow. You can reuse or modify this script and create your own solution at your own risk. Also it is strongly recommended to verify output files with BluRay and Dolby Vision Verification tools.
  • In regards to the encode_dvmezz_to_dv7.py file, I was wondering why the program sleeps for 5 seconds after every frame? I would assume this would keep the process forks synchronized, but I am not exactly sure why it is required and why it is such a long period of time. It increases encoding times multiplicatively, further increasing the chance for something to go wrong in the environment.
  • Mehmet Gueney (Dolby Labs)

    The program does not sleep anytime during execution. This script is designed to run multiple processes (dee_dv7_preproc, prores-decoder, x265-encoder, dee_dv_vesmux, etc) and share data between those processes. The execution can be either fully sequential (using temporary files to share data between processes) or concurrent (using pipes for interprocess communication). When you choose pipelined execution, make sure your computer's resources (CPU speed, memory) are sufficient to accommodate concurrent processing and memory usage. If you observe that execution is very slow or stalling this is most probably due to your machine configuration. Check DEE user manual for more details about data-stream, buffer-size options and minimum system requirements in below links:

    System Requirements:
    (
    https://customer.dolby.com/content-creation-and-delivery/dolby-encoding-engine-with-dolby-ac-4-v550)

    Profile7 Encoding Options:
    (
    https://customer.dolby.com/content-creation-and-delivery/dolby-encoding-engine-with-dolby-ac-4-v550/documentation/dolby-encoding-engine-documentation/command-line-interface-tools-guide/tools/video/scripts/encoding-dolby-vision-mezzanine-to-dolby-vision-profile-7)
    Expand Post