Log in

View Full Version : [Q] How to batch remove streams from .mp4 container?


o-l-a-v
19th August 2014, 21:10
Hey!

Here is the deal: I have 80-90 video files with several audio streams. I only want to keep audio stream 2 in all of these files/ delete audio stream 1. I imagine this can be done in a batch, ye?

Is there an easy way to do this in batch? Till now i have used mkv2mp4, but here i have to manually un-check all the streams i don't want in the output.

Overdrive80
20th August 2014, 01:29
You will need ffmpeg, try this:

@echo off
Title Drop audio stream

path="C:\Users\Isra\Desktop\ffmpeg\bin"

for %%@ in (*.mp4) do (
ffmpeg.exe -i "%%@" -map 0:0 -map 0:2 -c copy "%%~n@_remuxed.mp4")
pause


You should change path to fmpeg.