POV-Ray : Newsgroups : povray.unix : animations on linux/unix Server Time
26 Dec 2024 02:00:57 EST (-0500)
  animations on linux/unix (Message 1 to 6 of 6)  
From: Bill Hails
Subject: animations on linux/unix
Date: 4 Jun 2003 16:34:00
Message: <3ede57b8@news.povray.org>
Hi
Do any of you use linux for pov animations?
if so, what do you use to stitch together the frames into
a movie?

I've found imagemagik's "convert" which can make animated gifs,
I was wondering if there was anything that will make mpegs.

-- 
Bill Hails


Post a reply to this message

From: Micha Riser
Subject: Re: animations on linux/unix
Date: 4 Jun 2003 17:33:05
Message: <3ede6591@news.povray.org>
Bill Hails wrote:

> Hi
> Do any of you use linux for pov animations?
> if so, what do you use to stitch together the frames into
> a movie?
> 

When I used to do animations with pov I used "mpeg_encode" to encode the ppm
pictures into a movie. "mencoder" that comes with "mplayer" can also encode
from png, tga, jpeg to various movie formats. I guess "transcode" will be
able to do the job as well (I'm not very familar with that though).

So, now you've plenty of choice :)

- Micha

-- 
POV-Ray Objects Collection: http://objects.povworld.org


Post a reply to this message

From: Thomas Willhalm
Subject: Re: animations on linux/unix
Date: 5 Jun 2003 07:15:07
Message: <3edf263a@news.povray.org>
Micha Riser wrote:

> Bill Hails wrote:
> 
>> Do any of you use linux for pov animations?
>> if so, what do you use to stitch together the frames into
>> a movie?
>> 
> 
> When I used to do animations with pov I used "mpeg_encode" to encode the
> ppm pictures into a movie. "mencoder" that comes with "mplayer" can also
> encode from png, tga, jpeg to various movie formats. I guess "transcode"
> will be able to do the job as well (I'm not very familar with that
> though).
> 
> So, now you've plenty of choice :)

Let's add mpeg2enc from http://mjpeg.sourceforge.net/ to the list.

Thomas


Post a reply to this message

From: Victor M  Rosas-Garcia
Subject: Re: animations on linux/unix
Date: 5 Jun 2003 09:24:33
Message: <3edf4491$1@news.povray.org>
Bill Hails wrote:
> Hi
> Do any of you use linux for pov animations?
> if so, what do you use to stitch together the frames into
> a movie?
> 
> I've found imagemagik's "convert" which can make animated gifs,
> I was wondering if there was anything that will make mpegs.
> 
I use ppmtompeg, a tool from the netpbm set, just set the output file 
type in POV-Ray to ppm and run through ppmtompeg.  The only trick is to 
produce the *par file that tells ppmtompeg a bunch of parameters for 
proper encoding.  I play the resulting mpegs with plaympeg.  For some 
reason that escapes me, xine does not play the full mpeg, mplayer does 
not seem to have problems, though.  To make animated gifs I use ppmtogif 
  and then gifsicle.  I usually have to reduce the number of colors 
because gifs can only handle 256 colors, and my raytraced images have at 
least several thousand colors.

So, in my povray.ini file I have to set up Output_Type=P, then produce 
the frames and run them through ppmtompeg.
If I want animated gifs, I run my ppm files through ppmtogif and make 
the animation with gifsicle.

I have a shell script that does all those operations for me, and I could 
send you the parameter file for ppmtompeg, if you are interested.

Have a nice day

Victor


Post a reply to this message

From: Sebastian H 
Subject: Re: animations on linux/unix
Date: 6 Jun 2003 14:41:19
Message: <3ee0e04f@news.povray.org>
Micha Riser wrote:
> Bill Hails wrote:
> 
> 
>>Hi
>>Do any of you use linux for pov animations?
>>if so, what do you use to stitch together the frames into
>>a movie?
>>
> 
> 
> When I used to do animations with pov I used "mpeg_encode" to encode the ppm
> pictures into a movie. "mencoder" that comes with "mplayer" can also encode
> from png, tga, jpeg to various movie formats. I guess "transcode" will be
> able to do the job as well (I'm not very familar with that though).
> 
> So, now you've plenty of choice :)
> 
> - Micha
> 
Most times I used mencoder but transcode gives you more freedom to play 
around (this must not be a benefit ;-) )

For transcode you can do it this way:

1.) Create a list with all images
ls -1 *.png > list.lst
(or ls -1 *.jpg > list.lst)

2.) Let transcode convert them to a video (mpeg in this case)
transcode -i list.lst -x imlist,null -g 800x600 -y mpeg,null -f 15 -w 
1500 -o video.mpeg -H 0

-f sets the framerate
-w sets the bitrate
-x is the Inputmodule (Video,Audio)
-y is the Outputmodule (Video,Audio)

For multipass rendering (divx,xvid) one must use
the -R 1 or -R 2 option.

Sebastian


Post a reply to this message

From: bill berggren
Subject: Re: animations on linux/unix
Date: 25 Jun 2003 04:25:02
Message: <web.3ef95b1c69546ce77875901b0@news.povray.org>
TMPGEnc works with wine :).  All you need is the frames as p0001.jpg,
p0002.jpg, ... and then click on p0001.jpg as the video source.  .wavs work
too for the sound.  Also, TMPGenc has awesome mpegtools in
the first menu, to do basically anything you want with mpeg1 or mpeg2
(DVD).

mencoder is the easiest if you don't need sound and can use .pngs or .jpgs.
Here is an example script.  Also look into mpegtools.

mencoder \*.jpg -mf on:fps=5 -ovc lavc -lavcopTs vcodec=mpeg4:vbitrate=500
-o test.avi


Bill Hails wrote:
>Hi
>Do any of you use linux for pov animations?
>if so, what do you use to stitch together the frames into
>a movie?
>
>I've found imagemagik's "convert" which can make animated gifs,
>I was wondering if there was anything that will make mpegs.
>
>--
>Bill Hails
>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.