ffmpeg Cut a media preserving all streams but also all metadata, timecodes and everything else
This seems to work:

ffmpeg -ss N -i input.ts -c copy -copyts -muxdelay 0 -max_delay 0 output.ts


You can add a

-map_metadata 0


to preserve whatever metadata ffmpeg can. But this doesn't seem to carry over all the metadata.