User Tools

Site Tools


ffmpeg:decoding:extract_a_specific_stream

This is an old revision of the document!


ffmpeg - Decoding - Extract a specific stream

Check what streams exist

ffmpeg -i inputfile

returns:

Stream #0:0: Video: hevc .....
Stream #0:1(eng): Audio: aac ....
Stream #0:2(eng): Subtitle: ...
Stream #0:3(fre): Audio: aac ....
Stream #0:4(fre): Subtitle: aac ....

….

ffmpeg -i inputfile.mkv -map 0:3 french-audio.mp3

NOTE: This extracts the 3rd stream.

  • Which, from the sample streams, would be the French audio.
ffmpeg/decoding/extract_a_specific_stream.1698965551.txt.gz · Last modified: 2023/11/02 22:52 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki