1

I've been trying to follow step two of the dependence guide of Microsofts Project Malmo.

https://github.com/Microsoft/malmo/blob/master/doc/install_windows.md

I need to create the environment variable for ffmpeg. I have installed ffmpeg at C:\ffmpeg so that it's bin is at C:\ffmpeg\bin. I have tried the following

Through command prompt

set ffmpeg=C:\ffmpeg\bin

Through GUI menu

My Computer
Environment variables
Add
Name ffmpeg
Value C:\ffmpeg\bin

Neither has worked. I should be able to type ffmpeg and see it's recognized, but I'm currently still getting the "Not recognized" error.

** Edit: ** What are PATH and other environment variables, and how can I set or use them? seems to me to be recommending the steps I've already taken. If I have made a mistake in my steps, please point it out.

Goose
  • 153
  • 1
  • 2
  • 10
  • From the link you posted "Add C:\ffmpeg\bin to your **PATH**" – DavidPostill Jul 10 '16 at 23:55
  • Possible duplicate of [What are PATH and other environment variables, and how can I set or use them?](http://superuser.com/questions/284342/what-are-path-and-other-environment-variables-and-how-can-i-set-or-use-them) – DavidPostill Jul 10 '16 at 23:56
  • @DavidPostill See my edit. I followed the steps of that question but I'm still having difficulties. – Goose Jul 11 '16 at 00:03
  • You have added a new environment variable called `ffmpeg`. You are supposed to add `C:\ffmpeg\bin` to the existing `PATH` environment variable. – DavidPostill Jul 11 '16 at 00:25
  • [How to Edit Your System PATH for Easy Command Line Access in Windows](http://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/) – DavidPostill Jul 11 '16 at 00:27
  • @DavidPostill Thank you, that is probably part of the misunderstanding, but I'm still getting "Not recognised" error. I added it for user and system environment variables, no luck. – Goose Jul 11 '16 at 00:39
  • Please [edit] and add the output from running `path` in a `cmd` shell. – DavidPostill Jul 11 '16 at 00:57
  • It didn't have the ffmpeg variable, but after closing and reopening command prompt, ffmpeg is now included and the command works as expected. Thanks for your help. Post the bit on editing path instead of adding new and I will happily accept. – Goose Jul 11 '16 at 01:06
  • Answer added :) – DavidPostill Jul 11 '16 at 01:12

2 Answers2

4

I should be able to type ffmpeg and see it's recognized

but I'm currently still getting the "Not recognized" error.

You have added a new environment variable called ffmpeg.

You are supposed to add C:\ffmpeg\bin to the existing PATH environment variable.

See How to Edit Your System PATH for Easy Command Line Access in Windows or What are PATH and other environment variables, and how can I set or use them? for instructions.

Note:

  • If you change the path using the Control panel GUI you need to close and restart any cmd shells to see the change.
DavidPostill
  • 153,128
  • 77
  • 353
  • 394
0

Copy ffmpeg.exe to C:\Windows\System32

No need to mess with any other variables. However, this may be considered a security issue.

moi
  • 285
  • 1
  • 15