• 3
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

I am trying to overlay multiple images to the video at certain time interval... but the processing time is too much for a video length of 1 minute. I used VideoKit Library for it. Here is my code for adding multiple images to Video.

 String[] command = {"-i", inputPath, 
                "-i", imagePath1,"-i", imagePath2,"-i",imagePath3,
                "-filter_complex",
                "[0][1]overlay=y=H-h:enable='between(t,2,10)'[v1];
                 [v1][2]overlay=y=H-h:enable='between(t,10,20)'[v2];
                 [v2][3]overlay=y=H-h:enable='between(t,20,30)'[v3]",
                "-map", "[v3]",  outputPath};

Is there any faster processing library for video processing.

I just add two more tags to make processing faster.

String[] command = {"-i", inputPath, "-i", imagePath1,"-i", imagePath2,"-i",imagePath3, "-filter_complex", "[0][1]overlay=y=H-h:enable='between(t,2,10)'[v1]; [v1][2]overlay=y=H-h:enable='between(t,10,20)'[v2]; [v2][3]overlay=y=H-h:enable='between(t,20,30)'[v3]", "-map", "[v3]", "-preset", "ultrafast", outputPath};

  • 1
Reply Report