convert, edit, wrap, join and mux mxf using FFMPEG

1]convert mxf to mp4 with ffmpeg
. ffmpeg -i input.mxf -vcodec libx264 output.mp4
above one code is tested and it gives output.mp4 of h264 codec.

you can try some other commands also

==> ffmpeg input.mxf -vcodec libx264 -sameq output.mp4
or
==> ffmpeg -i input.mxf -acodec libfaac -ab 128k -ar -sameq -s 704x400 -r 20 -vcodec libx264 -b 256000 -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method umh -subq 5 -trellis 1 -refs 2 -bf 1 -coder 1 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 256000 -maxrate 4M -bufsize 4M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 21 output.mp4

2]ffmpeg command to merge two mono MXF audio streams into one stereo

ffmbc -i test.mxf -map_audio_channel 0:1:0:0:1:0 -map_audio_channel 0:1:1:0:1:1 -map_audio_channel 0:1:2:0:2:0 -vcodec mpeg2video -b 10M -acodec mp2 -ab 256k -ac 2 test_out.mpg -newaudio

so instead of -map (file):(stream) to map the whole stream, we use -map_audio_channel (in_file):(in_stream):(in_channel):(out_file):(out_stream):(out_channel) to map the channels inside the stream. in the example above we grab the first two channels and map them into a stereo-stream (defined by -ac 2 ), and the third channel into a new audiotrack/stream.

3]MXF - Trim / Concatenate -- FFMPEG

the following command line in ffmpeg:

ffmpeg.exe -i input.mxf -vcodec copy -acodec copy -ss 125 -t 20 output.mxf

4] Mux files into mxf converter
Input files:
- test.m2v
- test_1.wav
- test_2.wav
- test_3.wav
- test_4.wav

Output file:
output.mxf

ffmbc -y -i test.m2v -i test_1.wav -i test_2.wav -i test_3.wav -i
test_4.wav -map_audio_channel 1:0:0:0:1:0 -map_audio_channel 2:0:0:0:1:1
-map_audio_channel 3:0:0:0:1:2 -map_audio_channel 4:0:0:0:1:3 -timecode
00:00:11:01 -vcodec copy -target imx50 -acodec pcm_s16le -ac 4 -f mxf_d10
test_d10.mxf

.