Friday, October 16, 2009

Combining separate m2v and wav into a single mpg

When you export MPEG2-DVD in Adobe Premiere, you might wind up with separate m2v and wav files instead of one nice tidy mpeg file that you can upload to an online video sharing site. Here's a freeware way to combine those files:

  1. Download the latest mplayer distributable for your CPU from http://tirnanog.fate.jp/mirror/mplayer/. You'll need a heavy-duty unzip program like WinRAR to open the .7z file. Extract to the folder where your video and audio file is.
  2. Open up a command prompt and type the following command:
    mencoder source.m2v -audiofile source.wav -oac copy -ovc lavc -o output.mpg
    where source.m2v is your source video file, source.wav is your source audio file, and output.mpg is what you want your new merged mpg file to be named.
You may have to fiddle with the -oac and -ovc codec options depending on how you output your video in your editor software. Useful options are:
-oac:
  • copy (Leave codec as is)
  • pcm
  • mp3lame (Lame mp3 encoder)
  • lavc (libavcodec)
-ovc:
  • copy (Leave codec as is)
  • raw (uncompressed)
  • nuv (nuppel)
  • lavc (libavcodec)
  • qtvideo (QuickTime)
  • xvid (XviD)
  • x264 (H.264)

Thursday, October 15, 2009

Installing PEAR on Windows

go-pear.bat is no longer included with the PHP Windows installer, so you have to do things manually.

  1. Download the go-pear file locally and run from command line with "php go-pear" (or whatever you named the file).
  2. Run the PEAR_ENV registry file generated during installation.
  3. pear and pecl commands should work fine from command line now.

Wednesday, October 14, 2009

Ruby Gems Behind Proxy

Command line switches for Ruby Gems don't seem to work in the latest release. Running the following before you run the gem command on Windows seems to work:

SET HTTP_PROXY=http://%USER%:%PASSWORD%@%SERVER%:%PORT%