java - Is it possible to add a text overlay to videos? -


i ios developer , have written app client, fitness (crossfit) timer app, films on workout , adds real time overlays , rep counts finished video. challenging project complete , wondering if same thing possible on android?

essentially need know is, possible overlay text changes (e.g timer counting in seconds) onto recorded video?

if has written app grateful see code snippets java not forte!

thanks!

  1. if want display text on video , not add video file, it's easy using framelayout:
<?xml version="1.0" encoding="utf-8"?> <framelayout     xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical">      <videoview         android:id="@+id/videoview"         android:layout_height="match_parent"         android:layout_width="match_parent" />      <textview         android:text="text"         android:id="@+id/textview"         android:layout_width="wrap_content"         android:layout_height="wrap_content" /> </framelayout> 

and text displayed on video.

  1. if want add text original video file, not simple. need external tools handle this, example ffmpeg. links give more info topic: how add text on video recording? , how embed text while recording video in android?

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -