The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Installing ffmpeg Help !!!

Discussion in 'General Discussion' started by cLub2Share, Jul 12, 2006.

  1. cLub2Share

    cLub2Share Well-Known Member

    Joined:
    Oct 4, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    united Arab Emirates
    cPanel Access Level:
    Website Owner
    Twitter:
    Hello everyone

    I have searched for some info that going to explain to me how to install the ffmpeg but there is just 4 topic here in the forum when i search about this word "ffmpeg" and all of them dose not have info


    could anyone help me to give me some basic info about how to install or maybe there is some link that have the explain .. ?

    and why the WHM dont have this mod already ?

    Thankyou
    aDi
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    You need to download the tarball, and follow instructions given in README and/or INSTALL files. Also, if you need help with FFMpeg, go to: http://groups.google.com/group/ffmpeg-php
     
  3. cLub2Share

    cLub2Share Well-Known Member

    Joined:
    Oct 4, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    united Arab Emirates
    cPanel Access Level:
    Website Owner
    Twitter:
    ffmpeg

    what is diffrents between ffmpeg-php and ffmpeg .. do i need to install both of them ?

    well know when i go to this link

    http://ffmpeg.mplayerhq.hu/download.html

    i dont no what happen to the download link .. could anyone tell me more info about this..

    Thanks.
     
  4. websupport

    websupport Well-Known Member

    Joined:
    Jun 24, 2006
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    * Information

    FFmpeg is a complete solution to record, convert and stream audio and video. It includes libavcodec, the leading audio/video codec library. FFmpeg is developed under Linux, but it can compiled under most operating systems, including Windows.

    ffmpeg-php is an extension for PHP that adds an easy to use, object-oriented API for accessing and retrieving information from video and audio files. It has methods for returning frames from movie files as images that can be manipulated using PHP's image functions. This works well for automatically creating thumbnail images from movies. ffmpeg-php is also useful for reporting the duration and bitrate of audio files (mp3, wma...). ffmpeg-php can access many of the video formats supported by ffmpeg (mov, avi, mpg, wmv...)

    As per your requirement you can install FFmpeg or FFmpeg-php.

    Check link to for more information and download it :
    http://linux.softpedia.com/get/Internet/HTTP-WWW-/ffmpeg-php-extension-2875.shtml
    http://ffmpeg.mplayerhq.hu/documentation.html

    May be it will help u .. :)
     
  5. cLub2Share

    cLub2Share Well-Known Member

    Joined:
    Oct 4, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    united Arab Emirates
    cPanel Access Level:
    Website Owner
    Twitter:
    When i try to Install the FFmpeg i get all this error i 'm not sure why.. could someone please explain to me ..


    Code:
    FFmpeg.xs:355: error: `AVInputFormat' undeclared (first use in this function)
    FFmpeg.xs:355: error: `ifmt' undeclared (first use in this function)
    FFmpeg.xs:356: error: `AVOutputFormat' undeclared (first use in this function)
    FFmpeg.xs:356: error: `ofmt' undeclared (first use in this function)
    FFmpeg.xs:357: error: `AVImageFormat' undeclared (first use in this function)
    FFmpeg.xs:357: error: `image_fmt' undeclared (first use in this function)
    FFmpeg.xs:358: error: `URLProtocol' undeclared (first use in this function)
    FFmpeg.xs:358: error: `up' undeclared (first use in this function)
    FFmpeg.xs:359: error: `AVCodec' undeclared (first use in this function)
    FFmpeg.xs:359: error: `p2' undeclared (first use in this function)
    FFmpeg.xs:364: error: `first_image_format' undeclared (first use in this function)
    FFmpeg.xs: In function `XS_FFmpeg__file_formats':
    FFmpeg.xs:388: error: `AVInputFormat' undeclared (first use in this function)
    FFmpeg.xs:388: error: `ifmt' undeclared (first use in this function)
    FFmpeg.xs:389: error: `AVOutputFormat' undeclared (first use in this function)
    FFmpeg.xs:389: error: `ofmt' undeclared (first use in this function)
    FFmpeg.xs:390: error: `AVImageFormat' undeclared (first use in this function)
    FFmpeg.xs:390: error: `image_fmt' undeclared (first use in this function)
    FFmpeg.xs:391: error: `URLProtocol' undeclared (first use in this function)
    FFmpeg.xs:391: error: `up' undeclared (first use in this function)
    FFmpeg.xs:392: error: `AVCodec' undeclared (first use in this function)
    FFmpeg.xs:392: error: `p2' undeclared (first use in this function)
    FFmpeg.xs:408: error: `first_oformat' undeclared (first use in this function)
    FFmpeg.xs:420: error: `first_iformat' undeclared (first use in this function)
    FFmpeg.xs: In function `XS_FFmpeg__init_AVFormatContext':
    FFmpeg.xs:470: error: `AVFormatContext' undeclared (first use in this function)
    FFmpeg.xs: In function `XS_FFmpeg__free_AVFormatContext':
    FFmpeg.xs:483: error: `AVFormatContext' undeclared (first use in this function)
    FFmpeg.xs:483: error: `ic' undeclared (first use in this function)
    FFmpeg.xs:483: error: syntax error before ')' token
    FFmpeg.xs: In function `XS_FFmpeg__init_streamgroup':
    FFmpeg.xs:501: error: `AVFormatContext' undeclared (first use in this function)
    FFmpeg.xs:501: error: `ic' undeclared (first use in this function)
    FFmpeg.xs:501: error: syntax error before ')' token
    FFmpeg.xs:502: error: `AVFormatParameters' undeclared (first use in this function)
    FFmpeg.xs:506: error: `ap' undeclared (first use in this function)
    FFmpeg.xs:541: error: `AV_NOPTS_VALUE' undeclared (first use in this function)
    FFmpeg.xs:559: error: `AV_TIME_BASE' undeclared (first use in this function)
    FFmpeg.xs:566: error: `AVStream' undeclared (first use in this function)
    FFmpeg.xs:566: error: `st' undeclared (first use in this function)
    FFmpeg.xs:575: error: `AVCodecContext' undeclared (first use in this function)
    FFmpeg.xs:575: error: `ctx' undeclared (first use in this function)
    FFmpeg.xs:576: error: `AVCodec' undeclared (first use in this function)
    FFmpeg.xs:576: error: `codec' undeclared (first use in this function)
    FFmpeg.xs: In function `XS_FFmpeg__codecs':
    FFmpeg.xs:631: error: `AVInputFormat' undeclared (first use in this function)
    FFmpeg.xs:631: error: `ifmt' undeclared (first use in this function)
    FFmpeg.xs:632: error: `AVOutputFormat' undeclared (first use in this function)
    FFmpeg.xs:632: error: `ofmt' undeclared (first use in this function)
    FFmpeg.xs:633: error: `AVImageFormat' undeclared (first use in this function)
    FFmpeg.xs:633: error: `image_fmt' undeclared (first use in this function)
    FFmpeg.xs:634: error: `URLProtocol' undeclared (first use in this function)
    FFmpeg.xs:634: error: `up' undeclared (first use in this function)
    FFmpeg.xs:635: error: `AVCodec' undeclared (first use in this function)
    FFmpeg.xs:635: error: `p2' undeclared (first use in this function)
    FFmpeg.xs:648: error: `first_avcodec' undeclared (first use in this function)
    FFmpeg.xs:648: warning: comparison between pointer and integer
    FFmpeg.xs:648: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:650: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:655: error: invalid type argument of `->'
    FFmpeg.xs:657: error: invalid type argument of `->'
    FFmpeg.xs:658: error: invalid type argument of `->'
    FFmpeg.xs:659: error: invalid type argument of `->'
    FFmpeg.c: At top level:
    ./ffmpeg-6036.c:95: error: storage size of `frame_pix_fmt' isn't known
    ./ffmpeg-6036.c:258: error: storage size of `bitstream_filters' isn't known
    {standard input}: Assembler messages:
    {standard input}:473: Error: symbol `video_disable' is already defined
    {standard input}:479: Error: symbol `video_stream_copy' is already defined
    {standard input}:485: Error: symbol `audio_language' is already defined
    {standard input}:491: Error: symbol `audio_disable' is already defined
    {standard input}:497: Error: symbol `audio_stream_copy' is already defined
    {standard input}:1027: Error: symbol `resampling_dst' is already defined
    {standard input}:1033: Error: symbol `final_picture' is already defined
    {standard input}:1064: Error: symbol `p' is already defined as "*COM*"/4
    {standard input}:1070: Error: symbol `video_codec_id' is already defined
    {standard input}:1076: Error: symbol `audio_codec_id' is already defined
    
     
  6. cLub2Share

    cLub2Share Well-Known Member

    Joined:
    Oct 4, 2003
    Messages:
    114
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    united Arab Emirates
    cPanel Access Level:
    Website Owner
    Twitter:
    when i try to install ffmpeg-PHP i get this error also ..


    checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20020429
    checking for re2c... exit 0;
    checking for gawk... gawk
    checking for ffmpeg support... yes, shared
    checking for ffmpeg headers... configure: error: ffmpeg headers not found. Make sure you've built ffmpeg as shared libs using the --enable-shared option
     
  7. ebinfo

    ebinfo Active Member

    Joined:
    Oct 5, 2005
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6

    i have issues installing FFMpeg, and did what was in the INSTALL, but when i ran the configure, it gave me that:


    endian test failed
    If you think configure made a mistake, make sure you are using the latest
    version from SVN. If the latest version fails, report the problem to the
    ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "config.err" produced by configure as this will help
    solving the problem.

    I have no idea what is happening with that.

    the system is running Fedora and 10.9.0 (build CURRENT) - 43 Tree
     
  8. dob3rman

    dob3rman Active Member

    Joined:
    Feb 13, 2005
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    I'm having the same problem as Club2Share.

    usr/bin/perl /usr/lib/perl5/5.8.7/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.7/ExtUtils/typemap FFmpeg.xs > FFmpeg.xsc && mv FFmpeg.xsc FFmpeg.c

    cc -c -I. -I/usr/include/ffmpeg -I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"6036\" -DXS_VERSION=\"6036\" -fpic "-I/usr/lib/perl5/5.8.7/i686-linux/CORE" -O FFmpeg.c

    In file included from ffmpeg.h:2,

    from FFmpeg.xs:16:

    ./ffmpeg-6036.c:21:22: error: avformat.h: No such file or directory

    ./ffmpeg-6036.c:22:21: error: swscale.h: No such file or directory

    ./ffmpeg-6036.c:23:23: error: framehook.h: No such file or directory

    ./ffmpeg-6036.c:24:21: error: dsputil.h: No such file or directory

    ./ffmpeg-6036.c:25:17: error: opt.h: No such file or directory

    ./ffmpeg-6036.c:44:21: error: version.h: No such file or directory

    ./ffmpeg-6036.c:45:22: error: cmdutils.h: No such file or directory

    In file included from ffmpeg.h:2,

    from FFmpeg.xs:16:

    ./ffmpeg-6036.c:68: error: syntax error before 'options'

    ./ffmpeg-6036.c:68: warning: data definition has no type or storage class

    ./ffmpeg-6036.c:76: error: syntax error before '*' token

    ./ffmpeg-6036.c:76: warning: data definition has no type or storage class

    ./ffmpeg-6036.c:80: error: syntax error before '*' token

    ./ffmpeg-6036.c:80: warning: data definition has no type or storage class

    ./ffmpeg-6036.c:89: error: syntax error before '*' token

    ./ffmpeg-6036.c:89: warning: data definition has no type or storage class


    ANy help would be greatly appreciated!!:eek:
     
  9. chae

    chae Well-Known Member

    Joined:
    Apr 19, 2003
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Auckland, New Zealand
    same errors I get :(
     
  10. Dionis

    Dionis Registered

    Joined:
    Sep 4, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
  11. wookiee

    wookiee Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Las Vegas
    Hi,

    I tried the steps in the tutorial.

    Mplayer make timeout after 60 seconds (?)

    ./configure –enable-mp3lame –enable-libogg –enable-vorbis –disable-mmx –enable-shared

    Unknown option “–enable-mp3lame”.

    tried them with --enable
    no luck

    tried editing the config file and it still doesn't work
     
  12. chae

    chae Well-Known Member

    Joined:
    Apr 19, 2003
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Auckland, New Zealand
    That's where I ended up getting cornered...try all variations even got the DC techos to check & they hit the same wall...ended up giving up
     
  13. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Did you compile, install, and configure MP3lame successfully before you compile it with FFmpeg? If yes, did you get clean compile when compiling MP3lame with FFmpeg?

    FFmpeg and its related modules are real pain to compile, install, and configure because of their lousy codes. Whoever had put together the FAAC, FAAD, and MP3lame didn't do a very good job. Although FFMpeg and modules are FREE, and we thank the developers for their hard work, there is no excuse for doing such a lousy job with their codes. We had to delete and fix the codes in many files including the *.h files, to get clean and error-free compile.
     
  14. chae

    chae Well-Known Member

    Joined:
    Apr 19, 2003
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Auckland, New Zealand
    Hi Yah Andy,

    The install process right up to that point of ffmpeg went cleanly & without a hitch. I even reinstalled Lame again to make sure it took...
     
  15. wookiee

    wookiee Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Las Vegas
    WHM Xtra just added ffmpeg installation.

    Works great!

    Installs...

    FFmpeg
    FFmpeg-PHP
    Mplayer + Mencoder
    LAME MP3 Encoder
    flv2tool
    Libogg
    Libvorbis
     
  16. chae

    chae Well-Known Member

    Joined:
    Apr 19, 2003
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Auckland, New Zealand
    Yahhh...just installed thru Xtra & also no problems - anyone know how to test the thing :)
     
  17. Billa

    Billa Member

    Joined:
    May 2, 2007
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
  18. Shyam Mohammed

    Joined:
    Jul 9, 2007
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ernakulam, Kerala, IN
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page