2011-05-07

PCA-DAV2 を Linux で使ってみる

USB 接続のキャプチャディバイス PCA-DAV2 を Linux で使用することを試みた.
映像はキャプチャできたが, 音声を取り込む方法はよく分からない.

ひとまず, dmesg の結果に

[49225.628910] em28xx #0: Here is a list of valid choices for the card= insmod option:
[49225.628913] em28xx #0:     card=0 -> Unknown EM2800 video grabber
[49225.628917] em28xx #0:     card=1 -> Unknown EM2750/28xx video grabber
[49225.628921] em28xx #0:     card=2 -> Terratec Cinergy 250 USB
[49225.628924] em28xx #0:     card=3 -> Pinnacle PCTV USB 2
[49225.628928] em28xx #0:     card=4 -> Hauppauge WinTV USB 2
[49225.628931] em28xx #0:     card=5 -> MSI VOX USB 2.0
[49225.628934] em28xx #0:     card=6 -> Terratec Cinergy 200 USB
[49225.628938] em28xx #0:     card=7 -> Leadtek Winfast USB II
[49225.628941] em28xx #0:     card=8 -> Kworld USB2800
[49225.628945] em28xx #0:     card=9 -> Pinnacle Dazzle DVC 90/100/101/107 / Kaiser Baas Video to DVD maker / Kworld DVD Maker 2
[49225.628949] em28xx #0:     card=10 -> Hauppauge WinTV HVR 900
[49225.628953] em28xx #0:     card=11 -> Terratec Hybrid XS
[49225.628956] em28xx #0:     card=12 -> Kworld PVR TV 2800 RF
[49225.628960] em28xx #0:     card=13 -> Terratec Prodigy XS
[49225.628963] em28xx #0:     card=14 -> SIIG AVTuner-PVR / Pixelview Prolink PlayTV USB 2.0
[49225.628967] em28xx #0:     card=15 -> V-Gear PocketTV
[49225.628970] em28xx #0:     card=16 -> Hauppauge WinTV HVR 950
[49225.628974] em28xx #0:     card=17 -> Pinnacle PCTV HD Pro Stick
[49225.628978] em28xx #0:     card=18 -> Hauppauge WinTV HVR 900 (R2)
[49225.628981] em28xx #0:     card=19 -> EM2860/SAA711X Reference Design
[49225.628985] em28xx #0:     card=20 -> AMD ATI TV Wonder HD 600
[49225.628988] em28xx #0:     card=21 -> eMPIA Technology, Inc. GrabBeeX+ Video Encoder
[49225.628992] em28xx #0:     card=22 -> EM2710/EM2750/EM2751 webcam grabber
[49225.628996] em28xx #0:     card=23 -> Huaqi DLCW-130
[49225.628999] em28xx #0:     card=24 -> D-Link DUB-T210 TV Tuner
[49225.629002] em28xx #0:     card=25 -> Gadmei UTV310
[49225.629006] em28xx #0:     card=26 -> Hercules Smart TV USB 2.0
[49225.629009] em28xx #0:     card=27 -> Pinnacle PCTV USB 2 (Philips FM1216ME)
[49225.629013] em28xx #0:     card=28 -> Leadtek Winfast USB II Deluxe
[49225.629017] em28xx #0:     card=29 -> EM2860/TVP5150 Reference Design
[49225.629020] em28xx #0:     card=30 -> Videology 20K14XUSB USB2.0
[49225.629024] em28xx #0:     card=31 -> Usbgear VD204v9
[49225.629027] em28xx #0:     card=32 -> Supercomp USB 2.0 TV
[49225.629030] em28xx #0:     card=33 -> Elgato Video Capture
[49225.629034] em28xx #0:     card=34 -> Terratec Cinergy A Hybrid XS
[49225.629038] em28xx #0:     card=35 -> Typhoon DVD Maker
[49225.629041] em28xx #0:     card=36 -> NetGMBH Cam
[49225.629044] em28xx #0:     card=37 -> Gadmei UTV330
[49225.629047] em28xx #0:     card=38 -> Yakumo MovieMixer
[49225.629050] em28xx #0:     card=39 -> KWorld PVRTV 300U
[49225.629054] em28xx #0:     card=40 -> Plextor ConvertX PX-TV100U
[49225.629057] em28xx #0:     card=41 -> Kworld 350 U DVB-T
[49225.629061] em28xx #0:     card=42 -> Kworld 355 U DVB-T
[49225.629064] em28xx #0:     card=43 -> Terratec Cinergy T XS
[49225.629068] em28xx #0:     card=44 -> Terratec Cinergy T XS (MT2060)
[49225.629071] em28xx #0:     card=45 -> Pinnacle PCTV DVB-T
[49225.629075] em28xx #0:     card=46 -> Compro, VideoMate U3
[49225.629078] em28xx #0:     card=47 -> KWorld DVB-T 305U
[49225.629081] em28xx #0:     card=48 -> KWorld DVB-T 310U
[49225.629085] em28xx #0:     card=49 -> MSI DigiVox A/D
[49225.629088] em28xx #0:     card=50 -> MSI DigiVox A/D II
[49225.629092] em28xx #0:     card=51 -> Terratec Hybrid XS Secam
[49225.629095] em28xx #0:     card=52 -> DNT DA2 Hybrid
[49225.629098] em28xx #0:     card=53 -> Pinnacle Hybrid Pro
[49225.629102] em28xx #0:     card=54 -> Kworld VS-DVB-T 323UR
[49225.629105] em28xx #0:     card=55 -> Terratec Cinnergy Hybrid T USB XS (em2882)
[49225.629109] em28xx #0:     card=56 -> Pinnacle Hybrid Pro (2)
[49225.629112] em28xx #0:     card=57 -> Kworld PlusTV HD Hybrid 330
[49225.629116] em28xx #0:     card=58 -> Compro VideoMate ForYou/Stereo
[49225.629119] em28xx #0:     card=59 -> (null)
[49225.629123] em28xx #0:     card=60 -> Hauppauge WinTV HVR 850
[49225.629126] em28xx #0:     card=61 -> Pixelview PlayTV Box 4 USB 2.0
[49225.629130] em28xx #0:     card=62 -> Gadmei TVR200
[49225.629133] em28xx #0:     card=63 -> Kaiomy TVnPC U2
[49225.629136] em28xx #0:     card=64 -> Easy Cap Capture DC-60
[49225.629139] em28xx #0:     card=65 -> IO-DATA GV-MVP/SZ
[49225.629143] em28xx #0:     card=66 -> Empire dual TV
[49225.629146] em28xx #0:     card=67 -> Terratec Grabby
[49225.629149] em28xx #0:     card=68 -> Terratec AV350
[49225.629153] em28xx #0:     card=69 -> KWorld ATSC 315U HDTV TV Box
[49225.629156] em28xx #0:     card=70 -> Evga inDtube
[49225.629160] em28xx #0:     card=71 -> Silvercrest Webcam 1.3mpix
[49225.629163] em28xx #0:     card=72 -> Gadmei UTV330+
[49225.629166] em28xx #0:     card=73 -> Reddo DVB-C USB TV Box
[49225.629170] em28xx #0:     card=74 -> Actionmaster/LinXcel/Digitus VC211A
[49225.629174] em28xx #0:     card=75 -> Dikom DK300
[49225.629177] em28xx #0:     card=76 -> KWorld PlusTV 340U or UB435-Q (ATSC)
[49225.629181] em28xx #0:     card=77 -> EM2874 Leadership ISDBT
が含まれていたので, EM2860/TVP5150 Reference Design だろうと当たりをつけて
rmmod em28xx
modprobe em28xx card=29
としてみました. tvtime で画像は出るようにはなったが, 音声はさらに設定が必要そうだ.

FFmpegへ入力するには, -f video4linux2でフォーマットを指定し, /dev/video0を入力にすればよい.

ffmpeg -f video4linux2 -i /dev/video0 output.mpeg
追記: 音声の入力方法は, コメント参照.

このページによると, card=40 を使ったが, 音声はクリップ (飽和する?) してキャプチャできなかったらしい.
このページによると, card=13 (Terratec Prodigy XS) を使用したらしい. 音声は試していないらしい.

1 件のコメント:

  1. alsamixer を起動して F6 を押すと, USB 2861 Device が出てくる. その番号をもとに,
    ffmpeg -f video4linux2 -i /dev/video0 -f alsa -i hw:1 output.mpeg
    とすればよい.

    返信削除