How to get all audio streams of video with ffmpeg


ffmpeg-logo

We can use 2 methods to

ffprobe -loglevel error -select_streams a -show_entries stream=index,codec_name:tags=:disposition= -of csv "INPUT.mp4"
ffprobe -loglevel error -select_streams a -show_entries stream=index,codec_name:tags=:disposition= -of default=noprint_wrappers=1:nokey=1 "INPUT.mp4"

Example:

D:\tutorialspots>ffprobe -loglevel error -select_stream
s a -show_entries stream=index,codec_name:tags=:disposition= -of default=noprint
_wrappers=1:nokey=1 "video_7.mp4"
1
aac

D:\tutorialspots>ffprobe -loglevel error -select_stream
s a -show_entries stream=index,codec_name:tags=:disposition= -of csv "video_7.mp
4"
stream,1,aac

Leave a Reply