Results 1 to 5 of 5

Thread: Can't find libx264 or libxvid

  1. #1
    Join Date
    Mar 2010
    Location
    Virginia
    Beans
    17
    Distro
    Ubuntu

    Can't find libx264 or libxvid

    I'm using mencoder to encode a DVD on my computer (reading it is not an issue), and I'm having trouble getting the codec to read a certain library.

    My command includes these options:
    Code:
    -ovc lavc
    -lavcopts vcodec=libx264 (I also tried with libxvid)
    It spat out this error at the end:
    Code:
    Cannot find codec 'libxvid' in libavcodec...
    Couldn't open video filter 'lavc'.
    Failed to open the encoder.
    
    Exiting...
    Unless I can get this working I'll fall back on mpeg4 but I would like these codecs. I've had good experiences with them. I've checked and the libx264-98 package is installed, along with libxvidcore4 and avifile-xvid-plugin

    Is this a permission problem? Or do I have to set a conf file?

    DO NOT suggest using a different -ovc or vcodec. If you have one that works for you, keep that for yourself. I am going to use lavc.

    This isn't really life or death here. I'd just like it to be able to work!

  2. #2
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,692
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Can't find libx264 or libxvid

    AFAIK this error is related to the stripped libavcodec, format

    If you add medibuntu ppa (& load the key) in synaptic & then reload.

    libavcodec format util etc should be replaced with unstripped "extra" packages.

    You could also install w32-codecs or w64-codecs & libdvdcss.

    Search ubuntu website for restricted formats & medibuntu for clear instructions.

  3. #3
    Join Date
    Mar 2010
    Location
    Virginia
    Beans
    17
    Distro
    Ubuntu

    Re: Can't find libx264 or libxvid

    Quote Originally Posted by BicyclerBoy View Post
    AFAIK this error is related to the stripped libavcodec, format

    If you add medibuntu ppa (& load the key) in synaptic & then reload.

    libavcodec format util etc should be replaced with unstripped "extra" packages.

    You could also install w32-codecs or w64-codecs & libdvdcss.

    Search ubuntu website for restricted formats & medibuntu for clear instructions.
    Now it gives me this:

    Code:
    Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
    videocodec: libavcodec (720x480 fourcc=34363268 [h264])
    [VE_LAVC] High quality encoding selected (non-realtime)!
    [libx264 @ 0x2144660]broken ffmpeg default settings detected
    [libx264 @ 0x2144660]use an encoding preset (vpre)
    Could not open codec.
    FATAL: Cannot initialize video driver.
    [mpeg2video @ 0x2144f90]ac-tex damaged at 22 7
    [mpeg2video @ 0x2144f90]Warning MVs not available
    [mpeg2video @ 0x2144f90]concealing 1035 DC, 1035 AC, 1035 MV errors
    
    Exiting...
    I even installed the dev packages of libx264 and libxvid

  4. #4
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,692
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Can't find libx264 or libxvid

    It is strongly recommended to use presets with x264 (libx264) now.

    The error is telling you the mencoder options for ffmpeg, you are using, are invalid now for x264.

    Mencoder uses ffmpeg & w32-codecs w64-codecs & other stuff AFAIK.

    I think mencoder is deprecated in favour of using mplayer directly.

    There is loads of web info about mencoder x264 presets etc..

  5. #5
    Join Date
    Dec 2006
    Beans
    7,349

    Re: Can't find libx264 or libxvid

    A typical use of x264 presets with MEncoder could be:

    Code:
    -ovc x264 -x264encopts preset=slow:tune=film:crf=22
    Andrew
    You think that's air you're breathing now?

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
  •