-   Linux - Software (
-   -   want to convert AVI to /DivX; Slackware 12.2 (

JosephS 04-01-2009 11:02 PM

want to convert AVI to /DivX; Slackware 12.2
I want to convert AVI files to DivX. Can someone recommend a good program
to use on Slackware 12.2.


lazlow 04-01-2009 11:15 PM

Avidemux is pretty good and easy to use.

i92guboj 04-01-2009 11:37 PM


Originally Posted by JosephS (Post 3495599)
I want to convert AVI files to DivX. Can someone recommend a good program
to use on Slackware 12.2.


Mmm, AVI is a container format. DivX is a codec.

This means that an AVI file can be already encoded in DivX. In any case, you don't convert from AVI to DivX, you convert from mpeg to DivX, from Xvid to DivX or whatever. The AVI will also contain an audio stream probably, and that will be encoded in something else as well (mp3, ac3. vorbis or whatever).

To identify the kind of streams that a given AVI file has you can use the command "file", for example, this is from a random video that I have on my home dir:


$ file foo.avi
foo.avi: RIFF (little-endian) data, AVI, 640 x 352, 25.00 fps, video: XviD, audio: Dolby AC3 (6 channels, 48000 Hz)

This concrete avi file has a XviD video stream and an ac3 audio stream.

JosephS 04-04-2009 02:24 PM

Thanks for the replies.


bash-3.1$ file downloads/24_Season_7/avi/24.S07E16.HDTV.XviD-LOL\ \[MFD\].avi
downloads/24_Season_7/avi/24.S07E16.HDTV.XviD-LOL [MFD].avi:
RIFF (little-endian) data, AVI, 624 x 352, 23.98 fps, video: XviD, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)

I downloaded Avidemux and the required dependencies. Can you give me some advice on converting this file to a DivX file. I want to play it on my DVD player. I don't have experience with this.


pg99 04-04-2009 02:36 PM

Have you tried playing the file without re-encoding it? If your DVD player can play DivX it can probably play this xvid file too. DivX and Xvid are pretty much the same thing.

H_TeXMeX_H 04-04-2009 02:38 PM

That should play just fine on your DVD player as long as it supports DivX (it has a label on the drive). So just burn it to a CD or DVD and put it into the drive and it will work.

JosephS 04-04-2009 09:27 PM

I checked into the player it doesn't support DivX or xvid according to this page:
Sorry for the mistake. I thought it could play Divx.

It supports:
Video formats:
Audio formats:
MP3 max 320kbit/s
It plays audio CDs as well as DVD-audio.

I wasn't sure how to open up the avi file.
Can I convert this file to VCD or SVCD to play on the DVD player?
I don't have a DVD Burner on my computer.


H_TeXMeX_H 04-05-2009 06:52 AM

Yeah, you can, i believe avidemux has such an option.

pg99 04-05-2009 09:31 AM

Here is the command for VCD from the avidemux wiki (using the command-line program)

avidemux2 --load /path/to/24.episode.avi --audio-process \
--audio-normalize --audio-resample 44100 --audio-codec MP2 \
--audio-bitrate 224 --output-format PS --video-process \
--vcd-res --video-codec VCD --save output.mpg --quit

Then you will have the file encoded to a vcd format.

To get it onto CD you will need the program vcdimager. The simplest command is

vcdimager output.mpg

That will give you a bin/cue file pair that any CD burner program can burn onto CD.

Then insert in DVD player and enjoy (it's a good episode!)

JosephS 04-05-2009 08:12 PM

I made a mpg file using the gui of avidemux and used vcdimager to make the bin and cue files. I burnt them to a cdrw as well as a cdr. It wouldn't work.

I then tried the commandline:
I got a popup with Avidemux and I built a time map and updated the index, set the aspect ratio 1:1 and 4:3, set vcd audio to 44.1khz mp2
It then gave me a crash backtrace. I entered ok the first time and then cancel. Either way it then stopped after that. I didn't get a file completed.

Any other suggestions?


pg99 04-06-2009 06:22 AM

Sorry, I'm not really familiar with avidemux. Did you ensure the mpg which you created from the GUI was VCD spec ( Other than that, burning the bin/cue as files rather than images is the only thing I can think that could go wrong.

H_TeXMeX_H 04-06-2009 10:37 AM

The try instead to use ffmpeg:


ffmpeg -i movie.avi -target ntsc-vcd filename.mpg
# or in europe:
ffmpeg -i movie.avi -target pal-vcd filename.mpg

All times are GMT -5. The time now is 06:06 PM.