bytedeco/javacv

How to merge 3 commands to only one command to save process time.

Open

#1,024 opened on Jul 2, 2018

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Java (1,583 forks)batch import
help wantedquestion

Repository metrics

Stars
 (6,985 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Hi @saudet, How to merge 3 commands bellow to only one command to save proces time:

  1. String joinVideos = "-i " + input1 + " -i " + input1 + " -filter_complex [0:v][0:a][1:v][1:a]concat=n=2:v=1:a=1[v][a] -map [v] -map [a] -b:v 3650000";

  2. String addOverlay = "-i " + input1 + " -i " + overlayInput + " -filter_complex overlay=1:1 -b:v 3650000";

  3. String rotateVideo = "-i " + input + " -vf transpose=1 -b:v 3650000";

Thank you so much!

Contributor guide