1

I want to continue my last question about video

I want to create video stream from 400 images. But on this time i want to add some string ( data ) to the video stream.

I mean that i want to add to each frame some data. I know that video can hold a data that can belong to any frame that appear.

How to do it ? I looking at aforgenet and i found there only how to create the video stream from images.

I did not found any how to add data ( string ) about any frame.

Community
  • 1
  • 1
Yanshof
  • 9,659
  • 21
  • 95
  • 195
  • Is this text data? – Gyan Jul 08 '16 at 11:31
  • yes, the data is string .. you can say that its a text – Yanshof Jul 08 '16 at 11:36
  • Do you want to overlay the text on the image? – Gyan Jul 09 '16 at 11:29
  • no - i want to add data about each frame – Yanshof Jul 09 '16 at 11:32
  • 1
    So, save it as side data? Then use subtitles. Use a tool like Aegisub to generate subtitle. Then mux it into a MKV container. – Gyan Jul 09 '16 at 12:07
  • Mulvya@ - than i did not said this is subtitles. The data is simple text. And the question was how to do the 'mux' – Yanshof Jul 09 '16 at 13:08
  • 2
    Yes, but the way to insert the text is in the form of subtitles. You'll have to create a subtitle file, using a tool with Aegisub, then mux it `ffmpeg -i video.mp4 -i subtitle.srt -c copy -map 0 -map 1 video.mkv` – Gyan Jul 09 '16 at 13:18
  • ok, and what about the other distraction ? produce image and text from video stream ? – Yanshof Jul 09 '16 at 13:24
  • 1
    From images to video is `ffmpeg -framerate 25 -i img%03d.jpg -crf 20 video.mp4` – Gyan Jul 09 '16 at 13:38
  • WOW. I am currently busy with the same task. Did you found a solution? I am wondering: why you can not attach meta data to EVERY frame of video, which is as "sequence of images", as you can for TIFF file for example? – Michail Jul 12 '16 at 07:19
  • still looking for solution. can't use ffmpeg – Yanshof Jul 12 '16 at 13:25

1 Answers1

0

You can use a container format like mkv and add text as subtitle track.

g-hos
  • 117
  • 1
  • 7