diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3ebf911..141503c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,6 +5,7 @@ * Leynier Gutiérrez González ([@leynier](https://github.com/leynier)) * Hian Cañizares Díaz ([@hiancdtrsnm](https://github.com/hiancdtrsnm)) * Javier A. Oramas López ([@JavierOramas](https://github.com/javieroramas)) +* Jorge Morgado Vega ([@jmorgadov](https://github.com/jmorgadov)) You can help out by: diff --git a/video_diet/main.py b/video_diet/main.py index ef8e145..9d0c1f0 100644 --- a/video_diet/main.py +++ b/video_diet/main.py @@ -109,4 +109,12 @@ def file(path: Path = typer.Argument( typer.secho('The destination file already exist, please delete it', fg=RED) return - convert_video(str(path),str(conv_path)) + try: + convert_video(str(path),str(conv_path)) + + except FileNotFoundError as error: + if error.filename == 'ffmpeg': + typer.secho('It seems you don\'t have ffmpeg installed', fg=RED) + typer.secho('Check FFMPEG secction on https://github.com/hiancdtrsnm/video-diet#FFMPEG', fg=RED) + else: + raise error