2005年11月3日 (木曜日)

11:11:14 # Life 朝気づいたら昨晩しこんでいたmencoderのジョブがおちていて, 録画に失敗していた. 再度パッチを作成,これで改良することを祈るが,多分関係無い. 2.6.14がリリースされてから,bttv関連のパッチががんがん来ているので, おそらく誰かがメンテナンスをのっとって改変しまくっているような気がする.

下記のパッチを適用することで,自分のカードのオーディオは認識する. 動作は確認していない.

diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c
index 01d98ee..014f002 100644
--- a/sound/pci/bt87x.c
+++ b/sound/pci/bt87x.c
@@ -773,6 +773,8 @@ static struct pci_device_id snd_bt87x_id
 	BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_879, 0x0070, 0x13eb, 32000),
 	/* Viewcast Osprey 200 */
 	BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x0070, 0xff01, 44100),
+	/* I-O Data Co. GV-BCTV5/PCI */
+	BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x10FC, 0xD018, 32000),
 	{ }
 };
 MODULE_DEVICE_TABLE(pci, snd_bt87x_ids);
	  
	

mencoderを実行した際に, frameno.aviが見付からない,というエラーは毎回でていたのだろうか.

channel: 12
minutes: 30
output filename: /home/dancer/XXX/XXX/
MEncoder dev-CVS--4.0.2 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices  (Family: 8, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 9  data: 0x0 - 0x0
TV detected! ;-)
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski
 comment: first try, more to come ;-)
Selected device: BT878 video (IODATA GV-BCTV5/PC
 Tuner cap:
 Tuner rxs: MONO
 Capabilites:  video capture  video overlay  VBI capture device  tuner  read/write  streaming
 supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M; 5 = PAL-N; 6 = NTSC-JP; 7 = PAL-60;
 inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
 Current input: 0
 Current format: YUYV
v4l2: current audio mode is : STEREO
Selected channel: 12 (freq: 217.250)
v4l2: ioctl queue buffer failed: Bad address
	

xawtvは正常に動作するので,mencoderのバグかもしれないと思い, とりあえずアップグレード. marillatレポジトリの 1.0-pre7cvs20050716-0.1 を1.0-pre7cvs20051102-0.0 にあげる. 同じようなエラーが出て,録画ができない.困った.

channel: 12
minutes: 1
output filename: /tmp/aaaa.avi
MEncoder dev-CVS--4.0.2 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon 64 Newcastle,Winchester,San Diego,Venice; Sempron Palermo (Family: 15, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

success: format: 9  data: 0x0 - 0x0
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski
 comment: first try, more to come ;-)
Selected device: BT878 video (IODATA GV-BCTV5/PC
 Tuner cap:
 Tuner rxs: MONO STEREO
 Capabilites:  video capture  video overlay  VBI capture device  tuner  read/write  streaming
 supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M; 5 = PAL-N; 6 = NTSC-JP; 7 = PAL-60;
 inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
 Current input: 0
 Current format: YUV420
v4l2: current audio mode is : STEREO
Selected channel: 12 (freq: 217.250)
v4l2: ioctl queue buffer failed: Bad address
v4l2: 0 frames successfully processed, 0 frames dropped.
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.

	

2.6.14-rc5 (git Linux dancer64 2.6.14-rc5dancer-gb563c9b1 #1 Thu Oct 27 12:55:05 JST 2005 x86_64 GNU/Linux) の場合には,問題がなく実行できる.

channel: 12
minutes: 1
output filename: /tmp/aaaa.avi
MEncoder dev-CVS--4.0.2 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon 64 Newcastle,Winchester,San Diego,Venice; Sempron Palermo (Family: 15, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

success: format: 9  data: 0x0 - 0x0
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
 comment: first try, more to come ;-)
Selected device: BT878 video (IODATA GV-BCTV5/PC
 Tuner cap:
 Tuner rxs: MONO
 Capabilites:  video capture  video overlay  VBI capture device  tuner  read/write  streaming
 supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M; 5 = PAL-N; 6 = NTSC-JP; 7 = PAL-60;
 inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
 Current input: 0
 Current format: YUYV
v4l2: current audio mode is : STEREO
Selected channel: 12 (freq: 217.250)
[V] filefmt:9  fourcc:0x30323449  size:320x240  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 320 x 240 (preferred colorspace: Planar I420)
VDec: using Planar I420 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (320x240 fourcc=34504d46 [FMP4])
High quality encoding selected (non real time)!
Selected video codec: [rawi420] vfm: raw (RAW I420)
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
MP3 audio selected
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Forcing audio preload to 0, max pts correction to 0
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:   4.1s    124f ( 0%)  26fps Trem:   0min   0mb  A-V:0.000 [1082:128]
Flushing video frames


CBR audio: 16000 bytes/sec, 384 bytes/block

Writing AVI index...
Fixing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream: 1082.222 kbit/s  (135277 B/s)  size: 559707 bytes  4.137 secs  124 frames

Audio stream:  128.000 kbit/s  (16000 B/s)  size: 66048 bytes  4.128 secs
v4l2: 139 frames successfully processed, 0 frames dropped.

	

11:19:18 # Life pbuilder のアップロード. 0.137. いくつかの修正とドキュメントのアップデート.

12:22:40 # Life aliothでcvs commitのあとにメーリングリストでdiffを送信するようにするには どうしたらよいか. 既存では,/usr/bin/cvs-mailcommitとsyncmailの両方が使われているようだ. commitinfo にDEFAULT /usr/bin/cvs-mailcommit --mailto メールアドレス --from 送信元 --diff --full --root %r --dir %p %{sVv}と書くらしい. 1.12 以降のCVSでは仕様が変わったらしく, --root と --dir が必要になった.

13:37:54 # Life OracleをDebian-amd64にインストールする. Faheem Mithaがこの苦しみに挑戦しているらしい. バイナリしか配布されていないアプリケーションをDebianにインストールするのは結構難しい. 特に,Debianのamd64ポートはbiarchではなく,pure64ポートなため, 64bitを中心に構築されている. Oracleのバイナリはほとんどの部分が32-bitで構成されているらしい. そのため,32-bitのライブラリを多数要求してきて,Debianではなかなかインストールしにくい という状況だ. 64-bitと32-bitの話題については,先日のgotomさんの発表に詳しい. Debianで,Oracleを使えないのはそれなりに痛い. しかし,いままでも正式にサポートされていたか,と聞かれるとさらに痛い. そこ,つつかないで...

Junichi Uekawa

$Id: dancer-diary.el,v 1.89 2005/05/12 11:19:14 dancer Exp $