8.4. ¥Ó¥Ç¥ªºÆÀ¸

´ó¹Æ: Ross Lippert.

¥Ó¥Ç¥ªºÆÀ¸¤Ïº£¤Þ¤µ¤ËÀ®Ä¹Ãæ¤Î¿·¤·¤¤¥¢¥×¥ê¥±¡¼¥·¥ç¥óʬÌî¤Ç¤¹¡£ ¿ÉÊú¶¯¤¯¤·¤Æ¤¯¤À¤µ¤¤¡£ ²»À¼¤Î¤è¤¦¤Ë¤¹¤Ù¤Æ¤¬½çÄ´¤Ë¤¤¤¯¤È¤Ï¸Â¤ê¤Þ¤»¤ó¡£

ÀßÄê¤ò¤Ï¤¸¤á¤ëÁ°¤Ë¡¢¤¢¤Ê¤¿¤¬»ý¤Ã¤Æ¤¤¤ë¥Ó¥Ç¥ª¥«¡¼¥É¤Î¥â¥Ç¥ë¡¢ ¤½¤Î¥«¡¼¥É¤¬»ÈÍѤ·¤Æ¤¤¤ë¥Á¥Ã¥×¤ò³Îǧ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ Xorg ¤Ï¤µ¤Þ¤¶¤Þ¤Ê¥Ó¥Ç¥ª¥«¡¼¥É¤ËÂбþ¤·¤Æ¤¤¤Þ¤¹¤¬¡¢ ¥Ó¥Ç¥ªºÆÀ¸¤Ë¿½¤·Ê¬¤Î¤Ê¤¤À­Ç½¤òȯ´ø¤Ç¤­¤ë¥«¡¼¥É¤Ï¤ï¤º¤«¤Ç¤¹¡£ ¤¢¤Ê¤¿¤Î¥Ó¥Ç¥ª¥«¡¼¥É¤ÎÍøÍѤ·¤Æ¤¤¤ë X ¥µ¡¼¥Ð¤¬Âбþ¤·¤Æ¤¤¤ë³ÈÄ¥µ¡Ç½¤Î¥ê¥¹¥È¤òÆÀ¤ë¤Ë¤Ï¡¢ X11 ¤ò¼Â¹ÔÃæ¤Ë xdpyinfo(1) ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤¡£

¤µ¤Þ¤¶¤Þ¤Ê¥×¥ì¥¤¥ä¤ä¥ª¥×¥·¥ç¥ó¤ò»î¤¹¤Î¤Ë¡¢ ¥Æ¥¹¥È¥Õ¥¡¥¤¥ë¤È¤·¤Æ¾®¤µ¤Ê MPEG ¥Õ¥¡¥¤¥ë¤òÍÑ°Õ¤·¤Æ¤ª¤¯¤Î¤Ï¤è¤¤¹Í¤¨¤Ç¤¹¡£ ¤¤¤¯¤Ä¤«¤Î DVD ¥×¥ì¥¤¥ä¤Ï DVD ¥á¥Ç¥£¥¢¤ò /dev/dvd ¤È¤·¤Æ ½é´üÀßÄꤷ¤Æ¤¤¤ë¤«¡¢¥Ï¡¼¥É¥³¡¼¥Ç¥£¥ó¥°¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢ ¼¡¤Î¤è¤¦¤ËŬÀڤʥǥХ¤¥¹¤Ë¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òÄ¥¤Ã¤Æ¤ª¤¯¤ÈÊØÍø¤«¤â¤·¤ì¤Þ¤»¤ó¡£

# ln -sf /dev/acd0 /dev/dvd
# ln -sf /dev/acd0 /dev/rdvd

devfs(5) ¤Î»ÅÍͤˤè¤ê¡¢ ¤³¤Î¤è¤¦¤Ë¼êÆ°¤ÇºîÀ®¤µ¤ì¤¿¥ê¥ó¥¯¤ÏºÆµ¯Æ°¤¹¤ë¤È¾Ã¤¨¤Æ¤·¤Þ¤¤¤Þ¤¹¡£ ¥·¥¹¥Æ¥à¤Îµ¯Æ°»þ¤Ë¤³¤ì¤é¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ò¼«Æ°Åª¤ËºîÀ®¤¹¤ë¤Ë¤Ï¡¢ /etc/devfs.conf ¤Ë²¼µ­¤ÎÀßÄê¤òÄɲä·¤Þ¤¹¡£

link acd0 dvd
link acd0 rdvd

²Ã¤¨¤Æ¡¢ÆÃÊÌ¤Ê DVD-ROM µ¡Ç½¤òɬÍפȤ¹¤ë DVD ²òÆɤϡ¢ DVD ¥Ç¥Ð¥¤¥¹¤Ø¤Î½ñ¤­¹þ¤ß¸¢¸Â¤¬É¬ÍפǤ¹¡£

¶¦Í­¥á¥â¥ê X11 ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò²þÁ±¤¹¤ë¤¿¤á¤Ë¡¢ ¤¤¤¯¤Ä¤«¤Î sysctl(8) ÊÑ¿ô¤ÎÃͤòÁý¤ä¤¹¤³¤È¤¬¿ä¾©¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

kern.ipc.shmmax=67108864
kern.ipc.shmall=32768

8.4.1. ¥Ó¥Ç¥ªµ¡Ç½¤Î·èÄê

X11 ¤Ë¤ª¤¤¤Æ¥Ó¥Ç¥ªÉ½¼¨À­Ç½¤ò²þÁ±¤¹¤ëÊýË¡¤Ï¤¤¤¯¤Ä¤«¤¢¤ë¤È»×¤ï¤ì¤Þ¤¹¡£ ¤Á¤ã¤ó¤ÈÆ°ºî¤¹¤ë¤«¤É¤¦¤«¤Ï¥Ï¡¼¥É¥¦¥§¥¢¤ËÂ礭¤¯°Í¸¤·¤Æ¤¤¤Þ¤¹¡£ ²¼µ­¤ËÀâÌÀ¤·¤¿¤É¤ÎÊýË¡¤Ç¤â¡¢ ¥Ï¡¼¥É¥¦¥§¥¢¤¬ÊѤï¤ë¤ÈÉʼÁ¤¬ÊѤï¤ë¤Ç¤·¤ç¤¦¡£ Æó¤ÄÌܤˡ¢X11 ¤Ç¤Î¥Ó¥Ç¥ª¥ì¥ó¥À¥ê¥ó¥°¤ÏºÇ¶á¿¤¯¤ÎÃíÌܤò½¸¤á¤ë¥È¥Ô¥Ã¥¯¤Ç¤¹¡£ ¤½¤·¤Æ Xorg ¤Î¥Ð¡¼¥¸¥ç¥ó¤òÄɤ¦¤´¤È¤Ë¡¢Ãø¤·¤¯²þÎɤµ¤ì¤Æ¤¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£

