我有2个ffmpeg命令,我分别执行它们,它们起作用,但是我想一次又一次执行它们。该怎么做?
ffmpeg -i 1.mp4 -i logo.png -filter_complex "overlay=main_w-overlay_w-20:20" -codec:a copy 2.mp4
ffmpeg -i 2.mp4 -i picture.png -filter_complex "overlay=10:10" -codec:a copy 3.mp4
答案 0 :(得分:1)
使用:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".HomeScreenActivity"
>
<android.support.v4.widget.DrawerLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/HomeScreenDrawerLayout"
>
<android.support.design.widget.NavigationView
app:headerLayout="@layout/left_navigation_header"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/navigationView"
app:menu="@menu/drawer_layout"
android:layout_gravity="start"
android:background="#ffff"
>
</android.support.design.widget.NavigationView>
</android.support.v4.widget.DrawerLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/homeScreenframeLayout"
>
</FrameLayout>
<android.support.design.widget.BottomNavigationView
android:id="@+id/homeScreenBottomNavigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true"
android:layout_alignParentBottom="true"
app:menu="@menu/bottom_navigation"
android:background="?android:attr/windowBackground"
>
</android.support.design.widget.BottomNavigationView>
</RelativeLayout>
有关语法的说明,请参见FFmpeg Filter Documentation。