Giter Site home page Giter Site logo

Comments (7)

timfel avatar timfel commented on May 24, 2024

(by pali)
Can you specify version of Stratagus and Wargus and system which you are using? And will be good if you attach screenshot of your problem.

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by zdmaster)
Wargus & Stratagus 2.2.5.5, OS Windows 7, netbook acer aspire one D250 (Atom N270 1.6 ГГц; chipset intel 945GSE) Screenshot in attach

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by zdmaster)
Check on my PC with windows7, the same problem.
Checked on another PC with windows XP SP3, the same problem.

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by pali)
When I changed video resolution to 800x600 on Windows XP videos are played correctly.

I try find problem in stratagus, but everything seens be OK. I recompile Stratagus for Windows using old i586-mingw32-msvc cross compiler (with all depends libs) and all videos in all video mode are now played correctly.

So this is not problem in Stratagus, but in some win32 libs/compiler. So closing bug as invalid. As temporary solution I reupload Stratagus builds for Windows in some days... Next I try find which windows library (or compiler) do this bad bug. Maybe it will be SDL or vorbis or ogg...

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by pali)
When I changed video resolution to 800x600 on Windows XP videos are played correctly.

I try find problem in stratagus, but everything seens be OK. I recompile Stratagus for Windows using old i586-mingw32-msvc cross compiler (with all depends libs) and all videos in all video mode are now played correctly.

So this is not problem in Stratagus, but in some win32 libs/compiler. So closing bug as invalid. As temporary solution I reupload Stratagus builds for Windows in some days... Next I try find which windows library (or compiler) do this bad bug. Maybe it will be SDL or vorbis or ogg...

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by pali)
Problem is in SDL library. When I builded this library (version 1.2.14) with cross compiler i586-mingw32msvc-gcc (from ubuntu package mingw32) Stratagus video worked fine without problem. When I builded same version of SDL but with cross compiler i686-w64-mingw32-gcc (from ubuntu package gcc-mingw-w64) this problem appeared.

SDL library compiled with i586-mingw32msvc-gcc working fine without problems. When I used SDL compiled with i686-w64-mingw32-gcc, videos worked only in screen resolution 640x480. So problem is that SDL damage screen when must scale video.

Compiler i586-mingw32msvc-gcc is using gcc version 4.2.1 and this compiler is only 32bit and now not developed. Compiler i686-w64-mingw32-gcc is using gcc 4.6.1 and is part of project mingw-w64 (support both 32 and 64bit compilers) and replace old mingw32msvc. So using old i586-mingw32msvc-gcc is not good idea in these days (generated code does not have to be compatible with mingw-w64).

I compiled test video overlay programs in SDL packages (with SDL library) and all worked fine (with scaling) in both compilers.

My question is: Why one compiler compile SDL and Stratagus binary with worked video playback and other compiler not? And why both compiler produce working example video programs?

So in Stratagus is may be bug which appears only in new (maybe strict) compilers and only in Windows. Tested on more Linux versions and this bug I was not able to reproduce.

Moving to project Stratagus and reopening this bug because maybe Stratagus has Windows SDL bug and we must decide what to do with SDL and how to compile...

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by pali)
New release 2.2.6 is linked with SDL compiled by i586-mingw32msvc-gcc and vidoes are working with any resolution. This is really problem with gcc compiler or SDL library itself. Now solution with using SDL compiled with old compiler working, so closing this bug as invalid in Stratagus.

from stratagus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.