Comments (12)
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.
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.
@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.
@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.
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.
It is using ffmpeg because the app is just a packed version of the code I posted.
from vidgear.
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.
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.
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.
Closed. Feel free to reopen if something related to vidgear API doesn't works. Goodluck
from vidgear.
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.
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)
- [Question]: Transforms size keep growing. HOT 3
- [Question]: I edit individual frames, but the original unearthly video still ends up on YouTube. Why? HOT 15
- [Question]: Fetch Multiple Video from Youtube HOT 3
- [Proposal]: Dropped support for Python 3.7.x legacy HOT 2
- [Question]: How to get original video fps with VideoGear. HOT 8
- [Bug]: ScreenGear's options wrong names HOT 13
- [Bug]: CamGear - Error when loading first segment , while taking picture from youtube streaming HOT 2
- [Bug]: In NetGear client.recv() stucking in a some non returnable loop HOT 4
- [Proposal]: Add type annotations to the code or add stub files HOT 2
- [Proposal]: Add ffmpeg creationflag in Writegear API HOT 1
- [Bug]: frame desynchronization HOT 6
- [Question]: Does VidGear support downloading arbitrary frames and getting video sizes? HOT 4
- Putting a client IP into the Server code? HOT 2
- [Bug]: Stream gear imposes simplified aspect ratios, which does not seem necessary HOT 1
- [Bug]: no sound on output video with bare minimum code on google colab HOT 4
- [Bug]: No video shown on RTSP tested with VLC HOT 2
- [Question]: how to stream frames from opencv capture already in use? HOT 2
- Exception in thread NetGear, zmq.error.Again: Resource temporarily unavailable HOT 7
- [Question]: looping? HOT 2
- [Bug]: Freezes video thread when processing background thread? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vidgear.