Transcodes an H.264/AVC video to H.265/HEVC.
See simple_converter for build and run instructions.
Upsamples an MP3 audio clip from 44.1 KHz to 48 KHz.
See simple_audio_upsample for build and run instructions.
Crops a 16:9 video to 4:3.
See simple_video_crop for build and run instructions.
Fits a 16:9 video into a 4:3 frame by resizing and padding the picture.
See simple_video_pad for build and run instructions.
Scales a 480p video up to Full HD 1080p.
See simple_video_upscale for build and run instructions.
Extract metadata information from a media file.
See info_metadata_file for details.
Extract audio / video stream information from a media file.
See info_stream_file for details.
MPEG-4 Part 14 / MPEG-4 Part 1
Extract the first audio and video elementary stream from an MP4 container and save each stream into a separate MP4 file.
See demux_mp4_file for details.
Advanced Video Coding
Split an H.264 (AVC) elementary stream into access units (AU). Each access unit is saved as a separate file. The sample also displays the NAL units within each access unit.
See dump_avc_au for details.
High Efficiency Video Coding
Split an H.265 (HEVC) elementary stream into access units (AU). Each access unit is saved as a separate file. The sample also displays the NAL units within each access unit.
See dump_hevc_au for details.
MPEG-4 Part 1
Multiplex two single-stream MP4 files containing AAC (audio) and H.264 (video) streams into an MP4 (container) file.
See mux_mp4_file for details.
Multiplex AAC (audio) and H.264 (video) streams into an MP4 (container) file, or remux an existing MP4 file. Optionally enable fast start, which moves the moov atom before the mdat atom so the file can be played while it is downloading.
See mux_mp4_fs_file for details.
Advanced Audio Coding
Decode AAC file in Audio Data Transport Stream (ADTS) format and save the output to WAV file.
See dec_aac_adts_file for details.
Decode AAC file in Audio Data Transport Stream (ADTS) format using Transcoder::pull and save output to WAV file.
See dec_aac_adts_pull for details.
Advanced Video Coding
Decode an AVC / H.264 stream. Use a sequence of .h264 files to simulate a stream of H.264 Access Units (AUs) and a Transcoder object to decode the AUs to raw YUV video frames.
See dec_avc_au for details.
Decode a compressed AVC / H.264 file to raw uncompressed YUV video file.
See dec_avc_file for details.
High Efficiency Video Coding
Decode HEVC / H.265 stream. The sample uses a sequence of files to simulate a stream of H.265 Access Units (AUs) and a Transcoder object to decode the AUs to raw YUV video frames.
See dec_hevc_au for details.
Decode a compressed HEVC / H.265 Annex B file to raw uncompressed YUV video file.
See dec_hevc_file for details.
Decode G.711 A-law WAV file to PCM WAV file.
See dec_g711_alaw_file for details.
Decode G.711 μ-law WAV file to PCM WAV file.
See dec_g711_ulaw_file for details.
MPEG-1 Layer 3 Audio
Decode MP3 file and save output to WAV file.
See dec_mp3_file for details.
Advanced Audio Coding
Encode WAV file to AAC file in Audio Data Transport Stream (ADTS) format.
See enc_aac_adts_file for details.
Encode WAV file to AAC file in Audio Data Transport Stream (ADTS) format using Transcoder::pull.
See enc_aac_adts_pull for details.
Encode WAV file to AAC file in Audio Data Transport Stream (ADTS) format using Transcoder::push.
See enc_aac_adts_push for details.
Advanced Video Coding
Encode a raw YUV video file into a compressed AVC / H.264 video file.
See enc_avc_file for details.
Encode raw YUV video file to AVC / H.264 Annex B video file using Transcoder::pull.
See enc_avc_pull for details.
High Efficiency Video Coding
Encode raw YUV video file to HEVC / H.265 Annex B video file using Transcoder::run.
See enc_hevc_file for details.
Encode raw YUV video file to HEVC / H.265 Annex B video file using Transcoder::pull.
See enc_hevc_pull for details.
Encode WAV file to G.711 A-law WAV file.
See enc_g711_alaw_file for details.
Encode WAV file to G.711 μ-law WAV file.
See enc_g711_ulaw_file for details.
MPEG-1 Layer 3 Audio
Encode WAV file to MP3 file.
See enc_mp3_file for details.
Encode WAV file to MP3 file using Transcoder::pull.
See enc_mp3_pull for details.
How to encode WAV file to MP3 file using Transcoder::push.
See enc_mp3_push for details.
Convert a raw YUV video file to a compressed video file. The format of the output is configured with an AVBlocks preset.
See enc_preset_file for details.
Change the frame rate of a video from 24 fps to 30 fps.
See video_framerate for details.
Apply padding to video frames by adding black borders on all sides.
See video_pad for details.
Crop a video by removing pixels from the edges (left, right, top, bottom).
See video_crop for details.
Upscale a video to Full HD (1920x1080) using bicubic interpolation method.
See video_upscale for details.
Take an MP4 input and re-encodes the audio and video streams back into an MP4 output.
See re-encode for details.
Create a video from a sequence of images.
See slideshow for details.