Giter Site home page Giter Site logo

Comments (12)

Dan203 avatar Dan203 commented on May 28, 2024

This is what I use to use for MinGW build....

CXXFLAGS=-D__STDC_CONSTANT_MACROS ./configure --disable-doc --disable-outdevs --disable-static --enable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-w32threads --enable-zlib --cpu=i686

from ffvs-project-generator.

Sibras avatar Sibras commented on May 28, 2024

I assume your comparing the Release configurations speed as opposed to the debug configuration (the debug is the default configuration)?

There are some differences in a few cases as old code in the ffmpeg user base sometimes has inline assembly code that is not supported by msvc compiler. All the more recent code uses nasm as an external assembler to support assembly optimisations so as long as you project uses nasm for assembly youll get all the latest optimisations. It is however possible that an older codec such as mpeg2 still uses the older inline asm and hasnt been updated due to its age. If you use a more recent encoder you should see near identical performance, if not then that would require additional investigation.

from ffvs-project-generator.

Dan203 avatar Dan203 commented on May 28, 2024

Is there any way to get that inline assembly code to compile in VS? Using the Intel encoder maybe? Our main purpose for using VS over MinGW was being able to add breakpoints to the ffmpeg code when we were having issues, but we rely on that MPEG-2 encoder and can’t use it if it's 1/2 the speed.

from ffvs-project-generator.

Sibras avatar Sibras commented on May 28, 2024

The intel compiler does support the inline assembly and FFVS supports creating projects for icl.

from ffvs-project-generator.

Dan203 avatar Dan203 commented on May 28, 2024

I've been doing some testing and the VS build is slower in other areas too. I was testing all the decoders and the MinGW build is faster in every test. Something weird is going on. I'm going o download the trial for the Intel compiler and see if it makes a difference.

from ffvs-project-generator.

Sibras avatar Sibras commented on May 28, 2024

You may also want to try testing against the precompiled binaries at https://github.com/ShiftMediaProject/FFmpeg/releases to see if there is a difference there.

from ffvs-project-generator.

Dan203 avatar Dan203 commented on May 28, 2024

Good idea. I'll try that too just to be sure

from ffvs-project-generator.

Sibras avatar Sibras commented on May 28, 2024

Did you end up reproducing the speed issues with the precompiled binaries? If not ill close this issue.

from ffvs-project-generator.

Dan203 avatar Dan203 commented on May 28, 2024

I got pulled away on another project so I couldn’t finish all my testing. But the precompiled binaries did not have the speed issues. However the one we compiled, using your project generator and VS2019, does. And I have no idea why. Same code compiled in mingw is faster so we're just using that for now. I plan to revisit this eventually but I'm busy on another project right now.

from ffvs-project-generator.

Sibras avatar Sibras commented on May 28, 2024

Well the precompiled binaries are using the supplied VS projects with any modification. Double check and make sure that you are using one of the Release Configurations and your not accidentally comparing it to a debug build.

from ffvs-project-generator.

Dan203 avatar Dan203 commented on May 28, 2024

We're using a custom build script and your project generator, not your published project files. We need a custom build because we're using this in a commercial app and can only use the LGPL stuff. We also need zlib support because we have customers who edit MP4 files with compressed headers.

It's been a couple years since I generated the projects, so maybe you've fixed something since then. It was just a big process, and I need to remember how exactly to do it, so I haven’t had time to start over and do it again. I'm hoping that's all it is. But if not I'll start a new bug if you close this one.

from ffvs-project-generator.

Sibras avatar Sibras commented on May 28, 2024

Closing this for now.
For reference if all you want is lgpl with zlib then you can use FFVS with the command line "--enable-lgpl --disable-autodetect --enable-zlib" then just build one of the desired release configurations in the generated VS projects.

from ffvs-project-generator.

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.