Android 具有过渡效果的图像到视频转换
我成功地将一系列图像转换为引用链接的视频 但现在我的要求是随着每幅图像的变化,在视频中显示一些过渡效果,如淡入/淡出 可以使用FFMPEG吗?或者我应该使用其他方法吗 提及 更多细节Android 具有过渡效果的图像到视频转换,android,video,android-ndk,ffmpeg,transition,Android,Video,Android Ndk,Ffmpeg,Transition,我成功地将一系列图像转换为引用链接的视频 但现在我的要求是随着每幅图像的变化,在视频中显示一些过渡效果,如淡入/淡出 可以使用FFMPEG吗?或者我应该使用其他方法吗 提及 更多细节 请告诉我。在res文件夹中创建一个anim文件夹。在那里生成2个名为fadein和fadeout的xml文件,其中包含以下内容 fadein.xml <?xml version="1.0" encoding="utf-8"?> <alpha xmlns:android="http://schem
请告诉我。在res文件夹中创建一个anim文件夹。在那里生成2个名为fadein和fadeout的xml文件,其中包含以下内容 fadein.xml
<?xml version="1.0" encoding="utf-8"?>
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator"
android:fromAlpha="0.0"
android:toAlpha="1.0"
android:duration="1000" />
<?xml version="1.0" encoding="utf-8"?>
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator"
android:zAdjustment="top"
android:fromAlpha="1.0"
android:toAlpha="0.0"
android:duration="1000" />
但是,我的要求不仅仅是播放具有过渡效果的图像文件。我还需要使用该过渡效果从给定的图像文件制作视频文件。我想我们需要使用NDK,不是吗?因此,我的要求与您的建议完全不同,因为我想将图像序列转换为视频文件,以后再使用该视频。希望,你现在明白了。好的@Varun,我仍然没有回答:(我也在搜索图像到视频的转换。我已经查看并尝试了你上面提供的示例。但是它显示了从摄像头捕获视频的过程。但是无法将图像列表转换为视频。因此,你能建议我转换它吗。
public void run() {
/* Create an intent that will start the main activity. */
Intent mainIntent = new Intent(javafile.this,
etcetc.class);
javafile.this.startActivity(mainIntent);
/* Apply our splash exit (fade out) and main
entry (fade in) animation transitions. */
overridePendingTransition(R.anim.fadein,
R.anim.fadeout);
}