Comments (9)
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.
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.
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.
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.
Version 4.0 spites the same error btw. 🥴🥴
from bad-apple.
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.
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.
I'm pretty sure that's normal, because of automatically generated array.
from bad-apple.
I'm pretty sure that's normal, because of automatically generated array.
Can this be avoided?
from bad-apple.
Related Issues (9)
- V4.5 works flawless on fedora but:
- Licence/Copyright?
- block=False is not supported in Linux HOT 5
- Possible optimizations in ASCII generation, video quality, and video playback HOT 1
- Not really an issue, just some tweaks, from a new-ish scripter HOT 9
- linux HOT 1
- ModuleNotFOundError: No module named 'PIL' HOT 1
- Import error despite having imported all dependencies HOT 9
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 bad-apple.