Skip to content

Commit

Permalink
Add warning when muxing DV...
Browse files Browse the repository at this point in the history
...that double DV layer single tracks disks will not play in a Blu-ray player.

Fixes issue #586.
  • Loading branch information
jcdr428 committed May 4, 2022
1 parent 548eb1d commit 4816a65
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions tsMuxer/muxerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,23 @@ void MuxerManager::checkTrackList(const vector<StreamInfo>& ci)
mlpFound = true;
}

if (m_bluRayMode && aacFound)
LTRACE(LT_ERROR, 2,
"Warning! AAC codec is not standard for BD disks, the m2ts will not play on a Blu-ray player.");
else if (m_bluRayMode && mlpFound)
LTRACE(LT_ERROR, 2,
"Warning! MLP codec is not standard for BD disks, the m2ts will not play on a Blu-ray player.");
else if (!avcFound && mvcFound)
if (m_bluRayMode)
{
if (aacFound)
LTRACE(
LT_ERROR, 2,
"Warning! AAC codec is not standard for BD disks, the Blu-ray disk will not play in a Blu-ray player.");
else if (m_bluRayMode && mlpFound)
LTRACE(
LT_ERROR, 2,
"Warning! MLP codec is not standard for BD disks, the Blu-ray disk will not play in a Blu-ray player.");
else if (m_bluRayMode && (V3_flags & DV) && !(V3_flags & NON_DV_TRACK))
LTRACE(
LT_ERROR, 2,
"Warning! Dolby Vision Double Layer Single Tracks are not standard for BD disks, the Blu-ray disk will "
"not play in a Blu-ray player.");
}
if (!avcFound && mvcFound)
THROW(ERR_INVALID_STREAMS_SELECTED,
"Fatal error: MVC depended view track can't be muxed without AVC base view track");
}
Expand Down

0 comments on commit 4816a65

Please sign in to comment.