Reading/Writing Video & Audio¶
Reading Video from file¶
The first step of video editing is to reading them from file. this Van be Done using vidiopy.VideoFileClip
class. This class takes the path of the video file as input and returns a video which inherits from VideoClip
class.
if the video do not have the audio then it will create a silence clip
Writing Video to file¶
To Write the Video we can use the write_videofile
function inside the VideoClip
.
Other clip type inherent it from the VideoClip
.
Reading Audio from file¶
To read the audio from the file we can use the AudioFileClip
class. This class takes the path of the audio file as input and returns a audio which inherits from AudioClip
class.
Writing Audio to file¶
To Write the Audio we can use the write_audiofile
function inside the AudioClip
.
Other clip type inherent it from the AudioClip
.