¤è¤¯ÃΤé¤ì¤¿¥Ó¥Ç¥ª¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹¡£

  1. X11: ¶¦Í­¥á¥â¥ê¤òÍѤ¤¤¿Ä̾ï¤Î X11 ½ÐÎÏ

  2. XVideo: X11 drawable Æâ¤Ç¤Î¥Ó¥Ç¥ªºÆÀ¸¤ËÂбþ¤·¤¿ X11 ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î³ÈÄ¥µ¡Ç½

  3. SDL: Simple Directmedia Layer

  4. DGA: Direct Graphics Access

  5. SVGAlib: Äã¥ì¥Ù¥ë¥³¥ó¥½¡¼¥ë¥°¥é¥Õ¥£¥Ã¥¯¥ì¥¤¥ä

8.4.1.1. XVideo

Xorg ¤Ë¤Ï XVideo (¤Þ¤¿¤Ï Xvideo, Xv, xv) ¤È¸Æ¤Ð¤ì¤ë³ÈÄ¥µ¡Ç½¤¬¤¢¤ê¤Þ¤¹¡£ ¤³¤ì¤ÏÆÃÊ̤ʥ¢¥¯¥»¥é¥ì¡¼¥·¥ç¥ó¤Ë¤è¤Ã¤Æ drawable ¥ª¥Ö¥¸¥§¥¯¥È ¤ËľÀܥӥǥª¤òɽ¼¨¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¤³¤Î³ÈÄ¥µ¡Ç½¤Ë¤è¤Ã¤Æ¡¢ Ä㮤ʥޥ·¥ó¤Ç¤â¡¢¤È¤Æ¤â¤¹¤°¤ì¤¿ÉʼÁ¤ÎºÆÀ¸¤¬²Äǽ¤È¤Ê¤ê¤Þ¤¹¡£

¤³¤Î³ÈÄ¥µ¡Ç½¤¬Æ°ºî¤·¤Æ¤¤¤ë¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¤Ë¤Ï¡¢ xvinfo ¤ò»È¤¤¤Þ¤¹¡£

% xvinfo

°Ê²¼¤Î¤è¤¦¤Ê·ë²Ì¤¬ÆÀ¤é¤ì¤¿¤Ê¤é¤Ð¡¢¤¢¤Ê¤¿¤Î¥«¡¼¥É¤Ï XVideo ¤ËÂбþ¤·¤Æ¤¤¤Þ¤¹¡£

X-Video Extension version 2.2
screen #0
  Adaptor #0: "Savage Streams Engine"
    number of ports: 1
    port base: 43
    operations supported: PutImage
    supported visuals:
      depth 16, visualID 0x22
      depth 16, visualID 0x23
    number of attributes: 5
      "XV_COLORKEY" (range 0 to 16777215)
              client settable attribute
              client gettable attribute (current value is 2110)
      "XV_BRIGHTNESS" (range -128 to 127)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_CONTRAST" (range 0 to 255)
              client settable attribute
              client gettable attribute (current value is 128)
      "XV_SATURATION" (range 0 to 255)
              client settable attribute
              client gettable attribute (current value is 128)
      "XV_HUE" (range -180 to 180)
              client settable attribute
              client gettable attribute (current value is 0)
    maximum XvImage size: 1024 x 1024
    Number of image formats: 7
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x30323449 (I420)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x36315652 (RV16)
        guid: 52563135-0000-0000-0000-000000000000
        bits per pixel: 16
        number of planes: 1
        type: RGB (packed)
        depth: 0
        red, green, blue masks: 0x1f, 0x3e0, 0x7c00
      id: 0x35315652 (RV15)
        guid: 52563136-0000-0000-0000-000000000000
        bits per pixel: 16
        number of planes: 1
        type: RGB (packed)
        depth: 0
        red, green, blue masks: 0x1f, 0x7e0, 0xf800
      id: 0x31313259 (Y211)
        guid: 59323131-0000-0010-8000-00aa00389b71
        bits per pixel: 6
        number of planes: 3
        type: YUV (packed)
      id: 0x0
        guid: 00000000-0000-0000-0000-000000000000
        bits per pixel: 0
        number of planes: 0
        type: RGB (packed)
        depth: 1
        red, green, blue masks: 0x0, 0x0, 0x0

¥ê¥¹¥È¤Ë¤¢¤ë·Á¼° (YUV2, YUV12 ¤Ê¤É) ¤¬ XVideo ¤Î¤¹¤Ù¤Æ¤Î¼ÂÁõ¤Ç¸ºß¤¹¤ë¤È¤Ï¸Â¤ê¤Þ¤»¤ó¡£ Âбþ¤·¤Æ¤¤¤ë·Á¼°¤¬¾¯¤Ê¤¤¤¿¤á¤Ë¡¢¤¢¤ë¥×¥ì¥¤¥ä¤Ç¤Ï°­±Æ¶Á¤¬½Ð¤ë ¤«¤â¤·¤ì¤Ê¤¤¤³¤È¤Ë¤âÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

½ÐÎϤ¬°Ê²¼¤Î¤è¤¦¤Ê¾ì¹ç¡¢

X-Video Extension version 2.2
screen #0
no adaptors present

¤¢¤Ê¤¿¤Î¥«¡¼¥É¤Ï¤ª¤½¤é¤¯ XVideo ¤ËÂбþ¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç¤·¤ç¤¦¡£

¤¢¤Ê¤¿¤Î¥«¡¼¥É¤¬ XVideo ¤ËÂбþ¤·¤Æ¤¤¤Ê¤¤¤È¤·¤Æ¤â¡¢ ¤³¤Î¤³¤È¤Ï¤¢¤Ê¤¿¤Î¥Ç¥£¥¹¥×¥ì¥¤¤Ç¥Ó¥Ç¥ª¤òɽ¼¨¤¹¤ë¤Î¤Ë¡¢ ·×»»¾å¤ÎÍ×µá¤òËþ¤¿¤¹¤³¤È¤¬¤è¤êº¤Æñ¤Ë¤Ê¤ë¤À¤±¤Î¤³¤È¤Ç¤¹¡£ ¤·¤«¤·¤Ê¤¬¤é¡¢¤¢¤Ê¤¿¤Î¥Ó¥Ç¥ª¥«¡¼¥É¤ª¤è¤Ó¥×¥í¥»¥Ã¥µ¤Ë¤è¤Ã¤Æ¤Ï¡¢ ¤½¤ì¤Ç¤âËþ­¤Î¤¤¤¯À­Ç½¤¬ÆÀ¤é¤ì¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ À­Ç½¤ò¸þ¾å¤µ¤»¤ë¤Ë¤Ï 項8.4.3 ¤ò¤è¤¯Æɤà¤È¤è¤¤¤Ç¤·¤ç¤¦¡£

