<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" />  
    $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";
            echo "created";
            echo "error";


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

Recommended Answers

All 3 Replies

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.