[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Re: Movie module being merged



Hi Tyler,

The module now builds, but the _movie_test.py unit tests fail:

ERROR: MovieTypeTest.test_height
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lenard/.local/lib/python2.5/site-packages/pygame/tests/_movie_test.py", line 125, in test_height
   movie = gmovie.Movie(movie_file)
AttributeError: 'NoneType' object has no attribute 'Movie'

If "movie_file" is missing shouldn't gmovie.Movie raise an exception?

Lenard

Tyler Laing wrote:
Thanks Rene, Lenard. I've committed a fix for the compile issues you sent me lenard, it should work now, but let me know if it doesn't.

Rene, is the movie test set to interactive?

-Tyler

On Tue, Aug 18, 2009 at 3:59 AM, René Dudfield <renesd@xxxxxxxxx <mailto:renesd@xxxxxxxxx>> wrote:

    hi,

    I made the _movie test only run on linux so far, with the
    test/_movie_tags.py file.

    Just a note if you're testing on non-linux platforms and the tests
    don't appear to run anymore.


    cheers,


    On Mon, Aug 17, 2009 at 11:54 PM, Tyler Laing<trinioler@xxxxxxxxx
    <mailto:trinioler@xxxxxxxxx>> wrote:
    > strange, I put in if checks around those... I'll fix that
    tomorrow. Thanks
    > for the report Lenard.
    >
    > -Tyler
    >
    > On Mon, Aug 17, 2009 at 12:57 PM, Lenard Lindstrom
    <len-l@xxxxxxxxx <mailto:len-l@xxxxxxxxx>> wrote:
    >>
    >> Never mind. The stable ffmpeg libraries for Debian are too outdated
    >> anyway:
    >>
    >> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
    >> -Wstrict-prototypes -fPIC -D_REENTRANT -I/usr/X11R6/include
    >> -I/usr/include/SDL -I/usr/include/ffmpeg -I/usr/include/ffmpeg
    >> -I/usr/include/SDL -I/usr/include/python2.5 -c src/_gmovie.c -o
    >> build/temp.linux-i686-2.5/src/_gmovie.o
    >> src/_gmovie.c: In function ‘video_image_display’:
    >> src/_gmovie.c:530: error: ‘AVStream’ has no member named
    >> ‘sample_aspect_ratio’
    >> ....
    >> src/_gmovie.c: In function ‘initialize_codec’:
    >> src/_gmovie.c:1685: error: ‘AVCodecContext’ has no member named
    >> ‘error_recognition’
    >> src/_gmovie.c: In function ‘decoder’:
    >> src/_gmovie.c:2213: error: ‘AVERROR_EOF’ undeclared (first use
    in this
    >> function)
    >> ....
    >> src/_gmovie.c: In function ‘video_render’:
    >> src/_gmovie.c:2440: error: ‘AVCodecContext’ has no member named
    >> ‘reordered_opaque’
    >> ....
    >> error: command 'gcc' failed with exit status 1
    >>
    >> Lenard
    >>
    >> Lenard Lindstrom wrote:
    >>>
    >>> Hi Tyler,
    >>>
    >>> Sorry for the bad news but _movie.so fails to build under Debian
    >>> lenny:building 'pygame._movie' extension
    >>> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
    >>> -Wstrict-prototypes -fPIC -D_REENTRANT -I/usr/X11R6/include
    >>> -I/usr/include/SDL -I/usr/include/SDL -I/usr/include/python2.5 -c
    >>> src/_gsound.c -o build/temp.linux-i686-2.5/src/_gsound.o
    >>> In file included from src/_gsound.c:35:
    >>> src/_gsound.h:36:34: error: libavformat/avformat.h: No such
    file or
    >>> directory
    >>> src/_gsound.c: In function ‘seekBuffer’:
    >>> src/_gsound.c:403: error: ‘AV_NOPTS_VALUE’ undeclared (first
    use in this
    >>> function)
    >>> src/_gsound.c:403: error: (Each undeclared identifier is
    reported only
    >>> once
    >>> src/_gsound.c:403: error: for each function it appears in.)
    >>> error: command 'gcc' failed with exit status 1
    >>>
    >>> I am using the Debian ffmpeg dev packages in the build.
    Unfortunately the
    >>> dev packages install all the ffmpeg library headers under
    lib/ffmpeg. There
    >>> is no lib/libavformat and such. And there is no ffmpeg-config or
    >>> avformat-config to discover were the headers are. I don't know
    how best to
    >>> handle this. I suppose -I/usr/lib/ffmpeg
    -I/usr/lib/libavformat flags can be
    >>> added to Setup. Whatever is done all absolute includes like:
    >>>
    >>> #include <libavformat/avformat.h>
    >>>
    >>> need to be replace with locale includes:
    >>>
    >>> #include <avformat.h>
    >>>
    >>> Lenard
    >>>
    >>> Tyler Laing wrote:
    >>>>
    >>>> What I forgot to say is, let me know, I will be beginning a
    merge at 2
    >>>> pm.
    >>>>
    >>>> -Tyler
    >>>>
    >>>> On Sun, Aug 16, 2009 at 12:53 PM, Tyler Laing
    <trinioler@xxxxxxxxx <mailto:trinioler@xxxxxxxxx>
    >>>> <mailto:trinioler@xxxxxxxxx <mailto:trinioler@xxxxxxxxx>>> wrote:
    >>>>
    >>>>    I will be beginning the process of merging the movie
    module branch
    >>>>    into the main branch.
    >>>>
    >>>>    As it stands, the ffmpeg movie backend compiles. The vlc
    backend
    >>>>    isn't quite feature complete, and doesn't work with older
    vlc's
    >>>>    unfortunately.
    >>>>
    >>>>    I would say that the nmovie module is only at a alpha
    stage, and
    >>>>    needs a lot more widespread testing.
    >>>>
    >>>>    If you have any questions, send me an email :)
    >>>>
    >>>>    -Tyler
    >>>>    --     Visit my blog at http://oddco.ca/zeroth/zblog
    >>>>
    >>>>
    >>>>
    >>>>
    >>>> --
    >>>> Visit my blog at http://oddco.ca/zeroth/zblog
    >>>
    >>
    >
    >
    >
    > --
    > Visit my blog at http://oddco.ca/zeroth/zblog
    >




--
Visit my blog at http://oddco.ca/zeroth/zblog