Convert FLV Sorenson Spark to MP4 H264 with FFmpeg

This guide provides a straightforward walkthrough on how to convert legacy Flash Video (FLV) files encoded with the retro Sorenson Spark video codec into the modern H.264 format using FFmpeg. You will learn the exact command-line syntax required to successfully decode this vintage format and transcode it into a highly compatible MP4 file suitable for modern media players and web browsers.

The Conversion Command

FFmpeg natively supports decoding the Sorenson Spark codec (which it identifies internally as flv1). To convert your legacy .flv file to a modern H.264 video with AAC audio, open your terminal or command prompt and run the following command:

ffmpeg -i input.flv -c:v libx264 -crf 23 -c:a aac -b:a 128k output.mp4

Command Breakdown

Advanced Quality Preservation

Because Sorenson Spark is a highly compressed, low-resolution legacy format, upscaling or aggressive compression can easily degrade the visual quality. If you want to preserve the absolute maximum quality of the original video stream during conversion, use a lower CRF value:

ffmpeg -i input.flv -c:v libx264 -crf 18 -preset slow -c:a aac -b:a 192k output.mp4

The -preset slow flag tells the H.264 encoder to spend more time compressing the file, resulting in better visual quality per file size.