Coder Social home page Coder Social logo

Comments (10)

zanmat0 avatar zanmat0 commented on July 18, 2024 1

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.

image

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.

gabrielrosendo avatar gabrielrosendo commented on July 18, 2024

Can I try to work on this?

from moneyprinter.

FujiwaraChoki avatar FujiwaraChoki commented on July 18, 2024

Can I try to work on this?

Sure, I'd appreciate it as I'm low on time 🙏

from moneyprinter.

gabrielrosendo avatar gabrielrosendo commented on July 18, 2024

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.

FujiwaraChoki avatar FujiwaraChoki commented on July 18, 2024

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.

radry avatar radry commented on July 18, 2024

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.

gabrielrosendo avatar gabrielrosendo commented on July 18, 2024

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.

FujiwaraChoki avatar FujiwaraChoki commented on July 18, 2024

Please open an issue in the xtekky/gpt4free package, as MoneyPrinter isn't related to g4f.

from moneyprinter.

radry avatar radry commented on July 18, 2024

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.

radry avatar radry commented on July 18, 2024

@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)

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.