POV-Ray : Newsgroups : povray.animations : Tips for using mencoder (or other encoders)? Server Time
1 Jul 2024 10:03:57 EDT (-0400)
  Tips for using mencoder (or other encoders)? (Message 4 to 13 of 13)  
<<< Previous 3 Messages Goto Initial 10 Messages
From: Christopher James Huff
Subject: Re: Tips for using mencoder (or other encoders)?
Date: 3 Dec 2003 14:58:57
Message: <cjameshuff-3550D5.14582203122003@netplex.aussie.org>
In article <3fce2444@news.povray.org>, Wolfgang Wieser <wwi### [at] gmxde> 
wrote:

> If the image disortion is 1/4 black, it may be a 4-byte RBG versus 
> 3-byte RGB problem, notably when encoding from non-YUV sources (i.e. 
> not jpeg). I once wrote a very dirty patch to make PNG -> MPEG encoding 
> work but it will not apply to recent versions. 

Great...I've been trying to encode from PNG.


> Hard to tell more from your unspecific description "won't play properly". 

Starts playing ok, except that the right 1/4 of the image is black and 
the actual contents of the movie are squashed into a square on the left 
side, and about 1/4 of the way into the movie it sometimes stops 
playing. Playback is jerkier than it should be.


> Ah, and don't use too many fancy flags with MPEG1, a lot of them 
> need higher versions (mpeg4). 

I don't even know any "fancy flags". I'm just trying to get something to 
work. And the error messages are incredibly unhelpful...

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Christopher James Huff
Subject: Re: Tips for using mencoder (or other encoders)?
Date: 3 Dec 2003 15:12:37
Message: <cjameshuff-176303.15120203122003@netplex.aussie.org>
In article <3fcd957d$1@news.povray.org>, Bonsai <bon### [at] b0n541net> 
wrote:

> Have you looked at "Chapter 7. Encoding with MEncoder" in the documentation?
> 
> http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html
> 
> The first two subchapters are about encoding MPEG animations.

The command lines options they give don't work. They sometimes give 
errors (something about parsing the command line...no more information 
given), and sometimes just don't do anything (program starts, writes 
some info to the screen, and quits without giving any reason). That 
documentation seems to be out of date as well...I get a message that -mf 
is deprecated, but no information about what to do instead.

I'm now trying with TGA format images, hopefully this will work...

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Christopher James Huff
Subject: Re: Tips for using mencoder (or other encoders)?
Date: 3 Dec 2003 16:00:23
Message: <cjameshuff-E7AA82.15594803122003@netplex.aussie.org>
In article <cja### [at] netplexaussieorg>,
 Christopher James Huff <cja### [at] earthlinknet> wrote:

> I'm now trying with TGA format images, hopefully this will work...

It did: http://home.earthlink.net/~cjameshuff/files/test.mpeg

(A test image from some patches I've been working on...can you guess 
what I did?)

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: ABX
Subject: Re: Tips for using mencoder (or other encoders)?
Date: 4 Dec 2003 01:38:24
Message: <taltsv8rnthtb66fh9jd2ftvhnbtp9nge0@4ax.com>
On Wed, 03 Dec 2003 15:59:48 -0500, Christopher James Huff
<cja### [at] earthlinknet> wrote:
> can you guess what I did?

Like typical newbie you started from sphere over plane but I noticed
strange distortions in reflectivity and in checkered pattern ;-)

ABX


Post a reply to this message

From: Christopher James Huff
Subject: Re: Tips for using mencoder (or other encoders)?
Date: 4 Dec 2003 08:37:22
Message: <cjameshuff-928220.08365004122003@netplex.aussie.org>
In article <taltsv8rnthtb66fh9jd2ftvhnbtp9nge0@4ax.com>,
 ABX <abx### [at] abxartpl> wrote:

> On Wed, 03 Dec 2003 15:59:48 -0500, Christopher James Huff
> <cja### [at] earthlinknet> wrote:
> > can you guess what I did?
> 
> Like typical newbie you started from sphere over plane but I noticed
> strange distortions in reflectivity and in checkered pattern ;-)

No reflectivity. No normal either...just a pigment. And the pigment is 
constant, it doesn't change with time. ;-)

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Wolfgang Wieser
Subject: Re: Tips for using mencoder (or other encoders)?
Date: 4 Dec 2003 16:04:24
Message: <3fcfa157@news.povray.org>
Christopher James Huff wrote:

