LoginSignup
9

More than 5 years have passed since last update.

Raspberry pi2 + WebCam(Logicool C270) で音声をストリーミング

Last updated at Posted at 2015-09-09

なんだかよくわからなかったが、とりあえずできたのでメモ

PI側
avconv -v quiet -f alsa -ac 1 -ar 8000 -i hw:1 -acodec libmp3lame -f rtp rtp://192.168.31.10:1000

IPアドレスは送信先のアドレス!。これでかなり時間をくったw。

PC側
VLCでストリーミングを受け取る。
rtp://192.168.31.10:1000

【注意】

PI側
# arecord -l
**** ハードウェアデバイス CAPTURE のリスト ****
カード 1: U0x46d0x825 [USB Device 0x46d:0x825], デバイス 0: USB Audio [USB Audio]
  サブデバイス: 1/1
  サブデバイス #0: subdevice #0

この場合は、カードの値が1なのでhw:1と指定するらしい。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9