FFMPEG Basic Series - Part 2 eXtra - Single and multiple Audio track removal

preview_player
Показать описание
FFmpeg video on how to remove audio tracks from a video.

The ffmpeg used is as follows

the command broken down
ffmpeg -- Called the ffmpeg application
-i -- indicates the file(s)
-c:v -- The cpdec for the video
copy -- copy the original
-an -- no audio
-map_metadata 0 -- map all metadata from the input file to the output file
-map 0 -- map every stream from the first input file to the output file
-map 0:v -- map the video stream from the first input file to the output file
-map 0:a:0 -- map the first audio stream from the first input file to the output file
-map -0:a:1 -- negative map (ignore/don't map) the second audio stream from the first input file to the output file

streams mapping starts at 0. So audio track 1 is audio stream 0, audio track 2 is audio stream 1, etc.

Stock image with thanks from
Computer Monitor Stock photos by Vecteezy
Рекомендации по теме
Комментарии
Автор

Hi when I merge to video the it gives this error"h264_mp4toannexb filter failed to receive output packet" can you resolve it

aman_awz