M BUZZ CRAZE NEWS
// general

How to play video using FFmpeg on Ubuntu?

By Jessica Wood

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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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