![]() The python version being used through this article is Python 2.7.x so make sure to install it on your own linux machine before going any further as a different version may give you all kind of errors when running the code in the python interactive shell.Ĭompiling code from source is a little bit tricky, but since it is needed to cover this installation for almost any kind of linux distribution going through all the package managers is not possible. Setting up python and ffmpeg on your linux box Through this tutorial you are going to learn how to use the python programming language for interacting with this open source tool in order to automate some simple tasks. It is written mostly in C programming language and the best part is that FFmpeg is open source. ![]() There are many cool things you can do with this tool. What do I mean by this? Well, you can easily convert from one format to another, extract audio from a video, compress a video and even extract pictures from a video. When I run this example code: from converter import ConverterĬonv = c.convert('test1.ogg', '/tmp/output.FFmpeg is a great multimedia framework that helps you deal with your audio and video files. I get this: Traceback (most recent call last):įile "C:\Python27\lib\distutils\core.py", line 151, in setupįile "C:\Python27\lib\distutils\dist.py", line 953, in run_commandsįile "C:\Python27\lib\distutils\dist.py", line 972, in run_command When I run the command: python setup.py test I read in the manual that I had to install FFMPEG separately so I did (I created the folder in C:\, the enviroment variable "path" and tested it and worked) but still doesn't work. I'm trying to use this python video converter and I couldn't even run the test.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |