Yogevnn
Yogevnn

Reputation: 1510

Edit m4s files video

In my application i'm saving my video files in M4S format. I want to make an editing option for these files, my requirements are adding text and images at specific point of a video.

My first thought was to generate photo for text inserting (using jimp) which is very easy.

Now my goal is to make a single photo as a m4s file. preferably i would like to choose my own name for that file.

How can i achieve that?

The flow should be:

image.jpg -> 5.m4s

Upvotes: 0

Views: 1233

Answers (1)

elirandav
elirandav

Reputation: 2063

m4s files do not contain the metadata that allow to play it (also called segment initialization) so they are not independent. You can try this:

  1. Merge the m4s files to one mp4 file.
  2. Do simple image overlay (with your text image) to step 1 output file.
  3. Split again the output file of step 2 to m4s files.

Upvotes: 1

Related Questions