LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 12-20-2011, 01:19 PM   #1
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Rep: Reputation: 24
How tell mencoder where to find x264 codec


I installed the x264 codec thus:
Code:
root@a:/home/g/dnlds# whereis x264
x264: /usr/bin/x264 /usr/X11R6/bin/x264 /usr/bin/X11/x264 /usr/X11/bin/x264 /usr/include/x264.h
But mencoder does not find it:
Code:
/media/500gb/Films/Dorm2006 $mencoder movie.vob -o movie.264 -of rawvideo -oac copy -vf pullup,softskip,crop=720:480:0:0 harddup -ofps 24000/1001 -ovc x264 x264enc crf=20:8x8dct:frameref=4:bframes=3:b_pyramid=normal:weight_b
MEncoder 20101218-4.5.1 (C) 2000-2010 MPlayer Team
success: format: 0  data: 0x0 - 0x288bc800
MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 3)  29.970 fps  9800.0 kbps (1225.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.970  ftime:=0.0334
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
Couldn't find video filter 'x264'.
Failed to open the encoder.

Exiting...
/media/500gb/Films/Dorm2006 $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.

/media/500gb/Films/Dorm2006 $
How do I tell mencoder where to find it?
 
Old 12-20-2011, 03:54 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
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.
 
Old 12-20-2011, 05:14 PM   #3
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by teckk View Post
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

Last edited by porphyry5; 12-20-2011 at 05:16 PM.
 
Old 12-20-2011, 05:31 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
I have
Code:
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
Don't know if that will help you or not.
 
1 members found this post helpful.
Old 12-20-2011, 07:26 PM   #5
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by teckk View Post
Don't know if that will help you or not.
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
 
Old 12-21-2011, 02:04 PM   #6
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
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.
 
Old 12-21-2011, 05:20 PM   #7
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by teckk View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mencoder segfaults when converting x264 MKVs dugan Slackware 3 07-03-2011 05:28 PM
mencoder x264 using 720x480 DragonM15 Linux - Software 23 11-17-2009 02:54 AM
mencoder & x264 help steve51184 Linux - Software 14 05-21-2009 04:58 AM
Mencoder: x264 [error]: no ratecontrol method specified PsypherPunk Linux - Software 1 01-12-2008 08:45 AM
Converting DVD to x264 w/ Mencoder out of sync? carl0ski Linux - Desktop 1 01-12-2007 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration