I tried to install FFmpeg on my Ubuntu 15.
When I try to play video like this:
./ffplay video.mp4 It shows me that:
bash :./ffplay: no such file or directoryHow can I fix this problem please?
22 Answers
First you have to install ffmpeg.
Open a terminal and execute :
sudo apt-get install ffmpeg Navigate to the folder containing the video file and execute :
ffplay <video-file-name-including-the-file-extension> Or open Nautilus file manager, right-click the folder containing the video file, open in terminal ...
Examples (one with spaces in the file name and one without) :
ffplay Type-C-Hypervisors.mp4
ffplay "OpenStack for Everybody.mp4" 6 Your command ./ffplay tries to run ffplay from the current directory ("."). Since the ffmpeg package installs ffplay in /usr/bin, and not in your current directory, ./ffplay cannot find the program to execute.
Use ffplay video.mp4 (remove the "./"), and let your shell find the executable using $PATH.