How to Play Video Using Ffmpeg on Ubuntu?
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 Directory...
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 directory
How can I fix this problem please?
2 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"
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.