Linuxつかってみる

Linuxとivtvでテレビ。

ubuntuでTVsw

2009年02月04日 | TVsw
ubuntu8.10につい先日移行した。
で、TVswコンパイルしてみるも通らず、2ちゃんねるに恥ずかしながらデバックお願いしておいたら、
Diffをアップしてくれていたdebian使いの方が現れた。

ありがとうございます。


diff -u TVsw.orig/ch_change.cpp TVsw/ch_change.cpp
--- TVsw.orig/ch_change.cpp 2006-11-17 14:19:49.000000000 +0900
+++ TVsw/ch_change.cpp 2009-02-03 23:46:12.000000000 +0900
@@ -1,5 +1,6 @@
#include <sstream>
#include <string>
+#include <stdlib.h>
#include "func.h"
using namespace std;

diff -u TVsw.orig/form1.ui.h TVsw/form1.ui.h
--- TVsw.orig/form1.ui.h 2006-12-25 17:40:51.000000000 +0900
+++ TVsw/form1.ui.h 2009-02-04 00:27:41.000000000 +0900
@@ -13,6 +13,8 @@
#include <fstream>
#include <sstream>
#include <string>
+#include <stdlib.h>
+#include "chbutton.h"
#include "func.h"

// #include <qcolordialog.h>

diff -u TVsw.orig/vol_change.cpp TVsw/vol_change.cpp
--- TVsw.orig/vol_change.cpp 2006-12-24 00:09:07.000000000 +0900
+++ TVsw/vol_change.cpp 2009-02-03 23:44:40.000000000 +0900
@@ -1,5 +1,6 @@
#include <sstream>
#include <string>
+#include <stdlib.h>
#include "func.h"
using namespace std;



+#include <stdlib.h> はともかく、
+#include "chbutton.h" は、僕が間違って消してしまったんだろう(大汗

えっと、今挿さっているのは
I/O Data GV-MVP/RX2W
で、ubuntu8.10では/etc/modprobe.d/options に
options ivtv ntsc=j
の一行を追加しておく必要がある。


また、TVswを使うに当たって、xineは問題ないんだけど、
Raw-mode(mplayer)で使う時、音声が詰まる。
これは

aplay -f dat
の部分を
aplay -f cd

に変更が必要です。
あとv4l2-ctlが映像を映している時にはbusyとなって音声のサンプリングレートの
変更が動的にはできない模様。

なのでサンプリングレートを変更して追っかけしている部分をコメントアウトするか
削除する必要があるかもしれない。

もう一つ。添付してあるTVswrc。文字コードが変です。leafpadやemacsで・・・。
別に意図的にそうしてある訳でもなく、単なる偶然です。m(.ω.)m


>> TVsw置き場