user5923: 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).

user11645: Do you have a m3u8 file? If so, I assume you can just do 
ffmpeg -i indexfile.m3u8 -acodec copy -vcodec copy output.ts

You could also convert it directly into the mp4 container:
ffmpeg -i indexfile.m3u8 -acodec copy -vcodec copy output.mp4


user3295: 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.

5923: <p>Apple HLS streams MPEG-2 TS files containing video and audio data in packetized elementary stream format. These segments (<code>.ts</code> files) can be joined in order to build final video.</p>

<p>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.</p>

<p>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).</p>
 11645: <p>Do you have a <a href="https://en.wikipedia.org/wiki/M3U" rel="nofollow"><code>m3u8</code></a> file? If so, I assume you can just do </p>

<pre><code>ffmpeg -i indexfile.m3u8 -acodec copy -vcodec copy output.ts
</code></pre>

<p>You could also convert it directly into the mp4 container:</p>

<pre><code>ffmpeg -i indexfile.m3u8 -acodec copy -vcodec copy output.mp4
</code></pre>
 3295: <p>You can use <a href="http://www.videohelp.com/tools/tsMuxeR" rel="nofollow">tsMuxer</a> 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.</p>
