Example #1
0
					hwd_vs_ConverterTools::writeLog($file_contents);

					$output.= "<div class=\"abortbox\"><h2>File ".$n." of ".$count." Aborted!</h2></div>";

					$n = $n + 1;
					continue;

				}
				chmod($path_new_mp4, 0755);

			}

		   /******************************************
			* FLASH META DATA MANIPULATION (INSERT onMetaData TAG)
			**/
			$InjectMetaData = hwd_vs_InjectMetaData::inject($path_new_flv);

			$output.= $InjectMetaData[4];

			if ($InjectMetaData[0] == 0) {
				$file_contents = '['.date('Y-m-d H:i:s').'] [ Meta Injection Failed ] INPUT: '.$InjectMetaData[2].' OUTPUT: '.$InjectMetaData[3];
				hwd_vs_ConverterTools::writeLog($file_contents);
			}

		   /******************************************
			* GET VIDEO LENGTH
			**/
			$ExtractDuration = hwd_vs_ExtractDuration::extract($path_new_flv, hwd_vs_ConverterTools::processOutput($ConvertVideo[3]));

			$output.= $ExtractDuration[3];
Example #2
0
   /**
	* start converter
	*/
	function ajaxReinsertMetaFLV()
	{
		global $limit, $limitstart;
  		$db =& JFactory::getDBO();

		$video_id = Jrequest::getInt( 'cid', '' );

        $db->SetQuery( 'SELECT video_id FROM #__hwdvidsvideos WHERE id = '.$video_id );
        $video_id = $db->loadResult();

		include_once(JPATH_SITE."/components/com_hwdvideoshare/converters/__ConversionTools.php");
		include_once(JPATH_SITE."/components/com_hwdvideoshare/converters/__InjectMetaData.php");

		$path_new_flv = JPATH_SITE."/hwdvideos/uploads/".$video_id.".flv";
		$filename_ext = '';

		$InjectMetaData = hwd_vs_InjectMetaData::inject($path_new_flv);

		print $InjectMetaData[4];

		exit;
	}