# Ffmpeg issue when running Gatsby Build

**URL:** <https://answers.netlify.com/t/ffmpeg-issue-when-running-gatsby-build/9115>\
**Category:** Support\
**Tags:** deployment, building, netlify-newbie\
**Created:** [February 17, 2020, 7:52pm UTC](https://answers.netlify.com/t/ffmpeg-issue-when-running-gatsby-build/9115 "2020-02-17T19:52:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hideodaikoku](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hideodaikoku/32/6883_2.png) [@hideodaikoku](https://answers.netlify.com/u/hideodaikoku)\
**Post date:** [February 17, 2020, 7:52pm UTC](https://answers.netlify.com/t/ffmpeg-issue-when-running-gatsby-build/9115/1 "2020-02-17T19:52:28Z")

</div>

I need advice to debug deploy [Netlify App](https://app.netlify.com/sites/mystifying-montalcini-c307dd/deploys/5e4aedaf54fc5826bd308962)

This is the error I get when deploying! It works just fine on my local machine though.

```auto
error UNHANDLED REJECTION Cannot find ffprobe
Error: Cannot find ffprobe

```

---

<div class="post-metadata">

**Author:** ![fool](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/fool/32/37_2.png) [@fool](https://answers.netlify.com/u/fool)\
**Post date:** [February 19, 2020, 12:35am UTC](https://answers.netlify.com/t/ffmpeg-issue-when-running-gatsby-build/9115/2 "2020-02-19T00:35:11Z")

</div>

We don’t have that program installed in the build image. Not a very common use case for our CI. You might try wedging an appropriate binary in (you’ll want something for 64bit ubuntu 16.06, which I think you found in the meantime, judging from your current build command :))

---

<div class="post-metadata">

**Author:** ![hideodaikoku](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hideodaikoku/32/6883_2.png) [@hideodaikoku](https://answers.netlify.com/u/hideodaikoku)\
**Post date:** [February 19, 2020, 4:42am UTC](https://answers.netlify.com/t/ffmpeg-issue-when-running-gatsby-build/9115/3 "2020-02-19T04:42:28Z")

</div>

Thanks! can i build a docker image and run it on netlify?

---

<div class="post-metadata">

**Author:** ![jen](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/jen/32/6044_2.png) [@jen](https://answers.netlify.com/u/jen)\
**Post date:** [February 19, 2020, 11:32pm UTC](https://answers.netlify.com/t/ffmpeg-issue-when-running-gatsby-build/9115/4 "2020-02-19T23:32:13Z")

</div>

It isn’t currently possible to build your own Docker image and deploy it on Netlify:

> [@Docker deployment](https://answers.netlify.com/t/docker-deployment/7894/2):
>
> Hi, @sts, and welcome to our Netlify community site. The following topic will likely answer this question: I realize you are asking about running a docker container at Netlify, but the same answer above applies. If there are still questions after reading that, please let us know.

But the person is thread is also talking about tweaking the Docker image, so sharing here in case it’s helpful:

> [@Custom build command for home-grown CMS?](https://answers.netlify.com/t/custom-build-command-for-home-grown-cms/9031/5):
>
> You’d have to install it. Jekyll gets installed by your Gemfile which we automagically process using bundler; some other things (e.g. Gatsby) get installed by package.json or yarn.lock (using npm or yarn). So - a good first starting spot is to wrap up your generator in an npm or ruby package that you can install as bundle install foo or npm install foo (those names are probably taken so you’ll need to be a bit more creative due to single global namespace) and then you can require them via thos…

Let us know if we can answer any other questions!

---

<div class="post-metadata">

**Author:** ![hideodaikoku](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hideodaikoku/32/6883_2.png) [@hideodaikoku](https://answers.netlify.com/u/hideodaikoku)\
**Post date:** [February 21, 2020, 3:31am UTC](https://answers.netlify.com/t/ffmpeg-issue-when-running-gatsby-build/9115/5 "2020-02-21T03:31:22Z")

</div>

@jen Thanks so much! this is really good to know. Do you know if there are any plans to include full support for docker?

---

<div class="post-metadata">

**Author:** ![hideodaikoku](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hideodaikoku/32/6883_2.png) [@hideodaikoku](https://answers.netlify.com/u/hideodaikoku)\
**Post date:** [February 21, 2020, 3:38am UTC](https://answers.netlify.com/t/ffmpeg-issue-when-running-gatsby-build/9115/6 "2020-02-21T03:38:43Z")

</div>

@fool  
The reason why I ran into this issue is that I was using the `gatsby-video` plugin that requires `gatsby-plugin-ffmpeg` and `gatsby-transformer-ffmpeg`. For all of those to run in tandem you need ffmpeg installed on your system.

It would be really helpful if you could include ffmpeg in your build image. That way I can optimize video sizes during build time when I am trying to host my own videos.

---

<div class="post-metadata">

**Author:** ![jen](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/jen/32/6044_2.png) [@jen](https://answers.netlify.com/u/jen)\
**Post date:** [February 21, 2020, 10:08pm UTC](https://answers.netlify.com/t/ffmpeg-issue-when-running-gatsby-build/9115/8 "2020-02-21T22:08:43Z")

</div>

We could possibly file a feature request for adding ffmpeg to the build image, but it’s not a common request so I wouldn’t be hopeful about it being implemented in a time frame that would be useful for you.

Maybe you’ve already tried this, but just in case: do you think it would work to add this dependency?

> **[@ffmpeg-installer/ffmpeg](https://www.npmjs.com/package/@ffmpeg-installer/ffmpeg)**
>
> Platform independent binary installer of FFmpeg for node projects. Latest version: 1.1.0, last published: 2 years ago. Start using @ffmpeg-installer/ffmpeg in your project by running \`npm i @ffmpeg-installer/ffmpeg\`. There are 231 other projects in...

If not, here’s one more thing you could try:

> If our build environment is missing something other than a ruby, node, or python dependency, you might need to add it yourself. Our build environment runs **Ubuntu Linux v 16.04 LTS using x86\_64 architecture** , so you’ll want to bring a binary that can run there. Since you don’t have permissions to `apt-get install` anything, you’re limited to pre-compiled binaries that fit that architecture. A frequent use pattern is to get a copy of the binary we need to build your site, and add it to your repository so you can run it directly during your build. By default your build starts in the root of your repository, so it could be as easy as using `./my-binary` as part of your build command.

Let us know how it goes!

---

<div class="post-metadata">

**Author:** ![hideodaikoku](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hideodaikoku/32/6883_2.png) [@hideodaikoku](https://answers.netlify.com/u/hideodaikoku)\
**Post date:** [February 22, 2020, 2:56am UTC](https://answers.netlify.com/t/ffmpeg-issue-when-running-gatsby-build/9115/9 "2020-02-22T02:56:08Z")

</div>

Thanks! Including the binary worked for me.

That works for me, but if it’s not a common issue then I wouldn’t want to bother anyone with working on integrating it.

Cheers 😊

---

<div class="post-metadata">

**Author:** ![jen](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/jen/32/6044_2.png) [@jen](https://answers.netlify.com/u/jen)\
**Post date:** [February 24, 2020, 5:28pm UTC](https://answers.netlify.com/t/ffmpeg-issue-when-running-gatsby-build/9115/10 "2020-02-24T17:28:17Z")

</div>


