Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am capturing an image using gstreamer:

gst-launch-0.10 v4l2src ! ffmpegcolorspace ! pngenc ! filesink location=$date.png

I am then scping the file to a remote server:

scp $date.png remote:pics

What I would like to do is skip the file on the local filesystem step. Can I do something like

gst-launch-0.10 v4l2src ! ffmpegcolorspace ! pngenc | ssh remote "cat > pics/$date.png"
share|improve this question
up vote 1 down vote accepted

I am reading that

cat file | ssh uid@remotehost 'cat > /full/path/file'

should do what you need (replace cat file with your plumbing), but I am not sure how much of a hack is it (how will it perform on decently sized streams.

Alternative is to somehow mount the remote point - sshfs, cifs, nfs and then no magic is necessary.

share|improve this answer
The trick is getting the file contents to come out on stdout (thay is what I don't know, this is more of a gstreamer question than a how does ssh work question). The sshfs idea has merit though, that should be easy enough to setup – Chas. Owens Sep 24 '10 at 17:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.