Video converter install. FFMPEG AND AVCONV

Video converter.Конвертер в mp4. Перекодировать видео

Существует много способов для перекодировки видео в ubuntu(Linux). Например это можно сделать с помощью handbrake.

But true way  is terminal with ffmpeg or avconv.

Setup avconv in ubuntu

sudo apt-get install libav-to

Making and installing ffmpeg on Ubuntu 14.04 and Ubuntu 16.04

Making now is Download source, making, install dependencies and installing.

You need to download this script(zipped). See code bellow


# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from

# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev

# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update
sudo apt-get -y install build-essential checkinstall git libfaac-dev libgpac-dev \
libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev librtmp-dev libtheora-dev \
libvorbis-dev pkg-config texi2html yasm zlib1g-dev

# Install x264
sudo apt-get -y install libx264-dev
git clone —depth 1 git://
cd x264
./configure —enable-static
sudo checkinstall —pkgname=x264 —pkgversion=»3:$(./ | \
awk -F'[» ]’ ‘/POINT/{print $4″+git»$5}’)» —backup=no —deldoc=yes \
—fstrans=no —default

# Install AAC audio decoder
tar xzvf fdk-aac-0.1.0.tar.gz
cd fdk-aac-0.1.0
sudo checkinstall —pkgname=fdk-aac —pkgversion=»0.1.0″ —backup=no \
—deldoc=yes —fstrans=no —default

# Install VP8 video encoder and decoder.
git clone —depth 1
cd libvpx
sudo checkinstall —pkgname=libvpx —pkgversion=»1:$(date +%Y%m%d%H%M)-git» —backup=no \
—deldoc=yes —fstrans=no —default
# Add lavf support to x264
# This allows x264 to accept just about any input that FFmpeg can handle and is useful if you want to use x264 directly. See a more detailed explanation of what this means.
cd ~/x264
make distclean
./configure —enable-static
sudo checkinstall —pkgname=x264 —pkgversion=»3:$(./ | \
awk -F'[» ]’ ‘/POINT/{print $4″+git»$5}’)» —backup=no —deldoc=yes \
—fstrans=no —default

# Installing FFmpeg
git clone —depth 1 git://
cd ffmpeg
./configure —enable-gpl —enable-libfaac —enable-libmp3lame —enable-libopencore-amrnb \
—enable-libopencore-amrwb —enable-librtmp —enable-libtheora —enable-libvorbis \
—enable-libvpx —enable-libx264 —enable-nonfree —enable-version3
sudo checkinstall —pkgname=ffmpeg —pkgversion=»5:$(date +%Y%m%d%H%M)-git» —backup=no \
—deldoc=yes —fstrans=no —default
hash x264 ffmpeg ffplay ffprobe

# Optional: install qt-faststart
# This is a useful tool if you’re showing your H.264 in MP4 videos on the web. It relocates some data in the video to allow playback to begin before the file is completely downloaded. Usage: qt-faststart input.mp4 output.mp4.
cd ~/ffmpeg
make tools/qt-faststart
sudo checkinstall —pkgname=qt-faststart —pkgversion=»$(date +%Y%m%d%H%M)-git» —backup=no \
—deldoc=yes —fstrans=no —default install -Dm755 tools/qt-faststart \

Download,unzip and making executable. Install


Waiting for downloading, compiling and installing. PROFIT!!!

Installing  ffmpeg from repository

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ffmpeg


AVCONV(EXAMPE) — convert avi to mp4 with x264

avconv -i "input.avi" -c:v libx264 -c:a copy outputfile.mp4

FFMPEG(EXAMPLE) — convert avi to mp4 with mpeg4

ffmpeg -i "input.avi" -acodec ac3 -b:a 128k -vcodec mpeg4 -b:v 1200k -flags +aic+mv4 output.mp4
Video converter install. FFMPEG AND AVCONV обновлено: Март 1, 2016 автором: human

Добавить комментарий

Войти с помощью: 

Ваш e-mail не будет опубликован. Обязательные поля помечены *