sourab-sharma / TouchToRecord

Touch android camera surface view to record video using FFmpeg Recorder
297 stars 104 forks source link

video watermarking #10

Closed cbfg5210 closed 9 years ago

cbfg5210 commented 9 years ago

I'd like to know how to add watermark to a video based on this project,please help on this

HallCheng commented 9 years ago

I'd like to know how to add watermark to a video based on this project, too

sourab-sharma commented 9 years ago

For some reasons, I can't work to give you working solution at the moment. You will have to try yourself. Go to Processor.java class , make some function like you see for combineVideoAndAudio

Use ffmpeg command like :

      this.mCommand.add("-vf");
  this.mCommand.add("movie=" + overlayImage +" [logo];[in][logo] overlay=0:0 [out]");

overlayImage is the path of image, and follow some documentation for other params from here https://ffmpeg.org/ffmpeg-filters.html

and when it works, please do post working solution anywhere online you like and drop a link here, so that I can close this issue.

cbfg5210 commented 9 years ago

Thanks,I will have a try!