วันอังคารที่ 5 ตุลาคม พ.ศ. 2553

Video: Component video

Definition of: component video


A video color format that maintains the three traditional TV video signals (YUV) in three separate channels. Component video provides a sharper image than composite video and S-video. See YUV, composite video and S-video.


Analog Component Video

With regard to TVs, DVD players, cable boxes, receivers and related consumer A/V equipment, component video generally refers to "analog" component video. The connection comprises three separate cables identified as Y, Pb and Pr (see YPbPr). Component video cables often come as five-wire sets: the three video and two more for left and right analog audio.

Digital Component Video

Component video may also refer to "digital" component video (YCbCr), which is the norm for videotape formats such as MiniDV, DV and Digital Betacam. The connection uses one cable, typically FireWire or SDI, and is natively supported by many nonlinear video editing programs (NLEs). Digital component video is also carried over HDMI cables, but to avoid confusion, the term "digital" is used to refer to HDMI signals, not "digital component." See YCbCr and chroma subsampling.

RGB: Digital or Analog

Sometimes, component video refers to RGB signals rather than YUV. It may refer to "digital" RGB, which is the native graphics format in the computer, and it is supported by all nonlinear video editing programs (NLEs).

Component video may also refer to "analog" RGB, especially with regard to a three-cable RGB attachment to a studio monitor or high-end video camera. See YUV.

Video:Color Space: YCbCr

Definition of: YCbCr


One of two primary color spaces used to represent digital component video (the other is RGB). The difference between YCbCr and RGB is that YCbCr represents color as brightness and two color difference signals, while RGB represents color as red, green and blue. In YCbCr, the Y is the brightness (luma), Cb is blue minus luma (B-Y) and Cr is red minus luma (R-Y). See component video.



YCbCr Is Digital

MPEG compression, which is used in DVDs, digital TV and Video CDs, is coded in YCbCr, and digital camcorders (MiniDV, DV, Digital Betacam, etc.) output YCbCr over a digital link such as FireWire or SDI. The ITU-R BT.601 international standard for digital video defines both YCbCr and RGB color spaces. See chroma subsampling.



YPbPr Is Analog

YPbPr is the analog counterpart of YCbCr. It uses three cables for connection, whereas YCbCr uses only a single cable (see YPbPr). See YUV, YUV/RGB conversion formulas and ITU-R BT.601.

Video:Color space: YPbPr Advantages

YPbPr Advantages

YPbPr is a color space encoding scheme that was developed to save on cable bandwidth requirements while separating the signal enough to provide a quality image. S-Video and composite video mix the signals together by means of electronic multiplexing, however, more often than not the signal is degraded at the display end as the display is not 100% able to separate the signals. It is possible for their multiplexed counterparts to interfere with each other (see Dot crawl). Signals that use YPbPr, like component video, offer enough separation of the signals that no multiplexing is needed, so the quality of the extracted image is generally near identical to the signal before encoding. Though not necessarily an advantage to YPbPr, component video which uses YPbPr was the only one out of the other two common analog cable standards (composite and s-video) to be able to transfer non-interlaced video and at the same time able to transfer resolutions higher than 480i/p.



Definition of: YPbPr


The designation for analog component video signals. The "Y," "Pb" and "Pr" are sets of three inputs or outputs on better video equipment and TVs. The three cables used in a YPbPr connection represent higher quality than the single-wire composite cable commonly used to hook up video equipment, because the brightness and color components of the signal are maintained separately. The YPbPr signals are derived from the red, green and blue (RGB) colors captured by a scanner or digital camera, and RGB is converted into brightness and two color difference signals (B-Y and R-Y) for TV/video. See component video.

YPbPr and YCbCr

YPbPr component video is the analog counterpart of digital component video, which is YCbCr. Whereas YPbPr uses three cables between video equipment, YCbCr uses a single cable. See Y (B-Y) (R-Y), YCbCr, YUV, YUV/RGB conversion formulas and color space.

http://www.pcmag.com/encyclopedia_term/0,2542,t=YPbPr&i=55163,00.asp

วันอาทิตย์ที่ 3 ตุลาคม พ.ศ. 2553

FreeBSD: Install jdk16 on FreeBSD81

# cd /usr/ports/java/jdk16
# make build-depends-list

# make fetch-recursive