8.4.1.2. Simple Directmedia Layer

Simple Directmedia Layer (SDL) ¤Ï Microsoft® Windows®, BeOS ¤½¤·¤Æ UNIX® ¤Î´Ö¤Ç ¥µ¥¦¥ó¥É¤È¥°¥é¥Õ¥£¥Ã¥¯¥¹¤ò¸ú²ÌŪ¤ËÍøÍѤ·¤¿ ¥¯¥í¥¹¥×¥é¥Ã¥È¥Û¡¼¥à¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò ³«È¯¤¹¤ë¤³¤È¤òÌÜŪ¤È¤·¤¿¥ì¥¤¥ä¤Ç¤¹¡£ SDL ¥ì¥¤¥ä¤Ï¥Ï¡¼¥É¥¦¥§¥¢¤ËÂФ¹¤ëÄã¥ì¥Ù¥ë¤ÎÃê¾ÝŪ³µÇ°¤òÄ󶡤·¡¢ »þ¤Ë¤Ï X11 ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò»ÈÍѤ¹¤ë¤è¤ê¤â¸ú²ÌŪ¤Ê¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£

SDL ¤Ï devel/sdl12 ¤«¤é¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤Þ¤¹¡£

8.4.1.3. Direct Graphics Access

Direct Graphics Access ¤Ï¡¢ ¥×¥í¥°¥é¥à¤¬ X ¥µ¡¼¥Ð¤ò²ð¤»¤º ľÀܥե졼¥à¥Ð¥Ã¥Õ¥¡¤òÊѹ¹¤¹¤ë¤³¤È¤ò²Äǽ¤Ë¤¹¤ë X11 ¤Î³ÈÄ¥µ¡Ç½¤Ç¤¹¡£ ¶¦Í­¥á¥â¥ê¤ò»ÈÍѤ¹¤ë¤¿¤á¤Ë Äã¥ì¥Ù¥ë¤Î¥á¥â¥ê¥Þ¥Ã¥Ô¥ó¥°¤¬¼Â¹Ô¤Ç¤­¤ë¤³¤È¤ò´üÂÔ¤·¤Æ¤¤¤ë¤Î¤Ç¡¢ ¤³¤Îµ¡Ç½¤ò»È¤¦¥×¥í¥°¥é¥à¤Ï root ¸¢¸Â¤Ç¼Â¹Ô¤µ¤ì¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£

DGA µ¡Ç½³ÈÄ¥¤Ï dga(1) ¤Ë¤è¤Ã¤Æ¥Æ¥¹¥È¤È¥Ù¥ó¥Á¥Þ¡¼¥¯¤¬¤Ç¤­¤Þ¤¹¡£ dga ¼Â¹ÔÃæ¤Ï¥­¡¼¥Ü¡¼¥É¤ò²¡¤»¤Ð¤¤¤Ä¤Ç¤â¥Ç¥£¥¹¥×¥ì¥¤¿§¤¬Êѹ¹¤µ¤ì¤Þ¤¹¡£ Ãæ»ß¤¹¤ë¤Ë¤Ï q ¤ò²¡¤·¤Þ¤¹¡£

8.4.2. ¥Ó¥Ç¥ª¤ò°·¤¦ ports ¤ª¤è¤Ó packages

¤³¤ÎÀá¤Ç¤Ï Ports Collection ¤ÇÍøÍѲÄǽ¤Ê¡¢ ¥Ó¥Ç¥ª¤ÎºÆÀ¸¤Ë»ÈÍѤǤ­¤ë¥½¥Õ¥È¥¦¥§¥¢¤Ë¤Ä¤¤¤ÆÏÀ¤¸¤Þ¤¹¡£ ¥Ó¥Ç¥ªºÆÀ¸¤ÏÂçÊѳèȯ¤Ê¥½¥Õ¥È³«È¯Ê¬Ìî¤Ç¡¢ ¤µ¤Þ¤¶¤Þ¤Ê¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Îµ¡Ç½¤Ï¡¢ ¤³¤³¤Ç¤ÎÀâÌÀ¤«¤é¾Ê¤«¤¶¤ë¤ò¤¨¤Þ¤»¤ó¡£

¤Ï¤¸¤á¤Ë¡¢FreeBSD ¤Ç¼Â¹Ô¤Ç¤­¤ë¥Ó¥Ç¥ª¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¿¤¯¤Ï¡¢ Linux ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤È¤·¤Æ³«È¯¤µ¤ì¤¿¤È¤¤¤¦¤³¤È¤òÃΤ뤳¤È¤Ï½ÅÍפǤ¹¡£ ¤³¤ì¤é¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¿¤¯¤Ï¤Þ¤À¥Ù¡¼¥¿ÈǤÎÉʼÁ¤Ç¤¹¡£ FreeBSD ¤Ç¤³¤ì¤é¤Î¥Ó¥Ç¥ª¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò»ÈÍѤ¹¤ëºÝ¤Ë¡¢ °Ê²¼¤Î¤è¤¦¤ÊÌäÂ꤬µ¯¤³¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£

  1. ¤¢¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬¡¢ ¾¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÎºîÀ®¤·¤¿¥Õ¥¡¥¤¥ë¤òºÆÀ¸¤Ç¤­¤Ê¤¤¡£

  2. ¤¢¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬¡¢ ¼«¿È¤ÎºîÀ®¤·¤¿¥Õ¥¡¥¤¥ë¤òºÆÀ¸¤Ç¤­¤Ê¤¤¡£

  3. Æó¤Ä¤Î°Û¤Ê¤ë¥Þ¥·¥ó¤Ç¹½ÃÛ¤·¤¿Æ±¤¸¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬¡¢ Ʊ¤¸¥Õ¥¡¥¤¥ë¤òºÆÀ¸¤¹¤ëµóÆ°¤¬¤½¤ì¤¾¤ì°Û¤Ê¤ë¡£

  4. ¥¤¥á¡¼¥¸¥µ¥¤¥ºÊѹ¹¤Î¤è¤¦¤Ë¸«¤¿¤È¤³¤í¤Ç¤Ï¤¢¤ê¤Õ¤ì¤¿¥Õ¥£¥ë¥¿¤¬¡¢ ¥Ð¥°¤Î¿¤¤¥µ¥¤¥ºÊѹ¹¥ë¡¼¥Á¥ó¤Ë¤è¤Ã¤Æ¤Ò¤É¤¤¿Í¹©Êª¤òºîÀ®¤¹¤ë¡£

  5. ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬¤è¤¯¥³¥¢¥À¥ó¥×¤¹¤ë¡£

  6. ʸ½ñ¤¬ port ¤È°ì½ï¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Ê¤¤ (ʸ½ñ¤Ï web ¥µ¥¤¥È¤Ë¤¢¤Ã¤¿¤ê¡¢¤½¤Î port ¤Î work ¥Ç¥£¥ì¥¯¥È¥ê¤ÎÃæ¤Ë »Ä¤Ã¤Æ¤¤¤ë¤³¤È¤¬¤¢¤ë)¡£

