Python Code Tutorials


articles/extract-media-metadata-in-python.jpg
How to Extract Video Metadata in Python

Learn how to extract video or audio file metadata in Python with the help of ffmpeg framework and its ffmpeg-python wrapper.

articles/reversing-videos-in-python.jpg
How to Reverse Videos in Python

Learn how to reverse videos by extracting frames and loading them in the inverted order using MoviePy library in Python.

articles/pretraining-bert-using-huggingface-transformers-in-python.jpg
How to Train BERT from Scratch using Transformers in Python

Learn how you can pretrain BERT and other transformers on the Masked Language Modeling (MLM) task on your custom dataset using Huggingface Transformers library in Python

articles/extract-pdf-metadata-in-python.jpg
How to Extract PDF Metadata in Python

Learn how to use pikepdf library to extract useful information from PDF files in Python.

articles/extract-frames-from-video-in-python.jpg
How to Extract Frames from Video in Python

Making two different methods to extract frames from videos with the timestamp with OpenCV or MoviePy libraries in Python.

articles/concatenate-audio-files-in-python.jpg
How to Concatenate Audio Files in Python

Explore different methods to join two or more audio files using either MoviePy, wave and PyDub libraries in Python.

articles/concatenate-video-or-audio-clips-in-python.jpg
How to Concatenate Video Files in Python

Learn how to join two or more video files using MoviePy library in Python

articles/add-static-image-to-audio-to-form-a-video-in-python.jpg
How to Combine a Static Image with Audio in Python

Learn how to add a static photo to an audio file to form a video file using MoviePy library in Python.

articles/convert-video-to-audio-with-python.jpg
How to Extract Audio from Video in Python

Learn how to convert video to audio using ffmpeg and subprocess, or using MoviePy library in Python.

articles/gender-and-age-detection-using-opencv-in-python.jpg
Age and Gender Detection using OpenCV in Python

Learn how to perform age and gender detection using OpenCV library in Python with camera or image input.

articles/how-to-sign-pdf-files-in-python.png
How to Sign PDF Files in Python

Learn how to generate self-signed certificates and sign them into PDF files as digital signatures using PyOpenSSL and PDFNetPython3 libraries in Python.

articles/detect-gender-from-faces-using-opencv-in-python.png
Gender Detection using OpenCV in Python

Learn how to perform gender detection on detected faces in images using OpenCV library in Python.

articles/predicted_age.jpg
Age Detection using OpenCV in Python

Learn how to predict someone's age from his front face picture using OpenCV library in Python

articles/merge-pdf-files-in-python.jpg
How to Merge PDF Files in Python

Learn how to merge two or multiple PDF files into a single PDF file using PyPDF4 library in Python

articles/encrypt-pdf-files-using-python.jpg
How to Encrypt and Decrypt PDF Files in Python

Learn how to add and remove passwords to PDF files using PyPDF4 library, as well as using pyAesCrypt to encrypt and decrypt PDF files in Python

articles/compress-pdf-files-in-python.jpg
How to Compress PDF Files in Python

Learn how to compress PDF files in Python using the wrapper of PDFTron SDK.