h.264 encoding with ffmpeg
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2008
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    h.264 encoding with ffmpeg

    I'm trying to figure out how to convert some MPEG2 files to H.264 MPEG4 with ffmpeg. I read the documentation, and it seems like these (and a few other things) should work:

    Code:
        ffmpeg -i infile.mpg outfile.h264
        ffmpeg -i infile.mpg -vcodec h264 outfile.mpg
    But it doesn't. The error message is
    Code:
        Unsupported codec for output stream #0.0
    or
    Code:
        Unknown encoder 'h264'
    The documentation says that h264 is supported, so I must be doing something wrong. What am I doing wrong? Do I have to install the h.264 encoders manually?

  2. #2
    Seve's Avatar
    Seve is offline Retired Community Manager
    Join Date
    Oct 2004
    Location
    The GTA, Ontario, Canada
    Age
    64
    Posts
    12,371
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello:
    Make sure you have x264-libs installed. The rpm package is available via yum.

    Seve
    Registered Linux User: #384977
    .................................................. ............
    See the Links below for more Help and those much wanted extras ... :)


  3. #3
    Join Date
    Mar 2008
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I installed the x264 libs with yum:
    Code:
    yum install "*264*"
    And it made no difference when I attempted to convert an MPEG2 file to h264. I still received the same error messages.

  4. #4
    Join Date
    Mar 2008
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried a fresh checkout of ffmpeg and explicitly added h264 support during the configure:
    Code:
    ./configure --enable-gpl --enable-libx264
    But this produced an error:
    Code:
    ERROR: libx264 version must be >= 0.65.
    The problem is that "yum update x264-libs" installs version 0.61.

    How do people that don't ask questions generally solve these problems?

  5. #5
    Join Date
    Mar 2004
    Posts
    617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try
    Code:
    ffmpeg -i infile.mpg -vcodec libx264 -acodec libfaac outfile.mp4
    --SN

Similar Threads

  1. ffmpeg encoding mp3 error
    By jcatfolsom in forum Using Fedora
    Replies: 6
    Last Post: 3rd January 2011, 01:34 AM
  2. Help with ffmpeg under FC7
    By jingdejun in forum Using Fedora
    Replies: 2
    Last Post: 14th June 2007, 04:00 AM
  3. ffmpeg encoding mono-only from /dev/dsp
    By MgFrobozz in forum Using Fedora
    Replies: 0
    Last Post: 5th March 2007, 10:45 PM
  4. ffmpeg (et al) with a web cam
    By guru_wannabe in forum Using Fedora
    Replies: 0
    Last Post: 21st November 2006, 03:56 PM
  5. FC4 and FFMPEG
    By Ricky in forum Using Fedora
    Replies: 2
    Last Post: 17th June 2005, 03:36 PM

Tags for this Thread

Posting Permissions

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