¤³¤ì¤é¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¿¤¯¤Ï¤µ¤é¤Ë “Linux ¼çµÁ” ¤ò¼çÄ¥¤¹¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤¹¤Ê¤ï¤Á¡¢¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Îºî¼Ô¤¬²¾Äꤷ¤¿¡¢ Linux ¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ç¤Î¤ß¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë ¤¢¤ëɸ½à¥é¥¤¥Ö¥é¥ê¤Î»ÈÍÑÊýË¡¤ä Linux ¥«¡¼¥Í¥ë¤ÎÆÃÄê¤Îµ¡Ç½¤Ëµ¯°ø¤¹¤ëÌäÂ꤬À¸¤¸¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ɬ¤º¤·¤â port ÊݼéôÅö¼Ô¤¬¤³¤ì¤é¤ÎÌäÂê¤òÇÄ°®¤·¤Æºî¶È¤·¤Æ¤¤¤ë¤È¤Ï¸Â¤é¤º¡¢ ¼¡¤Î¤è¤¦¤ÊÌäÂ꤬ȯÀ¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£

  1. ¥×¥í¥»¥Ã¥µ¤ÎÆÃÀ­¤ò¸¡ÃΤ¹¤ë¤¿¤á¤Î /proc/cpuinfo ¤ÎÍøÍÑ

  2. ËÜÅö¤Ï¥×¥í¥°¥é¥à¤ò½ªÎ»¤µ¤»¤ë¤Ï¤º¤Ç¤¢¤ë¤Î¤Ë¡¢ Ää»ß¤µ¤»¤Æ¤·¤Þ¤¦¤è¤¦¤Ê¥¹¥ì¥Ã¥É¤Î¸íÍÑ

  3. °ìÈÌŪ¤Ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤È¤È¤â¤Ë»ÈÍѤµ¤ì¡¢¤Þ¤À FreeBSD ¤Î Ports Collection ¤Ë¼ýÏ¿¤µ¤ì¤Æ¤¤¤Ê¤¤¥½¥Õ¥È¥¦¥§¥¢¤òɬÍפȤ¹¤ë

¤³¤ì¤Þ¤Ç¡¢¤³¤ì¤é¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î³«È¯¼Ô¤Ï¡¢ °Ü¿¢¤ËɬÍפÀ¤Ã¤¿¤½¤Î¾ì¤·¤Î¤®¤Î²óÈòÊýË¡¤òºÇ¾®²½¤· ÌäÂê¤ò²ò·è¤¹¤ë¤¿¤á¤Ë port ÊݼéôÅö¼Ô¤È¶¨ÎϤ·¤Æ¤¤¤Þ¤¹¡£

8.4.2.1. MPlayer

MPlayer ¤ÏºÇ¶á³«È¯¤µ¤ì¡¢ µÞ·ã¤ËÀ®Ä¹¤·¤Ä¤Ä¤¢¤ë¥Ó¥Ç¥ª¥×¥ì¥¤¥ä¤Ç¤¹¡£ MPlayer ¥Á¡¼¥à¤ÎÌÜŪ¤Ï¡¢ Linux ¤ä¾¤Î Unix ·Ï OS ¾å¤Ç¹â®À­¤È½ÀÆðÀ­¤ò¤â¤¿¤é¤¹¤³¤È¤Ç¤¹¡£ ¤³¤Î¥×¥í¥¸¥§¥¯¥È¤Ï¡¢ ¥Á¡¼¥àÁÏÀß¼Ô¤¬Åö»þÍøÍѲÄǽ¤À¤Ã¤¿¥Ó¥Ç¥ª¥×¥ì¥¤¥ä¤Î ¤Ò¤É¤¤ºÆÀ¸Ç½ÎϤˤ¦¤ó¤¶¤ê¤·¤¿¤Î¤ò¤­¤Ã¤«¤±¤È¤·¤Æ»Ï¤Þ¤ê¤Þ¤·¤¿¡£ ¹çÍý²½¤µ¤ì¤¿À߷פΤ¿¤á¤Ë GUI ¤¬µ¾À·¤Ë¤µ¤ì¤¿¤È¸À¤¦¿Í¤â¤¤¤Þ¤¹¡£ ¤·¤«¤·¤Ê¤¬¤é¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤ª¤è¤Ó¥­¡¼¥Ü¡¼¥ÉÁàºî¤Ë °ìÅÙ´·¤ì¤ì¤ÐÈó¾ï¤Ë¤è¤¯Æ°ºî¤·¤Þ¤¹¡£

8.4.2.1.1. MPlayer ¤ÎºîÀ®

MPlayer ¤Ï multimedia/mplayer ¤Ë¤¢¤ê¤Þ¤¹¡£ MPlayer ¤Ï ¹½Ãۤκݤˤµ¤Þ¤¶¤Þ¤Ê¥Ï¡¼¥É¥¦¥§¥¢¤Î¥Á¥§¥Ã¥¯¤ò¤¹¤ë¤¿¤á¡¢ ¤¢¤ë¥·¥¹¥Æ¥à¤ÇºîÀ®¤µ¤ì¤¿¥Ð¥¤¥Ê¥ê¤Ï¡¢ Ê̤Υ·¥¹¥Æ¥à¤ÇÍøÍѤǤ­¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤·¤¿¤¬¤Ã¤Æ port ¤«¤é¹½ÃÛ¤·¡¢ ¥Ð¥¤¥Ê¥ê¥Ñ¥Ã¥±¡¼¥¸¤òÍøÍѤ·¤Ê¤¤¤³¤È¤¬½ÅÍפǤ¹¡£ ¤µ¤é¤Ë¡¢Makefile ¤ä¹½ÃۤΤϤ¸¤á¤ËÀâÌÀ¤µ¤ì¤ë¤è¤¦¤Ë¡¢ make ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç¿¤¯¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

# cd /usr/ports/multimedia/mplayer
# make
N - O - T - E

