c# - FFMPEG Overlay video on top of another video -


i have looked through questions on over stackoverflow none of answers worked me.

i have screen recorded video in mp4 , video recorded webcam in mp4. want overlay webcam video on top left of screen recorded video.

i think found right command line doing when step through ffmpeg process freezes when reaches " handler_name :soundhandler".

here command line:

string overlayposition = "movie=" + '"' + _videofile.filename + '"' + "[inner]; [in][inner] overlay [out]"; string overlaycommand = "-i " + '"' + videolist[0].path + '"' + " -vf " + '"' + overlayposition + '"' +  + '"' + " c:\\users\\james\\output.mp4" + '"'; 

does know doing wrong? i've managed trim audio , video, crop video, join sound, join video, , join sound , video cannot overlay work :(.

i updated ffmpeg , ended using this:

string overlaycommand = "-i " + '"' + videolist[0].path + '"' + " -i " + '"' + _videofile.filename + '"' + " -filter_complex " + '"' + "overlay" + '"' + " -strict -2 " + '"' + "c:\users\james\output.mp4" + '"';


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -