Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-27-2009, 09:58 PM   #1
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
one for ffmpeg experts: it distorts PNGs


I have start using ffmpeg to animate a series of PNG images. IT does it quite easily

ffmpeg -i %05d.png movieofpngs.mpg

It has worked in small experiments. Now I've move on to something bigger and now see that the movie distorts the pngs beyond recognition.

Anybody seen this behavior? Any comments/

In the meantime I am reading up about it. Cheers!
Old 04-29-2009, 07:43 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Check if the format of the PNGs are consistant. I'm guessing that if some use rbg24 and others use bgr15, that ffmpeg may not adjust. You might also try explicitly selecting the video codec. E.G. -vcodec mpeg2video. I think your simple example uses mpeg1 video instead. Also look at explicitly setting the frame rate with the -r option.

Also are the sizes of the png files consistent? Are they sane values?
You could either use the -s (size) option in ffmpeg or use the ImageMagick "convert" program on the input frames.

I'm just curious. Are you making a cell animation?
Old 05-15-2009, 10:30 AM   #3
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438

Original Poster
Blog Entries: 5

Rep: Reputation: 32
hi jschiwal,

thanks for answer.

I'm looking at trying to improve the base pngs (move them to truecolor)
Funnily enough mencoder works ... I get really confused with all the different encoders though, so it's bound to my fault.

I'm just doing animations of any batch image generation software I can get to work. Right now it's libgd and the trajectory of a ball in order to explain elementary differential equations.

I could also do it in gif of course ... I'm not a gif fan though.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 01:14 PM
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-04-2008 06:16 PM
using perl with PNGs, Net::Ping, and CGI cselph Programming 3 08-21-2007 12:36 PM
looking for a way to batch convert 128X128 pngs into other sizes (96,22 etc..)! zeltak Linux - Software 7 11-20-2006 04:38 PM
aterm distorts mc dthomson Linux - Software 4 05-08-2004 09:23 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration