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 man hdiutil sukhyun 2008.04.04 136622
56 OSX에 설치형 웹하드를 설치해 보자! [5] [1062] file Shadow 2009.06.07 129280
55 XQuartz [5570] Shadow 2009.01.03 127841
54 com.apple.boot.plist & bootloader [6505] Shadow 2009.01.03 121375
53 [펌] CFGetHostUUIDString: unable to determine UUID for host. Error: 35 [5772] Shadow 2009.01.03 121219
52 MacBookPro 13" with Samsung S470 SSD [601] file Shadow 2011.01.20 87721
51 스노우 레퍼드 64bit 부팅 [3] [566] file Shadow 2009.09.07 81508
50 wget [364] Shadow 2009.04.29 81285
49 Snow Leopard에서 macports를 이용한 mplayer 설치 [202] Shadow 2009.09.09 57271
48 enblend-enfuse-3.2 on MacOSX [216] file Shadow 2009.03.19 52077
47 rox-filer [555] file Shadow 2009.04.14 51463
46 [작성중] 홈 서버 구성 가이드 - 4. 웹서버를 시동해 보자 - MAMP ( MacOSX Apach + MySQL + PHP ) [3] file sukhyun 2008.11.13 47387
45 [펌] 맥미니에 소요된 부품 목록 Administrator 2008.03.30 45270
44 [펌] PC에서 맥FTP서버로 접근시 한글 깨짐문제. [1] sukhyun 2008.04.06 38588
43 MacOSX System Configurations - MyConf! Shadow 2009.01.04 35925
42 [펌] 도구 없이 wire만으로 맥미니 분해하기!! [2] sukhyun 2008.03.30 35531
41 [펌] Tryout Mac Mini as Fileserver Administrator 2008.03.30 34177
40 [펌] Tutorial: Using what's new in Leopard's Accounts and File Sharing Preferences sukhyun 2008.04.07 32755
39 Pure-ftpd sukhyun 2008.08.28 32170
38 [작성중] 홈서버 구성 가이드 - 2. 네트워크 구성과 공유기 설정 file sukhyun 2008.11.15 31260

사용자 로그인