Comments (10)
As @radry is pointing out, the best solution here would be to dynamically fetch enough videos to fill the audio track duration.
I did a quickfix by commenting out this line in video.py. Then the video will transition to the next as soon as it has ended.
You can modify the AMOUNT_OF_STOCK_VIDEOS constant in main.py accordingly to fetch enough videos to fill the audio track duration.
Not a very consistent approach, but better than the current implementation, in my opinion
from moneyprinter.
Can I try to work on this?
from moneyprinter.
Can I try to work on this?
Sure, I'd appreciate it as I'm low on time 🙏
from moneyprinter.
I set up everything but I am having issues with the request to g4f.ChatCompletion.create(). It gives me
ClientConnectorCertificateError: Cannot connect to host chat.chatgptdemo.net:443
Any ideas why?
from moneyprinter.
I set up everything but I am having issues with the request to g4f.ChatCompletion.create(). It gives me
ClientConnectorCertificateError: Cannot connect to host chat.chatgptdemo.net:443
Any ideas why?
It's probably due to rate limits, try turning on a VPN, that helps usually.
from moneyprinter.
Found an easy solution but don't have time to test right now:
in video.py "combine_videos" where it sets the clip length, just loop the video if the clip length is shorter than what it should be.
I also found two other bugs related to this where it doesn't download 5 videos but fewer and thus not enough length in each video is available.
I can fix it tomorrow, no time to open a separate issue now.
from moneyprinter.
I followed all instructions but keep getting:
[-] Error: RetryProvider failed: Gpt6: ClientConnectorCertificateError: Cannot connect to host seahorse-app-d29hu.ondigitalocean.app:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')] Chatgpt4Online: URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)> You: ClientConnectorCertificateError: Cannot connect to host you.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')] FreeGpt: ClientConnectorCertificateError: Cannot connect to host s.aifree.site:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')] FakeGpt: ClientConnectorCertificateError: Cannot connect to host chat-shared2.zhile.io:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')] ChatgptDemoAi: ClientConnectorError: Cannot connect to host chat.chatgptdemo.ai:443 ssl:default [Connection reset by peer] ChatgptDemo: ClientConnectorCertificateError: Cannot connect to host chat.chatgptdemo.net:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')] ChatgptNext: ClientConnectorCertificateError: Cannot connect to host chat.fstha.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')] GeekGpt: HTTPError: 521 Server Error: for url: https://ai.fakeopen.com/v1/chat/completions
Let me know if there is a fix and I can try working on this.
from moneyprinter.
Please open an issue in the xtekky/gpt4free package, as MoneyPrinter isn't related to g4f.
from moneyprinter.
After investigating more, I can conclude that the problem is that many of the downloaded clips are simply too short for the calculated length. This can easily be solved by downloading more video instead of just 5 or looping a video.
A better solution would be to dynamically adjust the amount of videos downloaded but this takes more time and effort to implement properly.
from moneyprinter.
@zanmat0
It currently makes every clip the same length and doesn't consider the real available length. I was thinking of comparing the calculated clip length with the actual video length of each clip and dynamically adjust the length of each clip depending on the actual length.
That means if a clip is too short it will play more of another one. Sounds a bit complicated though.
Your suggestion has the downside that it will only play a single clip if it's very long
from moneyprinter.
Related Issues (20)
- [FEATURE] Add subtitle display options
- Design Modern UI with React HOT 2
- [BUG] install HOT 3
- [BUG] How to set the IMAGEMAGICK_BINARY path on a Macbook? HOT 1
- [BUG] Termcolor missing HOT 2
- [-] Error: the JSON object must be str, bytes or bytearray, not list HOT 1
- [BUG] do not use localhost as endpoint but a variable HOT 2
- Create a website for docs HOT 2
- [Help]how to setup the ".evn" in ubuntu?? HOT 2
- [help] it shows error when i run at a vps HOT 1
- Error: must be real number, not NoneType[BUG] HOT 3
- [BUG]you.com/api is forbidden
- [BUG] No videos found to download HOT 1
- [BUG][root@anonymous Backend]# python main.py File "main.py", line 159 print(colored(f"[+] Downloading {len(video_urls)} videos...", "blue")) ^ SyntaxError: invalid syntax HOT 1
- [BUG] "No videos found to download." HOT 9
- This error is prompted when running python3 main.py HOT 1
- [BUG] It says that i dont have access to GPT-4 or it dosent exist but actually i paid for it HOT 1
- [BUG] pip install requirements fail at playsound HOT 2
- [BUG] No videos found to download and it oppens new window in incognito in windows HOT 3
- [BUG] HOT 6
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 moneyprinter.