Week 7 – Steps Toward A Final Product
This week, I began working on the final stage of my project: code that would link my colorizer model with my audio alteration model. Since I will mainly focus on concept in this post and actual code in next week’s post, I’ll keep this week’s post short.
The python library MoviePy has several methods that allow me to easily work with video and audio files. The following code allows me to separate audio files from a video .avi file.
This means that with a .avi video file of a movie, I can separate the file into a .wav audio file and a .avi video file. The .wav file will be sent to my audio alteration model, while my colorizer model deals with the .avi file. When both models are finished with their respective roles, the new audio can be written over the video file with one of MoviePy’s set_audio methods.
All that’s left now is to actually try it out with some sample video and audio files. If all goes according to plan, I’ll be left with a working draft of my final product!