Go Back   Web Server Hosting Forum by BODHost > Support > vps hosting
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-18-08, 07:43
Administrator
 
Join Date: Jul 2007
Posts: 85
Default How to compile ffmpeg?

Hello ,

I am trying to compile ffmpeg from source with the following options:

./configure --prefix=/etc/ffmpeg --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-gpl --enable-libamr-nb --enable-libamr-wb --enable-nonfree --enable-pthreads

But when I do "make" I recieve a very strange error:

In file included from libavdevice/v4l2.c:38:
/usr/include/linux/videodev2.h:461: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘v4l2_std_id’
/usr/include/linux/videodev2.h:544: error: expected specifier-qualifier-list before ‘v4l2_std_id’
/usr/include/linux/videodev2.h:561: error: expected specifier-qualifier-list before ‘v4l2_std_id’
/usr/include/linux/videodev2.h:599: error: expected specifier-qualifier-list before ‘v4l2_std_id’
/usr/include/linux/videodev2.h:622: error: expected specifier-qualifier-list before ‘__s64’

... and so on.

Can someone who has CentOS or Red Hat i386 compile (./configure with the options mentioned above and make) the source code of ffmpeg and send to me the directory with the compiled source code? It's available at http://ffmpeg.mplayerhq.hu/download.html
Reply With Quote
  #2 (permalink)  
Old 08-19-08, 07:55
BOD Member
 
Join Date: Nov 2005
Location: New Mexico
Posts: 273
Default

do you know how to compile software on linux?

I am sure you will find some tutorials or how to compile on google.And once you have understood the steps to compile software from the source in linux,then you can easily get the ffmpeg source from the ffmpeg project website and compile it by yourself.
Reply With Quote
  #3 (permalink)  
Old 08-20-08, 08:12
BOD Member
 
Join Date: Mar 2006
Location: Scotland
Posts: 201
Default

You can try the below code:


-–extra-ldflags=-L/opt/apps/lib \
--extra-cflags=-I/opt/apps/include
Reply With Quote
  #4 (permalink)  
Old 08-21-08, 11:48
sam sam is offline
BOD Member
 
Join Date: Jul 2007
Posts: 141
Send a message via Yahoo to sam
Default

You can also Build ffmpeg with this:

Quote:
./configure --prefix=/home/x/ffmpeginstall/ --enable-faac --extra-libs=/home/x/ffmpeginstall/lib/libfaac.a --enable-gpl --extra-cflags=-I/home/x/ffmpeginstall/include --disable-ffplay --disable-ffserver --disable-shared --disable-debug --extra-ldflags=-L/home/x/ffmpeginstall/lib
Reply With Quote
  #5 (permalink)  
Old 08-22-08, 13:10
BOD Member
 
Join Date: Jul 2007
Posts: 128
Default

It can be easily compiled under Win32, too. It is by far the fastest MPEG-2 encoder (AVI/DIVX4-->DVD/MPEG-2) . It was able to do NTSC in real time, >30 fps, on my 0.85 GHz, 'vanilla'. When I eventually get around to setting up CPU-specific optimizations for recompilation I expect it to go 40 or more. Its only downside for me is that it won't do the frame multiplication needed to take an AVI of less than 1 (e.g., 0.25) fps and convert it to 23.976. For Win32 compilation, use MSYS and MINGW, ./configure.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 23:01.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.