Page 1 of 1

how do i export jpg from wmv?

Posted: 2009-07-16T14:38:49-07:00
by BringItAroundTown
I have read that I *should be able to export a jpg from a wmv using convert video.wmv stills-%d.jpg.
When i first tried this i got a error saying: convert: no decode delegate for this image format.
After someone said i should add a entry to coder.xml of <coder magick="WMV" name="MPEG"/>

After i added that i stopped getting the error but it just sits there forever.
Nothing ever happenes.
So is there please a way i can configure or update my ImageMagick to export a thumb from a wmv. Thanks.

Re: export jpg from wmv

Posted: 2009-07-17T12:41:05-07:00
by BringItAroundTown
Is there any reason why no one is even reading this?
Is there more info I can provide that will help get my question answered?

Re: how do i export jpg from wmv?

Posted: 2009-07-17T15:13:46-07:00
by fmw42
It is not that no one is reading this. But likely we do not know the answer. I can give you some tips, but I have never used wmf.

I believe that you may need to install the delegate library (libwmf) for it and possibly enable it in your configuration.

see
http://www.imagemagick.org/download/delegates/
http://www.imagemagick.org/script/advan ... lation.php

Re: how do i export jpg from wmv?

Posted: 2009-07-17T18:06:24-07:00
by BringItAroundTown
I believe i have the package for wmf. My question was regarding the WMV format though.
I wasn't aware those two were related.

when i run identify -list format, wmf is listed in there. wmv is not. :(

Re: how do i export jpg from wmv?

Posted: 2009-07-18T08:44:41-07:00
by fmw42
what do you get from

convert -list configure

see line starting with DELEGATES. That tells you what IM actually finds in its configuration.

The list you are looking at only says what is compatible with IM.

Re: how do i export jpg from wmv?

Posted: 2009-07-20T09:39:05-07:00
by BringItAroundTown
this is what gets returned for delegates when i ran convert -list configure
DELEGATES bzlib djvu fontconfig freetype gvc jpeg jp2 lcms openexr png rsvg tiff wmf x11 xml zlib

Re: how do i export jpg from wmv?

Posted: 2009-07-20T21:31:21-07:00
by fmw42
BringItAroundTown wrote:I believe i have the package for wmf. My question was regarding the WMV format though.
I wasn't aware those two were related.

when i run identify -list format, wmf is listed in there. wmv is not. :(

I see

WMV MPEG rw+ Windows Media Video


But I have no idea whether or where to find or enable wmv delegate? What IM version are you using. Perhaps an upgrade is in order?

Re: how do i export jpg from wmv?

Posted: 2009-07-21T05:11:42-07:00
by anthony
convert -list delegate

or look for the delegate.xml file the location of which is also listed by the above command.

Re: how do i export jpg from wmv?

Posted: 2009-07-21T09:23:08-07:00
by BringItAroundTown
anthony wrote:convert -list delegate

or look for the delegate.xml file the location of which is also listed by the above command.

Path: /usr/lib/ImageMagick-6.3.7/config/delegates.xml

Delegate Command
-------------------------------------------------------------------------------
cgm => "ralcgm" -d ps -oC < "%i" > "%o" 2> "%u"
dng:decode => "ufraw-batch" --silent --wb=camera --black-point=auto --exposure=auto --create-id=also --out-type=ppm16 "--output=%u.pnm" "%i"
eps<=>pdf "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i"
eps<=>ps "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pswrite" "-sOutputFile=%o" "-f%i"
fig => "fig2dev" -L ps "%i" "%o"
gplt => "echo" "set size 1.25,0.62 set terminal postscript portrait color solid; set output "%o"; load "%i"" > "%u";"gnuplot" "%u"
hdr => "ra_pfm" "%i" "%o"
hpg => "hp2xx" -q -m eps -f `basename "%o"` "%i" mv -f `basename "%o"` "%o"
hpgl => "if [ -e hp2xx -o -e /usr/bin/hp2xx ]; then hp2xx -q -m eps -f `basename "%o"` "%i" mv -f `basename "%o"` "%o else echo "You need to install hp2xx to use HPGL files with ImageMagick." exit 1 fi"
htm => "html2ps" -U -o "%o" "%i"
html => "html2ps" -U -o "%o" "%i"
https => "curl" -s -k -o "%o" "https:%M"
ilbm => "ilbmtoppm" "%i" > "%o"
man => "groff" -man -Tps "%i" > "%o"
pdf<=>eps "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=epswrite" "-sOutputFile=%o" "-f%i"
pdf<=>ps "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pswrite" "-sOutputFile=%o" "-f%i"
pic => "ra_pfm" "%i" "%o"
pnm<= ilbm "ppmtoilbm" -24if "%i" > "%o"
pnm<= launch "gimp" "%i"
pov => "povray" "+i%i" -D0 +o"%o" +fn%q +w%w +h%h +a -q9 -kfi"%s" -kff"%n" "convert" -concatenate "%o*.png" "%o"
ps<=>eps "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=epswrite" "-sOutputFile=%o" "-f%i"
ps<=>pdf "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i"
ps<= print "lpr "%i"
rad => "ra_pfm" "%i" "%o"
rgba<= rle "rawtorle" -o "%o" -v "%i"
scan => "scanimage" -d "%i" > "%o"
shtml => "html2ps" -U -o "%o" "%i"
svg => "wmf2eps" -o "%o" "%i"
txt<=>ps "enscript" -o "%o" "%i"
wmf => "wmf2eps" -o "%o" "%i"

is the response i get from your command. i do not see wmv either. what do i need to add to get it there?

Re: how do i export jpg from wmv?

Posted: 2009-07-21T15:15:14-07:00
by fmw42
6.3.7 is very very old (170 versions old). I suggest that you seriously consider upgrading.

Re: how do i export jpg from wmv?

Posted: 2009-07-22T17:22:40-07:00
by BringItAroundTown
ok sysadmin upgraded imagemagick and now i get his error:


convert: Delegate failed `"ffmpeg" -v -1 -vframes %S -i "%i" -vcodec pam -an -f rawvideo -y "%u.pam" 2> "%Z"' @ delegate.c/InvokeDelegate/1032.
convert: unable to open image `/tmp/magick-XXjyWkG4.pam': No such file or directory @ blob.c/OpenBlob/2480.

Re: how do i export jpg from wmv?

Posted: 2009-07-22T19:24:45-07:00
by fmw42
have you installed the ffmpeg delegate?

see this related post viewtopic.php?f=1&t=13650&p=48394&hilit=ffmpeg#p48394

Re: how do i export jpg from wmv?

Posted: 2009-07-24T12:43:54-07:00
by BringItAroundTown
Well this imagemagick video covnersion is turning out to be a pain in the butt.
We installed ffmpeg to make it work but then running convert gave segmentation fault.
I was hoping getting aorund having to use ffmpeg anyway. So since we had to install it nayway I am using that to do what i want and it worked great the first try and i will be using it to generate the video thumbs i need.

As for the poster that supplied all that info for the other video converter, this is gonna be a part of an automated system so need something to run command line.