0

After I recorded and saved streamed video files, it was saved in the following formats .ts and .m3u8 file extension names

In the folder called video I have the following files:

video/chunk_0.ts
video/chunk_1.ts
video/chunk_2.ts
video/content.m3u8

Here is what I want to achieve:

How do I merge all these files in video folder into .mp4 video file formats?

I have researched on Stack Overflow on how to do that, the Stack Overflow source suggest using exec and ffmpeg.

I guess something like the code below but they are other files in the folder:

<?php

$vi = exec(ffmpeg -i video/chunk_0.ts output.mp4);

How can I achieve that?

halfer
  • 19,471
  • 17
  • 87
  • 173
Nancy Moore
  • 2,005
  • 2
  • 15
  • 31
  • Just try some commands on the console first. Maybe list them in order, separated by spaces, before the output file. – halfer Feb 02 '22 at 21:16

0 Answers0