Videos Preview images store!

Started on the old forum in August 2009 · view the original in the archive · old links redirect here

#teluguwap #wap

1 reply · 518 views · started 17 years ago · 1 min read

2 participants
murali Junior · 20 posts #1

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
$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(40, 40);

$s_img = $gd_image;
imagecopyresampled($des_img, $s_img, 0, 0, 0, 0, 40, 40, $w, $h);
imagegif($des_img);
imagedestroy($des_img);
imagedestroy($s_img);
    }
}
?> 
something else Fellow · 2,296 posts #2

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

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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