0

On a recent video shoot, the camera man gave us output as .MXF files. Incidentally, Audio and Video are saved in separate .mxf files.

eg:
0007WA00.MXF - Audio (probe)
0007WA01.MXF - Audio (probe)
0007WA02.MXF - Audio (probe)
0007WA03.MXF - Audio (probe)
0007WA.MXF - Video (probe)

I am trying to figure out how to merge these in to a single video file. So far I couldn't find a way out.

[Edit: 20 Jun 2019]
I managed to get audio and video stitched. However, audio is mono. Want a little clarity on whether I can have stereo or surround by utilizing the 4 audio files.

Command that worked:

ffmpeg -i 0007WA.MXF -i 0007WA00.MXF -i 0007WA01.MXF -i 0007WA02.MXF -i 0007WA03.MXF -c:v libx264 -c:a aac -strict experimental ../ffmpeg-stitch-mxf.mp4

Let me add that I am not an expert at this. Perhaps some may find my questions naive.

  • What command did you try? – Gyan Jun 19 '19 at 17:41
  • ffmpeg -i 0007WA.MXF -i 0007WA00.MXF -i 0007WA01.MXF -i 0007WA02.MXF -i 0007WA03.MXF -c:v copy -c:a aac -strict experimental ../ffmpeg-stitch-mxf.mxf – anup Jun 20 '19 at 5:39
  • that didn't work. However, gonna re-try with video codec too. Let's see if that works! – anup Jun 20 '19 at 5:40
  • added an edit to the question. – anup Jun 20 '19 at 5:53
  • Do you want to open the merged file in a professional video editor? – Gyan Jun 20 '19 at 10:46
0

I used ffmpeg with only '-i' switch to figure out which stream was audio and which was video. Then executed the following to merge two audio channels and its video.

ffmpeg -i 0007WA.MXF -i 0007WA00.MXF -i 0007WA01.MXF -filter_complex "[1:0] [2:0] amerge" -c:v libx264 -c:a aac -strict experimental -qscale 0 -y  ../ffmpeg-att2.mp4

I think there can be more options by utilizing all four audio files to make stereo or surround. However, I stopped here as the output was acceptable.
Note - used '-qscale 0' to limit quality-loss.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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