Adding ffmpeg as environment variable

10,985

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.
Share:
10,985

Related videos on Youtube

Goose
Author by

Goose

Updated on September 18, 2022

Comments

  • Goose
    Goose almost 2 years

    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.

    • DavidPostill
      DavidPostill almost 8 years
      From the link you posted "Add C:\ffmpeg\bin to your PATH"
    • DavidPostill
      DavidPostill almost 8 years
    • Goose
      Goose almost 8 years
      @DavidPostill See my edit. I followed the steps of that question but I'm still having difficulties.
    • DavidPostill
      DavidPostill almost 8 years
      You have added a new environment variable called ffmpeg. You are supposed to add C:\ffmpeg\bin to the existing PATH environment variable.
    • DavidPostill
      DavidPostill almost 8 years
    • Goose
      Goose almost 8 years
      @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.
    • DavidPostill
      DavidPostill almost 8 years
      Please edit and add the output from running path in a cmd shell.
    • Goose
      Goose almost 8 years
      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.
    • DavidPostill
      DavidPostill almost 8 years
      Answer added :)