3

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
  • How did you try to install ffmpeg? – muru Mar 27 '16 at 15:12
  • 3
    just remove the space between ff and play => ffplay – Dimitri Podborski Mar 27 '16 at 15:18
10

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
  • when i execute this command tell <sudo apt-get install ffmpeg > ffmpeg is already the newest version .. and i try to play video from link .. i dont have that video on my folders.... – ldeveloper Mar 27 '16 at 16:30
  • @ldeveloper : This means that you already have ffmpeg installed. What do you mean with link ? Examples in the answer are videos that are on my PC ... so you of course have to take your video files and folders. :) – cl-netbox Mar 27 '16 at 16:37
  • no , if i want play this video . ./ffplay skyiptv.ddns.net:8000/live/batman/batman/400.ts – ldeveloper Mar 27 '16 at 17:02
  • @ldeveloper : Here you can find some more information about video streaming with ffmpeg / ffplay -> trac.ffmpeg.org/wiki/StreamingGuide - but this is not the "normal" way of using ffmpeg / ffplay ... :) – cl-netbox Mar 27 '16 at 17:06
  • @cl-netbox Unfortunately, that guide is a mess (it's written by one well-intentioned, yet scatterbrained guy and has received no cleanup), and it about encoding for streaming, not playback. I think it will simply confuse the OP. – llogan Mar 27 '16 at 18:04
3

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.