FORUMS: list search recent posts

FFMPEG: I need to remove 14 out of 16 audio channels from a mov file

COW Forums : Compression Techniques

VIEW ALL   •   PRINT   •   NEXT >>
Andreas Wojtaschek
FFMPEG: I need to remove 14 out of 16 audio channels from a mov file
on Sep 3, 2019 at 8:05:20 am

Hi,

first of all: I'm new to FFMPEG so I need some help from some professional users.

I have a relative simple task:

I have some MOV files with a single audio track that contains 16 channels.
I want to remove the last 14 tracks and create a file with copied video (no reencoding) and just the first two audio channels. The 14 last tracks should be discarded.

I found a lot of tutorials for creating 5.1 files etc. but not what I need. Could someone please point me to the right direction or even post the command to accomplish this task?

Thanks so much for all your help!


Robert


Return to posts index

Lou Logan
Re: FFMPEG: I need to remove 14 out of 16 audio channels from a mov file
on Oct 9, 2019 at 7:05:46 pm

It is not possible to split channels or use filters without re-encoding, but in this case you can stream copy (re-mux) the video without re-encoding because you are not filtering it.

Use the channelmap filter:

ffmpeg -i input -af "channelmap=map=0|1:channel_layout=stereo" -c:v copy output

or

ffmpeg -i input -af "channelmap=map=FL|FR:channel_layout=stereo" -c:v copy output

See "ffmpeg -layouts" for channel layout names and descriptions.


Return to posts index

VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]