[theora] Poor encoding quality with etheora and aspect ratio
problem
Manuel Dahmen
manuel.dahmen at gmail.com
Mon Mar 10 06:17:03 PDT 2008
On Mon, 10 Mar 2008 02:09:02 -0300
"Ribamar Santarosa de Sousa" <ribamar.santarosa at gmail.com> wrote:
> On Sun, Mar 9, 2008 at 2:21 PM, Manuel Dahmen
> <manuel.dahmen at gmail.com> wrote:
> > On Sun, 9 Mar 2008 14:04:49 +0100
> >
> > Manuel Dahmen <manuel.dahmen at gmail.com> wrote:
> >
> >
> >
> > > On Sun, 9 Mar 2008 04:00:14 -0300
> > > "Ribamar Santarosa de Sousa" <ribamar.santarosa at gmail.com> wrote:
> > >
> > > > Manuel,
> > > >
> > > > can you test the version in
> > > > http://svn.xiph.org/experimental/ribamar/etheora/ ?
> > > >
> > > > The final resolution (Fr) shown by the mplayer output is the
> > > > video frame resolution (fr) multiplied by the Aspect ratio
> > > > (Ar):
> > > >
> > > > Fr = fr * Ar. This should be the 16:9 or 4:3 final visual you
> > > > probably expected to see shown by the mplayer output. Etheora
> > > > was doing:
> > > >
> > > > Ar = fr, what led to problems. Now etheora does:
> > > >
> > > > Ar = Fr / fr, which I expect to led to the correct values,
> > > > but I may have missed any test. Can you see (and report) if
> > > > now it's working?
> > >
> > >
> > > I ran some tests this morning with the new version.
> > >
> > > What I was doing before in my source code is adding this code
> > > between enc_setup and enc_start:
> > > ec->ti.width=width;
> > > ec->ti.height=height;
> > > ec->ti.frame_width=width;
> > > ec->ti.frame_height=height;
> > > ec->ti.aspect_numerator=1;
> > > ec->ti.aspect_denominator=1;
> > > // So I keep the original resolution when playing, with
> > > square //pixel ratio (for drawing shapes in processing.org).
> > >
> > > Here is mplayer output (file are named
> > > "movie-{ASPECT_CONSTANT}-WIDTHxHEIGHT" where width and height
> > > are the values passed in etheora_enc_setup. I commented these
> > > lines for the tests below. I put the resulting videos here :
> > > http://poux.be/tmp/video__test21/
>
> Manuel,
>
> can you please diff your etheora.c against
> http://svn.xiph.org/experimental/ribamar/etheora/src/etheora.c ? I've
> used the same parameters you said to have tested, but the results
> seem to be correct:
Ribamar,
I have not changed ethora.c file but I made a bad mistake (I'm sorry), I
have added your modifed version of etheora in my project in a new folder
but I just changed the #include so I was compiling the old version of
etheora.c.
So now it works fine. Thank you.
>
> Regards,
> Ribamar
>
>
>
>
> >
> > I'm sorry there was a stupid error in index.php, making the script
> > looping again and again... I corrected the mistake.
> >
> >
> > _______________________________________________
> > theora mailing list
> > theora at xiph.org
> > http://lists.xiph.org/mailman/listinfo/theora
> >
--
Manuel Dahmen
More information about the theora
mailing list