> In article <3fce2444@news.povray.org>, Wolfgang Wieser <wwi### [at] gmxde>
> wrote:
> 
>> If the image disortion is 1/4 black, it may be a 4-byte RBG versus
>> 3-byte RGB problem, notably when encoding from non-YUV sources (i.e.
>> not jpeg). I once wrote a very dirty patch to make PNG -> MPEG encoding
>> work but it will not apply to recent versions.
> 
> Great...I've been trying to encode from PNG.
> 
Try encoding from multiple jpegs. If the problem persists, it is not 
related to the mentioned colorspace convention bug. Otherwise it 
probably is. 

I'm sorry for not testing myself but I currently lack a recent version 
and am just too busy with other things. 

>> Hard to tell more from your unspecific description "won't play properly".
> 
> Starts playing ok, except that the right 1/4 of the image is black and
> the actual contents of the movie are squashed into a square on the left
> side, and about 1/4 of the way into the movie it sometimes stops
> playing. Playback is jerkier than it should be.
> 
Reminds me of the color conv problem. 
I had color disortion in addition to the 1/4 screen problem. 
Maybe I can look into that at the weekend; stay tuned :)

Wolfgang


Post a reply to this message

From: Christopher James Huff
Subject: Re: Tips for using mencoder (or other encoders)?
Date: 4 Dec 2003 20:02:20
Message: <cjameshuff-56DD04.20015004122003@netplex.aussie.org>
In article <3fcfa157@news.povray.org>, Wolfgang Wieser <wwi### [at] gmxde> 
wrote:

> Try encoding from multiple jpegs. If the problem persists, it is not 
> related to the mentioned colorspace convention bug. Otherwise it 
> probably is. 

You're a bit behind...I successfully did it with TGA files. Which means 
I'll have to convert to PNG if I want to archive an animation, and 
convert back to TGA to make another movie...but I probably won't be 
doing that kind of thing much anyway.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Tom Galvin
Subject: Re: Tips for using mencoder (or other encoders)?
Date: 5 Dec 2003 02:21:22
Message: <Xns944817E91A873tomatimporg@204.213.191.226>
Christopher James Huff <cja### [at] earthlinknet> wrote in news:cjameshuff-
56D### [at] netplexaussieorg:

> In article <3fcfa157@news.povray.org>, Wolfgang Wieser <wwi### [at] gmxde> 
> wrote:
> 
>> Try encoding from multiple jpegs. If the problem persists, it is not 
>> related to the mentioned colorspace convention bug. Otherwise it 
>> probably is. 
> 
> You're a bit behind...I successfully did it with TGA files. Which means 
> I'll have to convert to PNG if I want to archive an animation, and 
> convert back to TGA to make another movie...but I probably won't be 
> doing that kind of thing much anyway.
> 

You could try tmpegenc under wine with the png plug-in.

-- 
Tom
_________________________________
The Internet Movie Project
http://www.imp.org/


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Tips for using mencoder (or other encoders)?
Date: 5 Dec 2003 05:18:04
Message: <3fd05b5c$1@news.povray.org>
In article <cja### [at] netplexaussieorg> , 
Christopher James Huff <cja### [at] earthlinknet>  wrote:

> Alternatively, maybe someone can suggest another encoder...

I have suiccessfully used ffmpeg to create MPEG-2.  It also supports MPEG-1
and various other formats.  All MPEG-2 files I cretaed with it worked
without problems in QuickTime.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Wolfgang Wieser
Subject: Re: Tips for using mencoder (or other encoders)?
Date: 10 Dec 2003 12:17:59
Message: <3fd75546@news.povray.org>
Christopher James Huff wrote:

> In article <3fcfa157@news.povray.org>, Wolfgang Wieser <wwi### [at] gmxde>
> wrote:
> 
>> Try encoding from multiple jpegs. If the problem persists, it is not
>> related to the mentioned colorspace convention bug. Otherwise it
>> probably is.
> 
> You're a bit behind...I successfully did it with TGA files. Which means
> I'll have to convert to PNG if I want to archive an animation, and
> convert back to TGA to make another movie...but I probably won't be
> doing that kind of thing much anyway.
> 
Hmm... I just tested mplayer-1.0pre3 and it worked fine with multiple 
PNG files: 

mencoder -mf w=640:h=480:fps=25:type=png -ovc lavc -lavcopts
vcodec=mpeg4:vhq:vbitrate=900:vqmin=2:vpass=0 -o f.avi mf://"f00*.png"

Also using "mpeg1video" instead of "mpeg4" and vpass=1/vpass=2 
two pass encoding. 

Everything seems to work now (no own patches applied).

Wolfgang


Post a reply to this message

<<< Previous 3 Messages Goto Initial 10 Messages

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