Page 2 of 3

Re: Question Video to image

Posted: 2010-02-01T07:02:34-07:00
by winracer
Does anyone have a thought about this?

thanks!

Re: Question Video to image

Posted: 2010-02-01T09:18:26-07:00
by fmw42
winracer wrote:Does anyone have a thought about this?

thanks!
try

convert -list format

and see if your avi is read enabled

AVI* AVI r-- Microsoft Audio/Visual Interleaved

Re: Question Video to image

Posted: 2010-02-01T11:14:14-07:00
by winracer
fmw42 wrote:
winracer wrote:Does anyone have a thought about this?

thanks!
try

convert -list format

and see if your avi is read enabled

AVI* AVI r-- Microsoft Audio/Visual Interleaved


thanks
i get this below on the
convert -list format


[6] => AVI* AVI r-- Microsoft Audio/Visual Interleaved


anythoughts?

Re: Question Video to image

Posted: 2010-02-01T16:05:41-07:00
by fmw42
try running it outside PHP and see what happens, i.e. command line.

if that fails, then post a link to your avi file. perhaps it is corrupt? otherwise, some one may be able to try it and see what might be at issue.

Re: Question Video to image

Posted: 2010-02-02T06:16:28-07:00
by winracer
fmw42 wrote:try running it outside PHP and see what happens, i.e. command line.

if that fails, then post a link to your avi file. perhaps it is corrupt? otherwise, some one may be able to try it and see what might be at issue.

thanks I can not run command line stuff. but the link is here

http://www.myfunnypets.com/30/1/cat.avi

to the cat.avi.

Re: Question Video to image

Posted: 2010-02-02T11:15:34-07:00
by fmw42
your video displays fine in Quicktime, but

convert -delay 10 cat.avi -loop 0 cat.gif
convert: no decode delegate for this image format `cat.avi' @ error/constitute.c/ReadImage/532.
convert: missing an image filename `cat.gif' @ error/convert.c/ConvertImageCommand/2922.

This tells me I don't have some needed windows delegate library to decode .avi files. I am not sure what I need for that, possibly wmf, which I did not include in my install.

my compile was set to use

--without-wmf
disable WMF support.

Perhaps a windows user can help test your file.

Re: Question Video to image

Posted: 2010-02-02T11:46:57-07:00
by winracer
fmw42 wrote:your video displays fine in Quicktime, but

convert -delay 10 cat.avi -loop 0 cat.gif
convert: no decode delegate for this image format `cat.avi' @ error/constitute.c/ReadImage/532.
convert: missing an image filename `cat.gif' @ error/convert.c/ConvertImageCommand/2922.

This tells me I don't have some needed windows delegate library to decode .avi files. I am not sure what I need for that, possibly wmf, which I did not include in my install.

my compile was set to use

--without-wmf
disable WMF support.

Perhaps a windows user can help test your file.



thanks fmw42 for the try, could be a good thought, I am running a linux server and not a windows. would this be the problem?

Re: Question Video to image

Posted: 2010-02-02T13:20:05-07:00
by fmw42
what is your ./configuration (how did you install === from binary or source). In either case you may need to 1) upgrade (what version are you on) or 2) enable wmf or some other delegate for avi files. The fact that you get not enough data, seems to me to be some error in your compile as the rest of us get no decode delegate for avi. Try upgrading IM if you are not using something close to the current IM at 6.5.9.1

Re: Question Video to image

Posted: 2010-02-02T13:55:27-07:00
by winracer
fmw42 wrote:what is your ./configuration (how did you install === from binary or source). In either case you may need to 1) upgrade (what version are you on) or 2) enable wmf or some other delegate for avi files. The fact that you get not enough data, seems to me to be some error in your compile as the rest of us get no decode delegate for avi. Try upgrading IM if you are not using something close to the current IM at 6.5.9.1
fmw42
i did not install it is pervided by my hosting company and I am version Version:
ImageMagick 6.3.9 12/10/08 Q16 http://www.imagemagick.org



