cropsly / ffmpeg-android-java

Android java library for FFmpeg binary compiled using https://github.com/writingminds/ffmpeg-android
http://writingminds.github.io/ffmpeg-android-java
GNU General Public License v3.0
3.32k stars 831 forks source link

what is command for adding text and audio in videoview #377

Open mayursancheti opened 1 year ago

mayursancheti commented 1 year ago

hi, i have added library into gradle and also call load loadFFMpegBinary() function which is correctly loaded , now i am using below code, `private void execFFmpegBinary(final String[] command) { try { ffmpeg.execute(command, new ExecuteBinaryResponseHandler() { @Override public void onFailure(String s) { Log.d(TAG, "FAILED with output : " + s); Toast.makeText(MainActivity.this, "failed output "+s, Toast.LENGTH_SHORT).show(); } @Override public void onSuccess(String s) { Log.d(TAG, "SUCCESS with output : " + s); //Perform action on success Toast.makeText(MainActivity.this, "succcess output "+s, Toast.LENGTH_SHORT).show(); } @Override public void onProgress(String s) { Log.d(TAG, "progress : " + s);

            }
            @Override public void onStart() {
                Log.d(TAG, "Started command : ffmpeg " + command);
                Toast.makeText(MainActivity.this, "Started command ", Toast.LENGTH_SHORT).show();

            }
            @Override public void onFinish() {
                Log.d(TAG, "Finished command : ffmpeg " + command);
                Toast.makeText(MainActivity.this, "Finished commeda", Toast.LENGTH_SHORT).show();
            }
        });
    }

    catch (FFmpegCommandAlreadyRunningException e) {
        Toast.makeText(this, ""+e, Toast.LENGTH_SHORT).show();
    }

}`

but in this function what is command for adding Text or Audio to videoview