I have several media:

  • one video file
  • several audio files

I would like to create a new MXF media with the video file and mixing the audio files at specific timestamp and tracks:

  • Starting time of the video file on the track 0: 00:00:00:00
  • Starting time of the audio clip 1 on the track 1: 00:00:30:00
  • Starting time of the audio clip 2 on the track 2: 00:00:35:00
  • Starting time of the audio clip 3 on the track 2: 00:00:45:00
  • ...

I made a first try with just with one video and one audio. I used the following command:

ffmpeg -y -i picsou.mp4 \
  -itsoffset 2 \
  -i picsou.wav \
  -shortest \

Unfortunately, when I import it in Pro Tools, I cannot see the audio.

  • Adapt the method at stackoverflow.com/a/48169214/5726027
    – Gyan
    Sep 11, 2018 at 14:05
  • @Gyan when I look as the solution you propose, it seems that the adelay filter delay the full channel... Sep 11, 2018 at 14:24
  • Share your command.
    – Gyan
    Sep 11, 2018 at 15:15
  • Ok the -itsoffset option solved my problem but change a little bit the subject to explain exactly what I want to do: a MXF file. Sep 14, 2018 at 16:26
  • for Pro Tools Sep 14, 2018 at 16:59

1 Answer 1


The method in my comment still stands.

Let's say you have two audio tracks. Basic command syntax is

ffmpeg -i picsou.mp4 \
       -i audio1.wav \
       -i audio2.wav \
       - filter_complex "[1:a]adelay=30000|30000[1a];\
                         [2:a]adelay=35000|35000[2a]" \
      -map 0:v -map "[1a]" -map "[2a]" -c:v copy -shortest \

The adelay filter here expects two channels per input stream. Channel delay values are in milliseconds.

On linux / OSX you may have to use single quotes around the arguments.

  • Pro Tools support MXF OPATOM, so you need to precise it with the following parameter -f mxf_opatom Sep 23, 2018 at 10:02
  • 1
    Opatom only supports a single stream. In your Q, you state, "I would like to create a new MXF media with the video file and mixing the audio files at specific timestamp and tracks:" which can't be done with Op Atom.
    – Gyan
    Sep 23, 2018 at 10:16
  • Yes I know. I finally understood that MXF was a dead end and I will need to generate an OMF. I'll test your solution in order to generate a wav in the meantime! Sep 24, 2018 at 11:24
  • Maybe I should update my question to go back to the audio pcm question if you don't mine? Sep 24, 2018 at 11:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.