I can run other converts and works fine link this one, work fine for me.

<?php
// Setup the vaiables http://www.rubblewebs.co.uk/imagemagick ... _f_66.html
$sourceFile = "-1332.jpg";
$width = "100";
$height = "100";
$destinationFile = "output.png";
// Displays the output size of the new image
$command="convert $sourceFile -resize {$width}x{$height} \( +write $destinationFile \) -format \"%wx%h\" info: ";
$output = exec("$command");
print("<b>New image size:</b>".$output."<br>");

?>


should I see if hosting company will upgrade to newer version?

thanks!

Re: Question Video to image

Posted: 2010-02-02T16:04:39-07:00
by fmw42
try

convert -list configure

and send that back. It should tell what you might have installed via your configuration file.

Re: Question Video to image

Posted: 2010-02-03T06:12:52-07:00
by winracer
fmw42 wrote:try

convert -list configure

and send that back. It should tell what you might have installed via your configuration file.
Thanks!

here is my configure files

Array
(
[0] =>
[1] => Path: /usr/lib/ImageMagick-6.3.9/config/configure.xml
[2] =>
[3] => Name Value
[4] => -------------------------------------------------------------------------------
[5] => CC gcc
[6] => CFLAGS -g -O2 -Wall -W -pthread
[7] => CONFIGURE ./configure --prefix=/usr
[8] => COPYRIGHT Copyright (C) 1999-2008 ImageMagick Studio LLC
[9] => CPPFLAGS -I/usr/include/ImageMagick
[10] => CXX g++
[11] => CXXFLAGS -g -O2 -Wall -W -pthread
[12] => DEFS -DHAVE_CONFIG_H
[13] => DELEGATES fontconfig freetype jpeg png tiff x11 xml zlib
[14] => DISTCHECK_CONFIG_FLAGS --disable-deprecate --with-quantum-depth=16 --with-djvu=no --with-umem=no --with-fontpath= --with-lqr=no
[15] => EXEC-PREFIX /usr
[16] => HOST i686-pc-linux-gnu
[17] => LDFLAGS -L/usr/lib -lfreetype
[18] => LIB_VERSION 0x639
[19] => LIB_VERSION_NUMBER 6,3,9,10
[20] => LIBS -lMagickCore -ltiff -lfreetype -ljpeg -lfontconfig -lX11 -lz -lm -lpthread
[21] => NAME ImageMagick
[22] => PCFLAGS
[23] => PREFIX /usr
[24] => QuantumDepth 16
[25] => RELEASE_DATE 12/10/08
[26] => VERSION 6.3.9
[27] => WEBSITE http://www.imagemagick.org
)
1

Re: Question Video to image

Posted: 2010-02-03T10:19:20-07:00
by fmw42
unfortunately it does not say anything about avi or wmf which may or may not be significant.

Best I can suggest is upgrade to a more current version of IM. you are at 6.3.9 and IM is at 6.5.9.1 (so you are about 200 versions behind).

Re: Question Video to image

Posted: 2010-02-03T10:22:15-07:00
by winracer
fmw42 wrote:unfortunately it does not say anything about avi or wmf which may or may not be significant.

Best I can suggest is upgrade to a more current version of IM. you are at 6.3.9 and IM is at 6.5.9.1 (so you are about 200 versions behind).

thanks I will see if my hosting company will upgrade it. thanks for your help. I will let you know

Re: Question Video to image

Posted: 2010-02-03T10:33:43-07:00
by fmw42
perhaps one of the windows users on the forum can test this. maybe their compilation includes avi or wmf

Re: Question Video to image

Posted: 2010-02-03T10:41:17-07:00
by winracer
fmw42 wrote:perhaps one of the windows users on the forum can test this. maybe their compilation includes avi or wmf
I hope one of them can.