Mplayer & Mencoder - Compilation in MacOSX

2008.11.27 20:03

sukhyun 조회 수:25722

나를 위한 MacOSX 10.5.x 에서 mplayer의 compile 순서
freetype이 설치되어 있지 않으면 폰트 파일인 *.ttf, *.ttc 파일을 읽을 수 없다. 저것 때문에 한참을 해맸다는...

1. mp3lame ( http://lame.sourceforge.net/ )
cvs -z3 -d:pserver:anonymous@lame.cvs.sourceforge.net:/cvsroot/lame co -P lame
가장 범용적인 mp3 인코더

2. Xvid ( http://www.xvid.org/ )
cvs -z3 -d:pserver:anonymous@cvs.xvid.org:/xvid co xvidcore
Xvid 코덱

3. x264 ( http://developers.videolan.org/x264.html )
x264 코덱

4. freetype ( http://freetype.sourceforge.net/index2.html )
OSD 및 자막 처리를 위한 freetype ( *.ttf, *.ttc 파일을 읽기 위해 반드시 필요, 없으면 자막 지원 안됨 )

5. mplayer


첨부파일 내용은 다음 환경에서 다음과 같은 명령으로 추출된 것임

MEncoder dev-SVN-r27979-4.0.1 (C) 2000-2008 MPlayer Team
AltiVec found
CPU: PowerPC

"man mencoder | col -b > man_mencoder.txt"









-of lavf -lavfopts format=mp4


mencoder -oac pcm -ovc x264 -x264encopts threads=auto:subq=6:partitions=all:8x8dct:me=umh:f rameref=5:bframes=3:b_pyramid:weight_b


<pass1>
$mencoder rip.vob -vf pullup,softskip,crop=720:352:0:62 -nosound -ovc x264
-x264encopts bitrate=1000:subq=4:bframes=3:b_pyramid:weight_b:turbo=1:pass=1
-ofps 24000/1001 -of rawvideo -o video.264

<pass2>
$mencoder rip.vob -vf pullup,softskip,crop=720:352:0:62 -nosound -ovc x264
-x264encopts
bitrate=1000:subq=6:frameref=6:4x4mv:8x8dct:me=3:bframes=3:b_pyramid:weight_b:pass=2
-ofps 24000/1001 -of rawvideo -o video.264

<put video in mp4 format, mkvmerge doesn't accept raw x264 nor x264 in an avi
file (properly)>
$MP4Box -fps 23.976025 -add video.264 video.mp4

<dump audio to wav>
$mplayer rip.vob -vo null -ao pcm:file="audio.wav"

<encode wav to ogg>
$oggenc -q8 audio.wav

<stick together in matroska file>
$mkvmerge -o rip.mkv audio.ogg video.mp4


 -vf expand=:-100::2

svn checkout http://svn.matroska.org/svn/matroska/trunk/


Whats the best deinterlacing filter?
-vf yadif with mcedeint is reccomended by mplayer and ffmpeg devels.
see comparison at http://guru.multimedia.cx/deinterlacing-filters/


[psp]
profile-desc="PSP AVC encoding profile."
vf=hqdn3d,scale=368:208
af=lavcresample=48000
ofps=30000/1001
ovc=lavc=1
oac=lavc=1
lavcopts=aglobal=1:vglobal=1:vcodec=h264:acodec=aac:vbitrate=320:abitrate=97:coder=1
of=lavf=1
lavfopts=format=psp:i_certify_that_my_video_stream_does_not_use_b_frames=1


mplayer -vo null -ao null -frames 0 -identify [video_filename]

번호 제목 글쓴이 날짜 조회 수
57 범인은 공유기... sukhyun 2008.04.25 22574
56 man ftpd.conf sukhyun 2008.04.25 20023
55 [펌] NFS exports and Mac OS X 10.5 Leopard sukhyun 2008.05.04 24250
54 [펌] Putty Proxy 우회하기(터널링) file sukhyun 2008.06.13 31166
53 Zip Test Script ( BASH ) sukhyun 2008.08.21 20567
52 [Script] the number of files (or directories) sukhyun 2008.08.25 19576
51 [Script] MAMP server backup sukhyun 2008.08.25 20468
50 Pure-ftpd sukhyun 2008.08.28 32170
49 Pure-ftpd : Virtual users sukhyun 2008.08.29 23561
48 boot-132 secret sukhyun 2008.08.30 448
47 [펌] An A-Z Index of the Apple OS X command line sukhyun 2008.08.30 25920
46 [Script] Netstat - Bash sukhyun 2008.08.31 21770
45 boot132 (2nd) secret sukhyun 2008.09.27 370
44 [펌] Create & delete user accounts from the command line on Mac OS X sukhyun 2008.10.01 21799
43 [펌] Creating & deleting system service agent accounts on Mac OS X sukhyun 2008.10.01 28182
42 (비밀글) x86osx - 글 백업 secret sukhyun 2008.10.08 302
41 [작성중] 홈 서버 구성 가이드 - 4. 웹서버를 시동해 보자 - MAMP ( MacOSX Apach + MySQL + PHP ) [3] file sukhyun 2008.11.13 47390
40 [작성중] 홈 서버 구성 가이드 - 1. 홈서버 시스템의 선택 [4] sukhyun 2008.11.14 29198
39 [작성중] 홈서버 구성 가이드 - 2. 네트워크 구성과 공유기 설정 file sukhyun 2008.11.15 31261
38 [작성중] 홈서버 구성 가이드 - 5. FTP를 이용한 파일서버 - LukemFTPd / PureFTPd [1] file sukhyun 2008.11.19 24799

사용자 로그인