Issues with converting from *.ps to *.mpeg -- revisited
Posted: 2010-02-25T13:07:03-07:00
Hello,
This is a reposting of two posts I sent on 2/8/2010, now with the actual files available for download.
I am operating on MacOSX Ver. 10.5.8 and my ImageMagick version is 6.5.8-0.
I am trying to convert a series of postscript files to an mpeg animation using the line command "convert".
1) When I enter the line command:
convert -rotate "90>" *ps theta_eta.1.mpeg
The following file (theta_eta.1.mpeg) results:
http://www.adrive.com/public/3fc200ac04 ... 10958.html
Note that the first frame comes out fine, but subsequent frames have the background "blacked out".
2) I can get around problem 1 above by first flattening the images. But there is still a problem that when I include the "crop" option, there is still a bunch of empty white space at the bottom of the animation that I can't get rid of.
The following csh script:
#!/bin/csh
foreach d ($1*ps)
convert -rotate "90>" -flatten $d $d.flat.rotated.ps
end
convert -crop 100%x70%+0+0 $1*flat.rotated.ps $1.mpeg
/bin/rm *flat.rotated.ps
results in the attached mpeg file theta_eta.2.mpeg:
http://www.adrive.com/public/50828bb805 ... 9797a.html
Note that earlier versions of ImageMagick did not produce these odd results. It used to work fine. Please let me know if you are able to reproduce my results, and what the fix might be. Thank you.
BTW, the postscript files theta_eta_0000 thru 0010.ps are downloadable at:
theta_eta_0001.ps http://www.adrive.com/public/e9111a5ef6 ... a7cb4.html
theta_eta_0001.ps http://www.adrive.com/public/ac001e91b6 ... 81730.html
theta_eta_0002.ps http://www.adrive.com/public/2d1d93584b ... dedb0.html
theta_eta_0003.ps http://www.adrive.com/public/a2e8224ce1 ... f18d8.html
theta_eta_0004.ps http://www.adrive.com/public/a415e3ed84 ... e1884.html
theta_eta_0005.ps http://www.adrive.com/public/36faf5a9d0 ... 4f4f7.html
theta_eta_0006.ps http://www.adrive.com/public/008cedbfd9 ... 9fda5.html
theta_eta_0007.ps http://www.adrive.com/public/7caee03e2d ... 8444d.html
theta_eta_0008.ps http://www.adrive.com/public/327e6d8394 ... 56a14.html
theta_eta_0009.ps http://www.adrive.com/public/d953bd4adc ... d1f95.html
theta_eta_0010.ps http://www.adrive.com/public/6d9fe48987 ... b40ab.html
This is a reposting of two posts I sent on 2/8/2010, now with the actual files available for download.
I am operating on MacOSX Ver. 10.5.8 and my ImageMagick version is 6.5.8-0.
I am trying to convert a series of postscript files to an mpeg animation using the line command "convert".
1) When I enter the line command:
convert -rotate "90>" *ps theta_eta.1.mpeg
The following file (theta_eta.1.mpeg) results:
http://www.adrive.com/public/3fc200ac04 ... 10958.html
Note that the first frame comes out fine, but subsequent frames have the background "blacked out".
2) I can get around problem 1 above by first flattening the images. But there is still a problem that when I include the "crop" option, there is still a bunch of empty white space at the bottom of the animation that I can't get rid of.
The following csh script:
#!/bin/csh
foreach d ($1*ps)
convert -rotate "90>" -flatten $d $d.flat.rotated.ps
end
convert -crop 100%x70%+0+0 $1*flat.rotated.ps $1.mpeg
/bin/rm *flat.rotated.ps
results in the attached mpeg file theta_eta.2.mpeg:
http://www.adrive.com/public/50828bb805 ... 9797a.html
Note that earlier versions of ImageMagick did not produce these odd results. It used to work fine. Please let me know if you are able to reproduce my results, and what the fix might be. Thank you.
BTW, the postscript files theta_eta_0000 thru 0010.ps are downloadable at:
theta_eta_0001.ps http://www.adrive.com/public/e9111a5ef6 ... a7cb4.html
theta_eta_0001.ps http://www.adrive.com/public/ac001e91b6 ... 81730.html
theta_eta_0002.ps http://www.adrive.com/public/2d1d93584b ... dedb0.html
theta_eta_0003.ps http://www.adrive.com/public/a2e8224ce1 ... f18d8.html
theta_eta_0004.ps http://www.adrive.com/public/a415e3ed84 ... e1884.html
theta_eta_0005.ps http://www.adrive.com/public/36faf5a9d0 ... 4f4f7.html
theta_eta_0006.ps http://www.adrive.com/public/008cedbfd9 ... 9fda5.html
theta_eta_0007.ps http://www.adrive.com/public/7caee03e2d ... 8444d.html
theta_eta_0008.ps http://www.adrive.com/public/327e6d8394 ... 56a14.html
theta_eta_0009.ps http://www.adrive.com/public/d953bd4adc ... d1f95.html
theta_eta_0010.ps http://www.adrive.com/public/6d9fe48987 ... b40ab.html