title: How do I set up Cloud9 to use ffmpeg?
body: <p>I have a local python script using <code>moviepy</code> that stitches together images to make a movie.  I'd like to move this into a lambda function.</p>
  <p>My approach has been to use AWS Cloud9 IDE to create the lambda.  But I am stuck getting ffmpeg to work.  moviepy is looking for ffmpeg, but I can't install it.</p>
  <p>Specifically when running the function with just <code>import moviepy</code>, Cloud9 errors with</p>
  <blockquote>
  <p>[ERROR] RuntimeError: No ffmpeg exe could be found. Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.</p>
  </blockquote>
  <p>And when trying to install ffmpeg (<code>sudo yum install ffmpeg</code>), Cloud9 prevents with the message</p>
  <blockquote>
  <p>234 packages excluded due to repository priority protections</p>
  <p>No package ffmpeg available.</p>
  </blockquote>
  <p>How do I get Cloud9 to contain a usable ffmpeg that I can call in my python script?  Or, alternatively, is there a more cloud-friendly way to stitch images to a video?</p>
  <p><strong>Update: installed binary, get similar error</strong></p>
  <p>Installing the binary lets me import <code>moviepy</code> and run commands.  But on trying to write the result file, I get the following error</p>
  <blockquote>
  <p>Moviepy - Building video ~/tmp/movie.mp4. Moviepy - Writing video
  ~/tmp/movie.mp4</p>
  <p>[ERROR] FileNotFoundError: [Errno 2] No such file or directory:
  '/usr/bin/ffmpeg' Traceback (most recent call last):   File
  &quot;/var/task/app.py&quot;, line 52, in lambda_handler
      clip_looped.write_videofile('~/tmp/movie.mp4')   File &quot;&quot;, line 2, in write_videofile   File
  &quot;/var/task/moviepy/decorators.py&quot;, line 54, in requires_duration
      return f(clip, *a, **k)   File &quot;&quot;, line 2, in write_videofile   File &quot;/var/task/moviepy/decorators.py&quot;, line 135, in
  use_clip_fps_by_default
      return f(clip, *new_a, **new_kw)   File &quot;&quot;, line 2, in write_videofile   File &quot;/var/task/moviepy/decorators.py&quot;, line
  22, in convert_masks_to_RGB
      return f(clip, *a, **k)   File &quot;/var/task/moviepy/video/VideoClip.py&quot;, line 300, in write_videofile
      ffmpeg_write_video(self, filename, fps, codec,   File &quot;/var/task/moviepy/video/io/ffmpeg_writer.py&quot;, line 213, in
  ffmpeg_write_video
      with FFMPEG_VideoWriter(filename, clip.size, fps, codec = codec,   File &quot;/var/task/moviepy/video/io/ffmpeg_writer.py&quot;, line 129, in
  <strong>init</strong>
      self.proc = sp.Popen(cmd, **popen_params)   File &quot;/var/lang/lib/python3.8/subprocess.py&quot;, line 858, in <strong>init</strong>
      self._execute_child(args, executable, preexec_fn, close_fds,   File &quot;/var/lang/lib/python3.8/subprocess.py&quot;, line 1704, in
  _execute_child
      raise child_exception_type(errno_num, err_msg, err_filename)</p>
  </blockquote>