-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[touhou_bad_apple_v4.5.py] pygame.error: Unrecognized audio format #9
Comments
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. |
Specific for the Bad Apple video purpose. |
I'm not sure if I understand this correctly: I see the variable "path_to_file" but the variable in Could this not be a problem? PS: Oh, thats on V3.0 🤦🏻♂️ But same error there. |
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 |
Version 4.0 spites the same error btw. 🥴🥴 |
Pygame.mixer will not load .MP3 files, because of licensing restrictions. You need to convert them to |
Everything is working as now. When the video ends, Python spits an error As mentioned here |
I'm pretty sure that's normal, because of automatically generated array. |
Can this be avoided? |
Hey :) Its been a while since my last ticket :)
I have a new one for yaa. Even when this project was a weekend project. im still amazed about your progress..
It seems to be that there is something wrong with the audio format...
see log:
python3 touhou_bad_apple_v4.5.py
Select option:
==============================================================
Your option: 1
Please enter the video file name (file must be in root!): BadApple.mp4
MoviePy - Writing audio in audio.mp3
MoviePy - Done.
Beginning ASCII generation...
Progress: [####################### ] 99% Frame 6570 of 6571 framesASCII generation completed! ASCII generation time: 28.546977519989014Traceback (most recent call last):
File "touhou_bad_apple_v4.5.py", line 181, in
main()
File "touhou_bad_apple_v4.5.py", line 170, in main
play_audio('audio.mp3')
File "touhou_bad_apple_v4.5.py", line 24, in play_audio
pygame.mixer.music.load(path)
pygame.error: Unrecognized audio format
The text was updated successfully, but these errors were encountered: