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