Thread Subject: Saving rendered figures offscreen via ssh

Subject: Saving rendered figures offscreen via ssh

From: paul

Date: 9 Feb, 2010 08:17:02

Message: 1 of 2

Hi. I am trying to create avi movies using fairly high resolution figures rendered remotely over an ssh tunnel. Ssh -X does not work because it takes too long for the rendering to take place, and besides, what I'd really like to do is not have the figures displayed at all--I just want the final movie saved into the current directory. I've been using

F(i) = getframe(gcf)

inside a loop, and then

movie2avi(F,'moviename')

after the loop is complete. This works fine on-site (aside from tying up the display for long periods of time,) but I'd really like to perform this operation remotely in the background, or even to pipe the command to MatLab via a bash script, again in the background. I even tried using saveas() to simply save .png images that I could convert later, but the rendering appears to be too much for MatLab. Any suggestions?

Subject: Saving rendered figures offscreen via ssh

From: Oliver Woodford

Date: 9 Feb, 2010 10:17:05

Message: 2 of 2

"paul " <surface.form@yahoo.com> wrote in message <hkr5lu$9mi$1@fred.mathworks.com>...
> Hi. I am trying to create avi movies using fairly high resolution figures rendered remotely over an ssh tunnel. Ssh -X does not work because it takes too long for the rendering to take place, and besides, what I'd really like to do is not have the figures displayed at all--I just want the final movie saved into the current directory. I've been using
>
> F(i) = getframe(gcf)
>
> inside a loop, and then
>
> movie2avi(F,'moviename')
>
> after the loop is complete. This works fine on-site (aside from tying up the display for long periods of time,) but I'd really like to perform this operation remotely in the background, or even to pipe the command to MatLab via a bash script, again in the background. I even tried using saveas() to simply save .png images that I could convert later, but the rendering appears to be too much for MatLab. Any suggestions?

When you ssh in, is MATLAB running with the JVM, or just in a shell? If it's the latter then it won't work, because you can't have any figures. If it's the former then you can use print.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
offscreen paul 9 Feb, 2010 03:19:05
rendering paul 9 Feb, 2010 03:19:05
ssh paul 9 Feb, 2010 03:19:05
nodisplay paul 9 Feb, 2010 03:19:05
remote paul 9 Feb, 2010 03:19:05
save paul 9 Feb, 2010 03:19:05
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com