Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I checked out the questions with similar titles and didn't find anything that I thought would help. I am attempting to convert a video into an avi, preferably xvid. The video file's Video and Audio Properties are as follows:

Dimensions: 1280x544
Codec H.264/AVC
Framerate: 24 frames per second
Bitrate: 774 kpbs

Codec: MPEG-4 AAC audio
Channels: Stereo
Sample Rate: 48000 Hz
Bitrate: 32 kpbs

I have tried numerous times to convert this into an Xvid codec AVI but I have had no luck successfully getting the audio to sync properly. I am using Openshot to attempt conversion, using the libxvid codec and AVI format, but I am unsure of the proper audio settings I should use. What settings should I use to convert this video with Openshot? If it is not possible with Openshot, or if there is a better application to use, I would be grateful to know that as well.

share|improve this question

If you're just looking for conversion, you might want to try arista or transmageddon instead of Openshot. Arista Transcoder and Transmageddon are applications focused on just doing the conversion and nothing else. Especially Arista Transcoder contains a lot of presets, of which one is xvid. Install them using the command sudo apt-get install arista transmageddon.

share|improve this answer
OK I will try Arista and then Transmageddon, what are the best Audio settings to get the audio synced properly? – Shawn Apr 15 '12 at 1:59
Well, Transmageddon converted the video, but it messed up the audio pretty badly. I will try Arista and WinFF to see if either of those will work. – Shawn Apr 15 '12 at 3:13

Try avidemux Install avidemux. It works quite well.

share|improve this answer
up vote 1 down vote accepted

Well, I'll close this one out with my own answer... after trying all of the suggestions and not getting anything close to a satisfactory conversion, I wound up using Format Factory in Window$ to get it done. Makes me sad.

share|improve this answer
Are you sure that this is the final 'answer' to your question? Might be a better idea to just keep the question unanswered, so people are still encouraged to find Ubuntu answers to your question. – Exeleration-G Jul 17 '12 at 17:05

I'd suggest using WinFF not because it's simple to use and it actually works, but because it dumps execution commands into *.sh files which are located in your ~/.winff/ directory. You can examine them and change parameters as you wish.

I had to convert some mp4 videos from my Samsung Galaxy 2 to avi XViD format, and here's the command I came to thru the way I described earlier. Check this out if this works for you, if not, please try the Step 1, and post your command.

In my case I'm using ffmpeg, so here's the command (original, slightly modified for HDMI format output):

ffmpeg -y -i yourvid.mp4 -f avi -r 29.97 \
          -vcodec libxvid -vtag XVID \
          -vf scale=1920:1080 -b 1500k -qmin 3 -qmax 8 -bufsize 4096 \
          -mbd 2 -bf 2 -trellis 1 -flags +aic -cmp 2 -subcmp 2 -g 300 \
          -acodec libmp3lame -ar 48000 -ab 128k -ac 2 \

Hope this helps.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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