setup a profile to transcode avi with xvid codec

Hello,
I'm having a problem playing AVI/xvid movies in two android smatphones: samsung galaxy win and xperia z3 smartphones.
It seems that both phones do not support avi xvid codec, so I need to create a profile I presume.
I found some android profile to begin with here but I couldn't find any profile that refers to xvid codec.
How should I set the profile in order to deal with this kind of file?
Btw, could someone explain how the MediaFormatProfile tag works? it is matched against what? how to know the values to match?
many thanks.
The video details:
I'm having a problem playing AVI/xvid movies in two android smatphones: samsung galaxy win and xperia z3 smartphones.
It seems that both phones do not support avi xvid codec, so I need to create a profile I presume.
I found some android profile to begin with here but I couldn't find any profile that refers to xvid codec.
How should I set the profile in order to deal with this kind of file?
Btw, could someone explain how the MediaFormatProfile tag works? it is matched against what? how to know the values to match?
many thanks.
The video details:
- Code:
Format : AVI
Format/Info : Audio Video Interleave
File size : 348 MiB
Duration : 45mn 53s
Overall bit rate mode : Variable
Overall bit rate : 1 062 Kbps
Writing application : MEncoder dev-SVN-r26059-4.1.2
Writing library : MPlayer
Video
ID : 0
Format : MPEG-4 Visual
Format profile : Advanced Simple@L5
Format settings, BVOP : 2
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Muxing mode : Packed bitstream
Codec ID : XVID
Codec ID/Hint : XviD
Duration : 45mn 53s
Bit rate : 928 Kbps
Width : 624 pixels
Height : 352 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.176
Stream size : 305 MiB (87%)
Writing library : XviD 1.2.1 (UTC 2008-12-04)
Audio
ID : 1
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Mode : Joint stereo
Mode extension : MS Stereo
Codec ID : 55
Codec ID/Hint : MP3
Duration : 45mn 53s
Bit rate mode : Variable
Bit rate : 121 Kbps
Nominal bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 39.8 MiB (11%)
Alignment : Aligned on interleaves
Interleave, duration : 24 ms (0.58 video frame)
Interleave, preload duration : 478 ms
Writing library : LAME3.97
Encoding settings : -m j -V 4 -q 3 -lowpass 17 --abr 128