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

How can I fix this problem please?

2

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"
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest