Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: Gandalf on January 18, 2019, 05:36:57 PM

Title: Removing audio tracks fron video files?
Post by: Gandalf on January 18, 2019, 05:36:57 PM
How do I go about removing the audio track(s) from video files? I have tried it by disabling the audio track, but for some reason the resulting file ends up being about four times bigger than the original.
Title: Re: Removing audio tracks fron video files?
Post by: dosdan on January 18, 2019, 09:42:20 PM
1. If you just want to remove one or more audio streams from a container I'd use MKVToolNix GUI.

2. The latest ADM nightly build had no problems extracting just the video stream: Copy / Copy / Video Only.  However the steam is in the raw format and some video editors may not accept them. (Vegas wouldn't.)

3. You can easily do this using FFMPEG using a command line in this format:

ffmpeg -i input.mp4 -c:v copy -an output.m4v

Where:
-i specifies the input clip.
-c:v copy copies the first video stream without recompression.
-an indicates no audio stream is to be included.
output.m4v is the output filename/container format.

Vegas accepted the m4v.

(https://dl.dropbox.com/s/dqokb7j8ec4ej2l/Video_extraction.jpg)

You can see the sizes are almost the same. Only the original MP4 has an audio stream.

Dan.
Title: Re: Removing audio tracks fron video files?
Post by: eumagga0x2a on January 18, 2019, 10:31:38 PM
Quote from: Gandalf on January 18, 2019, 05:36:57 PM
for some reason the resulting file ends up being about four times bigger than the original.

Most likely you have re-encoded the video instead of using the copy mode.