Code Monkey home page Code Monkey logo

Comments (9)

CalvinLoke avatar CalvinLoke commented on June 23, 2024 1

No I don't think that is really the issue, though I have to admit when it comes to naming conventions I am terribly garbage at this. Though, if you wish just to play for Bad Apple, I would recommend that you try v4.0 instead, as it would use a pre-existing audio file instead of extracting it from the .mp4 file.

Not too sure why, but there seems to be some error when it comes to generating the audio file in Linux environments. Might be the moviepy.editor library requiring some dependencies that Linux lacks. Though I would see if I could resolve the issue on my end.

from bad-apple.

CalvinLoke avatar CalvinLoke commented on June 23, 2024

Hi there, are you running it specifically for the purpose of Bad Apple or just for a generic video? Also, it would be great if you could tell me what environment you are running this on.

from bad-apple.

0n1cOn3 avatar 0n1cOn3 commented on June 23, 2024

Specific for the Bad Apple video purpose.
OS: Ubuntu 20.04
Shell: zsh/bash
Python: 3.8.10
pip: 20.0.2
SDL: 2.0.14

from bad-apple.

0n1cOn3 avatar 0n1cOn3 commented on June 23, 2024

I'm not sure if I understand this correctly:

I see the variable "path_to_file" but the variable in
def play_audio
in
pygame.mixer.music.load()
is set as (path).

Could this not be a problem?

PS: Oh, thats on V3.0 🤦🏻‍♂️ But same error there.

from bad-apple.

0n1cOn3 avatar 0n1cOn3 commented on June 23, 2024

Version 4.0 spites the same error btw. 🥴🥴

from bad-apple.

rudy3333 avatar rudy3333 commented on June 23, 2024

Pygame.mixer will not load .MP3 files, because of licensing restrictions. You need to convert them to .wav or .ogg.
Try this online tool.

from bad-apple.

0n1cOn3 avatar 0n1cOn3 commented on June 23, 2024

Everything is working as now.
It has just at the end a small side effect:

When the video ends, Python spits an error

As mentioned here

from bad-apple.

rudy3333 avatar rudy3333 commented on June 23, 2024

I'm pretty sure that's normal, because of automatically generated array.

from bad-apple.

0n1cOn3 avatar 0n1cOn3 commented on June 23, 2024

I'm pretty sure that's normal, because of automatically generated array.

Can this be avoided?

from bad-apple.

Related Issues (9)

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.