· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
MPlayer


MPlayer´Â ´Ù¾çÇÑ ÄÚµ¦°ú ÆÄÀÏÆ÷¸ËÀ» Áö¿øÇÏ´Â µ¿¿µ»ó Àç»ý±âÀÔ´Ï´Ù. MPEG-1/2/4, DivX 3/4/5, Windows Media 7/8/9, Quicktime 5/6, Vivo 1/2µîÀ» Áö¿øÇϰí, RealAudio/Videoµµ 9±îÁö Áö¿øÇÕ´Ï´Ù. MMX/SSE(2)/3Dnow(Ex)·Î ÃÖÀûÈ­µÈ ÀÚü ¿Àµð¿À/ºñµð¿À ÄÚµ¦À» ³»ÀåÇϰí ÀÖÁö¸¸, !XAnimÀ̳ª !RealPlayerÀÇ ¹ÙÀ̳ʸ® ÄÚµ¦ Ç÷¯±×ÀÎ, Win32ÀÇ ÄÚµ¦ DLLµµ »ç¿ë °¡´ÉÇÕ´Ï´Ù. ±âº»ÀûÀÎ VCD/DVD Àç»ý, DVD ÀÚ¸·, »Ó¸¸ ¾Æ´Ï¶ó ÅØ½ºÆ® ±â¹ÝÀÇ ÀÚ¸· Æ÷¸Ëµµ ´Ù¼ö Áö¿øµË´Ï´Ù. mencoder¶ó´Â ÇÁ·Î±×·¥À» ÅëÇØ raw/divx/mpeg4 AVI(pcm/mp3 audio)Çü½ÄÀ¸·Î º¯È¯±â´ÉÀ» Á¦°øÇϸç, V4L ÀåÄ¡¿¡¼­ÀÇ ºñµð¿À ĸÃĵµ Áö¿øÇÕ´Ï´Ù. (http://freshmeat.net ÀÇ ¼Ò°³ Àοë)

ÇÑ±Û ÀÚ¸·


ÇÑ±Û ÀÚ¸·À» Á¦´ë·Î º¸±â À§Çؼ­´Â ÀÎÄÚµù°ú ±Û²ÃÀ» ¼³Á¤ÇØÁÖ¾î¾ß ÇÑ´Ù. ÀÚ¸· ÆÄÀÏ subtitle.smi°¡ CP949 ÀÎÄÚµùÀÌ°í ³ª´®°íµñ ±Û²Ã·Î ÀÚ¸·À» º¸·Á°í ÇÑ´Ù¸é:
mplayer video.avi -fontconfig -subcp cp949 "Nanum Gothic" -sub subtitle.smi


ÀÚ¸· À§Ä¡ Á¶Á¤

WIDTH=`mplayer -vo null -ao null -identify -endpos 0 "$1" | grep ID_VIDEO_WIDTH | sed -e "s/^.*=//g"`;
HEIGHT=`expr $WIDTH \* 9 / 16`
mplayer -vf expand=-1:$HEIGHT "$1"
  • 16:9 ºñÀ²·Î ¸ÂÃß¾úÀ¸¹Ç·Î 16:10 ¿¡¼­ ³Ê¹« ¹Ù´Ú¿¡ ºÙÁö ¾ÊÀ» °ÍÀÔ´Ï´Ù. - ¼ÛÈ¿Áø

<?php

if($_SERVER['argc'] < 2) {
	echo "mplaysmi moviefile\n";
	exit;
}
if(!file_exists($_SERVER['argv'][1])) {
	echo '"'.$_SERVER['argv'][1]."\" file not found\n";
	exit;
}

$moviefile = $_SERVER['argv'][1];

while(true) {
	preg_replace_callback('/^ID_VIDEO_(WIDTH|HEIGHT)=(\d+)/m', 'size_callback', shell_exec('mplayer -vo null -ao null -identify -endpos 0 "'.$moviefile.'" | grep "^ID_VIDEO_"'));

	$theight = ceil($width * 9 / 16);
	if($height >= $theight) {
		$theight = ceil($width * 10 / 16);
	}
	$ret = system('mplayer -vf expand=-1:'.$theight.' "'.$moviefile.'"');
	if(false === $ret) {
		exit;
	}
	if(preg_match('/\(Á¾·á\)/u', $ret)) {
		exit;
	}
	$moviefile = preg_replace('/(\d+)([^\d]+)$/e', 'sprintf("%0".strlen($1)."d", $1 + 1).$2', $moviefile);
	if(!file_exists($moviefile)) {
		exit;
	}
}

function size_callback($matches)
{
	global $width, $height;
	if($matches[1] == 'WIDTH') {
		$width = $matches[2];
	} else {
		$height = $matches[2];
	}
}

?>
  • php ·Î ®½À´Ï´Ù. ¿ø·¡ 16:9 ÀÎ °æ¿ì È­¸éÀ» 16:10 À¸·Î ÇØ¼­ ÀÚ¸·À» Á¶±Ý ¹ÛÀ¸·Î »©³À´Ï´Ù. Á¤»óÁ¾·áÀΰæ¿ì¸¸ ´ÙÀ½ ÆÄÀÏÀ» Àç»ýÇÕ´Ï´Ù.


¼³Á¤ÆÄÀÏ

~/.mplayer/config
unicode=yes
#subcp=euc-kr
subcp=cp949

fontconfig=1
font=Eunjin              ## fontconfig¸¦ 1·Î ¸ÂÃß¾ú´Ù¸é fc-list ¸í·ÉÀ¸·Î ³ª¿Â ¿µ¾î ÆùÆ®¸íÀ» Àû´Â´Ù.

#fontconfg=0
#font=/usr/share/fonts/TTF/UnPilgi.ttf       ## fontconfig°¡ 0ÀÌ¸é ÆùÆ®°æ·Î¸¦ Àû¾îÁØ´Ù.

#af=volnorm     ## »ç¿îµå ³ë¸Ö¶óÀÌÁî - ¼º´ÉÀúÇϰ¡ ½ÉÇÔ.

subfont-autoscale=2  ## µ¿¿µ»óÀÇ ÇØ»óµµ¿¡ ºñ·Ê ÇÏ¿© ±ÛÀÚÀÇ Å©±â¸¦ ¸ÂÃçÁÝ´Ï´Ù (1=³ôÀÌ, 2=³ÐÀÌ, 3=´ë°¢¼±)
#subfont-outline=3      ## Å׵θ®ÀÇ µÎ²²¸¦ Á¤ÇØÁÝ´Ï´Ù.
#ffactor=1.5                ## Å׵θ® ¾à°£ Åõ¸í
Âü°í»çÀÌÆ® : [http]http://kldp.org/node/18761



ID
Password
Join
The person you rejected yesterday could make you happy, if you say yes.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2012-02-29 20:14:25
Processing time 0.0048 sec