.. _tutorial: Tutorial ======== Before keeping reading, please make sure the installation is done :ref:`installation`. The overall structure of the code will always look like this: .. code-block:: python :linenos: import cutcutcodec from cutcutcodec.utils import get_project_root # import usefull functions with read(get_project_root() / "media" / "intro.webm") as container: # open the file stream = container.out_streams[0] # manage one stream final_stream = stream.apply_video_cut(10) # apply filters write([final_stream], "/tmp/my_video.mp4", [{"encodec": "libx264"}]) .. _basic_examples: Basic Examples -------------- This section presents minimalist examples of simple handling. .. toctree:: :numbered: :maxdepth: 1 ../build/examples/basic/read.ipynb ../build/examples/basic/write.ipynb ../build/examples/basic/colorspace.ipynb ../build/examples/basic/metrics.ipynb ../build/examples/basic/split_channels.ipynb ../build/examples/basic/generate_music.ipynb .. _advanced_examples: Advanced Examples ----------------- This section presents examples for more advanced topics. .. toctree:: :numbered: :maxdepth: 1 ../build/examples/advanced/write_alpha.ipynb ../build/examples/advanced/multi_channels.ipynb ../build/examples/advanced/mandelbrot.ipynb ../build/examples/advanced/fractal_shape.ipynb ../build/examples/advanced/wiener.ipynb