Page 1 of 1

convert *.ps xx.mpeg

Posted: 2011-04-09T02:17:14-07:00
by salva
I installed into my PC (-WindowsXP) ImageMagic-6.6.8-Q16 and Ghostscript901. I tried to trasform some files type PostScript in a file type mpeg but it does not work.

Re: convert *.ps xx.mpeg

Posted: 2011-04-09T09:55:18-07:00
by fmw42
do you have an mpeg delegate installed such as ffmpeg?

convert -list configure

look at line starting with DELEGATES. Does it show mpeg?

or

convert -list format

Does it list:


MPEG MPEG rw+ MPEG Video Stream
MPG MPEG rw+ MPEG Video Stream

Re: convert *.ps xx.mpeg

Posted: 2011-04-11T04:46:49-07:00
by salva
do you have an mpeg delegate installed such as ffmpeg?
I think I succeded, See the following lines
FFmpeg version SUN-r23418
......
ffmpeg_output @ 01bbf940 autoinserting filter ' auto inserted scaler 0' between the filter ' src' and the filter 'out' .....

Does it list:


MPEG MPEG rw+ MPEG Video Stream
MPG MPEG rw+ MPEG Video StreamFred's ImageMagick Scripts
Yes , this works.
What next?

fmw42

Posts: 6123
Joined: 2007-07-03T02:14:51+00:00
Location: Sunnyvale, California, USA
Private messageWebsite

Re: convert *.ps xx.mpeg

Posted: 2011-04-11T12:37:10-07:00
by fmw42
What is your exact command line?
What error message do you get?
Do you have ghostscript installed

type

convert -list configure

look at line starting with DELEGATES. Does it show mpeg and gs?

Re: convert *.ps xx.mpeg

Posted: 2011-04-11T18:16:23-07:00
by anthony
From the notes on mpeg and other video output....
http://www.imagemagick.org/Usage/formats/#mpeg

To avoid heavy pixelization....

Code: Select all

convert *.jpg m2v:glacier.mpg
or directly use ffmpeg

Code: Select all

ffmpeg -f image2 -i %03d.jpg -vcodec mjpeg -y anim.mpg

Re: convert *.ps xx.mpeg

Posted: 2011-04-12T05:03:04-07:00
by salva
Our exact command line and error message are :
D:\mac_fontana>convert *.pgs fontana.mpeg

FFmpeg vergsion SUN-r23418, Copyright <C> 2000-2010 the FFmpeg developers
built on Jun 2 20I0 04:12:01 with gcc 4.4.2
configuration: --target-os =mingw32 --enable-runtime-cpudetect --enabe avisynth
--enable-gpl --enable-version3 --enable-bzlib --enable-libgsm --enable-libfaad
--enable-pthreads --enable-libvorbis --enable-libtheora --enable-libspeex
--enable-libmp3lame --enable-libopenjpeg --enable-libxvid
--enable-libschroedinger --enable-libx264 --extra-libs=' -lx264 -lpthread'
--enable-libopencore_amrwb --enable-libopencore_amrnb --enable-librtmp --extra-libs=' -lrtmp -lssl -lcrypto -
lws2-32 -lgdi32 -lwinmm -lcrypt32 -lz' --arch=x86 --cross-prefix=i686-mingw32- --cc=' ccache i686-mingw32-gcc'
--enable-memalign-hack
libavutil 50.16. 0 / 50.16. 0
libavcodec 52.72. 1 / 52.72. 1
libavformat 52.67. 0 / 52.67. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.20. 0 / 1.20. 0
libswscale 0.11. 0 / 0.11. 0
[ffmpeg_output @ 01bbf940]auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and
the filter 'out'
[scale @ 01bbfbe0]w:612 h:792 fmt:gray -> w:612 h:792 fmt:yuv420p flags:0x4
Output #0, mpeg, to 'C:/DOCUME~1/casa/IMPOST~1/Temp/magick-j3IXw0oo.mpeg':
Metadata:
encoder : Lavf52.67.0
Stream #0.0: Video: mpeg1video <hq>, yuv420p, 612x792 [PAR 1:1 DAR 17:22], q=2-31, pass 1,
200 kb/s, 90k tbn, 25 tbc

D:\mac_fontana>

Line starting with DELEGATES does not show mpeg nor gs.

Ghostscript installed is 901

Thanks a lot for your help.

Re: convert *.ps xx.mpeg

Posted: 2011-04-12T09:27:02-07:00
by fmw42
If the line starting with DELEGATES does not show mpeg or gs, then IM does not recognize them or they are in the wrong place or you installed them after installing IM. Try reinstalling your delegates, make sure they were installed successfully and then reinstall IM. All of what I tell you is based upon my experience on Mac/Unix, so if you are on Windows, things may be different from what I tell you. Then perhaps you need help from some one more experience with Windows/IM/delegates.

Re: convert *.ps xx.mpeg

Posted: 2011-04-12T22:57:49-07:00
by anthony
The ffmpeg delegate is not a library delegate but a command delegate. that is it actualy runs the command "ffmpeg".

<delegate encode="mpeg:encode" stealth="True" command=""ffmpeg" -v -1 -mbd rd -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2 -i "%M%%d.jpg" "%u.%m" 2> "%Z""/>

Not quite certain what all that means, but the command itself appears to be...

Code: Select all

   ffmpeg -v -1 -mbd rd -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2 \
              -i PGS%d.jpg  input_filename   2> junk_filename
I think! Never seen a "mpeg:encode" name for a delegate, and there does not appear to be a output filename. Perhaps it is a pipeline delegate?

However the delegate.xml file does say that the normal rules do not apply for mpeg formats.