This Video Has No Audio Track
Why an audio-only conversion is refused, and how to check whether your source has sound
This Video Has No Audio Track
You will see this when you ask for an audio-only output format from a source
that contains no audio stream:
> This video has no audio track, so it cannot be converted to mp3. Use a source
> that contains audio, or choose a video output format.
Converting to mp3, ogg or flac keeps the audio and drops the video. If there is
no audio to keep, the result would be an empty file, so we stop before spending
your minutes on it.
Check your source first
ffprobe -v error -show_entries stream=codec_type -of csv=p=0 input.mp4
Each line is one stream. A file with sound shows both:
video
audio
A silent file shows only video.
Common causes
turn it on, so the saved file is silent.
preset, drops the audio stream rather than exporting silence.
-an, its output hasno audio for the next job to extract.
Solutions
Use a source that has audio
Confirm with the ffprobe command above before converting.
Choose a video output instead
If you wanted a smaller file rather than the audio specifically, convert to mp4:
{
"inputs": [{ "url": "https://example.com/input.mp4" }],
"outputFormat": "mp4"
}
Add a silent audio track, if you need an audio file regardless
ffmpeg -i input.mp4 -f lavfi -i anullsrc -shortest -c:v copy -c:a aac with-silence.mp4
A related error
If you supply your own options array we do not second-guess it, so the job runs
and FFmpeg reports the underlying problem instead:
> Output file does not contain any stream
That usually means the same thing. It can also mean a filter produced no output,
or that a -map selected a stream which does not exist.
Related Articles
Why -filter_complex is blocked and what to use instead for overlays, text, concatenation, and other complex video operations
Common causes of 403 Forbidden errors and how to fix bucket permissions
Where to see your usage limits and what happens when you hit quota
Can't find what you're looking for?