Tutorial
Before keeping reading, please make sure the installation is done Simple Installation.
The overall structure of the code will always look like this:
1import cutcutcodec
2from cutcutcodec.utils import get_project_root # import usefull functions
3
4with read(get_project_root() / "media" / "intro.webm") as container: # open the file
5 stream = container.out_streams[0] # manage one stream
6 final_stream = stream.apply_video_cut(10) # apply filters
7 write([final_stream], "/tmp/my_video.mp4", [{"encodec": "libx264"}])
Basic Examples
This section presents minimalist examples of simple handling.
Advanced Examples
This section presents examples for more advanced topics.