User Tools

Site Tools


ffmpeg:audio:map_an_audio_file_with_2_channels_to_a_video_file

ffmpeg - Audio - Map an audio file with 2 channels to a video file

A video file and an audio file (that contains 2 channels) - Map the video to stream 0 of the resulting file and the audio file to the next stream/s.


Map all the streams

ffmpeg -i video -i audio -map 0:v -map 1:a output

NOTE: Channels are conjoint tracks within a single stream, so a stereo audio has one stream which contains two channels.


For explicit specification

ffmpeg -i video -i audio -map 0:v -map 1:a:0 -map 1:a:1 output
ffmpeg/audio/map_an_audio_file_with_2_channels_to_a_video_file.txt · Last modified: 2023/11/02 22:38 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki