DolbyLaboratories / dlb_mp4base

The Dolby MP4 streaming muxer (dlb_mp4base) is a software implementation of a muxer of fragmented or unfragmented ISO base media file format (mp4). It supports muxing of Dolby Digital (AC-3), Dolby Digital Plus (E-AC-3), and Dolby AC-4 audio formats as well as Dolby Vision.
BSD 3-Clause "New" or "Revised" License
254 stars 60 forks source link

Command hangs and output file is almost empty #4

Closed Poilaucul closed 5 years ago

Poilaucul commented 5 years ago

Hello,

I have an issue with remuxing BL + EL video streams into a single Dolby Vision stream, I have tried with both the Windows and Linux binaries, they read the whole source files but never writes into the output file, and the command never exits I have to kill it. Tried with different profiles also.

Command: ./mp4muxer_64bits.exe --overwrite --dv-profile 4 --input-file 00014.track_4113.hevc --input-file 00014.track_4117.hevc --output-file F:\Ready.Player.One.2018.2160p.UHD.BluRay.HDR.HEVC.mp4

Output file: output.zip

Input files Base Layer:

General
Complete name                            : F:\Ready Player One\00014.track_4113.hevc
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
File size                                : 61.6 GiB

Video
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Commercial name                          : HDR10
Format profile                           : Main 10@L5.1@High
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (24000/1001) fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : BT.2020
Mastering display luminance              : min: 0.0050 cd/m2, max: 4000 cd/m2
Maximum Content Light Level              : 725 cd/m2
Maximum Frame-Average Light Level        : 162 cd/m2

Enhancement Layer;

General
Complete name                            : F:\Ready Player One\00014.track_4117.hevc
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
File size                                : 65.5 MiB

Video
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Commercial name                          : HDR10
Format profile                           : Main 10@L5.1@High
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (24000/1001) fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : BT.2020
Mastering display luminance              : min: 0.0050 cd/m2, max: 4000 cd/m2

Audio:

General
Complete name                            : F:\Ready Player One\00014.track_4355.ac3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
File size                                : 384 MiB
Duration                                 : 2h 19mn
Overall bit rate mode                    : Constant
Overall bit rate                         : 384 Kbps

Audio
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Duration                                 : 2h 19mn
Bit rate mode                            : Constant
Bit rate                                 : 384 Kbps
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 KHz
Frame rate                               : 31.250 fps (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 384 MiB (100%)
Service kind                             : Complete Main
ShaoWeiguo commented 5 years ago

Could you have a try with some short clips? Usually the tool need take several minutes to handle the huge files, how long do you wait for?

Poilaucul commented 5 years ago

It worked, just took 42 minutes.

PS F:\Rampage> Measure-Command {./mp4muxer_64bits.exe --overwrite --dv-profile 7 --input-file 00016.track_4113.hevc --input-file 00016.track_4117.hevc --input-file 00016.track_4357.ac3 --output-file F:\Rampage.mp4}

Days              : 0
Hours             : 0
Minutes           : 42
Seconds           : 10
Milliseconds      : 334
Ticks             : 25303342473
TotalDays         : 0,0292862760104167
TotalHours        : 0,70287062425
TotalMinutes      : 42,172237455
TotalSeconds      : 2530,3342473
TotalMilliseconds : 2530334,2473

PS F:\Rampage>

I would say approximately 35 minutes to get some output to the output file. Takes time because it's single threaded I guess.

ShaoWeiguo commented 5 years ago

Yes, it's single thread. The front-end provided is just a simple example. The purpose of this project is to help Dolby's partner or 3rd-party muxer/packager to support Dolby's codecs.