Newbies For FFMPEG!!

Started on the old forum in March 2011 · view the original in the archive · old links redirect here

2 replies · 653 views · started 15 years ago · 1 min read

2 participants
subzero Super moderator Fellow · 3,954 posts #1

Here is a code for you to get image from a video

Most users that hosted with me and only 1 compliant about it

Here mate test this out on your hosting 😉

As i said start learning to code son other coding is crap lol

<?php

$video = 'movie.3gp';

$filename = "$video.jpg";
if (file_exists($filename)) {
        make("$video");
}else{
        $fh = fopen("$video.jpg", "w");
        if($fh==false) die("unable to create file");
        fputs ($fh, 1);
        fclose ($fh);

        make("$video");
}

function make($video){

// where ffmpeg is located
$ffmpeg = '/usr/local/bin/ffmpeg';

//where to save the image
$image = "$video.jpg";

//time to take screenshot at
$interval = 5;

//screenshot size
$size = '640x480';

//ffmpeg command
$cmd = "$ffmpeg -i $video -deinterlace -an -ss $interval -f mjpeg -t 1 -r 1 -y -s $size $image 2>&1";
$return = `$cmd`;

echo $return;

}
?>

Thank me Or Else !!

You will be frozen!

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Jervy Senior · 250 posts #2

Is ffmpeg enabled in my server?

subzero Super moderator Fellow · 3,954 posts #3

No sorry but you can try it lmao

Added after 20 minutes:

have you ever tryed

<?php phpinfo(); ?>

Or look at Host4u.com.au - Shared Hosting or http://247hosting.in/hosting.php

Added after 8 minutes:

Jervy

Any help or On topic about our services please use this Official Support/Sales Forums - Index

Make sure you do not post any private cards or paypal email as we will delete it but mostly i will as im only staff to check the forums sean is in billing and support ticket and sue in both but i do check the forum alot ....

So if we fixed your problem others will know the error and they can be fixed as well 😉

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close