Open prasadpamidi opened 6 years ago
This is the ffmpeg command output
(****) ****@****ubuntu:~/$ ffmpeg
ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.2.0 (crosstool-NG 8a21ab48)
configuration: --prefix=/home/np/anaconda3/envs/py36 --disable-doc --enable-shared --extra-cflags='-fPIC -I/home/np/anaconda3/envs/py36/include' --extra-cxxflags='=-fPIC' --extra-libs='-L/home/np/anaconda3/envs/py36/lib -lz' --enable-pic --disable-static --disable-gpl --disable-nonfree --disable-openssl --enable-libvpx --cc=/home/np/anaconda3/envs/py36/bin/x86_64-conda_cos6-linux-gnu-cc --cxx=/home/np/anaconda3/envs/py36/bin/x86_64-conda_cos6-linux-gnu-c++ --enable-libopus
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Can't thumbs-up. But I'm running into the same issue in Fedora. It complains about the codec libx264 even if I pass codec='libx265'
.
Fixed by installing ffmpeg with this : conda install -c conda-forge ffmpeg
I am reponening this as moviepy is supposed to work "out of the box". And a solution based on conda is not universal.
Fixed the problem by removing anaconda version of ffmpeg and installing it from the package manager :
conda remove ffmpeg
sudo apt-get install ffmpeg
This problem kept me up all night, but finally, the trick below worked
Fixed the problem by removing anaconda version of ffmpeg and installing it from the package manager :
conda remove ffmpeg sudo apt-get install ffmpeg
If you had already installed ffmpeg, close and open your python IDE
If a particular audio format is not mandatory for you and you are flexible to experiment with different file format then try changing the format to clip the audio from the video. In my case the moviepy did not work with mp4 but worked with mp3 file format.
In Windows, don't use Anaconda, use simple Python (normal installation).
I am reponening this as moviepy is supposed to work "out of the box". And a solution based on conda is not universal.
I'm using MoviePy on Colab and one of the solutions mentioned here have worked so far for me.
MoviePy error: FFMPEG encountered the following error while writing file output_video
Hi,
I am trying to write mp4 video files using moviepy on Ubuntu 17.10 and running into below mentioned codec issue.
I am not noticing any codec related issues when I used ffmpeg directly from terminal to write an mp4 video file.
Versions: MoviePy -> v0.2.3.2 ffmpeg -> v3.4 imageio -> v2.1.2 Ubuntu -> 17.10 Python -> v3.6
I also made sure ffmpeg has libx264 enabled.
Apologies if i missed anything, i am fairly new to python.