Take a careful look into the Makefile in order
to learn how to tune mplayer towards you personal preferences!
For example,
make WITH_GTK1
builds MPlayer with GTK1-GUI support.
If you want to use the GUI, you can either install
/usr/ports/multimedia/mplayer-skins
or download official skin collections from
http://www.mplayerhq.hu/homepage/dload.html

¤Û¤È¤ó¤É¤Î¥æ¡¼¥¶¤Ë¤È¤Ã¤Æ¤Ï port ¤Î¥Ç¥Õ¥©¥ë¥È¥ª¥×¥·¥ç¥ó¤Ç½½Ê¬¤Ç¤·¤ç¤¦¡£ ¤·¤«¤·¤Ê¤¬¤é¡¢XviD ¥³¡¼¥Ç¥Ã¥¯¤¬É¬Íפʤ顢 WITH_XVID ¥ª¥×¥·¥ç¥ó¤ò¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ ¤Þ¤¿¡¢¥Ç¥Õ¥©¥ë¥È¤Î DVD ¥Ç¥Ð¥¤¥¹¤ò WITH_DVD_DEVICE ¥ª¥×¥·¥ç¥ó¤ÇÄêµÁ¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹ (¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï /dev/acd0 ¤¬»ÈÍѤµ¤ì¤Þ¤¹)¡£

¤³¤Îʸ½ñ¤ò¼¹É®¤·¤Æ¤¤¤ë»þÅÀ¤Ç¤Ï¡¢ MPlayer ¤Î port ¤Ï HTML ʸ½ñ¡¢¤½¤·¤Æ mplayer ¤È mencoder ¤È¤¤¤¦Æó¤Ä¤Î¼Â¹Ô²Äǽ¤Ê¥Ð¥¤¥Ê¥ê¤ò¹½ÃÛ¤·¤Þ¤¹¡£ mencoder ¤Ï¥Ó¥Ç¥ª¤òºÆ¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤¹¤ë¤¿¤á¤Î¥Ä¡¼¥ë¤Ç¤¹¡£

MPlayer ¤Î¤¿¤á¤Î HTML ʸ½ñ¤ÏÈó¾ï¤ËÍ­±×¤Ç¤¹¡£¤³¤Î¾Ï¤ÇÉÔ­¤·¤¿ ¥Ó¥Ç¥ª¥Ï¡¼¥É¥¦¥§¥¢¤ª¤è¤Ó¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ë´Ø¤¹¤ë¾ðÊ󤬤¢¤ì¤Ð¡¢ MPlayer ¤Îʸ½ñ¤ÏÈó¾ï¤Ë¾ÜºÙ¤ÊÊ䭤ˤʤê¤Þ¤¹¡£ UNIX ¤Î¥Ó¥Ç¥ªÂбþ¾ðÊó¤òõ¤·¤Æ¤¤¤ë¤Î¤Ê¤é¡¢»þ´Ö¤ò³ä¤¤¤Æ MPlayer ¤Îʸ½ñ¤òÆɤà¤Ù¤­¤Ê¤Î¤Ï ÌÀ¤é¤«¤Ç¤¹¡£

8.4.2.1.2. MPlayer ¤Î»ÈÍÑ

MPlayer ¤ò»ÈÍѤ¹¤ë¿Í¤Ï¤¹¤Ù¤Æ¡¢ ³Æ¼«¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥êÆâ¤Ë .mplayer ¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤òÍÑ°Õ¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ ¤³¤ÎɬÍפȤʤ륵¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤¹¤ë¤¿¤á¤Ë¡¢ ¼¡¤Î¥³¥Þ¥ó¥É¤òÆþÎϤ·¤Þ¤¹¡£

% cd /usr/ports/multimedia/mplayer
% make install-user

mplayer ¤Î¥³¥Þ¥ó¥É¥ª¥×¥·¥ç¥ó¤Ï¥Þ¥Ë¥å¥¢¥ë¤Ëµ­ºÜ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¤µ¤é¤Ë¤è¤ê¾ÜºÙ¤ÊÀâÌÀ¤Ë¤Ä¤¤¤ÆÃΤꤿ¤¤¤Ê¤é¡¢HTML ʸ½ñ¤ò¤´Í÷¤¯¤À¤µ¤¤¡£ ¤³¤ÎÀá¤Ç¤Ï¡¢°ìÈÌŪ¤Ê»ÈÍÑË¡¤Ë¤Ä¤¤¤Æ¤Û¤ó¤Î¾¯¤·ÀâÌÀ¤·¤Þ¤¹¡£

¤µ¤Þ¤¶¤Þ¤Ê¥Ó¥Ç¥ª¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î°ì¤Ä¤òÍѤ¤¤Æ testfile.avi ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤òºÆÀ¸¤¹¤ë¤Ë¤Ï¡¢ -vo ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Þ¤¹¡£

% mplayer -vo xv testfile.avi
% mplayer -vo sdl testfile.avi
% mplayer -vo x11 testfile.avi
# mplayer -vo dga testfile.avi
# mplayer -vo 'sdl:dga' testfile.avi

¥Ó¥Ç¥ªºÆÀ¸¤ÎÁêÂÐŪÀ­Ç½¤Ï¿¤¯¤ÎÍ×°ø¤Ë°Í¸¤·¡¢ ¥Ï¡¼¥É¥¦¥§¥¢¤Ë±þ¤¸¤ÆÃø¤·¤¯ÊѤï¤ë¤È»×¤ï¤ì¤ë¤Î¤Ç¡¢ ¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤ò¤¹¤Ù¤Æ»î¤·¤Æ¤ß¤ë²ÁÃͤϤ¢¤ë¤Ç¤·¤ç¤¦¡£

DVD ¤òºÆÀ¸¤¹¤ë¤Ë¤Ï¡¢ testfile.avi ¤ò dvd://N -dvd-device DEVICE ¤ËÃÖ¤­´¹¤¨¤Æ¤¯¤À¤µ¤¤¡£ <N> ¤Ë¤ÏºÆÀ¸¤¹¤ë¥¿¥¤¥È¥ëÈÖ¹æ¤ò¡¢ DEVICE ¤Ï DVD-ROM ¤Î¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤ò»ØÄꤷ¤Þ¤¹¡£ ¤¿¤È¤¨¤Ð¡¢/dev/dvd ¤«¤é 2 ÈÖÌܤΥ¿¥¤¥È¥ë¤òºÆÀ¸¤¹¤ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£

# mplayer -vo xv dvd://3 -dvd-device /dev/dvd

