[FFmpeg-user] Copying all audio channels and create mixdown at the same time

Steve Dierker steve.dierker at flavoursys.com
Wed Aug 23 12:30:30 EEST 2017


Thanks! With this example I figured it out. Here is my final command:

# Create mixdown MP4
ffmpeg -i audio_8.mxf \
  -aspect 640/360 \
  -vf
"format=yuv420p,scale='ceil(iw*sar/2)*2':'ceil(ih/2)*2',pad='max(iw,ceil(ih*(640/360)))':'ceil(ow/(640/360))':'(ow-iw)/2':'(oh-ih)/2':black,scale=640:360"
\
  -c:v libx264 -b:v 700k -c:a libfdk_aac -b:a 128k \
  -filter_complex "amix=inputs=8:dropout_transition=2[downmix]" \
  -map 0 -map "[downmix]" \
  -metadata:s:a:0 language=abw -metadata:s:a:1 language=afg \
  -metadata:s:a:2 language=ago -metadata:s:a:3 language=aia \
  -metadata:s:a:4 language=ala -metadata:s:a:5 language=alb \
  -metadata:s:a:6 language=and -metadata:s:a:7 language=are \
  -metadata:s:a:8 language=eng \
  -y finished.mp4

best,
Steve


-- 
--
Mail: steve.dierker at flavoursys.com
Jabber: steved at jabber.ccc.de
Skype: bigzed625



More information about the ffmpeg-user mailing list