Page 221 of 241 FirstFirst ... 121171211219220221222223231 ... LastLast
Results 2,201 to 2,210 of 2402

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

  1. #2201
    Join Date
    Aug 2008
    Beans
    67

    Re: Invalid value 'baseline' for option 'profile'

    I used a batch command for conversion all avi to mp4 in one folder:

    mkdir output ; for file in *.avi ; do ffmpeg -i $file -acodec copy -vcodec libx264 -preset slow -tune film -profile main -crf 29 output/$file.mp4 ; done
    This command produce files like 001.avi.mp4.
    How to change this command to remove .avi part from the names of final files?


    ... Well, I found the answer. The command in this case will be:
    mkdir output ; for file in *.avi ; do ffmpeg -i $file -acodec copy -vcodec libx264 -preset slow -tune film -profile main -crf 29 output/${file%.avi}.mp4 ; done
    By the way the output of this command warns about;

    Please use -profile:a or -profile:v, -profile is ambiguous
    So I used -profile:v instead -profile. I don't know if it is right or what is better option for -profile.
    Last edited by rulet; July 18th, 2012 at 12:14 PM.
    Core2Duo E7400, GeForce GT440, 4Gb RAM

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

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

    Quote Originally Posted by robdocmagic View Post
    Does anyone know if I need to pass any additional/new flags into ffmpeg or what I need to do to get them the same size they were?
    I am currently travelling, but I can take a look at this after July 23.

    Quote Originally Posted by roysoft View Post
    while converting a generic h264 video with:
    Code:
    ffmpeg -i <input-file> -vcodec libx264 -vpre lossless_slow -profile baseline -tune zerolatency <output-file.mp4>
    Your command is outdated. There is no lossless_slow preset anymore (file based presets have been replaced with the actual presets in x264) and the baseline profile doesn't support lossless. The zerolatency tune shouldn't do much for lossless except use sliced threads. A current example based on yours is:
    Code:
    ffmpeg -i <input-file> -vcodec libx264 -preset veryslow -qp 0 -tune zerolatency <output-file.mp4>
    Quote Originally Posted by roysoft View Post
    how this error can be solved " Invalid value 'baseline' for option 'profile' "
    You need to change -profile to -profile:v. This is because -profile by itself is ambiguous and I believe there is also an audio -profile option.

    Quote Originally Posted by rulet View Post
    So I used -profile:v instead -profile. I don't know if it is right or what is better option for -profile.
    Yes, -profile:v is correct.

  3. #2203
    Join Date
    Sep 2006
    Beans
    3,713

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

    fdk-aac mini guide

    FFmpeg now supports the Fraunhofer AAC encoder library (fdk-aac) which increases FFmpeg support to five AAC encoders: ffaacenc (the native FFmpeg AAC encoder), libfaac, libvo-aacenc, libaacplus, and libfdk-aac. Here's how to compile fdk-aac.

    1. Get a few build dependencies:
    Code:
    sudo apt-get install build-essential checkinstall
    2. Compile fdk-aac:
    Code:
    wget http://downloads.sourceforge.net/opencore-amr/fdk-aac-0.1.0.tar.gz
    tar xzvf fdk-aac-0.1.0.tar.gz
    cd fdk-aac-0.1.0
    ./configure --enable-shared=no
    make
    sudo checkinstall --pkgname=fdk-aac --pkgversion="0.1.0" --backup=no --deldoc=yes --fstrans=no --default
    3. Configure and compile ffmpeg:
    Code:
    cd ~/ffmpeg
    make distclean
    git pull
    ./configure --enable-libfdk-aac
    make, checkinstall, etc as shown in FFmpeg compile guide.

    4. Usage. Some examples can be found at Open Source Fraunhofer AAC Encoder (fdk-aac).
    Last edited by FakeOutdoorsman; July 26th, 2012 at 06:36 PM.

  4. #2204
    Join Date
    Sep 2006
    Beans
    3,713

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

    libcaca mini guide

    FFmpeg now supports libcaca, a graphics library that outputs text instead of pixels.

    1. Get a few build dependencies:
    Code:
    sudo apt-get install build-essential checkinstall libcaca-dev
    2. Configure and compile ffmpeg:
    Code:
    cd ~/ffmpeg
    make distclean
    git pull
    ./configure --enable-libcaca
    make, checkinstall, etc as shown in FFmpeg compile guide.

    3. Usage:
    Code:
    ffmpeg -i INPUT -vcodec rawvideo -pix_fmt rgb24 -window_size 80x25 -f caca -
    Attached Images Attached Images

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

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

    The FFmpeg and x264 Encoding Guide is now available.

  6. #2206
    Join Date
    Jul 2012
    Beans
    318
    Distro
    Xubuntu 16.04 Xenial Xerus

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

    Many thanks for the encoding guide.

    Did I read somewhere that if using "-ss" to place it before the "-i" to speed up the seek? e.g.
    Code:
    ffmpeg -ss 00:30:00 -i input.avi

  7. #2207
    Join Date
    Sep 2006
    Beans
    3,713

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

    You are correct, but it may not be as accurate as using -ss as an output option (after -i).

  8. #2208
    Join Date
    Jul 2011
    Beans
    34
    Distro
    Ubuntu

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

    I am having problems with getting this to work. After following all the directions in my Ubuntu 12.04 server system, if I try to use x264 it returns:

    x264: error while loading shared libraries: libfdk-aac.so.0: cannot open shared object file: No such file or directory

    Edit:

    Fixed by purging x264 and recompiling it.
    Last edited by mmstick; August 31st, 2012 at 05:25 PM.

  9. #2209
    Join Date
    Jan 2009
    Beans
    83

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

    I followed your guide over at https://ffmpeg.org/trac/ffmpeg/wiki/...mpilationGuide.
    Everything went through fine, I run 12.04.
    But when I type in ffmpeg in the cl, I get the following:
    ffmpeg: error while loading shared libraries: libfdk-aac.so.0: cannot open shared object file: No such file or directory

    What do I do?

  10. #2210
    Join Date
    Jun 2007
    Beans
    15,922

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

    Quote Originally Posted by cannon_dt View Post
    I followed your guide over at https://ffmpeg.org/trac/ffmpeg/wiki/...mpilationGuide.
    Everything went through fine, I run 12.04.
    But when I type in ffmpeg in the cl, I get the following:
    ffmpeg: error while loading shared libraries: libfdk-aac.so.0: cannot open shared object file: No such file or directory

    What do I do?
    This will likely fix itself the next time you install a proper .deb package which will do an ldconfig

    For future reference -
    whenever installing a checkinstall package that contains shared libs one should run this after install
    Code:
    sudo ldconfig
    So if still affected run that command & all will be ok

    The fdk-aac build is doing as shared so it should end with the above command

    Edit; the alt. would be to build fdk-aac as static only, don't know enough about it to say
    (./configure --disable-shared
    Last edited by mc4man; September 2nd, 2012 at 06:38 PM.

Page 221 of 241 FirstFirst ... 121171211219220221222223231 ... 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
  •