Hmm you are not specifying how you get the file or from where you want to convert it.
I use the MPlayer package, it has a very powerful encoder that comes along with it called mencoder.
I would suggest you download this, compile and install it, and try it out... just google "mplayer". Or check you favourite pacakage manager (though I always would suggest you compile it from source yourself - you have more control that way)
I have successfully created Windows playable files with mencoder (in the DivX4 codec standard) using the following command line. It takes all .jpg files in the directory, and outputs a 25fps DivX4 / 5 compliant MPEG:
Code:
# mencoder "mf://*.jpg" -mf fps=25:type=jpg -o out.mpg -ovc lavc -ffourcc DX50 -lavcopts vcodec=mpeg4:vbitrate=900:vrc_eq=tex:naq:ilme:trell:cbp:preme=1:keyint=132:mbd=0:qns=1:vme=4:dia=2 -noskip
This file can then be played in Windows if you have the DivX codec / player installed there.
Additionally, I have used mencoder to make DVD rips into .avi files that are fully playable in Windows it you have DivX4 / 5 codec and / or player installed.
This makes a medium quality DivX 4 / 5 compatible .avi from the Title 1 of the DVD in the DVD drive when this is executed on the BASH commandline in a terminal. Rips title 1 off the DVD to the file bob_part_a.avi, taking the English language track for the audio, with mencoder:
Code:
mencoder dvd://1 -alang en -o bob_part_a.avi -oac mp3lame -lameopts vol=8 -ovc lavc -ffourcc DX50 -lavcopts vcodec=mpeg4:aspect=1.78/1:vbitrate=1800:vrc_eq=tex:naq:ilme:trell:cbp:preme=1:keyint=132:mbd=0:qns=1:vme=4:dia=2 -noskip
This, for example, "transcodes" an XViD encoded avi file (not playable on my Windows XP install) with relatively little loss of quality to a Windows playable DivX4 / 5 coded .avi with mencoder (that DOES play on my Windows XP install):
Code:
mencoder /mnt/cdrom/sw1.avi -o sw1.avi -oac mp3lame -lameopts vol=8 -ovc lavc -ffourcc DX50 -lavcopts
vcodec=mpeg4:aspect=1.78/1:vbitrate=1800:vrc_eq=tex:naq:ilme:trell:cbp:preme=1:keyint=132:mbd=1:qns=1:vme=4:dia=2 -noskip
For very high quality transcodes or encodes, also try
Code:
mencoder /mnt/cdrom/sw1.avi -o sw1.avi -oac mp3lame -lameopts vol=8 -ovc lavc -ffourcc DX50 -lavcopts vcodec=mpeg4:aspect=1.78/1:vbitrate=1800:vrc_eq=tex:naq:ilme:trell:cbp:preme=2:subq=8:keyint=132:mbd=1:qns=3:vme=4:dia=3 -noskip
i. e. instead of
Code:
vrc_eq=tex:naq:ilme:trell:cbp:preme=1:keyint=132:mbd=1:qns=1:vme=4:dia=2 -noskip
this results in better quality, but longer encode time:
Code:
vrc_eq=tex:naq:ilme:trell:cbp:preme=2:subq=8:keyint=132:mbd=1:qns=3:vme=4:dia=3 -noskip
Also bringing the bitrate down will result in a smaller file with progressively more loss of quality the lower you set the vbitrate mencoder option.
Hope this helps... the application you are looking for is definitely mencoder IMO.