Samples

This page lists the sample applications demonstrating the AVBlocks Python SDK capabilities.

Common Options

Most samples support these options:

  • -i, --input — Input file path

  • -o, --output — Output file path

  • --help — Show usage help message

Processing Modes

File Mode

The simplest approach — specify input and output files, and the transcoder handles everything:

  • dec-aac-adts-file, enc-mp3-file, etc.

Pull Mode

Pull encoded/decoded samples one at a time for custom processing:

  • dec-avc-pull, enc-aac-adts-pull, etc.

  • Useful for streaming, frame-by-frame analysis, or custom containers

Push Mode

Push data to the encoder/decoder manually:

  • enc-aac-adts-push, enc-mp3-push

  • Useful for real-time encoding from live sources

Sample Categories

Audio Decoding

Audio Encoding

Video Decoding

Video Encoding

Container Operations

Demuxing

Muxing

Media Information

Audio Processing

Video Processing

  • video_crop — Crop a video by removing pixels from the edges

  • video_framerate — Change the frame rate of a video

  • video_pad — Add black border padding around a video

  • video_upscale — Upscale a video to Full HD (1920x1080) using bicubic interpolation

Utilities

  • enc_preset_file — Encode using AVBlocks presets

  • re_encode — Remux media with optional forced re-encoding

  • slideshow — Create video slideshow from images

  • dump_avc_au — Dump H.264/AVC stream into access unit files

  • dump_hevc_au — Dump H.265/HEVC stream into access unit files