Port ไม่สามารถที่จะดาวน์โหลด Java อัตโนมัติ เนื่องจากต้องมีการยอมรับใน Term and Condition ในการที่จะใช้งาน Java จึงต้องดาวน์โหลดเอง ไปเก็บไว้ที่ /usr/ports/distfiles

# cd /usr/ports/distfiles
#fetch http://www.badcode.net/tzupdater-1_3_29-2010f.zip
# fetch ftp://www.kuzbass.ru/pub/freebsd/mix/bsd-jdk16-patches-4.tar.bz2
# fetch http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar
# fetch http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar
# fetch http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar

ไฟล์ ที่เหลืออื่นๆให้ ports ดาวน์โหลดให้เอง
# cd /usr/ports/java/jdk16
# make install clean

ระหว่าง ติดตั้ง
ตอบ yes เพื่อยอมรับ license

วันอาทิตย์ที่ 5 กันยายน พ.ศ. 2553

การ Upgrade FreeBSD ports โดยโปรแกรม CVSUP

การ Upgrade FreeBSD ports  โดยโปรแกรม CVSUP (current version system update)

ขั้นตอน


1. ติดตั้งโปรแกรม

# cd /usr/ports/net/cvsup-without-gui
# make install clean


   จะดาวน์โหลดไฟล์และติดตั้ง ประมาณ30 นาที
    cvsup-16.1h_4
    ezm33-1.2.1         10 MB


2. กำหนด server ที่จะไปดาวโหลดไฟล์สำหรับ upgrade

# cp /usr/share/examples/cvsup/ports-supfile  /root
# ee /root/ports-supfile

*default host=cvsup.tw.freebsd.org      

*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix

กด control+c
: exit


3. การ upgrade ports

# cvsup -g -L 2 ports-supfile

FreeBSD ports/pkg command

Ports :
http://www.freebsd.org/doc/handbook/ports-using.html

# cd /usr/ports/www/apache22
# less Makefile               ; aplication info
# make instal                  ; install pakages
# make clean                  ; delete complie files
# make install && make clean
# make install clean         ; install and delete complie files
# make fetch                  ; load all files before install
# make search name=apache              ; search  apache port

# make build-depends-list                   ;
# make run-depends-list                     ;
# make fetch-recursive





Package :

# less pkg-descr

# pkg_info | less                ; installed pakages
# pkg_version -v               ; verify installed pakages version
# ll /var/db/pkg


# pkg_add -r kde              ; install kde pakage
# rehash                            ; regenerates system's cached

วันเสาร์ที่ 4 กันยายน พ.ศ. 2553

FreeBSD: How to install and configure a FreeBSD 8 Desktop with Xorg and KDE?

http://rhyous.com/2009/12/18/how-to-install-and-configure-a-freebsd-8-desktop-with-xorg-and-kde/

วันศุกร์ที่ 20 สิงหาคม พ.ศ. 2553

FreeBSD: mount cdrom

 ตรวจสอบดูว่า ระบบตรวจสอบอุปกรณ์ อะไรพบบ้าง
# dmesg

acd0: CDRW at ata1-master UDMA33
ums0: on usbus1
rl0: port 0xdc00-0xdcff mem 0xdfdfff00-0xdfdfffff irq 17 at device 10.0 on pci3
fdc0: port 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2 on acpi0
ad0: 152627MB at ata0-master UDMA100


# mkdir /mnt/cdrom
# mount /dev/acd0 /mnt/cdrom

วันเสาร์ที่ 31 กรกฎาคม พ.ศ. 2553

CentOS 5.5 ติดตั้ง ไทยฟอนท์

ดาวน์โหลดฟอนท์

# wget ftp://linux.thai.net/pub/ThaiLinux/software/thai-ttf/thai-ttf-0.4.9.tar.gz

แตกไฟล์
# tar xvfz thai-ttf-0.4.9.tar.gz

เข้าไปที่ไดเรคทอรี
# cd thai-ttf-0.4.9

สร้างไดเรคทอรี่
# mkdir /usr/share/fonts/thai-ttf

คัดลอกฟอนท์ไปที่ไดเรคทอรี่ที่สร้างไว้
# cp . /usr/share/fonts/thai-ttf/

เพิ่มรายการฟอนท์ไทย เข้าไปในระบบ
# chkfontpath -a /usr/share/fonts/thai-ttf

ตรวจสอบฟอนท์ในระบบ
#chkfontpath -l

Restart เครื่อง
# shutdown -r now