Combine video and audio TS segments coming from HLS stream Apple HLS streams MPEG-2 TS files containing video and audio data in packetized elementary stream format. These segments (.ts files) can be joined in order to build final video.

Recent version of HLS can now produce segments with video data only in TS files, and audio data only in another TS files. This is used to serve multilanguages video.

Regardless of HLS itself, how can I process to remux TS files containing video data, and audio data, in one TS file? Joining TS files together doesn't work; I get data from first TS file combined with the same type of data from next TS files (only video or audio).
You can use tsMuxer to add the audio stream from one .ts file into the .ts file containing the video or vice versa. This is called muxing and doesn't affect the quality of the audio or video in any way.