This is a read-only mirror of pymolwiki.org

Difference between revisions of "MovieSchool 6"

From PyMOL Wiki
Jump to navigation Jump to search
 
m (7 revisions)
 
(3 intermediate revisions by 3 users not shown)
Line 11: Line 11:
 
'''mpeg''': This needs a bit of work. The following instructions work with trunk (1.2r2pre). Compile pymol trunk.  
 
'''mpeg''': This needs a bit of work. The following instructions work with trunk (1.2r2pre). Compile pymol trunk.  
  
checkout freemol from  
+
Checkout [http://freemol.org freemol] source from  
 
<source lang="bash">
 
<source lang="bash">
 
svn co svn://bioinformatics.org/svnroot/freemol/trunk freemol-trunk
 
svn co svn://bioinformatics.org/svnroot/freemol/trunk freemol-trunk
 
</source>
 
</source>
This creates a directory called freemol-trunk
+
This creates a directory called '''freemol-trunk'''.
Inside this is a directory called freemol
+
Inside '''freemol-trunk''' is a directory called '''freemol'''.
Now you need to setenv (or export) a variable called FREEMOL pointing to the above folder)
+
Now you need to setenv (or export) a variable called FREEMOL pointing to the above folder - '''freemol''').
 +
In TCSH and related C-shells:
 +
<source lang="text">
 +
setenv FREEMOL /my/long/path/to/freemol-trunk/freemol
 +
cd freemol-trunk/src/mpeg_encode
 +
</source>
 +
or in bash:
 +
<source lang="bash">
 +
export FREEMOL=/my/long/path/to/freemol-trunk/freemol
 +
cd freemol-trunk/src/mpeg_encode
 +
</source>
 +
 
 +
And then
 
<source lang="bash">
 
<source lang="bash">
setenv /my/long/path/to/freemol-trunk/freemol
 
 
cd freemol-trunk/src/mpeg_encode
 
cd freemol-trunk/src/mpeg_encode
 
</source>
 
</source>
(Ignore all other directories inside source. These were unnecessary, at least for me. No need make install).
+
(Ignore all other directories inside directory '''src'''. These were unnecessary, at least for me.)
 
<source lang="bash">
 
<source lang="bash">
 
./configure
 
./configure
 
make
 
make
 +
make install
 
</source>
 
</source>
 
Add these two lines
 
Add these two lines
Line 32: Line 44:
 
export FREEMOL
 
export FREEMOL
 
</source>
 
</source>
to your pymol script. Launch pymol and '''Save Movie as MPEG''' should work now. No need of any complicated codecs.
+
to your pymol script (''i.e.'' /sw/bin/pymol). Launch pymol and '''Save Movie as MPEG''' should work now. No need of any complicated codecs.
  
 
'''mpng''': You can still use the good old [[mpng]] option to save all your frames to disk.  You can then compile them into a MPEG (see below).
 
'''mpng''': You can still use the good old [[mpng]] option to save all your frames to disk.  You can then compile them into a MPEG (see below).

Latest revision as of 02:00, 28 March 2014

Exporting your Movie

This wiki already has lots of information on how to convert your PyMOL movie to another format. Check out those pages.

Once you've setup your movie as in any of the previous examples, you have a couple options for making a movie.

Export from PyMOL: Newer PyMOLs support

  • File→Save Movie As→MPEG
  • File→Save Movie As→PNG Images

from the menu.

mpeg: This needs a bit of work. The following instructions work with trunk (1.2r2pre). Compile pymol trunk.

Checkout freemol source from

svn co svn://bioinformatics.org/svnroot/freemol/trunk freemol-trunk

This creates a directory called freemol-trunk. Inside freemol-trunk is a directory called freemol. Now you need to setenv (or export) a variable called FREEMOL pointing to the above folder - freemol). In TCSH and related C-shells:

setenv FREEMOL /my/long/path/to/freemol-trunk/freemol
cd freemol-trunk/src/mpeg_encode

or in bash:

export FREEMOL=/my/long/path/to/freemol-trunk/freemol
cd freemol-trunk/src/mpeg_encode

And then

cd freemol-trunk/src/mpeg_encode

(Ignore all other directories inside directory src. These were unnecessary, at least for me.)

./configure
make
make install

Add these two lines

FREEMOL=/my/long/path/to/freemol-trunk/freemol
export FREEMOL

to your pymol script (i.e. /sw/bin/pymol). Launch pymol and Save Movie as MPEG should work now. No need of any complicated codecs.

mpng: You can still use the good old mpng option to save all your frames to disk. You can then compile them into a MPEG (see below).

Old Style: One of the older scripting styles was to make minor changes and dump PNGs. This is essentially obviated with PyMOL's new movie-making functionality. The old style was to simply call cmd.png every time you made a scene change.

Hints:

  • Movie not ray traced? Make sure you set ray_trace_frames to 1.

Codecs

See Software_Codecs for information on how to stitch together movies from PNGs and optimize them for great crisp-looking movies.


← Previous Lesson

Back to Start