Question: How can I get the following effect with FFMPEG?

[![enter image description here](https://i.imgur.com/8KeRNk5.gif)](https://i.imgur.com/8KeRNk5.gif)

I know I have to do it with Zoompan, but the truth is, I've been trying for a while and I can not!

Answer: 
The below pom.xml would suffices your requirement and 
 this [tutorial](https://www.journaldev.com/21816/mockito-tutorial) will help you for better understanding how to work with mockito using maven

```
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
          <modelVersion>4.0.0</modelVersion>
          <groupId>BlackJack</groupId>
          <artifactId>BlackJack</artifactId>
          <version>0.0.1-SNAPSHOT</version>
        <dependencies>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <version>2.24.0</version>
            <scope>test</scope>
        </dependency>
        </dependencies>
          <build>
            <sourceDirectory>src</sourceDirectory>
            <testSourceDirectory>test</testSourceDirectory>
            <resources>
              <resource>
                <directory>src</directory>
                <excludes>
                  <exclude>**/*.java</exclude>
                </excludes>
              </resource>
            </resources>
            <plugins>
              <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.0</version>
                <configuration>
                  <source>1.8</source>
                  <target>1.8</target>
                </configuration>
              </plugin>
            </plugins>
          </build>
        </project>

```
Maven has to download the dependencies, so you have to specify the package you're trying to import in the pom file. Go to <https://mvnrepository.com> and search for your package. Find the latest version, and you'll see under the maven tab something like this.

```
<dependency>
    <groupId>org.mockito</groupId>
    <artifactId>mockito-core</artifactId>
    <version>2.24.0</version>
    <scope>test</scope>
</dependency>

```

You put these in between `<dependencies></dependencies>` somewhere in your project tags.