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]

번호 제목 글쓴이 날짜 조회 수
77 mounting a linux nfs server on mac os x 10.6 [17712] Shadow 2011.02.15 758652
76 MacOSX에 ufraw를 설치하자~ [1] [886] file Shadow 2009.01.03 635902
75 Winclone 부트캠프 백업/복원 어플입니다 [3] [10660] guriii 2009.08.28 394669
74 Carbon Copy Cloner [14197] Shadow 2009.05.04 382783
73 맥북에어 2013 - VMware Fusion 5.x 사용시 화면 깜빡임 해결 방법 [13380] Shadow 2013.07.19 336519
72 screen saver [9091] file Shadow 2013.08.21 307220
71 freetype [1] [10007] Shadow 2009.04.29 277427
70 MacBookAir 11" 2013-mid 256GB SSD 성능 [10865] file Shadow 2013.07.27 276425
69 Chrome Extentions (Bookmarks Menu) Scroll Bar Bug Fix [4367] file Shadow 2013.01.02 232772
68 맥이 아닌 machine에서 맥에 SSH 접속시 한글 표시법 [9665] Shadow 2009.02.10 231111
67 Macbook Air 11inch 128GB SSD performance [11906] file Shadow 2010.11.28 226910
66 eXtplorer 2.0.1 한글 패치 (on MacOSX 다운로드, 표시) 버전 [2] [8710] file Shadow 2010.04.30 210175
65 디스크에 문제가 발생했을 때 [10406] Shadow 2010.12.30 204032
64 file managers based on x11 (supported by MacPorts) [1] [8166] Shadow 2010.02.16 203448
63 gpac (mp4box) [10595] Shadow 2009.04.29 201135
62 MacOSX 10.7 Lion - TRIM 지원 [7] [1402] file Shadow 2011.07.06 170976
61 remote X11forwarding from OSX to Windows [6277] Shadow 2009.01.03 151122
60 rar [823] Shadow 2009.04.29 145304
59 PureFTPd Update! (1.0.22) [7169] Shadow 2009.04.29 144413
58 [펌] PureFtpd - Mysql-auth per user connection limit feature [6633] Shadow 2009.02.25 136875

사용자 로그인