JasonLovesDoggo / RedditVideoMakerBot

Create Reddit Videos with just✨ one command ✨
GNU General Public License v3.0
23 stars 13 forks source link

OSError: MoviePy error: the file assets/mp3/0.mp3 could not be found! Please check that you entered the correct path. #14

Closed allovertheglobe closed 2 years ago

allovertheglobe commented 2 years ago

image

Bottom line of this, seems it has done everything else but just completing final video it cannot find this. Assets folder is empty but they are all in the temps folder?

JasonLovesDoggo commented 2 years ago

the program only really keeps the background videos in the assets and the audio clips and screenshots/ are stored in the temp folder and then deleted after the final video is made.

but yeah, that issue isn't just you, the same thing has happened to me, my advice rn is to just rerun the program as i only get that error like 1/6 runs.

I don't yet know the actual cause of the error, and I'm not home so it's hard to debug it.

allovertheglobe commented 2 years ago

Tried running 3 times back to back and same issue - its definitely looking for the files in the ASSETS>MP3 folder rather than lookin in the temp folder mp3

Denotess commented 2 years ago

This happened to me aswell. Some code mentioned a results folder and i just made another folder called results, cleared all the temp files, ran it again and it worked.

allovertheglobe commented 2 years ago

Where did you put the results folder? Ive got one in the assets and the temp folders

Denotess commented 2 years ago

In the original folder. image

allovertheglobe commented 2 years ago

Hmmm added this folder and same error remains

OpenSourceSimon commented 2 years ago

I had the same error and removing the backgrounds.mp4 in the temp folder worked for me!

allovertheglobe commented 2 years ago

Don't have any MP4 in the temp folder for me - only MP3 folder in there

OpenSourceSimon commented 2 years ago

image I had this file in my temp folder

allovertheglobe commented 2 years ago

Added all of those folders.

Still just getting:

MoviePy error: the file assets/mp3/0.mp3 could not be found! Please check that you entered the correct path

I've tried changing the code to pull from the temp folder but resulted in more errors so reverted back

allovertheglobe commented 2 years ago

If it helps:

I know you said the files only get saved in the temp folder, but, only my mp3 files are saving in the temp folder and it seems the rest of the files are just in the asset folders

JasonLovesDoggo commented 2 years ago

I believe you are on a older version of the program

allovertheglobe commented 2 years ago

How do I get the new version?

allovertheglobe commented 2 years ago

I've recloned and same issue as original image

JasonLovesDoggo commented 2 years ago

Dang.. Just got home so I can try to fix it now

allovertheglobe commented 2 years ago

I seen on another issue you said the latest version now doesnt show error, so I started fresh and tried again with a new clean version but same error:

image

allovertheglobe commented 2 years ago

Added results folder and got past 1st error...now downloading videos I will update if it works!

allovertheglobe commented 2 years ago

IT WORKS! Amazing support mate thank you

stopmoclay commented 2 years ago

I have the latest version and getting the same "0.mp3 does not exist" error even after adding the results folder, etc.

stopmoclay commented 2 years ago

Error only appears when specifying a specific thread ID. Seems to run fine if the bot is just grabbing from r/AskReddit

JasonLovesDoggo commented 2 years ago

Huh I never noticed that but I think you are correct. Huge help, thank you. I'm also going to add a tiny line of code that adds the results folder

stopmoclay commented 2 years ago

@JasonLovesDoggo Thanks for your incredible work on this, TTS voice is fantastic upgrade

JasonLovesDoggo commented 2 years ago

Thank you so much! I just didn't really fancy the GTTS results but I knew that the TikTok TTS sounded great so I found the API for that. I'm so glad it doesn't require authentication or anything like that

stopmoclay commented 2 years ago

Script is running well now but videos aren't appearing in "results" folder despite script saying that the video is created successfully

JasonLovesDoggo commented 2 years ago

That is peculiar

JasonLovesDoggo commented 2 years ago

Are you sure they're not there.... I don't see how they would get anywhere else but just check...

stopmoclay commented 2 years ago

I have a feeling it might be to do with changing which background videos are used, I'm gonna do a fresh pull and start over will post results

allovertheglobe commented 2 years ago

is it random whether it uses the minecraft or the orbital gameplay? seem to only get orbital

JasonLovesDoggo commented 2 years ago

Yeah it's random see the background.py file line 48

stopmoclay commented 2 years ago

When using the below videos, the script appears to fully complete and posts a success message but there is no video in the "results" folder

https://www.youtube.com/watch?v=hs7Z0JUgDeA https://www.youtube.com/watch?v=Q5KtBKk4hC0

stopmoclay commented 2 years ago

Ok I think it might be something to do with the aspect ratio of those videos, using 1920x1080 videos and it works again

JasonLovesDoggo commented 2 years ago

huh..... that is very odd...

well, is there a chance you can send over some no ad yt videos that are 1920x1080p?

JasonLovesDoggo commented 2 years ago

well... I have an actual fix for this that you can use any res videos. but it's not tested yet and it's too late.

stopmoclay commented 2 years ago

well... I have an actual fix for this that you can use any res videos. but it's not tested yet and it's too late.

It’s crazy late where I am but would love to help test tomorrow!

JasonLovesDoggo commented 2 years ago

well... I have an actual fix for this that you can use any res videos. but it's not tested yet and it's too late.

It’s crazy late where I am but would love to help test tomorrow!

sounds good! I'm just having a de-syncing issue where the sound and the ss don't match up.

will need more work.

AnAvrgDev commented 2 years ago

I had the same error and removing the backgrounds.mp4 in the temp folder worked for me!

Thanks that worked for me! I dont really understand how that was causing an error, but I really dont care now that it works lol