Skip to content
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

running main.py #2

Open
joachimpoutaraud opened this issue Jan 13, 2022 · 1 comment
Open

running main.py #2

joachimpoutaraud opened this issue Jan 13, 2022 · 1 comment

Comments

@joachimpoutaraud
Copy link

I have been trying to run the main.py file on my terminal in order to test your video synchronization repository but I was first facing a MemoryError

MemoryError

I have then tried to change the video and audio file size in the main.py, but still, I get a RuntimeError because the soundfile package failed to load the audio synchronized file.

RuntimeError

@brianlevis
Copy link
Owner

brianlevis commented Jan 18, 2022

Looks like this code isn't optimized for an audio track that can't fit into memory - it seems like it ran out of memory while trying to loop the audio so that it was long enough to combine with the video. You could try optimizing this code, or as a hack you could split the video into pieces, sync the audio, and combine them.

As a sanity check, you might try to create a 1-minute clip of the video using another tool, and see if that works in place of war.mp4.

The RuntimeError may indicate that the code generated an invalid file - there could be some issue with how you adjusted the video and audio size.

Finally, Abe Davis has since posted code for this paper. It seems to be available via docker. If you can get that working, it will produce much better results than my code will.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants