423 Commits

Author SHA1 Message Date
jcdr428
f8bacd83de Integrate old DV profiles
See table from https://forum.blu-ray.com/showpost.php?p=12875562&postcount=645

Profiles 2,3 and 6 to be included -despite these profiles being obsolote on new equipment.
2020-03-30 17:11:50 +02:00
jcdr428
85a0357ab8 clang check 2020-03-30 15:43:07 +02:00
jcdr428
5c496c5f18 Extend stream_type 06 (private data) to all DV tracks 2020-03-30 15:39:43 +02:00
jcdr428
8fd9aa597a Non-HDMV descriptor for HEVC DV tracks 2020-03-30 00:12:10 +02:00
jcdr428
7dbba438cc [bug] Correct default Color Description params
As per T-REC-H.265 Annex E.3 VUI Semantics, Colour Primaries, Transfer Characteristics and Matris Coeffs, when not present in the VUI, should be = 2 (unspecified) by default.
Plus code simplification: DVCompatibility is not compulsory in the DoVi descriptor.
2020-03-29 22:13:19 +02:00
Dan Bryant
2ff96ce30a Merge branch 'master' of https://github.com/justdan96/tsMuxer 2020-03-29 20:25:47 +01:00
Dan Bryant
9cb01b30f1 update documentation to include newest changes and AC3 core clarification 2020-03-29 20:25:02 +01:00
Dan
f82d163cbc
Merge pull request #265 from jcdr428/patch-3
[bug] Add H265 to isVideoPID()
2020-03-28 23:05:50 +00:00
Dan
55315577c6
Merge pull request #266 from jcdr428/patch-1
Correct eliding of track filenames in the GUI
2020-03-28 23:04:54 +00:00
jcdr428
9f649cae1b
Correct Eliding of track filenames
Set WordWrap to false so that the eliding occurs at each character and not at each word.

Fixes issue #261 .
2020-03-28 23:24:41 +02:00
jcdr428
b2ac7c9b4f
[bug] Add H265 to isVideoPID() 2020-03-28 19:48:54 +02:00
Dan
ee6aaebec4
Merge pull request #238 from abakum/patch-7
use "make release" for Msys2 build script
2020-03-28 17:46:48 +00:00
Dan
d894f37711
Merge pull request #264 from jcdr428/patch-2
[bug] Fix DV profile for single track from Blu-ray
2020-03-28 17:45:38 +00:00
Dan
fd234e60b4
Merge pull request #263 from jcdr428/Fix_Subtitle_Delay
[bug] Fix Subtitle Delay when concatenating M2ts
2020-03-28 17:44:41 +00:00
Dan
9557cfaba6
Merge pull request #260 from jcdr428/patch-1
[bug] Fix num_applicable_ops_minus1 size
2020-03-28 17:43:03 +00:00
jcdr428
19adfe01b1
[bug] Fix DV profile for single track from Blu-ray
Members of Mkvforum are using a tool to create single DV tracks from double-track Blu-rays.
Although backward compatible with HDR10 or SDR, these single track DVs are not profile 8 compliant and should be profile 5.
2020-03-28 15:28:01 +02:00
jcdr428
5b4ae7d663 Fix Subtitle Delay when concatenating M2ts
tsMuxer currently calculates the length of each m2ts relative to the last PTS.
The length of the m2ts should be calculated relative to the last video PTS, as there can be some audio/subtitle tracks longer than the video track.
2020-03-28 14:28:19 +02:00
jcdr428
b65f638b7a
[bug] Fix num_applicable_ops_minus1 size 2020-03-26 16:05:56 +02:00
abakum
c6860175f5
make release instead make 2020-03-25 14:19:38 +03:00
Dan
04fc2f1cb8
Merge pull request #255 from jcdr428/patch-1
[bug] SEI nal does not always end by 0x80
2020-03-24 12:05:17 +00:00
jcdr428
2327f3cf20
[bug] SEI nal does not always end by 0x80
In the rare case where the SEI payload is not byte aligned, the nal does not end with 1000 0000.
Fixes issue #252 .
2020-03-23 21:40:37 +02:00
Dan
eaf35b4a4b
Merge pull request #254 from jcdr428/patch-4
For double video track, DV EL stream type = 0x06
2020-03-22 20:10:43 +00:00
Dan
1d4ac18e56
Merge pull request #251 from jcdr428/patch-1
Fix initializing lastDTS
2020-03-22 20:09:20 +00:00
jcdr428
286ccfebb2
clang check 2020-03-22 22:06:12 +02:00
Dan
ea5aaed213
Merge pull request #253 from jcdr428/patch-3
[Bug] prevent bitstream exception in hevc.cpp
2020-03-22 20:06:12 +00:00
Dan
9ba13389a8
Merge pull request #249 from jcdr428/patch-2
[bug] MP4 If no moof, return at first mdat
2020-03-22 20:04:49 +00:00
jcdr428
08ee53353e
For double video track, DV EL stream type = 0x06
As per 3.1.3.1 of DolbyVisionProfilesLevels_v1_3_2_2019_09_16.pdf, for the secondary Dolby Vision PID carrying the EL and RPU substream, "the value of stream_type shall be set to 0x06 (indicating PES packets containing private data)."
2020-03-22 22:01:44 +02:00
jcdr428
a4c47081da
[Bug] prevent bitstream exception in hevc.cpp
HDR10+ metadata is transmitted in the hevc stream via SEI nal with payloadType=4 'User data registered by Recommendation ITU-T T.35 SEI message syntax'. However the SEI 4 can have other uses, e.g. a single byte T.35 country code.

