Android: How to save two overlapped videos as one using mediacodec? -


i want similar this on android.

i want load video file , display twice transformations (mostly resize). , want encode 1 video file.

is possible in native android? mediacodec or in other way?

i know there ffmpeg have trouble compiling , working xamarin.

mmsf allow display 1 video twice on screen. mediacodec used video decode operations. no special decode/extra libraries needed. mmsf uses existing android java apis (mediacodec/gles). goal of displaying single video multiple geoemtry can accomplished within fragment shader relative ease. mmsf sample #2 illustrates how display multiple videos, tweaked make single video display 1 or more times screen. within fragment fragmentshader.java want change texture samplers sample same source instead of unique samplers. example, texture2d(stexture2,texcoord) become texture2d(stexture,texcoord) , forth. cause same video applied multiple times different geometry. tiled geometry can changed modifying gles2layout.java suit particular needs or replace implementation altogether , provide own vertex data. overlapping effect. individual pixel processing algorithms & scaling operations / transforms applied geometry or fragement/vertex shader achieve other processing goals , may targeted specific geometry using per vertex color indicator of effect apply. pretty simple approach through creative use of texture coordinate mappings. hope helps , luck!


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -