Page 1 of 1

poor quality .mpeg from a high quality .png

Posted: 2012-04-05T09:28:28-07:00
by ebe
Hello,

I am trying to convert .png pictures on .mpeg movie. I succeed doing that, the film begin in high quality only for a time corresponding to the first 10 pictures :( .
Then the quality become very poor.
The command line I've done :
convert -adjoin -quality 100 imageFs_Vz_2_0??.png -quality 100 movie.miff
convert -quality 100 -delay 5 movie.miff -quality 100 movie.mpeg

The .png pictures has all the same quality.

Have you any idea why this change of quality in the video ?

Thank you :)

Re: poor quality .mpeg from a high quality .png

Posted: 2012-04-06T03:08:57-07:00
by ebe
I solved my problem by doing .mpeg from only 5 .png (I have 200 .png)
Then I concatenate all the .mpeg (40 .mpeg files) files :
cat film*.mpeg > film_inter.mpeg
Then, to avoid "a breakdown in the sync between video and sound" (http://www.arsgeek.com/2006/08/07/how-t ... mpg-files/)
mencoder -forceidx -oac copy -ovc copy film_inter.mpeg -o film_final.mpeg

Maybe there is a better solution ?

Re: poor quality .mpeg from a high quality .png

Posted: 2012-04-06T22:27:12-07:00
by anthony
Thank you for the link. Most informative, and I am sure others will find it useful.

I am not exactly certain as why you get a sudden drop in video quality. IM itself uses a special purpose (and hidden) 'delegate' command using the "ffmpeg" program to generate the mpg viedo file from a sequence of JPEG images...

Code: Select all

  ffmpeg  -v -1 -mbd rd -trellis 2 -cmp 2 -subcmp 2 -g 300 -i "%M%%d.jpg" "%u.%m" 2>"%Z"

However note that while Imagemagick can generate video sequences (generally using delegate comamnds like the above), and is often used in video processing, (cross fades, titles, credits, etc) it's focus is not primarly video, but individual image processing.

However please feel free for more comments, hints and tips, for generating video from single images, as I am sure people are interested. I know I am.