This fix prevents bitstream exception std::exception when SEI payloadSize is too short.
2020-03-22 21:12:37 +02:00
Dan
3def0c5547
Merge pull request #250 from jcdr428/Correct_DV_Profile_4
previous to this all Single Track Double Layer files were treated as Single Track Single Layer files and now we can properly handle those cases
2020-03-22 16:54:39 +00:00
jcdr428
c5cba97021
Fix initializing lastDTS
Currently, tsMuxer muxes the first two frames of the first video track before muxing any other track.
This is due to metaDemuxer.cpp line 98 'minDts = streamInfo.m_lastDTS;', with m_lastDTS being initialized at zero.

The first video packet pts is set to 0, the first dts is set back by one frame.
The lastDTS value must be initialized below the value of the first DTS.
2020-03-21 22:13:55 +02:00
jcdr428
6b653cbadc Correct DV Profile 4
DV Profile 4 is single track double layer
DV Profile 7 is double track double layer
2020-03-20 19:19:36 +02:00
jcdr428
f17cbf3909
clang check 2020-03-20 12:13:10 +02:00
jcdr428
5f0d175591
[bug] MP4 If no moof, return at first mdat
Bug created by #205 .
If no moof atom met, stop atom parsing as soon as an mdat data atom is found.
2020-03-20 12:10:53 +02:00
Dan
5e71110206
Merge pull request #248 from jcdr428/patch-1
Set HDR flags only if HEVC stream has been detected
2020-03-18 18:33:52 +00:00
jcdr428
b8310f5bb2
Update hevcStreamReader.cpp
Set hdr flags only if hevc stream (i.e. sps, pps, vps) has been detected.
2020-03-18 20:00:28 +02:00
Dan Bryant
cfa580ec4f avoid error with overnight OBS rebuild 2020-03-15 17:51:44 +00:00
Dan
226bab56f8
Merge pull request #245 from jcdr428/mpeg_descriptors
Correct MPEG-2 stream HDMV TS descriptors
2020-03-15 17:50:17 +00:00
Dan
30509b299d
Merge pull request #246 from jcdr428/EAC3_Descriptor
Ensure correct descriptors for pure EAC3 and also for AC3/EAC3 hybrid
2020-03-15 17:48:42 +00:00
Dan
20e9eeb648
Merge pull request #242 from jcdr428/patch-1
Fix to #206 so that video streams always come first in the stream list
2020-03-15 17:47:07 +00:00
Dan
21572f6f58
Merge pull request #243 from jcdr428/Non_Blu-ray_Dolby_Vision
In non-Bluray mode (TS or M2TS), when Dolby Vision is detected, include the 'DoVi' Registration Descriptor and the Dolby Vision video descriptor.
2020-03-15 17:46:29 +00:00
jcdr428
9384e6d665 clang check 2020-03-14 23:39:50 +02:00
jcdr428
8bc3ec1467 Correct AC3 descriptor
tsMuxer muxes Bluray "hybrid" AC3/EAC3 with HDMV descriptors. This patch adds the ATSC descriptor for pure (no AC3) EAC3 tracks.
2020-03-14 23:33:04 +02:00
jcdr428
fd2f5910df clang check 2020-03-13 23:36:44 +02:00
jcdr428
b7526c85ee Correct MPEG Descriptors
The TS Descriptors were not returned ('return 0') in the getTSDescriptor function.

The patch fixes the HDMV TS Descriptors.
2020-03-13 21:17:48 +02:00
jcdr428
11fcb24857
Solve endless loop on end when muxing to Blu-ray (#244)
The bluray movie always loops instead of stopping after reading.

Solution given by staina, cf. https://forum.doom9.org/showthread.php?p=1899665#post1899665
2020-03-13 19:21:09 +01:00
jcdr428
51670c7246 Correct ac3StreamReader 2020-03-13 13:31:20 +02:00
jcdr428
c10d0b8481 clang check 2020-03-13 13:17:38 +02:00
jcdr428
77e77f83ba Remove unused m_hdrBuffer 2020-03-13 12:57:22 +02:00
jcdr428
ffb6af0f78 Non-bluray Dolby Vision 2020-03-13 12:45:33 +02:00
jcdr428
d652b6e9a3
cland check 2020-03-12 22:09:55 +02:00