注意: ¥Ç¥Õ¥©¥ë¥È¤Î DVD ¥Ç¥Ð¥¤¥¹¤Ï¡¢ MPlayer port ¤Î¹½ÃÛ»þ¤Ë WITH_DVD_DEVICE ¤ÇÄêµÁ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï /dev/acd0 ¤Ë¤Ê¤ê¤Þ¤¹¡£ ¾ÜºÙ¤Ï¤³¤Î port ¤Î Makefile ¤ò¤´Í÷¤¯¤À¤µ¤¤¡£

Ää»ß¡¢µÙ»ß¡¢ºÆÀ¸¤Ê¤É¤ò¤¹¤ë¤Ë¤Ï¥­¡¼¤Î³ä¤êÅö¤Æ¤òÄ´¤Ù¤Æ¤¯¤À¤µ¤¤¡£ mplayer -h ¤ò¼Â¹Ô¤·¤¿¤ê¡¢ ¥Þ¥Ë¥å¥¢¥ë¤òÆɤá¤Ð¤ï¤«¤ê¤Þ¤¹¡£

ºÆÀ¸¤Ë´Ø¤·¤Æ¤µ¤é¤Ë½ÅÍפʥª¥×¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤¹¡£ Á´²èÌ̥⡼¥É¤Ë¤¹¤ë -fs -zoom ¥ª¥×¥·¥ç¥ó¤È¡¢ À­Ç½¤ò¸þ¾å¤µ¤»¤ë -framedrop ¥ª¥×¥·¥ç¥ó¤Ç¤¹¡£

mplayer ¤Ë»ØÄꤹ¤ë¥³¥Þ¥ó¥É¥é¥¤¥ó¤¬Ä¹¤¯¤Ê¤ê¤¹¤®¤Ê¤¤¤è¤¦¤Ë¡¢ .mplayer/config ¤òºîÀ®¤·¤Æ¥Ç¥Õ¥©¥ë¥È¤Î¥ª¥×¥·¥ç¥ó¤òÀßÄê¤Ç¤­¤Þ¤¹¡£

vo=xv
fs=yes
zoom=yes

ºÇ¸å¤Ë mplayer ¤Ï DVD ¥¿¥¤¥È¥ë¤ò .vob ¥Õ¥¡¥¤¥ë¤ËÃê½Ð¤¹¤ë¤Î¤Ë»ÈÍѤǤ­¤Þ¤¹¡£ DVD ¤«¤é 2 ÈÖÌܤΥ¿¥¤¥È¥ë¤ò¥À¥ó¥×¤¹¤ë¤Ë¤Ï¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£

# mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd

½ÐÎϤµ¤ì¤¿ out.vob ¥Õ¥¡¥¤¥ë¤Ï MPEG ·Á¼°¤Ç¡¢ ¤³¤ÎÀá¤ÇÀâÌÀ¤µ¤ì¤ë¾¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÇÊÔ½¸¤Ç¤­¤Þ¤¹¡£

8.4.2.1.3. mencoder

mencoder ¤ò»È¤¦Á°¤Ë¡¢ HTML ʸ½ñ¤òÆɤó¤Ç¥ª¥×¥·¥ç¥ó¤Ë´·¤ì¤Æ¤ª¤¯¤Î¤Ï¤è¤¤¹Í¤¨¤Ç¤¹¡£ ¥Þ¥Ë¥å¥¢¥ë¤â¤¢¤ê¤Þ¤¹¤¬¡¢HTML ʸ½ñ¤Ê¤·¤Ç¤Ï¤¢¤Þ¤êÍ­ÍѤǤϤ¢¤ê¤Þ¤»¤ó¡£ ÉʼÁ¸þ¾å¡¢Äã¥Ó¥Ã¥È¥ì¡¼¥È¡¢·Á¼°ÊÑ´¹¤ò¤¹¤ëÊýË¡¤¬Ìµ¿ô¤Ë¤¢¤ê¤Þ¤¹¡£ ¤³¤ì¤é¤ÎÍ×ÁǤÎÄ´Àá¶ñ¹ç¤Ç¡¢À­Ç½¤¬Îɤ«¤Ã¤¿¤ê°­¤«¤Ã¤¿¤ê¤¹¤ë¤Ê¤É¡¢ ·ë²Ì¤Ë°ã¤¤¤¬½Ð¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¤³¤³¤Ë¤¤¤¯¤Ä¤«Îã¤ò¼¨¤·¤Þ¤¹¡£ ¤Ï¤¸¤á¤Ïñ½ã¤Ê¥Õ¥¡¥¤¥ë¤Î¥³¥Ô¡¼¤Ç¤¹¡£

% mencoder input.avi -oac copy -ovc copy -o output.avi

¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤òÉÔŬÀÚ¤ËÁȹ礻¤ë¤È¡¢ mplayer ¤Ç¤µ¤¨ºÆÀ¸¤Ç¤­¤Ê¤¤½ÐÎÏ¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Æ¤·¤Þ¤¤¤Þ¤¹¡£ ¤·¤¿¤¬¤Ã¤Æ¡¢Ã±¤Ë¥Õ¥¡¥¤¥ë¤òÃê½Ð¤·¤¿¤¤¤È¤­¤Ë¤Ï¡¢ mplayer ¤Ë -dumpfile ¥ª¥×¥·¥ç¥ó¤ò¤Ä¤±¤Þ¤¹¡£

input.avi ¤ò²»À¼¤Ë MPEG3 ¥¨¥ó¥³¡¼¥É¤ò»ÈÍѤ·¤Æ MPEG4 ¥³¡¼¥Ç¥Ã¥¯¤ËÊÑ´¹¤¹¤ë¤Ë¤Ï¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤¹ (audio/lame ¤¬É¬ÍפǤ¹)¡£

% mencoder input.avi -oac mp3lame -lameopts br=192 \
	 -ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi

¤³¤ì¤Ï mplayer ¤ä xine ¤ÇºÆÀ¸²Äǽ¤Ê½ÐÎÏ¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Þ¤¹¡£

DVD ¥¿¥¤¥È¥ë¤òľÀܺƥ¨¥ó¥³¡¼¥É¤¹¤ë¤¿¤á¤Ë¤Ï¡¢ ¾åµ­¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤Î input.avi ¤ò dvd://1 -dvd-device /dev/dvd ¤ËÃÖ¤­´¹¤¨¤Æ¡¢ root ¸¢¸Â¤Ç¼Â¹Ô¤·¤Þ¤¹¡£ ¤Ï¤¸¤á¤Îºî¶È·ë²Ì¤ËÉÔËþ¤ò¤â¤Ä¤È»×¤ï¤ì¤ë¤Î¤Ç¡¢ ¥¿¥¤¥È¥ë¤ò¥Õ¥¡¥¤¥ë¤Ë¥À¥ó¥×¤·¤Æ¡¢¥Õ¥¡¥¤¥ë¤ËÂФ·¤Æºî¶È¤¹¤ë¤³¤È¤ò ¤ª¤¹¤¹¤á¤·¤Þ¤¹¡£

