diff -urp /Users/mjarrell/Downloads/flashvideo/flashvideo.admin.inc /Users/mjarrell/Sites/drupal/sites/sandbox/modules/drupal-contrib/flashvideo/flashvideo.admin.inc
--- /Users/mjarrell/Downloads/flashvideo/flashvideo.admin.inc	2008-02-03 11:34:03.000000000 -0700
+++ /Users/mjarrell/Sites/drupal/sites/sandbox/modules/drupal-contrib/flashvideo/flashvideo.admin.inc	2008-11-18 16:30:15.000000000 -0700
@@ -178,7 +178,7 @@ function flashvideo_settings_form() {
          '#type' => 'textfield',
          '#title' => t('Video Import Directory.'),
          '#default_value' => flashvideo_variable_get(NULL, 'flashvideo_import', 'video_import'),
-         '#description' => t("The Video Import Directory is a directory located within your <strong>files</strong> directory dedicated specifically for video importing.  The FlashVideo Module will then scan all files within this directory and automatically add all video files to your drupal site, convert them, and move them to your output directory... automagically")
+         '#description' => t("The Video Import Directory is a directory located within your <strong>files</strong> directory dedicated specifically for video importing.  The FlashVideo Module will then scan all files within this directory and automatically add all video files to your drupal site, convert them, and move them to your output directory.")
       );
       
       $types = node_get_types();
@@ -471,6 +471,16 @@ function flashvideo_settings_form() {
       );
    }
 
+   if($node_type == 'global') {   
+      $form['ffmpeg']['flashvideo_binpath_metadata'] = array(
+         '#title' => t('flvtool2 Path'),
+         '#type' => 'textfield',
+         '#default_value' => flashvideo_variable_get(NULL, 'flashvideo_binpath_metadata', ''),
+         '#maxlength' =>  128,
+         '#description' => t('The path to the flvtool2 binary (adds metadata). Might be installed at /usr/bin/flvtool2.')
+      );
+   }
+
    $form['ffmpeg']['flashvideo_' . $node_type .'_delete'] = array(
       '#type' => 'checkbox',
       '#title' => t('Delete Original Video.'),
diff -urp /Users/mjarrell/Downloads/flashvideo/flashvideo.module /Users/mjarrell/Sites/drupal/sites/sandbox/modules/drupal-contrib/flashvideo/flashvideo.module
--- /Users/mjarrell/Downloads/flashvideo/flashvideo.module	2008-11-06 11:20:57.000000000 -0700
+++ /Users/mjarrell/Sites/drupal/sites/sandbox/modules/drupal-contrib/flashvideo/flashvideo.module	2008-11-18 16:20:17.000000000 -0700
@@ -82,7 +82,7 @@ function flashvideo_variable_get($node_t
 function flashvideo_help($section = 'admin/help#flashvideo') {
    switch ($section) {
       case 'admin/help#flashvideo':
-         $output = '<p>' . t('The FlashVideo module for Drupal 5.x is an easy to use module that expands the Upload module by allowing users to upload videos and attach those videos to any content.  Even more exciting, is that FlashVideo automatically performs the very common Flash format conversion as well as create an image thumbnail of any newly uploaded video for every cron cycle.  Once the video is in Flash format, the video can then be embedded in that node using the very simple <b>[video]</b> tag.') . '</p>';
+         $output = '<p>' . t('The FlashVideo module for Drupal 6.x is an easy to use module that expands the Upload module by allowing users to upload videos and attach those videos to any content.  Even more exciting, is that FlashVideo automatically performs the very common Flash format conversion as well as create an image thumbnail of any newly uploaded video for every cron cycle.  Once the video is in Flash format, the video can then be embedded in that node using the very simple <b>[video]</b> tag.') . '</p>';
          $output .= '<p>' . t('To enable this module for a certain node type, you must first go to the ' . l(t('FlashVideo Settings'), 'admin/settings/flashvideo') . ' and select the FlashVideo settings for any available node type in the Drupal system.  Once the FlashVideo module has been enabled for that node type, you will then notice the modified Upload form when you add new content for that node type.') . '</p>';
          $output .= '<p>' . t('Once a video has been uploaded, it will then have to wait for the next Cron cycle for the conversion to Flash format to begin.  You can manually run the cron operation by going to <b>Administer->Logs->Status Report</b> and then click on the link that says <b>run cron manually</b>.  After the video has been converted, it will then be available to any node referencing that video.  That node can then reference the video by using the <b>[video]</b> tag, and also reference the video thumbnail by providing the <b>[thumbnail]</b> tag.') . '</p>';
          $output .= '<p>' . t('Parameters for these tags are provided by using a "<b>:</b>" to indicate a new parameter is being provided.  The following format should be used for both the <b>[video]</b> and <b>[thumbnail]</b> tags.  <b>[video: param=value ]</b> where <b>param</b> is the name of the parameter being passed, and <b>value</b> is the value of the parameter.') . '</p>';
@@ -745,6 +745,9 @@ function flashvideo_get_convert_params($
    
    // Set the ffmpeg command path.
    $params['cmd_path'] = flashvideo_variable_get(NULL, 'flashvideo_binpath', '/usr/bin/ffmpeg');
+	 
+	 // Set the flvtool2 command path.
+   $params['metadata_cmd_path'] = flashvideo_variable_get(NULL, 'flashvideo_binpath_metadata', '');
    
    // Set the video command arguments.
    $params['video_args'] = flashvideo_variable_get($node_type, 'cmd', '-i @input -f flv -acodec mp3 -ar 22050 -ab 64k -ac 1 @output');
@@ -800,6 +803,7 @@ function flashvideo_get_convert_params($
  *       - output_dir   :  The output directory relative to the system files directory.
  *       - originaldir  :  The output directory to contain the original video after the conversion has been made.
  *       - cmd_path     :  The path to the ffmpeg executable.  Can be overridden with something besides ffmpeg.
+ *       - metadata_cmd_path : The path to the flvtool2 executable.
  *       - video_args   :  The command to pass to the ffmpeg executable.
  *       - thumb_args   :  The thumbnail command to pass to the ffmpeg executable.
  *       - thumbsize    :  An string spcifying the width and height of the thumbnail denoted as "WIDTH x HEIGHT".
@@ -960,7 +964,15 @@ function flashvideo_convert($file, $node
             }
             
             // Convert the video.
-            $ffmpeg_data = shell_exec($command);  
+            $ffmpeg_data = shell_exec($command);
+						
+						if(!empty($params['metadata_cmd_path'])) {
+							//$metadata_command = "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/flvtool2 -U '" . $output_path . "'";
+							$metadata_command = $params['metadata_cmd_path'] . " -U '" . $output_path . "'";
+							drupal_set_message('Metadata Command: ' . $metadata_command);
+              // Add metadata
+              shell_exec($metadata_command);
+						}
          }    
                
          // Check to make sure the new file exists.      
