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]

번호 제목 글쓴이 날짜 조회 수
37 [펌] Putty Proxy 우회하기(터널링) file sukhyun 2008.06.13 31166
36 리얼맥 시동음 제거 [1] Administrator 2008.03.30 30836
35 [펌] 집에서 Mac으로 메일서버 운영하기 (1) [1] Administrator 2008.03.30 30564
34 [펌] OS X에서 파일 시스템 관리를 위한 디스크 유틸리티와 fsck의 사용 Administrator 2008.03.30 30530
33 lukemftpd 질문에 대한 내 답변 [1] Shadow 2008.12.24 30235
32 [작성중] 홈 서버 구성 가이드 - 1. 홈서버 시스템의 선택 [4] sukhyun 2008.11.14 29198
31 [펌] Creating & deleting system service agent accounts on Mac OS X sukhyun 2008.10.01 28182
30 [펌] ★ 애플 Mac mini 리뷰 & 분해기! [1] Administrator 2008.03.30 27391
29 [펌] 맥미니 전력 소모 (애플 자료) [2] sukhyun 2008.03.30 26838
28 [펌] Linux on the Mac Mini Administrator 2008.03.30 26380
27 Media Transcoding (Encoding) : mencoder & codecs [1] sukhyun 2008.11.26 26328
26 [펌] An A-Z Index of the Apple OS X command line sukhyun 2008.08.30 25904
» Mplayer & Mencoder - Compilation in MacOSX file sukhyun 2008.11.27 25722
24 [작성중] 홈서버 구성 가이드 - 5. FTP를 이용한 파일서버 - LukemFTPd / PureFTPd [1] file sukhyun 2008.11.19 24799
23 제로보드 버그 Administrator 2008.03.30 24621
22 [펌] ftpd encoding patch sukhyun 2008.04.07 24373
21 Cyberduck - FTP and SFTP Browser for Mac OS X file sukhyun 2008.04.06 24327
20 transmit 3 - FTP client [1] sukhyun 2008.04.06 24322
19 [펌] NFS exports and Mac OS X 10.5 Leopard sukhyun 2008.05.04 24249
18 [펌] FTP Only Accounts Under Mac OS X Leopard sukhyun 2008.04.07 23598

사용자 로그인