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
830 stars 140 forks source link

Muxing H264 video with cut point leads to unplayable file #813

Open DreckSoft opened 6 months ago

DreckSoft commented 6 months ago

I have a MKV which has the first few seconds of the video reencoded. It plays fine in MKV. If I mux it with tsmuxer (M2TS oder BD Folder) the playback is garbled from that point on. Muxing back to MKV still has a broken video.

Example: https://anonymfile.com/35XB/test.mkv

The file stays playable if I select "Do not change SEI and VUI data" but fails with the other two options. But then it says "H264 warn: SPS parameters is not consistent throughout a stream"

I'm not sure if that's a bug but I assume there's something wrong with SEI/VUI rebuild.