简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM