Archive

Archive for September, 2009

Avisynth Note – Insert a Logo/Picture Before the Actual Video

September 12th, 2009 No comments

See the following code snippet:

# load the actual video
video = AVISource("X:/stuff/episode.avi")
 
# make a logo video from a picture
logo = ImageSource("X:/stuff/logo.jpg", end=200).ConvertTOYV12().AssumeFPS(video)
# add blank audio to the logo video
logo = AudioDub(logo, BlankClip(video, length=200))
 
# Splice the logo video and the actual video together
logo ++ video

Gvim – Set Window Width and Height

September 10th, 2009 No comments

The width and the height of the gvim window can be changed using set command. Let’s add these commands to the _vimrc file.

  • Click “Edit” -> “Startup Settings“. The _vimrc file will be opened in the gvim window.
  • Add the following commands to the end of the file:

    " Set the width and the height of the gvim window.
    "
    set columns=120
    set lines=60
  • Save the _vimrc file and quit gvim.
  • Restart gvim to see if window width and height have changed.
Categories: Tips and Tricks Tags: , ,

Gvim – Save Settings for Font and Color Scheme

September 9th, 2009 No comments

Gvim is the GUI of the popular text editor vim. You can change the color scheme and the font of the gvim window from “Edit” menu. However, in order for gvim to remember your settings, you have to edit the configuration file _vimrc, which is usually located in the installation directory of vim.

Here are the steps to save settings for the font and the color scheme of the gvim window:

  • Click “Edit” -> “Startup Settings“. The _vimrc file will be opened in the gvim window.
  • Add the following commands to the end of the file:

    " Set the color scheme. Change 'darkblue' to the name of your scheme.
    "
    color darkblue
     
    " Set the font. Change 'Courier_New' to your favorite font.
    "
    set guifont=Courier_New:h10
  • Save the _vimrc file and quit gvim.
  • Restart gvim to check if the settings have been saved.
Categories: Tips and Tricks Tags: , ,

Make High Definition Videos for Youtube

September 6th, 2009 No comments

I recorded Saturday’s football game between Notre Dame and Nevada. Then I did some editing, resizing, and transcoding and uploaded it to Youtube. This is my first attempt to make high definition videos for Youtube. The result turned out to be very nice -:)