Convert an OGM (or MKV) file to a Movie DVD

Audio Visual 1 Comment

dvddiscConverting OGM to DVD

  1. Run OGMDemuxer on the .ogm file.
    • This will generate an .avi file and one or more .ogg audio files.
  2. Use SubRip to convert to .srt file if the subtitles come as a .idx and .sub file which contains more than one language.
    • Select VOB, open IFO file, select the .idx file, select English.
  3. Run Xilisoft Video to Audio Converter.
    • Convert all .ogg audio files to .ac3 audio files.
  4. Run TMPGEnc to convert the .avi to .m2v.
    • Select size of the resulting video say 2000MB if we want to put two to each DVD.
    • Not sure about chapters… may want to generate a VOB for the chapter info.
  5. Run DVDLab Pro to combine everything into a DVD.
    • You can manually add the chapters (every 5 min) like so:

      Chapter 1 = 00:00:00:00
      Chapter 2 = 00:05:00:00
      Chapter 3 = 00:10:00:00
      Chapter 4 = 00:15:00:00
      Chapter 5 = 00:20:00:00
      Chapter 6 = 00:25:00:00
      Chapter 7 = 00:30:00:00
      Chapter 8 = 00:35:00:00
      Chapter 9 = 00:40:00:00
      Chapter 10 = 00:45:00:00

  6. If we get a DVD image larger than 4.7GB (such as when using DVDLab Pro to combine two DVDs), use CloneDVD to resize it.

Converting OGM to DVD using Nero Vision

If TMPGEnc doesn’t work (cannot process the .AVI file), then use Nero Vision. Nero Vision will also detect and generate chapters. Replace step #4 with the following:

  1. Use Nero Vision to detect chapters and convert AVI to DVD image.
    • Use Chapter-X-tractor to pull out the chapter timings from the .IFO file.
    • You can import the VTS_01_1.VOB into DVDLab Pro.
    • DVDLab Pro will generate the corresponding .mpv and .ac3 files.

Converting MKV to DVD

  1. Use MKVExtractGUI on the .mkv file.
    • This will generate an .avi video file, a .srt subtitle file, and one or more .ac3 audio files.
  2. Continue with step #4 above.
1 Comment

Getting S-Video Output Working

Audio Visual No Comments


  1. Plug the S-Video cable from the computer to the TV. Turn on the TV before turning on the computer.
  2. Minimize all programs (or close them).
  3. Right-click on the background desktop image and select Properties.
  4. Select the Settings tab.
  5. You should see two monitors displayed with numbers 1 and 2. Monitor #2 is the S-Video connection to the TV. If you don’t see two monitors, then do the following:
    • Click on the Advance button.
    • Look for a tab that has a small icon on it and the name of your video card; for example, Geforce 5200. Open that tab.
    • Near the bottom, you will see a checkbox called Force TV detection. Check it.
    • You will get a popup with a Restart Now button.
    • Click on the Restart Now button. The computer will restart. Go back to step #1.
  6. Right-click on the #2 square and select Attached
  7. Make sure that Extend my Windows desktop onto this monitor is selected at the bottom.
  8. Then click on Apply.
  9. Click on OK to close the dialog box.
  10. Use Internet Explorer to go to youtube.
  11. Drag the Internet Explorer window to the right past the edge of the monitor. You will see the Internet Explorer window appear on the TV.
  12. Double-click on the youtube movie or resize IE to make the picture bigger on the TV screen.

Steps #4-8 can be seen in this video.

No Comments

Convert a Movie DVD to MPEG4 File

Audio Visual No Comments

There appears to be a lot of free one stop shop for tools to convert a movie DVD into an MPEG4 file.

The way I did the conversion was the following:

  1. Install Xvid which comes with encoder. (Or DivX Pro, which is not free.)
  2. Install Fhg Radium MP3 codec for encoding the audio stream into 128bps, 44khz mp3 stereo stream.
  3. Smartripper – for ripping the DVD to hard drive in raw format.
  4. Xmpeg – for converting raw format into DivX using the Xvid video encoder and Radium mp3 audio encoder.

You may want to check out the other tools… might be simpler than the method which I used.

No Comments

Setting Up a MySQL, Apache, and PHP Development Environment

Windows Development No Comments

Installing Apache and PHP

  1. Install Apache HTTP Server
    • If you don’t install it as a windows service, you can control it using the command line:
      • Start Apache: Run httpd.exe to start the server
      • Stop Apache: Hit CTRL-C in the httpd.exe console window to stop it
  2. Install PHP
    • add php install path to Windows path environment variable
    • copy php.ini-recommended to php.ini
    • edit php.ini to set the doc_root parameter and enable mysql support:
      doc_root = "c:\apache\htdocs"
      extension_dir = "c:\php\ext"
  3. Config Apache to call PHP as a SAPI module
    • Edit “c:\apache\conf\httpd.conf” to include the following:
      # Add index.php as a recognized directory index file
      DirectoryIndex index.html index.php

      # Load PHP 5 as SAPI module
      LoadModule php5_module "c:/php/php5apache2_2.dll"

      # Add mime type for PHP files
      AddType application/x-httpd-php .php

      # Configure the path to php.ini (you can insert this at the end of the file)
      PHPIniDir "c:/php"

Installing mySQL

  1. Install mySQL
    • If you don’t install mysql server as a Windows service, you can use the command line:
      (Start mysql)
      mysqld --standalone --console

      (Stop mysql)
      mysqladmin -uroot -p shutdown
  2. Install phpMyAdmin into Apache htdocs directory
    • copy to
    • In, set the value for the ‘blowfish_secret’ to anything
    • When logging into phpMyAdmin using the browser, input the mysql “root” user and default blank password.

Installing IlohaMail

  1. Download IlohaMail and unzip it
  2. Copy the “IlohaMail” subdirectory in the archive into Apache htdocs directory
    • Use phpMyAdmin to create a database and import the “MySQL/sql” file to create tables
    • Edit “conf.php” to change to a mySQL based storage:
      $backend = "DB";
    • Edit “db_conf.php” to set the database access:
      $DB_PASSWORD="user password";
      $DB_NAME="database name";
No Comments