i am trying to overlay image on video using ffmpeg_kit_flutter with the follwoing command
paths
String imagePath = '/data/user/0/com.example.myapp/cache/file_picker/Screenshot_20220902-172941.png';
String videoPath = '/data/user/0/com.example.myapp/cache/file_picker/VID_20220824_081521.mp4';
String outPutPath = '/storage/emulated/0/Download/aoaosdf.mp4';
command
String comand = '-i $videoPath -i $imagePath -filter_complex overlay=10:10 -codec:a copy $outPutPath';
execute
FFmpegKit.execute(comand).then((session) async {
final returnCode = await session.getReturnCode();
if (ReturnCode.isSuccess(returnCode)) {
log.log('SUCCESS');
} else if (ReturnCode.isCancel(returnCode)) {
log.log('CANCEL');
} else {
log.log('ERROR');
}
});
results
the image completely covered the video
Qiestion
How can i control the size, position the image ?
does ffmpeg_kit_flutter
support it ? and How?
any command?