View Single Post
Old 2009-10-11, 22:09   Link #211
Xanas
Member
 
Join Date: Nov 2007
Location: Midland, TX
Age: 43
Send a message via ICQ to Xanas Send a message via AIM to Xanas Send a message via MSN to Xanas Send a message via Yahoo to Xanas
I've been able to compile the git://repo.or.cz/mplayer-build.git version but when it compiles the mencoder application doesn't have much codec support. Mplayer is fine, but mencoder is effectively useless. I have tried using the git version of x264 but I'm still not getting anywhere with it. I've tried enabling libx264 (I am actually pretty sure I'm not supposed to have to do that) for ffmpeg, but that doesn't do anything for mencoder.

I know encoding isn't a fansub related question, but I haven't seen anywhere else where compilation for this git repo is discussed. Everything I've read elsewhere seems to indicate that mplayer should just know that x264 is there. I had the dev source installed before I had tried the git version.
Code:
mencoder -ovc help -oac help
MEncoder UNKNOWN-4.4.1 (C) 2000-2009 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
   xvid     - XviD encoding


Available codecs:
   copy     - frame copy, without re-encoding (useful for AC3)
   pcm      - uncompressed PCM audio
   mp3lame  - cbr/abr/vbr MP3 using libmp3lame
   faac     - FAAC AAC audio encoder
Configure.log may mean that the current git of x264 is also incompatible, but I haven't found a version 76 build anywhere for x264 and I don't know git well enough to know how to check out old builds.

Code:
#include <inttypes.h>
#include <x264.h>
#if X264_BUILD < 76
#error We do not support old versions of x264. Get the latest from git.
#endif
int main(void) { x264_encoder_open((void*)0); return 0; }

cc -Wundef -Wdisabled-optimization -Wno-pointer-sign -std=gnu99 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O2 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -I.  -I/home/xanas/mplayer-build/build_libs/include -D_REENTRANT -I/usr/include/directfb -I/usr/include/  -I/usr/include/SDL  -D_REENTRANT   -D_REENTRANT   -I/usr/include  -I/usr/include/freetype2 -I/home/xanas/mplayer-build/build_libs/include -I/usr/include/freetype2   -I/usr/include   -I/home/xanas/mplayer-build/build_libs/include   -I/home/xanas/mplayer-build/build_libs/include   -I/home/xanas/mplayer-build/build_libs/include   -I/home/xanas/mplayer-build/build_libs/include   -I/home/xanas/mplayer-build/build_libs/include     -L/home/xanas/mplayer-build/build_libs/lib -ffast-math   -lncurses -lsmbclient -lpng -lz -ljpeg -lungif -lasound -ldl -lpthread -L/usr/lib -ldvdread -ldvdread -lcdda_interface -lcdda_paranoia -lfreetype -lz -lfontconfig  -L/home/xanas/mplayer-build/build_libs/lib -lass   -L/usr/lib -lfribidi -lz -lbz2 -llzo2 -lspeex -ltheora -logg   -ldts -lliveMedia -lgroupsock -lUsageEnvironment -lBasicUsageEnvironment -lstdc++ -L/home/xanas/mplayer-build/build_libs/lib -lavutil   -pthread -L/home/xanas/mplayer-build/build_libs/lib -lavcodec -lz -lbz2 -lm -lavutil   -pthread -L/home/xanas/mplayer-build/build_libs/lib -lavformat -lavcodec -lz -lbz2 -lm -lavutil   -L/home/xanas/mplayer-build/build_libs/lib -lpostproc -lavutil   -L/home/xanas/mplayer-build/build_libs/lib -lswscale -lavutil   -lxvidcore -lm  -ldirectfb  -lXext -lX11 -lpthread -lXv -lXinerama -lXxf86vm -lXxf86dga -laa -L/usr/lib -lcaca -lvga -lGL -ldl -L/usr/lib -lSDL -lesd   -laudio -lXt -lpulse   -ljack  -lfaac -o /tmp/mplayer-conf--15972 /tmp/mplayer-conf--15972.c -lx264 -lpthread -lm
/tmp/ccilf8PC.o: In function `main':
mplayer-conf--15972.c:(.text+0x7): undefined reference to `x264_encoder_open_77'
collect2: ld returned 1 exit status


Result is: no 
##########################################
[code]

Last edited by Xanas; 2009-10-11 at 22:29.
Xanas is offline   Reply With Quote