Hello,

I am having issues working with HEVC video in tsMuxer. Resulting files seem to be corrupted and unplayable. PotPlayer reports the final file (m2ts) to be 3 hours long and will freeze player when you try to get past ~1h 30 minute mark. If ran from mpls file, the movie is only 1h 31 minutes long, unlike proper duration reported by MediaInfo. Playback speed seems to be broken - movie will play good for like one second to quickly skip next few frames and repeat.

Any ideas what's going on here? I am attaching some logs.

tsMuxer seems to be only reporting these things:
Code:
HEVC stream doesn't contain fps field. Muxing fps=23.976
B-pyramid level 2 detected. Shift DTS to 3 frames
Original file:
Code:
Video
ID                                       : 4113 (0x1011)
Menu ID                                  : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
Codec ID                                 : 36
Duration                                 : 1 h 46 min
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (23976/1000) FPS
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Remuxed file:
Code:
Video
ID                                       : 4113 (0x1011)
Menu ID                                  : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
Codec ID                                 : 6
Duration                                 : 1 h 46 min
Bit rate                                 : 56.2 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (23976/1000) FPS
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.283
Stream size                              : 42.0 GiB (96%)
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709