Transcoding videos with ffmpeg

in #linux7 years ago

Let's install ffmpeg

first need to install necessary packets by typing

apt-get update

apt-get install make automake g++ bzip2 python unzip patch subversion ruby build-essential git-core checkinstall yasm texi2html libfaac-dev libmp3lame-dev

wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz tar xvzf yasm-1.2.0.tar.gz

cd yasm-1.2.0/ ./configure make make install cd ..

now let's install x64 codec

git clone git://git.videolan.org/x264.git cd x264/ ./configure --enable-shared make make install cd ..

now lets download and install ffmpeg

wget http://ffmpeg.org/releases/ffmpeg-3.3.3.tar.bz2

tar xvjf ffmpeg-3.3.3.tar.bz2
cd ffmpeg-3.3.3.tar.bz2

now let's compile ffmpeg

./configure --enable-gpl --enable-libx264 --enable-libvpx
make make install
ld

now we can start transcoding by typing

ffmpeg -i source -acodec mp2 -vcodec libx264 -vb 1500k -quality best output.mp4

and we should be done happy transcoding

any donation is appreciated

btc 15QP34iQgVYP9qMZYyuV6KkaxiuiumGACj

Sort:  

Congratulations @lavdim! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You made your First Comment

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @lavdim! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!