8.4.2.2. xine ¥Ó¥Ç¥ª¥×¥ì¥¤¥ä

xine ¥Ó¥Ç¥ª¥×¥ì¥¤¥ä¤Ï ¥ª¡¼¥ë¥¤¥ó¥ï¥ó¤Î¥Ó¥Ç¥ª¥½¥ê¥å¡¼¥·¥ç¥ó¤Ç¤¢¤ë¤À¤±¤Ç¤Ê¤¯¡¢ ¥×¥é¥°¥¤¥ó¤Ç³ÈÄ¥¤Ç¤­¤ëºÆÍøÍѲÄǽ¤Ê´ðËܥ饤¥Ö¥é¥ê¤È ¼Â¹Ô²Äǽ¤Ê¥â¥¸¥å¡¼¥ë¤òÄ󶡤¹¤ë¹­ÈÏ°Ï¤Î¥×¥í¥¸¥§¥¯¥È¤Ç¤¹¡£ multimedia/xine ¤Î port ¤È package ¤ÎξÊý¤«¤é¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤Þ¤¹¡£

xine ¥×¥ì¥¤¥ä¤Ï³«È¯ÅÓ¾å¤Ç¤¢¤ê ¤Þ¤ÀÈó¾ï¤Ë¹Óºï¤ê¤Ç¤¹¤¬¡¢Ä̾ï¤ÎÍøÍѤˤϽ½Ê¬°ÂÄꤷ¤Æ¤¤¤Þ¤¹¡£ ¼ÂÍѾ塢xine ¤ò»ÈÍѤ¹¤ë¤Ë¤Ï¹â®¤Ê¥Ó¥Ç¥ª¥«¡¼¥É¤È¤È¤â¤Ë¹â®¤Ê CPU ¤¬¤¢¤ë¤«¡¢ ¤Þ¤¿¤Ï¥Ó¥Ç¥ª¥«¡¼¥É¤¬ XVideo ³ÈÄ¥¤ËÂбþ¤·¤Æ¤¤¤ë¤³¤È¤¬É¬ÍפǤ¹¡£ GUI ¤âÍøÍѤǤ­¤Þ¤¹¤¬¤¹¤³¤·°·¤¤¤Ë¤¯¤¤¤Ç¤¹¡£

¤³¤Îʸ½ñ¤ò¼¹É®¤·¤Æ¤¤¤ë»þÅÀ¤Ç¤Ï¡¢ xine ¤È°ì½ï¤ËÄ󶡤µ¤ì¤Æ¤¤¤ë CSS ¥¨¥ó¥³¡¼¥É¤µ¤ì¤¿ DVD ¤òºÆÀ¸¤¹¤ëÆþÎϥ⥸¥å¡¼¥ë¤Ï¤¢¤ê¤Þ¤»¤ó¡£ ¤³¤Î¥â¥¸¥å¡¼¥ë¤¬¤¢¤ë¥µ¡¼¥É¥Ñ¡¼¥Æ¥£¤Î¹½ÃÛʪ¤Ï¤¤¤¯¤Ä¤«¤¢¤ê¤Þ¤¹¤¬¡¢ ¤³¤ì¤é¤Î¤É¤ì¤â FreeBSD ¤Î Ports Collection ¤Ë¤Ï¼ýÏ¿¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£

xine ¤Ï MPlayer ¤ÈÈæ¤Ù¤Æ ÍøÍѼԤˤȤäÆ¿¤¯¤Î¤³¤È¤ò¤·¤Æ¤¯¤ì¤Þ¤¹¤¬¡¢ ¤ÈƱ»þ¤Ë¤­¤á¤ÎºÙ¤«¤¤À©¸æ¤¬¤Ç¤­¤Þ¤»¤ó¡£¤Ê¤ª¡¢ xine ¥Ó¥Ç¥ª¥×¥ì¥¤¥ä¤Ï¡¢ XVideo ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¾å¤ÇºÇÎɤÎÀ­Ç½¤òȯ´ø¤·¤Þ¤¹¡£

¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢xine ¥×¥ì¥¤¥ä¤Ï GUI ÉÕ¤­¤Çµ¯Æ°¤¹¤ë¤Ç¤·¤ç¤¦¡£ ¤½¤Î¸å¡¢¥á¥Ë¥å¡¼¤ò»ÈÍѤ·¤ÆÆÃÄê¤Î¥Õ¥¡¥¤¥ë¤ò³«¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

% xine

GUI ¤Ê¤·¤Ç¥Õ¥¡¥¤¥ë¤òľ¤Á¤ËºÆÀ¸¤¹¤ë¤Ë¤Ï¡¢ ¼¡¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Þ¤¹¡£

% xine -g -p mymovie.avi

8.4.2.3. transcode ¥æ¡¼¥Æ¥£¥ê¥Æ¥£

transcode ¤È¤¤¤¦¥½¥Õ¥È¥¦¥§¥¢¤Ï¡¢ ¥×¥ì¥¤¥ä¤Ç¤Ï¤Ê¤¯¥Ó¥Ç¥ª¤ª¤è¤Ó¥ª¡¼¥Ç¥£¥ª¥Õ¥¡¥¤¥ë¤òºÆ¥¨¥ó¥³¡¼¥É¤¹¤ë¤¿¤á¤Î¥Ä¡¼¥ë°ì¼°¤Ç¤¹¡£ transcode ¤ò»È¤¨¤Ð¡¢ stdin/stdout ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤È¤È¤â¤Ë ¥³¥Þ¥ó¥É¥é¥¤¥ó¥Ä¡¼¥ë¤òÍѤ¤¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢ ¥Ó¥Ç¥ª¥Õ¥¡¥¤¥ë¤ÎÅý¹ç¤ä¡¢²õ¤ì¤¿¥Õ¥¡¥¤¥ë¤Î½¤Éü¤¬¤Ç¤­¤Þ¤¹¡£

multimedia/transcode port ¤Ç¤Ï¡¢¿ô¿¤¯¤Î¥Ó¥ë¥É¥ª¥×¥·¥ç¥ó¤ò»ØÄê¤Ç¤­¤Þ¤¹¤¬¡¢ °Ê²¼¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤Î¤è¤¦¤Ë transcode ¤ò¹½ÃÛ¤¹¤ë¤³¤È¤ò¤ª¤¹¤¹¤á¤·¤Þ¤¹¡£

