bttv 설치가이드...

orangecrs의 이미지

?~@ 사용하는 TV카드를 리눅스에서 사용하기 위해 여기 저기 몇개의 문서가 올라와 있습니다. 한데 설명데로 했는데 안되는 경우 혹은 설명중 몇가지 빠진부분 때문에 안되시는 분을 위해 몇자적습니다.

사셈홈페이지(www.sasem.com)의 geun sick , lim(invain@orgio.net )님의 글을 참조합니다.

컴사양은
CPU ; P4-1.4(423)
Ram; RDRAM 256(pc800)
VGA; ati radeon VE DDR 32
TVcard; Little On Air TV
Sound; SB Live value 2
OS; slackware 9.0
kernerl 2.4.21
XFree 4.3.0
gnome 2.2
glib 2.3.1
gcc 3.2.2
에서 테스트했습니다.

필요한 파일은

bttv-0.7.65.tar.gz (http://www.strusel007.de/linux/xawtv)
xawtv_3.46.tar.gz (http://www.strusel007.de/linux/bttv/)

입니다.
커널소스(over 2.4.2)에 포함된 bttv도 잘작동된다고 하셨지만 저같은 경우은 안되더군요 그래서 다운받았습니다.

먼저 커널 컴파일합니다.

----------------------------------------------------
Character devices --->
I2C support --->
[M] I2C support
[M] I2C bit-banging interfaces
[M] I2C device interface
Multimedia devices --->
[*] Video For Linux
Video For Linux --->
[*] V4L information in proc filesystem
[M] BT848 Video For Linux
Sound --->
[M] Sound card support - 모듈로 설치하세요. 저만 그런지 모르겠습니다만
사운드 모듈 뛰울때 에러납니다.
[M] TV card(bt848) mixer support - msp3400.o 부분입니다.
-----------------------------------------------------------
위에 보시면 Little Onair TV카드는 msp3400 관련보듈이 필요가 없습니다.
내부버스를 사용하는 카드일경우에는 필요하구요 직접 라인으로 사운드카드에 연결하는경우는 필요없습니다. 잘모르시면 모듈로 체크해두시구요.
웨에 빠진거중하나로(kernel 2.4.x)

Sound --->
[ ] bt878 audio dma

부분이 있을건데 이 부분은 반드시 언체크 합니다. (나중에 사운드 믹서랑 충돌합니다.)
이대로 커널컴파일하시구요.

bttv 를 설치합니다.

# cd bttv-0.7.65
# make
# make install
# ./MAKEDEV --> 장치파일들를 생성해줍니다.

xawtv 또한 설치를 합니다.

# cd xawtv-3.46
# ./configure --prefix=/usr/local/xawtv
# make
# make install

이제 부팅시 모듈을 설정해주어야겠지요.

----------------------------------------------------
# vi /etc/modules.conf

OnAir TV경우

#########[ On Air TV Card Setting ]##########################################
alias char-major-81 videodev # Video Capture interface
alias char-major-81-0 bttv # Fram grabber(bt848) Driver
options bttv card=43 radio=1 # 43=On Air TV Number
options tuner type=9 # Tunner(Alphus NTSC) Driver
options msp3400 mixer=1 # msp3400.o TV Sound Moudle

#########[ On Air TV2 AND Little On Air Tv Card Setting ]####################
#alias char-major-81 videodev # video capture interface
#alias char-major-81-0 bttv # Frame grabber(bt848) Driver
#post-install bttv modprobe -k msp3400 # Sound Processor(msp3400) Driver
#pre-install bttv modprobe -k tuner type=2 # Tunner(Philps NTSC) Driver
#options bttv card=43 radio=1 # 43=Little On Air tv Number

-----------------------------------------------------------------------------------
위는 geun sick , lim(invain@orgio.net )님의 권장이구요
저같은 경우는 msp3400.o 을 설치하지 않았기때문에...
아래는 제설정파일입니다.

---------------------------------------
alias char-major-81 videodev
alias char-major-81-0 bttv
pre-install bttv modprobe -k tuner type=2
options bttv card=43 radio=1
-----------------------------------------

그외 온에어티비 사용자가 아니시라면 bttv소스에 CARDLIST 를 읽어보시고 자신의 카드를 확인하시고 또 tuner type 도 확인하신후 적당히 설정합니다.

이제 설정은 끝났구요 잘설치되었는지 보실려면 리부팅후 dmesg로 확인합니다.
-------------------------------------------------------
............
i2c-core.o: driver i2c TV tuner driver registered.
bttv: driver version 0.7.104 loaded
bttv: using 4 buffers with 2080k (8320k total) for capture
bttv: Host bridge is Intel Corp. 82850 850 (Tehama) Chipset Host Bridge (MCH)
bttv: Bt8xx card found (0).
PCI: Found IRQ 10 for device 02:0c.0
PCI: Sharing IRQ 10 with 00:1f.3
PCI: Sharing IRQ 10 with 02:0c.1
bttv0: Bt878 (rev 17) at 02:0c.0, irq: 10, latency: 32, mmio: 0xf6afe000
bttv0: using: BT878(Little OnAir TV) [card=43,insmod option]
i2c-dev.o: Registered 'bt848 #0' as minor 0
................
---------------------------------------------------------------
위와 같은 메세지가 나왔다면 제대로 인식이 된겁니다. 안되었다면 ^^;;;

이제 X에서 xawtv를 실행합니다.
#/usr/local/xawtv/bin/xawtv &

여기서 안되는 경우가 몇가지가 있는데
첫번째로 /dev/video 를 못찾는경우

#ln -s /dev/video0 /dev/video

을 해보시구요 그래도 안되시면 위에 있는 모듈설정파일을 다시한번 확인합니다.
두번째로 X Sever가 DGA를 지원하지않는다고 나올때...

이경우는 일단 실행은 됩니다만 오버래이모드를 사용할수 없습니다.
xawtv에서 시커먼 화면만나온다면 설정창여시고(마우스 우클릭하시면) capture를 grabdispaly로 바꾸시면 화면이 나오긴합니다만 다른작업시 시청이 곤란합니다.

#vi /etc/X11/XF86Config (각자의 배포판에 맞게)

에서
----------------------------------------------------------------------------
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection

Load "extmod"
-----------------------------------------------------------------------------
을 추가 합니다. 보통 ' Load "extmod" ' 부분이 많이 빠져있더라구요.

X 를 재실행후 xawtv를 다시 실행합니다.
화면이 잘 나온다면 xawtv를 설정합니다. 홈디렉토리에 .xawtv 를 생성후
자신의 설정을 적어넣습니다.
저의 경우는
-----------------------------------------------

[global]
freqtab=us-cable
mixer=line
capture=overlay
[default]
source=Television
norm=ntsc

----------------------------------------
이구요 채널 세팅도 할수 있는데 케이블 TV를 보기땜에 괜한고생을 할필요가 없어 설정을 안했습니다. UHF안테나를 쓰시는분은

freqtab=us-bcast 로 바꾸시고

[MBC] ---> 여기서부터 []은 임의로 적어도됩니다.
channel=9 ---> 방송 channel를 적어주면 됩니다.
key=F1 ---> 기능키입니다.
[KBS]
channel=11
key=F2

이런식으로 적어넣으시면 됩니다.
그러면 아래와 같은 화면이 ~~~

http://myhome.naver.com/orangecrs/lphoto/cs.jpg

링크여신후 새로고침하면 그림 나옵니다. 네이버에서 인용방지를...

Forums: 

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.