ここの記事を参考に。
http://www.designspark.com/jpn/blog/jpn-raspberry-pi-camera-module-setup
$ brew install mplayer $ nc -l 5001 | mplayer -fps 31 -cache 1024 -
あとifconfigでIPアドレスを確認しておく。
Raspberry piで以下を入力するとクライアントに動画が送信される。
$ raspivid -t 999999 -o - | nc [insert the IP address of the client] 5001
Mac book airでは固まってしまった。もっと強いクライアントで試してみるか。
$ nc -l 5001 | mplayer -fps 31 -cache 1024 - Creating config file: /Users/shohei/.mplayer/config MPlayer 1.1-4.2.1 (C) 2000-2012 MPlayer Team Can't init Apple Remote. Playing -. Reading from stdin... Cache fill: 14.21% (149048 bytes) libavformat version 54.6.101 (internal) Cache empty, consider increasing -cache and/or -cache-min. [performance issue] H264-ES file format detected. Load subtitles in ./ Cache not responding! [performance issue] Cache not responding! [performance issue] ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 54.23.100 (internal) Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== Audio: no sound FPS forced to be 31.000 (ftime: 0.032). Starting playback... Unsupported PixelFormat 61 Unsupported PixelFormat 53 Unsupported PixelFormat 81 Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] Movie-Aspect is undefined - no prescaling applied. [swscaler @ 0x10276eeb0]BICUBIC scaler, from yuv420p to yuyv422 using MMX2 VO: [corevideo] 1920x1080 => 1920x1080 Packed YUY2 [ASPECT] Warning: No suitable new res found! [ASPECT] Warning: No suitable new res found! [ASPECT] Warning: No suitable new res found! Fontconfig warning: ignoring utf-8: not a valid region tag V: 0.0 14/ 14 ??% ??% ??,?% 0 0 2% Cache empty, consider increasing -cache and/or -cache-min. [performance issue] ^C MPlayer interrupted by signal 2 in module: video_read_frame MPlayer interrupted by signal 2 in module: enable_cache V: 0.0 14/ 14 ??% ??% ??,?% 0 0 0% [ASPECT] Warning: No suitable new res found! Exiting... (Quit)