[SOLVED] How tell mencoder where to find x264 codec
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Either in ~/.mplayer/codecs.conf or /etc/mplayer/codecs.conf
You'll have to google to see how to edit that file manually. It would be easier to install the all codec package from mplayer http://www.mplayerhq.hu/design7/dload.html
Your package mgr probably has a win32codecs package. You should install them when you install mplayer and mencoder.
Either in ~/.mplayer/codecs.conf or /etc/mplayer/codecs.conf
You'll have to google to see how to edit that file manually. It would be easier to install the all codec package from mplayer http://www.mplayerhq.hu/design7/dload.html
Your package mgr probably has a win32codecs package. You should install them when you install mplayer and mencoder.
I got the "Linux x86 20071007" codec package from http://www.mplayerhq.hu/design7/dload.html and copied the extracted files into both directories recommended in the README, /usr/lib/codecs and /usr/local/lib/codecs. No good.
As there was no x264 in the codec package I also copied /usr/bin/x264 into /usr/lib/codecs and /usr/local/lib/codecs. Still no good. mencoder behaves exactly as it did before and I still get
Code:
root@a:~# mencoder -ovc help
MEncoder 20101218-4.5.1 (C) 2000-2010 MPlayer Team
Available codecs:
copy - frame copy, without re-encoding. Doesn't work with filters.
frameno - special audio-only file for 3-pass encoding, see DOCS.
raw - uncompressed video. Use fourcc option to set format explicitly.
nuv - nuppel video
lavc - libavcodec codecs - best quality!
vfw - VfW DLLs, read DOCS/HTML/en/encoding-guide.html.
qtvideo - QuickTime DLLs, currently only SVQ1/3 are supported.
root@a:~#
So, it pays no attention to any of them. So now I'll try editing the mencoder conf files. I'm using the mplayer package that comes preinstalled with slackware 13.37
mencoder -ovc help
MEncoder SVN-r34344-4.6.2 (C) 2000-2011 MPlayer Team
Available codecs:
copy - frame copy, without re-encoding. Doesn't work with filters.
frameno - special audio-only file for 3-pass encoding, see DOCS.
raw - uncompressed video. Use fourcc option to set format explicitly.
lavc - libavcodec codecs - best quality!
xvid - XviD encoding
x264 - H.264 encoding
I have in /etc/mplayer/codecs.conf
Code:
videocodec ffh264
info "FFmpeg H.264"
status working
fourcc H264,h264
fourcc X264,x264
fourcc avc1,AVC1
fourcc davc,DAVC
fourcc vvvc ; only one sample using this fourcc
fourcc ai1p,ai1q,ai12,ai13
fourcc ai15,ai16
fourcc ai5p,ai5q,ai52,ai53
fourcc ai55,ai56
fourcc x3eV
fourcc Q264
format 0x10000005
driver ffmpeg
dll h264
out YV12,I420,IYUV,420P10,420P9
out 422P,422P10
out 444P,444P9,444P10
out GBR24P
videocodec ffh264vdpau
info "FFmpeg H.264 (VDPAU)"
status working
fourcc H264,h264
fourcc X264,x264
fourcc avc1,AVC1
fourcc davc,DAVC
fourcc ai1p,ai1q,ai12,ai13
fourcc ai15,ai16
fourcc ai5p,ai5q,ai52,ai53
fourcc ai55,ai56
fourcc x3eV
fourcc Q264
format 0x10000005
driver ffmpeg
dll h264_vdpau
out VDPAU_H264
videocodec ffh264crystalhd
info "FFmpeg H.264 (CrystalHD)"
status working
fourcc H264,h264
fourcc X264,x264
fourcc avc1,AVC1
fourcc davc,DAVC
fourcc vvvc ; only one sample using this fourcc
fourcc ai1p,ai1q,ai12,ai13
fourcc ai15,ai16
fourcc ai5p,ai5q,ai52,ai53
fourcc ai55,ai56
fourcc x3eV
format 0x10000005
driver ffmpeg
dll h264_crystalhd
out YUY2
videocodec coreavcwindows
info "CoreAVC H.264 for x86 - http://corecodec.org/"
comment "this codec will only work after purchasing it"
status working
fourcc H264,h264
fourcc X264,x264
fourcc avc1 AVC1,AVC1
fourcc davc,DAVC
fourcc VSSH
fourcc ai1p,ai1q,ai12,ai13
fourcc ai15,ai16
fourcc ai5p,ai5q,ai52,ai53
fourcc ai55,ai56
fourcc x3eV
format 0x10000005
driver dshow
dll "CoreAVCDecoder.ax"
guid 0x09571a4b, 0xf1fe, 0x4c60, 0x97, 0x60, 0xde, 0x6d, 0x31, 0x0c, 0x7c, 0x31
out YV12,IYUV,I420,YUY2
videocodec vssh264
info "VSS H.264 New"
status working
fourcc VSSH
driver dshow
dll "vsshdsd.dll"
guid 0x6931C7e7, 0x75b7, 0x4729, 0xa1, 0x53, 0xa8, 0xad, 0x99, 0xbd, 0xf7, 0x0b
out YV12
videocodec vssh264old
info "VSS H.264 Old"
status working
fourcc VSSH
driver vfw
dll "vssh264.dll" ; need also vssh264core.dll, vssh264dec.dll
out BGR24 flip
My distro's mplayer config files are in different locations to yours, and were entirely commented out, but when I added the content of your config file to mine I got different error messages. That is progress of a sort, and I think the config file is the answer, but I have to do more research to find what I should be adding to mine. I thank you for your help
You'll probably be better off removing mplayer and then reinstalling it with win32 codecs.
Did you compile mplayer from source? If so specify with win32 codecs.
If you are installing from package then you may want to install the codecs from your distros package mgr, or install the codecs first, then install mplayer.
Why did you install the codecs yourself and not let your package mgr do it?
What flavor of Linux are you using? Maybe someone knows what the problem is.
You'll probably be better off removing mplayer and then reinstalling it with win32 codecs.
Did you compile mplayer from source? If so specify with win32 codecs.
If you are installing from package then you may want to install the codecs from your distros package mgr, or install the codecs first, then install mplayer.
Why did you install the codecs yourself and not let your package mgr do it?
What flavor of Linux are you using? Maybe someone knows what the problem is.
From what I've read the problem is that when mplayer is compiled you must set the switches for the codecs you want it to be able to work with. I'm currently using the mplayer version that comes with slackware 13.37 and it doesn't access the x264 codec. This is my first attempt at encoding a dvd, and as mplayer's manual is as long as a novel, I went looking introductory tutorials, from which I got the command using the x264 codec. Now I've modified that to use the codecs I can use, and I'll work with them rather than redo mplayer, it seems to have a massive number of dependencies to be updated along with it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.