convert *.ps xx.mpeg

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
salva
Posts: 3
Joined: 2011-04-09T02:05:12-07:00
Authentication code: 8675308

convert *.ps xx.mpeg

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert *.ps xx.mpeg

Post 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
salva
Posts: 3
Joined: 2011-04-09T02:05:12-07:00
Authentication code: 8675308

Re: convert *.ps xx.mpeg

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert *.ps xx.mpeg

Post 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?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert *.ps xx.mpeg

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
salva
Posts: 3
Joined: 2011-04-09T02:05:12-07:00
Authentication code: 8675308

Re: convert *.ps xx.mpeg

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert *.ps xx.mpeg

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert *.ps xx.mpeg

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply