0

`

<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

2
Contributors
3
Replies
17
Views
3 Years
Discussion Span
Last Post by hriti
0

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

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.