# make WITH_OPTIMIZED_CFLAGS=yes WITH_LIBA52=yes WITH_LAME=yes WITH_OGG=yes \
WITH_MJPEG=yes -DWITH_XVID=yes

¤Û¤È¤ó¤É¤Î¥æ¡¼¥¶¤Ë¤È¤Ã¤Æ¤Ï¡¢¤³¤ÎÀßÄê¤Ç½½Ê¬¤Ç¤¹¡£

transcode ¤ÎǽÎϤò¼¨¤¹Îã¤È¤·¤Æ¡¢DivX ¥Õ¥¡¥¤¥ë¤ò PAL MPEG-1 (PAL VCD) ¥Õ¥¡¥¤¥ë¤ËÊÑ´¹¤¹¤ë»ÈÍÑÎã¤ò¼¨¤·¤Þ¤¹¡£

% transcode -i input.avi -V --export_prof vcd-pal -o output_vcd
% mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa

ºîÀ®¤µ¤ì¤¿ MPEG ¥Õ¥¡¥¤¥ë¡¢ output_vcd.mpg ¤Ï¡¢ MPlayer ¤ò»È¤Ã¤ÆºÆÀ¸¤Ç¤­¤Þ¤¹¡£ ¤Þ¤¿¡¢¥Õ¥¡¥¤¥ë¤ò CD-R ¥á¥Ç¥£¥¢¤Ë½ñ¤­¹þ¤à¤³¤È¤Ç¥Ó¥Ç¥ª CD ¤âºîÀ®¤Ç¤­¤Þ¤¹¡£ ¤³¤Î¾ì¹ç¤Ë¤Ï¡¢multimedia/vcdimager ¤ª¤è¤Ó sysutils/cdrdao ¥×¥í¥°¥é¥à¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëɬÍפ¬¤¢¤ë¤Ç¤·¤ç¤¦¡£

transcode ¤Î¥Þ¥Ë¥å¥¢¥ë¤â¤¢¤ê¤Þ¤¹¤¬¡¢ transcode wiki ¤«¤é¡¢¹¹¤Ê¤ë¾ðÊó¤ä»ÈÍÑÎã¤òÆÀ¤Æ¤¯¤À¤µ¤¤¡£

8.4.3. ¤µ¤é¤Ë¿Ê¤ó¤À¾ðÊó

FreeBSD ÍѤΤµ¤Þ¤¶¤Þ¤Ê¥Ó¥Ç¥ª¥½¥Õ¥È¥¦¥§¥¢¤ÏµÞ®¤ËÀ®Ä¹¤·¤Æ¤¤¤Þ¤¹¡£ ¶á¤¤¾­Íè¡¢¤³¤³¤Ë¤¢¤²¤¿ÌäÂê¤Î¿¤¯¤¬²ò·è¤·¤Æ¤¤¤ë²ÄǽÀ­¤Ï¹â¤¤¤Ç¤·¤ç¤¦¡£ ¤½¤ì¤Þ¤Ç¤Î´Ö¡¢FreeBSD ¤Î A/V ǽÎϤòºÇÂç¸Âȯ´ø¤µ¤»¤¿¤¤¿Í¡¹¤Ï¡¢ FAQ ¤ª¤è¤Ó¥Á¥å¡¼¥È¥ê¥¢¥ë¤«¤éÆÀ¤¿Ã챤ò´ó¤»½¸¤á¤Æ¡¢ ¤ï¤º¤«¤Ê¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò»ÈÍѤ·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤Ç¤·¤ç¤¦¡£ ¤³¤ÎÀá¤Ï¡¢ÆÉ¼Ô¤Ë ¤½¤Î¤è¤¦¤ÊÉÕ²ÃŪ¤Ê¾ðÊó¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÄ󶡤¹¤ë¤¿¤á¤Ë¸ºß¤·¤Þ¤¹¡£

MPlayer ¤Îʸ½ñ ¤Ïµ»½ÑŪ¤ËÈó¾ï¤ËÍ­±×¤Ç¤¹¡£ ¤ª¤½¤é¤¯¡¢UNIX ¥Ó¥Ç¥ª¤Î¹â¿å½à¤ÊÀìÌçŪÃ챤òÆÀ¤¿¤¤¿Í¤Ï¤¹¤Ù¤Æ¡¢ ¤³¤ì¤é¤Îʸ½ñ¤òÄ´¤Ù¤ë¤Ù¤­¤Ç¤¹¡£ MPlayer ¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤ò¹ØÆɤ·¤Æ¤¤¤ë¿Í¤¿¤Á¤Ï¡¢ ʸ½ñ¤òÌÌÅݤ¬¤Ã¤ÆÆɤޤʤ¤¿Í¤Ë¤Ï¡¢¤½¤ì¤¬Ã¯¤Ç¤¢¤ìÈ¿´¶¤ò»ý¤Á¤Þ¤¹¡£ ¤½¤Î¤¿¤á¡¢Èà¤é¤Ë¥Ð¥°Êó¹ð¤ò¤¹¤ë¤È¤­¤Ë¤Ï¡¢¥Þ¥Ë¥å¥¢¥ë¤òÆɤó¤Ç¤¯¤À¤µ¤¤¡£

xine HOWTO ¤Ë¤Ï¤¹¤Ù¤Æ¤Î¥×¥ì¥¤¥ä¤Ë°ìÈÌŪ¤ÊÀ­Ç½¸þ¾å¤Ë¤Ä¤¤¤Æ¤Î¾Ï¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£

ºÇ¸å¤Ë¡¢ÆɼԤ¬»î¤ß¤ë¤«¤â¤·¤ì¤Ê¤¤ ͭ˾¤Ê¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò¤¤¤¯¤Ä¤«¤¢¤²¤Þ¤¹¡£

ËÜʸ½ñ¡¢¤ª¤è¤Ó¾¤Îʸ½ñ¤Ï ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/ ¤«¤é¥À¥¦¥ó¥í¡¼¥É¤Ç¤­¤Þ¤¹¡£

FreeBSD ¤Ë´Ø¤¹¤ë¼ÁÌ䤬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢¥É¥­¥å¥á¥ó¥È ¤òÆɤó¤À¾å¤Ç <questions@FreeBSD.org> ¤Þ¤Ç (±Ñ¸ì¤Ç) Ï¢Íí¤·¤Æ¤¯¤À¤µ¤¤¡£
ËÜʸ½ñ¤Ë´Ø¤¹¤ë¼ÁÌä¤Ë¤Ä¤¤¤Æ¤Ï¡¢<doc@FreeBSD.org> ¤Þ¤ÇÅŻҥ᡼¥ë¤ò (±Ñ¸ì¤Ç) Á÷¤Ã¤Æ¤¯¤À¤µ¤¤¡£