I found a App for it in my downloads folder (which I moved to Applications) and tried via the gui to “File -> Open Network…” : But it wouldn’t recognize the stream from my Pi (info below). And while vlc was then available at the command line, it kept giving me missing plugin errors. On the Mac, at first, I tried to install it via Macports like so: $ port install vlc On the Pi, it’s easy: $ sudo apt-get install vlc It wasn’t entirely straight forward though, so these are the steps I went though: Install VLC: Thanks to this post, I was able to get the Pi cam streaming to the web, and viewable on my Mac (via the “middle” option they described). Once you record a nice video, how do you get it to your PC? Presuming you have a ssh connection, execute this from a shell on your Mac, to copy the data from the Pi, to the Mac: $ scp /path/to/destination/file/on/pcįor example: $ scp ~/macVid.mp4 Broadcast video to the Internet: Using VLC $ omxplayer -p -o hdmi myvid.mp4 Copy data from the Pi to the Mac: Then play in a window (again, this doesn’t work over VNC, need to be on a monitor connected to the Pi) or to the HDMI port: $ omxplayer myvid.mp4 I think it may come installed iwth NOOBS now(?), but if not: $ sudo apt-get install omxplayer To play video on the Pi, you need omxviewer. $ MP4Box -fps 30 -add myvid.h264 myvid.mp4 Thanks to this post, here’s how you can do it:įirst, you need to install gpac on the Pi, then run MP4Box (part of that install) to do the convert: $ sudo apt-get update To make it easily viewable by the Pi or Mac (or other PC’s) it needs to be converted. The h264 video the camera records is “raw”. Dropping the resolution down had some lag at first, then caught up after a few minutes, odd: $ raspivid -t 999999 -o -w 640 -h 480 - | nc 192.168.2.15 5001 Record raw video, convert to mp4, play: My guess is the lag is because of the full 1080p signal being broadcast. There’s a few second lag, but it worked right away. Pi shell code to start streaming vid and pipe it to netcat on port 5001, shooting it to the mac’s local ip: $ raspivid -t 999999 -o - | nc 192.168.2.15 5001 Mac shell code to start netcat listening to port 5001, and piping that to mplayer: $ nc -l 5001 | mplayer -fps 31 -cache 1024. Now, thanks to a post by spudnix from this thread, here’s how you can stream video from the Pi to your Mac: The best luck I had was to install it via macports. Need to instal mplayer on the Mac so you can access it from the command-line. You’ll find these on all the sites: $ raspistill -o image.jpgĢ : Capture a (5 second, default) video, at 1920×1080 (1080p)ģ : Capture a 10 second video (in milliseconds) Viewing a video stream from the Pi on your Mac: This is however, a bummer: To run any of the “demo” code, you need to be viewing the Pi directly over hdmi. This post explains the reasons behind it. Important note: You can’t view anything over VNC, and obviously you can’t do it via a ssh terminal. The first time setup above covers many basics.Ĭamera forum can be found here. Official documentation can be downloaded off of Github. I made one that should survive the Zombie Apocalypse out of some MicroRAX:īased on the latest installation of Rasberian via NOOBS, the hardware installed easily, and was auto-detected by the Pi. Note, I’m using a Macbook Air, so all software and commands are centric to OSX (10.8.5).įirst off, you need some sort of stand for it. This post will continue to evolve over time. There’s a lot of info on the web, so I’m going to collect what’s applicable to myself here. This post will serve to be notes to myself on how to use the dang thing. I recently picked up a camera module for the Raspberry Pi from Adafruit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |