I looked for ffmpeg to run on my Ubuntu VirtualBox VM. However, it turned out that there is a competitor (fork of ffmpeg) which is typically used with Ubuntu: libav.
So the install was very easy:
sudo apt-get update
sudo apt-get install libav-tools
and avprobe prints info about the video file -
avprobe https://gcdn.2mdn.net/videoplayback/id/7ebb83bb9297af8d/itag/18/source/doubleclick_dmm/ratebypass/yes/ip/0.0.0.0/ipbits/0/expire/3587029237/sparams/id,itag,source,ratebypass,ip,ipbits,expire/signature/36DDC1C4CFC5ABA238B4083DAA7201572D462CA4.A5F92B30B2160257A3D5EE0D8E87D35048111DAB/key/ck2/file/file.mp4
avprobe version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2007-2014 the Libav developers
built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://gcdn.2mdn.net/videoplayback/id/7ebb83bb9297af8d/itag/18/source/doubleclick_dmm/ratebypass/yes/ip/0.0.0.0/ipbits/0/expire/3587029237/sparams/id,itag,source,ratebypass,ip,ipbits,expire/signature/36DDC1C4CFC5ABA238B4083DAA7201572D462CA4.A5F92B30B2160257A3D5EE0D8E87D35048111DAB/key/ck2/file/file.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2015-09-18 13:00:31
Duration: 00:00:15.00, start: 0.000000, bitrate: 489 kb/s
Stream #0.0(und): Video: h264 (Constrained Baseline), yuv420p, 640x360 [PAR 1:1 DAR 16:9], 389 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, fltp, 96 kb/s
Metadata:
creation_time : 2015-09-18 13:00:31
# avprobe output
Showing posts with label ffmpeg. Show all posts
Showing posts with label ffmpeg. Show all posts
Friday, October 16, 2015
Saturday, December 08, 2012
How To Install ffmpeg on CentOs 6.x (6.3)
I installed ffmpeg on a dedicated CenOs 6.3 server. The installation mostly follows the instrcutions given by the eFFMPEG group here, but there are few important twists if you want to get it done.
1. Login as root
2.Pre-set:
# remove older installations
#FFMPEG did not want to work well in /tmp
mkdir ~/tmp
export TMPDIR=~/tmp
#you might also need to add to PATH /usr/lib
export PATH=$PATH:/usr/lib
#and probably add (I did it, but not sure it is a must)
export LD_LIBRARY_PATH=/usr/local/lib
#now install ffmeg from GIT repository
1. Login as root
2.Pre-set:
# remove older installations
yum erase ffmpeg x264 x264-devel
#verify you get all teh tools:
yum install gcc git make nasm pkgconfig wget
#create a working folder
mkdir ~/ffmpeg-source
3. Installations
#install yam
cd ~/ffmpeg-source wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz tar xzvf yasm-1.2.0.tar.gz cd yasm-1.2.0 ./configure make make install
#install x264
cd ~/ffmpeg-source git clone git://git.videolan.org/x264 cd x264 ./configure --enable-static make make install
#install mp3 encoder
cd ~/ffmpeg-source wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz tar xzvf lame-3.99.5.tar.gz cd lame-3.99.5 ./configure --disable-shared --enable-nasm make make install
#install libogg
cd ~/ffmpeg-source wget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz tar xzvf libogg-1.3.0.tar.gz cd libogg-1.3.0 ./configure --disable-shared make make install
#install libvorbis
cd ~/ffmpeg-source wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz tar xzvf libvorbis-1.3.3.tar.gz cd libvorbis-1.3.3 ./configure --disable-shared make make install
#install libvpx
cd ~/ffmpeg-source git clone http://git.chromium.org/webm/libvpx.git cd libvpx ./configure make make install
#install zlib
cd ~/ffmpeg-source wget http://zlib.net/zlib-1.2.7.tar.gz tar xzvf zlib-1.2.7.tar.gz cd zlib-1.2.7 ./configure make make install
#FFMPEG did not want to work well in /tmp
mkdir ~/tmp
export TMPDIR=~/tmp
#you might also need to add to PATH /usr/lib
export PATH=$PATH:/usr/lib
#and probably add (I did it, but not sure it is a must)
export LD_LIBRARY_PATH=/usr/local/lib
#now install ffmeg from GIT repository
cd ~/ffmpeg-source git clone git://source.ffmpeg.org/ffmpeg cd ffmpeg ./configure --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264 make make install
#this should work now! type 'ffmpeg' to try
ffmpeg ffmpeg version N-47639-g0110108 Copyright (c) 2000-2012 the FFmpeg developers built on Dec 8 2012 22:03:48 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264 libavutil 52. 12.100 / 52. 12.100 libavcodec 54. 79.100 / 54. 79.100 libavformat 54. 48.100 / 54. 48.100 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 26.100 / 3. 26.100 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Use -h to get full help or, even better, run 'man ffmpeg'
Subscribe to:
Posts (Atom)