Take the 2-minute tour ×
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It's 100% free, no registration required.

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

share|improve this question
    
I don't know enough to give an actual solution, but some reading seems to indicate that FFMPEG may be able to deal with this. –  AJ Henderson May 14 at 3:02
    
I just checked and yes, you are right. FFmpeg handles HLS with multiple audio tracks. I will take a look at source now. –  Velcro May 14 at 16:47

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.