2
votes

Ever heard of elfyourself? http://www.youtube.com/watch?v=gerWP7imzg8

I dont want to make a clone of elfyourself, but want to find a method to do the same combination of a video combined with moving images.

It would be perfect, if the resulting video can be embedded with HTML5 and work on popular browsers and smartphones (ios and android).

Requirements:

  • Ruby as language.
  • Place moving object on an existing video (its okay to do this with any tool what so ever).
  • Let an user select an image.
  • Serverside software should insert the user-selected image as the moving object.

The closest (not working) solution I can think of:

  • Embed the video in Flash and create the moving object as overlay.
  • Somehow let the Flash take the user-selected image as a parameter, so the image can be inserted as the moving object.
  • Use FFMPEG to convert the SWF file to mp4.
1

1 Answers

1
votes

The way I would do this is to use a simple gstreamer application. It will take care of the overlay and the transcoding in a single pipeline. In the future you could also have a "live" streaming solution from the same if you wanted. That ofcourse is dependent on your application.

Gstreamer has an element coglogoinsert which can overlay a png file. Advantage you can also allow transparency. With a simple application you can use the logo-x and logo-y parameters to change the location of the image at the interval you desire.

Gstreamer also has ruby bindings that are good enough to do this.