Giter Site home page Giter Site logo

Comments (12)

Seraphli avatar Seraphli commented on May 13, 2024 1

I use compression=False when packing the program. But the issue still exists.
So the reason is not what you explained.
I tried to pack the program without --windowed, and there is no bug.

from vidgear.

Seraphli avatar Seraphli commented on May 13, 2024 1

That's not solved. I want to pack an app that doesn't pop up a console when running. So missing --windowed will result in a window application coming with a console. That's not the way I want.

from vidgear.

abhiTronix avatar abhiTronix commented on May 13, 2024

@Seraphli Do you have a log or terminal log? and how you are managing the FFmpeg backend? Are you providing FFmpeg prebuilt package with your app?

from vidgear.

abhiTronix avatar abhiTronix commented on May 13, 2024

@Seraphli Judging from your app, it is obvious that you are not running WriteGear in compression mode and Hence FFmpeg binaries are not necessary. So coming back to your problem, the empty output error might be related to OpenCV's CODEC. Kindly try changing your output video extension to .avi instead of .mp4 and revert the results here.

from vidgear.

Seraphli avatar Seraphli commented on May 13, 2024

The script is running fine before being packed. So after packed, I have to set the custom ffmpeg path, right? I thought it would find the right place. ffmpeg has been downloaded before, by vidgear.

from vidgear.

Seraphli avatar Seraphli commented on May 13, 2024

It is using ffmpeg because the app is just a packed version of the code I posted.

from vidgear.

abhiTronix avatar abhiTronix commented on May 13, 2024

The script is running fine before being packed. So after packed, I have to set the custom ffmpeg path, right?

@Seraphli That is not a right thing to do as different windows machines may not have common path to the custom FFmpeg binary and will end up in broken application. Using non-compression mode(compression=False) i.e OpenCV builtin writer is more suitable in this case.

I thought it would find the right place. ffmpeg has been downloaded before, by vidgear.

I don't think Pyinstaller environment is letting the vidgear to auto-download/auto-install ffmpeg binaries on host machine as it starts immediately without downloading the appropriate binary. Therefore kindly switch off compression mode and try non-compression mode instead.

It is using ffmpeg because the app is just a packed version of the code I posted.

Wrong. When writegear fails to download custom FFmpeg binaries on windows, it automatically switch backs to non-compression mode which uses OpenCV's builtin Writer Class instead.

from vidgear.

Seraphli avatar Seraphli commented on May 13, 2024

I find out that the packed version has no problem on Ubuntu, but it has the problem on Windows. It will take some time to trace the problem.

from vidgear.

abhiTronix avatar abhiTronix commented on May 13, 2024

I find out that the packed version has no problem on Ubuntu, but it has the problem on Windows. It will take some time to trace the problem.

@Seraphli That's because Ubuntu provides system wide FFmpeg installation and therefore vidgear find no problem identifying it. Clearly this problem is related to your machine configurations and paths, not vidgear API itself.

from vidgear.

abhiTronix avatar abhiTronix commented on May 13, 2024

Closed. Feel free to reopen if something related to vidgear API doesn't works. Goodluck

from vidgear.

abhiTronix avatar abhiTronix commented on May 13, 2024

I tried to pack the program without --windowed, and there is no bug.

@Seraphli Nice Find. Thank you for sharing. Here's some insight for others:


-w, --windowed, --noconsole : Windows and Mac OS X: do not provide a console window for standard i/o. On Mac OS X this also triggers building an OS X .app bundle. This option is ignored in *NIX systems.


from vidgear.

abhiTronix avatar abhiTronix commented on May 13, 2024

That's not solved.

As you stated, it's not vidgear related bug(or no bug at all) that's why it is marked solved. Otherwise it will be marked invalid.

I want to pack an app that doesn't pop up a console when running. So missing --windowed will result in a window application coming with a console. That's not the way I want.

Open this issue on Pyinstaller forum, they can guide you properly, as I never used Pyinstaller before. Goodluck.

from vidgear.

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.