[FFmpeg-user] question: replacing audio channels

naser sonbaty naser.sonbaty at gmail.com
Mon Mar 21 16:09:46 CET 2016


 Hi all,

I need help with replacing audio channels.
I have two sources:

mkv file: video + audio
    Stream #0:0: Video: h264 (High 4:2:2), yuv422p, 1920x1080 [SAR 1:1 DAR
16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
    Stream #0:1: Audio: aac (LC), 48000 Hz, mono, fltp (default)
    Stream #0:2: Audio: aac (LC), 48000 Hz, mono, fltp (default)
    Stream #0:3: Audio: aac (LC), 48000 Hz, mono, fltp (default)
    Stream #0:4: Audio: aac (LC), 48000 Hz, mono, fltp (default)
    Stream #0:5: Audio: aac (LC), 48000 Hz, mono, fltp (default)
    Stream #0:6: Audio: aac (LC), 48000 Hz, mono, fltp (default)
    Stream #0:7: Audio: aac (LC), 48000 Hz, mono, fltp (default)
    Stream #0:8: Audio: aac (LC), 48000 Hz, mono, fltp (default)

aac file: audio
   Stream #1:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 131 kb/s

I need to do following:
Stream #0:0: Video --> Stream #0:0: Video  -->copy
Stream #1:0: Audio L --> Stream #0:1: Audio  --> replace audio
Stream #1:0: Audio R --> Stream #0:2: Audio  --> replace audio
Stream #0:3: Audio --> Stream #0:3: Audio  --> copy
Stream #0:4: Audio --> Stream #0:4: Audio  --> copy
Stream #0:5: Audio --> Stream #0:5: Audio  --> copy
Stream #0:5: Audio --> Stream #0:6: Audio  --> copy
Stream #0:7: Audio --> Stream #0:7: Audio  --> copy
Stream #0:8: Audio --> Stream #0:8: Audio  --> copy

Thx for helping


More information about the ffmpeg-user mailing list