Page 64 of 241 FirstFirst ... 1454626364656674114164 ... LastLast
Results 631 to 640 of 2402

Thread: HOWTO: Install and use the latest FFmpeg and x264

  1. #631
    n.hinton is offline Gee! These Aren't Roasted!
    Join Date
    Nov 2008
    Location
    North Norfolk, UK
    Beans
    169
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HOWTO: Install and use the latest FFmpeg and x264

    Hi FakeOutdoorsman,

    Used to be able to convert to gp3 format, but now seems I can't. Odd, winff can play the format.

    Read through the How-To, since I have never done this before a couple of things are bugging me:

    In steps 3 and 4 the code starts with a cd (change directory) with no directory specified, that wouldn't do anything (or am I missing something).

    Steps 3 and 4 state respectively: 'If you are behind a firewall or unable to use git, then daily source tarballs are also available' and 'If you are behind a firewall or unable to use subversion, then nightly FFmpeg snapshots are also available'.

    Is there any way to test ability to use first? As although I have downloaded x264-snapshot-20050824-2219.tar.bz2 and ffmpeg-checkout-snapshot.tar.bz2, I wouldn't know what to do with them.

    Card is ATI Rage XL

    libfaac0 is installed in synaptic.

    Winff convert window:

    FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu2, Copyright (c) 2000-2009 Fabrice Bellard, et al.

    configuration: --extra-version=4:0.5+svn20090706-2ubuntu2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include --enable-shared --disable-static

    libavutil 49.15. 0 / 49.15. 0
    libavcodec 52.20. 0 / 52.20. 0
    libavformat 52.31. 0 / 52.31. 0
    libavdevice 52. 1. 0 / 52. 1. 0
    libavfilter 0. 4. 0 / 0. 4. 0
    libswscale 0. 7. 1 / 0. 7. 1
    libpostproc 51. 2. 0 / 51. 2. 0

    built on Oct 13 2009 22:15:16, gcc: 4.4.1

    Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)

    Input #0, flv, from '/home/kingfisher/Videos/Charlie_the_Unicorn_3.flv':

    Duration: 00:05:57.89, start: 0.000000, bitrate: 327 kb/s
    Stream #0.0: Video: flv, yuv420p, 320x180, 263 kb/s, 29.97 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 64 kb/s
    Unknown encoder 'libfaac'

    cat /etc/apt/sources.list

    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://gb.archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
    deb-src http://gb.archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://gb.archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
    deb-src http://gb.archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy ourself as to
    ## your rights to use the software. Also, please note that software in
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    ## Uncomment the following two lines to add software from the 'backports'
    ## repository.
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    # deb http://gb.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    deb http://archive.canonical.com/ubuntu karmic partner
    deb http://gb.archive.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse
    deb-src http://gb.archive.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse
    deb http://ppa.launchpad.net/keepassx/ppa/ubuntu karmic main
    deb http://ppa.launchpad.net/rvm/mplayer/ubuntu karmic main
    deb http://ppa.launchpad.net/gilir/backports/ubuntu karmic main
    deb http://ppa.launchpad.net/c-korn/vlc/ubuntu karmic main
    # deb-src http://ppa.launchpad.net/c-korn/vlc/ubuntu karmic main
    deb http://ppa.launchpad.net/rvm/libs/ubuntu karmic main

  2. #632
    Join Date
    Sep 2006
    Beans
    3,713

    Re: HOWTO: Install and use the latest FFmpeg and x264

    Quote Originally Posted by n.hinton View Post
    Hi FakeOutdoorsman,

    Used to be able to convert to gp3 format, but now seems I can't. Odd, winff can play the format.

    Read through the How-To, since I have never done this before a couple of things are bugging me:

    In steps 3 and 4 the code starts with a cd (change directory) with no directory specified, that wouldn't do anything (or am I missing something).
    It should take you to your home directory. It's the same as cd ~/ or cd /home/kingfisher.

    Steps 3 and 4 state respectively: 'If you are behind a firewall or unable to use git, then daily source tarballs are also available' and 'If you are behind a firewall or unable to use subversion, then nightly FFmpeg snapshots are also available'.

    Is there any way to test ability to use first? As although I have downloaded x264-snapshot-20050824-2219.tar.bz2 and ffmpeg-checkout-snapshot.tar.bz2, I wouldn't know what to do with them.
    I guess the best method would be to try and see if you can use subversion and git. I added the snapshot options for users that can't use subversion or git. It looks like you downloaded an old x264 snapshot from 2005. If you scroll to the bottom of the page you will get the most recent snapshot. Once you download the snapshot you can extract it and then continue from the guide:
    Code:
    tar xvjf x264-snapshot-20091116-2245.tar.bz2 
    cd x264-snapshot-20091116-2245
    ./configure
    libfaac0 is installed in synaptic.
    That package isn't used directly by FFmpeg.

    Code:
    Winff convert window:
    
    FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    
    configuration: --extra-version=4:0.5+svn20090706-2ubuntu2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include --enable-shared --disable-static
    
    libavutil 49.15. 0 / 49.15. 0
    libavcodec 52.20. 0 / 52.20. 0
    libavformat 52.31. 0 / 52.31. 0
    libavdevice 52. 1. 0 / 52. 1. 0
    libavfilter 0. 4. 0 / 0. 4. 0
    libswscale 0. 7. 1 / 0. 7. 1
    libpostproc 51. 2. 0 / 51. 2. 0
    
    built on Oct 13 2009 22:15:16, gcc: 4.4.1
    
    Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)
    
    Input #0, flv, from '/home/kingfisher/Videos/Charlie_the_Unicorn_3.flv':
    
    Duration: 00:05:57.89, start: 0.000000, bitrate: 327 kb/s
    Stream #0.0: Video: flv, yuv420p, 320x180, 263 kb/s, 29.97 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 64 kb/s
    Unknown encoder 'libfaac'
    Unfortunately, there is no support for libfaac in Karmic repository FFmpeg due to licensing issues, even with the extra libraries installed. You can read a little more about that here:

    HOWTO: Easily enable MP3, MPEG4, AAC, and other restricted encoding in FFmpeg

    You have a good number of PPAs enabled. I'm not sure if they will interfere with this guide, but it's something to be aware of. Probably not anything to worry about, but if you encounter errors, I would recommend looking into these first.

  3. #633
    n.hinton is offline Gee! These Aren't Roasted!
    Join Date
    Nov 2008
    Location
    North Norfolk, UK
    Beans
    169
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HOWTO: Install and use the latest FFmpeg and x264

    Thank you for your reply FakeOutdoorsman, will post back here and let you know how it went.

  4. #634
    n.hinton is offline Gee! These Aren't Roasted!
    Join Date
    Nov 2008
    Location
    North Norfolk, UK
    Beans
    169
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HOWTO: Install and use the latest FFmpeg and x264

    Many thanks FakeOutdoorsman,

    All went without a hitch, no problem using subversion and git, don't pretend to know what was going on though.

    Used synaptic to reinstall winff (removed automatically with ffmpeg) and all seems to work great.

    Do I need to do anything to prevent any unwanted update to ffmpeg?

    Is it OK to remove x264-snapshot-20050824-2219.tar.bz2 and ffmpeg-0.5.tar.bz2 downloaded (as insurance) prior to install of the latest FFmpeg and x264 as I'd put them in /home/kingfisher?

    Again thanks so much for your help.

  5. #635
    Join Date
    Sep 2006
    Beans
    3,713

    Re: HOWTO: Install and use the latest FFmpeg and x264

    Quote Originally Posted by n.hinton View Post
    Many thanks FakeOutdoorsman,

    All went without a hitch, no problem using subversion and git, don't pretend to know what was going on though.

    Used synaptic to reinstall winff (removed automatically with ffmpeg) and all seems to work great.

    Do I need to do anything to prevent any unwanted update to ffmpeg?
    I think the checkinstall command you used to install FFmpeg should take care of unwanted updates.

    Is it OK to remove x264-snapshot-20050824-2219.tar.bz2 and ffmpeg-0.5.tar.bz2 downloaded (as insurance) prior to install of the latest FFmpeg and x264 as I'd put them in /home/kingfisher?
    Yes, you can delete those.

  6. #636
    Join Date
    Sep 2006
    Beans
    3,713

    Re: HOWTO: Install and use the latest FFmpeg and x264

    Install FFmpeg and x264 on Ubuntu Jaunty Jackalope 9.04 & Ubuntu Intrepid Ibex 8.10

    These versions of Ubuntu are unsupported and this guide will not be updated.

    Get the Dependencies
    1. Uninstall x264, libx264-dev, and ffmpeg if they are already installed. Open a terminal and run the following:
    Code:
    sudo apt-get remove ffmpeg x264 libx264-dev
    2. Next, get all of the packages you will need to install FFmpeg and x264 (you may need to enable the universe and multiverse repositories):
    Code:
    sudo apt-get update
    sudo apt-get install build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libsdl1.2-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore4-dev zlib1g-dev

    Install x264
    3. Get the most current source files from the official x264 git repository, compile, and install. Daily source tarballs are also available as an alternative to using git.
    Code:
    cd
    git clone git://git.videolan.org/x264.git
    cd x264
    ./configure
    make
    sudo checkinstall --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`-0.0ubuntu1" --backup=no --deldoc=yes --fstrans=no --install=yes --default

    Install LAME (optional)
    4. This is used to encode mp3 audio. You can skip this step and omit --enable-libmp3lame from the ./configure line in step 7 if you don't plan on encoding mp3.
    Code:
    sudo apt-get remove libmp3lame-dev
    sudo apt-get install nasm
    cd
    wget http://downloads.sourceforge.net/project/lame/lame/3.98.4/lame-3.98.4.tar.gz
    tar xzvf lame-3.98.4.tar.gz
    cd lame-3.98.4
    ./configure --enable-nasm --disable-shared
    make
    sudo checkinstall --pkgname=lame-ffmpeg --pkgversion="3.98.4" --backup=no --deldoc=yes --install=yes --fstrans=no --default

    Install libopencore-amr (optional)
    5. This will allow you to decode and encode AMR audio. I recommend skipping this step and omitting --enable-libopencore-amrnb --enable-libopencore-amrwb from step 7 if you are not going to decode or encode AMR audio.
    Code:
    cd
    wget http://transact.dl.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz
    tar xvf opencore-amr-0.1.2.tar.gz
    cd opencore-amr-0.1.2
    ./configure --disable-shared
    make
    sudo checkinstall --pkgname="libopencore-amr" --pkgversion="0.1.2" --backup=no --fstrans=no --install=yes --default

    Install libtheora (optional)
    6. This is used to encode to Theora, the video type usually found in OGG files. The repository libtheora is too old, so it must be compiled. I recommend skipping this step and omitting --enable-libtheora in step 7 if you don't plan on encoding to Theora video:
    Code:
    sudo apt-get install libogg-dev
    cd
    wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
    tar xzvf libtheora-1.1.1.tar.gz
    cd libtheora-1.1.1
    ./configure --disable-shared
    make
    sudo checkinstall --pkgname=libtheora --pkgversion "1.1.1" --backup=no --fstrans=no --install=yes --default

    Install FFmpeg
    7. Get the most current source files from the official FFmpeg svn, compile, and install. Run "./configure --help" to see what features you can enable/disable. If you are behind a firewall or unable to use subversion, then nightly FFmpeg snapshots are also available.
    Code:
    cd
    svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
    cd ffmpeg
    ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab
    make
    sudo checkinstall --pkgname=ffmpeg --pkgversion "3:0.svn`date +%Y%m%d`-12ubuntu3" --backup=no --fstrans=no --install=yes --default
    hash x264 ffmpeg ffplay
    That's it for installation. You can keep the ~/x264 and ~/ffmpeg directories if you later want to update the source files to a new revision. See "Updating Your Installation" on the first page of this guide for more details.

    That's it! Now head back to the FFmpeg guide for usage instructions and more.


    Reverting Changes Made by This Tutorial
    To remove FFmpeg/x264 and any changes made from this tutorial:
    Code:
    sudo apt-get remove x264 ffmpeg build-essential subversion git-core checkinstall yasm nasm texi2html lame-ffmpeg libfaac-dev libsdl1.2-dev libopencore-amr libtheora libvorbis-dev libx11-dev libxfixes-dev libxvidcore4-dev zlib1g-dev
    Lastly, delete the ffmpeg and x264 directories in your home folder.
    Last edited by FakeOutdoorsman; October 18th, 2011 at 08:59 PM.

  7. #637
    Join Date
    Nov 2009
    Location
    Sweden
    Beans
    23
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Install and use the latest FFmpeg and x264

    I tried this tutorial but got this error: "collect2: ld returned 1 exit status"

  8. #638
    Join Date
    Aug 2008
    Beans
    13

    Re: HOWTO: Install and use the latest FFmpeg and x264

    I also had to add a PPA (I used this one: https://launchpad.net/~rvm/+archive/mplayer) with opencore-amr to get step 2 to work on my 9.04 setup. Though later on I see that a (more recent) opencore-amr is installed anyway. So are these packages:

    libopencore-amrnb-dev libopencore-amrwb-dev

    (the ones that apt-get complained about in step 2 prior to adding the PPA) actually required in step 2?

    Thanks for the great guide.

  9. #639
    Join Date
    Sep 2006
    Beans
    3,713

    Re: HOWTO: Install and use the latest FFmpeg and x264

    Quote Originally Posted by osced View Post
    I tried this tutorial but got this error: "collect2: ld returned 1 exit status"
    More information would be useful. When do you get this error? What version of Ubuntu are you using?


    Quote Originally Posted by pbouf View Post
    I also had to add a PPA (I used this one: https://launchpad.net/~rvm/+archive/mplayer) with opencore-amr to get step 2 to work on my 9.04 setup. Though later on I see that a (more recent) opencore-amr is installed anyway. So are these packages:

    libopencore-amrnb-dev libopencore-amrwb-dev

    (the ones that apt-get complained about in step 2 prior to adding the PPA) actually required in step 2?

    Thanks for the great guide.
    This guide used to combine instructions for Karmic, Jaunty, and Intrepid until a few days ago. You're correct, libopencore-amrnb-dev and libopencore-amrwb-dev do not belong in step two. I forgot to remove it. Thanks for letting me know.

  10. #640
    Join Date
    Oct 2009
    Beans
    12

    Re: HOWTO: Install and use the latest FFmpeg and x264

    Following this HOWTO I'm getting this while compiling ffmpeg on Mythbuntu 9.10:

    Code:
    /usr/local/src/ffmpeg/libavcodec/libavcodec.a(libx264.o): In function `X264_init':
    /usr/local/src/ffmpeg/libavcodec/libx264.c:284: undefined reference to `x264_encoder_open_79'
    collect2: ld returned 1 exit status
    make: *** [ffmpeg_g] Error 1
    Any ideas? Coincidentally I can't get mplayer to compile with x264 support either

Page 64 of 241 FirstFirst ... 1454626364656674114164 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •