ffmpeg audio libopus not ogg

Domain: audio · Evidence E0 — Contributor self-reported
ffmpegaudiolibopus

Summary

FFmpeg 输出 OGG 文件为 0 字节。

Problem

FFmpeg 输出 OGG 文件为 0 字节。

Root Cause

使用了不存在的 -format ogg flag。

错误写法

ffmpeg -i input.wav -format ogg output.ogg  # -format 不存在

正确写法

ffmpeg -i input.wav -ar 24000 -ac 1 -c:a libopus output.ogg

Verification

echo "Lesson: ffmpeg audio libopus not ogg"
wc -l lessons/contrib/ffmpeg-audio-libopus-not-ogg.md

Expected Output:

Lesson: ffmpeg audio libopus not ogg
# (line count)

额外注意

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons