
Thus, in order to produce a standard h264 file with audio and 1 picture, you may want to include the following filter into your instructions: -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" This is beacause the h264 encoder needs even dimensions. Error initializing output stream 0:1 - Error while opening encoder for output stream #0:1 – maybe incorrect parameters such as bit_rate, rate, width or height” “ width ( or height) non divisible by 2 ( w x h). You could instruct FFMPEG to do the following: ffmpeg -i YOUR-AUDIO.aac -i YOUR-PICTURE.jpg -map 0:a -map 1:v output.mp4īut with the above instructions, you may encounter the following error:


You may want to add an audio track onto a single picture so to create an h264 file, using the audio lenght as the total lenght.

configure -pkg-config-flags="-static" -enable-nonfree -enable-gpl -enable-version3 \ -enable-libmp3lame -enable-libvpx -enable-libopus \ -enable-opencl -enable-libxcb \ -enable-opengl -enable-nvenc -enable-vaapi \ -enable-vdpau -enable-ffplay -enable-ffprobe \ -enable-libxvid \ -enable-libx264 -enable-libx265 -enable-openal \ -enable-openssl -enable-cuda-nvcc -enable-cuvid -extra-cflags=-I/usr/local/cuda/include -extra-ldflags=-L/usr/local/cuda/lib64

Change from compute_30,code=sm_30 to compute_35,code=sm_35 AND - cuda-gpu-arch=sm_30 -O2 to - cuda-gpu-arch=sm_35 -O2: if enabled cuda_nvcc then nvcc_default=”nvcc” nvccflags_default=”-gencode arch=compute_35,code=sm_35 -O2" else nvcc_default=”clang” nvccflags_default=” - cuda-gpu-arch=sm_35 -O2" NVCC_C=”” fiĬonfigure. git clone -b n4.3.1 ffmpeg/ sudo apt-get -y install build-essential pkg-config checkinstall git libfaac-dev libgpac-dev ladspa-sdk-dev libunistring-dev libbz2-dev libjack-jackd2-dev libmp3lame-dev libsdl2-dev libopencore-amrnb-dev libopencore-amrwb-dev libvpx-dev libx264-dev libx265-dev libxvidcore-dev libopenal-dev libopus-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev texi2html yasm zlib1g-dev gobjc++Įdit the configure file for adapting to CUDA 11 line number 4315 & 4318. Cd nv-codec-headers & sudo make install Install OpenSSL: apt-get install libssl-dev apt-get install linux-headers-$(uname -r)
