Android Adding watermark using FFMPEG after reading from resources -


i need little adding watermark after reading app reasources.. have done , worked quite awesome when read directly specific folder. want make idea generic , want read resources apply on video. trying read watermark drawable

uri watermark = uri.parse("android.resource://com.app.videoedit/"+r.drawable.watermark); 

my command here

complexcommand =new string[] {"ffmpeg","-y" ,"-i", externalpath,"-i", outputaudiofile, "-strict","experimental", "-filter_complex", "[1:a]atempo=1.0[a1];" + "movie=" +watermark /////////////////////// here path  +" [watermark];" + "[0:v][watermark] overlay=(main_w-overlay_w-10):(main_h-overlay_h-10)    [outv]", "-map", "[outv]", "-map", "[a1]",  "-s", "480x320","-r", "30", "-b", "15496k", "-vcodec", "mpeg4","-ab",    "48000", "-ac", "2", "-ar", "22050", "-shortest",path+"merged.mp4"}; 


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -