2

I'm a beginner with Ubuntu and I need to setup a streaming server for my company, I've installed NGINX and FFMPEG, but when I call ffmpeg -i in the ~/ffmpeg/ffmpeg directory it returns an error command not found but when I call ./ffmpeg -i it returns a list with configurations.. why does ffmpeg -i not work and how can I fix it?

I think that the Path Enviroment Variable is incorrect but how would I go abouts changing said variable? I'm not that experienced with Ubuntu / CMD programming / FFMPEG configuration.

Sources - https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu https://github.com/arut/nginx-rtmp-module/wiki/Control-module and http://docs.unified-streaming.com/tutorials/live/broadcast-247.html#continuous-timestamps

Gerwin
  • 131

1 Answers1

2

You need to add the directory where you've installed ffmpeg to your $PATH, the list of directories where executables can be found. The simplest way is to add this line to your ~/.profile:

export PATH="$PATH:$HOME/ffmpeg

Note that you need to add the directory containing the ffmpeg executable and not the executable itself. Then, log out and log back in again (or just run . ~/.profile) and you should be able to execute it from anywhere.

terdon
  • 100,812