ASF Container Contents
| Component | Possible Codecs | MP4 Compatible? |
|---|
| Video | WMV7, WMV8, WMV9/VC-1, MPEG-4 | VC-1: No. MPEG-4: Partial |
| Audio | WMA Standard, WMA Pro, WMA Lossless, MP3 | WMA: No. MP3: Yes |
| Metadata | ASF metadata objects | Partial (basic tags transfer) |
| DRM | Windows Media DRM | Cannot be converted |
Identify the codecs in your ASF file:
ffprobe -v error -show_streams -show_entries \
stream=codec_name,codec_type -of table input.asf
Most ASF files contain WMV9 video and WMA audio, both of which require re-encoding for MP4:
ffmpeg -i input.asf -c:v libx264 -crf 20 -preset medium \
-c:a aac -b:a 128k -movflags +faststart output.mp4
High-Quality Conversion for VC-1 Content
WMV9/VC-1 was a competitive codec — some ASF files from the Windows Media HD era contain genuinely high-quality 1080p content. Preserve it with a lower CRF:
ffmpeg -i input.asf -c:v libx264 -crf 18 -preset slow \
-c:a aac -b:a 192k -movflags +faststart output.mp4
Some ASF files (particularly from older web streaming platforms) contain MPEG-4 Part 2 video. Check first:
ffprobe -v error -select_streams v:0 \
-show_entries stream=codec_name -of csv=p=0 input.asf
If the result is mpeg4 or h264, you might be able to avoid re-encoding the video:
ffmpeg -i input.asf -c:v copy -c:a aac -b:a 128k output.mp4
mkdir -p converted
for file in *.asf; do
[ -f "$file" ] || continue
ffmpeg -i "$file" -c:v libx264 -crf 20 -preset medium \
-c:a aac -b:a 128k -movflags +faststart \
"converted/${file%.asf}.mp4" -y
done
Use the Video Converter online to convert ASF files to MP4 without installing any software. Upload your file and download the converted MP4 in minutes.
Many ASF files from the Windows Media DRM era are encrypted. FFmpeg cannot convert DRM-protected files — you will see an error like:
[asf] DRM protected stream detected
If you own the content and have the license, you need to play it through an authorized Windows Media Player and capture the output. There is no direct conversion path for DRM content. This is a legal and technical limitation, not a software bug.
Video quality: WMV9/VC-1 content from the HD DVD and early streaming era was often encoded at 5-15 Mbps for 1080p. H.264 at CRF 18-20 matches this quality in roughly half the file size. For standard-definition ASF content (common in early 2000s web streaming), CRF 22 is sufficient.
Audio quality: WMA Standard audio at 128-192 kbps converts well to AAC at the same bitrate. WMA Pro (used in HD content) was typically 384-768 kbps for 5.1 surround — use 256 kbps AAC for stereo downmix or 384 kbps for preserved surround. See our audio bitrate guide for more details.
Metadata: ASF files often contain rich metadata (title, author, copyright, description). FFmpeg transfers basic metadata tags to MP4 automatically. Verify with:
ffprobe -v error -show_entries format_tags input.asf
Streaming optimization: Always include -movflags +faststart when converting ASF to MP4. This places the MP4 metadata at the file start, enabling progressive playback — the same streaming capability that ASF was originally designed for.
For more on Windows Media formats, see our guide on how to convert WMV to MP4.
This error indicates the ASF file uses a Windows Media codec variant that FFmpeg does not support (typically very old WMV7 or WMA Voice codecs). Update to the latest FFmpeg build, which has improved WMV decoder coverage.
WMA Lossless and WMA Voice are less commonly supported in FFmpeg builds. Check your FFmpeg build:
ffmpeg -decoders | grep wma
You should see wmalossless, wmapro, wmav1, and wmav2. If any are missing, install a full FFmpeg build rather than a minimal one.
Some ASF files store non-square pixel aspect ratios. FFmpeg usually handles this, but if the output looks stretched:
ffmpeg -i input.asf -c:v libx264 -crf 20 \
-vf "setsar=1" -c:a aac -b:a 128k output.mp4
VC-1 decoding is computationally expensive. For large files, the decoding (not encoding) can be the bottleneck. There is no easy workaround — VC-1 is simply a complex codec to decode in software.
ASF is a Microsoft-era format with dwindling support across modern platforms. Converting to MP4 with H.264 preserves your content in a universally compatible format. For non-DRM files, the conversion is straightforward with FFmpeg. The resulting MP4 is typically 40-50% smaller than the original ASF at equivalent quality, thanks to H.264's superior compression.
Ready to convert? Try our free Video Converter — no registration required.