HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/seekya.com/DEAD/beta/manage/createadmin1.php
<?php
session_start();
include("../includes/connect.php"); 
include("../includes/func.php");?>
<?//Image
			extension_loaded('ffmpeg') or die("ffmpeg extension not loaded\n");
			$frame = $_GET["frame"];
			
			//$mov = new ffmpeg_movie("/home/riotvid/public_html/videodir/".$_GET["video_code"].".wmv");
			$mov = new ffmpeg_movie("http://media2.big-boys.com/content/wdmal.wmv");
			$img = sprintf("%s/".$_GET["video_code"].".png","/home/riotvid/public_html/videoimages/", $frame);
			$timevideo = $mov->getDuration();
			
			$ff_frame = $mov->getFrame($frame);
			$timevideo = $mov->getDuration();
			if ($ff_frame) {
				$gd_image = $ff_frame->toGDImage();
				if ($gd_image) {
					imagepng($gd_image, $img);
					//imagedestroy($gd_image);
					// generate md5 of file (NOTE: different versions of ffmpeg may produce different
					// md5 hashes since resampling has been changed slightly due to a fix. Need to
					// use EXPECTREX to test for both md5 possibilities.
					//printf("ffmpeg getFrame(): md5 = %s\n", md5(file_get_contents($img)));
			//        unlink($img);
				}
			}
			
			
			//$sql="update video_master set video_time='".$timevideo."' where video_code='".$_GET["video_code"]."'";
			//mysql_query($sql);


$frame=$_GET["frame"]+1;
?>
<img src="http://www.riotvideo.com/videoimages/<?=$_GET["video_code"]?>.png?time=<?=genpasswordnum(3);?>">
<br>
<font size=2>
<a href="createadmin.php?video_code=<?php echo($_GET["video_code"]); ?>&frame=<?=$frame;?>"><font size=1 color=blue>Create Thumbnail of Next Frame</a>
</font>
<?php

printf("<br>Appx. Time of  this movie are :<b> %0.2f\n", $mov->getDuration());
echo "</b><br>";

echo "You can also change frame number in URL to create thumbnail of that frame.";
?>