POV-Ray : Newsgroups : povray.animations : Mpeg2 encoder found Server Time
29 Jul 2024 00:29:04 EDT (-0400)
  Mpeg2 encoder found (Message 7 to 16 of 36)  
<<< Previous 6 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Dick Balaska
Subject: Re: Mpeg2 encoder found
Date: 20 Nov 1999 03:55:18
Message: <38366164.1BE231CE@buckosoft.com>
Mike wrote:
> 
> > Got the files this time, just now tried it out and didn't get any output
> > done right.  It seems similar to CMpeg in the way it's run on the DOS
> > command-line but it just wouldn't do as expected.  Need more time with it to
> > figure it out I guess.
> 
> I've been trying to put something together with it myself and it just hangs at
> the command prompt.  I even left it to run all night and when I came back it was
> still stuck.  I don't know if it's a problem with the ppm files I was using.
> It's says it can only use raw ppm files, but I have no idea what that means.
> The source code is included so maybe I can figure something out that way.
> 
> -Mike

Did you guys get anywhere with this?

Recently i've acquired a bunch of MPEG-2 hardware.  So i've thought about rerunning
my anim ( http://www.buckosoft.com/gallery/raytrace/tteoac/ )
through MPEG-2; 720x480 looks very cool (well 4x as cool as 320x240).

I mentioned this on the irtc-anim list and Ralph Giles turned me on to that encoder.
I haven't had a chance to play with it yet, but i expect that i will soon.
One thing is i like to render my frames to png so i can use ACDsee thumbnail to
preview 
the 3000 frames, so i would like to try dropping png support into it.  If there are
basic flaws that you've already fixed, that would help me a lot.

+++
I was surprised that 720x480 is "broadcast quality", i would have thought that to be
low.
It was interesting to learn that VHS tape is lower resolution than that.
Now i get paid to watch Antz all day [1] and i am amazed how good 720x480 looks on a
20"
inch TV (via DVD).  I'm used to 1600x1200 on a 21" monitor for stills.

One thing about Antz (on DVD) that is cool, are two chapters on animation techniques.
Must see TV for us animators.

Time to fire up the ol' renderfarm...
( http://www.buckosoft.com/bsac/ )

[1] Actually i get paid to manipulate the bitstream that was and will be Antz.  Most
of
    the time the monitor is off, put the DVD on "repeat" and just tweak the bits.
    (Most of the other guys in the office watch The Matrix.)

-- 
           _,--"
dik        `-._        ________-_______        "----
       _----'--'--------------------------------'--'----_
      //_| | \        dic### [at] buckosoftcom          / | |_\\
     (_____|_|__= Guilford CT +1.203.458.0389  =__|_|_____)
     _\_____=___   http://www.buckosoft.com     ___=_____/_
       \/-(o)-~~-(o)-~~-(o)-`------'-(o)-~~-(o)-~~-(o)-\/
Early Net Poetry:
Wustl, Wustl, ERR RIP MIT BOOT, BIND Wustl


Post a reply to this message

From: TonyB
Subject: Re: Mpeg2 encoder found
Date: 20 Nov 1999 07:50:17
Message: <38369909@news.povray.org>
Someguy at school said it was 720x486. Darn... I'll have to fix that...


Post a reply to this message

From: Dick Balaska
Subject: Re: Mpeg2 encoder found
Date: 20 Nov 1999 13:49:18
Message: <3836EC9B.BB4C7283@buckosoft.com>
TonyB wrote:
> 
> Someguy at school said it was 720x486. Darn... I'll have to fix that...

I've seen that too.  I've also seen that the blocks are divisible by "16 or 32".
486/32=15.1875 or 30.375

mpeg2enc.c:85
/* round picture dimensions to nearest multiple of 16 or 32 */
mb_width = (horizontal_size+15)/16;
mb_height = prog_seq ? (vertical_size+15)/16 : 2*((vertical_size+31)/32);

Of course, these are NTSC numbers.  Our PAL buddies get better resolution.

dik


Post a reply to this message

From: TonyB
Subject: Re: Mpeg2 encoder found
Date: 20 Nov 1999 15:23:14
Message: <38370332@news.povray.org>
So NTSC is 720x480ish. What is PAL?


Post a reply to this message

From: Jon A  Cruz
Subject: Re: Mpeg2 encoder found
Date: 21 Nov 1999 01:27:03
Message: <3837911F.9867E315@geocities.com>
Dick Balaska wrote:

> TonyB wrote:
> >
> > Someguy at school said it was 720x486. Darn... I'll have to fix that...
>
> I've seen that too.  I've also seen that the blocks are divisible by "16 or 32".
> 486/32=15.1875 or 30.375
>
> mpeg2enc.c:85
> /* round picture dimensions to nearest multiple of 16 or 32 */
> mb_width = (horizontal_size+15)/16;
> mb_height = prog_seq ? (vertical_size+15)/16 : 2*((vertical_size+31)/32);
>
> Of course, these are NTSC numbers.  Our PAL buddies get better resolution.
>
> dik

Depends. They get more lines of resolution, but fewer frames per second.


--
"My new computer's got the clocks, it rocks
But it was obsolete before I opened the box" - W.A.Y.


Post a reply to this message

From: Jon A  Cruz
Subject: Re: Mpeg2 encoder found
Date: 21 Nov 1999 01:29:36
Message: <383791B9.BDF7B34B@geocities.com>
TonyB wrote:

> So NTSC is 720x480ish. What is PAL?

720x560 25 fps 9843.75k

NTSC is 720x480ish 30 fps

(Of course, the horizontal really depends on the approach you are taking
it, as it is analog)

--
"My new computer's got the clocks, it rocks
But it was obsolete before I opened the box" - W.A.Y.


Post a reply to this message

From: Dick Balaska
Subject: Re: Mpeg2 encoder found
Date: 24 Nov 1999 13:36:59
Message: <383C2FB2.C38AC36E@buckosoft.com>
I got it to work.  

I am disappointed with its output.  MPEG-2 is about bitrate,
and this encoder reports lots of overruns and underruns.  (I think underruns
are the worst, because that sez the next frame will not be decoded in time).

Besides that, the output is still yucky.  Sphot's ears
( http://www.buckosoft.com/gallery/raytrace/sphot/ ) get these brutal, large
quantize pixels near his whenever there is any motion.
(The ears stay still, the camera moves.) 

I guess i need to tweak lots of silly parameters that i know nothing about. 
I am encoding at 4Mbps which is the same bit rate i'm running my hardware encoder.  
Interestingly, my DVD player reports that Antz decodes at 4Mbps which looks fabulous.

My next step is to add png support to mpeg2encode.  I have 2000 frames which is
about 230MB of png frames, which converts to 2GB of ppm frames. :(

Mike wrote:
> 
> > Got the files this time, just now tried it out and didn't get any output
> > done right. 

One of the docs sez that it is built for DJGPP.
DJGPP is a 32 bit flat memory model extender for DOS.  Most likely, its not
compatible with Win95 or NT so rebuilding it is required.

> I've been trying to put something together with it myself and it just hangs at
> the command prompt.  I even left it to run all night and when I came back it was
> still stuck.  I don't know if it's a problem with the ppm files I was using.
> It's says it can only use raw ppm files, but I have no idea what that means.

There are 2 types of ppm files; raw and cooked(?).  They both have the same style
header.

cooked:    raw:
P2         P6
720 480    720 480
255        255

P2 sez that the following data bits are straight ascii; so each pixel is 
like printf("%d %d %d ", red, green, blue);
p6 is binary data, or printf("%c%c%c", red, green, blue);

pngtopnm creates the correct style of ppm files.


dik


Post a reply to this message

From: Dick Balaska
Subject: Re: Mpeg2 encoder found
Date: 2 Dec 1999 19:44:50
Message: <38471289.948B251D@buckosoft.com>
Dick Balaska wrote:

> 
> My next step is to add png support to mpeg2encode.  I have 2000 frames which is
> about 230MB of png frames, which converts to 2GB of ppm frames. :(

I have png support added to mpeg2encode, and have it recompiled as a Win32 console
program.  You can fetch it from here if you'd like:

http://www.buckosoft.com/gallery/tools/mpeg2/

I still haven't got a decent mpeg2 out of it yet, either underruns or overruns;
so many parameters to tweak, so little time.

-- 
           _,--"
dik        `-._        ________-_______        "----
       _----'--'--------------------------------'--'----_
      //_| | \        dic### [at] buckosoftcom          / | |_\\
     (_____|_|__= Guilford CT +1.203.458.0389  =__|_|_____)
     _\_____=___   http://www.buckosoft.com     ___=_____/_
       \/-(o)-~~-(o)-~~-(o)-`------'-(o)-~~-(o)-~~-(o)-\/
Early Net Poetry:
Wustl, Wustl, ERR RIP MIT BOOT, BIND Wustl


Post a reply to this message

From: Ken
Subject: Re: Mpeg2 encoder found
Date: 2 Dec 1999 19:53:50
Message: <3847141A.3D22DB3D@pacbell.net>
Dick Balaska wrote:

> I have png support added to mpeg2encode, and have it recompiled as a Win32 console
> program.  You can fetch it from here if you'd like:
> 
> http://www.buckosoft.com/gallery/tools/mpeg2/
> 
> I still haven't got a decent mpeg2 out of it yet, either underruns or overruns;
> so many parameters to tweak, so little time.

You just might become a hero for this :)

I'll add your link to the collection at the povray.org links page if
you are ok with it.

-- 
Ken Tyler -  1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: omniVERSE
Subject: Re: Mpeg2 encoder found
Date: 2 Dec 1999 22:08:25
Message: <38473429@news.povray.org>
Ken <tyl### [at] pacbellnet> wrote in message
news:3847141A.3D22DB3D@pacbell.net...
>
> You just might become a hero for this :)
>

Maybe not if others get the same transfer rate I'm getting here trying to
D/L the file.  Over 20 minutes it looks like for a 0.9 Meg file??  Probably
just my bad luck.
There couldn't be a better concept than Png to Mpg for POV-Ray animation
making I believe.  Way to go.  Hope I can get it to work here.

 Bob


Post a reply to this message

<<< Previous 6 Messages Goto Latest 10 Messages Next 10 Messages >>>

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