`

<form action="v1.php" method="post" enctype="multipart/form-data">
    <!--<input type="hidden" name="MAX_FILE_SIZE" value="500000" />  -->
    <input type="file" id="file" name="file" /> 
    <input type="submit" id="submit" name="submit" value="Upload File" />  
</form> 
<?php 
if(isset($_POST['submit']))
{
    $ffmpeg = "D:\\xampp\\ffmpeg"; //path of ffmpeg.exe file    
    $videoFile = $_FILES['file']['tmp_name'];
    $imageFile = "D:\\xampp\\ffmpeg\1.jpg"; //output file name
    $size = "100x50";
    $getFromSecond = 5;
    $cmd =" $ffmpeg -i $videoFile -an -ss $getFromSecond -s $size $imageFile";
        if(!shell_exec($cmd))
        {
            echo "created";
        }
        else
        {
            echo "error";
        } 
 }
?>

`

this is my code...it shows msg of created..but thumbnail is not generated...
please help me out

what is the use of vcodec???
i m doing it for the first time
please tell me why we use vcodec??

is there any other way to generate thumbnail from video???

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.