justdan96 / tsMuxer

tsMuxer is a transport stream muxer for remuxing/muxing elementary streams, EVO/VOB/MPG, MKV/MKA, MP4/MOV, TS, M2TS to TS to M2TS. Supported video codecs H.264/AVC, H.265/HEVC, VC-1, MPEG2. Supported audio codecs AAC, AC3 / E-AC3(DD+), DTS/ DTS-HD.
Apache License 2.0
831 stars 140 forks source link

Change video fps = unreadable video #714

Open allelouia opened 1 year ago

allelouia commented 1 year ago

I'm trying to mux a dolby vision movie at 23.976 fps with audio tracks and subtitles at 24 fps. I changed the fps of the 2 video tracks (the main one and the Dolby Vision track), added the audio tracks with a delay, added the subtitles. The produced iso is not readable. A mediainfo on the m2ts file gives strange results (there is not all the usual info)

Video #1
ID                                       : 4113 (0x1011)
Menu ID                                  : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Codec ID                                 : 36
Duration                                 : 2 h 24 min

Video #2
ID                                       : 4117 (0x1015)
Menu ID                                  : 1 (0x1)
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Codec ID                                 : 36
Duration                                 : 2 h 24 min

If I leave the fps of the video at 23.976, the film is readable but of course the audio shifts compared to the video. So something goes wrong when you change the fps of the video.

MUXOPT --no-pcr-on-video-pid --new-audio-pes --blu-ray --vbr --custom-chapters=00:00:00.000;00:11:29.914;00:20:46.413;00:30:31.161;00:40:19.159;00:50:24.201;01:01:10.950;01:10:22.824;01:21:13.155;01:30:18.529;01:41:51.320;01:57:14.943;02:13:05.401;02:18:22.399 --vbv-len=500 --start-time=524280
V_MPEGH/ISO/HEVC, "G:\BDMV\PLAYLIST\00003.mpls", fps=24, track=4113
V_MPEGH/ISO/HEVC, "G:\BDMV\PLAYLIST\00003.mpls", fps=24, track=4117
A_AC3, "\\synologynas\00013.mpls", timeshift=-16823ms, track=4353, lang=xxx, default
A_DTS, "\\synologynas\00013.mpls", timeshift=-16823ms, track=4354, lang=xxx
S_HDMV/PGS, "E:\Data\pgs1.sup", default=all, fps=24, lang=xxx
S_HDMV/PGS, "E:\Data\pgs2.sup", fps=24, lang=xxx