Videos Preview images store!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Videos Preview images store!

    Recently i created One site.
    In this site iam using images for videos with ffmpeg Support.

    But That images preview showing Only in HighEnd Mobiles Like N73, Opera, UcWeb and PC.

    Preview Not showing normal mobile browsers. Thats why i try to modify script. But Not success.

    Just i need one help. Storing that ffmpeg image in one folder as filename.jpg
    iam giving that code also. please can anyone modify this.

    PHP Code:
    <?php
    $file 
    $_GET['file'];
    $frame 10;
    $mov = new ffmpeg_movie($file);
    $w $mov->GetFrameWidth();
    $h $mov->GetFrameHeight();
    $ff_frame $mov->getFrame($frame);
    if (
    $ff_frame) {
        
    $gd_image $ff_frame->toGDImage();
        if (
    $gd_image) {
    $des_img imagecreatetruecolor(4040);


    $s_img $gd_image;
    imagecopyresampled($des_img$s_img00004040$w$h);
    imagegif($des_img);
    imagedestroy($des_img);
    imagedestroy($s_img);
        }
    }
    ?>
    Last edited by murali; 30.10.12, 04:27.

    #2
    have you tried using a header?*
    header("Content-type: image/jpeg");

    Comment

    Working...
    X