Skip to content
This repository was archived by the owner on May 27, 2020. It is now read-only.

Transferring data

Michael Hirsch, Ph.D edited this page Sep 19, 2019 · 4 revisions

Although the video data is ultimately processed on the Pi, to retrieve the video data files for your report and work with prototype code, it's useful to be able to access the video data files you may save as part of your code debugging.

Video playback

We've been seeing this semester that VLC and Windows Video Player may not be able to playback the .h264 videos from the Pi. So far we've found that using ffplay, which is part of ffMpeg does work to playback the videos from the PiCamera. For MacOS, the ffplay binary is downloaded by itself, or if you have Homebrew via brew install ffmpeg. You do not compile ffmpeg, just download the binary executables if you need to playback your video on your laptop.

Send/receive files with Pi via SCP

SCP uses SSH to copy files between computers. MacOS, Windows and Linux laptops have SCP built into the factory operating system.

The SCP syntax is like:

recursively copy all files from a remote directory to my laptop

scp -r host:directory .

copy files from the Pi to laptop

Assuming the data was stored on the Pi under ~/data

scp -r [email protected]:~/data .

copy files from laptop to Pi

Assuming the filename is foo.zip

scp foo.zip [email protected]:

Clone this wiki locally