Difference between revisions of "User:Opensource Obscure/GLC"

From Second Life Wiki
Jump to navigation Jump to search
(glc-secondlife-machinima-recording instructions. created, still incomplete)
 
m (expanded)
Line 16: Line 16:
GLC runs in background from the moment you start your Second Life viewer. I created a simple Bash script to manage this. Ask me how to do this if the following instructions aren't clear.
GLC runs in background from the moment you start your Second Life viewer. I created a simple Bash script to manage this. Ask me how to do this if the following instructions aren't clear.


The script includes a single line that runs GLC with some options, included where to save the recording files and how to call them. It also includes the complete path to the viewer to be runned, with its additional parameters.
The Bash script is a text file (see below) which I make executable. I name it "slviewer" and I put it in /usr/bin/ directory so I can simply type 'slviewer' from the command line to run the viewer. I actually create custom icons that I put in my Application menu, where I write 'slviewer' the "Command:" field.
 
The script is basically a single command, that runs GLC with some options, included where to save the recording files and how to call them. It also includes the complete path to the viewer to be runned, with its additional parameters.
   
   
  glc-capture --fps=15 --resize=1.0 --disable-audio --out=/PATH/TO/YOUR/VIDEO/DIRECTORY/SL-%year%-%month%-%day%-%hour%-%min%-%sec%.glc /PATH/TO/YOUR/SECONDLIFE/VIEWER --set AllowMultipleViewers TRUE --set Language it
  #!/bin/bash
/usr/bin/glc-capture \
--fps=15 --resize=1.0 --disable-audio \
--out=/PATH/TO/YOUR/VIDEOS/SL-%year%-%month%-%day%-%hour%-%min%-%sec%.glc \
/PATH/TO/YOUR/SECONDLIFE/VIEWER \
--set AllowMultipleViewers TRUE --set Language it \


Notes:
Notes:
* 15 FPS may appear low, but the videos I create with these settings [[youtube.com/user/OpensourceObscure look smooth enough]]. I think that by limiting the GLC recording framerate, I also limit the overall system load, so that more resources are available to the SL viewer. ''(is this clear?)''
* 15 FPS may appear low, but the videos I create with these settings [[youtube.com/user/OpensourceObscure look smooth enough]]. I think that by limiting the GLC recording framerate, I also limit the overall system load, so that more resources are available to the SL viewer. ''(is this clear?)''
* yes, the "--resize" option is redundant when set to 1.0. I think resizing adds computing load on the system, so I avoid to do it when recording. I use to set my SL viewer window size to 1280x720, which is an ideal size for digital videos. I suggest you to do the same if you don't know what you're doing. If you use this option, know that 0.5 is said to be more resource efficient than other values. You can always resize your recording later.
* yes, the "--resize" option is redundant when set to 1.0, but I add it for clarity. On-the-fly resizing adds computing load on the system, so I avoid to do it when recording. I use to set my SL viewer window size to 1280x720 pixels, which is an ideal size for digital videos. I suggest you to do the same if you don't know what you're doing. You can always resize your recording later as needed. If you use this option, know that 0.5 is said to be more resource efficient than other values.  
* I don't need to record my audio. You may want to remove the "--disable-audio" GLC option if there are interesting sounds in the scene you're going to record, or if Voice is being used. If not, I'd suggest you to disable audio recording; you may add a good soundtrack later (I do this directly on YouTube, after the upload, thanks to its AudioSwap feature; Nine Inch Nails ftw).
* I don't need to record my audio. You may want to remove the "--disable-audio" GLC option if there are interesting sounds in the Second Life scene you're going to record, or if Voice is being used. If not, I'd suggest you to disable audio recording in order to spare system resources. You may add a good soundtrack later (I do this directly on YouTube, after the upload, thanks to its AudioSwap feature; Nine Inch Nails ftw).
* Be sure to replace the two "/PATH/TO/YOUR" occurrences with appropriate paths in your local filesystem
* Be sure to replace the two "/PATH/TO/YOUR" occurrences with appropriate paths in your local filesystem
== Performances and video smoothness ==
As you can see, I always try to limit the system load everywhere I can. The underlying rationale is that this allows more room to raise graphical features in the Second Life viewer, while keeping a decent framerate. For the same reason, I disable some viewers features if I don't need when recording, like Media, Voice and rendering of Water and Trees. I also close all the other applications running in my system like (web browser, media players, etc.).

Revision as of 10:14, 12 March 2011

reference websites

system-wide installation

  • run glc-build.sh as root
  • answer "/usr" when asked for installation location

how to use GLC

GLC doesn't have a graphical user interface: it uses CTRL F8 and CTRL F9 shortcuts. Be sure these shortcuts are available on your system, eg they aren't already in use. GLC will stard recording when you press CTRL F8. Same shortcut to stop recording. Press CTRL F8 again to resume recording: this way the new footage will be added to the first one. If instead you want to create additional separate recording files, use CTRL F9.

GLC and Second Life

GLC runs in background from the moment you start your Second Life viewer. I created a simple Bash script to manage this. Ask me how to do this if the following instructions aren't clear.

The Bash script is a text file (see below) which I make executable. I name it "slviewer" and I put it in /usr/bin/ directory so I can simply type 'slviewer' from the command line to run the viewer. I actually create custom icons that I put in my Application menu, where I write 'slviewer' the "Command:" field.

The script is basically a single command, that runs GLC with some options, included where to save the recording files and how to call them. It also includes the complete path to the viewer to be runned, with its additional parameters.

#!/bin/bash

/usr/bin/glc-capture \
--fps=15 --resize=1.0 --disable-audio \
--out=/PATH/TO/YOUR/VIDEOS/SL-%year%-%month%-%day%-%hour%-%min%-%sec%.glc \
/PATH/TO/YOUR/SECONDLIFE/VIEWER \
--set AllowMultipleViewers TRUE --set Language it \

Notes:

  • 15 FPS may appear low, but the videos I create with these settings youtube.com/user/OpensourceObscure look smooth enough. I think that by limiting the GLC recording framerate, I also limit the overall system load, so that more resources are available to the SL viewer. (is this clear?)
  • yes, the "--resize" option is redundant when set to 1.0, but I add it for clarity. On-the-fly resizing adds computing load on the system, so I avoid to do it when recording. I use to set my SL viewer window size to 1280x720 pixels, which is an ideal size for digital videos. I suggest you to do the same if you don't know what you're doing. You can always resize your recording later as needed. If you use this option, know that 0.5 is said to be more resource efficient than other values.
  • I don't need to record my audio. You may want to remove the "--disable-audio" GLC option if there are interesting sounds in the Second Life scene you're going to record, or if Voice is being used. If not, I'd suggest you to disable audio recording in order to spare system resources. You may add a good soundtrack later (I do this directly on YouTube, after the upload, thanks to its AudioSwap feature; Nine Inch Nails ftw).
  • Be sure to replace the two "/PATH/TO/YOUR" occurrences with appropriate paths in your local filesystem

Performances and video smoothness

As you can see, I always try to limit the system load everywhere I can. The underlying rationale is that this allows more room to raise graphical features in the Second Life viewer, while keeping a decent framerate. For the same reason, I disable some viewers features if I don't need when recording, like Media, Voice and rendering of Water and Trees. I also close all the other applications running in my system like (web browser, media players, etc.).